diff --git a/backend/CLAUDE.md b/backend/CLAUDE.md index ff236bb..5415f40 100644 --- a/backend/CLAUDE.md +++ b/backend/CLAUDE.md @@ -15,8 +15,8 @@ Com implementação real até agora: - `cfp`: configuração da chamada por edição (`cfp_settings`, trilhas e critérios com peso). O status do CFP (`CfpStatus`) é derivado da janela e do estado da edição, nunca editado: `cfp:sync-status` (agendado a cada minuto) e o listener de `EditionStatusChanged` disparam `CfpOpened`/`CfpClosed` uma vez cada. Mudar critérios depois de avaliações exige `confirm=true`, e critério removido é soft delete para preservar as notas; quem conta as avaliações é o contrato `ReviewLedger`. Propostas (`proposals`) com autoria separada do conteúdo (`proposal_speakers`, dono e até 3 coautores): rascunho, envio só com o CFP aberto, perfil de palestrante e campos completos, limite por pessoa, retirada, e-mail `ProposalReceived`. O palestrante usa `/api/v1/speaker/editions/{id}/proposals`; a organização e os revisores usam `/editions/{id}/cfp/proposals`. Com avaliação anônima, quem não tem `program.manage` nunca recebe autoria (`ProposalPresenter`). Avaliação: atribuição manual e automática (`review_assignments`, menor carga primeiro, sem conflito de interesse: autoria ou mesma empresa no perfil de palestrante), notas de 1 a 5 por critério (`reviews`, `review_scores`), nota final ponderada calculada na hora sobre os critérios atuais (`ScoreCalculator`), quadro com pendente, avaliada e empate (`EvaluationBoard`) e exportação CSV. Decisão: ranking por trilha respeitando vagas (sem sugerir quando há empate no corte), simulação que não grava nada e devolve cobertura por UF, % do Nordeste (arredondado para baixo), estados do Nordeste sem representante e alertas (`DecisionBoard`, `CoverageCalculator`), e aplicação em transação que dispara `ProposalDecided` (auditado). Confirmação do palestrante (`speaker_confirmations`): nasce de `ProposalDecided` aprovada, com prazo (`confirmation_days`) e e-mail com link para o site da edição (`EditionSites`); `cfp:confirmation-deadlines` (de hora em hora) lembra 48 h antes e marca "sem resposta" depois do prazo, sem recusar sozinho; recusa e desistência liberam a vaga, e `WaitlistPromotions` sugere quem da lista de espera sobe, só com confirmação da organização. Logística por palestrante e edição em `speaker_logistics`. Quadro de palestrantes da organização (`SpeakerBoard`, `GET /cfp/speakers`): uma linha por pessoa e proposta aprovada ou na lista de espera, indicadores, cobertura dos nove estados do Nordeste entre os confirmados, lembrete manual (`POST /cfp/speakers/remind`, no máximo um a cada 12 h por proposta) e presença (`attended_at`). Acessibilidade e alimentação só saem com a permissão `speakers.private`. Convite direto de palestrante (`POST /cfp/speakers/invite`, `InviteSpeaker`): usa a conta do e-mail ou cria uma sem senha (`UserAccounts::findOrCreateInvited`), cria a proposta já aprovada com `origin = invited` e a confirmação com prazo, manda o e-mail `SpeakerInvited` e audita `cfp.speaker_invited`. Proposta convidada fica fora da avaliação, da atribuição, da decisão e do limite por pessoa (`Proposal::fromCfp()`), mas ocupa vaga da trilha: o ranking desconta essas vagas (`reserved`). - `audit`: trilha append-only em `audit_logs` (quem, o quê, antes, depois, IP, `request_id`, edição). Todo evento que implementa `PHPeste\Audit\Contracts\Auditable` vira registro pelo listener genérico `RecordAuditableEvent`, com segredos removidos por inteiro e dados pessoais mascarados (`AuditRedactor`). Consulta em `GET /editions/{id}/audit` (filtros por pessoa, ação e período); outro módulo lê o histórico de um registro pelo contrato `AuditTrail::forSubject` (ex.: o histórico do pedido); o model recusa update e delete, e só o `audit:prune` diário apaga o que passou de `AUDIT_RETENTION_DAYS`. - `branding`: tema por edição em `edition_settings` (rascunho, publicado e anterior, para reverter), presets Sertão/Maré/Brasa, checagem de contraste AA em `Theme/ContrastChecker`, upload de logos (SVG sanitizado com `enshrined/svg-sanitize`, disco `public`, exige `php artisan storage:link`) e `GET /api/v1/public/editions/{id}/theme` com cache e `ETag`. Os tokens de cor seguem os `--ph-*` do front-admin (`support` = `--ph-terra`, `on_accent` = texto sobre destaque). Domínios por edição em `edition_domains` (subdomínio da plataforma verificado na hora, domínio próprio por TXT ou CNAME), com resolução pública pelo host e `tls-check` para o on-demand TLS do Caddy (ver `docs/deploy/dominios-e-tls.md`). -- `ticketing`: tipos de ingresso (`ticket_types`: visibilidade pública, por código ou oculta, mínimo e máximo por pedido, perguntas do checkout em JSON) e lotes (`ticket_batches`: preço em centavos, quantidade, janela, o que fazer ao acabar), com a capacidade da edição em `ticketing_settings`. Estoque nunca é lido e depois gravado: `AllocateTickets` reserva com `UPDATE ... WHERE allocated + q <= quantity` no lote e na capacidade, na mesma transação, e devolve um `Allocation` com o preço do momento (o pedido guarda esse preço; mudar o lote não afeta quem já comprou). `ReleaseTickets` devolve o que expirou. `BatchRotation` encerra o lote esgotado ou vencido e abre o próximo (`ticketing:rotate-batches`, a cada minuto, e na hora em que o lote esgota). `TicketInventoryConcurrencyTest` prova com 12 processos PHP simultâneos que não há venda além do estoque. Página pública em `GET /public/editions/{id}/tickets?code=`. Cupons (`coupons`: código guardado e comparado em maiúsculas, percentual ou valor fixo por pedido, limite de usos, validade, ingressos aplicáveis): `CouponPricing::quote()` calcula desconto e total em centavos (percentual arredonda para baixo, valor fixo nunca deixa negativo) e diz se precisa de pagamento (cortesia de 100% não passa pelo gateway); `RedeemCoupon` gasta um uso com `UPDATE ... WHERE used < max_uses` e grava o uso em `coupon_redemptions`; `ReleaseCouponRedemption` devolve o uso uma vez só. Cupom usado não muda de código nem é removido (pausa). `CouponConcurrencyTest` prova com processos simultâneos que o último uso só é aprovado uma vez. Checagem pública em `POST /public/editions/{id}/coupons/check` (`throttle:checkout`). Pedidos (`orders`, `order_items` com um item por participante, preço, desconto e taxa guardados no item): `OrderStatus` define as transições (criado → aguardando pagamento → pago → reembolsado; criado ou aguardando → expirado ou cancelado) e `TransitionOrder` é o único caminho para mudar o status, com `UPDATE ... WHERE status = de` (transição concorrente não roda duas vezes), devolvendo estoque e cupom ao expirar ou cancelar e disparando `OrderStatusChanged` (auditado). `PlaceOrder` reserva estoque, gasta o cupom e cria o pedido numa transação só; total zero nasce pago, sem gateway. A taxa estimada do gateway (`gateway_fee_basis_points`) só entra no total dos tipos com `pass_fee_to_buyer`. Idempotência no banco, não no cache: `unique(edition_id, idempotency_key)` mais o hash do corpo (mesma chave com outro corpo é 409); o `EnsureIdempotencyKey` genérico guarda até resposta 422 e não serve para o checkout. Quem compra acompanha o pedido com o `access_token` (cifrado) no header `X-Order-Token`. CPF de quem paga é obrigatório quando há valor, guardado cifrado e com HMAC para o limite por pessoa (`max_tickets_per_buyer`, por e-mail ou CPF). Pagamento do pedido em `POST/GET /checkout/editions/{id}/orders/{order}/payment` (`StartOrderPayment`): campos de cartão são proibidos na requisição, o pedido vai para aguardando pagamento e o listener `SyncOrderWithCharge` confirma (ou marca reembolsado) quando a cobrança muda; valor diferente do pedido ou pedido já expirado não muda nada e fica no log. `CancelPendingCharges` cancela no gateway a cobrança de pedido expirado ou cancelado. Pedido pago guarda a conta que recebe (`payment_account_id`) e só é criado com a conta pronta ("Vendas pausadas até o teste do gateway"); `SalesReadinessGuard` impede abrir vendas com lote pago sem a conta pronta. `ticketing:expire-orders` (a cada minuto) expira reservas vencidas (`reservation_minutes`, padrão 30). Teste de processo simultâneo com SQLite usa `transaction_mode = IMMEDIATE` no script filho (transação que lê antes de escrever dá `database is locked` no SQLite). Reembolso pelo painel (`POST /ticketing/orders/{id}/refunds`, permissão `orders.refund`, do organizador e do financeiro): total ou parcial, com motivo (`RefundReason`) e observação interna, e opção de cancelar ingressos (`cancel_tickets`, todos ou `item_ids`), que ganham `cancelled_at` e devolvem a vaga ao lote. Quem estorna é o contrato `PaymentLedger` do Payments; quando o gateway aceita, o evento `RefundAccepted` faz o Ticketing somar `orders.refunded_cents`, cancelar os ingressos escolhidos, auditar `ticketing.order_refunded` e mandar o e-mail `order_refunded` para quem comprou. Ingresso válido é item sem `cancelled_at`. A taxa do gateway fica em `orders.gateway_fee_cents`. Conciliação diária (`ticketing:reconcile`, 04:00 de Brasília, ou `POST /ticketing/reconciliation/run`): reconsulta no gateway as cobranças pendentes, as pagas nos últimos 7 dias e as canceladas ou vencidas há pouco (Pix pago depois de expirar), compara com os pedidos e grava divergências em `reconciliation_issues` (`ReconciliationKind`: pago sem cobrança, cobrança sem pedido pago, valor diferente, pagamento em dobro, contestação, reembolso sem confirmação). Divergência nova vai para o log e para a visão geral; a que some sozinha é resolvida na próxima conferência; a que a organização resolve (`POST /ticketing/reconciliation/{id}/resolve`, com o que foi feito) não volta a abrir. Painel de pedidos em `/ticketing/orders` (busca por nome, e-mail ou número, filtro `status`, 25 por página; `GET .../export` gera o CSV com os mesmos filtros, separado por ponto e vírgula, com BOM, datas no fuso da edição e escape de fórmula). O detalhe traz a cobrança em andamento (`meta.payment`, pelo `PaymentProcessor::current`) e `GET .../{id}/history` monta a linha do tempo (`Orders\OrderHistory`: criação mais o que a auditoria registrou, com o nome de quem fez). Só quem tem `edition.manage` marca como pago à mão (`POST .../mark-paid`, `MarkOrderPaid`: justificativa obrigatória gravada na auditoria como `reason` = `manual: ...`, emite os ingressos e cancela a cobrança aberta) e reenvia a cobrança (`POST .../payment-reminder`, `SendPaymentReminder`: e-mail `pix_reminder` com o link do checkout do pedido, só com a reserva valendo, auditado como `ticketing.payment_reminder_sent`). Ingressos em `tickets` (um por item do pedido, emitidos por `IssueTicketsWhenPaid` quando o pedido fica pago, inclusive o gratuito, e enviados no e-mail `order_confirmed` para o e-mail de cada participante). O QR é `PHT1.{id}.{versão}.{HMAC}` (`Tickets\QrToken`, chave `TICKETING_QR_KEY` ou derivada da `APP_KEY`): sem dado pessoal e impossível de adivinhar. Transferir (`TransferTicket`, pela pessoa ou pela organização) troca o titular, limpa crachá, empresa, camiseta e acessibilidade, sobe a versão (o QR antigo vira `replaced`), grava `ticket_transfers`, audita `ticketing.ticket_transferred` e manda o e-mail `ticket_transferred`. O check-in confere o QR pelo contrato `TicketVerifier::check` (`valid`, `unknown`, `replaced`, `cancelled`). Reembolso que cancela o item cancela o ingresso. Área do participante em `/attendee/editions/{id}/tickets` (listar, ver com QR e histórico, editar dados do crachá, transferir, reenviar): a pessoa vê o ingresso cujo `holder_user_id` é ela ou, com o e-mail verificado, cujo e-mail é o dela (e o ingresso passa a ser dela). Organização em `/ticketing/tickets` (filtros `status`, `ticket_type_id`, `tshirt_size`, `q`, `accessibility`); acessibilidade (cifrada) só aparece para quem tem `edition.manage`, nunca para financeiro ou check-in. Importação de compradores de outra plataforma (Sympla, Even3, planilha), só para quem tem `edition.manage`, em `/ticketing/imports`: o CSV (UTF-8 ou Windows-1252, separador descoberto sozinho, até `TICKETING_IMPORT_MAX_ROWS` linhas) fica no disco privado (`TICKETING_IMPORT_DISK`) e o cabeçalho ganha um mapeamento sugerido (`ColumnGuesser`, campos em `ImportField`); `PUT .../mapping` grava as colunas e liga cada valor da coluna de tipo a um tipo da edição (ou `null` para deixar essas linhas de fora, ou um tipo padrão), com prévia das primeiras linhas sem gravar nada (`ImportPreview`). `POST .../start` põe na fila o `ProcessTicketImport`, que importa um lote de `TICKETING_IMPORT_CHUNK_SIZE` linhas por execução e se coloca de volta na fila; o lote inteiro e a posição em bytes no arquivo (`byte_offset`) são gravados numa transação só, então uma queda refaz só aquele lote. Importação parada volta pelo `POST .../resume` ou sozinha pelo `ticketing:resume-imports` (a cada 5 min, para as que não avançam há 10 min). Cada linha aceita vira pedido externo (`orders.source = import`, `external_platform`, `external_reference`): pago, total zero, sem cobrança, sem conta de gateway e sem taxa, por isso fica fora da conciliação e do reembolso; linhas com o mesmo número de pedido da mesma plataforma entram no mesmo pedido. O item não tem lote (`ticket_batch_id` nulo, a venda foi em outro lugar), mas ocupa a capacidade da edição. Repetida (`RowEvaluator`) é a linha cujo código do ingresso (`order_items.external_code`, único na edição) já foi importado ou, sem código, cujo e-mail já tem ingresso válido do mesmo tipo; reimportar o mesmo arquivo não cria ninguém de novo. Linhas repetidas e rejeitadas ficam em `ticket_import_rejections` (valores cifrados), em `GET .../rejections` e em CSV em `GET .../rejections.csv`. Os ingressos são emitidos sem e-mail (`IssueTickets::handle($order, notify: false)`); o envio só sai por `POST .../email` com `confirm=true` e `recipients` igual ao número de ingressos ainda não enviados (auditado como `ticketing.import_emails_sent`). Início e fim da importação são auditados (`ticketing.import_started`, `ticketing.import_finished`), e o arquivo é apagado ao terminar. -- `payments`: a plataforma não recebe nem repassa dinheiro (ADR 0009). Cada edição cadastra a conta do próprio gateway em `payment_accounts`: driver, ambiente, credenciais em `encrypted:array` (a API só mostra os 4 últimos caracteres), titular CPF ou CNPJ com nome exibido no checkout e documento só mascarado, métodos aceitos e parcelas. Trocar de conta cria uma nova e marca a anterior com `retired_at` (só consulta e reembolso, que usa sempre a conta do pedido: `RefundCharge`). Com pedidos pagos na conta atual, a troca exige `confirm=true`; quem conta os pedidos é o contrato `AccountUsage`, implementado pelo Ticketing. Toda troca dispara `PaymentAccountChanged` e a validação dispara `PaymentAccountVerified` (auditados, sem a chave). A conta fica pronta (`PaymentAccounts::ready`) com as chaves validadas no gateway (`POST /payments/accounts/{id}/verify`) e um webhook assinado recebido em `POST /api/v1/webhooks/payments/{token}`. Drivers implementam `Contracts\PaymentGateway` e entram em `config/payments.php` → `drivers` (registro em `GatewayRegistry`). O `FakeGateway` implementa o contrato inteiro para os testes (assinatura `X-Fake-Signature` = HMAC do corpo, token `tok_declined` recusa) e fica desligado em produção. Quem recebe aparece em `GET /public/editions/{id}/payments/receiver`. Cada driver declara o que sabe fazer (`GatewayCapability`: Pix, cartão com token do navegador, cartão ou boleto na página do gateway). Driver `asaas` (`Drivers/Asaas`): `AsaasClient` com timeout, retentativa só em leitura e exclusão (criar cobrança nunca é repetido, para não cobrar duas vezes) e erro tipado (`GatewayRequestFailed::reason`, com `publicMessage()` segura para quem compra e o detalhe só no log); cliente reaproveitado pelo CPF, Pix com QR e copia e cola, cartão sempre na fatura do Asaas (`invoiceUrl`, com parcelas e retorno para `{site}/checkout/pedido/{id}`), porque a tokenização do Asaas exige o número do cartão no servidor; webhook autenticado pelo header `asaas-access-token`; status mapeados em `AsaasStatus`. Driver `mercadopago` (`Drivers/MercadoPago`): `MercadoPagoClient` com token Bearer e `X-Idempotency-Key` em todo POST (por isso pode repetir a criação depois de queda de conexão sem cobrar duas vezes), Pix pela API de pagamentos e cartão com o token do formulário do Mercado Pago no navegador (`card_token`, `card_brand`, `card_issuer` no checkout; a conta guarda a `public_key`, que o checkout recebe em `/public/editions/{id}/payments/receiver`). Webhook validado pelo `x-signature` (HMAC-SHA256 de `id:{data.id};request-id:{x-request-id};ts:{ts};`); como o corpo não traz status, o job da caixa de entrada consulta o pagamento. Status em `MercadoPagoStatus` (Pix vencido é `cancelled/expired`). Os dois drivers passam pelo mesmo `GatewayContractTest`, com um harness por driver em `tests/Support`; driver novo entra no dataset. Teste contra a conta de teste: `MERCADOPAGO_SANDBOX_ACCESS_TOKEN=... ./vendor/bin/pest --filter=sandbox`. Taxas e prazos de cada gateway para a comunidade: `../docs/guia-gateways.md`. Cobranças em `payment_charges` (uma por tentativa, `reference` = id do pedido), criadas pelo contrato `PaymentProcessor` (`ChargeService`): trava por pedido contra clique duplo, reaproveita a cobrança pendente igual e cancela a anterior ao trocar de método; status muda com `UPDATE ... WHERE status = de` e dispara `ChargeStatusChanged` uma vez. `current(refresh: true)` consulta o gateway no máximo a cada 5 s. Webhooks entram na caixa `webhook_events` (`ReceiveWebhook`): assinatura validada pelo driver (falha devolve 401, soma em `payment_accounts.webhook_rejections` e vai para o log), corpo guardado cifrado, um registro por `(conta, id do evento)` com `createOrFirst` (entrega repetida responde `duplicate: true` e não volta para a fila) e resposta 2xx antes do processamento, que roda no job `ProcessWebhookEvent`. O job não confia no status do corpo: consulta a cobrança no gateway (`PaymentProcessor::sync`), então evento falso, repetido ou fora de ordem não muda o pedido. Cobrança desconhecida ou evento sem cobrança fica `ignored`; erro fica `failed` e volta para a fila em 1, 5, 15 e 60 min (`payments:retry-webhooks`, a cada minuto, também devolve os parados em `received` ou `processing`). Depois de 5 tentativas, o aviso aparece na visão geral (`webhooks_failed`) e a organização reprocessa em `POST /payments/webhook-events/{id}/reprocess` (auditado como `payments.webhook_reprocessed`); a lista fica em `GET /payments/webhook-events?status=`. Teste de contrato contra o sandbox: `ASAAS_SANDBOX_API_KEY=... ./vendor/bin/pest --filter=sandbox` (a conta sandbox precisa de chave Pix cadastrada). Reembolsos em `payment_refunds` (`PaymentLedger::refund`): o valor é reservado antes de chamar o gateway com `UPDATE ... SET refunded_cents = refunded_cents + x WHERE refunded_cents + x <= amount_cents`, então dois reembolsos ao mesmo tempo nunca passam do pago (`RefundConcurrencyTest`). Gateway recusou: o reembolso fica `failed`, a reserva volta e `RefundFailed` é auditado. Gateway fora do ar: fica `unconfirmed` com a reserva mantida, para ninguém estornar duas vezes, e a organização registra o resultado em `POST /ticketing/orders/{id}/refunds/{refund}/settle`. Reembolso total aceito marca a cobrança como `refunded`. Rotação da `APP_KEY`: `APP_PREVIOUS_KEYS` mais `payments:reencrypt-credentials` e `ticketing:reencrypt-orders`. +- `ticketing`: tipos de ingresso (`ticket_types`: visibilidade pública, por código ou oculta, mínimo e máximo por pedido, perguntas do checkout em JSON) e lotes (`ticket_batches`: preço em centavos, quantidade, janela, o que fazer ao acabar), com a capacidade da edição em `ticketing_settings`. Estoque nunca é lido e depois gravado: `AllocateTickets` reserva com `UPDATE ... WHERE allocated + q <= quantity` no lote e na capacidade, na mesma transação, e devolve um `Allocation` com o preço do momento (o pedido guarda esse preço; mudar o lote não afeta quem já comprou). `ReleaseTickets` devolve o que expirou. `BatchRotation` encerra o lote esgotado ou vencido e abre o próximo (`ticketing:rotate-batches`, a cada minuto, e na hora em que o lote esgota). `TicketInventoryConcurrencyTest` prova com 12 processos PHP simultâneos que não há venda além do estoque. Página pública em `GET /public/editions/{id}/tickets?code=`. Cupons (`coupons`: código guardado e comparado em maiúsculas, percentual ou valor fixo por pedido, limite de usos, validade, ingressos aplicáveis): `CouponPricing::quote()` calcula desconto e total em centavos (percentual arredonda para baixo, valor fixo nunca deixa negativo) e diz se precisa de pagamento (cortesia de 100% não passa pelo gateway); `RedeemCoupon` gasta um uso com `UPDATE ... WHERE used < max_uses` e grava o uso em `coupon_redemptions`; `ReleaseCouponRedemption` devolve o uso uma vez só. Cupom usado não muda de código nem é removido (pausa). `CouponConcurrencyTest` prova com processos simultâneos que o último uso só é aprovado uma vez. Checagem pública em `POST /public/editions/{id}/coupons/check` (`throttle:checkout`). Pedidos (`orders`, `order_items` com um item por participante, preço, desconto e taxa guardados no item): `OrderStatus` define as transições (criado → aguardando pagamento → pago → reembolsado; criado ou aguardando → expirado ou cancelado) e `TransitionOrder` é o único caminho para mudar o status, com `UPDATE ... WHERE status = de` (transição concorrente não roda duas vezes), devolvendo estoque e cupom ao expirar ou cancelar e disparando `OrderStatusChanged` (auditado). `PlaceOrder` reserva estoque, gasta o cupom e cria o pedido numa transação só; total zero nasce pago, sem gateway. A taxa estimada do gateway (`gateway_fee_basis_points`) só entra no total dos tipos com `pass_fee_to_buyer`. Idempotência no banco, não no cache: `unique(edition_id, idempotency_key)` mais o hash do corpo (mesma chave com outro corpo é 409); o `EnsureIdempotencyKey` genérico guarda até resposta 422 e não serve para o checkout. Quem compra acompanha o pedido com o `access_token` (cifrado) no header `X-Order-Token`. CPF de quem paga é obrigatório quando há valor, guardado cifrado e com HMAC para o limite por pessoa (`max_tickets_per_buyer`, por e-mail ou CPF). Pagamento do pedido em `POST/GET /checkout/editions/{id}/orders/{order}/payment` (`StartOrderPayment`): campos de cartão são proibidos na requisição, o pedido vai para aguardando pagamento e o listener `SyncOrderWithCharge` confirma (ou marca reembolsado) quando a cobrança muda; valor diferente do pedido ou pedido já expirado não muda nada e fica no log. `CancelPendingCharges` cancela no gateway a cobrança de pedido expirado ou cancelado. Pedido pago guarda a conta que recebe (`payment_account_id`) e só é criado com a conta pronta ("Vendas pausadas até o teste do gateway"); `SalesReadinessGuard` impede abrir vendas com lote pago sem a conta pronta. `ticketing:expire-orders` (a cada minuto) expira reservas vencidas (`reservation_minutes`, padrão 30). Teste de processo simultâneo com SQLite usa `transaction_mode = IMMEDIATE` no script filho (transação que lê antes de escrever dá `database is locked` no SQLite). Reembolso pelo painel (`POST /ticketing/orders/{id}/refunds`, permissão `orders.refund`, do organizador e do financeiro): total ou parcial, com motivo (`RefundReason`) e observação interna, e opção de cancelar ingressos (`cancel_tickets`, todos ou `item_ids`), que ganham `cancelled_at` e devolvem a vaga ao lote. Quem estorna é o contrato `PaymentLedger` do Payments; quando o gateway aceita, o evento `RefundAccepted` faz o Ticketing somar `orders.refunded_cents`, cancelar os ingressos escolhidos, auditar `ticketing.order_refunded` e mandar o e-mail `order_refunded` para quem comprou. Ingresso válido é item sem `cancelled_at`. A taxa do gateway fica em `orders.gateway_fee_cents`. Conciliação diária (`ticketing:reconcile`, 04:00 de Brasília, ou `POST /ticketing/reconciliation/run`): reconsulta no gateway as cobranças pendentes, as pagas nos últimos 7 dias e as canceladas ou vencidas há pouco (Pix pago depois de expirar), compara com os pedidos e grava divergências em `reconciliation_issues` (`ReconciliationKind`: pago sem cobrança, cobrança sem pedido pago, valor diferente, pagamento em dobro, contestação, reembolso sem confirmação). Divergência nova vai para o log e para a visão geral; a que some sozinha é resolvida na próxima conferência; a que a organização resolve (`POST /ticketing/reconciliation/{id}/resolve`, com o que foi feito) não volta a abrir. Painel de pedidos em `/ticketing/orders` (busca por nome, e-mail ou número, filtro `status`, 25 por página; `meta.summary` traz os números da edição inteira, sem seguir o filtro: pagos, aguardando e quantos vencem até o fim do dia, reembolsos e a taxa do gateway sobre o bruto; `GET .../export` gera o CSV com os mesmos filtros, separado por ponto e vírgula, com BOM, datas no fuso da edição e escape de fórmula). O detalhe traz a cobrança em andamento (`meta.payment`, pelo `PaymentProcessor::current`) e `GET .../{id}/history` monta a linha do tempo (`Orders\OrderHistory`: criação mais o que a auditoria registrou, com o nome de quem fez). Só quem tem `edition.manage` marca como pago à mão (`POST .../mark-paid`, `MarkOrderPaid`: justificativa obrigatória gravada na auditoria como `reason` = `manual: ...`, emite os ingressos e cancela a cobrança aberta) e reenvia a cobrança (`POST .../payment-reminder`, `SendPaymentReminder`: e-mail `pix_reminder` com o link do checkout do pedido, só com a reserva valendo, auditado como `ticketing.payment_reminder_sent`). Ingressos em `tickets` (um por item do pedido, emitidos por `IssueTicketsWhenPaid` quando o pedido fica pago, inclusive o gratuito, e enviados no e-mail `order_confirmed` para o e-mail de cada participante). O QR é `PHT1.{id}.{versão}.{HMAC}` (`Tickets\QrToken`, chave `TICKETING_QR_KEY` ou derivada da `APP_KEY`): sem dado pessoal e impossível de adivinhar. Transferir (`TransferTicket`, pela pessoa ou pela organização) troca o titular, limpa crachá, empresa, camiseta e acessibilidade, sobe a versão (o QR antigo vira `replaced`), grava `ticket_transfers`, audita `ticketing.ticket_transferred` e manda o e-mail `ticket_transferred`. O check-in confere o QR pelo contrato `TicketVerifier::check` (`valid`, `unknown`, `replaced`, `cancelled`). Reembolso que cancela o item cancela o ingresso. Área do participante em `/attendee/editions/{id}/tickets` (listar, ver com QR e histórico, editar dados do crachá, transferir, reenviar): a pessoa vê o ingresso cujo `holder_user_id` é ela ou, com o e-mail verificado, cujo e-mail é o dela (e o ingresso passa a ser dela). Organização em `/ticketing/tickets` (filtros `status`, `ticket_type_id`, `tshirt_size`, `q`, `accessibility`); acessibilidade (cifrada) só aparece para quem tem `edition.manage`, nunca para financeiro ou check-in. Importação de compradores de outra plataforma (Sympla, Even3, planilha), só para quem tem `edition.manage`, em `/ticketing/imports`: o CSV (UTF-8 ou Windows-1252, separador descoberto sozinho, até `TICKETING_IMPORT_MAX_ROWS` linhas) fica no disco privado (`TICKETING_IMPORT_DISK`) e o cabeçalho ganha um mapeamento sugerido (`ColumnGuesser`, campos em `ImportField`); `PUT .../mapping` grava as colunas e liga cada valor da coluna de tipo a um tipo da edição (ou `null` para deixar essas linhas de fora, ou um tipo padrão), com prévia das primeiras linhas sem gravar nada (`ImportPreview`). `POST .../start` põe na fila o `ProcessTicketImport`, que importa um lote de `TICKETING_IMPORT_CHUNK_SIZE` linhas por execução e se coloca de volta na fila; o lote inteiro e a posição em bytes no arquivo (`byte_offset`) são gravados numa transação só, então uma queda refaz só aquele lote. Importação parada volta pelo `POST .../resume` ou sozinha pelo `ticketing:resume-imports` (a cada 5 min, para as que não avançam há 10 min). Cada linha aceita vira pedido externo (`orders.source = import`, `external_platform`, `external_reference`): pago, total zero, sem cobrança, sem conta de gateway e sem taxa, por isso fica fora da conciliação e do reembolso; linhas com o mesmo número de pedido da mesma plataforma entram no mesmo pedido. O item não tem lote (`ticket_batch_id` nulo, a venda foi em outro lugar), mas ocupa a capacidade da edição. Repetida (`RowEvaluator`) é a linha cujo código do ingresso (`order_items.external_code`, único na edição) já foi importado ou, sem código, cujo e-mail já tem ingresso válido do mesmo tipo; reimportar o mesmo arquivo não cria ninguém de novo. Linhas repetidas e rejeitadas ficam em `ticket_import_rejections` (valores cifrados), em `GET .../rejections` e em CSV em `GET .../rejections.csv`. Os ingressos são emitidos sem e-mail (`IssueTickets::handle($order, notify: false)`); o envio só sai por `POST .../email` com `confirm=true` e `recipients` igual ao número de ingressos ainda não enviados (auditado como `ticketing.import_emails_sent`). Início e fim da importação são auditados (`ticketing.import_started`, `ticketing.import_finished`), e o arquivo é apagado ao terminar. +- `payments`: a plataforma não recebe nem repassa dinheiro (ADR 0009). Cada edição cadastra a conta do próprio gateway em `payment_accounts`: driver, ambiente, credenciais em `encrypted:array` (a API só mostra os 4 últimos caracteres), titular CPF ou CNPJ com nome exibido no checkout e documento só mascarado, métodos aceitos e parcelas. Trocar de conta cria uma nova e marca a anterior com `retired_at` (só consulta e reembolso, que usa sempre a conta do pedido: `RefundCharge`). Com pedidos pagos na conta atual, a troca exige `confirm=true`; quem conta os pedidos é o contrato `AccountUsage`, implementado pelo Ticketing. Toda troca dispara `PaymentAccountChanged` e a validação dispara `PaymentAccountVerified` (auditados, sem a chave). A conta fica pronta (`PaymentAccounts::ready`) com as chaves validadas no gateway (`POST /payments/accounts/{id}/verify`) e um webhook assinado recebido em `POST /api/v1/webhooks/payments/{token}`. A conta ativa traz `webhook_url` e `last_event_at` (último evento assinado dessa conta, para o painel mostrar se o webhook continua chegando). Só a organização (`payments.gateway`) vê e mexe no gateway; o financeiro não. Drivers implementam `Contracts\PaymentGateway` e entram em `config/payments.php` → `drivers` (registro em `GatewayRegistry`). O `FakeGateway` implementa o contrato inteiro para os testes (assinatura `X-Fake-Signature` = HMAC do corpo, token `tok_declined` recusa) e fica desligado em produção. Quem recebe aparece em `GET /public/editions/{id}/payments/receiver`. Cada driver declara o que sabe fazer (`GatewayCapability`: Pix, cartão com token do navegador, cartão ou boleto na página do gateway). Driver `asaas` (`Drivers/Asaas`): `AsaasClient` com timeout, retentativa só em leitura e exclusão (criar cobrança nunca é repetido, para não cobrar duas vezes) e erro tipado (`GatewayRequestFailed::reason`, com `publicMessage()` segura para quem compra e o detalhe só no log); cliente reaproveitado pelo CPF, Pix com QR e copia e cola, cartão sempre na fatura do Asaas (`invoiceUrl`, com parcelas e retorno para `{site}/checkout/pedido/{id}`), porque a tokenização do Asaas exige o número do cartão no servidor; webhook autenticado pelo header `asaas-access-token`; status mapeados em `AsaasStatus`. Driver `mercadopago` (`Drivers/MercadoPago`): `MercadoPagoClient` com token Bearer e `X-Idempotency-Key` em todo POST (por isso pode repetir a criação depois de queda de conexão sem cobrar duas vezes), Pix pela API de pagamentos e cartão com o token do formulário do Mercado Pago no navegador (`card_token`, `card_brand`, `card_issuer` no checkout; a conta guarda a `public_key`, que o checkout recebe em `/public/editions/{id}/payments/receiver`). Webhook validado pelo `x-signature` (HMAC-SHA256 de `id:{data.id};request-id:{x-request-id};ts:{ts};`); como o corpo não traz status, o job da caixa de entrada consulta o pagamento. Status em `MercadoPagoStatus` (Pix vencido é `cancelled/expired`). Os dois drivers passam pelo mesmo `GatewayContractTest`, com um harness por driver em `tests/Support`; driver novo entra no dataset. Teste contra a conta de teste: `MERCADOPAGO_SANDBOX_ACCESS_TOKEN=... ./vendor/bin/pest --filter=sandbox`. Taxas e prazos de cada gateway para a comunidade: `../docs/guia-gateways.md`. Cobranças em `payment_charges` (uma por tentativa, `reference` = id do pedido), criadas pelo contrato `PaymentProcessor` (`ChargeService`): trava por pedido contra clique duplo, reaproveita a cobrança pendente igual e cancela a anterior ao trocar de método; status muda com `UPDATE ... WHERE status = de` e dispara `ChargeStatusChanged` uma vez. `current(refresh: true)` consulta o gateway no máximo a cada 5 s. Webhooks entram na caixa `webhook_events` (`ReceiveWebhook`): assinatura validada pelo driver (falha devolve 401, soma em `payment_accounts.webhook_rejections` e vai para o log), corpo guardado cifrado, um registro por `(conta, id do evento)` com `createOrFirst` (entrega repetida responde `duplicate: true` e não volta para a fila) e resposta 2xx antes do processamento, que roda no job `ProcessWebhookEvent`. O job não confia no status do corpo: consulta a cobrança no gateway (`PaymentProcessor::sync`), então evento falso, repetido ou fora de ordem não muda o pedido. Cobrança desconhecida ou evento sem cobrança fica `ignored`; erro fica `failed` e volta para a fila em 1, 5, 15 e 60 min (`payments:retry-webhooks`, a cada minuto, também devolve os parados em `received` ou `processing`). Depois de 5 tentativas, o aviso aparece na visão geral (`webhooks_failed`) e a organização reprocessa em `POST /payments/webhook-events/{id}/reprocess` (auditado como `payments.webhook_reprocessed`); a lista fica em `GET /payments/webhook-events?status=`. Teste de contrato contra o sandbox: `ASAAS_SANDBOX_API_KEY=... ./vendor/bin/pest --filter=sandbox` (a conta sandbox precisa de chave Pix cadastrada). Reembolsos em `payment_refunds` (`PaymentLedger::refund`): o valor é reservado antes de chamar o gateway com `UPDATE ... SET refunded_cents = refunded_cents + x WHERE refunded_cents + x <= amount_cents`, então dois reembolsos ao mesmo tempo nunca passam do pago (`RefundConcurrencyTest`). Gateway recusou: o reembolso fica `failed`, a reserva volta e `RefundFailed` é auditado. Gateway fora do ar: fica `unconfirmed` com a reserva mantida, para ninguém estornar duas vezes, e a organização registra o resultado em `POST /ticketing/orders/{id}/refunds/{refund}/settle`. Reembolso total aceito marca a cobrança como `refunded`. Rotação da `APP_KEY`: `APP_PREVIOUS_KEYS` mais `payments:reencrypt-credentials` e `ticketing:reencrypt-orders`. - `sponsors`: patrocínio por edição, tudo sob a permissão `sponsors.manage` (só organizador), em `/editions/{id}/sponsors`. Cotas (`sponsor_tiers`: valor, vagas, nulo = sem limite, e contrapartidas em texto), empresas (`sponsors`, com contato e observações), acordos (`sponsorships`, o card do funil: empresa, cota, valor, que por padrão é o preço da cota, e responsável da equipe) e meta da edição (`sponsor_settings.goal_cents`). Funil `SponsorshipStage`: prospecção, negociando, fechado, pago e perdido (com motivo). Fechado e pago ocupam vaga da cota: `EnsureTierSlot` trava a cota e conta os acordos fechados; sem vaga, mover, criar já fechado ou trocar a cota de um acordo fechado só passa com `confirm=true`, e o evento `SponsorshipStageChanged` (auditado como `sponsors.stage_changed`) registra `over_slots`. A primeira vez que o acordo fecha cria uma entrega (`sponsor_deliverables`: responsável da equipe, prazo, status) para cada contrapartida da cota. Pagamentos são registrados à mão (`sponsorship_payments`, ADR 0009) e nunca passam do valor do acordo; quando cobrem o valor, o acordo vai sozinho para pago, e remover um pagamento que deixa faltar dinheiro volta para fechado (auditado como `sponsors.payment_recorded`/`payment_removed`). Histórico de contatos em `sponsor_contacts`. Anexos (`sponsor_attachments`: contrato, logo vetorial, outro) ficam no disco privado `SPONSORS_ATTACHMENTS_DISK` (SVG sanitizado) e nunca têm link direto: `GET .../attachments/{id}/url` devolve uma URL assinada que expira em `SPONSORS_ATTACHMENTS_URL_MINUTES`, e o download (`/api/v1/sponsors/attachments/{id}/download`, middleware `signed`, sem login) sai sempre como anexo, com `nosniff` e CSP `sandbox`. `SponsorTotals` dá meta, fechado, recebido, em negociação e contagem e valor por etapa para o funil (`GET .../board`) e para a Visão geral (`indicators.sponsors`, mais a pendência de entregas atrasadas). `SponsorTiersCloner` leva cotas e meta para a próxima edição; empresas, acordos e contatos não vão. Nome de responsável e autor vem do contrato `UserAccounts` (`Http/People`). - `suppliers`: fornecedores, sob a permissão `suppliers.manage` (só organizador), em `/editions/{id}/suppliers`. O cadastro (`suppliers`, com contatos em `supplier_contacts`) é global **da comunidade**, não da plataforma: toda consulta passa por `Access\SupplierAccess`, que filtra pelo `community_id` da edição (lido do contrato `EditionDirectory::communityId`), então outra comunidade recebe 404. Nome (comparado por `name_key`, sem acento e caixa) e CNPJ/CPF não se repetem na comunidade. O contato e o documento só aparecem para quem é da equipe de alguma edição em que o fornecedor está (`canSeeContacts`); para os outros, vem `contacts: null` e `contacts_visible: false`. Na edição, o vínculo (`edition_suppliers`) tem status `SupplierStatus` (a contatar, em orçamento, contratado, recusado), responsável da equipe e valor contratado. O primeiro orçamento (`supplier_quotes`) passa para "em orçamento"; contratar exige um orçamento (que vira aceito) ou um valor, recusar exige motivo, e a mudança é auditada como `suppliers.status_changed`. O "orçado" de cada fornecedor é o menor orçamento recebido ou aceito. A lista (`GET /suppliers`, sem paginação) devolve os totais de orçado (sem os recusados) e contratado calculados sobre a mesma lista filtrada (`SupplierTotals`), que também vão para a Visão geral (`indicators.suppliers`). Histórico em `supplier_activities`: anotações da equipe com canal e registros automáticos de status, orçamento e anexo. Anexos (`supplier_attachments`: orçamento, contrato, nota fiscal) seguem o mesmo esquema dos patrocinadores: disco privado `SUPPLIERS_ATTACHMENTS_DISK` e download só por URL assinada que expira (`/api/v1/suppliers/attachments/{id}/download`). Reaproveitar fornecedor: `GET /suppliers/directory?q=` busca no cadastro da comunidade e mostra em que edições ele esteve e com que status; `POST /suppliers/directory/{supplier}` traz para esta edição como "a contatar". `SuppliersCloner` leva os contratados para a próxima edição como "a contatar", sem valores nem orçamentos. - `finance`: finanças da edição, sem nota fiscal, sob a permissão `finance.manage` (organizador e financeiro), em `/editions/{id}/finance`. A receita não é guardada: `Reports\FinanceReport` calcula na hora a partir dos contratos `Ticketing\Contracts\TicketRevenue` (pedidos pagos ou reembolsados com valor, por conta de recebimento: vendido, reembolsos, taxa do gateway real em `orders.gateway_fee_cents` ou estimada pelo percentual da edição, e líquido) e `Sponsors\Contracts\SponsorRevenue` (patrocínio recebido e a receber), com o titular de cada conta (CPF ou CNPJ, documento mascarado, inclusive contas trocadas) vindo de `PaymentAccounts::all`. Pedido gratuito e importado ficam de fora. Saldo = receita líquida recebida − despesas pagas; previsão = saldo + patrocínio a receber − despesas a pagar. Despesas (`expenses`) com categoria, fornecedor opcional da edição (contrato `Suppliers\Contracts\EditionSuppliers`), valor, vencimento, status (a pagar, paga, que exige data, ou cancelada) e comprovante no disco privado `FINANCE_RECEIPTS_DISK`, baixado só por URL assinada que expira; criar, mudar e remover são auditados (`finance.expense_*`). Categorias (`finance_categories`) com orçamento: a edição ganha as padrão (`FinanceCategory::DEFAULTS`) na primeira leitura, e o resumo compara orçado, comprometido (a pagar e paga) e pago por categoria. `GET .../export` gera XLSX com as abas Resumo, Receita por conta, Orçamento e Despesas (`Export\XlsxWriter`, sem biblioteca, com `ZipArchive`; valores como número), e `?format=csv` gera só as despesas, com ponto e vírgula e BOM. Texto que começa com `=`, `+`, `-` ou `@` ganha apóstrofo para não virar fórmula. A Visão geral recebe a pendência de despesas vencidas (só para quem tem `finance.manage`), e `FinanceCloner` leva categorias e orçamento para a próxima edição. diff --git a/backend/app-modules/payments/src/Http/Resources/PaymentAccountResource.php b/backend/app-modules/payments/src/Http/Resources/PaymentAccountResource.php index 8ac4c42..0ff2f32 100644 --- a/backend/app-modules/payments/src/Http/Resources/PaymentAccountResource.php +++ b/backend/app-modules/payments/src/Http/Resources/PaymentAccountResource.php @@ -6,8 +6,10 @@ use App\Http\Resources\ApiResource; use Illuminate\Http\Request; +use Illuminate\Support\Carbon; use PHPeste\Payments\Enums\PaymentMethod; use PHPeste\Payments\Models\PaymentAccount; +use PHPeste\Payments\Models\WebhookEventRecord; class PaymentAccountResource extends ApiResource { @@ -45,6 +47,16 @@ public function toArray(Request $request): array 'retired_at' => $this->isoDate($account->retired_at), 'created_at' => $this->isoDate($account->created_at), 'webhook_url' => $account->isActive() ? url("/api/v1/webhooks/payments/{$account->webhook_token}") : null, + // Último evento assinado que o gateway mandou para esta conta: mostra + // no painel se o webhook continua chegando depois do primeiro teste. + 'last_event_at' => $account->isActive() ? $this->isoDate($this->lastEventAt($account)) : null, ]; } + + private function lastEventAt(PaymentAccount $account): ?Carbon + { + $latest = WebhookEventRecord::query()->forEdition($account->edition_id)->where('payment_account_id', $account->id)->latest()->first(['created_at']); + + return $latest?->created_at; + } } diff --git a/backend/app-modules/payments/tests/Feature/PaymentAccountsTest.php b/backend/app-modules/payments/tests/Feature/PaymentAccountsTest.php index 9469cc2..6ff6937 100644 --- a/backend/app-modules/payments/tests/Feature/PaymentAccountsTest.php +++ b/backend/app-modules/payments/tests/Feature/PaymentAccountsTest.php @@ -120,6 +120,22 @@ function webhook(object $test, string $url, string $body, string $secret = WEBHO ->assertJsonPath('data', ['driver' => 'fake', 'public_key' => null, 'holder_name' => 'Fulana de Tal, responsável financeira da PHPeste 2027', 'holder_type' => 'individual', 'methods' => ['pix', 'card'], 'max_installments' => 3, 'pix_expiration_minutes' => 30, 'sandbox' => true, 'ready' => true]); }); +it('mostra quando chegou o último evento do webhook da conta ativa', function (): void { + $id = $this->postJson($this->base, accountPayload())->json('data.id'); + $this->getJson($this->base)->assertJsonPath('data.active.last_event_at', null); + + $url = parse_url((string) $this->getJson($this->base)->json('data.active.webhook_url'), PHP_URL_PATH); + $this->travel(5)->minutes(); + webhook($this, $url, '{"id":"evt_1","type":"ping"}')->assertOk(); + + $this->getJson($this->base) + ->assertJsonPath('data.active.id', $id) + ->assertJsonPath('data.active.last_event_at', now()->utc()->toIso8601ZuluString()); + + $this->postJson($this->base, accountPayload(['api_key' => 'nova_chave_3333']))->assertCreated(); + $this->getJson($this->base)->assertJsonPath('data.active.last_event_at', null)->assertJsonPath('data.previous.0.last_event_at', null); +}); + it('trocar a conta cria uma nova, guarda a antiga só para consulta e audita sem expor a chave', function (): void { $old = $this->postJson($this->base, accountPayload())->json('data.id'); $new = $this->postJson($this->base, accountPayload(['api_key' => 'nova_chave_produção_wxyz', 'environment' => 'production', 'holder_type' => 'company', 'holder_name' => 'Associação PHP Paraíba', 'holder_document' => '11.222.333/0001-81'])) diff --git a/backend/app-modules/ticketing/src/Http/Controllers/OrderController.php b/backend/app-modules/ticketing/src/Http/Controllers/OrderController.php index 96bbdcd..d172ce5 100644 --- a/backend/app-modules/ticketing/src/Http/Controllers/OrderController.php +++ b/backend/app-modules/ticketing/src/Http/Controllers/OrderController.php @@ -32,11 +32,14 @@ class OrderController * Pedidos da edição, do mais novo para o mais antigo. `status` filtra pela * situação; `q` procura no nome, no e-mail ou no número (com ou sem #). */ - public function index(Request $request): AnonymousResourceCollection + public function index(Request $request, EditionDirectory $editions, CurrentEdition $currentEdition): AnonymousResourceCollection { Gate::authorize(EditionPermission::ViewOrders->value); - return OrderResource::collection($this->filtered($request)->with('items')->paginate(25)); + $timezone = $editions->summary((string) $currentEdition->id())['timezone'] ?? 'America/Fortaleza'; + + return OrderResource::collection($this->filtered($request)->with('items')->paginate(25)) + ->additional(['meta' => ['summary' => $this->summary($timezone)]]); } /** @@ -125,6 +128,29 @@ public function remind(Request $request, SendPaymentReminder $reminder): JsonRes return response()->json(['data' => ['delivery_id' => $reminder->handle($this->order($request), $this->actor($request))]], 202); } + /** + * Números da edição inteira para o topo da lista (não seguem o filtro): + * pagos, aguardando (e quantos vencem até o fim do dia), reembolsos e a + * taxa do gateway sobre o bruto recebido. + * + * @return array{paid: int, awaiting: int, awaiting_expiring_today: int, refunds: int, refunded_cents: int, gross_cents: int, gateway_fee_cents: int} + */ + private function summary(string $timezone): array + { + $received = [OrderStatus::Paid->value, OrderStatus::Refunded->value]; + $endOfDay = now($timezone)->endOfDay()->utc(); + + return [ + 'paid' => Order::query()->where('status', OrderStatus::Paid->value)->count(), + 'awaiting' => Order::query()->where('status', OrderStatus::AwaitingPayment->value)->count(), + 'awaiting_expiring_today' => Order::query()->where('status', OrderStatus::AwaitingPayment->value)->where('expires_at', '<=', $endOfDay)->count(), + 'refunds' => Order::query()->where('refunded_cents', '>', 0)->count(), + 'refunded_cents' => (int) Order::query()->sum('refunded_cents'), + 'gross_cents' => (int) Order::query()->whereIn('status', $received)->sum('total_cents'), + 'gateway_fee_cents' => (int) Order::query()->whereIn('status', $received)->sum('gateway_fee_cents'), + ]; + } + /** * @return EloquentBuilder */ diff --git a/backend/app-modules/ticketing/tests/Feature/OrderManagementTest.php b/backend/app-modules/ticketing/tests/Feature/OrderManagementTest.php index fa3fbc6..806dd01 100644 --- a/backend/app-modules/ticketing/tests/Feature/OrderManagementTest.php +++ b/backend/app-modules/ticketing/tests/Feature/OrderManagementTest.php @@ -162,6 +162,28 @@ function memberAs(object $test, EditionRole $role): User expect($all)->toHaveCount(2)->and($all[1])->toContain('Caio Reis'); }); +it('a lista traz o resumo da edição inteira, sem seguir o filtro', function (): void { + $paid = awaitingOrder($this, 'Ana Souza', 'pedido-1'); + awaitingOrder($this, 'Caio Reis', 'pedido-2'); + Sanctum::actingAs($this->organizer); + $this->postJson("{$this->api}/{$paid->id}/mark-paid", ['justification' => 'Recebido em dinheiro na secretaria'])->assertOk(); + Order::query()->forEdition($this->edition->id)->whereKey($paid->id)->update(['gateway_fee_cents' => 1_497, 'refunded_cents' => 5_000]); + + $this->getJson("{$this->api}?status=paid") + ->assertOk() + ->assertJsonCount(1, 'data') + ->assertJsonPath('meta.total', 1) + ->assertJsonPath('meta.summary', [ + 'paid' => 1, + 'awaiting' => 1, + 'awaiting_expiring_today' => 1, + 'refunds' => 1, + 'refunded_cents' => 5_000, + 'gross_cents' => 30_000, + 'gateway_fee_cents' => 1_497, + ]); +}); + it('outra edição não enxerga pedido nem histórico', function (): void { $order = awaitingOrder($this); $other = Edition::factory()->status(EditionStatus::SalesOpen)->create(); diff --git a/docs/arquitetura/PHPeste_Arquitetura.pdf b/docs/arquitetura/PHPeste_Arquitetura.pdf index eb94ee1..6d4ac4e 100644 Binary files a/docs/arquitetura/PHPeste_Arquitetura.pdf and b/docs/arquitetura/PHPeste_Arquitetura.pdf differ diff --git a/docs/arquitetura/fonte/arquitetura.html b/docs/arquitetura/fonte/arquitetura.html index 67f6397..6870ca0 100644 --- a/docs/arquitetura/fonte/arquitetura.html +++ b/docs/arquitetura/fonte/arquitetura.html @@ -54,8 +54,8 @@ .shots { display: grid; gap: 5mm; width: 100%; height: 100%; align-items: start; } .two-shots { grid-template-columns: 1fr 1fr; } .mosaic { grid-template-columns: 1.05fr 1fr; grid-template-rows: 1fr 1fr; } -.sales { grid-template-columns: repeat(2, 1fr); } -.sales figure img { max-height: 140mm; } +.sales { grid-template-columns: repeat(3, 1fr); } +.sales figure img { aspect-ratio: 1440 / 1000; object-fit: cover; object-position: top; } .mosaic .big { grid-row: span 2; } .mosaic figure:not(.big) img { max-height: 64mm; } figure { margin: 0; display: flex; flex-direction: column; gap: 1.5mm; min-height: 0; } @@ -108,7 +108,7 @@

Conteúdo

chamada ou dependência assíncrono (evento, fila, webhook) -
Fonte: código da main, backend/CLAUDE.md, docs/produto.md e ADRs 0001–0009.19/11/2026 · A15 (tela de pedidos) · página 1
+
Fonte: código da main, backend/CLAUDE.md, docs/produto.md e ADRs 0001–0009.19/11/2026 · A16 (tela de pagamentos) · página 1
@@ -215,7 +215,7 @@

Visão geral do sistema

  • Painel e site são projetos separados (decisão: front-admin SPA, front-public SSR). O token é Bearer do Sanctum nos dois (ADR 0005).
  • Fila e agendador rodam a mesma imagem do backend (horizon e scheduler no infra/docker-compose.yml).
-
PHPeste Platform · Arquitetura19/11/2026 · A15 (tela de pedidos) · página 2
+
PHPeste Platform · Arquitetura19/11/2026 · A16 (tela de pagamentos) · página 2
@@ -290,7 +290,7 @@

Tenancy: comunidade, edição e o que é global

community_id
  • Por que não um banco por comunidade: a mesma pessoa palestra no PHPeste de um ano e compra ingresso no outro, e o perfil dela é um só.
  • Dado de edição que vai para a próxima ("criar edição a partir da anterior") é copiado por um EditionCloner de cada módulo, nunca dado de pessoa.
-
PHPeste Platform · Arquitetura19/11/2026 · A15 (tela de pedidos) · página 3
+
PHPeste Platform · Arquitetura19/11/2026 · A16 (tela de pagamentos) · página 3
@@ -358,7 +358,7 @@

Como uma requisição encontra a edição

O site chama /public/resolve com o host da requisição, recebe edition_id e o domínio principal e redireciona se for preciso (ADR 0008). O host é normalizado (minúsculas, sem porta, IDN em punycode) e nunca é usado para montar URL sem passar pela tabela edition_domains. -
PHPeste Platform · Arquitetura19/11/2026 · A15 (tela de pedidos) · página 4
+
PHPeste Platform · Arquitetura19/11/2026 · A16 (tela de pagamentos) · página 4
@@ -424,7 +424,7 @@

Ciclo de vida da edição

palestrantes, patrocínio, fornecedores), pendências com caminho e filtro (propostas sem revisor, divergência na conciliação, entregas e despesas vencidas) e marcos. O Community filtra cada pendência pela permissão de quem vê: o voluntário não vê pendência de finanças. -
PHPeste Platform · Arquitetura19/11/2026 · A15 (tela de pedidos) · página 5
+
PHPeste Platform · Arquitetura19/11/2026 · A16 (tela de pagamentos) · página 5
@@ -523,7 +523,7 @@

Os 15 módulos do backend

casca -
PHPeste Platform · Arquitetura19/11/2026 · A15 (tela de pedidos) · página 6
+
PHPeste Platform · Arquitetura19/11/2026 · A16 (tela de pagamentos) · página 6
@@ -590,7 +590,7 @@

Como os módulos conversam

EditionMailer::send(...): todo e-mail, com o tema da edição
  • Ponto de extensão é registrado com $app->tag([...], Contrato::TAG): o Community não conhece os módulos, só a tag. Módulo novo aparece na Visão geral e na clonagem sem mexer no Community. O mesmo vale para TaskLinkProvider (Tasks): Suppliers e Sponsors registram o que uma tarefa pode apontar, e o Program vai registrar a sessão.
-
PHPeste Platform · Arquitetura19/11/2026 · A15 (tela de pedidos) · página 7
+
PHPeste Platform · Arquitetura19/11/2026 · A16 (tela de pagamentos) · página 7
@@ -692,7 +692,7 @@

Banco de dados por domínio

cache · cache_locks sessions
  • Dinheiro sempre em centavos (inteiro). Dado sensível cifrado no banco: CPF de quem compra, credenciais do gateway, acessibilidade, corpo de webhook, linhas de importação. APP_PREVIOUS_KEYS + comandos *:reencrypt-* para trocar a chave.
  • Estoque e cupom nunca são lidos e depois gravados: UPDATE … WHERE allocated + q <= quantity. Testes com 12 processos simultâneos provam que não vende além do lote.
-
PHPeste Platform · Arquitetura19/11/2026 · A15 (tela de pedidos) · página 8
+
PHPeste Platform · Arquitetura19/11/2026 · A16 (tela de pagamentos) · página 8
@@ -713,7 +713,7 @@

Como funciona

  • Palestrante e participante não têm papel: entram pelas rotas de edição publicada.
  • -
    PHPeste Platform · Arquitetura19/11/2026 · A15 (tela de pedidos) · página 9
    +
    PHPeste Platform · Arquitetura19/11/2026 · A16 (tela de pagamentos) · página 9
    @@ -787,7 +787,7 @@

    Ingresso: da compra ao QR

    ticketing:expire-orders (1/min) devolve estoque de reserva vencida · ticketing:rotate-batches abre o próximo lote payments:retry-webhooks (1, 5, 15, 60 min) · ticketing:reconcile (diário) grava divergência com o gateway
    • Reembolso: PaymentLedger::refund reserva o valor antes de chamar o gateway (dois reembolsos ao mesmo tempo nunca passam do pago). Pedido importado de outra plataforma entra pago, sem cobrança, e não passa por reembolso nem conciliação. Pagamento recebido fora do gateway é marcado à mão pela organização (MarkOrderPaid), com justificativa na auditoria, emissão dos ingressos e cancelamento da cobrança aberta.
    -
    PHPeste Platform · Arquitetura19/11/2026 · A15 (tela de pedidos) · página 10
    +
    PHPeste Platform · Arquitetura19/11/2026 · A16 (tela de pagamentos) · página 10
    @@ -863,7 +863,7 @@

    CFP: da proposta à grade

    Configurar CFP (A10) · Avaliar propostas com teclado (A11) · Palestrantes: lista, cobertura e detalhe (A12) · no site público: formulário de proposta e área do palestrante com entrar pelo GitHub (P03, P11). -
    PHPeste Platform · Arquitetura19/11/2026 · A15 (tela de pedidos) · página 11
    +
    PHPeste Platform · Arquitetura19/11/2026 · A16 (tela de pagamentos) · página 11
    @@ -916,7 +916,7 @@

    Dinheiro: patrocínio, fornecedores e finanças

    ADR 0009: a plataforma não recebe nem repassa dinheiro Cada edição cadastra a conta do próprio gateway; a API valida as chaves e um webhook assinado antes de abrir vendas. Credenciais cifradas; a API só mostra os 4 últimos caracteres. -
    PHPeste Platform · Arquitetura19/11/2026 · A15 (tela de pedidos) · página 12
    +
    PHPeste Platform · Arquitetura19/11/2026 · A16 (tela de pagamentos) · página 12
    @@ -946,7 +946,7 @@

    Auditoria

  • Segredo removido, dado pessoal mascarado; o model recusa update e delete.
  • -
    PHPeste Platform · Arquitetura19/11/2026 · A15 (tela de pedidos) · página 13
    +
    PHPeste Platform · Arquitetura19/11/2026 · A16 (tela de pagamentos) · página 13
    @@ -956,7 +956,7 @@

    Segurança

    TemaComo está
    AutenticaçãoSanctum Bearer, um token por dispositivo com expiração (SANCTUM_EXPIRATION_MINUTES); revogar é imediato. Senha mínima de 10 e checagem de vazamento.
    IsolamentoEscopo global por edição; outra comunidade recebe 404; arch test impede módulo de depender de App\ e controller de usar $request->all().
    Rate limitLimiters nomeados: login, password-reset, checkout, webhooks, configuráveis por .env.
    Headers e CORSCSP, HSTS, nosniff, Referrer-Policy, Permissions-Policy. CORS por ambiente e, em /public/*, só a origem do site próprio da edição.
    Dados sensíveisCifrados no banco (CPF, credenciais, acessibilidade, webhooks). Logs JSON com password, token, secret e cartão redigidos automaticamente.
    ArquivosDisco privado; download só por URL assinada que expira (10 min), sempre como anexo, com nosniff e CSP sandbox. SVG sanitizado.
    PagamentoSem dado de cartão na API; webhook com assinatura do driver e reconsulta ao gateway; idempotência no banco (unique(edition_id, idempotency_key)).
    SegredosADR 0006: nada de segredo no repositório; APP_PREVIOUS_KEYS para trocar a chave sem perder o que já foi cifrado.
    LGPDEncarregado e política por edição, anonimização após o evento (B43 em aberto). Decisão em aberto: comunidade controladora, PHPeste operador.
    -
    PHPeste Platform · Arquitetura19/11/2026 · A15 (tela de pedidos) · página 14
    +
    PHPeste Platform · Arquitetura19/11/2026 · A16 (tela de pagamentos) · página 14
    @@ -1031,7 +1031,7 @@

    Desenvolvimento, CI e deploy

    Em aberto para o evento teste de carga, backups, runbook do dia do evento (B45) · dados de demonstração e documentação publicada (B46) -
    PHPeste Platform · Arquitetura19/11/2026 · A15 (tela de pedidos) · página 15
    +
    PHPeste Platform · Arquitetura19/11/2026 · A16 (tela de pagamentos) · página 15
    @@ -1044,7 +1044,7 @@

    Telas: o design do painel

    Tokens do tema Sertão
    Design: tokens do tema Sertão
    -
    PHPeste Platform · Arquitetura19/11/2026 · A15 (tela de pedidos) · página 16
    +
    PHPeste Platform · Arquitetura19/11/2026 · A16 (tela de pagamentos) · página 16
    @@ -1058,7 +1058,7 @@

    Telas: o painel em uso

    Login
    Entrar com e-mail e senha ou GitHub
    -
    PHPeste Platform · Arquitetura19/11/2026 · A15 (tela de pedidos) · página 17
    +
    PHPeste Platform · Arquitetura19/11/2026 · A16 (tela de pagamentos) · página 17
    @@ -1066,9 +1066,9 @@

    Telas: o painel em uso

    Telas: vendas e organização

    As telas do Marco 2 conforme ficam prontas. Mesma fonte dos outros prints: o painel rodando com a API simulada.

    -
    Ingressos: tipos e lotes com o preço, o que a edição recebe depois da taxa do gateway, vendidos e situação. Cupons e regras da venda nas outras abas.
    Pedidos: busca e filtro por situação, e o detalhe com itens, pagamento, reembolsos e histórico (auditoria). Reembolso com aviso de taxa e confirmação explícita; marcar como pago exige justificativa.
    +
    Ingressos: tipos e lotes com o preço, o que a edição recebe depois da taxa do gateway, vendidos e situação. Cupons e regras da venda nas outras abas.
    Pedidos: números da edição no topo (pagos, aguardando, reembolsos, taxa do gateway), busca e filtro por situação, e o detalhe com itens, pagamento, reembolsos e histórico (auditoria). Reembolso com aviso de taxa e confirmação explícita; marcar como pago exige justificativa.
    Pagamentos (só a organização): gateway da comunidade com chave mascarada, etapas para abrir vendas e Testar conexão, prévia do recebedor no checkout, métodos aceitos, webhook com o último evento e os últimos eventos do gateway com reprocessar.
    -
    PHPeste Platform · Arquitetura19/11/2026 · A15 (tela de pedidos) · página 18
    +
    PHPeste Platform · Arquitetura19/11/2026 · A16 (tela de pagamentos) · página 18
    @@ -1076,8 +1076,8 @@

    Telas: vendas e organização

    Onde estamos e o que falta

    Os milestones do GitHub e o board PHPeste Platform são a fonte da verdade do andamento; esta página é o retrato no dia da geração.

    -
    MarcoSituaçãoO que tem
    Marco 0 · FundaçãoConcluídoesqueleto Laravel 13, módulos, Docker, convenções de API, segurança base, painel e componentes
    Marco 1 · Núcleo e CFPBackend concluídoIdentity, Community, Branding, Notifications, CFP inteiro, Audit; telas A05–A12, A24, A25; site P01, P03
    Marco 2 · IngressosBackend concluído, telas em andamentobackend: ingressos, cupons, pedidos, Asaas, Mercado Pago, webhooks, reembolso, conciliação, QR, importação, patrocínio, fornecedores, finanças, tarefas, webhooks do Resend; telas prontas: A14 (ingressos), A15 (pedidos e reembolso); faltam A16–A23 e P04–P06
    Marco 3 · Evento prontoA fazergrade e programação (B35–B37), check-in com modo offline (B38–B39), push (B40), API pública e checkout embutível (B41), site da edição (P02, P07–P09)
    Marco 4 · OperaçãoA fazerengajamento (B42), LGPD (B43), relatórios (B44), carga, backups e runbook (B45), dados de demonstração (B46), acessibilidade e e2e (A26, A27)
    +
    MarcoSituaçãoO que tem
    Marco 0 · FundaçãoConcluídoesqueleto Laravel 13, módulos, Docker, convenções de API, segurança base, painel e componentes
    Marco 1 · Núcleo e CFPBackend concluídoIdentity, Community, Branding, Notifications, CFP inteiro, Audit; telas A05–A12, A24, A25; site P01, P03
    Marco 2 · IngressosBackend concluído, telas em andamentobackend: ingressos, cupons, pedidos, Asaas, Mercado Pago, webhooks, reembolso, conciliação, QR, importação, patrocínio, fornecedores, finanças, tarefas, webhooks do Resend; telas prontas: A14 (ingressos), A15 (pedidos e reembolso), A16 (pagamentos e gateway); faltam A17–A23 e P04–P06
    Marco 3 · Evento prontoA fazergrade e programação (B35–B37), check-in com modo offline (B38–B39), push (B40), API pública e checkout embutível (B41), site da edição (P02, P07–P09)
    Marco 4 · OperaçãoA fazerengajamento (B42), LGPD (B43), relatórios (B44), carga, backups e runbook (B45), dados de demonstração (B46), acessibilidade e e2e (A26, A27)
    -
    PHPeste Platform · Arquitetura19/11/2026 · A15 (tela de pedidos) · página 19
    +
    PHPeste Platform · Arquitetura19/11/2026 · A16 (tela de pagamentos) · página 19
    diff --git a/docs/arquitetura/fonte/gerar.py b/docs/arquitetura/fonte/gerar.py index cca66a6..743bcbc 100644 --- a/docs/arquitetura/fonte/gerar.py +++ b/docs/arquitetura/fonte/gerar.py @@ -13,7 +13,7 @@ from pathlib import Path OUT = Path(__file__).with_name("arquitetura.html") -RETRATO = "19/11/2026 · A15 (tela de pedidos)" +RETRATO = "19/11/2026 · A16 (tela de pagamentos)" # ---------------------------------------------------------------- estilo --- # Cores do tema Sertão (front-admin) para o que é da plataforma, e neutras @@ -562,7 +562,8 @@ def legend(): # Cada tela do Marco 2 que fica pronta entra aqui (prints de front-admin/e2e/capturas-arquitetura.spec.ts). SALES_SCREENS = [ ("painel-ingressos.png", "Ingressos: tipos e lotes com o preço, o que a edição recebe depois da taxa do gateway, vendidos e situação. Cupons e regras da venda nas outras abas."), - ("painel-pedidos.png", "Pedidos: busca e filtro por situação, e o detalhe com itens, pagamento, reembolsos e histórico (auditoria). Reembolso com aviso de taxa e confirmação explícita; marcar como pago exige justificativa."), + ("painel-pedidos.png", "Pedidos: números da edição no topo (pagos, aguardando, reembolsos, taxa do gateway), busca e filtro por situação, e o detalhe com itens, pagamento, reembolsos e histórico (auditoria). Reembolso com aviso de taxa e confirmação explícita; marcar como pago exige justificativa."), + ("painel-pagamentos.png", "Pagamentos (só a organização): gateway da comunidade com chave mascarada, etapas para abrir vendas e Testar conexão, prévia do recebedor no checkout, métodos aceitos, webhook com o último evento e os últimos eventos do gateway com reprocessar."), ] pages.append(page(18, "Telas", "Telas: vendas e organização", "As telas do Marco 2 conforme ficam prontas. Mesma fonte dos outros prints: o painel rodando com a API simulada.", @@ -572,7 +573,7 @@ def legend(): status = [ ("Marco 0 · Fundação", "Concluído", "esqueleto Laravel 13, módulos, Docker, convenções de API, segurança base, painel e componentes"), ("Marco 1 · Núcleo e CFP", "Backend concluído", "Identity, Community, Branding, Notifications, CFP inteiro, Audit; telas A05–A12, A24, A25; site P01, P03"), - ("Marco 2 · Ingressos", "Backend concluído, telas em andamento", "backend: ingressos, cupons, pedidos, Asaas, Mercado Pago, webhooks, reembolso, conciliação, QR, importação, patrocínio, fornecedores, finanças, tarefas, webhooks do Resend; telas prontas: A14 (ingressos), A15 (pedidos e reembolso); faltam A16–A23 e P04–P06"), + ("Marco 2 · Ingressos", "Backend concluído, telas em andamento", "backend: ingressos, cupons, pedidos, Asaas, Mercado Pago, webhooks, reembolso, conciliação, QR, importação, patrocínio, fornecedores, finanças, tarefas, webhooks do Resend; telas prontas: A14 (ingressos), A15 (pedidos e reembolso), A16 (pagamentos e gateway); faltam A17–A23 e P04–P06"), ("Marco 3 · Evento pronto", "A fazer", "grade e programação (B35–B37), check-in com modo offline (B38–B39), push (B40), API pública e checkout embutível (B41), site da edição (P02, P07–P09)"), ("Marco 4 · Operação", "A fazer", "engajamento (B42), LGPD (B43), relatórios (B44), carga, backups e runbook (B45), dados de demonstração (B46), acessibilidade e e2e (A26, A27)"), ] @@ -634,8 +635,8 @@ def legend(): .shots { display: grid; gap: 5mm; width: 100%; height: 100%; align-items: start; } .two-shots { grid-template-columns: 1fr 1fr; } .mosaic { grid-template-columns: 1.05fr 1fr; grid-template-rows: 1fr 1fr; } -.sales { grid-template-columns: repeat(2, 1fr); } -.sales figure img { max-height: 140mm; } +.sales { grid-template-columns: repeat(3, 1fr); } +.sales figure img { aspect-ratio: 1440 / 1000; object-fit: cover; object-position: top; } .mosaic .big { grid-row: span 2; } .mosaic figure:not(.big) img { max-height: 64mm; } figure { margin: 0; display: flex; flex-direction: column; gap: 1.5mm; min-height: 0; } diff --git a/docs/arquitetura/telas/painel-pagamentos.png b/docs/arquitetura/telas/painel-pagamentos.png new file mode 100644 index 0000000..d79b2c2 Binary files /dev/null and b/docs/arquitetura/telas/painel-pagamentos.png differ diff --git a/docs/arquitetura/telas/painel-pedidos.png b/docs/arquitetura/telas/painel-pedidos.png index 34f9a3a..9e4c29c 100644 Binary files a/docs/arquitetura/telas/painel-pedidos.png and b/docs/arquitetura/telas/painel-pedidos.png differ diff --git a/front-admin/CLAUDE.md b/front-admin/CLAUDE.md index 687ac52..8b2fbfc 100644 --- a/front-admin/CLAUDE.md +++ b/front-admin/CLAUDE.md @@ -53,6 +53,7 @@ app/ palestrantes/[id].vue # módulo speakers: perfil, palestras, viagem e hospedagem e confirmação ingressos/index.vue # módulo tickets: tipos e lotes com valor líquido e prévia do checkout, cupons e regras da venda pedidos/index.vue # módulo orders: lista com busca e filtro, detalhe com pagamento e histórico, reembolso, marcar como pago, reenviar cobrança, CSV + pagamentos/index.vue # módulo payments (só organização): conectar/trocar gateway, testar conexão, webhook e último evento, prévia do recebedor, eventos com reprocessar configuracoes.vue # módulo editionSettings: dados e etapa da edição, domínio e site próprio, privacidade e auditoria meu-perfil.vue # módulo myProfile: conta, senha, sessões ativas e notificações index.vue diff --git a/front-admin/app/application/locales/pt-br/index.ts b/front-admin/app/application/locales/pt-br/index.ts index 5abf12d..a91205c 100644 --- a/front-admin/app/application/locales/pt-br/index.ts +++ b/front-admin/app/application/locales/pt-br/index.ts @@ -10,6 +10,7 @@ import team from '../../../modules/team/locales/pt-br' import cfpSettings from '../../../modules/cfpSettings/locales/pt-br' import tickets from '../../../modules/tickets/locales/pt-br' import orders from '../../../modules/orders/locales/pt-br' +import payments from '../../../modules/payments/locales/pt-br' import cfpReview from '../../../modules/cfpReview/locales/pt-br' import speakers from '../../../modules/speakers/locales/pt-br' import editionSettings from '../../../modules/editionSettings/locales/pt-br' @@ -32,6 +33,7 @@ export default { cfpSettings, tickets, orders, + payments, cfpReview, speakers, editionSettings, diff --git a/front-admin/app/application/shared/components/layout/SideNav.test.ts b/front-admin/app/application/shared/components/layout/SideNav.test.ts index 0740e58..c93d2db 100644 --- a/front-admin/app/application/shared/components/layout/SideNav.test.ts +++ b/front-admin/app/application/shared/components/layout/SideNav.test.ts @@ -33,7 +33,7 @@ describe('SideNav', () => { await asRole('financeiro') const wrapper = await mountSuspended(SideNav) const labels = wrapper.findAll('nav a').map((a) => a.text()) - expect(labels).toEqual(['Visão geral', 'Ingressos', 'Pedidos', 'Pagamentos', 'Finanças']) + expect(labels).toEqual(['Visão geral', 'Ingressos', 'Pedidos', 'Finanças']) expect(wrapper.text()).not.toContain('Configurar CFP') expect(wrapper.findAll('nav h2').map((h) => h.text())).toEqual(['Edição', 'Vendas', 'Organização']) }) diff --git a/front-admin/app/application/shared/layout/navigation.test.ts b/front-admin/app/application/shared/layout/navigation.test.ts index ab1d4f2..842fedb 100644 --- a/front-admin/app/application/shared/layout/navigation.test.ts +++ b/front-admin/app/application/shared/layout/navigation.test.ts @@ -22,7 +22,7 @@ describe('navegação do painel', () => { }) it.each([ - ['financeiro', ['overview', 'tickets', 'orders', 'payments', 'finance']], + ['financeiro', ['overview', 'tickets', 'orders', 'finance']], ['avaliador', ['overview', 'review']], ['checkin', ['overview', 'checkin']], ['voluntario', ['overview', 'checkin']], diff --git a/front-admin/app/application/shared/layout/navigation.ts b/front-admin/app/application/shared/layout/navigation.ts index b163e15..1eaec80 100644 --- a/front-admin/app/application/shared/layout/navigation.ts +++ b/front-admin/app/application/shared/layout/navigation.ts @@ -34,7 +34,7 @@ export const NAV_ITEMS: NavItem[] = [ { key: 'schedule', to: '/grade', group: 'content', icon: CalendarDays, roles: ['organizador'] }, { key: 'tickets', to: '/ingressos', group: 'sales', icon: Ticket, roles: ['organizador', 'financeiro'] }, { key: 'orders', to: '/pedidos', group: 'sales', icon: Receipt, roles: ['organizador', 'financeiro'] }, - { key: 'payments', to: '/pagamentos', group: 'sales', icon: CreditCard, roles: ['organizador', 'financeiro'] }, + { key: 'payments', to: '/pagamentos', group: 'sales', icon: CreditCard, roles: ['organizador'] }, { key: 'checkin', to: '/participantes', group: 'sales', icon: ScanLine, roles: ['organizador', 'checkin', 'voluntario'] }, { key: 'sponsors', to: '/patrocinadores', group: 'organization', icon: Star, roles: ['organizador'] }, { key: 'suppliers', to: '/fornecedores', group: 'organization', icon: Truck, roles: ['organizador'] }, diff --git a/front-admin/app/infrastructure/http/api-types.d.ts b/front-admin/app/infrastructure/http/api-types.d.ts index d605e9a..1c33704 100644 --- a/front-admin/app/infrastructure/http/api-types.d.ts +++ b/front-admin/app/infrastructure/http/api-types.d.ts @@ -388,6 +388,22 @@ export interface paths { patch?: never; trace?: never; }; + "/v1/editions/{edition}/cfp/reviewers": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get: operations["cfp.reviewers.index"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; "/v1/editions/{edition}/cfp/assignments/auto": { parameters: { query?: never; @@ -484,6 +500,86 @@ export interface paths { patch?: never; trace?: never; }; + "/v1/editions/{edition}/cfp/speakers": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get: operations["cfp.speakers.index"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v1/editions/{edition}/cfp/speakers/invite": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + post: operations["cfp.speakers.invite"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v1/editions/{edition}/cfp/speakers/remind": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + post: operations["cfp.speakers.remind"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v1/editions/{edition}/cfp/speakers/{user}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get: operations["cfp.speakers.show"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v1/editions/{edition}/cfp/speakers/{user}/attendance": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + post: operations["cfp.speakers.attendance"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; "/v1/editions/{edition}/cfp/confirmations": { parameters: { query?: never; @@ -1012,6 +1108,22 @@ export interface paths { patch?: never; trace?: never; }; + "/v1/editions/{edition}/overview": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get: operations["community.editions.overview"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; "/v1/editions/{edition}/clone-options": { parameters: { query?: never; @@ -1060,91 +1172,110 @@ export interface paths { patch?: never; trace?: never; }; - "/v1/auth/register": { + "/v1/editions/{edition}/finance/summary": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; - get?: never; + get: operations["finance.summary"]; put?: never; - post: operations["auth.register"]; + post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; - "/v1/auth/login": { + "/v1/editions/{edition}/finance/export": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; - get?: never; + /** + * `format=xlsx` (padrão): resumo, receita por conta, orçamento e + * despesas em abas. `format=csv`: só as despesas, separadas por ponto e + * vírgula, que é o que o Excel em português abre direto + */ + get: operations["finance.export"]; put?: never; - post: operations["auth.login"]; + post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; - "/v1/auth/logout": { + "/v1/editions/{edition}/finance/suppliers": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; - get?: never; + /** Fornecedores da edição para escolher na despesa */ + get: operations["finance.suppliers"]; put?: never; - post: operations["auth.logout"]; + post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; - "/v1/auth/logout-all": { + "/v1/editions/{edition}/finance/categories": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; - get?: never; + get: operations["finance.categories.index"]; put?: never; - post: operations["auth.logout-all"]; + post: operations["finance.categories.store"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; - "/v1/auth/email/verify/{id}/{hash}": { + "/v1/editions/{edition}/finance/categories/{category}": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; - /** - * A assinatura da URL (id + hash + expiração) já foi conferida pelo - * middleware `signed` antes de chegar aqui - */ - get: operations["verification.verify"]; + get?: never; put?: never; post?: never; + delete: operations["finance.categories.destroy"]; + options?: never; + head?: never; + patch: operations["finance.categories.update"]; + trace?: never; + }; + "/v1/editions/{edition}/finance/expenses": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** Filtros: `status`, `finance_category_id`, `edition_supplier_id`, `overdue=1` */ + get: operations["finance.expenses.index"]; + put?: never; + post: operations["finance.expenses.store"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; - "/v1/auth/email/verification-notification": { + "/v1/editions/{edition}/finance/expenses/{expense}": { parameters: { query?: never; header?: never; @@ -1153,14 +1284,14 @@ export interface paths { }; get?: never; put?: never; - post: operations["verification.send"]; - delete?: never; + post?: never; + delete: operations["finance.expenses.destroy"]; options?: never; head?: never; - patch?: never; + patch: operations["finance.expenses.update"]; trace?: never; }; - "/v1/auth/password/forgot": { + "/v1/editions/{edition}/finance/expenses/{expense}/receipt": { parameters: { query?: never; header?: never; @@ -1169,38 +1300,39 @@ export interface paths { }; get?: never; put?: never; - post: operations["auth.password.forgot"]; + post: operations["finance.expenses.receipt"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; - "/v1/auth/password/reset": { + "/v1/editions/{edition}/finance/expenses/{expense}/receipt/url": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; - get?: never; + get: operations["finance.expenses.receipt.url"]; put?: never; - post: operations["auth.password.reset"]; + post?: never; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; - "/v1/auth/password": { + "/v1/finance/receipts/{expense}/download": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; - get?: never; - put: operations["auth.password.update"]; + /** Sem login: a assinatura com expiração é a autorização */ + get: operations["finance.receipts.download"]; + put?: never; post?: never; delete?: never; options?: never; @@ -1208,39 +1340,39 @@ export interface paths { patch?: never; trace?: never; }; - "/v1/auth/github/redirect": { + "/v1/auth/register": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; - get: operations["auth.github.redirect"]; + get?: never; put?: never; - post?: never; + post: operations["auth.register"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; - "/v1/auth/github/link": { + "/v1/auth/login": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; - get: operations["auth.github.link"]; + get?: never; put?: never; - post?: never; + post: operations["auth.login"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; - "/v1/auth/github/callback": { + "/v1/auth/logout": { parameters: { query?: never; header?: never; @@ -1249,14 +1381,14 @@ export interface paths { }; get?: never; put?: never; - post: operations["auth.github.callback"]; + post: operations["auth.logout"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; - "/v1/auth/github": { + "/v1/auth/logout-all": { parameters: { query?: never; header?: never; @@ -1265,30 +1397,34 @@ export interface paths { }; get?: never; put?: never; - post?: never; - delete: operations["auth.github.unlink"]; + post: operations["auth.logout-all"]; + delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; - "/v1/me": { + "/v1/auth/email/verify/{id}/{hash}": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; - get: operations["me"]; + /** + * A assinatura da URL (id + hash + expiração) já foi conferida pelo + * middleware `signed` antes de chegar aqui + */ + get: operations["verification.verify"]; put?: never; post?: never; delete?: never; options?: never; head?: never; - patch: operations["me.update"]; + patch?: never; trace?: never; }; - "/v1/me/photo": { + "/v1/auth/email/verification-notification": { parameters: { query?: never; header?: never; @@ -1297,38 +1433,54 @@ export interface paths { }; get?: never; put?: never; - post: operations["me.photo.store"]; - delete: operations["me.photo.destroy"]; + post: operations["verification.send"]; + delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; - "/v1/me/speaker-profile": { + "/v1/auth/password/forgot": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; - get: operations["me.speaker-profile.show"]; - put: operations["me.speaker-profile.update"]; - post?: never; + get?: never; + put?: never; + post: operations["auth.password.forgot"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; - "/v1/editions/{edition}/people/{user}/speaker-profile": { + "/v1/auth/password/reset": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; - get: operations["identity.people.speaker-profile"]; + get?: never; put?: never; + post: operations["auth.password.reset"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v1/auth/password": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put: operations["auth.password.update"]; post?: never; delete?: never; options?: never; @@ -1336,14 +1488,14 @@ export interface paths { patch?: never; trace?: never; }; - "/v1/editions/{edition}/emails/templates": { + "/v1/auth/github/redirect": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; - get: operations["notifications.templates.index"]; + get: operations["auth.github.redirect"]; put?: never; post?: never; delete?: never; @@ -1352,23 +1504,23 @@ export interface paths { patch?: never; trace?: never; }; - "/v1/editions/{edition}/emails/templates/{template}": { + "/v1/auth/github/link": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; - get: operations["notifications.templates.show"]; - put: operations["notifications.templates.update"]; + get: operations["auth.github.link"]; + put?: never; post?: never; - delete: operations["notifications.templates.destroy"]; + delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; - "/v1/editions/{edition}/emails/templates/{template}/preview": { + "/v1/auth/github/callback": { parameters: { query?: never; header?: never; @@ -1377,14 +1529,14 @@ export interface paths { }; get?: never; put?: never; - post: operations["notifications.templates.preview"]; + post: operations["auth.github.callback"]; delete?: never; options?: never; head?: never; patch?: never; trace?: never; }; - "/v1/editions/{edition}/emails/templates/{template}/test": { + "/v1/auth/github": { parameters: { query?: never; header?: never; @@ -1393,30 +1545,30 @@ export interface paths { }; get?: never; put?: never; - post: operations["notifications.templates.test"]; - delete?: never; + post?: never; + delete: operations["auth.github.unlink"]; options?: never; head?: never; patch?: never; trace?: never; }; - "/v1/editions/{edition}/emails/deliveries": { + "/v1/me": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; - get: operations["notifications.deliveries.index"]; + get: operations["me"]; put?: never; post?: never; delete?: never; options?: never; head?: never; - patch?: never; + patch: operations["me.update"]; trace?: never; }; - "/v1/editions/{edition}/emails/deliveries/{delivery}/resend": { + "/v1/me/photo": { parameters: { query?: never; header?: never; @@ -1425,22 +1577,22 @@ export interface paths { }; get?: never; put?: never; - post: operations["notifications.deliveries.resend"]; - delete?: never; + post: operations["me.photo.store"]; + delete: operations["me.photo.destroy"]; options?: never; head?: never; patch?: never; trace?: never; }; - "/v1/public/editions/{edition}/unsubscribe": { + "/v1/me/speaker-profile": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; - get: operations["notifications.unsubscribe"]; - put?: never; + get: operations["me.speaker-profile.show"]; + put: operations["me.speaker-profile.update"]; post?: never; delete?: never; options?: never; @@ -1448,14 +1600,14 @@ export interface paths { patch?: never; trace?: never; }; - "/v1/ping": { + "/v1/me/sessions": { parameters: { query?: never; header?: never; path?: never; cookie?: never; }; - get: operations["ping"]; + get: operations["me.sessions.index"]; put?: never; post?: never; delete?: never; @@ -1464,702 +1616,8044 @@ export interface paths { patch?: never; trace?: never; }; -} -export type webhooks = Record; -export interface components { - schemas: { - /** AcceptInvitationRequest */ - AcceptInvitationRequest: { - name?: string | null; - password?: string | null; - device_name?: string | null; + "/v1/me/sessions/{session}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; }; - /** AddCoauthorRequest */ - AddCoauthorRequest: { - /** Format: email */ - email: string; + get?: never; + put?: never; + post?: never; + delete: operations["me.sessions.destroy"]; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v1/editions/{edition}/people/{user}/speaker-profile": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; }; - /** AddDomainRequest */ - AddDomainRequest: { - host: string; + get: operations["identity.people.speaker-profile"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v1/editions/{edition}/emails/templates": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; }; - /** ApplyThemePresetRequest */ - ApplyThemePresetRequest: { - preset: components["schemas"]["ThemePreset"]; + get: operations["notifications.templates.index"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v1/editions/{edition}/emails/templates/{template}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; }; - /** AssignReviewerRequest */ - AssignReviewerRequest: { - /** Format: uuid */ - reviewer_id: string; + get: operations["notifications.templates.show"]; + put: operations["notifications.templates.update"]; + post?: never; + delete: operations["notifications.templates.destroy"]; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v1/editions/{edition}/emails/templates/{template}/preview": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; }; - /** AutoAssignRequest */ - AutoAssignRequest: { - reviewers_per_proposal: number; + get?: never; + put?: never; + post: operations["notifications.templates.preview"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v1/editions/{edition}/emails/templates/{template}/test": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; }; - /** - * BrazilianState - * @enum {string} - */ - BrazilianState: "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"; - /** CfpCriterionResource */ - CfpCriterionResource: { - id: string; - name: string; - description: string | null; - weight: number; - position: number; - } | string[]; - /** CfpSettingsResource */ - CfpSettingsResource: { - status: string; - status_label: string; - days_until_close: number | null; - opens_at: string | null; - closes_at: string | null; - results_at: string | null; - anonymous_review: string; - require_nordeste_quota: string; - nordeste_quota_percent: string; - proposals_per_person: string; - } | string[]; - /** CfpTrackResource */ - CfpTrackResource: { - id: string; - name: string; - slots: number; - position: number; - } | string[]; - /** ChangeEditionStatusRequest */ - ChangeEditionStatusRequest: { - status: components["schemas"]["EditionStatus"]; + get?: never; + put?: never; + post: operations["notifications.templates.test"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v1/editions/{edition}/emails/deliveries": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; }; - /** ChangeMemberRoleRequest */ - ChangeMemberRoleRequest: { - role: components["schemas"]["EditionRole"]; + get: operations["notifications.deliveries.index"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v1/editions/{edition}/emails/deliveries/{delivery}/resend": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; }; - /** ChangePasswordRequest */ - ChangePasswordRequest: { - current_password?: string | null; - password: string; - password_confirmation: string; + get?: never; + put?: never; + post: operations["notifications.deliveries.resend"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v1/editions/{edition}/emails/suppressions": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; }; - /** CloneEditionRequest */ - CloneEditionRequest: { - name: string; - slug: string; - parts: ("identity" | "cfp" | "team" | "emails")[]; + get: operations["notifications.suppressions.index"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v1/editions/{edition}/emails/suppressions/{suppression}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; }; - /** CommunityResource */ - CommunityResource: { - id: string; - name: string; - slug: string; - created_at: string | null; - } | string[]; - /** DecisionsRequest */ - DecisionsRequest: { - decisions: { - /** Format: uuid */ - proposal_id: string; - decision: components["schemas"]["ProposalDecision"] | null; - }[]; + get?: never; + put?: never; + post?: never; + delete: operations["notifications.suppressions.destroy"]; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v1/webhooks/resend": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; }; - /** - * DeliveryStatus - * @enum {string} - */ - DeliveryStatus: "queued" | "sent" | "failed" | "suppressed"; - /** EditionCloneResource */ - EditionCloneResource: { - id: string; - source_edition_id: string; - target_edition_id: string | null; - name: string; - slug: string; - parts: string[]; - status: string; - error: string | null; - finished_at: string | null; - created_at: string | null; - } | string[]; - /** EditionDomainResource */ - EditionDomainResource: { + get?: never; + put?: never; + post: operations["notifications.webhooks.resend"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v1/public/editions/{edition}/unsubscribe": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get: operations["notifications.unsubscribe"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v1/editions/{edition}/payments/accounts": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get: operations["payments.accounts.index"]; + put?: never; + post: operations["payments.accounts.store"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v1/editions/{edition}/payments/accounts/{account}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch: operations["payments.accounts.update"]; + trace?: never; + }; + "/v1/editions/{edition}/payments/accounts/{account}/verify": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + post: operations["payments.accounts.verify"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v1/editions/{edition}/payments/webhook-events": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get: operations["payments.webhook-events.index"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v1/editions/{edition}/payments/webhook-events/{event}/reprocess": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + post: operations["payments.webhook-events.reprocess"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v1/public/editions/{edition}/payments/receiver": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get: operations["payments.public.receiver"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v1/webhooks/payments/{token}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + post: operations["payments.webhooks.receive"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v1/ping": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get: operations["ping"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v1/editions/{edition}/sponsors/board": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get: operations["sponsors.board"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v1/editions/{edition}/sponsors/settings": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch: operations["sponsors.settings"]; + trace?: never; + }; + "/v1/editions/{edition}/sponsors/tiers": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get: operations["sponsors.tiers.index"]; + put?: never; + post: operations["sponsors.tiers.store"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v1/editions/{edition}/sponsors/tiers/{tier}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + post?: never; + delete: operations["sponsors.tiers.destroy"]; + options?: never; + head?: never; + patch: operations["sponsors.tiers.update"]; + trace?: never; + }; + "/v1/editions/{edition}/sponsors/companies": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get: operations["sponsors.companies.index"]; + put?: never; + post: operations["sponsors.companies.store"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v1/editions/{edition}/sponsors/companies/{sponsor}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get: operations["sponsors.companies.show"]; + put?: never; + post?: never; + delete: operations["sponsors.companies.destroy"]; + options?: never; + head?: never; + patch: operations["sponsors.companies.update"]; + trace?: never; + }; + "/v1/editions/{edition}/sponsors/companies/{sponsor}/contacts": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + post: operations["sponsors.contacts.store"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v1/editions/{edition}/sponsors/companies/{sponsor}/contacts/{contact}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + post?: never; + delete: operations["sponsors.contacts.destroy"]; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v1/editions/{edition}/sponsors/companies/{sponsor}/attachments": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + post: operations["sponsors.attachments.store"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v1/editions/{edition}/sponsors/companies/{sponsor}/sponsorships": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + post: operations["sponsors.sponsorships.store"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v1/editions/{edition}/sponsors/attachments/{attachment}/url": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** URL assinada, válida por poucos minutos, para quem tem permissão agora */ + get: operations["sponsors.attachments.url"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v1/editions/{edition}/sponsors/attachments/{attachment}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + post?: never; + delete: operations["sponsors.attachments.destroy"]; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v1/editions/{edition}/sponsors/sponsorships/{sponsorship}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get: operations["sponsors.sponsorships.show"]; + put?: never; + post?: never; + delete: operations["sponsors.sponsorships.destroy"]; + options?: never; + head?: never; + patch: operations["sponsors.sponsorships.update"]; + trace?: never; + }; + "/v1/editions/{edition}/sponsors/sponsorships/{sponsorship}/move": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + post: operations["sponsors.sponsorships.move"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v1/editions/{edition}/sponsors/sponsorships/{sponsorship}/payments": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + post: operations["sponsors.payments.store"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v1/editions/{edition}/sponsors/sponsorships/{sponsorship}/payments/{payment}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + post?: never; + delete: operations["sponsors.payments.destroy"]; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v1/editions/{edition}/sponsors/sponsorships/{sponsorship}/deliverables": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + post: operations["sponsors.deliverables.store"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v1/editions/{edition}/sponsors/deliverables": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** + * Todas as entregas da edição, para a lista "o que falta entregar". + * Filtros: `status`, `owner_id`, `overdue=1` + */ + get: operations["sponsors.deliverables.index"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v1/editions/{edition}/sponsors/deliverables/{deliverable}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + post?: never; + delete: operations["sponsors.deliverables.destroy"]; + options?: never; + head?: never; + patch: operations["sponsors.deliverables.update"]; + trace?: never; + }; + "/v1/sponsors/attachments/{attachment}/download": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** + * Rota sem login: a assinatura com expiração (middleware `signed`) é a + * autorização. Sempre como download, nunca exibido no navegador, para um + * SVG ou PDF não rodar nada no domínio da API + */ + get: operations["sponsors.attachments.download"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v1/editions/{edition}/suppliers": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get: operations["suppliers.index"]; + put?: never; + post: operations["suppliers.store"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v1/editions/{edition}/suppliers/directory": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get: operations["suppliers.directory"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v1/editions/{edition}/suppliers/directory/{supplier}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + post: operations["suppliers.directory.link"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v1/editions/{edition}/suppliers/attachments/{attachment}/url": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get: operations["suppliers.attachments.url"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v1/editions/{edition}/suppliers/attachments/{attachment}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + post?: never; + delete: operations["suppliers.attachments.destroy"]; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v1/editions/{edition}/suppliers/{link}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get: operations["suppliers.show"]; + put?: never; + post?: never; + delete: operations["suppliers.destroy"]; + options?: never; + head?: never; + /** + * Edita os dados globais do fornecedor (valem para as outras edições da + * comunidade) e o responsável nesta edição + */ + patch: operations["suppliers.update"]; + trace?: never; + }; + "/v1/editions/{edition}/suppliers/{link}/status": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + /** Contratar (com orçamento aceito ou valor) e recusar (com motivo) */ + post: operations["suppliers.status"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v1/editions/{edition}/suppliers/{link}/activities": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + post: operations["suppliers.activities.store"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v1/editions/{edition}/suppliers/{link}/contacts": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + post: operations["suppliers.contacts.store"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v1/editions/{edition}/suppliers/{link}/contacts/{contact}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + post?: never; + delete: operations["suppliers.contacts.destroy"]; + options?: never; + head?: never; + patch: operations["suppliers.contacts.update"]; + trace?: never; + }; + "/v1/editions/{edition}/suppliers/{link}/quotes": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + post: operations["suppliers.quotes.store"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v1/editions/{edition}/suppliers/{link}/quotes/{quote}/reject": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + post: operations["suppliers.quotes.reject"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v1/editions/{edition}/suppliers/{link}/quotes/{quote}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + post?: never; + delete: operations["suppliers.quotes.destroy"]; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v1/editions/{edition}/suppliers/{link}/attachments": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + post: operations["suppliers.attachments.store"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v1/suppliers/attachments/{attachment}/download": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** + * Sem login: a assinatura com expiração é a autorização. Sempre como + * download, com `nosniff` e CSP `sandbox` + */ + get: operations["suppliers.attachments.download"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v1/editions/{edition}/tasks/board": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** + * `filter=mine|overdue` (padrão: todas). As contagens das colunas + * seguem o filtro + */ + get: operations["tasks.board"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v1/editions/{edition}/tasks/link-options": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** O que dá para ligar a uma tarefa, por tipo (fornecedores, patrocinadores...) */ + get: operations["tasks.link-options"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v1/editions/{edition}/tasks": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + post: operations["tasks.store"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v1/editions/{edition}/tasks/{task}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + post?: never; + delete: operations["tasks.destroy"]; + options?: never; + head?: never; + patch: operations["tasks.update"]; + trace?: never; + }; + "/v1/editions/{edition}/tasks/{task}/move": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + /** + * Devolve a coluna de destino (e a de origem) já renumeradas, para o + * painel confirmar o movimento otimista ou desfazer + */ + post: operations["tasks.move"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v1/editions/{edition}/tasks/columns": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + post: operations["tasks.columns.store"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v1/editions/{edition}/tasks/columns/reorder": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + post: operations["tasks.columns.reorder"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v1/editions/{edition}/tasks/columns/{column}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + post?: never; + delete: operations["tasks.columns.destroy"]; + options?: never; + head?: never; + patch: operations["tasks.columns.update"]; + trace?: never; + }; + "/v1/editions/{edition}/ticketing/ticket-types": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get: operations["ticketing.types.index"]; + put?: never; + post: operations["ticketing.types.store"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v1/editions/{edition}/ticketing/settings": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch: operations["ticketing.settings.update"]; + trace?: never; + }; + "/v1/editions/{edition}/ticketing/ticket-types/{ticketType}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + post?: never; + delete: operations["ticketing.types.destroy"]; + options?: never; + head?: never; + patch: operations["ticketing.types.update"]; + trace?: never; + }; + "/v1/editions/{edition}/ticketing/ticket-types/{ticketType}/batches": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + post: operations["ticketing.batches.store"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v1/editions/{edition}/ticketing/ticket-types/{ticketType}/batches/{batch}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + post?: never; + delete: operations["ticketing.batches.destroy"]; + options?: never; + head?: never; + patch: operations["ticketing.batches.update"]; + trace?: never; + }; + "/v1/editions/{edition}/ticketing/ticket-types/{ticketType}/batches/{batch}/close": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + post: operations["ticketing.batches.close"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v1/editions/{edition}/ticketing/coupons": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get: operations["ticketing.coupons.index"]; + put?: never; + post: operations["ticketing.coupons.store"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v1/editions/{edition}/ticketing/coupons/{coupon}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + post?: never; + delete: operations["ticketing.coupons.destroy"]; + options?: never; + head?: never; + patch: operations["ticketing.coupons.update"]; + trace?: never; + }; + "/v1/editions/{edition}/ticketing/coupons/{coupon}/redemptions": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get: operations["ticketing.coupons.redemptions"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v1/editions/{edition}/ticketing/orders": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** + * Pedidos da edição, do mais novo para o mais antigo. `status` filtra pela + * situação; `q` procura no nome, no e-mail ou no número (com ou sem #) + */ + get: operations["ticketing.orders.index"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v1/editions/{edition}/ticketing/orders/export": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** Os mesmos filtros da lista, em CSV separado por ponto e vírgula */ + get: operations["ticketing.orders.export"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v1/editions/{edition}/ticketing/orders/{order}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** O pedido com a cobrança em andamento no gateway, quando houver */ + get: operations["ticketing.orders.show"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v1/editions/{edition}/ticketing/orders/{order}/cancel": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + post: operations["ticketing.orders.cancel"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v1/editions/{edition}/ticketing/orders/{order}/mark-paid": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + /** + * Confirma um pagamento recebido fora do gateway. A justificativa é + * obrigatória e fica na auditoria; os ingressos são emitidos na hora + */ + post: operations["ticketing.orders.mark-paid"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v1/editions/{edition}/ticketing/orders/{order}/payment-reminder": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + /** Manda de novo para quem comprou o link de pagamento do pedido */ + post: operations["ticketing.orders.payment-reminder"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v1/editions/{edition}/ticketing/orders/{order}/history": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** + * Linha do tempo: criação, pagamento, reembolsos, cobranças reenviadas e + * quem fez cada coisa + */ + get: operations["ticketing.orders.history"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v1/editions/{edition}/ticketing/orders/{order}/refunds": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get: operations["ticketing.orders.refunds.index"]; + put?: never; + post: operations["ticketing.orders.refunds.store"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v1/editions/{edition}/ticketing/orders/{order}/refunds/{refund}/settle": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + post: operations["ticketing.orders.refunds.settle"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v1/editions/{edition}/ticketing/tickets": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get: operations["ticketing.tickets.index"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v1/editions/{edition}/ticketing/tickets/{ticket}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get: operations["ticketing.tickets.show"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch: operations["ticketing.tickets.update"]; + trace?: never; + }; + "/v1/editions/{edition}/ticketing/tickets/{ticket}/transfer": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + post: operations["ticketing.tickets.transfer"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v1/editions/{edition}/ticketing/tickets/{ticket}/resend": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + post: operations["ticketing.tickets.resend"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v1/editions/{edition}/ticketing/reconciliation": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get: operations["ticketing.reconciliation.index"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v1/editions/{edition}/ticketing/reconciliation/run": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + post: operations["ticketing.reconciliation.run"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v1/editions/{edition}/ticketing/imports": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get: operations["ticketing.imports.index"]; + put?: never; + post: operations["ticketing.imports.store"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v1/editions/{edition}/ticketing/imports/{import}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get: operations["ticketing.imports.show"]; + put?: never; + post?: never; + delete: operations["ticketing.imports.destroy"]; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v1/editions/{edition}/ticketing/imports/{import}/mapping": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put: operations["ticketing.imports.map"]; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v1/editions/{edition}/ticketing/imports/{import}/start": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + post: operations["ticketing.imports.start"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v1/editions/{edition}/ticketing/imports/{import}/resume": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + post: operations["ticketing.imports.resume"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v1/editions/{edition}/ticketing/imports/{import}/rejections": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get: operations["ticketing.imports.rejections"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v1/editions/{edition}/ticketing/imports/{import}/rejections.csv": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + /** + * Relatório das linhas que não entraram, em CSV com o mesmo cabeçalho + * do arquivo original mais a linha e o motivo, para corrigir e reenviar + */ + get: operations["ticketing.imports.rejections.csv"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v1/editions/{edition}/ticketing/imports/{import}/email": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + post: operations["ticketing.imports.email"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v1/editions/{edition}/ticketing/reconciliation/{issue}/resolve": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + post: operations["ticketing.reconciliation.resolve"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v1/checkout/editions/{edition}/orders": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + post: operations["ticketing.checkout.orders.store"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v1/checkout/editions/{edition}/orders/{order}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get: operations["ticketing.checkout.orders.show"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v1/checkout/editions/{edition}/orders/{order}/payment": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get: operations["ticketing.checkout.orders.payment.show"]; + put?: never; + post: operations["ticketing.checkout.orders.payment.start"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v1/checkout/editions/{edition}/orders/{order}/cancel": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + post: operations["ticketing.checkout.orders.cancel"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v1/public/editions/{edition}/coupons/check": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + post: operations["ticketing.public.coupons.check"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v1/public/editions/{edition}/tickets": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get: operations["ticketing.public.tickets"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v1/attendee/editions/{edition}/tickets": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get: operations["ticketing.attendee.tickets.index"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v1/attendee/editions/{edition}/tickets/{ticket}": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get: operations["ticketing.attendee.tickets.show"]; + put?: never; + post?: never; + delete?: never; + options?: never; + head?: never; + patch: operations["ticketing.attendee.tickets.update"]; + trace?: never; + }; + "/v1/attendee/editions/{edition}/tickets/{ticket}/transfer": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + post: operations["ticketing.attendee.tickets.transfer"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; + "/v1/attendee/editions/{edition}/tickets/{ticket}/resend": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + get?: never; + put?: never; + post: operations["ticketing.attendee.tickets.resend"]; + delete?: never; + options?: never; + head?: never; + patch?: never; + trace?: never; + }; +} +export type webhooks = Record; +export interface components { + schemas: { + /** AcceptInvitationRequest */ + AcceptInvitationRequest: { + name?: string | null; + password?: string | null; + device_name?: string | null; + }; + /** AddCoauthorRequest */ + AddCoauthorRequest: { + /** Format: email */ + email: string; + }; + /** AddDomainRequest */ + AddDomainRequest: { + host: string; + }; + /** ApplyThemePresetRequest */ + ApplyThemePresetRequest: { + preset: components["schemas"]["ThemePreset"]; + }; + /** AssignReviewerRequest */ + AssignReviewerRequest: { + /** Format: uuid */ + reviewer_id: string; + }; + /** + * AttachmentKind + * @enum {string} + */ + AttachmentKind: "contract" | "logo" | "other"; + /** AutoAssignRequest */ + AutoAssignRequest: { + reviewers_per_proposal: number; + }; + /** + * BrazilianState + * @enum {string} + */ + BrazilianState: "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"; + /** CfpCriterionResource */ + CfpCriterionResource: { + id: string; + name: string; + description: string | null; + weight: number; + position: number; + } | string[]; + /** CfpSettingsResource */ + CfpSettingsResource: { + status: string; + status_label: string; + days_until_close: number | null; + opens_at: string | null; + closes_at: string | null; + results_at: string | null; + anonymous_review: string; + require_nordeste_quota: string; + nordeste_quota_percent: string; + proposals_per_person: string; + } | string[]; + /** CfpTrackResource */ + CfpTrackResource: { + id: string; + name: string; + slots: number; + position: number; + proposals_count: number; + } | string[]; + /** ChangeEditionStatusRequest */ + ChangeEditionStatusRequest: { + status: components["schemas"]["EditionStatus"]; + }; + /** ChangeMemberRoleRequest */ + ChangeMemberRoleRequest: { + role: components["schemas"]["EditionRole"]; + }; + /** ChangePasswordRequest */ + ChangePasswordRequest: { + current_password?: string | null; + password: string; + password_confirmation: string; + }; + /** ChangeStatusRequest */ + ChangeStatusRequest: { + status: components["schemas"]["SupplierStatus"]; + /** Format: uuid */ + quote_id?: string | null; + contracted_cents?: number | null; + reason?: string | null; + }; + /** CheckCouponRequest */ + CheckCouponRequest: { + code: string; + items: { + /** Format: uuid */ + ticket_type_id: string; + quantity: number; + }[]; + }; + /** CloneEditionRequest */ + CloneEditionRequest: { + name: string; + slug: string; + parts: ("identity" | "cfp" | "team" | "finance" | "emails" | "sponsor_tiers" | "suppliers" | "tasks" | "ticketing")[]; + }; + /** CommunityResource */ + CommunityResource: { + id: string; + name: string; + slug: string; + created_at: string | null; + } | string[]; + /** + * ContactChannel + * @enum {string} + */ + ContactChannel: "email" | "phone" | "whatsapp" | "meeting" | "other"; + /** + * CouponKind + * @enum {string} + */ + CouponKind: "percent" | "fixed"; + /** CouponResource */ + CouponResource: { + id: string; + code: string; + description: string | null; + /** @enum {string} */ + kind: "percent" | "fixed"; + /** @enum {string} */ + kind_label: "Percentual" | "Valor fixo por pedido"; + value: number; + max_uses: number | null; + used: number; + remaining: number | null; + starts_at: string | null; + ends_at: string | null; + ticket_type_ids: string[]; + active: boolean; + /** @enum {string} */ + status: "paused" | "exhausted" | "expired" | "scheduled" | "active"; + discount_total: { + amount: number; + currency: string; + } | null; + } | string[]; + /** CreatePaymentAccountRequest */ + CreatePaymentAccountRequest: { + /** @enum {string} */ + driver: "asaas" | "mercadopago" | "fake"; + environment: components["schemas"]["GatewayEnvironment"]; + api_key: string; + webhook_secret: string; + public_key?: string | null; + holder_type: components["schemas"]["HolderType"]; + holder_name: string; + holder_document: string; + methods: components["schemas"]["PaymentMethod"][]; + max_installments?: number; + pix_expiration_minutes?: number; + confirm?: boolean; + }; + /** DecisionsRequest */ + DecisionsRequest: { + decisions: { + /** Format: uuid */ + proposal_id: string; + decision: components["schemas"]["ProposalDecision"] | null; + }[]; + }; + /** + * DeliverableStatus + * @enum {string} + */ + DeliverableStatus: "pending" | "in_progress" | "done"; + /** + * DeliveryStatus + * @enum {string} + */ + DeliveryStatus: "queued" | "sent" | "delivered" | "bounced" | "complained" | "failed" | "suppressed"; + /** EditionCloneResource */ + EditionCloneResource: { + id: string; + source_edition_id: string; + target_edition_id: string | null; + name: string; + slug: string; + parts: string[]; + status: string; + error: string | null; + finished_at: string | null; + created_at: string | null; + } | string[]; + /** EditionDomainResource */ + EditionDomainResource: { + id: string; + host: string; + is_platform: boolean; + is_primary: boolean; + verified: boolean; + verified_at: string | null; + verification: { + txt: { + name: string; + value: string; + }; + cname: { + name: string; + value: string; + }; + } | null; + last_checked_at: string | null; + last_check_error: string | null; + url: string; + } | string[]; + /** EditionResource */ + EditionResource: { + id: string; + community_id: string; + community: { + id: string; + name: string; + slug: string; + } | Record; + name: string; + slug: string; + /** @enum {string} */ + status: "draft" | "cfp_open" | "sales_open" | "ongoing" | "closed"; + /** @enum {string} */ + status_label: "Rascunho" | "CFP aberto" | "Vendas abertas" | "Em andamento" | "Encerrada"; + allowed_transitions: unknown[]; + status_options: unknown[]; + starts_on: string | null; + ends_on: string | null; + year: string | null; + city: string | null; + /** @enum {string|null} */ + state: "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" | null; + timezone: string; + /** @enum {string} */ + site_mode: "platform" | "external"; + external_site_url: string | null; + site_url: string | null; + privacy_contact_email: string | null; + privacy_policy_url: string | null; + anonymize_after_event: boolean; + role: null | Record | ("organizador" | "financeiro" | "avaliador" | "checkin" | "voluntario"); + created_at: string | null; + } | string[]; + /** + * EditionRole + * @enum {string} + */ + EditionRole: "organizador" | "financeiro" | "avaliador" | "checkin" | "voluntario"; + /** + * EditionStatus + * @enum {string} + */ + EditionStatus: "draft" | "cfp_open" | "sales_open" | "ongoing" | "closed"; + /** EmailDeliveryResource */ + EmailDeliveryResource: { + id: string; + /** @enum {string} */ + template: "order_confirmed" | "pix_reminder" | "order_refunded" | "ticket_transferred" | "cfp_accepted" | "cfp_waitlisted" | "event_reminder" | "team_invite" | "proposal_received" | "speaker_confirmation_reminder" | "speaker_invited" | "task_assigned" | "task_due_soon"; + to_email: string; + to_name: string; + /** @enum {string} */ + status: "queued" | "sent" | "delivered" | "bounced" | "complained" | "failed" | "suppressed"; + /** @enum {string} */ + status_label: "Na fila" | "Enviado" | "Entregue" | "Voltou (bounce)" | "Marcado como spam" | "Falhou" | "Não enviado: endereço bloqueado"; + provider_detail: string | null; + delivered_at: string | null; + bounced_at: string | null; + complained_at: string | null; + attempts: number; + last_error: string | null; + is_test: boolean; + sent_at: string | null; + created_at: string | null; + } | string[]; + /** EmailImportedTicketsRequest */ + EmailImportedTicketsRequest: { + confirm: boolean; + recipients: number; + }; + /** + * EmailTemplate + * @enum {string} + */ + EmailTemplate: "order_confirmed" | "pix_reminder" | "order_refunded" | "ticket_transferred" | "cfp_accepted" | "cfp_waitlisted" | "event_reminder" | "team_invite" | "proposal_received" | "speaker_confirmation_reminder" | "speaker_invited" | "task_assigned" | "task_due_soon"; + /** EmailTemplateResource */ + EmailTemplateResource: { + /** @enum {string} */ + id: "order_confirmed" | "pix_reminder" | "order_refunded" | "ticket_transferred" | "cfp_accepted" | "cfp_waitlisted" | "event_reminder" | "team_invite" | "proposal_received" | "speaker_confirmation_reminder" | "speaker_invited" | "task_assigned" | "task_due_soon"; + /** @enum {string} */ + label: "Confirmação de compra" | "Lembrete de pagamento" | "Reembolso do pedido" | "Ingresso transferido" | "Resultado do CFP: aprovada" | "Resultado do CFP: lista de espera" | "Antes do evento" | "Convite para a equipe" | "Proposta recebida" | "Lembrete de confirmação do palestrante" | "Convite para palestrar" | "Tarefa atribuída" | "Prazo de tarefa chegando"; + /** @enum {string} */ + trigger: "Ao pagar o pedido" | "Quando a organização reenvia a cobrança" | "Ao reembolsar o pedido" | "Ao receber um ingresso transferido" | "Manual" | "7 dias antes" | "Ao convidar alguém para a equipe" | "Ao enviar uma proposta" | "2 dias antes do prazo de confirmação" | "Ao convidar alguém direto para palestrar" | "Ao virar responsável por uma tarefa" | "1 dia antes do prazo da tarefa"; + transactional: boolean; + variables: [ + "nome", + "edicao", + "pedido", + "data" + ] | [ + "nome", + "edicao", + "pedido", + "valor", + "ingressos" + ] | [ + "nome", + "edicao", + "data", + "remetente", + "ingresso" + ] | [ + "nome", + "edicao", + "proposta", + "data", + "prazo" + ] | [ + "nome", + "edicao", + "data" + ] | [ + "nome", + "edicao", + "papel" + ] | [ + "nome", + "edicao", + "proposta", + "data" + ] | [ + "nome", + "edicao", + "proposta", + "prazo" + ] | [ + "nome", + "edicao", + "tarefa", + "prazo" + ]; + /** @enum {string} */ + action_label: "Ver meu ingresso" | "Pagar o pedido" | "Ver meu pedido" | "Confirmar participação" | "Ver minha proposta" | "Ver programação" | "Aceitar convite" | "Ver tarefa"; + subject: string; + body: string; + customized: boolean; + last_sent_at: string | null; + }; + /** + * ExpenseStatus + * @enum {string} + */ + ExpenseStatus: "pending" | "paid" | "cancelled"; + /** ExtendDeadlineRequest */ + ExtendDeadlineRequest: { + /** Format: date-time */ + deadline_at: string; + }; + /** ForgotPasswordRequest */ + ForgotPasswordRequest: { + /** Format: email */ + email: string; + }; + /** + * GatewayEnvironment + * @enum {string} + */ + GatewayEnvironment: "sandbox" | "production"; + /** GithubCallbackRequest */ + GithubCallbackRequest: { + code: string; + state: string; + device_name?: string | null; + }; + /** + * HolderType + * @enum {string} + */ + HolderType: "individual" | "company"; + /** InviteSpeakerRequest */ + InviteSpeakerRequest: { + name: string; + /** Format: email */ + email: string; + title: string; + /** Format: uuid */ + track_id: string; + format: components["schemas"]["ProposalFormat"]; + summary?: string | null; + }; + /** InviteTeamMemberRequest */ + InviteTeamMemberRequest: { + /** Format: email */ + email: string; + name?: string | null; + role: components["schemas"]["EditionRole"]; + }; + /** LogActivityRequest */ + LogActivityRequest: { + channel: components["schemas"]["PHPeste.Suppliers.Enums.ContactChannel"]; + /** Format: date-time */ + happened_at?: string | null; + summary: string; + }; + /** LogContactRequest */ + LogContactRequest: { + channel: components["schemas"]["ContactChannel"]; + /** Format: date-time */ + happened_at?: string | null; + summary: string; + }; + /** LoginRequest */ + LoginRequest: { + /** Format: email */ + email: string; + password: string; + device_name?: string; + }; + /** MapTicketImportRequest */ + MapTicketImportRequest: { + mapping: number[]; + ticket_type_map?: { + value: string; + /** Format: uuid */ + ticket_type_id: string | null; + }[]; + /** Format: uuid */ + default_ticket_type_id?: string | null; + }; + /** MarkOrderPaidRequest */ + MarkOrderPaidRequest: { + justification: string; + }; + /** MoveSponsorshipRequest */ + MoveSponsorshipRequest: { + stage: components["schemas"]["SponsorshipStage"]; + position?: number | null; + lost_reason?: string | null; + confirm?: boolean; + }; + /** MoveTaskRequest */ + MoveTaskRequest: { + /** Format: uuid */ + task_column_id: string; + position: number; + }; + /** OrderResource */ + OrderResource: ({ + id: string | unknown; + number: number | unknown; + status: ("created" | "awaiting_payment" | "paid" | "expired" | "cancelled" | "refunded") | unknown; + status_label: ("Criado" | "Aguardando pagamento" | "Pago" | "Expirado" | "Cancelado" | "Reembolsado") | unknown; + source: ("checkout" | "import") | unknown; + external: ({ + platform: string | null; + reference: string | null; + } | null) | unknown; + buyer: { + name: string; + email: string; + document: string | null; + } | unknown; + subtotal: ({ + amount: number; + currency: string; + } | null) | unknown; + discount: ({ + amount: number; + currency: string; + } | null) | unknown; + fee: ({ + amount: number; + currency: string; + } | null) | unknown; + total: ({ + amount: number; + currency: string; + } | null) | unknown; + refunded: ({ + amount: number; + currency: string; + } | null) | unknown; + gateway_fee: ({ + amount: number; + currency: string; + } | null) | unknown; + requires_payment: boolean | unknown; + coupon_code: (string | null) | unknown; + payment_account_id: (string | null) | unknown; + expires_at: (string | null) | unknown; + paid_at: (string | null) | unknown; + created_at: (string | null) | unknown; + items: { + id: string; + ticket_type_id: string; + ticket_type_name: string; + batch_name: string; + unit_price: { + amount: number; + currency: string; + } | null; + discount: { + amount: number; + currency: string; + } | null; + fee: { + amount: number; + currency: string; + } | null; + total: { + amount: number; + currency: string; + } | null; + attendee: { + name: string; + email: string; + }; + answers: { + [key: string]: string | boolean; + } | string; + cancelled_at: string | null; + external_code: string | null; + }[] | unknown; + } & { + [key: string]: unknown; + }) | string[]; + /** OrganizationLogisticsRequest */ + OrganizationLogisticsRequest: { + origin_city?: string | null; + origin_state?: components["schemas"]["BrazilianState"] | null; + needs_travel?: boolean; + needs_lodging?: boolean; + travel_paid_by_organization?: boolean; + lodging_paid_by_organization?: boolean; + organization_notes?: string | null; + }; + /** + * PHPeste.Suppliers.Enums.AttachmentKind + * @enum {string} + */ + "PHPeste.Suppliers.Enums.AttachmentKind": "quote" | "contract" | "invoice" | "other"; + /** + * PHPeste.Suppliers.Enums.ContactChannel + * @enum {string} + */ + "PHPeste.Suppliers.Enums.ContactChannel": "email" | "phone" | "whatsapp" | "meeting" | "visit" | "other"; + /** PHPeste.Suppliers.Http.Requests.UploadAttachmentRequest */ + "PHPeste.Suppliers.Http.Requests.UploadAttachmentRequest": { + kind: components["schemas"]["PHPeste.Suppliers.Enums.AttachmentKind"]; + /** + * Format: binary + * @description Maximum file size: 20480 kilobytes. + */ + file: string; + }; + /** PaymentAccountResource */ + PaymentAccountResource: { + id: string; + driver: string; + /** @enum {string} */ + environment: "sandbox" | "production"; + /** @enum {string} */ + environment_label: "Sandbox (testes)" | "Produção"; + credentials_hint: string; + holder: { + /** @enum {string} */ + type: "individual" | "company"; + /** @enum {string} */ + type_label: "Pessoa física (CPF)" | "Pessoa jurídica (CNPJ)"; + name: string; + document: string; + }; + methods: unknown[]; + max_installments: number; + pix_expiration_minutes: number; + active: boolean; + ready: boolean; + verified_at: string | null; + webhook_verified_at: string | null; + webhook_rejections: { + count: number; + last_at: string | null; + }; + retired_at: string | null; + created_at: string | null; + webhook_url: string | null; + /** + * @description Último evento assinado que o gateway mandou para esta conta: mostra + * no painel se o webhook continua chegando depois do primeiro teste. + */ + last_event_at: string | null; + } | string[]; + /** + * PaymentMethod + * @enum {string} + */ + PaymentMethod: "pix" | "card" | "boleto"; + /** PlaceOrderRequest */ + PlaceOrderRequest: { + buyer: { + name: string; + /** Format: email */ + email: string; + document?: string | null; + }; + coupon?: string | null; + access_code?: string | null; + items: { + /** Format: uuid */ + ticket_type_id: string; + attendees: { + name: string; + /** Format: email */ + email: string; + answers?: string[]; + }[]; + }[]; + }; + /** PreviewEmailTemplateRequest */ + PreviewEmailTemplateRequest: { + subject?: string; + body?: string; + }; + /** PromoteRequest */ + PromoteRequest: { + /** Format: uuid */ + proposal_id: string; + }; + /** + * ProposalDecision + * @enum {string} + */ + ProposalDecision: "accepted" | "waitlisted" | "rejected"; + /** + * ProposalFormat + * @enum {string} + */ + ProposalFormat: "talk" | "workshop" | "panel"; + /** + * ProposalLanguage + * @enum {string} + */ + ProposalLanguage: "pt_BR" | "en" | "es"; + /** + * ProposalLevel + * @enum {string} + */ + ProposalLevel: "beginner" | "intermediate" | "advanced"; + /** ProposalResource */ + ProposalResource: { + id: string; + number: number; + title: string; + track: { + id: string; + name: string; + } | null; + summary: string | null; + audience: string | null; + /** @enum {string|null} */ + format: "talk" | "workshop" | "panel" | null; + /** @enum {string|null} */ + format_label: "Palestra de 30 min" | "Oficina de 2 h" | "Painel de 45 min" | null; + /** @enum {integer|null} */ + duration_minutes: 30 | 120 | 45 | null; + /** @enum {string|null} */ + level: "beginner" | "intermediate" | "advanced" | null; + /** @enum {string|null} */ + level_label: "Iniciante" | "Intermediário" | "Avançado" | null; + /** @enum {string} */ + language: "pt_BR" | "en" | "es"; + /** @enum {string} */ + status: "draft" | "submitted" | "withdrawn"; + /** @enum {string} */ + status_label: "Rascunho" | "Enviada" | "Retirada"; + /** @enum {string|null} */ + decision: "accepted" | "waitlisted" | "rejected" | null; + /** @enum {string|null} */ + decision_label: "Aprovada" | "Lista de espera" | "Recusada" | null; + missing_for_submission: unknown[]; + nordeste: string; + speakers_hidden: boolean; + speakers: string | Record; + submitted_at: string | null; + updated_at: string | null; + } | string[]; + /** + * ProposalStatus + * @enum {string} + */ + ProposalStatus: "draft" | "submitted" | "withdrawn"; + /** PublicEditionResource */ + PublicEditionResource: { + id: string; + name: string; + slug: string; + status: string; + starts_on: string | null; + ends_on: string | null; + city: string; + state: string | null; + timezone: string; + community: { + name: string; + slug: string; + }; + } | string[]; + /** ReconciliationIssueResource */ + ReconciliationIssueResource: { + id: string; + /** @enum {string} */ + kind: "paid_without_charge" | "charge_without_order" | "amount_mismatch" | "duplicate_payment" | "disputed" | "refund_unconfirmed"; + /** @enum {string} */ + label: "Pedido pago sem pagamento confirmado no gateway" | "Pagamento recebido para pedido que não está pago" | "Valor pago diferente do total do pedido" | "Pedido pago mais de uma vez" | "Pagamento em contestação no cartão" | "Reembolso sem confirmação do gateway"; + /** @enum {string} */ + advice: "Confira no painel do gateway se o pagamento existe. Se não existir, cancele o pedido." | "O pagamento chegou depois de a reserva expirar ou de o pedido ser cancelado. Reembolse com o motivo \"Pago depois de a reserva expirar\"." | "Confira o valor no painel do gateway e reembolse a diferença, se for o caso." | "Reembolse o pagamento repetido." | "Responda à contestação no painel do gateway, com o comprovante de compra e de presença." | "Confira no painel do gateway se o estorno saiu e registre o resultado no reembolso."; + order_id: string | null; + payment_charge_id: string | null; + details: { + [key: string]: unknown; + }; + first_seen_at: string | null; + last_seen_at: string | null; + resolved: boolean; + resolved_at: string | null; + resolved_by: string | null; + resolution: string | null; + } | string[]; + /** RecordPaymentRequest */ + RecordPaymentRequest: { + amount_cents: number; + /** Format: date */ + paid_on: string; + note?: string | null; + }; + /** RecordQuoteRequest */ + RecordQuoteRequest: { + amount_cents: number; + description: string; + /** Format: date */ + received_on: string; + /** Format: date */ + valid_until?: string | null; + }; + /** RefundOrderRequest */ + RefundOrderRequest: { + amount_cents?: number | null; + reason: components["schemas"]["RefundReason"]; + note?: string | null; + cancel_tickets?: boolean; + item_ids?: string[] | null; + }; + /** + * RefundReason + * @enum {string} + */ + RefundReason: "buyer_request" | "event_changed" | "duplicate" | "paid_after_expiry" | "other"; + /** RefundResource */ + RefundResource: { + id: string; + order_id: string; + amount: { + amount: number; + currency: string; + } | null; + status: string; + status_label: string; + reason: string; + reason_label: string; + note: string; + cancelled_item_ids: unknown[]; + failure_reason: string; + requested_by: string; + created_at: string | null; + completed_at: string | null; + } | string[]; + /** RegisterRequest */ + RegisterRequest: { + name: string; + /** Format: email */ + email: string; + password: string; + password_confirmation: string; + }; + /** RemindSpeakersRequest */ + RemindSpeakersRequest: { + /** Format: uuid */ + proposal_id?: string | null; + }; + /** ReorderColumnsRequest */ + ReorderColumnsRequest: { + ids: string[]; + }; + /** ResetPasswordRequest */ + ResetPasswordRequest: { + token: string; + /** Format: email */ + email: string; + password: string; + password_confirmation: string; + }; + /** RespondConfirmationRequest */ + RespondConfirmationRequest: { + reason?: string | null; + }; + /** SaveCategoryRequest */ + SaveCategoryRequest: { + name: string; + budget_cents?: number | null; + position?: number; + }; + /** SaveColumnRequest */ + SaveColumnRequest: { + name: string; + is_done?: boolean; + }; + /** SaveContactRequest */ + SaveContactRequest: { + name: string; + role?: string | null; + /** Format: email */ + email?: string | null; + phone?: string | null; + }; + /** SaveCouponRequest */ + SaveCouponRequest: { + code: string; + description?: string | null; + kind: components["schemas"]["CouponKind"]; + value: number; + max_uses?: number | null; + /** Format: date-time */ + starts_at?: string | null; + /** Format: date-time */ + ends_at?: string | null; + ticket_type_ids?: string[] | null; + active?: boolean; + }; + /** SaveCriterionRequest */ + SaveCriterionRequest: { + name: string; + description?: string | null; + weight: number; + position?: number; + confirm?: boolean; + }; + /** SaveDeliverableRequest */ + SaveDeliverableRequest: { + title: string; + /** Format: uuid */ + owner_id?: string | null; + /** Format: date */ + due_on?: string | null; + status?: components["schemas"]["DeliverableStatus"]; + }; + /** SaveEmailTemplateRequest */ + SaveEmailTemplateRequest: { + subject: string; + body: string; + }; + /** SaveExpenseRequest */ + SaveExpenseRequest: { + /** Format: uuid */ + finance_category_id: string; + /** Format: uuid */ + edition_supplier_id?: string | null; + description: string; + amount_cents: number; + /** Format: date */ + due_on?: string | null; + /** Format: date */ + paid_on?: string | null; + status?: components["schemas"]["ExpenseStatus"]; + notes?: string | null; + }; + /** SaveProposalRequest */ + SaveProposalRequest: { + title?: string; + /** Format: uuid */ + track_id?: string | null; + summary?: string | null; + audience?: string | null; + format?: components["schemas"]["ProposalFormat"] | null; + level?: components["schemas"]["ProposalLevel"] | null; + language?: components["schemas"]["ProposalLanguage"]; + }; + /** SaveReviewRequest */ + SaveReviewRequest: { + scores: number[]; + comment?: string | null; + submit?: boolean; + }; + /** SaveSpeakerProfileRequest */ + SaveSpeakerProfileRequest: { + display_name: string; + job_title?: string | null; + company?: string | null; + bio?: string | null; + city?: string | null; + state?: components["schemas"]["BrazilianState"] | null; + links?: { + /** Format: uri */ + website?: string | null; + /** Format: uri */ + github?: string | null; + /** Format: uri */ + linkedin?: string | null; + }; + accessibility_needs?: string | null; + dietary_restrictions?: string | null; + }; + /** SaveSponsorRequest */ + SaveSponsorRequest: { + name: string; + /** Format: uri */ + website?: string | null; + contact_name?: string | null; + /** Format: email */ + contact_email?: string | null; + contact_phone?: string | null; + notes?: string | null; + }; + /** SaveSponsorTierRequest */ + SaveSponsorTierRequest: { + name: string; + price_cents: number; + slots?: number | null; + benefits?: string[]; + position?: number; + }; + /** SaveSponsorshipRequest */ + SaveSponsorshipRequest: { + /** Format: uuid */ + sponsor_tier_id?: string | null; + value_cents?: number | null; + /** Format: uuid */ + owner_id?: string | null; + stage?: components["schemas"]["SponsorshipStage"]; + confirm?: boolean; + }; + /** SaveSupplierRequest */ + SaveSupplierRequest: { + name: string; + service: components["schemas"]["SupplierService"]; + description?: string | null; + document?: string | null; + /** Format: uri */ + website?: string | null; + city?: string | null; + state?: string | null; + /** Format: uuid */ + owner_id?: string | null; + contacts?: { + name: string; + role?: string | null; + /** Format: email */ + email?: string | null; + phone?: string | null; + }[]; + }; + /** SaveTaskRequest */ + SaveTaskRequest: { + title: string; + description?: string | null; + /** Format: uuid */ + assignee_id?: string | null; + /** Format: date */ + due_on?: string | null; + link_type?: string | null; + /** Format: uuid */ + link_id?: string | null; + /** Format: uuid */ + task_column_id?: string; + }; + /** SaveTicketBatchRequest */ + SaveTicketBatchRequest: { + name: string; + price_cents: number; + quantity: number; + /** Format: date-time */ + starts_at?: string | null; + /** Format: date-time */ + ends_at?: string | null; + on_sell_out?: components["schemas"]["SellOutBehavior"]; + position?: number; + }; + /** SaveTicketTypeRequest */ + SaveTicketTypeRequest: { + name: string; + description?: string | null; + visibility?: components["schemas"]["TicketVisibility"]; + access_code?: string | null; + min_per_order?: number; + max_per_order?: number; + show_remaining?: boolean; + pass_fee_to_buyer?: boolean; + questions?: { + label: string; + /** @enum {string} */ + type: "text" | "select" | "boolean"; + required?: boolean; + options?: string[]; + }[] | null; + position?: number; + }; + /** SaveTrackRequest */ + SaveTrackRequest: { + name: string; + slots: number; + position?: number; + }; + /** + * SellOutBehavior + * @enum {string} + */ + SellOutBehavior: "next" | "close"; + /** + * SiteMode + * @enum {string} + */ + SiteMode: "platform" | "external"; + /** SpeakerAttendanceRequest */ + SpeakerAttendanceRequest: { + present: boolean; + }; + /** SpeakerLogisticsRequest */ + SpeakerLogisticsRequest: { + origin_city?: string | null; + origin_state?: components["schemas"]["BrazilianState"] | null; + needs_travel?: boolean; + needs_lodging?: boolean; + }; + /** SpeakerProfileResource */ + SpeakerProfileResource: { + public: { + user_id: string; + display_name: string; + job_title: string | null; + company: string | null; + bio: string | null; + city: string | null; + /** @enum {string|null} */ + state: "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" | null; + links: unknown[]; + photo_url: null; + } | null; + private: { + accessibility_needs: string | null; + dietary_restrictions: string | null; + }; + email: string; + updated_at: string | null; + } | string[]; + /** SponsorAttachmentResource */ + SponsorAttachmentResource: { id: string; - host: string; - is_platform: boolean; - is_primary: boolean; - verified: boolean; - verified_at: string | null; - verification: { - txt: { + /** @enum {string} */ + kind: "contract" | "logo" | "other"; + /** @enum {string} */ + kind_label: "Contrato" | "Logo" | "Outro"; + name: string; + mime_type: string; + size_bytes: number; + uploaded_by: { + id: string; + name: string; + } | null; + created_at: string; + } | string[]; + /** SponsorDeliverableResource */ + SponsorDeliverableResource: ({ + id: string | unknown; + sponsorship_id: string | unknown; + title: string | unknown; + owner: ({ + id: string; + name: string; + } | null) | unknown; + due_on: (string | null) | unknown; + status: ("pending" | "in_progress" | "done") | unknown; + status_label: ("A fazer" | "Em andamento" | "Entregue") | unknown; + overdue: boolean | unknown; + done_at: (string | null) | unknown; + position: number | unknown; + } & { + [key: string]: unknown; + }) | string[]; + /** SponsorResource */ + SponsorResource: ({ + id: string | unknown; + name: string | unknown; + website: (string | null) | unknown; + contact: { + name: string | null; + email: string | null; + phone: string | null; + } | unknown; + notes: (string | null) | unknown; + created_at: (string | null) | unknown; + } & { + [key: string]: unknown; + }) | string[]; + /** SponsorTierResource */ + SponsorTierResource: { + id: string; + name: string; + price: { + amount: number; + currency: string; + } | null; + slots: number | null; + slots_taken: number; + slots_left: unknown; + benefits: string[]; + position: number; + } | string[]; + /** SponsorshipResource */ + SponsorshipResource: ({ + id: string | unknown; + sponsor: ({ + id: string; + name: string; + } | { + id: string; + }) | unknown; + tier: ({ + id: string; + name: string; + } | null) | unknown; + stage: ("prospecting" | "negotiating" | "closed" | "paid" | "lost") | unknown; + stage_label: ("Prospecção" | "Negociando" | "Fechado" | "Pago" | "Perdido") | unknown; + value: ({ + amount: number; + currency: string; + } | null) | unknown; + received: ({ + amount: number; + currency: string; + } | null) | unknown; + outstanding: ({ + amount: number; + currency: string; + } | null) | unknown; + owner: string | unknown; + lost_reason: (string | null) | unknown; + position: number | unknown; + closed_at: (string | null) | unknown; + paid_at: (string | null) | unknown; + lost_at: (string | null) | unknown; + created_at: (string | null) | unknown; + } & { + [key: string]: unknown; + }) | string[]; + /** + * SponsorshipStage + * @enum {string} + */ + SponsorshipStage: "prospecting" | "negotiating" | "closed" | "paid" | "lost"; + /** StartOrderPaymentRequest */ + StartOrderPaymentRequest: { + method: components["schemas"]["PaymentMethod"]; + installments?: number; + card_token?: string | null; + card_brand?: string | null; + card_issuer?: string | null; + card?: string; + card_number?: string; + number?: string; + cvv?: string; + ccv?: string; + cvc?: string; + expiry?: string; + expiry_month?: string; + expiry_year?: string; + holder_name?: string; + }; + /** StoreCommunityRequest */ + StoreCommunityRequest: { + name: string; + slug: string; + }; + /** StoreEditionRequest */ + StoreEditionRequest: { + name: string; + slug: string; + /** Format: date */ + starts_on?: string | null; + /** Format: date */ + ends_on?: string | null; + city?: string | null; + state?: components["schemas"]["BrazilianState"] | null; + timezone?: string; + }; + /** + * SupplierService + * @enum {string} + */ + SupplierService: "venue" | "catering" | "audio_visual" | "printing" | "merch" | "transport" | "accommodation" | "photo_video" | "accessibility" | "other"; + /** + * SupplierStatus + * @enum {string} + */ + SupplierStatus: "to_contact" | "quoting" | "hired" | "declined"; + /** TeamInvitationResource */ + TeamInvitationResource: { + id: string; + email: string; + name: string; + role: string; + role_label: string; + expires_at: string | null; + created_at: string | null; + } | string[]; + /** + * ThemeFont + * @enum {string} + */ + ThemeFont: "Lexend" | "Poppins" | "Inter" | "Montserrat" | "Nunito" | "Open Sans" | "Roboto" | "Work Sans" | "IBM Plex Sans" | "Source Sans 3"; + /** + * ThemePreset + * @enum {string} + */ + ThemePreset: "sertao" | "mare" | "brasa"; + /** ThemeSettingsResource */ + ThemeSettingsResource: { + edition_id: string; + draft: { + logos: unknown[]; + } & { + [key: string]: unknown; + }; + published: ({ + logos: unknown[]; + } & { + [key: string]: unknown; + }) | null; + published_at: string | null; + has_unpublished_changes: string; + can_revert: boolean; + contrast: { + foreground: string; + background: string; + ratio: number; + minimum: string; + passes: boolean; + }[]; + } | string[]; + /** TicketBatchResource */ + TicketBatchResource: { + id: string; + ticket_type_id: string; + name: string; + position: number; + price: { + amount: number; + currency: string; + } | null; + quantity: number; + allocated: number; + remaining: number; + starts_at: string | null; + ends_at: string | null; + opens_at: string | null; + /** @enum {string} */ + on_sell_out: "next" | "close"; + /** @enum {string} */ + status: "scheduled" | "on_sale" | "ended" | "sold_out"; + /** @enum {string} */ + status_label: "Agendado" | "À venda" | "Encerrado" | "Esgotado"; + closed_at: string | null; + } | string[]; + /** TicketImportResource */ + TicketImportResource: ({ + id: string | unknown; + platform: string | unknown; + file_name: string | unknown; + status: ("uploaded" | "ready" | "processing" | "completed" | "failed") | unknown; + status_label: ("Aguardando mapeamento" | "Pronta para importar" | "Importando" | "Concluída" | "Interrompida") | unknown; + failure: (string | null) | unknown; + rows: { + total: number; + processed: number; + imported: number; + duplicates: number; + rejected: number; + } | unknown; + progress: number | unknown; + can_resume: boolean | unknown; + emails: { + pending: string | null; + requested_at: string | null; + } | unknown; + started_at: (string | null) | unknown; + finished_at: (string | null) | unknown; + created_at: (string | null) | unknown; + } & { + [key: string]: unknown; + }) | string[]; + /** TicketResource */ + TicketResource: ({ + id: string | unknown; + code: string | unknown; + status: ("active" | "cancelled") | unknown; + status_label: ("Válido" | "Cancelado") | unknown; + order_id: string | unknown; + order_number: (number | null) | unknown; + ticket_type_id: string | unknown; + ticket_type_name: (string | null) | unknown; + batch_name: (string | null) | unknown; + holder: ({ + name: string | unknown; + email: string | unknown; + badge_name: (string | null) | unknown; + company: (string | null) | unknown; + tshirt_size: ("PP" | "P" | "M" | "G" | "GG" | "XGG" | "BL-P" | "BL-M" | "BL-G" | "BL-GG" | null) | unknown; + } & { + [key: string]: unknown; + }) | unknown; + issued_at: (string | null) | unknown; + cancelled_at: (string | null) | unknown; + last_sent_at: (string | null) | unknown; + } & { + [key: string]: unknown; + }) | string[]; + /** TicketTypeResource */ + TicketTypeResource: { + id: string; + name: string; + description: string | null; + /** @enum {string} */ + visibility: "public" | "code" | "hidden"; + /** @enum {string} */ + visibility_label: "Qualquer pessoa" | "Quem tem o código" | "Só por convite da organização"; + access_code: string | null; + min_per_order: number; + max_per_order: number; + show_remaining: boolean; + pass_fee_to_buyer: boolean; + questions: { + id: string; + label: string; + type: string; + required: boolean; + options: string[]; + }[]; + position: number; + allocated: number; + quantity: number; + current_batch_id: string | null; + batches: unknown[]; + } | string[]; + /** + * TicketVisibility + * @enum {string} + */ + TicketVisibility: "public" | "code" | "hidden"; + /** TransferTicketRequest */ + TransferTicketRequest: { + name: string; + /** Format: email */ + email: string; + }; + /** + * TshirtSize + * @enum {string} + */ + TshirtSize: "PP" | "P" | "M" | "G" | "GG" | "XGG" | "BL-P" | "BL-M" | "BL-G" | "BL-GG"; + /** UpdateAccountRequest */ + UpdateAccountRequest: { + name?: string; + /** @enum {string} */ + locale?: "pt_BR" | "en" | "es"; + notifications?: { + proposals_to_review?: boolean; + payment_failures?: boolean; + assigned_tasks?: boolean; + weekly_summary?: boolean; + }; + }; + /** UpdateCfpSettingsRequest */ + UpdateCfpSettingsRequest: { + /** Format: date-time */ + opens_at?: string | null; + /** Format: date-time */ + closes_at?: string | null; + /** Format: date-time */ + results_at?: string | null; + anonymous_review?: boolean; + require_nordeste_quota?: boolean; + nordeste_quota_percent?: number; + proposals_per_person?: number; + }; + /** UpdateCommunityRequest */ + UpdateCommunityRequest: { + name?: string; + slug?: string; + }; + /** UpdateEditionRequest */ + UpdateEditionRequest: { + name?: string; + slug?: string; + /** Format: date */ + starts_on?: string | null; + /** Format: date */ + ends_on?: string | null; + city?: string | null; + state?: components["schemas"]["BrazilianState"] | null; + timezone?: string; + site_mode?: components["schemas"]["SiteMode"]; + /** Format: uri */ + external_site_url?: string | null; + /** Format: email */ + privacy_contact_email?: string | null; + /** Format: uri */ + privacy_policy_url?: string | null; + anonymize_after_event?: boolean; + }; + /** UpdatePaymentAccountRequest */ + UpdatePaymentAccountRequest: { + holder_name?: string; + methods?: components["schemas"]["PaymentMethod"][]; + max_installments?: number; + pix_expiration_minutes?: number; + }; + /** UpdateSponsorSettingsRequest */ + UpdateSponsorSettingsRequest: { + goal_cents: number | null; + }; + /** UpdateThemeDraftRequest */ + UpdateThemeDraftRequest: { + colors: { + bg: string; + surface: string; + surface_2: string; + line: string; + ink: string; + ink_2: string; + ink_3: string; + link: string; + brand: string; + on_brand: string; + accent: string; + on_accent: string; + support: string; + ok: string; + ok_bg: string; + warn: string; + warn_bg: string; + danger: string; + danger_bg: string; + info: string; + info_bg: string; + }; + fonts: { + heading: components["schemas"]["ThemeFont"]; + body: components["schemas"]["ThemeFont"]; + }; + radius: number; + }; + /** UpdateTicketAttendeeRequest */ + UpdateTicketAttendeeRequest: { + holder_name?: string; + badge_name?: string | null; + company?: string | null; + tshirt_size?: components["schemas"]["TshirtSize"] | null; + accessibility?: string | null; + }; + /** UpdateTicketingSettingsRequest */ + UpdateTicketingSettingsRequest: { + capacity?: number | null; + reservation_minutes?: number; + max_tickets_per_buyer?: number | null; + gateway_fee_basis_points?: number; + }; + /** UploadAttachmentRequest */ + UploadAttachmentRequest: { + kind: components["schemas"]["AttachmentKind"]; + /** + * Format: binary + * @description Maximum file size: 20480 kilobytes. + */ + file: string; + }; + /** UploadLogoRequest */ + UploadLogoRequest: { + /** + * Format: binary + * @description Maximum file size: 1024 kilobytes. Maximum file size: 512 kilobytes. + */ + file: string; + }; + /** UploadPhotoRequest */ + UploadPhotoRequest: { + /** + * Format: binary + * @description Maximum file size: 5120 kilobytes. + */ + photo: string; + }; + /** UploadReceiptRequest */ + UploadReceiptRequest: { + /** + * Format: binary + * @description Maximum file size: 10240 kilobytes. + */ + file: string; + }; + /** UploadTicketImportRequest */ + UploadTicketImportRequest: { + /** + * Format: binary + * @description Maximum file size: 10240 kilobytes. + */ + file: string; + platform: string; + }; + /** UserResource */ + UserResource: { + id: string; + name: string; + email: string; + avatar_url: null; + locale: string; + notifications: unknown[]; + email_verified_at: string | null; + has_password: boolean; + providers: unknown[]; + created_at: string | null; + } | string[]; + /** WebhookEventResource */ + WebhookEventResource: { + id: string; + payment_account_id: string; + driver: string; + event_id: string; + type: string; + gateway_charge_id: string; + status: string; + status_label: string; + result: string; + attempts: string; + can_reprocess: string; + next_attempt_at: string | null; + processed_at: string | null; + received_at: string | null; + } | string[]; + }; + responses: { + /** @description Authorization error */ + AuthorizationException: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + /** @description Error overview. */ + message: string; + }; + }; + }; + /** @description Unauthenticated */ + AuthenticationException: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + /** @description Error overview. */ + message: string; + }; + }; + }; + /** @description Validation error */ + ValidationException: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + /** @description Errors overview. */ + message: string; + /** @description A detailed description of each field that failed validation. */ + errors: { + [key: string]: string[]; + }; + }; + }; + }; + /** @description Not found */ + ModelNotFoundException: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + /** @description Error overview. */ + message: string; + }; + }; + }; + }; + parameters: never; + requestBodies: never; + headers: never; + pathItems: never; +} +export type $defs = Record; +export interface operations { + "audit.logs.index": { + parameters: { + query?: { + actor_id?: string; + action?: string; + from?: string; + to?: string; + }; + header?: never; + path: { + edition: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: unknown[]; + meta: { + current_page: number; + last_page: number; + total: number; + }; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; + 422: components["responses"]["ValidationException"]; + }; + }; + "branding.theme.show": { + parameters: { + query?: never; + header?: never; + path: { + edition: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description `ThemeSettingsResource` */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: components["schemas"]["ThemeSettingsResource"]; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; + }; + }; + "branding.theme.draft.update": { + parameters: { + query?: never; + header?: never; + path: { + edition: string; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["UpdateThemeDraftRequest"]; + }; + }; + responses: { + /** @description `ThemeSettingsResource` */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: components["schemas"]["ThemeSettingsResource"]; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; + 422: components["responses"]["ValidationException"]; + }; + }; + "branding.theme.draft.discard": { + parameters: { + query?: never; + header?: never; + path: { + edition: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description `ThemeSettingsResource` */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: components["schemas"]["ThemeSettingsResource"]; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; + }; + }; + "branding.theme.draft.preset": { + parameters: { + query?: never; + header?: never; + path: { + edition: string; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["ApplyThemePresetRequest"]; + }; + }; + responses: { + /** @description `ThemeSettingsResource` */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: components["schemas"]["ThemeSettingsResource"]; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; + 422: components["responses"]["ValidationException"]; + }; + }; + "branding.theme.publish": { + parameters: { + query?: never; + header?: never; + path: { + edition: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description `ThemeSettingsResource` */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: components["schemas"]["ThemeSettingsResource"]; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; + }; + }; + "branding.theme.revert": { + parameters: { + query?: never; + header?: never; + path: { + edition: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description `ThemeSettingsResource` */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: components["schemas"]["ThemeSettingsResource"]; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; + }; + }; + "branding.theme.logos.store": { + parameters: { + query?: never; + header?: never; + path: { + edition: string; + slot: string; + }; + cookie?: never; + }; + requestBody: { + content: { + "multipart/form-data": components["schemas"]["UploadLogoRequest"]; + }; + }; + responses: { + /** @description `ThemeSettingsResource` */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: components["schemas"]["ThemeSettingsResource"]; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; + 422: components["responses"]["ValidationException"]; + }; + }; + "branding.theme.logos.destroy": { + parameters: { + query?: never; + header?: never; + path: { + edition: string; + slot: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description `ThemeSettingsResource` */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: components["schemas"]["ThemeSettingsResource"]; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; + 422: components["responses"]["ValidationException"]; + }; + }; + "branding.domains.index": { + parameters: { + query?: never; + header?: never; + path: { + edition: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description Array of `EditionDomainResource` */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: components["schemas"]["EditionDomainResource"][]; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; + }; + }; + "branding.domains.store": { + parameters: { + query?: never; + header?: never; + path: { + edition: string; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["AddDomainRequest"]; + }; + }; + responses: { + /** @description `EditionDomainResource` */ + 201: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: components["schemas"]["EditionDomainResource"]; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; + 422: components["responses"]["ValidationException"]; + }; + }; + "branding.domains.verify": { + parameters: { + query?: never; + header?: never; + path: { + edition: string; + domain: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description `EditionDomainResource` */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: components["schemas"]["EditionDomainResource"]; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; + }; + }; + "branding.domains.primary": { + parameters: { + query?: never; + header?: never; + path: { + edition: string; + domain: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description `EditionDomainResource` */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: components["schemas"]["EditionDomainResource"]; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; + }; + }; + "branding.domains.destroy": { + parameters: { + query?: never; + header?: never; + path: { + edition: string; + domain: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description No content */ + 204: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; + }; + }; + "branding.public.resolve": { + parameters: { + query?: { + host?: string; + }; + header?: never; + path?: never; + cookie?: never; + }; + requestBody?: never; + responses: { + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: { + site_mode: string; + external_site_url: string | null; + } & { + [key: string]: unknown; + }; + }; + }; + }; + 404: components["responses"]["ModelNotFoundException"]; + }; + }; + "branding.public.tls-check": { + parameters: { + query?: { + domain?: string; + }; + header?: never; + path?: never; + cookie?: never; + }; + requestBody?: never; + responses: { + 200: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + 404: components["responses"]["ModelNotFoundException"]; + }; + }; + "branding.presets.index": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + requestBody?: never; + responses: { + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: unknown[]; + meta: { + tokens: unknown[]; + contrast_pairs: [ + unknown[], + unknown[] + ]; + fonts: unknown[]; + radius: { + /** @constant */ + min: 0; + /** @constant */ + max: 24; + }; + }; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; + }; + }; + "branding.public.theme": { + parameters: { + query?: never; + header?: never; + path: { + edition: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: { + edition_id: string; + theme: { + logos: unknown[]; + } & { + [key: string]: unknown; + }; + published_at: string | null; + }; + }; + }; + }; + 404: components["responses"]["ModelNotFoundException"]; + }; + }; + "cfp.settings.show": { + parameters: { + query?: never; + header?: never; + path: { + edition: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description `CfpSettingsResource` */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: components["schemas"]["CfpSettingsResource"]; + meta: { + form: { + formats: unknown[]; + levels: unknown[]; + languages: unknown[]; + limits: { + /** @constant */ + title: 90; + /** @constant */ + summary: 3000; + /** @constant */ + audience: 1000; + }; + }; + }; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; + }; + }; + "cfp.settings.update": { + parameters: { + query?: never; + header?: never; + path: { + edition: string; + }; + cookie?: never; + }; + requestBody?: { + content: { + "application/json": components["schemas"]["UpdateCfpSettingsRequest"]; + }; + }; + responses: { + /** @description `CfpSettingsResource` */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: components["schemas"]["CfpSettingsResource"]; + meta: { + form: { + formats: unknown[]; + levels: unknown[]; + languages: unknown[]; + limits: { + /** @constant */ + title: 90; + /** @constant */ + summary: 3000; + /** @constant */ + audience: 1000; + }; + }; + }; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; + 422: components["responses"]["ValidationException"]; + }; + }; + "cfp.tracks.index": { + parameters: { + query?: never; + header?: never; + path: { + edition: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description Array of `CfpTrackResource` */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: components["schemas"]["CfpTrackResource"][]; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; + }; + }; + "cfp.tracks.store": { + parameters: { + query?: never; + header?: never; + path: { + edition: string; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["SaveTrackRequest"]; + }; + }; + responses: { + /** @description `CfpTrackResource` */ + 201: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: components["schemas"]["CfpTrackResource"]; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; + 422: components["responses"]["ValidationException"]; + }; + }; + "cfp.tracks.destroy": { + parameters: { + query?: never; + header?: never; + path: { + edition: string; + track: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description No content */ + 204: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; + }; + }; + "cfp.tracks.update": { + parameters: { + query?: never; + header?: never; + path: { + edition: string; + track: string; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["SaveTrackRequest"]; + }; + }; + responses: { + /** @description `CfpTrackResource` */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: components["schemas"]["CfpTrackResource"]; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; + 422: components["responses"]["ValidationException"]; + }; + }; + "cfp.criteria.index": { + parameters: { + query?: never; + header?: never; + path: { + edition: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description Array of `CfpCriterionResource` */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: components["schemas"]["CfpCriterionResource"][]; + meta: { + submitted_reviews: number; + }; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; + }; + }; + "cfp.criteria.store": { + parameters: { + query?: never; + header?: never; + path: { + edition: string; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["SaveCriterionRequest"]; + }; + }; + responses: { + /** @description `CfpCriterionResource` */ + 201: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: components["schemas"]["CfpCriterionResource"]; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; + 422: components["responses"]["ValidationException"]; + }; + }; + "cfp.criteria.destroy": { + parameters: { + query?: { + confirm?: boolean; + }; + header?: never; + path: { + edition: string; + criterion: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description No content */ + 204: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; + }; + }; + "cfp.criteria.update": { + parameters: { + query?: never; + header?: never; + path: { + edition: string; + criterion: string; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["SaveCriterionRequest"]; + }; + }; + responses: { + /** @description `CfpCriterionResource` */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: components["schemas"]["CfpCriterionResource"]; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; + 422: components["responses"]["ValidationException"]; + }; + }; + "cfp.proposals.index": { + parameters: { + query?: { + status?: components["schemas"]["ProposalStatus"]; + track_id?: string; + }; + header?: never; + path: { + edition: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: unknown[]; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; + 422: components["responses"]["ValidationException"]; + }; + }; + "cfp.proposals.show": { + parameters: { + query?: never; + header?: never; + path: { + edition: string; + proposal: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description `ProposalResource` */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: components["schemas"]["ProposalResource"]; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; + }; + }; + "cfp.proposals.update": { + parameters: { + query?: never; + header?: never; + path: { + edition: string; + proposal: string; + }; + cookie?: never; + }; + requestBody?: { + content: { + "application/json": components["schemas"]["SaveProposalRequest"]; + }; + }; + responses: { + /** @description `ProposalResource` */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: components["schemas"]["ProposalResource"]; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; + 422: components["responses"]["ValidationException"]; + }; + }; + "cfp.evaluation.index": { + parameters: { + query?: { + status?: string; + }; + header?: never; + path: { + edition: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + summary: { + proposals: number; + reviewed: number; + without_reviewer: number; + average_score: number | null; + nordeste_percent: number | null; + nordeste_quota_percent: number; + }; + criteria: unknown[]; + data: ({ + final_score: string; + review_status: string; + reviews_assigned: string; + reviews_submitted: string; + criterion_averages: string; + } & { + [key: string]: unknown; + })[]; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; + }; + }; + "cfp.evaluation.export": { + parameters: { + query?: never; + header?: never; + path: { + edition: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + 200: { + headers: { + "Transfer-Encoding": "chunked"; + [name: string]: unknown; + }; + content: { + "text/csv; charset=UTF-8": string; + }; + }; + 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; + }; + }; + "cfp.reviewers.index": { + parameters: { + query?: never; + header?: never; + path: { + edition: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: unknown[]; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; + }; + }; + "cfp.assignments.auto": { + parameters: { + query?: never; + header?: never; + path: { + edition: string; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["AutoAssignRequest"]; + }; + }; + responses: { + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: { + created: number; + unfilled: string[]; + }; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; + 422: components["responses"]["ValidationException"]; + }; + }; + "cfp.assignments.index": { + parameters: { + query?: never; + header?: never; + path: { + edition: string; + proposal: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: unknown[]; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; + }; + }; + "cfp.assignments.store": { + parameters: { + query?: never; + header?: never; + path: { + edition: string; + proposal: string; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["AssignReviewerRequest"]; + }; + }; + responses: { + 201: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: { + reviewer_id: string; + proposal_id: string; + }; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; + 422: components["responses"]["ValidationException"]; + }; + }; + "cfp.assignments.destroy": { + parameters: { + query?: never; + header?: never; + path: { + edition: string; + proposal: string; + reviewer: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description No content */ + 204: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; + 404: components["responses"]["ModelNotFoundException"]; + }; + }; + "cfp.decision.ranking": { + parameters: { + query?: never; + header?: never; + path: { + edition: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: { + tracks: { + track: string; + proposals: unknown[]; + }[]; + outcome: { + decisions: { + accepted: unknown; + waitlisted: unknown; + rejected: unknown; + undecided: unknown; + }; + tracks: unknown[]; + coverage: { + people: number; + unknown_state: number; + by_state: string; + nordeste_people: number; + nordeste_percent: number | null; + nordeste_states_missing: unknown[]; + nordeste_quota_percent: number; + require_nordeste_quota: boolean; + }; + alerts: ({ + /** @constant */ + type: "nordeste_quota"; + message: string; + } | { + /** @constant */ + type: "states_missing"; + message: string; + } | { + /** @constant */ + type: "track_over_slots"; + message: string; + } | { + /** @constant */ + type: "unknown_state"; + message: string; + })[]; + }; + }; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; + }; + }; + "cfp.decision.simulate": { + parameters: { + query?: never; + header?: never; + path: { + edition: string; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["DecisionsRequest"]; + }; + }; + responses: { + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: { + decisions: { + accepted: unknown; + waitlisted: unknown; + rejected: unknown; + undecided: unknown; + }; + tracks: unknown[]; + coverage: { + people: number; + unknown_state: number; + by_state: string; + nordeste_people: number; + nordeste_percent: number | null; + nordeste_states_missing: unknown[]; + nordeste_quota_percent: number; + require_nordeste_quota: boolean; + }; + alerts: ({ + /** @constant */ + type: "nordeste_quota"; + message: string; + } | { + /** @constant */ + type: "states_missing"; + message: string; + } | { + /** @constant */ + type: "track_over_slots"; + message: string; + } | { + /** @constant */ + type: "unknown_state"; + message: string; + })[]; + }; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; + 422: components["responses"]["ValidationException"]; + }; + }; + "cfp.decision.apply": { + parameters: { + query?: never; + header?: never; + path: { + edition: string; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["DecisionsRequest"]; + }; + }; + responses: { + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: { + changed: number; + outcome: { + decisions: { + accepted: unknown; + waitlisted: unknown; + rejected: unknown; + undecided: unknown; + }; + tracks: unknown[]; + coverage: { + people: number; + unknown_state: number; + by_state: string; + nordeste_people: number; + nordeste_percent: number | null; + nordeste_states_missing: unknown[]; + nordeste_quota_percent: number; + require_nordeste_quota: boolean; + }; + alerts: ({ + /** @constant */ + type: "nordeste_quota"; + message: string; + } | { + /** @constant */ + type: "states_missing"; + message: string; + } | { + /** @constant */ + type: "track_over_slots"; + message: string; + } | { + /** @constant */ + type: "unknown_state"; + message: string; + })[]; + }; + }; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; + 422: components["responses"]["ValidationException"]; + }; + }; + "cfp.speakers.index": { + parameters: { + query?: never; + header?: never; + path: { + edition: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + summary: { + confirmed: number; + awaiting: number; + waitlisted: number; + slots: number; + nordeste_percent: number | null; + nordeste_quota_percent: number; + }; + coverage: unknown[]; + data: { + user_id: string; + name: string | null; + email: string | null; + state: string | null; + nordeste: string | boolean; + proposal: { + id: string; + number: string; + title: string; + track: string | null; + origin: string; + }; + /** @enum {string} */ + status: "pending" | "confirmed" | "declined" | "withdrawn" | "no_response" | "cancelled" | "waitlisted"; + /** @enum {string} */ + status_label: "Lista de espera" | "Aguardando resposta" | "Confirmada" | "Recusou" | "Desistiu" | "Sem resposta" | "Cancelada"; + deadline_at: string | null; + reminded_at: string | null; + attended_at: string | null; + }[]; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; + }; + }; + "cfp.speakers.invite": { + parameters: { + query?: never; + header?: never; + path: { + edition: string; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["InviteSpeakerRequest"]; + }; + }; + responses: { + 201: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: { + proposal_id: string; + number: number; + user_id: string | null; + deadline_at: string | null; + }; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; + 422: components["responses"]["ValidationException"]; + }; + }; + "cfp.speakers.remind": { + parameters: { + query?: never; + header?: never; + path: { + edition: string; + }; + cookie?: never; + }; + requestBody?: { + content: { + "application/json": components["schemas"]["RemindSpeakersRequest"]; + }; + }; + responses: { + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: { + reminded: number; + skipped: number; + }; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; + 422: components["responses"]["ValidationException"]; + }; + }; + "cfp.speakers.show": { + parameters: { + query?: never; + header?: never; + path: { + edition: string; + user: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: { + user_id: string; + name: string | null; + email: string | null; + profile: { + user_id: string; + display_name: string; + job_title: string | null; + company: string | null; + bio: string | null; + city: string | null; + state: string | null; + links: { + [key: string]: string | null; + }; + photo_url: string | null; + } | null; + can_view_private_data: boolean; + proposals: unknown[]; + logistics: { + user_id: string; + origin_city: string | null; + /** @enum {string|null} */ + origin_state: "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" | null; + needs_travel: boolean; + needs_lodging: boolean; + travel_paid_by_organization: boolean; + lodging_paid_by_organization: boolean; + organization_notes: string | null; + restrictions: { + accessibility_needs: string | null; + dietary_restrictions: string | null; + } | null; + } | null; + }; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; + 404: components["responses"]["ModelNotFoundException"]; + }; + }; + "cfp.speakers.attendance": { + parameters: { + query?: never; + header?: never; + path: { + edition: string; + user: string; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["SpeakerAttendanceRequest"]; + }; + }; + responses: { + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: { + updated: number; + }; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; + 422: components["responses"]["ValidationException"]; + }; + }; + "cfp.confirmations.index": { + parameters: { + query?: never; + header?: never; + path: { + edition: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + summary: unknown[]; + data: unknown[]; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; + }; + }; + "cfp.confirmations.extend": { + parameters: { + query?: never; + header?: never; + path: { + edition: string; + proposal: string; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["ExtendDeadlineRequest"]; + }; + }; + responses: { + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: { + /** @enum {string} */ + status: "pending" | "confirmed" | "declined" | "withdrawn" | "no_response" | "cancelled"; + deadline_at: string; + }; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; + 404: components["responses"]["ModelNotFoundException"]; + 422: components["responses"]["ValidationException"]; + }; + }; + "cfp.promotions.index": { + parameters: { + query?: never; + header?: never; + path: { + edition: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: unknown[]; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; + }; + }; + "cfp.promotions.store": { + parameters: { + query?: never; + header?: never; + path: { + edition: string; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["PromoteRequest"]; + }; + }; + responses: { + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: { + proposal_id: string; + /** @enum {string|null} */ + decision: "accepted" | "waitlisted" | "rejected" | null; + /** @enum {string|null} */ + confirmation_status: "pending" | "confirmed" | "declined" | "withdrawn" | "no_response" | "cancelled" | null; + }; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; + 422: components["responses"]["ValidationException"]; + }; + }; + "cfp.logistics.show": { + parameters: { + query?: never; + header?: never; + path: { + edition: string; + user: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: { + user_id: string; + origin_city: string | null; + /** @enum {string|null} */ + origin_state: "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" | null; + needs_travel: boolean; + needs_lodging: boolean; + travel_paid_by_organization: boolean; + lodging_paid_by_organization: boolean; + organization_notes: string | null; + restrictions: { + accessibility_needs: string | null; + dietary_restrictions: string | null; + } | null; + }; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; + }; + }; + "cfp.logistics.update": { + parameters: { + query?: never; + header?: never; + path: { + edition: string; + user: string; + }; + cookie?: never; + }; + requestBody?: { + content: { + "application/json": components["schemas"]["OrganizationLogisticsRequest"]; + }; + }; + responses: { + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: { + user_id: string; + origin_city: string | null; + /** @enum {string|null} */ + origin_state: "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" | null; + needs_travel: boolean; + needs_lodging: boolean; + travel_paid_by_organization: boolean; + lodging_paid_by_organization: boolean; + organization_notes: string | null; + restrictions: { + accessibility_needs: string | null; + dietary_restrictions: string | null; + } | null; + }; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; + 422: components["responses"]["ValidationException"]; + }; + }; + "cfp.reviews.queue": { + parameters: { + query?: never; + header?: never; + path: { + edition: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: unknown[]; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; + }; + }; + "cfp.reviews.show": { + parameters: { + query?: never; + header?: never; + path: { + edition: string; + proposal: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: { + proposal: unknown[]; + criteria: unknown[]; + review: { + status: string; + scores: number[]; + comment: string | null; + weighted_score: number | null; + submitted_at: string | null; + } | null; + }; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; + }; + }; + "cfp.reviews.save": { + parameters: { + query?: never; + header?: never; + path: { + edition: string; + proposal: string; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["SaveReviewRequest"]; + }; + }; + responses: { + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: { + status: string; + scores: number[]; + comment: string | null; + weighted_score: number | null; + submitted_at: string | null; + }; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; + 422: components["responses"]["ValidationException"]; + }; + }; + "cfp.reviews.index": { + parameters: { + query?: never; + header?: never; + path: { + edition: string; + proposal: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: { + status: string; + scores: number[]; + comment: string | null; + weighted_score: number | null; + submitted_at: string | null; + reviewer: unknown; + }[]; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; + }; + }; + "cfp.speaker.proposals.index": { + parameters: { + query?: never; + header?: never; + path: { + edition: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: unknown[]; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; + }; + }; + "cfp.speaker.proposals.store": { + parameters: { + query?: never; + header?: never; + path: { + edition: string; + }; + cookie?: never; + }; + requestBody?: { + content: { + "application/json": components["schemas"]["SaveProposalRequest"]; + }; + }; + responses: { + /** @description `ProposalResource` */ + 201: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: components["schemas"]["ProposalResource"]; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; + 422: components["responses"]["ValidationException"]; + }; + }; + "cfp.speaker.proposals.show": { + parameters: { + query?: never; + header?: never; + path: { + edition: string; + proposal: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: { + confirmation: { + /** @enum {string} */ + status: "pending" | "confirmed" | "declined" | "withdrawn" | "no_response" | "cancelled"; + /** @enum {string} */ + status_label: "Aguardando resposta" | "Confirmada" | "Recusou" | "Desistiu" | "Sem resposta" | "Cancelada"; + deadline_at: string; + responded_at: string | null; + } | null; + } & { + [key: string]: unknown; + }; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; + }; + }; + "cfp.speaker.proposals.update": { + parameters: { + query?: never; + header?: never; + path: { + edition: string; + proposal: string; + }; + cookie?: never; + }; + requestBody?: { + content: { + "application/json": components["schemas"]["SaveProposalRequest"]; + }; + }; + responses: { + /** @description `ProposalResource` */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: components["schemas"]["ProposalResource"]; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; + 422: components["responses"]["ValidationException"]; + }; + }; + "cfp.speaker.proposals.submit": { + parameters: { + query?: never; + header?: never; + path: { + edition: string; + proposal: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description `ProposalResource` */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: components["schemas"]["ProposalResource"]; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; + }; + }; + "cfp.speaker.proposals.withdraw": { + parameters: { + query?: never; + header?: never; + path: { + edition: string; + proposal: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description `ProposalResource` */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: components["schemas"]["ProposalResource"]; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; + }; + }; + "cfp.speaker.proposals.coauthors.store": { + parameters: { + query?: never; + header?: never; + path: { + edition: string; + proposal: string; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["AddCoauthorRequest"]; + }; + }; + responses: { + /** @description `ProposalResource` */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: components["schemas"]["ProposalResource"]; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; + 422: components["responses"]["ValidationException"]; + }; + }; + "cfp.speaker.proposals.confirm": { + parameters: { + query?: never; + header?: never; + path: { + edition: string; + proposal: string; + }; + cookie?: never; + }; + requestBody?: { + content: { + "application/json": components["schemas"]["RespondConfirmationRequest"]; + }; + }; + responses: { + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: { + /** @enum {string} */ + status: "pending" | "confirmed" | "declined" | "withdrawn" | "no_response" | "cancelled"; + /** @enum {string} */ + status_label: "Aguardando resposta" | "Confirmada" | "Recusou" | "Desistiu" | "Sem resposta" | "Cancelada"; + deadline_at: string; + }; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; + 422: components["responses"]["ValidationException"]; + }; + }; + "cfp.speaker.proposals.decline": { + parameters: { + query?: never; + header?: never; + path: { + edition: string; + proposal: string; + }; + cookie?: never; + }; + requestBody?: { + content: { + "application/json": components["schemas"]["RespondConfirmationRequest"]; + }; + }; + responses: { + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: { + /** @enum {string} */ + status: "pending" | "confirmed" | "declined" | "withdrawn" | "no_response" | "cancelled"; + /** @enum {string} */ + status_label: "Aguardando resposta" | "Confirmada" | "Recusou" | "Desistiu" | "Sem resposta" | "Cancelada"; + deadline_at: string; + }; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; + 422: components["responses"]["ValidationException"]; + }; + }; + "cfp.speaker.proposals.give-up": { + parameters: { + query?: never; + header?: never; + path: { + edition: string; + proposal: string; + }; + cookie?: never; + }; + requestBody?: { + content: { + "application/json": components["schemas"]["RespondConfirmationRequest"]; + }; + }; + responses: { + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: { + /** @enum {string} */ + status: "pending" | "confirmed" | "declined" | "withdrawn" | "no_response" | "cancelled"; + /** @enum {string} */ + status_label: "Aguardando resposta" | "Confirmada" | "Recusou" | "Desistiu" | "Sem resposta" | "Cancelada"; + deadline_at: string; + }; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; + 422: components["responses"]["ValidationException"]; + }; + }; + "cfp.speaker.proposals.coauthors.destroy": { + parameters: { + query?: never; + header?: never; + path: { + edition: string; + proposal: string; + user: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description `ProposalResource` */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: components["schemas"]["ProposalResource"]; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; + 404: components["responses"]["ModelNotFoundException"]; + }; + }; + "cfp.public.show": { + parameters: { + query?: never; + header?: never; + path: { + edition: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: { + edition_id: string; + /** @enum {string} */ + status: "open" | "draft" | "closed" | "scheduled"; + /** @enum {string} */ + status_label: "CFP aberto" | "Em preparação" | "CFP encerrado" | "Agendado"; + opens_at: string | null; + closes_at: string | null; + results_at: string | null; + anonymous_review: boolean; + proposals_per_person: number; + tracks: { + id: string; + name: string; + }[]; + form: { + formats: unknown[]; + levels: unknown[]; + languages: unknown[]; + limits: { + /** @constant */ + title: 90; + /** @constant */ + summary: 3000; + /** @constant */ + audience: 1000; + }; + }; + }; + }; + }; + }; + 404: components["responses"]["ModelNotFoundException"]; + }; + }; + "cfp.speaker.logistics.show": { + parameters: { + query?: never; + header?: never; + path: { + edition: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: { + user_id: string; + origin_city: string | null; + /** @enum {string|null} */ + origin_state: "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" | null; + needs_travel: boolean; + needs_lodging: boolean; + travel_paid_by_organization: boolean; + lodging_paid_by_organization: boolean; + organization_notes: string | null; + restrictions: null; + }; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; + }; + }; + "cfp.speaker.logistics.update": { + parameters: { + query?: never; + header?: never; + path: { + edition: string; + }; + cookie?: never; + }; + requestBody?: { + content: { + "application/json": components["schemas"]["SpeakerLogisticsRequest"]; + }; + }; + responses: { + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: { + user_id: string; + origin_city: string | null; + /** @enum {string|null} */ + origin_state: "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" | null; + needs_travel: boolean; + needs_lodging: boolean; + travel_paid_by_organization: boolean; + lodging_paid_by_organization: boolean; + organization_notes: string | null; + restrictions: null; + }; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; + 422: components["responses"]["ValidationException"]; + }; + }; + "community.communities.index": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description Array of `CommunityResource` */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: components["schemas"]["CommunityResource"][]; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; + }; + }; + "community.communities.store": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["StoreCommunityRequest"]; + }; + }; + responses: { + /** @description `CommunityResource` */ + 201: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: components["schemas"]["CommunityResource"]; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; + 422: components["responses"]["ValidationException"]; + }; + }; + "community.communities.show": { + parameters: { + query?: never; + header?: never; + path: { + /** @description The community ID */ + community: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description `CommunityResource` */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: components["schemas"]["CommunityResource"]; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; + 404: components["responses"]["ModelNotFoundException"]; + }; + }; + "community.communities.destroy": { + parameters: { + query?: never; + header?: never; + path: { + /** @description The community ID */ + community: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description No content */ + 204: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; + 404: components["responses"]["ModelNotFoundException"]; + }; + }; + "community.communities.update": { + parameters: { + query?: never; + header?: never; + path: { + /** @description The community ID */ + community: string; + }; + cookie?: never; + }; + requestBody?: { + content: { + "application/json": components["schemas"]["UpdateCommunityRequest"]; + }; + }; + responses: { + /** @description `CommunityResource` */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: components["schemas"]["CommunityResource"]; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; + 404: components["responses"]["ModelNotFoundException"]; + 422: components["responses"]["ValidationException"]; + }; + }; + "community.communities.editions.index": { + parameters: { + query?: never; + header?: never; + path: { + /** @description The community ID */ + community: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description Array of `EditionResource` */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: components["schemas"]["EditionResource"][]; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; + 404: components["responses"]["ModelNotFoundException"]; + }; + }; + "community.communities.editions.store": { + parameters: { + query?: never; + header?: never; + path: { + /** @description The community ID */ + community: string; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["StoreEditionRequest"]; + }; + }; + responses: { + /** @description `EditionResource` */ + 201: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: components["schemas"]["EditionResource"]; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; + 404: components["responses"]["ModelNotFoundException"]; + 422: components["responses"]["ValidationException"]; + }; + }; + "community.editions.index": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description Array of `EditionResource` */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: components["schemas"]["EditionResource"][]; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; + }; + }; + "community.roles.index": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + requestBody?: never; + responses: { + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: { + roles: unknown[]; + permissions: unknown[]; + }; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; + }; + }; + "community.edition-clones.show": { + parameters: { + query?: never; + header?: never; + path: { + clone: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description `EditionCloneResource` */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: components["schemas"]["EditionCloneResource"]; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; + 404: components["responses"]["ModelNotFoundException"]; + }; + }; + "community.team.index": { + parameters: { + query?: never; + header?: never; + path: { + edition: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: { + members: { + id: string; + user_id: string; + name: string | null; + email: string | null; + /** @enum {string} */ + role: "organizador" | "financeiro" | "avaliador" | "checkin" | "voluntario"; + /** @enum {string} */ + role_label: "Organizador" | "Financeiro" | "Revisor do CFP" | "Credenciamento" | "Voluntário"; + /** @enum {string} */ + access: "Tudo na edição" | "Pedidos, pagamentos e finanças" | "CFP e palestrantes" | "Check-in" | "Visão geral da edição"; + last_seen_at: null; + joined_at: string; + }[]; + invitations: unknown[]; + summary: { + people: number; + pending_invitations: number; + by_role: unknown[]; + }; + }; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; + }; + }; + "community.team.members.destroy": { + parameters: { + query?: never; + header?: never; + path: { + edition: string; + member: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description No content */ + 204: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; + }; + }; + "community.team.members.update": { + parameters: { + query?: never; + header?: never; + path: { + edition: string; + member: string; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["ChangeMemberRoleRequest"]; + }; + }; + responses: { + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: { + id: string; + user_id: string; + name: string | null; + email: string | null; + /** @enum {string} */ + role: "organizador" | "financeiro" | "avaliador" | "checkin" | "voluntario"; + /** @enum {string} */ + role_label: "Organizador" | "Financeiro" | "Revisor do CFP" | "Credenciamento" | "Voluntário"; + /** @enum {string} */ + access: "Tudo na edição" | "Pedidos, pagamentos e finanças" | "CFP e palestrantes" | "Check-in" | "Visão geral da edição"; + last_seen_at: null; + joined_at: string; + }; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; + 422: components["responses"]["ValidationException"]; + }; + }; + "community.team.invitations.store": { + parameters: { + query?: never; + header?: never; + path: { + edition: string; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["InviteTeamMemberRequest"]; + }; + }; + responses: { + /** @description `TeamInvitationResource` */ + 201: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: components["schemas"]["TeamInvitationResource"]; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; + 422: components["responses"]["ValidationException"]; + }; + }; + "community.team.invitations.resend": { + parameters: { + query?: never; + header?: never; + path: { + edition: string; + invitation: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description `TeamInvitationResource` */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: components["schemas"]["TeamInvitationResource"]; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; + }; + }; + "community.team.invitations.destroy": { + parameters: { + query?: never; + header?: never; + path: { + edition: string; + invitation: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description No content */ + 204: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; + }; + }; + "community.invitations.show": { + parameters: { + query?: never; + header?: never; + path: { + token: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: { + edition: { + id: string; + name: string; + }; + email: string; + name: string | null; + /** @enum {string} */ + role: "organizador" | "financeiro" | "avaliador" | "checkin" | "voluntario"; + /** @enum {string} */ + role_label: "Organizador" | "Financeiro" | "Revisor do CFP" | "Credenciamento" | "Voluntário"; + invited_by: string | null; + account_exists: boolean; + expires_at: string; + }; + }; + }; + }; + }; + }; + "community.invitations.accept": { + parameters: { + query?: never; + header?: never; + path: { + token: string; + }; + cookie?: never; + }; + requestBody?: { + content: { + "application/json": components["schemas"]["AcceptInvitationRequest"] & { name: string; - value: string; + password: string; + password_confirmation: string; + }; + }; + }; + responses: { + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + user: { + id: string; + name: string; + email: string; + }; + edition_id: string; + token: string; + }; + }; + }; + 422: components["responses"]["ValidationException"]; + }; + }; + "community.editions.show": { + parameters: { + query?: never; + header?: never; + path: { + /** @description The edition ID */ + edition: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description `EditionResource` */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: components["schemas"]["EditionResource"]; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; + 404: components["responses"]["ModelNotFoundException"]; + }; + }; + "community.editions.destroy": { + parameters: { + query?: never; + header?: never; + path: { + /** @description The edition ID */ + edition: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description No content */ + 204: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; + 404: components["responses"]["ModelNotFoundException"]; + }; + }; + "community.editions.update": { + parameters: { + query?: never; + header?: never; + path: { + /** @description The edition ID */ + edition: string; + }; + cookie?: never; + }; + requestBody?: { + content: { + "application/json": components["schemas"]["UpdateEditionRequest"]; + }; + }; + responses: { + /** @description `EditionResource` */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: components["schemas"]["EditionResource"]; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; + 404: components["responses"]["ModelNotFoundException"]; + 422: components["responses"]["ValidationException"]; + }; + }; + "community.editions.status": { + parameters: { + query?: never; + header?: never; + path: { + /** @description The edition ID */ + edition: string; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["ChangeEditionStatusRequest"]; + }; + }; + responses: { + /** @description `EditionResource` */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: components["schemas"]["EditionResource"]; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; + 404: components["responses"]["ModelNotFoundException"]; + 422: components["responses"]["ValidationException"]; + }; + }; + "community.editions.overview": { + parameters: { + query?: never; + header?: never; + path: { + edition: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: { + edition: { + id: string; + name: string; + starts_on: string | null; + ends_on: string | null; + city: string | null; + /** @enum {string|null} */ + state: "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" | null; + }; + stage: { + /** @enum {string} */ + current: "draft" | "cfp_open" | "sales_open" | "ongoing" | "closed"; + days_until_event: number | null; + steps: unknown[]; + }; + indicators: { + tickets: unknown; + revenue: unknown; + proposals: unknown; + speakers: unknown; + } & { + [key: string]: unknown; + }; + sections: { + tickets_per_week: unknown; + nordeste: unknown; + } & { + [key: string]: unknown; + }; + pending: unknown[]; + milestones: unknown[]; + }; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; + 404: components["responses"]["ModelNotFoundException"]; + }; + }; + "community.editions.clone-options": { + parameters: { + query?: never; + header?: never; + path: { + edition: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: { + parts: unknown[]; + never_copied: [ + "Propostas", + "Pedidos e ingressos vendidos", + "Participantes", + "Grade", + "Dinheiro e chaves do gateway", + "Domínios", + "Datas" + ]; + }; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; + }; + }; + "community.editions.clone": { + parameters: { + query?: never; + header?: never; + path: { + edition: string; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["CloneEditionRequest"]; + }; + }; + responses: { + /** @description `EditionCloneResource` */ + 202: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: components["schemas"]["EditionCloneResource"]; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; + 404: components["responses"]["ModelNotFoundException"]; + 422: components["responses"]["ValidationException"]; + }; + }; + "community.public.editions.show": { + parameters: { + query?: never; + header?: never; + path: { + /** @description The community slug */ + community: string; + /** @description The edition slug */ + edition: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description `PublicEditionResource` */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: components["schemas"]["PublicEditionResource"]; + }; + }; + }; + 404: components["responses"]["ModelNotFoundException"]; + }; + }; + "finance.summary": { + parameters: { + query?: never; + header?: never; + path: { + /** @description The edition ID */ + edition: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: { + revenue: { + tickets: { + gross: number; + refunded: number; + fees: number; + net: number; + by_account: unknown[]; + }; + sponsors: { + received: number; + outstanding: number; + }; + total: number; + }; + expenses: { + paid: number; + pending: number; + overdue: number; + }; + balance: number; + forecast: number; + budget: { + categories: unknown[]; + budgeted: number; + committed: number; + paid: number; + }; + }; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; + 404: components["responses"]["ModelNotFoundException"]; + }; + }; + "finance.export": { + parameters: { + query?: never; + header?: never; + path: { + /** @description The edition ID */ + edition: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + 200: { + headers: { + /** @example attachment; filename=.xlsx */ + "Content-Disposition"?: string; + "Transfer-Encoding"?: "chunked"; + [name: string]: unknown; + }; + content: { + "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet": string; + "text/csv; charset=UTF-8": string; + }; + }; + 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; + 404: components["responses"]["ModelNotFoundException"]; + /** @description An error */ + 500: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + /** + * @description Error overview. + * @example + */ + message: string; + }; + }; + }; + }; + }; + "finance.suppliers": { + parameters: { + query?: never; + header?: never; + path: { + /** @description The edition ID */ + edition: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: unknown[]; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; + 404: components["responses"]["ModelNotFoundException"]; + }; + }; + "finance.categories.index": { + parameters: { + query?: never; + header?: never; + path: { + /** @description The edition ID */ + edition: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: { + id: string; + name: string; + budget: number | null; + position: number; + }[]; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; + 404: components["responses"]["ModelNotFoundException"]; + }; + }; + "finance.categories.store": { + parameters: { + query?: never; + header?: never; + path: { + /** @description The edition ID */ + edition: string; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["SaveCategoryRequest"]; + }; + }; + responses: { + 201: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: { + id: string; + name: string; + budget: number | null; + position: number; + }; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; + 404: components["responses"]["ModelNotFoundException"]; + 422: components["responses"]["ValidationException"]; + }; + }; + "finance.categories.destroy": { + parameters: { + query?: never; + header?: never; + path: { + edition: string; + category: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description No content */ + 204: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; + }; + }; + "finance.categories.update": { + parameters: { + query?: never; + header?: never; + path: { + /** @description The edition ID */ + edition: string; + category: string; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["SaveCategoryRequest"]; + }; + }; + responses: { + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: { + id: string; + name: string; + budget: number | null; + position: number; + }; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; + 404: components["responses"]["ModelNotFoundException"]; + 422: components["responses"]["ValidationException"]; + }; + }; + "finance.expenses.index": { + parameters: { + query?: { + finance_category_id?: string; + edition_supplier_id?: string; + overdue?: boolean; + }; + header?: never; + path: { + /** @description The edition ID */ + edition: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: { + id: string; + description: string; + category: { + id: string; + name: string; + }; + supplier: { + id: string; + name: string; + } | null; + amount: number; + due_on: string | null; + paid_on: string | null; + /** @enum {string} */ + status: "pending" | "paid" | "cancelled"; + /** @enum {string} */ + status_label: "Atrasada" | "A pagar" | "Paga" | "Cancelada"; + overdue: boolean; + notes: string | null; + receipt: { + name: string | null; + mime_type: string | null; + size_bytes: number | null; + } | null; + }[]; + totals: { + count: number; + amount: number; + paid: number; + pending: number; + }; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; + 404: components["responses"]["ModelNotFoundException"]; + }; + }; + "finance.expenses.store": { + parameters: { + query?: never; + header?: never; + path: { + /** @description The edition ID */ + edition: string; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["SaveExpenseRequest"]; + }; + }; + responses: { + 201: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: { + id: string; + description: string; + category: { + id: string; + name: string; + }; + supplier: { + id: string; + name: string; + } | null; + amount: number; + due_on: string | null; + paid_on: string | null; + /** @enum {string} */ + status: "pending" | "paid" | "cancelled"; + /** @enum {string} */ + status_label: "Atrasada" | "A pagar" | "Paga" | "Cancelada"; + overdue: boolean; + notes: string | null; + receipt: { + name: string | null; + mime_type: string | null; + size_bytes: number | null; + } | null; + }; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; + 404: components["responses"]["ModelNotFoundException"]; + 422: components["responses"]["ValidationException"]; + }; + }; + "finance.expenses.destroy": { + parameters: { + query?: never; + header?: never; + path: { + edition: string; + expense: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description No content */ + 204: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; + }; + }; + "finance.expenses.update": { + parameters: { + query?: never; + header?: never; + path: { + /** @description The edition ID */ + edition: string; + expense: string; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["SaveExpenseRequest"]; + }; + }; + responses: { + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: { + id: string; + description: string; + category: { + id: string; + name: string; + }; + supplier: { + id: string; + name: string; + } | null; + amount: number; + due_on: string | null; + paid_on: string | null; + /** @enum {string} */ + status: "pending" | "paid" | "cancelled"; + /** @enum {string} */ + status_label: "Atrasada" | "A pagar" | "Paga" | "Cancelada"; + overdue: boolean; + notes: string | null; + receipt: { + name: string | null; + mime_type: string | null; + size_bytes: number | null; + } | null; + }; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; + 404: components["responses"]["ModelNotFoundException"]; + 422: components["responses"]["ValidationException"]; + }; + }; + "finance.expenses.receipt": { + parameters: { + query?: never; + header?: never; + path: { + edition: string; + expense: string; + }; + cookie?: never; + }; + requestBody: { + content: { + "multipart/form-data": components["schemas"]["UploadReceiptRequest"]; + }; + }; + responses: { + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: { + id: string; + description: string; + category: { + id: string; + name: string; + }; + supplier: { + id: string; + name: string; + } | null; + amount: string; + due_on: string | null; + paid_on: string | null; + /** @enum {string} */ + status: "pending" | "paid" | "cancelled"; + /** @enum {string} */ + status_label: "Atrasada" | "A pagar" | "Paga" | "Cancelada"; + overdue: boolean; + notes: string | null; + receipt: { + name: string | null; + mime_type: string | null; + size_bytes: number | null; + } | null; + }; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; + 422: components["responses"]["ValidationException"]; + }; + }; + "finance.expenses.receipt.url": { + parameters: { + query?: never; + header?: never; + path: { + edition: string; + expense: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: { + url: string; + expires_at: string; + }; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; + 404: components["responses"]["ModelNotFoundException"]; + }; + }; + "finance.receipts.download": { + parameters: { + query?: never; + header?: never; + path: { + expense: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + 200: { + headers: { + "Transfer-Encoding": "chunked"; + [name: string]: unknown; + }; + content: { + "application/octet-stream": string; + }; + }; + 404: components["responses"]["ModelNotFoundException"]; + }; + }; + "auth.register": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["RegisterRequest"]; + }; + }; + responses: { + /** @description `UserResource` */ + 201: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: components["schemas"]["UserResource"]; + }; + }; + }; + 422: components["responses"]["ValidationException"]; + }; + }; + "auth.login": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["LoginRequest"]; + }; + }; + responses: { + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + user: unknown[]; + token: string; + }; + }; + }; + 422: components["responses"]["ValidationException"]; + }; + }; + "auth.logout": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + requestBody?: never; + responses: { + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + loggedOut: boolean; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; + }; + }; + "auth.logout-all": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + requestBody?: never; + responses: { + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + loggedOut: boolean; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; + }; + }; + "verification.verify": { + parameters: { + query?: never; + header?: never; + path: { + id: string; + hash: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + verified: boolean; + }; + }; + }; + }; + }; + "verification.send": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + requestBody?: never; + responses: { + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + sent: boolean; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; + }; + }; + "auth.password.forgot": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["ForgotPasswordRequest"]; + }; + }; + responses: { + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + sent: boolean; + /** @constant */ + message: "Se existir uma conta com este e-mail, enviamos um link para redefinir a senha."; + }; + }; + }; + 422: components["responses"]["ValidationException"]; + }; + }; + "auth.password.reset": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["ResetPasswordRequest"]; + }; + }; + responses: { + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + reset: boolean; + }; + }; + }; + 422: components["responses"]["ValidationException"]; + }; + }; + "auth.password.update": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["ChangePasswordRequest"]; + }; + }; + responses: { + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + updated: boolean; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; + 422: components["responses"]["ValidationException"]; + }; + }; + "auth.github.redirect": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + requestBody?: never; + responses: { + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + url: string; + }; + }; + }; + }; + }; + "auth.github.link": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + requestBody?: never; + responses: { + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + url: string; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; + }; + }; + "auth.github.callback": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["GithubCallbackRequest"]; + }; + }; + responses: { + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + user: unknown[]; + token: string; + } | { + user: unknown[]; + }; + }; + }; + 422: components["responses"]["ValidationException"]; + }; + }; + "auth.github.unlink": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + requestBody?: never; + responses: { + 200: { + headers: { + [name: string]: unknown; }; - cname: { - name: string; - value: string; + content: { + "application/json": { + user: unknown[]; + }; }; - } | null; - last_checked_at: string | null; - last_check_error: string | null; - url: string; - } | string[]; - /** EditionResource */ - EditionResource: { - id: string; - community_id: string; - name: string; - slug: string; - /** @enum {string} */ - status: "draft" | "cfp_open" | "sales_open" | "ongoing" | "closed"; - /** @enum {string} */ - status_label: "Rascunho" | "CFP aberto" | "Vendas abertas" | "Em andamento" | "Encerrada"; - allowed_transitions: unknown[]; - starts_on: string | null; - ends_on: string | null; - year: string | null; - city: string | null; - /** @enum {string|null} */ - state: "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" | null; - timezone: string; - site_url: null; - role: null | Record | ("organizador" | "financeiro" | "avaliador" | "checkin" | "voluntario"); - created_at: string | null; - } | string[]; - /** - * EditionRole - * @enum {string} - */ - EditionRole: "organizador" | "financeiro" | "avaliador" | "checkin" | "voluntario"; - /** - * EditionStatus - * @enum {string} - */ - EditionStatus: "draft" | "cfp_open" | "sales_open" | "ongoing" | "closed"; - /** EmailDeliveryResource */ - EmailDeliveryResource: { - id: string; - /** @enum {string} */ - template: "order_confirmed" | "pix_reminder" | "cfp_accepted" | "cfp_waitlisted" | "event_reminder" | "team_invite" | "proposal_received" | "speaker_confirmation_reminder"; - to_email: string; - to_name: string; - /** @enum {string} */ - status: "queued" | "sent" | "failed" | "suppressed"; - attempts: number; - last_error: string | null; - is_test: boolean; - sent_at: string | null; - created_at: string | null; - } | string[]; - /** - * EmailTemplate - * @enum {string} - */ - EmailTemplate: "order_confirmed" | "pix_reminder" | "cfp_accepted" | "cfp_waitlisted" | "event_reminder" | "team_invite" | "proposal_received" | "speaker_confirmation_reminder"; - /** EmailTemplateResource */ - EmailTemplateResource: { - /** @enum {string} */ - id: "order_confirmed" | "pix_reminder" | "cfp_accepted" | "cfp_waitlisted" | "event_reminder" | "team_invite" | "proposal_received" | "speaker_confirmation_reminder"; - /** @enum {string} */ - label: "Confirmação de compra" | "Lembrete de Pix" | "Resultado do CFP: aprovada" | "Resultado do CFP: lista de espera" | "Antes do evento" | "Convite para a equipe" | "Proposta recebida" | "Lembrete de confirmação do palestrante"; - /** @enum {string} */ - trigger: "Ao pagar o pedido" | "30 min antes de expirar" | "Manual" | "7 dias antes" | "Ao convidar alguém para a equipe" | "Ao enviar uma proposta" | "2 dias antes do prazo de confirmação"; - transactional: boolean; - variables: [ - "nome", - "edicao", - "pedido", - "data" - ] | [ - "nome", - "edicao", - "proposta", - "data", - "prazo" - ] | [ - "nome", - "edicao", - "data" - ] | [ - "nome", - "edicao", - "papel" - ] | [ - "nome", - "edicao", - "proposta", - "data" - ] | [ - "nome", - "edicao", - "proposta", - "prazo" - ]; - /** @enum {string} */ - action_label: "Ver meu ingresso" | "Pagar com Pix" | "Confirmar participação" | "Ver minha proposta" | "Ver programação" | "Aceitar convite"; - subject: string; - body: string; - customized: boolean; - last_sent_at: string | null; + }; + 401: components["responses"]["AuthenticationException"]; }; - /** ExtendDeadlineRequest */ - ExtendDeadlineRequest: { - /** Format: date-time */ - deadline_at: string; + }; + me: { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; }; - /** ForgotPasswordRequest */ - ForgotPasswordRequest: { - /** Format: email */ - email: string; + requestBody?: never; + responses: { + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + user: unknown[]; + roles: { + edition_id: string; + role: string; + }[]; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; }; - /** GithubCallbackRequest */ - GithubCallbackRequest: { - code: string; - state: string; - device_name?: string | null; + }; + "me.update": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + requestBody?: { + content: { + "application/json": components["schemas"]["UpdateAccountRequest"]; + }; + }; + responses: { + /** @description `UserResource` */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: components["schemas"]["UserResource"]; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; + 422: components["responses"]["ValidationException"]; + }; + }; + "me.photo.store": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + requestBody: { + content: { + "multipart/form-data": components["schemas"]["UploadPhotoRequest"]; + }; + }; + responses: { + /** @description `UserResource` */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: components["schemas"]["UserResource"]; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; + 422: components["responses"]["ValidationException"]; + }; + }; + "me.photo.destroy": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description `UserResource` */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: components["schemas"]["UserResource"]; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; + }; + }; + "me.speaker-profile.show": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description `SpeakerProfileResource` */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: components["schemas"]["SpeakerProfileResource"]; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; + }; + }; + "me.speaker-profile.update": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; }; - /** InviteTeamMemberRequest */ - InviteTeamMemberRequest: { - /** Format: email */ - email: string; - name?: string | null; - role: components["schemas"]["EditionRole"]; + requestBody: { + content: { + "application/json": components["schemas"]["SaveSpeakerProfileRequest"]; + }; }; - /** LoginRequest */ - LoginRequest: { - /** Format: email */ - email: string; - password: string; - device_name?: string; + responses: { + /** @description `SpeakerProfileResource` */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: components["schemas"]["SpeakerProfileResource"]; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; + 422: components["responses"]["ValidationException"]; }; - /** OrganizationLogisticsRequest */ - OrganizationLogisticsRequest: { - origin_city?: string | null; - origin_state?: components["schemas"]["BrazilianState"] | null; - needs_travel?: boolean; - needs_lodging?: boolean; - travel_paid_by_organization?: boolean; - lodging_paid_by_organization?: boolean; - organization_notes?: string | null; + }; + "me.sessions.index": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; }; - /** PreviewEmailTemplateRequest */ - PreviewEmailTemplateRequest: { - subject?: string; - body?: string; + requestBody?: never; + responses: { + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: unknown[]; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; }; - /** PromoteRequest */ - PromoteRequest: { - /** Format: uuid */ - proposal_id: string; + }; + "me.sessions.destroy": { + parameters: { + query?: never; + header?: never; + path: { + session: string; + }; + cookie?: never; }; - /** - * ProposalDecision - * @enum {string} - */ - ProposalDecision: "accepted" | "waitlisted" | "rejected"; - /** - * ProposalFormat - * @enum {string} - */ - ProposalFormat: "talk" | "workshop" | "panel"; - /** - * ProposalLanguage - * @enum {string} - */ - ProposalLanguage: "pt_BR" | "en" | "es"; - /** - * ProposalLevel - * @enum {string} - */ - ProposalLevel: "beginner" | "intermediate" | "advanced"; - /** ProposalResource */ - ProposalResource: { - id: string; - number: number; - title: string; - track: { - id: string; - name: string; - } | null; - summary: string | null; - audience: string | null; - /** @enum {string|null} */ - format: "talk" | "workshop" | "panel" | null; - /** @enum {string|null} */ - format_label: "Palestra de 30 min" | "Oficina de 2 h" | "Painel de 45 min" | null; - /** @enum {integer|null} */ - duration_minutes: 30 | 120 | 45 | null; - /** @enum {string|null} */ - level: "beginner" | "intermediate" | "advanced" | null; - /** @enum {string|null} */ - level_label: "Iniciante" | "Intermediário" | "Avançado" | null; - /** @enum {string} */ - language: "pt_BR" | "en" | "es"; - /** @enum {string} */ - status: "draft" | "submitted" | "withdrawn"; - /** @enum {string} */ - status_label: "Rascunho" | "Enviada" | "Retirada"; - /** @enum {string|null} */ - decision: "accepted" | "waitlisted" | "rejected" | null; - /** @enum {string|null} */ - decision_label: "Aprovada" | "Lista de espera" | "Recusada" | null; - missing_for_submission: unknown[]; - nordeste: string; - speakers_hidden: boolean; - speakers: string | Record; - submitted_at: string | null; - updated_at: string | null; - } | string[]; - /** - * ProposalStatus - * @enum {string} - */ - ProposalStatus: "draft" | "submitted" | "withdrawn"; - /** PublicEditionResource */ - PublicEditionResource: { - id: string; - name: string; - slug: string; - status: string; - starts_on: string | null; - ends_on: string | null; - city: string; - state: string | null; - timezone: string; - community: { - name: string; - slug: string; + requestBody?: never; + responses: { + /** @description No content */ + 204: { + headers: { + [name: string]: unknown; + }; + content?: never; }; - } | string[]; - /** RegisterRequest */ - RegisterRequest: { - name: string; - /** Format: email */ - email: string; - password: string; - password_confirmation: string; + 401: components["responses"]["AuthenticationException"]; + 404: components["responses"]["ModelNotFoundException"]; }; - /** ResetPasswordRequest */ - ResetPasswordRequest: { - token: string; - /** Format: email */ - email: string; - password: string; - password_confirmation: string; + }; + "identity.people.speaker-profile": { + parameters: { + query?: never; + header?: never; + path: { + edition: string; + user: string; + }; + cookie?: never; }; - /** RespondConfirmationRequest */ - RespondConfirmationRequest: { - reason?: string | null; + requestBody?: never; + responses: { + /** @description `SpeakerProfileResource` */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: components["schemas"]["SpeakerProfileResource"]; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; + 404: components["responses"]["ModelNotFoundException"]; }; - /** SaveCriterionRequest */ - SaveCriterionRequest: { - name: string; - description?: string | null; - weight: number; - position?: number; - confirm?: boolean; + }; + "notifications.templates.index": { + parameters: { + query?: never; + header?: never; + path: { + edition: string; + }; + cookie?: never; }; - /** SaveEmailTemplateRequest */ - SaveEmailTemplateRequest: { - subject: string; - body: string; + requestBody?: never; + responses: { + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: unknown[]; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; }; - /** SaveProposalRequest */ - SaveProposalRequest: { - title?: string; - /** Format: uuid */ - track_id?: string | null; - summary?: string | null; - audience?: string | null; - format?: components["schemas"]["ProposalFormat"] | null; - level?: components["schemas"]["ProposalLevel"] | null; - language?: components["schemas"]["ProposalLanguage"]; + }; + "notifications.templates.show": { + parameters: { + query?: never; + header?: never; + path: { + edition: string; + template: string; + }; + cookie?: never; }; - /** SaveReviewRequest */ - SaveReviewRequest: { - scores: number[]; - comment?: string | null; - submit?: boolean; + requestBody?: never; + responses: { + /** @description `EmailTemplateResource` */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: components["schemas"]["EmailTemplateResource"]; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; + 422: components["responses"]["ValidationException"]; }; - /** SaveSpeakerProfileRequest */ - SaveSpeakerProfileRequest: { - display_name: string; - job_title?: string | null; - company?: string | null; - bio?: string | null; - city?: string | null; - state?: components["schemas"]["BrazilianState"] | null; - links?: { - /** Format: uri */ - website?: string | null; - /** Format: uri */ - github?: string | null; - /** Format: uri */ - linkedin?: string | null; + }; + "notifications.templates.update": { + parameters: { + query?: never; + header?: never; + path: { + edition: string; + template: string; }; - accessibility_needs?: string | null; - dietary_restrictions?: string | null; + cookie?: never; }; - /** SaveTrackRequest */ - SaveTrackRequest: { - name: string; - slots: number; - position?: number; + requestBody: { + content: { + "application/json": components["schemas"]["SaveEmailTemplateRequest"]; + }; }; - /** SpeakerLogisticsRequest */ - SpeakerLogisticsRequest: { - origin_city?: string | null; - origin_state?: components["schemas"]["BrazilianState"] | null; - needs_travel?: boolean; - needs_lodging?: boolean; + responses: { + /** @description `EmailTemplateResource` */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: components["schemas"]["EmailTemplateResource"]; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; + 422: components["responses"]["ValidationException"]; }; - /** SpeakerProfileResource */ - SpeakerProfileResource: { - public: { - user_id: string; - display_name: string; - job_title: string | null; - company: string | null; - bio: string | null; - city: string | null; - /** @enum {string|null} */ - state: "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" | null; - links: unknown[]; - photo_url: null; - } | null; - private: { - accessibility_needs: string | null; - dietary_restrictions: string | null; + }; + "notifications.templates.destroy": { + parameters: { + query?: never; + header?: never; + path: { + edition: string; + template: string; }; - email: string; - updated_at: string | null; - } | string[]; - /** StoreCommunityRequest */ - StoreCommunityRequest: { - name: string; - slug: string; + cookie?: never; }; - /** StoreEditionRequest */ - StoreEditionRequest: { - name: string; - slug: string; - /** Format: date */ - starts_on?: string | null; - /** Format: date */ - ends_on?: string | null; - city?: string | null; - state?: components["schemas"]["BrazilianState"] | null; - timezone?: string; + requestBody?: never; + responses: { + /** @description `EmailTemplateResource` */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: components["schemas"]["EmailTemplateResource"]; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; + 422: components["responses"]["ValidationException"]; }; - /** TeamInvitationResource */ - TeamInvitationResource: { - id: string; - email: string; - name: string; - role: string; - role_label: string; - expires_at: string | null; - created_at: string | null; - } | string[]; - /** - * ThemeFont - * @enum {string} - */ - ThemeFont: "Lexend" | "Poppins" | "Inter" | "Montserrat" | "Nunito" | "Open Sans" | "Roboto" | "Work Sans" | "IBM Plex Sans" | "Source Sans 3"; - /** - * ThemePreset - * @enum {string} - */ - ThemePreset: "sertao" | "mare" | "brasa"; - /** ThemeSettingsResource */ - ThemeSettingsResource: { - edition_id: string; - draft: { - logos: unknown[]; - } & { - [key: string]: unknown; + }; + "notifications.templates.preview": { + parameters: { + query?: never; + header?: never; + path: { + edition: string; + template: string; }; - published: ({ - logos: unknown[]; - } & { - [key: string]: unknown; - }) | null; - published_at: string | null; - has_unpublished_changes: string; - can_revert: boolean; - contrast: { - foreground: string; - background: string; - ratio: number; - minimum: string; - passes: boolean; - }[]; - } | string[]; - /** UpdateAccountRequest */ - UpdateAccountRequest: { - name?: string; - /** @enum {string} */ - locale?: "pt_BR" | "en" | "es"; + cookie?: never; }; - /** UpdateCfpSettingsRequest */ - UpdateCfpSettingsRequest: { - /** Format: date-time */ - opens_at?: string | null; - /** Format: date-time */ - closes_at?: string | null; - /** Format: date-time */ - results_at?: string | null; - anonymous_review?: boolean; - require_nordeste_quota?: boolean; - nordeste_quota_percent?: number; - proposals_per_person?: number; + requestBody?: { + content: { + "application/json": components["schemas"]["PreviewEmailTemplateRequest"]; + }; }; - /** UpdateCommunityRequest */ - UpdateCommunityRequest: { - name?: string; - slug?: string; + responses: { + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: { + subject: string; + html: string; + text: string; + }; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; + 422: components["responses"]["ValidationException"]; }; - /** UpdateEditionRequest */ - UpdateEditionRequest: { - name?: string; - slug?: string; - /** Format: date */ - starts_on?: string | null; - /** Format: date */ - ends_on?: string | null; - city?: string | null; - state?: components["schemas"]["BrazilianState"] | null; - timezone?: string; + }; + "notifications.templates.test": { + parameters: { + query?: never; + header?: never; + path: { + edition: string; + template: string; + }; + cookie?: never; }; - /** UpdateThemeDraftRequest */ - UpdateThemeDraftRequest: { - colors: { - bg: string; - surface: string; - surface_2: string; - line: string; - ink: string; - ink_2: string; - ink_3: string; - link: string; - brand: string; - on_brand: string; - accent: string; - on_accent: string; - support: string; - ok: string; - ok_bg: string; - warn: string; - warn_bg: string; - danger: string; - danger_bg: string; - info: string; - info_bg: string; + requestBody?: { + content: { + "application/json": components["schemas"]["PreviewEmailTemplateRequest"]; }; - fonts: { - heading: components["schemas"]["ThemeFont"]; - body: components["schemas"]["ThemeFont"]; + }; + responses: { + /** @description `EmailDeliveryResource` */ + 202: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: components["schemas"]["EmailDeliveryResource"]; + }; + }; }; - radius: number; + 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; + 422: components["responses"]["ValidationException"]; }; - /** UploadLogoRequest */ - UploadLogoRequest: { - /** - * Format: binary - * @description Maximum file size: 1024 kilobytes. Maximum file size: 512 kilobytes. - */ - file: string; + }; + "notifications.deliveries.index": { + parameters: { + query?: { + status?: components["schemas"]["DeliveryStatus"]; + template?: components["schemas"]["EmailTemplate"]; + }; + header?: never; + path: { + edition: string; + }; + cookie?: never; }; - /** UploadPhotoRequest */ - UploadPhotoRequest: { - /** - * Format: binary - * @description Maximum file size: 5120 kilobytes. - */ - photo: string; + requestBody?: never; + responses: { + /** @description Paginated set of `EmailDeliveryResource` */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: components["schemas"]["EmailDeliveryResource"][]; + links: { + first: string | null; + last: string | null; + prev: string | null; + next: string | null; + }; + meta: { + current_page: number; + from: number | null; + last_page: number; + /** @description Generated paginator links. */ + links: { + url: string | null; + label: string; + active: boolean; + }[]; + /** @description Base path for paginator generated URLs. */ + path: string | null; + /** @description Number of items shown per page. */ + per_page: number; + /** @description Number of the last item in the slice. */ + to: number | null; + /** @description Total number of items being paginated. */ + total: number; + }; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; + 422: components["responses"]["ValidationException"]; }; - /** UserResource */ - UserResource: { - id: string; - name: string; - email: string; - avatar_url: null; - locale: string; - email_verified_at: string | null; - has_password: boolean; - providers: unknown[]; - created_at: string | null; - } | string[]; }; - responses: { - /** @description Authorization error */ - AuthorizationException: { - headers: { - [name: string]: unknown; + "notifications.deliveries.resend": { + parameters: { + query?: never; + header?: never; + path: { + edition: string; + delivery: string; }; - content: { - "application/json": { - /** @description Error overview. */ - message: string; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description `EmailDeliveryResource` */ + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: components["schemas"]["EmailDeliveryResource"]; + }; }; }; + 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; + 404: components["responses"]["ModelNotFoundException"]; }; - /** @description Unauthenticated */ - AuthenticationException: { - headers: { - [name: string]: unknown; + }; + "notifications.suppressions.index": { + parameters: { + query?: never; + header?: never; + path: { + edition: string; }; - content: { - "application/json": { - /** @description Error overview. */ - message: string; + cookie?: never; + }; + requestBody?: never; + responses: { + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: { + id: string; + email: string; + /** @enum {string} */ + reason: "bounced" | "complained"; + /** @enum {string} */ + reason_label: "Bounce permanente (endereço não existe ou recusa)" | "Marcou o e-mail como spam"; + detail: string | null; + delivery_id: string | null; + created_at: string; + }[]; + meta: { + current_page: number; + last_page: number; + per_page: number; + total: number; + }; + }; }; }; + 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; }; - /** @description Validation error */ - ValidationException: { - headers: { - [name: string]: unknown; + }; + "notifications.suppressions.destroy": { + parameters: { + query?: never; + header?: never; + path: { + edition: string; + suppression: string; }; - content: { - "application/json": { - /** @description Errors overview. */ - message: string; - /** @description A detailed description of each field that failed validation. */ - errors: { - [key: string]: string[]; + cookie?: never; + }; + requestBody?: never; + responses: { + /** @description No content */ + 204: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; + 404: components["responses"]["ModelNotFoundException"]; + }; + }; + "notifications.webhooks.resend": { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; + }; + requestBody?: never; + responses: { + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: { + outcome: string; + duplicate: boolean; + }; + }; + }; + }; + 400: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + /** @constant */ + code: "invalid_payload"; + /** @constant */ + message: "Corpo inválido."; + }; + }; + }; + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + /** @constant */ + code: "invalid_signature"; + /** @constant */ + message: "Assinatura inválida."; }; }; }; }; - /** @description Not found */ - ModelNotFoundException: { - headers: { - [name: string]: unknown; + }; + "notifications.unsubscribe": { + parameters: { + query?: { + email?: string; }; - content: { - "application/json": { - /** @description Error overview. */ - message: string; + header?: never; + path: { + edition: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": Record | { + unsubscribed: boolean; + }; }; }; + 404: components["responses"]["ModelNotFoundException"]; }; }; - parameters: never; - requestBodies: never; - headers: never; - pathItems: never; -} -export type $defs = Record; -export interface operations { - "audit.logs.index": { + "payments.accounts.index": { parameters: { - query?: { - actor_id?: string; - action?: string; - from?: string; - to?: string; - }; + query?: never; header?: never; path: { edition: string; @@ -2174,21 +9668,19 @@ export interface operations { }; content: { "application/json": { - data: unknown[]; - meta: { - current_page: number; - last_page: number; - total: number; + data: { + active: unknown[] | null; + previous: unknown[]; + drivers: unknown[]; }; }; }; }; 401: components["responses"]["AuthenticationException"]; 403: components["responses"]["AuthorizationException"]; - 422: components["responses"]["ValidationException"]; }; }; - "branding.theme.show": { + "payments.accounts.store": { parameters: { query?: never; header?: never; @@ -2197,46 +9689,52 @@ export interface operations { }; cookie?: never; }; - requestBody?: never; + requestBody: { + content: { + "application/json": components["schemas"]["CreatePaymentAccountRequest"]; + }; + }; responses: { - /** @description `ThemeSettingsResource` */ - 200: { + /** @description `PaymentAccountResource` */ + 201: { headers: { [name: string]: unknown; }; content: { "application/json": { - data: components["schemas"]["ThemeSettingsResource"]; + data: components["schemas"]["PaymentAccountResource"]; }; }; }; 401: components["responses"]["AuthenticationException"]; 403: components["responses"]["AuthorizationException"]; + 422: components["responses"]["ValidationException"]; }; }; - "branding.theme.draft.update": { + "payments.accounts.update": { parameters: { query?: never; header?: never; path: { edition: string; + account: string; }; cookie?: never; }; - requestBody: { + requestBody?: { content: { - "application/json": components["schemas"]["UpdateThemeDraftRequest"]; + "application/json": components["schemas"]["UpdatePaymentAccountRequest"]; }; }; responses: { - /** @description `ThemeSettingsResource` */ + /** @description `PaymentAccountResource` */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { - data: components["schemas"]["ThemeSettingsResource"]; + data: components["schemas"]["PaymentAccountResource"]; }; }; }; @@ -2245,25 +9743,26 @@ export interface operations { 422: components["responses"]["ValidationException"]; }; }; - "branding.theme.draft.discard": { + "payments.accounts.verify": { parameters: { query?: never; header?: never; path: { edition: string; + account: string; }; cookie?: never; }; requestBody?: never; responses: { - /** @description `ThemeSettingsResource` */ + /** @description `PaymentAccountResource` */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { - data: components["schemas"]["ThemeSettingsResource"]; + data: components["schemas"]["PaymentAccountResource"]; }; }; }; @@ -2271,7 +9770,7 @@ export interface operations { 403: components["responses"]["AuthorizationException"]; }; }; - "branding.theme.draft.preset": { + "payments.webhook-events.index": { parameters: { query?: never; header?: never; @@ -2280,55 +9779,77 @@ export interface operations { }; cookie?: never; }; - requestBody: { - content: { - "application/json": components["schemas"]["ApplyThemePresetRequest"]; - }; - }; + requestBody?: never; responses: { - /** @description `ThemeSettingsResource` */ + /** @description Paginated set of `WebhookEventResource` */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { - data: components["schemas"]["ThemeSettingsResource"]; + data: components["schemas"]["WebhookEventResource"][]; + links: { + first: string | null; + last: string | null; + prev: string | null; + next: string | null; + }; + meta: { + current_page: number; + from: number | null; + last_page: number; + /** @description Generated paginator links. */ + links: { + url: string | null; + label: string; + active: boolean; + }[]; + /** @description Base path for paginator generated URLs. */ + path: string | null; + /** @description Number of items shown per page. */ + per_page: number; + /** @description Number of the last item in the slice. */ + to: number | null; + /** @description Total number of items being paginated. */ + total: number; + }; }; }; }; 401: components["responses"]["AuthenticationException"]; 403: components["responses"]["AuthorizationException"]; - 422: components["responses"]["ValidationException"]; }; }; - "branding.theme.publish": { + "payments.webhook-events.reprocess": { parameters: { query?: never; header?: never; path: { edition: string; + event: string; }; cookie?: never; }; requestBody?: never; responses: { - /** @description `ThemeSettingsResource` */ + /** @description `WebhookEventResource` */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { - data: components["schemas"]["ThemeSettingsResource"]; + data: components["schemas"]["WebhookEventResource"]; }; }; }; 401: components["responses"]["AuthenticationException"]; 403: components["responses"]["AuthorizationException"]; + 404: components["responses"]["ModelNotFoundException"]; }; }; - "branding.theme.revert": { + "payments.public.receiver": { parameters: { query?: never; header?: never; @@ -2339,82 +9860,179 @@ export interface operations { }; requestBody?: never; responses: { - /** @description `ThemeSettingsResource` */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { - data: components["schemas"]["ThemeSettingsResource"]; + data: { + driver: string; + public_key: string | null; + holder_name: string; + /** @enum {string} */ + holder_type: "individual" | "company"; + methods: unknown[]; + max_installments: number; + pix_expiration_minutes: number; + sandbox: boolean; + ready: boolean; + } | null; }; }; }; - 401: components["responses"]["AuthenticationException"]; - 403: components["responses"]["AuthorizationException"]; + 404: components["responses"]["ModelNotFoundException"]; }; }; - "branding.theme.logos.store": { + "payments.webhooks.receive": { parameters: { query?: never; header?: never; path: { - edition: string; - slot: string; + token: string; }; cookie?: never; }; - requestBody: { - content: { - "multipart/form-data": components["schemas"]["UploadLogoRequest"]; + requestBody?: never; + responses: { + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: { + received: boolean; + event_id: string; + duplicate: boolean; + }; + }; + }; + }; + 401: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + /** @constant */ + code: "invalid_signature"; + /** @constant */ + message: "Assinatura do webhook inválida."; + errors: null; + request_id: string; + }; + }; }; + 404: components["responses"]["ModelNotFoundException"]; + }; + }; + ping: { + parameters: { + query?: never; + header?: never; + path?: never; + cookie?: never; }; + requestBody?: never; responses: { - /** @description `ThemeSettingsResource` */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { - data: components["schemas"]["ThemeSettingsResource"]; + status: string; + request_id: string | null; }; }; }; - 401: components["responses"]["AuthenticationException"]; - 403: components["responses"]["AuthorizationException"]; - 422: components["responses"]["ValidationException"]; }; }; - "branding.theme.logos.destroy": { + "sponsors.board": { parameters: { query?: never; header?: never; path: { + /** @description The edition ID */ edition: string; - slot: string; }; cookie?: never; }; requestBody?: never; responses: { - /** @description `ThemeSettingsResource` */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { - data: components["schemas"]["ThemeSettingsResource"]; + data: { + indicators: { + goal: { + amount: number; + currency: string; + } | null; + committed: { + amount: number; + currency: string; + } | null; + received: { + amount: number; + currency: string; + } | null; + pipeline: { + amount: number; + currency: string; + } | null; + deliverables_overdue: number; + }; + columns: unknown[]; + }; }; }; }; 401: components["responses"]["AuthenticationException"]; - 403: components["responses"]["AuthorizationException"]; + 404: components["responses"]["ModelNotFoundException"]; + }; + }; + "sponsors.settings": { + parameters: { + query?: never; + header?: never; + path: { + /** @description The edition ID */ + edition: string; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["UpdateSponsorSettingsRequest"]; + }; + }; + responses: { + 200: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + data: { + goal: { + amount: number; + currency: string; + } | null; + }; + }; + }; + }; + 401: components["responses"]["AuthenticationException"]; + 404: components["responses"]["ModelNotFoundException"]; 422: components["responses"]["ValidationException"]; }; }; - "branding.domains.index": { + "sponsors.tiers.index": { parameters: { query?: never; header?: never; @@ -2425,353 +10043,422 @@ export interface operations { }; requestBody?: never; responses: { - /** @description Array of `EditionDomainResource` */ + /** @description Array of `SponsorTierResource` */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { - data: components["schemas"]["EditionDomainResource"][]; + data: components["schemas"]["SponsorTierResource"][]; }; }; }; 401: components["responses"]["AuthenticationException"]; - 403: components["responses"]["AuthorizationException"]; }; }; - "branding.domains.store": { + "sponsors.tiers.store": { parameters: { query?: never; header?: never; path: { + /** @description The edition ID */ edition: string; }; cookie?: never; }; requestBody: { content: { - "application/json": components["schemas"]["AddDomainRequest"]; + "application/json": components["schemas"]["SaveSponsorTierRequest"]; }; }; responses: { - /** @description `EditionDomainResource` */ + /** @description `SponsorTierResource` */ 201: { headers: { [name: string]: unknown; }; content: { "application/json": { - data: components["schemas"]["EditionDomainResource"]; + data: components["schemas"]["SponsorTierResource"]; }; }; }; 401: components["responses"]["AuthenticationException"]; - 403: components["responses"]["AuthorizationException"]; + 404: components["responses"]["ModelNotFoundException"]; 422: components["responses"]["ValidationException"]; }; }; - "branding.domains.verify": { + "sponsors.tiers.destroy": { parameters: { query?: never; header?: never; path: { edition: string; - domain: string; + tier: string; }; cookie?: never; }; requestBody?: never; responses: { - /** @description `EditionDomainResource` */ + /** @description No content */ + 204: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + 401: components["responses"]["AuthenticationException"]; + }; + }; + "sponsors.tiers.update": { + parameters: { + query?: never; + header?: never; + path: { + /** @description The edition ID */ + edition: string; + tier: string; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["SaveSponsorTierRequest"]; + }; + }; + responses: { + /** @description `SponsorTierResource` */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { - data: components["schemas"]["EditionDomainResource"]; + data: components["schemas"]["SponsorTierResource"]; }; }; }; 401: components["responses"]["AuthenticationException"]; - 403: components["responses"]["AuthorizationException"]; + 404: components["responses"]["ModelNotFoundException"]; + 422: components["responses"]["ValidationException"]; }; }; - "branding.domains.primary": { + "sponsors.companies.index": { parameters: { query?: never; header?: never; path: { edition: string; - domain: string; }; cookie?: never; }; requestBody?: never; responses: { - /** @description `EditionDomainResource` */ + /** @description Paginated set of `SponsorResource` */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { - data: components["schemas"]["EditionDomainResource"]; + data: components["schemas"]["SponsorResource"][]; + links: { + first: string | null; + last: string | null; + prev: string | null; + next: string | null; + }; + meta: { + current_page: number; + from: number | null; + last_page: number; + /** @description Generated paginator links. */ + links: { + url: string | null; + label: string; + active: boolean; + }[]; + /** @description Base path for paginator generated URLs. */ + path: string | null; + /** @description Number of items shown per page. */ + per_page: number; + /** @description Number of the last item in the slice. */ + to: number | null; + /** @description Total number of items being paginated. */ + total: number; + }; }; }; }; 401: components["responses"]["AuthenticationException"]; - 403: components["responses"]["AuthorizationException"]; }; }; - "branding.domains.destroy": { + "sponsors.companies.store": { parameters: { query?: never; header?: never; path: { + /** @description The edition ID */ edition: string; - domain: string; }; cookie?: never; }; - requestBody?: never; + requestBody: { + content: { + "application/json": components["schemas"]["SaveSponsorRequest"]; + }; + }; responses: { - /** @description No content */ - 204: { + /** @description `SponsorResource` */ + 201: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": { + data: components["schemas"]["SponsorResource"]; + }; + }; }; 401: components["responses"]["AuthenticationException"]; - 403: components["responses"]["AuthorizationException"]; + 404: components["responses"]["ModelNotFoundException"]; + 422: components["responses"]["ValidationException"]; }; }; - "branding.public.resolve": { + "sponsors.companies.show": { parameters: { - query?: { - host?: string; - }; + query?: never; header?: never; - path?: never; + path: { + edition: string; + sponsor: string; + }; cookie?: never; }; requestBody?: never; responses: { + /** @description `SponsorResource` */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { - data: { - edition_id: string; - edition_name: string; - host: string; - primary_host: string; - } | null; + data: components["schemas"]["SponsorResource"]; }; }; }; - 404: components["responses"]["ModelNotFoundException"]; + 401: components["responses"]["AuthenticationException"]; }; }; - "branding.public.tls-check": { + "sponsors.companies.destroy": { parameters: { - query?: { - domain?: string; - }; + query?: never; header?: never; - path?: never; + path: { + edition: string; + sponsor: string; + }; cookie?: never; }; requestBody?: never; responses: { - 200: { + /** @description No content */ + 204: { headers: { [name: string]: unknown; }; content?: never; }; - 404: components["responses"]["ModelNotFoundException"]; + 401: components["responses"]["AuthenticationException"]; }; }; - "branding.presets.index": { + "sponsors.companies.update": { parameters: { query?: never; header?: never; - path?: never; + path: { + /** @description The edition ID */ + edition: string; + sponsor: string; + }; cookie?: never; }; - requestBody?: never; + requestBody: { + content: { + "application/json": components["schemas"]["SaveSponsorRequest"]; + }; + }; responses: { + /** @description `SponsorResource` */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { - data: unknown[]; + data: components["schemas"]["SponsorResource"]; }; }; }; 401: components["responses"]["AuthenticationException"]; + 404: components["responses"]["ModelNotFoundException"]; + 422: components["responses"]["ValidationException"]; }; }; - "branding.public.theme": { + "sponsors.contacts.store": { parameters: { query?: never; header?: never; path: { edition: string; + sponsor: string; }; cookie?: never; }; - requestBody?: never; + requestBody: { + content: { + "application/json": components["schemas"]["LogContactRequest"]; + }; + }; responses: { - 200: { + /** @description `SponsorResource` */ + 201: { headers: { [name: string]: unknown; }; content: { "application/json": { - data: { - edition_id: string; - theme: { - logos: unknown[]; - } & { - [key: string]: unknown; - }; - published_at: string | null; - }; + data: components["schemas"]["SponsorResource"]; }; }; }; - 404: components["responses"]["ModelNotFoundException"]; + 401: components["responses"]["AuthenticationException"]; + 422: components["responses"]["ValidationException"]; }; }; - "cfp.settings.show": { + "sponsors.contacts.destroy": { parameters: { query?: never; header?: never; path: { edition: string; + sponsor: string; + contact: string; }; cookie?: never; }; requestBody?: never; responses: { - /** @description `CfpSettingsResource` */ - 200: { + /** @description No content */ + 204: { headers: { [name: string]: unknown; }; - content: { - "application/json": { - data: components["schemas"]["CfpSettingsResource"]; - }; - }; + content?: never; }; 401: components["responses"]["AuthenticationException"]; - 403: components["responses"]["AuthorizationException"]; + 404: components["responses"]["ModelNotFoundException"]; }; }; - "cfp.settings.update": { + "sponsors.attachments.store": { parameters: { query?: never; header?: never; path: { edition: string; + sponsor: string; }; cookie?: never; }; - requestBody?: { + requestBody: { content: { - "application/json": components["schemas"]["UpdateCfpSettingsRequest"]; + "multipart/form-data": components["schemas"]["UploadAttachmentRequest"]; }; }; responses: { - /** @description `CfpSettingsResource` */ - 200: { + /** @description `SponsorAttachmentResource` */ + 201: { headers: { [name: string]: unknown; }; content: { "application/json": { - data: components["schemas"]["CfpSettingsResource"]; + data: components["schemas"]["SponsorAttachmentResource"]; }; }; }; 401: components["responses"]["AuthenticationException"]; - 403: components["responses"]["AuthorizationException"]; 422: components["responses"]["ValidationException"]; }; }; - "cfp.tracks.index": { + "sponsors.sponsorships.store": { parameters: { query?: never; header?: never; path: { edition: string; + sponsor: string; }; cookie?: never; }; - requestBody?: never; + requestBody?: { + content: { + "application/json": components["schemas"]["SaveSponsorshipRequest"]; + }; + }; responses: { - /** @description Array of `CfpTrackResource` */ - 200: { + /** @description `SponsorshipResource` */ + 201: { headers: { [name: string]: unknown; }; content: { "application/json": { - data: components["schemas"]["CfpTrackResource"][]; + data: components["schemas"]["SponsorshipResource"]; }; }; }; 401: components["responses"]["AuthenticationException"]; - 403: components["responses"]["AuthorizationException"]; + 422: components["responses"]["ValidationException"]; }; }; - "cfp.tracks.store": { + "sponsors.attachments.url": { parameters: { query?: never; header?: never; path: { edition: string; + attachment: string; }; cookie?: never; }; - requestBody: { - content: { - "application/json": components["schemas"]["SaveTrackRequest"]; - }; - }; + requestBody?: never; responses: { - /** @description `CfpTrackResource` */ - 201: { + 200: { headers: { [name: string]: unknown; }; content: { "application/json": { - data: components["schemas"]["CfpTrackResource"]; + data: { + url: string; + expires_at: string; + }; }; }; }; 401: components["responses"]["AuthenticationException"]; - 403: components["responses"]["AuthorizationException"]; - 422: components["responses"]["ValidationException"]; }; }; - "cfp.tracks.destroy": { + "sponsors.attachments.destroy": { parameters: { query?: never; header?: never; path: { edition: string; - track: string; + attachment: string; }; cookie?: never; }; @@ -2785,247 +10472,209 @@ export interface operations { content?: never; }; 401: components["responses"]["AuthenticationException"]; - 403: components["responses"]["AuthorizationException"]; }; }; - "cfp.tracks.update": { + "sponsors.sponsorships.show": { parameters: { query?: never; header?: never; path: { edition: string; - track: string; + sponsorship: string; }; cookie?: never; }; - requestBody: { - content: { - "application/json": components["schemas"]["SaveTrackRequest"]; - }; - }; + requestBody?: never; responses: { - /** @description `CfpTrackResource` */ + /** @description `SponsorshipResource` */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { - data: components["schemas"]["CfpTrackResource"]; + data: components["schemas"]["SponsorshipResource"]; }; }; }; 401: components["responses"]["AuthenticationException"]; - 403: components["responses"]["AuthorizationException"]; - 422: components["responses"]["ValidationException"]; }; }; - "cfp.criteria.index": { + "sponsors.sponsorships.destroy": { parameters: { query?: never; header?: never; path: { edition: string; + sponsorship: string; }; cookie?: never; }; requestBody?: never; responses: { - /** @description Array of `CfpCriterionResource` */ - 200: { + /** @description No content */ + 204: { headers: { [name: string]: unknown; }; - content: { - "application/json": { - data: components["schemas"]["CfpCriterionResource"][]; - }; - }; + content?: never; }; 401: components["responses"]["AuthenticationException"]; - 403: components["responses"]["AuthorizationException"]; }; }; - "cfp.criteria.store": { + "sponsors.sponsorships.update": { parameters: { query?: never; header?: never; path: { edition: string; + sponsorship: string; }; cookie?: never; }; - requestBody: { + requestBody?: { content: { - "application/json": components["schemas"]["SaveCriterionRequest"]; + "application/json": components["schemas"]["SaveSponsorshipRequest"]; }; }; responses: { - /** @description `CfpCriterionResource` */ - 201: { + /** @description `SponsorshipResource` */ + 200: { headers: { [name: string]: unknown; }; content: { "application/json": { - data: components["schemas"]["CfpCriterionResource"]; + data: components["schemas"]["SponsorshipResource"]; }; }; }; 401: components["responses"]["AuthenticationException"]; - 403: components["responses"]["AuthorizationException"]; 422: components["responses"]["ValidationException"]; }; }; - "cfp.criteria.destroy": { - parameters: { - query?: { - confirm?: boolean; - }; - header?: never; - path: { - edition: string; - criterion: string; - }; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description No content */ - 204: { - headers: { - [name: string]: unknown; - }; - content?: never; - }; - 401: components["responses"]["AuthenticationException"]; - 403: components["responses"]["AuthorizationException"]; - }; - }; - "cfp.criteria.update": { + "sponsors.sponsorships.move": { parameters: { query?: never; header?: never; path: { edition: string; - criterion: string; + sponsorship: string; }; cookie?: never; }; requestBody: { content: { - "application/json": components["schemas"]["SaveCriterionRequest"]; + "application/json": components["schemas"]["MoveSponsorshipRequest"]; }; }; responses: { - /** @description `CfpCriterionResource` */ + /** @description `SponsorshipResource` */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { - data: components["schemas"]["CfpCriterionResource"]; + data: components["schemas"]["SponsorshipResource"]; }; }; }; 401: components["responses"]["AuthenticationException"]; - 403: components["responses"]["AuthorizationException"]; 422: components["responses"]["ValidationException"]; }; }; - "cfp.proposals.index": { + "sponsors.payments.store": { parameters: { - query?: { - status?: components["schemas"]["ProposalStatus"]; - track_id?: string; - }; + query?: never; header?: never; path: { edition: string; + sponsorship: string; }; cookie?: never; }; - requestBody?: never; + requestBody: { + content: { + "application/json": components["schemas"]["RecordPaymentRequest"]; + }; + }; responses: { - 200: { + /** @description `SponsorshipResource` */ + 201: { headers: { [name: string]: unknown; }; content: { "application/json": { - data: unknown[]; + data: components["schemas"]["SponsorshipResource"]; }; }; }; 401: components["responses"]["AuthenticationException"]; - 403: components["responses"]["AuthorizationException"]; 422: components["responses"]["ValidationException"]; }; }; - "cfp.proposals.show": { + "sponsors.payments.destroy": { parameters: { query?: never; header?: never; path: { edition: string; - proposal: string; + sponsorship: string; + payment: string; }; cookie?: never; }; requestBody?: never; responses: { - /** @description `ProposalResource` */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": { - data: components["schemas"]["ProposalResource"]; - }; + /** @description No content */ + 204: { + headers: { + [name: string]: unknown; }; + content?: never; }; 401: components["responses"]["AuthenticationException"]; - 403: components["responses"]["AuthorizationException"]; + 404: components["responses"]["ModelNotFoundException"]; }; }; - "cfp.proposals.update": { + "sponsors.deliverables.store": { parameters: { query?: never; header?: never; path: { edition: string; - proposal: string; + sponsorship: string; }; cookie?: never; }; - requestBody?: { + requestBody: { content: { - "application/json": components["schemas"]["SaveProposalRequest"]; + "application/json": components["schemas"]["SaveDeliverableRequest"]; }; }; responses: { - /** @description `ProposalResource` */ - 200: { + /** @description `SponsorDeliverableResource` */ + 201: { headers: { [name: string]: unknown; }; content: { "application/json": { - data: components["schemas"]["ProposalResource"]; + data: components["schemas"]["SponsorDeliverableResource"]; }; }; }; 401: components["responses"]["AuthenticationException"]; - 403: components["responses"]["AuthorizationException"]; 422: components["responses"]["ValidationException"]; }; }; - "cfp.evaluation.index": { + "sponsors.deliverables.index": { parameters: { query?: { - status?: string; + owner_id?: string; + overdue?: boolean; }; header?: never; path: { @@ -3035,101 +10684,127 @@ export interface operations { }; requestBody?: never; responses: { + /** @description Paginated set of `SponsorDeliverableResource` */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { - summary: { - proposals: number; - reviewed: number; - without_reviewer: number; - average_score: number | null; - nordeste_percent: number | null; - nordeste_quota_percent: number; + data: components["schemas"]["SponsorDeliverableResource"][]; + links: { + first: string | null; + last: string | null; + prev: string | null; + next: string | null; + }; + meta: { + current_page: number; + from: number | null; + last_page: number; + /** @description Generated paginator links. */ + links: { + url: string | null; + label: string; + active: boolean; + }[]; + /** @description Base path for paginator generated URLs. */ + path: string | null; + /** @description Number of items shown per page. */ + per_page: number; + /** @description Number of the last item in the slice. */ + to: number | null; + /** @description Total number of items being paginated. */ + total: number; }; - criteria: unknown[]; - data: ({ - final_score: string; - review_status: string; - reviews_assigned: string; - reviews_submitted: string; - criterion_averages: string; - } & { - [key: string]: unknown; - })[]; }; }; }; 401: components["responses"]["AuthenticationException"]; - 403: components["responses"]["AuthorizationException"]; }; }; - "cfp.evaluation.export": { + "sponsors.deliverables.destroy": { parameters: { query?: never; header?: never; path: { edition: string; + deliverable: string; }; cookie?: never; }; requestBody?: never; responses: { - 200: { + /** @description No content */ + 204: { headers: { - "Transfer-Encoding": "chunked"; [name: string]: unknown; }; - content: { - "text/csv; charset=UTF-8": string; - }; + content?: never; }; 401: components["responses"]["AuthenticationException"]; - 403: components["responses"]["AuthorizationException"]; }; }; - "cfp.assignments.auto": { + "sponsors.deliverables.update": { parameters: { query?: never; header?: never; path: { edition: string; + deliverable: string; }; cookie?: never; }; requestBody: { content: { - "application/json": components["schemas"]["AutoAssignRequest"]; + "application/json": components["schemas"]["SaveDeliverableRequest"]; }; }; responses: { + /** @description `SponsorDeliverableResource` */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { - data: { - created: number; - unfilled: string[]; - }; + data: components["schemas"]["SponsorDeliverableResource"]; }; }; }; 401: components["responses"]["AuthenticationException"]; - 403: components["responses"]["AuthorizationException"]; 422: components["responses"]["ValidationException"]; }; }; - "cfp.assignments.index": { + "sponsors.attachments.download": { + parameters: { + query?: never; + header?: never; + path: { + attachment: string; + }; + cookie?: never; + }; + requestBody?: never; + responses: { + 200: { + headers: { + "Transfer-Encoding": "chunked"; + [name: string]: unknown; + }; + content: { + "application/octet-stream": string; + }; + }; + 404: components["responses"]["ModelNotFoundException"]; + }; + }; + "suppliers.index": { parameters: { query?: never; header?: never; path: { edition: string; - proposal: string; }; cookie?: never; }; @@ -3141,27 +10816,82 @@ export interface operations { }; content: { "application/json": { - data: unknown[]; + data: { + id: string; + supplier: { + id: string; + name: string; + /** @enum {string} */ + service: "venue" | "catering" | "audio_visual" | "printing" | "merch" | "transport" | "accommodation" | "photo_video" | "accessibility" | "other"; + /** @enum {string} */ + service_label: "Local" | "Alimentação" | "Som, luz e vídeo" | "Gráfica" | "Brindes e camisetas" | "Transporte" | "Hospedagem" | "Foto e filmagem" | "Acessibilidade (Libras, legenda)" | "Outro"; + description: string | null; + document: string | null; + website: string | null; + city: string | null; + state: string | null; + contacts_visible: boolean; + contacts: { + id: string; + name: string; + role: string | null; + email: string | null; + phone: string | null; + }[] | null; + }; + /** @enum {string} */ + status: "to_contact" | "quoting" | "hired" | "declined"; + /** @enum {string} */ + status_label: "A contatar" | "Em orçamento" | "Contratado" | "Recusado"; + owner: { + id: string; + name: string; + } | null; + quoted: { + amount: number; + currency: string; + } | null; + contracted: { + amount: number; + currency: string; + } | null; + accepted_quote_id: string | null; + decline_reason: string | null; + hired_at: string | null; + declined_at: string | null; + quotes_count: number; + }[]; + totals: { + count: number; + quoted: { + amount: number; + currency: string; + } | null; + contracted: { + amount: number; + currency: string; + } | null; + by_status: string; + }; }; }; }; 401: components["responses"]["AuthenticationException"]; - 403: components["responses"]["AuthorizationException"]; }; }; - "cfp.assignments.store": { + "suppliers.store": { parameters: { query?: never; header?: never; path: { + /** @description The edition ID */ edition: string; - proposal: string; }; cookie?: never; }; requestBody: { content: { - "application/json": components["schemas"]["AssignReviewerRequest"]; + "application/json": components["schemas"]["SaveSupplierRequest"]; }; }; responses: { @@ -3172,122 +10902,299 @@ export interface operations { content: { "application/json": { data: { - reviewer_id: string; - proposal_id: string; + id: string; + supplier: { + id: string; + name: string; + /** @enum {string} */ + service: "venue" | "catering" | "audio_visual" | "printing" | "merch" | "transport" | "accommodation" | "photo_video" | "accessibility" | "other"; + /** @enum {string} */ + service_label: "Local" | "Alimentação" | "Som, luz e vídeo" | "Gráfica" | "Brindes e camisetas" | "Transporte" | "Hospedagem" | "Foto e filmagem" | "Acessibilidade (Libras, legenda)" | "Outro"; + description: string | null; + document: string | null; + website: string | null; + city: string | null; + state: string | null; + contacts_visible: boolean; + contacts: { + id: string; + name: string; + role: string | null; + email: string | null; + phone: string | null; + }[] | null; + }; + /** @enum {string} */ + status: "to_contact" | "quoting" | "hired" | "declined"; + /** @enum {string} */ + status_label: "A contatar" | "Em orçamento" | "Contratado" | "Recusado"; + owner: { + id: string; + name: string; + } | null; + quoted: { + amount: number; + currency: string; + } | null; + contracted: { + amount: number; + currency: string; + } | null; + accepted_quote_id: string | null; + decline_reason: string | null; + hired_at: string | null; + declined_at: string | null; + quotes_count: number; + quotes: { + id: string; + amount: { + amount: number; + currency: string; + } | null; + description: string; + received_on: string; + valid_until: string | null; + expired: boolean; + /** @enum {string} */ + status: "received" | "accepted" | "rejected"; + /** @enum {string} */ + status_label: "Recebido" | "Aceito" | "Recusado"; + recorded_by: { + id: string; + name: string; + } | null; + }[]; + attachments: { + id: string; + /** @enum {string} */ + kind: "quote" | "contract" | "invoice" | "other"; + /** @enum {string} */ + kind_label: "Orçamento" | "Contrato" | "Nota fiscal" | "Outro"; + name: string; + mime_type: string; + size_bytes: number; + uploaded_by: { + id: string; + name: string; + } | null; + created_at: string | null; + }[]; + activities: { + id: string; + /** @enum {string} */ + kind: "note" | "status" | "quote" | "attachment"; + /** @enum {string|null} */ + channel: "email" | "phone" | "whatsapp" | "meeting" | "visit" | "other" | null; + /** @enum {string|null} */ + channel_label: "E-mail" | "Telefone" | "WhatsApp" | "Reunião" | "Visita" | "Outro" | null; + summary: string; + author: { + id: string; + name: string; + } | null; + happened_at: string | null; + }[]; }; }; }; }; 401: components["responses"]["AuthenticationException"]; - 403: components["responses"]["AuthorizationException"]; + 404: components["responses"]["ModelNotFoundException"]; 422: components["responses"]["ValidationException"]; }; }; - "cfp.assignments.destroy": { + "suppliers.directory": { parameters: { query?: never; header?: never; path: { + /** @description The edition ID */ edition: string; - proposal: string; - reviewer: string; }; cookie?: never; }; requestBody?: never; responses: { - /** @description No content */ - 204: { + 200: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": { + data: { + id: string; + name: string; + /** @enum {string} */ + service: "venue" | "catering" | "audio_visual" | "printing" | "merch" | "transport" | "accommodation" | "photo_video" | "accessibility" | "other"; + /** @enum {string} */ + service_label: "Local" | "Alimentação" | "Som, luz e vídeo" | "Gráfica" | "Brindes e camisetas" | "Transporte" | "Hospedagem" | "Foto e filmagem" | "Acessibilidade (Libras, legenda)" | "Outro"; + description: string | null; + document: string | null; + website: string | null; + city: string | null; + state: string | null; + contacts_visible: boolean; + contacts: { + id: string; + name: string; + role: string | null; + email: string | null; + phone: string | null; + }[] | null; + in_this_edition: boolean; + editions: { + id: string; + name: string; + /** @enum {string} */ + status: "to_contact" | "quoting" | "hired" | "declined"; + /** @enum {string} */ + status_label: "A contatar" | "Em orçamento" | "Contratado" | "Recusado"; + }[]; + }[]; + }; + }; }; 401: components["responses"]["AuthenticationException"]; - 403: components["responses"]["AuthorizationException"]; 404: components["responses"]["ModelNotFoundException"]; }; }; - "cfp.decision.ranking": { + "suppliers.directory.link": { parameters: { query?: never; header?: never; path: { + /** @description The edition ID */ edition: string; + supplier: string; }; cookie?: never; }; - requestBody?: never; + requestBody?: { + content: { + "application/json": { + owner_id?: string; + }; + }; + }; responses: { - 200: { + 201: { headers: { [name: string]: unknown; }; content: { "application/json": { data: { - tracks: { - track: string; - proposals: unknown[]; - }[]; - outcome: { - decisions: { - accepted: unknown; - waitlisted: unknown; - rejected: unknown; - undecided: unknown; - }; - tracks: unknown[]; - coverage: { - people: number; - unknown_state: number; - by_state: string; - nordeste_people: number; - nordeste_percent: number | null; - nordeste_states_missing: unknown[]; - nordeste_quota_percent: number; - require_nordeste_quota: boolean; - }; - alerts: ({ - /** @constant */ - type: "nordeste_quota"; - message: string; - } | { - /** @constant */ - type: "states_missing"; - message: string; - } | { - /** @constant */ - type: "track_over_slots"; - message: string; - } | { - /** @constant */ - type: "unknown_state"; - message: string; - })[]; + id: string; + supplier: { + id: string; + name: string; + /** @enum {string} */ + service: "venue" | "catering" | "audio_visual" | "printing" | "merch" | "transport" | "accommodation" | "photo_video" | "accessibility" | "other"; + /** @enum {string} */ + service_label: "Local" | "Alimentação" | "Som, luz e vídeo" | "Gráfica" | "Brindes e camisetas" | "Transporte" | "Hospedagem" | "Foto e filmagem" | "Acessibilidade (Libras, legenda)" | "Outro"; + description: string | null; + document: string | null; + website: string | null; + city: string | null; + state: string | null; + contacts_visible: boolean; + contacts: { + id: string; + name: string; + role: string | null; + email: string | null; + phone: string | null; + }[] | null; }; + /** @enum {string} */ + status: "to_contact" | "quoting" | "hired" | "declined"; + /** @enum {string} */ + status_label: "A contatar" | "Em orçamento" | "Contratado" | "Recusado"; + owner: { + id: string; + name: string; + } | null; + quoted: { + amount: number; + currency: string; + } | null; + contracted: { + amount: number; + currency: string; + } | null; + accepted_quote_id: string | null; + decline_reason: string | null; + hired_at: string | null; + declined_at: string | null; + quotes_count: number; + quotes: { + id: string; + amount: { + amount: number; + currency: string; + } | null; + description: string; + received_on: string; + valid_until: string | null; + expired: boolean; + /** @enum {string} */ + status: "received" | "accepted" | "rejected"; + /** @enum {string} */ + status_label: "Recebido" | "Aceito" | "Recusado"; + recorded_by: { + id: string; + name: string; + } | null; + }[]; + attachments: { + id: string; + /** @enum {string} */ + kind: "quote" | "contract" | "invoice" | "other"; + /** @enum {string} */ + kind_label: "Orçamento" | "Contrato" | "Nota fiscal" | "Outro"; + name: string; + mime_type: string; + size_bytes: number; + uploaded_by: { + id: string; + name: string; + } | null; + created_at: string | null; + }[]; + activities: { + id: string; + /** @enum {string} */ + kind: "note" | "status" | "quote" | "attachment"; + /** @enum {string|null} */ + channel: "email" | "phone" | "whatsapp" | "meeting" | "visit" | "other" | null; + /** @enum {string|null} */ + channel_label: "E-mail" | "Telefone" | "WhatsApp" | "Reunião" | "Visita" | "Outro" | null; + summary: string; + author: { + id: string; + name: string; + } | null; + happened_at: string | null; + }[]; }; }; }; }; 401: components["responses"]["AuthenticationException"]; - 403: components["responses"]["AuthorizationException"]; + 404: components["responses"]["ModelNotFoundException"]; }; }; - "cfp.decision.simulate": { + "suppliers.attachments.url": { parameters: { query?: never; header?: never; path: { edition: string; + attachment: string; }; cookie?: never; }; - requestBody: { - content: { - "application/json": components["schemas"]["DecisionsRequest"]; - }; - }; + requestBody?: never; responses: { 200: { headers: { @@ -3296,63 +11203,48 @@ export interface operations { content: { "application/json": { data: { - decisions: { - accepted: unknown; - waitlisted: unknown; - rejected: unknown; - undecided: unknown; - }; - tracks: unknown[]; - coverage: { - people: number; - unknown_state: number; - by_state: string; - nordeste_people: number; - nordeste_percent: number | null; - nordeste_states_missing: unknown[]; - nordeste_quota_percent: number; - require_nordeste_quota: boolean; - }; - alerts: ({ - /** @constant */ - type: "nordeste_quota"; - message: string; - } | { - /** @constant */ - type: "states_missing"; - message: string; - } | { - /** @constant */ - type: "track_over_slots"; - message: string; - } | { - /** @constant */ - type: "unknown_state"; - message: string; - })[]; + url: string; + expires_at: string; }; }; }; }; 401: components["responses"]["AuthenticationException"]; - 403: components["responses"]["AuthorizationException"]; - 422: components["responses"]["ValidationException"]; }; }; - "cfp.decision.apply": { + "suppliers.attachments.destroy": { parameters: { query?: never; header?: never; path: { edition: string; + attachment: string; }; cookie?: never; }; - requestBody: { - content: { - "application/json": components["schemas"]["DecisionsRequest"]; + requestBody?: never; + responses: { + /** @description No content */ + 204: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + 401: components["responses"]["AuthenticationException"]; + }; + }; + "suppliers.show": { + parameters: { + query?: never; + header?: never; + path: { + edition: string; + link: string; }; + cookie?: never; }; + requestBody?: never; responses: { 200: { headers: { @@ -3361,62 +11253,142 @@ export interface operations { content: { "application/json": { data: { - changed: number; - outcome: { - decisions: { - accepted: unknown; - waitlisted: unknown; - rejected: unknown; - undecided: unknown; - }; - tracks: unknown[]; - coverage: { - people: number; - unknown_state: number; - by_state: string; - nordeste_people: number; - nordeste_percent: number | null; - nordeste_states_missing: unknown[]; - nordeste_quota_percent: number; - require_nordeste_quota: boolean; - }; - alerts: ({ - /** @constant */ - type: "nordeste_quota"; - message: string; - } | { - /** @constant */ - type: "states_missing"; - message: string; - } | { - /** @constant */ - type: "track_over_slots"; - message: string; - } | { - /** @constant */ - type: "unknown_state"; - message: string; - })[]; + id: string; + supplier: { + id: string; + name: string; + /** @enum {string} */ + service: "venue" | "catering" | "audio_visual" | "printing" | "merch" | "transport" | "accommodation" | "photo_video" | "accessibility" | "other"; + /** @enum {string} */ + service_label: "Local" | "Alimentação" | "Som, luz e vídeo" | "Gráfica" | "Brindes e camisetas" | "Transporte" | "Hospedagem" | "Foto e filmagem" | "Acessibilidade (Libras, legenda)" | "Outro"; + description: string | null; + document: string | null; + website: string | null; + city: string | null; + state: string | null; + contacts_visible: boolean; + contacts: { + id: string; + name: string; + role: string | null; + email: string | null; + phone: string | null; + }[] | null; }; + /** @enum {string} */ + status: "to_contact" | "quoting" | "hired" | "declined"; + /** @enum {string} */ + status_label: "A contatar" | "Em orçamento" | "Contratado" | "Recusado"; + owner: { + id: string; + name: string; + } | null; + quoted: { + amount: number; + currency: string; + } | null; + contracted: { + amount: number; + currency: string; + } | null; + accepted_quote_id: string | null; + decline_reason: string | null; + hired_at: string | null; + declined_at: string | null; + quotes_count: number; + quotes: { + id: string; + amount: { + amount: number; + currency: string; + } | null; + description: string; + received_on: string; + valid_until: string | null; + expired: boolean; + /** @enum {string} */ + status: "received" | "accepted" | "rejected"; + /** @enum {string} */ + status_label: "Recebido" | "Aceito" | "Recusado"; + recorded_by: { + id: string; + name: string; + } | null; + }[]; + attachments: { + id: string; + /** @enum {string} */ + kind: "quote" | "contract" | "invoice" | "other"; + /** @enum {string} */ + kind_label: "Orçamento" | "Contrato" | "Nota fiscal" | "Outro"; + name: string; + mime_type: string; + size_bytes: number; + uploaded_by: { + id: string; + name: string; + } | null; + created_at: string | null; + }[]; + activities: { + id: string; + /** @enum {string} */ + kind: "note" | "status" | "quote" | "attachment"; + /** @enum {string|null} */ + channel: "email" | "phone" | "whatsapp" | "meeting" | "visit" | "other" | null; + /** @enum {string|null} */ + channel_label: "E-mail" | "Telefone" | "WhatsApp" | "Reunião" | "Visita" | "Outro" | null; + summary: string; + author: { + id: string; + name: string; + } | null; + happened_at: string | null; + }[]; }; }; }; }; 401: components["responses"]["AuthenticationException"]; - 403: components["responses"]["AuthorizationException"]; - 422: components["responses"]["ValidationException"]; }; }; - "cfp.confirmations.index": { + "suppliers.destroy": { parameters: { query?: never; header?: never; path: { edition: string; + link: string; }; cookie?: never; }; requestBody?: never; + responses: { + /** @description No content */ + 204: { + headers: { + [name: string]: unknown; + }; + content?: never; + }; + 401: components["responses"]["AuthenticationException"]; + }; + }; + "suppliers.update": { + parameters: { + query?: never; + header?: never; + path: { + edition: string; + link: string; + }; + cookie?: never; + }; + requestBody: { + content: { + "application/json": components["schemas"]["SaveSupplierRequest"]; + }; + }; responses: { 200: { headers: { @@ -3424,28 +11396,120 @@ export interface operations { }; content: { "application/json": { - summary: unknown[]; - data: unknown[]; + data: { + id: string; + supplier: { + id: string; + name: string; + /** @enum {string} */ + service: "venue" | "catering" | "audio_visual" | "printing" | "merch" | "transport" | "accommodation" | "photo_video" | "accessibility" | "other"; + /** @enum {string} */ + service_label: "Local" | "Alimentação" | "Som, luz e vídeo" | "Gráfica" | "Brindes e camisetas" | "Transporte" | "Hospedagem" | "Foto e filmagem" | "Acessibilidade (Libras, legenda)" | "Outro"; + description: string | null; + document: string | null; + website: string | null; + city: string | null; + state: string | null; + contacts_visible: boolean; + contacts: { + id: string; + name: string; + role: string | null; + email: string | null; + phone: string | null; + }[] | null; + }; + /** @enum {string} */ + status: "to_contact" | "quoting" | "hired" | "declined"; + /** @enum {string} */ + status_label: "A contatar" | "Em orçamento" | "Contratado" | "Recusado"; + owner: { + id: string; + name: string; + } | null; + quoted: { + amount: number; + currency: string; + } | null; + contracted: { + amount: number; + currency: string; + } | null; + accepted_quote_id: string | null; + decline_reason: string | null; + hired_at: string | null; + declined_at: string | null; + quotes_count: number; + quotes: { + id: string; + amount: { + amount: number; + currency: string; + } | null; + description: string; + received_on: string; + valid_until: string | null; + expired: boolean; + /** @enum {string} */ + status: "received" | "accepted" | "rejected"; + /** @enum {string} */ + status_label: "Recebido" | "Aceito" | "Recusado"; + recorded_by: { + id: string; + name: string; + } | null; + }[]; + attachments: { + id: string; + /** @enum {string} */ + kind: "quote" | "contract" | "invoice" | "other"; + /** @enum {string} */ + kind_label: "Orçamento" | "Contrato" | "Nota fiscal" | "Outro"; + name: string; + mime_type: string; + size_bytes: number; + uploaded_by: { + id: string; + name: string; + } | null; + created_at: string | null; + }[]; + activities: { + id: string; + /** @enum {string} */ + kind: "note" | "status" | "quote" | "attachment"; + /** @enum {string|null} */ + channel: "email" | "phone" | "whatsapp" | "meeting" | "visit" | "other" | null; + /** @enum {string|null} */ + channel_label: "E-mail" | "Telefone" | "WhatsApp" | "Reunião" | "Visita" | "Outro" | null; + summary: string; + author: { + id: string; + name: string; + } | null; + happened_at: string | null; + }[]; + }; }; }; }; 401: components["responses"]["AuthenticationException"]; - 403: components["responses"]["AuthorizationException"]; + 422: components["responses"]["ValidationException"]; }; }; - "cfp.confirmations.extend": { + "suppliers.status": { parameters: { query?: never; header?: never; path: { edition: string; - proposal: string; + link: string; }; cookie?: never; }; requestBody: { content: { - "application/json": components["schemas"]["ExtendDeadlineRequest"]; + "application/json": components["schemas"]["ChangeStatusRequest"]; }; }; responses: { @@ -3456,133 +11520,302 @@ export interface operations { content: { "application/json": { data: { + id: string; + supplier: { + id: string; + name: string; + /** @enum {string} */ + service: "venue" | "catering" | "audio_visual" | "printing" | "merch" | "transport" | "accommodation" | "photo_video" | "accessibility" | "other"; + /** @enum {string} */ + service_label: "Local" | "Alimentação" | "Som, luz e vídeo" | "Gráfica" | "Brindes e camisetas" | "Transporte" | "Hospedagem" | "Foto e filmagem" | "Acessibilidade (Libras, legenda)" | "Outro"; + description: string | null; + document: string | null; + website: string | null; + city: string | null; + state: string | null; + contacts_visible: boolean; + contacts: { + id: string; + name: string; + role: string | null; + email: string | null; + phone: string | null; + }[] | null; + }; /** @enum {string} */ - status: "pending" | "confirmed" | "declined" | "withdrawn" | "no_response" | "cancelled"; - deadline_at: string; + status: "to_contact" | "quoting" | "hired" | "declined"; + /** @enum {string} */ + status_label: "A contatar" | "Em orçamento" | "Contratado" | "Recusado"; + owner: { + id: string; + name: string; + } | null; + quoted: { + amount: number; + currency: string; + } | null; + contracted: { + amount: number; + currency: string; + } | null; + accepted_quote_id: string | null; + decline_reason: string | null; + hired_at: string | null; + declined_at: string | null; + quotes_count: number; + quotes: { + id: string; + amount: { + amount: number; + currency: string; + } | null; + description: string; + received_on: string; + valid_until: string | null; + expired: boolean; + /** @enum {string} */ + status: "received" | "accepted" | "rejected"; + /** @enum {string} */ + status_label: "Recebido" | "Aceito" | "Recusado"; + recorded_by: { + id: string; + name: string; + } | null; + }[]; + attachments: { + id: string; + /** @enum {string} */ + kind: "quote" | "contract" | "invoice" | "other"; + /** @enum {string} */ + kind_label: "Orçamento" | "Contrato" | "Nota fiscal" | "Outro"; + name: string; + mime_type: string; + size_bytes: number; + uploaded_by: { + id: string; + name: string; + } | null; + created_at: string | null; + }[]; + activities: { + id: string; + /** @enum {string} */ + kind: "note" | "status" | "quote" | "attachment"; + /** @enum {string|null} */ + channel: "email" | "phone" | "whatsapp" | "meeting" | "visit" | "other" | null; + /** @enum {string|null} */ + channel_label: "E-mail" | "Telefone" | "WhatsApp" | "Reunião" | "Visita" | "Outro" | null; + summary: string; + author: { + id: string; + name: string; + } | null; + happened_at: string | null; + }[]; }; }; }; }; 401: components["responses"]["AuthenticationException"]; - 403: components["responses"]["AuthorizationException"]; - 404: components["responses"]["ModelNotFoundException"]; 422: components["responses"]["ValidationException"]; }; }; - "cfp.promotions.index": { + "suppliers.activities.store": { parameters: { query?: never; header?: never; path: { edition: string; + link: string; }; cookie?: never; }; - requestBody?: never; + requestBody: { + content: { + "application/json": components["schemas"]["LogActivityRequest"]; + }; + }; responses: { - 200: { + 201: { headers: { [name: string]: unknown; }; content: { "application/json": { - data: unknown[]; + data: { + id: string; + supplier: { + id: string; + name: string; + /** @enum {string} */ + service: "venue" | "catering" | "audio_visual" | "printing" | "merch" | "transport" | "accommodation" | "photo_video" | "accessibility" | "other"; + /** @enum {string} */ + service_label: "Local" | "Alimentação" | "Som, luz e vídeo" | "Gráfica" | "Brindes e camisetas" | "Transporte" | "Hospedagem" | "Foto e filmagem" | "Acessibilidade (Libras, legenda)" | "Outro"; + description: string | null; + document: string | null; + website: string | null; + city: string | null; + state: string | null; + contacts_visible: boolean; + contacts: { + id: string; + name: string; + role: string | null; + email: string | null; + phone: string | null; + }[] | null; + }; + /** @enum {string} */ + status: "to_contact" | "quoting" | "hired" | "declined"; + /** @enum {string} */ + status_label: "A contatar" | "Em orçamento" | "Contratado" | "Recusado"; + owner: { + id: string; + name: string; + } | null; + quoted: { + amount: number; + currency: string; + } | null; + contracted: { + amount: number; + currency: string; + } | null; + accepted_quote_id: string | null; + decline_reason: string | null; + hired_at: string | null; + declined_at: string | null; + quotes_count: number; + quotes: { + id: string; + amount: { + amount: number; + currency: string; + } | null; + description: string; + received_on: string; + valid_until: string | null; + expired: boolean; + /** @enum {string} */ + status: "received" | "accepted" | "rejected"; + /** @enum {string} */ + status_label: "Recebido" | "Aceito" | "Recusado"; + recorded_by: { + id: string; + name: string; + } | null; + }[]; + attachments: { + id: string; + /** @enum {string} */ + kind: "quote" | "contract" | "invoice" | "other"; + /** @enum {string} */ + kind_label: "Orçamento" | "Contrato" | "Nota fiscal" | "Outro"; + name: string; + mime_type: string; + size_bytes: number; + uploaded_by: { + id: string; + name: string; + } | null; + created_at: string | null; + }[]; + activities: { + id: string; + /** @enum {string} */ + kind: "note" | "status" | "quote" | "attachment"; + /** @enum {string|null} */ + channel: "email" | "phone" | "whatsapp" | "meeting" | "visit" | "other" | null; + /** @enum {string|null} */ + channel_label: "E-mail" | "Telefone" | "WhatsApp" | "Reunião" | "Visita" | "Outro" | null; + summary: string; + author: { + id: string; + name: string; + } | null; + happened_at: string | null; + }[]; + }; }; }; }; 401: components["responses"]["AuthenticationException"]; - 403: components["responses"]["AuthorizationException"]; + 422: components["responses"]["ValidationException"]; }; }; - "cfp.promotions.store": { + "suppliers.contacts.store": { parameters: { query?: never; header?: never; path: { edition: string; + link: string; }; cookie?: never; }; requestBody: { content: { - "application/json": components["schemas"]["PromoteRequest"]; + "application/json": components["schemas"]["SaveContactRequest"]; }; }; responses: { - 200: { + 201: { headers: { [name: string]: unknown; }; content: { "application/json": { data: { - proposal_id: string; - /** @enum {string|null} */ - decision: "accepted" | "waitlisted" | "rejected" | null; - /** @enum {string|null} */ - confirmation_status: "pending" | "confirmed" | "declined" | "withdrawn" | "no_response" | "cancelled" | null; + id: string; + name: string; + role: string | null; + email: string | null; + phone: string | null; }; }; }; }; 401: components["responses"]["AuthenticationException"]; - 403: components["responses"]["AuthorizationException"]; 422: components["responses"]["ValidationException"]; }; }; - "cfp.logistics.show": { + "suppliers.contacts.destroy": { parameters: { query?: never; header?: never; path: { edition: string; - user: string; + link: string; + contact: string; }; cookie?: never; }; requestBody?: never; responses: { - 200: { + /** @description No content */ + 204: { headers: { [name: string]: unknown; }; - content: { - "application/json": { - data: { - user_id: string; - origin_city: string | null; - /** @enum {string|null} */ - origin_state: "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" | null; - needs_travel: boolean; - needs_lodging: boolean; - travel_paid_by_organization: boolean; - lodging_paid_by_organization: boolean; - organization_notes: string | null; - restrictions: { - accessibility_needs: string | null; - dietary_restrictions: string | null; - }; - }; - }; - }; + content?: never; }; 401: components["responses"]["AuthenticationException"]; - 403: components["responses"]["AuthorizationException"]; }; }; - "cfp.logistics.update": { + "suppliers.contacts.update": { parameters: { query?: never; header?: never; path: { edition: string; - user: string; + link: string; + contact: string; }; cookie?: never; }; - requestBody?: { + requestBody: { content: { - "application/json": components["schemas"]["OrganizationLogisticsRequest"]; + "application/json": components["schemas"]["SaveContactRequest"]; }; }; responses: { @@ -3593,60 +11826,68 @@ export interface operations { content: { "application/json": { data: { - user_id: string; - origin_city: string | null; - /** @enum {string|null} */ - origin_state: "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" | null; - needs_travel: boolean; - needs_lodging: boolean; - travel_paid_by_organization: boolean; - lodging_paid_by_organization: boolean; - organization_notes: string | null; - restrictions: { - accessibility_needs: string | null; - dietary_restrictions: string | null; - }; + id: string; + name: string; + role: string | null; + email: string | null; + phone: string | null; }; }; }; }; 401: components["responses"]["AuthenticationException"]; - 403: components["responses"]["AuthorizationException"]; 422: components["responses"]["ValidationException"]; }; }; - "cfp.reviews.queue": { + "suppliers.quotes.store": { parameters: { query?: never; header?: never; path: { edition: string; + link: string; }; cookie?: never; }; - requestBody?: never; + requestBody: { + content: { + "application/json": components["schemas"]["RecordQuoteRequest"]; + }; + }; responses: { - 200: { + 201: { headers: { [name: string]: unknown; }; content: { "application/json": { - data: unknown[]; + data: { + id: string; + amount: { + amount: number; + currency: string; + } | null; + description: string; + received_on: string; + valid_until: string | null; + /** @enum {string} */ + status: "received" | "accepted" | "rejected"; + }; }; }; }; 401: components["responses"]["AuthenticationException"]; - 403: components["responses"]["AuthorizationException"]; + 422: components["responses"]["ValidationException"]; }; }; - "cfp.reviews.show": { + "suppliers.quotes.reject": { parameters: { query?: never; header?: never; path: { edition: string; - proposal: string; + link: string; + quote: string; }; cookie?: never; }; @@ -3659,99 +11900,89 @@ export interface operations { content: { "application/json": { data: { - proposal: unknown[]; - criteria: unknown[]; - review: { - status: string; - scores: number[]; - comment: string | null; - weighted_score: number | null; - submitted_at: string | null; + id: string; + amount: { + amount: number; + currency: string; } | null; + description: string; + received_on: string; + valid_until: string | null; + /** @enum {string} */ + status: "received" | "accepted" | "rejected"; }; }; }; }; 401: components["responses"]["AuthenticationException"]; - 403: components["responses"]["AuthorizationException"]; }; }; - "cfp.reviews.save": { + "suppliers.quotes.destroy": { parameters: { query?: never; header?: never; path: { edition: string; - proposal: string; + link: string; + quote: string; }; cookie?: never; }; - requestBody: { - content: { - "application/json": components["schemas"]["SaveReviewRequest"]; - }; - }; + requestBody?: never; responses: { - 200: { + /** @description No content */ + 204: { headers: { [name: string]: unknown; }; - content: { - "application/json": { - data: { - status: string; - scores: number[]; - comment: string | null; - weighted_score: number | null; - submitted_at: string | null; - }; - }; - }; + content?: never; }; 401: components["responses"]["AuthenticationException"]; - 403: components["responses"]["AuthorizationException"]; - 422: components["responses"]["ValidationException"]; }; }; - "cfp.reviews.index": { + "suppliers.attachments.store": { parameters: { query?: never; header?: never; path: { edition: string; - proposal: string; + link: string; }; cookie?: never; }; - requestBody?: never; + requestBody: { + content: { + "multipart/form-data": components["schemas"]["PHPeste.Suppliers.Http.Requests.UploadAttachmentRequest"]; + }; + }; responses: { - 200: { + 201: { headers: { [name: string]: unknown; }; content: { "application/json": { data: { - status: string; - scores: number[]; - comment: string | null; - weighted_score: number | null; - submitted_at: string | null; - reviewer: unknown; - }[]; + id: string; + /** @enum {string} */ + kind: "quote" | "contract" | "invoice" | "other"; + name: string; + mime_type: string; + size_bytes: number; + }; }; }; }; 401: components["responses"]["AuthenticationException"]; - 403: components["responses"]["AuthorizationException"]; + 422: components["responses"]["ValidationException"]; }; }; - "cfp.speaker.proposals.index": { + "suppliers.attachments.download": { parameters: { query?: never; header?: never; path: { - edition: string; + attachment: string; }; cookie?: never; }; @@ -3759,236 +11990,318 @@ export interface operations { responses: { 200: { headers: { + "Transfer-Encoding": "chunked"; [name: string]: unknown; }; content: { - "application/json": { - data: unknown[]; - }; + "application/octet-stream": string; }; }; - 401: components["responses"]["AuthenticationException"]; + 404: components["responses"]["ModelNotFoundException"]; }; }; - "cfp.speaker.proposals.store": { + "tasks.board": { parameters: { query?: never; header?: never; path: { + /** @description The edition ID */ edition: string; }; cookie?: never; }; - requestBody?: { - content: { - "application/json": components["schemas"]["SaveProposalRequest"]; - }; - }; + requestBody?: never; responses: { - /** @description `ProposalResource` */ - 201: { + 200: { headers: { [name: string]: unknown; }; content: { "application/json": { - data: components["schemas"]["ProposalResource"]; + data: { + filter: string; + can_manage: boolean; + columns: { + id: string; + name: string; + position: number; + is_done: boolean; + count: number; + tasks: { + id: string; + column_id: string; + position: number; + title: string; + description: string | null; + assignee: string | null; + due_on: string | null; + overdue: boolean; + done: boolean; + link: string; + updated_at: string; + }[]; + }[]; + totals: { + tasks: number; + overdue: number; + }; + }; }; }; }; 401: components["responses"]["AuthenticationException"]; - 422: components["responses"]["ValidationException"]; + 404: components["responses"]["ModelNotFoundException"]; }; }; - "cfp.speaker.proposals.show": { + "tasks.link-options": { parameters: { query?: never; header?: never; path: { + /** @description The edition ID */ edition: string; - proposal: string; }; cookie?: never; }; requestBody?: never; responses: { - /** @description `ProposalResource` */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { - data: components["schemas"]["ProposalResource"]; + data: unknown[]; }; }; }; 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; + 404: components["responses"]["ModelNotFoundException"]; }; }; - "cfp.speaker.proposals.update": { + "tasks.store": { parameters: { query?: never; header?: never; path: { + /** @description The edition ID */ edition: string; - proposal: string; }; cookie?: never; }; - requestBody?: { + requestBody: { content: { - "application/json": components["schemas"]["SaveProposalRequest"]; + "application/json": components["schemas"]["SaveTaskRequest"]; }; }; responses: { - /** @description `ProposalResource` */ - 200: { + 201: { headers: { [name: string]: unknown; }; content: { "application/json": { - data: components["schemas"]["ProposalResource"]; + data: { + id: string; + column_id: string; + position: number; + title: string; + description: string | null; + assignee: string | null; + due_on: string | null; + overdue: boolean; + done: boolean; + link: string; + updated_at: string; + }; }; }; }; 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; + 404: components["responses"]["ModelNotFoundException"]; 422: components["responses"]["ValidationException"]; }; }; - "cfp.speaker.proposals.submit": { + "tasks.destroy": { parameters: { query?: never; header?: never; path: { edition: string; - proposal: string; + task: string; }; cookie?: never; }; requestBody?: never; responses: { - /** @description `ProposalResource` */ - 200: { + /** @description No content */ + 204: { headers: { [name: string]: unknown; }; - content: { - "application/json": { - data: components["schemas"]["ProposalResource"]; - }; - }; + content?: never; }; 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; }; }; - "cfp.speaker.proposals.withdraw": { + "tasks.update": { parameters: { query?: never; header?: never; path: { + /** @description The edition ID */ edition: string; - proposal: string; + task: string; }; cookie?: never; }; - requestBody?: never; + requestBody: { + content: { + "application/json": components["schemas"]["SaveTaskRequest"]; + }; + }; responses: { - /** @description `ProposalResource` */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { - data: components["schemas"]["ProposalResource"]; + data: { + id: string; + column_id: string; + position: number; + title: string; + description: string | null; + assignee: string | null; + due_on: string | null; + overdue: boolean; + done: boolean; + link: string; + updated_at: string; + }; }; }; }; 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; + 404: components["responses"]["ModelNotFoundException"]; + 422: components["responses"]["ValidationException"]; }; }; - "cfp.speaker.proposals.coauthors.store": { + "tasks.move": { parameters: { query?: never; header?: never; path: { edition: string; - proposal: string; + task: string; }; cookie?: never; }; requestBody: { content: { - "application/json": components["schemas"]["AddCoauthorRequest"]; + "application/json": components["schemas"]["MoveTaskRequest"]; }; }; responses: { - /** @description `ProposalResource` */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { - data: components["schemas"]["ProposalResource"]; + data: { + task: { + id: string; + column_id: string; + position: number; + title: string; + description: string | null; + assignee: string | null; + due_on: string | null; + overdue: boolean; + done: boolean; + link: string; + updated_at: string; + }; + columns: string; + }; }; }; }; 401: components["responses"]["AuthenticationException"]; + /** @description An error */ + 403: { + headers: { + [name: string]: unknown; + }; + content: { + "application/json": { + /** + * @description Error overview. + * @example Só quem organiza ou o responsável pela tarefa pode mover. + */ + message: string; + }; + }; + }; 422: components["responses"]["ValidationException"]; }; }; - "cfp.speaker.proposals.confirm": { + "tasks.columns.store": { parameters: { query?: never; header?: never; path: { + /** @description The edition ID */ edition: string; - proposal: string; }; cookie?: never; }; - requestBody?: { + requestBody: { content: { - "application/json": components["schemas"]["RespondConfirmationRequest"]; + "application/json": components["schemas"]["SaveColumnRequest"]; }; }; responses: { - 200: { + 201: { headers: { [name: string]: unknown; }; content: { "application/json": { data: { - /** @enum {string} */ - status: "pending" | "confirmed" | "declined" | "withdrawn" | "no_response" | "cancelled"; - /** @enum {string} */ - status_label: "Aguardando resposta" | "Confirmada" | "Recusou" | "Desistiu" | "Sem resposta" | "Cancelada"; - deadline_at: string; + id: string; + name: string; + position: number; + is_done: boolean; }; }; }; }; 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; + 404: components["responses"]["ModelNotFoundException"]; 422: components["responses"]["ValidationException"]; }; }; - "cfp.speaker.proposals.decline": { + "tasks.columns.reorder": { parameters: { query?: never; header?: never; path: { + /** @description The edition ID */ edition: string; - proposal: string; }; cookie?: never; }; - requestBody?: { + requestBody: { content: { - "application/json": components["schemas"]["RespondConfirmationRequest"]; + "application/json": components["schemas"]["ReorderColumnsRequest"]; }; }; responses: { @@ -3999,84 +12312,82 @@ export interface operations { content: { "application/json": { data: { - /** @enum {string} */ - status: "pending" | "confirmed" | "declined" | "withdrawn" | "no_response" | "cancelled"; - /** @enum {string} */ - status_label: "Aguardando resposta" | "Confirmada" | "Recusou" | "Desistiu" | "Sem resposta" | "Cancelada"; - deadline_at: string; - }; + id: string; + name: string; + position: number; + is_done: boolean; + }[]; }; }; }; 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; + 404: components["responses"]["ModelNotFoundException"]; 422: components["responses"]["ValidationException"]; }; }; - "cfp.speaker.proposals.give-up": { + "tasks.columns.destroy": { parameters: { query?: never; header?: never; path: { edition: string; - proposal: string; + column: string; }; cookie?: never; }; - requestBody?: { - content: { - "application/json": components["schemas"]["RespondConfirmationRequest"]; - }; - }; + requestBody?: never; responses: { - 200: { + /** @description No content */ + 204: { headers: { [name: string]: unknown; }; - content: { - "application/json": { - data: { - /** @enum {string} */ - status: "pending" | "confirmed" | "declined" | "withdrawn" | "no_response" | "cancelled"; - /** @enum {string} */ - status_label: "Aguardando resposta" | "Confirmada" | "Recusou" | "Desistiu" | "Sem resposta" | "Cancelada"; - deadline_at: string; - }; - }; - }; + content?: never; }; 401: components["responses"]["AuthenticationException"]; - 422: components["responses"]["ValidationException"]; + 403: components["responses"]["AuthorizationException"]; }; }; - "cfp.speaker.proposals.coauthors.destroy": { + "tasks.columns.update": { parameters: { query?: never; header?: never; path: { + /** @description The edition ID */ edition: string; - proposal: string; - user: string; + column: string; }; cookie?: never; }; - requestBody?: never; + requestBody: { + content: { + "application/json": components["schemas"]["SaveColumnRequest"]; + }; + }; responses: { - /** @description `ProposalResource` */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { - data: components["schemas"]["ProposalResource"]; + data: { + id: string; + name: string; + position: number; + is_done: boolean; + }; }; }; }; 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; 404: components["responses"]["ModelNotFoundException"]; + 422: components["responses"]["ValidationException"]; }; }; - "cfp.public.show": { + "ticketing.types.index": { parameters: { query?: never; header?: never; @@ -4093,29 +12404,25 @@ export interface operations { }; content: { "application/json": { - data: { - edition_id: string; - /** @enum {string} */ - status: "open" | "draft" | "closed" | "scheduled"; - /** @enum {string} */ - status_label: "CFP aberto" | "Em preparação" | "CFP encerrado" | "Agendado"; - opens_at: string | null; - closes_at: string | null; - results_at: string | null; - anonymous_review: boolean; - proposals_per_person: number; - tracks: { - id: string; - name: string; - }[]; + data: unknown[]; + meta: { + /** @description Lote pago só vende com a conta do gateway pronta (chaves e webhook testados). */ + gateway_ready: string; + capacity: number | null; + allocated: number; + remaining: unknown; + reservation_minutes: number; + max_tickets_per_buyer: number | null; + gateway_fee_basis_points: number; }; }; }; }; - 404: components["responses"]["ModelNotFoundException"]; + 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; }; }; - "cfp.speaker.logistics.show": { + "ticketing.types.store": { parameters: { query?: never; header?: never; @@ -4124,36 +12431,29 @@ export interface operations { }; cookie?: never; }; - requestBody?: never; + requestBody: { + content: { + "application/json": components["schemas"]["SaveTicketTypeRequest"]; + }; + }; responses: { - 200: { + /** @description `TicketTypeResource` */ + 201: { headers: { [name: string]: unknown; }; content: { "application/json": { - data: { - user_id: string; - origin_city: string | null; - /** @enum {string|null} */ - origin_state: "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" | null; - needs_travel: boolean; - needs_lodging: boolean; - travel_paid_by_organization: boolean; - lodging_paid_by_organization: boolean; - organization_notes: string | null; - restrictions: { - accessibility_needs: string | null; - dietary_restrictions: string | null; - }; - }; + data: components["schemas"]["TicketTypeResource"]; }; }; }; 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; + 422: components["responses"]["ValidationException"]; }; }; - "cfp.speaker.logistics.update": { + "ticketing.settings.update": { parameters: { query?: never; header?: never; @@ -4164,7 +12464,7 @@ export interface operations { }; requestBody?: { content: { - "application/json": components["schemas"]["SpeakerLogisticsRequest"]; + "application/json": components["schemas"]["UpdateTicketingSettingsRequest"]; }; }; responses: { @@ -4175,113 +12475,118 @@ export interface operations { content: { "application/json": { data: { - user_id: string; - origin_city: string | null; - /** @enum {string|null} */ - origin_state: "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" | null; - needs_travel: boolean; - needs_lodging: boolean; - travel_paid_by_organization: boolean; - lodging_paid_by_organization: boolean; - organization_notes: string | null; - restrictions: { - accessibility_needs: string | null; - dietary_restrictions: string | null; - }; + /** @description Lote pago só vende com a conta do gateway pronta (chaves e webhook testados). */ + gateway_ready: string; + capacity: number | null; + allocated: number; + remaining: unknown; + reservation_minutes: number; + max_tickets_per_buyer: number | null; + gateway_fee_basis_points: number; }; }; }; }; 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; 422: components["responses"]["ValidationException"]; }; }; - "community.communities.index": { + "ticketing.types.destroy": { parameters: { query?: never; header?: never; - path?: never; + path: { + edition: string; + ticketType: string; + }; cookie?: never; }; requestBody?: never; responses: { - /** @description Array of `CommunityResource` */ - 200: { + /** @description No content */ + 204: { headers: { [name: string]: unknown; }; - content: { - "application/json": { - data: components["schemas"]["CommunityResource"][]; - }; - }; + content?: never; }; 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; }; }; - "community.communities.store": { + "ticketing.types.update": { parameters: { query?: never; header?: never; - path?: never; + path: { + edition: string; + ticketType: string; + }; cookie?: never; }; requestBody: { content: { - "application/json": components["schemas"]["StoreCommunityRequest"]; + "application/json": components["schemas"]["SaveTicketTypeRequest"]; }; }; responses: { - /** @description `CommunityResource` */ - 201: { + /** @description `TicketTypeResource` */ + 200: { headers: { [name: string]: unknown; }; content: { "application/json": { - data: components["schemas"]["CommunityResource"]; + data: components["schemas"]["TicketTypeResource"]; }; }; }; 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; 422: components["responses"]["ValidationException"]; }; }; - "community.communities.show": { + "ticketing.batches.store": { parameters: { query?: never; header?: never; path: { - /** @description The community ID */ - community: string; + edition: string; + ticketType: string; }; cookie?: never; }; - requestBody?: never; + requestBody: { + content: { + "application/json": components["schemas"]["SaveTicketBatchRequest"]; + }; + }; responses: { - /** @description `CommunityResource` */ - 200: { + /** @description `TicketBatchResource` */ + 201: { headers: { [name: string]: unknown; }; content: { "application/json": { - data: components["schemas"]["CommunityResource"]; + data: components["schemas"]["TicketBatchResource"]; }; }; }; 401: components["responses"]["AuthenticationException"]; 403: components["responses"]["AuthorizationException"]; - 404: components["responses"]["ModelNotFoundException"]; + 422: components["responses"]["ValidationException"]; }; }; - "community.communities.destroy": { + "ticketing.batches.destroy": { parameters: { query?: never; header?: never; path: { - /** @description The community ID */ - community: string; + edition: string; + ticketType: string; + batch: string; }; cookie?: never; }; @@ -4296,291 +12601,280 @@ export interface operations { }; 401: components["responses"]["AuthenticationException"]; 403: components["responses"]["AuthorizationException"]; - 404: components["responses"]["ModelNotFoundException"]; }; }; - "community.communities.update": { + "ticketing.batches.update": { parameters: { query?: never; header?: never; path: { - /** @description The community ID */ - community: string; + edition: string; + ticketType: string; + batch: string; }; cookie?: never; }; - requestBody?: { + requestBody: { content: { - "application/json": components["schemas"]["UpdateCommunityRequest"]; + "application/json": components["schemas"]["SaveTicketBatchRequest"]; }; }; responses: { - /** @description `CommunityResource` */ + /** @description `TicketBatchResource` */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { - data: components["schemas"]["CommunityResource"]; + data: components["schemas"]["TicketBatchResource"]; }; }; }; 401: components["responses"]["AuthenticationException"]; 403: components["responses"]["AuthorizationException"]; - 404: components["responses"]["ModelNotFoundException"]; 422: components["responses"]["ValidationException"]; }; }; - "community.communities.editions.index": { + "ticketing.batches.close": { parameters: { query?: never; header?: never; path: { - /** @description The community ID */ - community: string; + edition: string; + ticketType: string; + batch: string; }; cookie?: never; }; requestBody?: never; responses: { - /** @description Array of `EditionResource` */ + /** @description `TicketBatchResource` */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { - data: components["schemas"]["EditionResource"][]; + data: components["schemas"]["TicketBatchResource"]; }; }; }; 401: components["responses"]["AuthenticationException"]; 403: components["responses"]["AuthorizationException"]; - 404: components["responses"]["ModelNotFoundException"]; }; }; - "community.communities.editions.store": { + "ticketing.coupons.index": { parameters: { query?: never; header?: never; path: { - /** @description The community ID */ - community: string; + edition: string; }; cookie?: never; }; - requestBody: { - content: { - "application/json": components["schemas"]["StoreEditionRequest"]; - }; - }; + requestBody?: never; responses: { - /** @description `EditionResource` */ - 201: { + /** @description Array of `CouponResource` */ + 200: { headers: { [name: string]: unknown; }; content: { "application/json": { - data: components["schemas"]["EditionResource"]; + data: components["schemas"]["CouponResource"][]; }; }; }; 401: components["responses"]["AuthenticationException"]; 403: components["responses"]["AuthorizationException"]; - 404: components["responses"]["ModelNotFoundException"]; - 422: components["responses"]["ValidationException"]; }; }; - "community.editions.index": { + "ticketing.coupons.store": { parameters: { query?: never; header?: never; - path?: never; + path: { + edition: string; + }; cookie?: never; }; - requestBody?: never; - responses: { - /** @description Array of `EditionResource` */ - 200: { - headers: { - [name: string]: unknown; - }; - content: { - "application/json": { - data: components["schemas"]["EditionResource"][]; - }; - }; + requestBody: { + content: { + "application/json": components["schemas"]["SaveCouponRequest"]; }; - 401: components["responses"]["AuthenticationException"]; }; - }; - "community.roles.index": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; responses: { - 200: { + /** @description `CouponResource` */ + 201: { headers: { [name: string]: unknown; }; content: { "application/json": { - data: { - roles: unknown[]; - permissions: unknown[]; - }; + data: components["schemas"]["CouponResource"]; }; }; }; 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; + 422: components["responses"]["ValidationException"]; }; }; - "community.edition-clones.show": { + "ticketing.coupons.destroy": { parameters: { query?: never; header?: never; path: { - clone: string; + edition: string; + coupon: string; }; cookie?: never; }; requestBody?: never; responses: { - /** @description `EditionCloneResource` */ - 200: { + /** @description No content */ + 204: { headers: { [name: string]: unknown; }; - content: { - "application/json": { - data: components["schemas"]["EditionCloneResource"]; - }; - }; + content?: never; }; 401: components["responses"]["AuthenticationException"]; - 404: components["responses"]["ModelNotFoundException"]; + 403: components["responses"]["AuthorizationException"]; }; }; - "community.team.index": { + "ticketing.coupons.update": { parameters: { query?: never; header?: never; path: { edition: string; + coupon: string; }; cookie?: never; }; - requestBody?: never; + requestBody: { + content: { + "application/json": components["schemas"]["SaveCouponRequest"]; + }; + }; responses: { + /** @description `CouponResource` */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { - data: { - members: { - id: string; - user_id: string; - name: string | null; - email: string | null; - /** @enum {string} */ - role: "organizador" | "financeiro" | "avaliador" | "checkin" | "voluntario"; - /** @enum {string} */ - role_label: "Organizador" | "Financeiro" | "Revisor do CFP" | "Credenciamento" | "Voluntário"; - /** @enum {string} */ - access: "Tudo na edição" | "Pedidos, pagamentos e finanças" | "CFP e palestrantes" | "Check-in" | "Visão geral da edição"; - last_seen_at: null; - joined_at: string; - }[]; - invitations: unknown[]; - summary: { - people: number; - pending_invitations: number; - by_role: unknown[]; - }; - }; + data: components["schemas"]["CouponResource"]; }; }; }; 401: components["responses"]["AuthenticationException"]; 403: components["responses"]["AuthorizationException"]; + 404: components["responses"]["ModelNotFoundException"]; + 422: components["responses"]["ValidationException"]; }; }; - "community.team.members.destroy": { + "ticketing.coupons.redemptions": { parameters: { query?: never; header?: never; path: { edition: string; - member: string; + coupon: string; }; cookie?: never; }; requestBody?: never; responses: { - /** @description No content */ - 204: { + 200: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": { + data: { + id: string; + order_reference: string | null; + email: string | null; + discount: { + amount: number; + /** @constant */ + currency: "BRL"; + }; + released: boolean; + created_at: string; + }[]; + }; + }; }; 401: components["responses"]["AuthenticationException"]; 403: components["responses"]["AuthorizationException"]; }; }; - "community.team.members.update": { + "ticketing.orders.index": { parameters: { query?: never; header?: never; path: { edition: string; - member: string; }; cookie?: never; }; - requestBody: { - content: { - "application/json": components["schemas"]["ChangeMemberRoleRequest"]; - }; - }; + requestBody?: never; responses: { + /** @description Paginated set of `OrderResource` */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { - data: { - id: string; - user_id: string; - name: string | null; - email: string | null; - /** @enum {string} */ - role: "organizador" | "financeiro" | "avaliador" | "checkin" | "voluntario"; - /** @enum {string} */ - role_label: "Organizador" | "Financeiro" | "Revisor do CFP" | "Credenciamento" | "Voluntário"; - /** @enum {string} */ - access: "Tudo na edição" | "Pedidos, pagamentos e finanças" | "CFP e palestrantes" | "Check-in" | "Visão geral da edição"; - last_seen_at: null; - joined_at: string; + data: components["schemas"]["OrderResource"][]; + links: { + first: string | null; + last: string | null; + prev: string | null; + next: string | null; + }; + meta: { + current_page: number; + from: number | null; + last_page: number; + /** @description Generated paginator links. */ + links: { + url: string | null; + label: string; + active: boolean; + }[]; + /** @description Base path for paginator generated URLs. */ + path: string | null; + /** @description Number of items shown per page. */ + per_page: number; + /** @description Number of the last item in the slice. */ + to: number | null; + /** @description Total number of items being paginated. */ + total: number; + summary: { + paid: number; + awaiting: number; + awaiting_expiring_today: number; + refunds: number; + refunded_cents: number; + gross_cents: number; + gateway_fee_cents: number; + }; }; }; }; }; 401: components["responses"]["AuthenticationException"]; 403: components["responses"]["AuthorizationException"]; - 422: components["responses"]["ValidationException"]; }; }; - "community.team.invitations.store": { + "ticketing.orders.export": { parameters: { query?: never; header?: never; @@ -4589,48 +12883,57 @@ export interface operations { }; cookie?: never; }; - requestBody: { - content: { - "application/json": components["schemas"]["InviteTeamMemberRequest"]; - }; - }; + requestBody?: never; responses: { - /** @description `TeamInvitationResource` */ - 201: { + 200: { headers: { + "Transfer-Encoding": "chunked"; [name: string]: unknown; }; content: { - "application/json": { - data: components["schemas"]["TeamInvitationResource"]; - }; + "text/csv; charset=UTF-8": string; }; }; 401: components["responses"]["AuthenticationException"]; 403: components["responses"]["AuthorizationException"]; - 422: components["responses"]["ValidationException"]; }; }; - "community.team.invitations.resend": { + "ticketing.orders.show": { parameters: { query?: never; header?: never; path: { edition: string; - invitation: string; + order: string; }; cookie?: never; }; requestBody?: never; responses: { - /** @description `TeamInvitationResource` */ + /** @description `OrderResource` */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { - data: components["schemas"]["TeamInvitationResource"]; + data: components["schemas"]["OrderResource"]; + meta: { + payment: { + /** @enum {string} */ + method: "pix" | "card" | "boleto"; + /** @enum {string} */ + method_label: "Pix" | "Cartão de crédito" | "Boleto"; + /** @enum {string} */ + status: "pending" | "paid" | "failed" | "expired" | "cancelled" | "refunded" | "disputed"; + /** @enum {string} */ + status_label: "Aguardando pagamento" | "Pago" | "Recusado" | "Vencido" | "Cancelado" | "Reembolsado" | "Em contestação"; + installments: number; + expires_at: string | null; + paid_at: string | null; + failure_reason: string | null; + } | null; + }; }; }; }; @@ -4638,213 +12941,214 @@ export interface operations { 403: components["responses"]["AuthorizationException"]; }; }; - "community.team.invitations.destroy": { + "ticketing.orders.cancel": { parameters: { query?: never; header?: never; path: { edition: string; - invitation: string; + order: string; }; cookie?: never; }; requestBody?: never; responses: { - /** @description No content */ - 204: { + /** @description `OrderResource` */ + 200: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": { + data: components["schemas"]["OrderResource"]; + }; + }; }; 401: components["responses"]["AuthenticationException"]; 403: components["responses"]["AuthorizationException"]; }; }; - "community.invitations.show": { + "ticketing.orders.mark-paid": { parameters: { query?: never; header?: never; path: { - token: string; + edition: string; + order: string; }; cookie?: never; }; - requestBody?: never; + requestBody: { + content: { + "application/json": components["schemas"]["MarkOrderPaidRequest"]; + }; + }; responses: { + /** @description `OrderResource` */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { - data: { - edition: { - id: string; - name: string; - }; - email: string; - name: string | null; - /** @enum {string} */ - role: "organizador" | "financeiro" | "avaliador" | "checkin" | "voluntario"; - /** @enum {string} */ - role_label: "Organizador" | "Financeiro" | "Revisor do CFP" | "Credenciamento" | "Voluntário"; - invited_by: string | null; - account_exists: boolean; - expires_at: string; - }; + data: components["schemas"]["OrderResource"]; }; }; }; + 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; + 422: components["responses"]["ValidationException"]; }; }; - "community.invitations.accept": { + "ticketing.orders.payment-reminder": { parameters: { query?: never; header?: never; path: { - token: string; + edition: string; + order: string; }; cookie?: never; }; - requestBody?: { - content: { - "application/json": components["schemas"]["AcceptInvitationRequest"] & { - name: string; - password: string; - password_confirmation: string; - }; - }; - }; + requestBody?: never; responses: { - 200: { + 202: { headers: { [name: string]: unknown; }; content: { "application/json": { - user: { - id: string; - name: string; - email: string; + data: { + delivery_id: string; }; - edition_id: string; - token: string; }; }; }; - 422: components["responses"]["ValidationException"]; + 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; }; }; - "community.editions.show": { + "ticketing.orders.history": { parameters: { query?: never; header?: never; path: { - /** @description The edition ID */ edition: string; + order: string; }; cookie?: never; }; requestBody?: never; responses: { - /** @description `EditionResource` */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { - data: components["schemas"]["EditionResource"]; + data: [ + { + /** @constant */ + id: "created"; + /** @constant */ + kind: "created"; + title: string; + detail: null; + actor: null; + at: string; + }, + unknown[] + ]; }; }; }; 401: components["responses"]["AuthenticationException"]; 403: components["responses"]["AuthorizationException"]; - 404: components["responses"]["ModelNotFoundException"]; }; }; - "community.editions.destroy": { + "ticketing.orders.refunds.index": { parameters: { query?: never; header?: never; path: { - /** @description The edition ID */ edition: string; + order: string; }; cookie?: never; }; requestBody?: never; responses: { - /** @description No content */ - 204: { + /** @description Array of `RefundResource` */ + 200: { headers: { [name: string]: unknown; }; - content?: never; + content: { + "application/json": { + data: components["schemas"]["RefundResource"][]; + }; + }; }; 401: components["responses"]["AuthenticationException"]; 403: components["responses"]["AuthorizationException"]; - 404: components["responses"]["ModelNotFoundException"]; }; }; - "community.editions.update": { + "ticketing.orders.refunds.store": { parameters: { query?: never; header?: never; path: { - /** @description The edition ID */ edition: string; + order: string; }; cookie?: never; }; - requestBody?: { + requestBody: { content: { - "application/json": components["schemas"]["UpdateEditionRequest"]; + "application/json": components["schemas"]["RefundOrderRequest"]; }; }; responses: { - /** @description `EditionResource` */ 200: { headers: { [name: string]: unknown; }; content: { - "application/json": { - data: components["schemas"]["EditionResource"]; - }; + "application/json": string; }; }; 401: components["responses"]["AuthenticationException"]; 403: components["responses"]["AuthorizationException"]; - 404: components["responses"]["ModelNotFoundException"]; 422: components["responses"]["ValidationException"]; }; }; - "community.editions.status": { + "ticketing.orders.refunds.settle": { parameters: { query?: never; header?: never; path: { - /** @description The edition ID */ edition: string; + order: string; + refund: string; }; cookie?: never; }; requestBody: { content: { - "application/json": components["schemas"]["ChangeEditionStatusRequest"]; + "application/json": { + completed: boolean; + }; }; }; responses: { - /** @description `EditionResource` */ + /** @description `RefundResource` */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { - data: components["schemas"]["EditionResource"]; + data: components["schemas"]["RefundResource"]; }; }; }; @@ -4854,9 +13158,11 @@ export interface operations { 422: components["responses"]["ValidationException"]; }; }; - "community.editions.clone-options": { + "ticketing.tickets.index": { parameters: { - query?: never; + query?: { + ticket_type_id?: string; + }; header?: never; path: { edition: string; @@ -4865,23 +13171,38 @@ export interface operations { }; requestBody?: never; responses: { + /** @description Paginated set of `TicketResource` */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { - data: { - parts: unknown[]; - never_copied: [ - "Propostas", - "Pedidos e ingressos vendidos", - "Participantes", - "Grade", - "Dinheiro e chaves do gateway", - "Domínios", - "Datas" - ]; + data: components["schemas"]["TicketResource"][]; + links: { + first: string | null; + last: string | null; + prev: string | null; + next: string | null; + }; + meta: { + current_page: number; + from: number | null; + last_page: number; + /** @description Generated paginator links. */ + links: { + url: string | null; + label: string; + active: boolean; + }[]; + /** @description Base path for paginator generated URLs. */ + path: string | null; + /** @description Number of items shown per page. */ + per_page: number; + /** @description Number of the last item in the slice. */ + to: number | null; + /** @description Total number of items being paginated. */ + total: number; }; }; }; @@ -4890,171 +13211,196 @@ export interface operations { 403: components["responses"]["AuthorizationException"]; }; }; - "community.editions.clone": { + "ticketing.tickets.show": { parameters: { query?: never; header?: never; path: { edition: string; + ticket: string; }; cookie?: never; }; - requestBody: { - content: { - "application/json": components["schemas"]["CloneEditionRequest"]; - }; - }; + requestBody?: never; responses: { - /** @description `EditionCloneResource` */ - 202: { + /** @description `TicketResource` */ + 200: { headers: { [name: string]: unknown; }; content: { "application/json": { - data: components["schemas"]["EditionCloneResource"]; + data: components["schemas"]["TicketResource"]; }; }; }; 401: components["responses"]["AuthenticationException"]; 403: components["responses"]["AuthorizationException"]; - 404: components["responses"]["ModelNotFoundException"]; - 422: components["responses"]["ValidationException"]; }; }; - "community.public.editions.show": { + "ticketing.tickets.update": { parameters: { query?: never; header?: never; path: { - /** @description The community slug */ - community: string; - /** @description The edition slug */ edition: string; + ticket: string; }; cookie?: never; }; - requestBody?: never; + requestBody?: { + content: { + "application/json": components["schemas"]["UpdateTicketAttendeeRequest"]; + }; + }; responses: { - /** @description `PublicEditionResource` */ + /** @description `TicketResource` */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { - data: components["schemas"]["PublicEditionResource"]; + data: components["schemas"]["TicketResource"]; }; }; }; - 404: components["responses"]["ModelNotFoundException"]; + 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; + 422: components["responses"]["ValidationException"]; }; }; - "auth.register": { + "ticketing.tickets.transfer": { parameters: { query?: never; header?: never; - path?: never; + path: { + edition: string; + ticket: string; + }; cookie?: never; }; requestBody: { content: { - "application/json": components["schemas"]["RegisterRequest"]; + "application/json": components["schemas"]["TransferTicketRequest"]; }; }; responses: { - /** @description `UserResource` */ - 201: { + /** @description `TicketResource` */ + 200: { headers: { [name: string]: unknown; }; content: { "application/json": { - data: components["schemas"]["UserResource"]; + data: components["schemas"]["TicketResource"]; }; }; }; + 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; 422: components["responses"]["ValidationException"]; }; }; - "auth.login": { + "ticketing.tickets.resend": { parameters: { query?: never; header?: never; - path?: never; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["LoginRequest"]; + path: { + edition: string; + ticket: string; }; + cookie?: never; }; + requestBody?: never; responses: { + /** @description `TicketResource` */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { - user: unknown[]; - token: string; + data: components["schemas"]["TicketResource"]; }; }; }; - 422: components["responses"]["ValidationException"]; - }; - }; - "auth.logout": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: { + 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; + /** @description An error */ + 422: { headers: { [name: string]: unknown; }; content: { "application/json": { - loggedOut: boolean; + /** + * @description Error overview. + * @example Ingresso cancelado. + */ + message: string; }; }; }; - 401: components["responses"]["AuthenticationException"]; }; }; - "auth.logout-all": { + "ticketing.reconciliation.index": { parameters: { query?: never; header?: never; - path?: never; + path: { + edition: string; + }; cookie?: never; }; requestBody?: never; responses: { + /** @description Paginated set of `ReconciliationIssueResource` */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { - loggedOut: boolean; + data: components["schemas"]["ReconciliationIssueResource"][]; + links: { + first: string | null; + last: string | null; + prev: string | null; + next: string | null; + }; + meta: { + current_page: number; + from: number | null; + last_page: number; + /** @description Generated paginator links. */ + links: { + url: string | null; + label: string; + active: boolean; + }[]; + /** @description Base path for paginator generated URLs. */ + path: string | null; + /** @description Number of items shown per page. */ + per_page: number; + /** @description Number of the last item in the slice. */ + to: number | null; + /** @description Total number of items being paginated. */ + total: number; + }; }; }; }; 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; }; }; - "verification.verify": { + "ticketing.reconciliation.run": { parameters: { query?: never; header?: never; path: { - id: string; - hash: string; + edition: string; }; cookie?: never; }; @@ -5066,192 +13412,249 @@ export interface operations { }; content: { "application/json": { - verified: boolean; + data: { + refreshed: number; + orders: number; + open: number; + new: number; + resolved: number; + fees: number; + }; }; }; }; + 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; }; }; - "verification.send": { + "ticketing.imports.index": { parameters: { query?: never; header?: never; - path?: never; + path: { + edition: string; + }; cookie?: never; }; requestBody?: never; responses: { + /** @description Paginated set of `TicketImportResource` */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { - sent: boolean; + data: components["schemas"]["TicketImportResource"][]; + links: { + first: string | null; + last: string | null; + prev: string | null; + next: string | null; + }; + meta: { + current_page: number; + from: number | null; + last_page: number; + /** @description Generated paginator links. */ + links: { + url: string | null; + label: string; + active: boolean; + }[]; + /** @description Base path for paginator generated URLs. */ + path: string | null; + /** @description Number of items shown per page. */ + per_page: number; + /** @description Number of the last item in the slice. */ + to: number | null; + /** @description Total number of items being paginated. */ + total: number; + }; }; }; }; 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; }; }; - "auth.password.forgot": { + "ticketing.imports.store": { parameters: { query?: never; header?: never; - path?: never; + path: { + /** @description The edition ID */ + edition: string; + }; cookie?: never; }; requestBody: { content: { - "application/json": components["schemas"]["ForgotPasswordRequest"]; + "multipart/form-data": components["schemas"]["UploadTicketImportRequest"]; }; }; responses: { - 200: { + /** @description `TicketImportResource` */ + 201: { headers: { [name: string]: unknown; }; content: { "application/json": { - sent: boolean; - /** @constant */ - message: "Se existir uma conta com este e-mail, enviamos um link para redefinir a senha."; + data: components["schemas"]["TicketImportResource"]; }; }; }; + 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; + 404: components["responses"]["ModelNotFoundException"]; 422: components["responses"]["ValidationException"]; }; }; - "auth.password.reset": { + "ticketing.imports.show": { parameters: { query?: never; header?: never; - path?: never; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["ResetPasswordRequest"]; + path: { + edition: string; + import: string; }; + cookie?: never; }; + requestBody?: never; responses: { + /** @description `TicketImportResource` */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { - reset: boolean; + data: components["schemas"]["TicketImportResource"]; }; }; }; - 422: components["responses"]["ValidationException"]; + 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; }; }; - "auth.password.update": { + "ticketing.imports.destroy": { parameters: { query?: never; header?: never; - path?: never; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["ChangePasswordRequest"]; + path: { + edition: string; + import: string; }; + cookie?: never; }; + requestBody?: never; responses: { - 200: { + /** @description No content */ + 204: { headers: { [name: string]: unknown; }; - content: { - "application/json": { - updated: boolean; - }; - }; + content?: never; }; 401: components["responses"]["AuthenticationException"]; - 422: components["responses"]["ValidationException"]; + 403: components["responses"]["AuthorizationException"]; }; }; - "auth.github.redirect": { + "ticketing.imports.map": { parameters: { query?: never; header?: never; - path?: never; + path: { + edition: string; + import: string; + }; cookie?: never; }; - requestBody?: never; + requestBody: { + content: { + "application/json": components["schemas"]["MapTicketImportRequest"]; + }; + }; responses: { + /** @description `TicketImportResource` */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { - url: string; + data: components["schemas"]["TicketImportResource"]; }; }; }; + 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; + 422: components["responses"]["ValidationException"]; }; }; - "auth.github.link": { + "ticketing.imports.start": { parameters: { query?: never; header?: never; - path?: never; + path: { + edition: string; + import: string; + }; cookie?: never; }; requestBody?: never; responses: { - 200: { + /** @description `TicketImportResource` */ + 202: { headers: { [name: string]: unknown; }; content: { "application/json": { - url: string; + data: components["schemas"]["TicketImportResource"]; }; }; }; 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; }; }; - "auth.github.callback": { + "ticketing.imports.resume": { parameters: { query?: never; header?: never; - path?: never; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["GithubCallbackRequest"]; + path: { + edition: string; + import: string; }; + cookie?: never; }; + requestBody?: never; responses: { - 200: { + /** @description `TicketImportResource` */ + 202: { headers: { [name: string]: unknown; }; content: { "application/json": { - user: unknown[]; - token: string; - } | { - user: unknown[]; + data: components["schemas"]["TicketImportResource"]; }; }; }; - 422: components["responses"]["ValidationException"]; + 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; }; }; - "auth.github.unlink": { + "ticketing.imports.rejections": { parameters: { query?: never; header?: never; - path?: never; + path: { + edition: string; + import: string; + }; cookie?: never; }; requestBody?: never; @@ -5262,207 +13665,249 @@ export interface operations { }; content: { "application/json": { - user: unknown[]; + data: { + line: number; + /** @enum {string} */ + kind: "import" | "duplicate" | "rejected"; + reason: string; + values: string[]; + }[]; + headers: string[]; + meta: { + current_page: number; + last_page: number; + per_page: number; + total: number; + }; }; }; }; 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; }; }; - me: { + "ticketing.imports.rejections.csv": { parameters: { query?: never; header?: never; - path?: never; + path: { + edition: string; + import: string; + }; cookie?: never; }; requestBody?: never; responses: { 200: { headers: { + "Transfer-Encoding": "chunked"; [name: string]: unknown; }; content: { - "application/json": { - user: unknown[]; - roles: { - edition_id: string; - role: string; - }[]; - }; + "text/csv; charset=UTF-8": string; }; }; 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; }; }; - "me.update": { + "ticketing.imports.email": { parameters: { query?: never; header?: never; - path?: never; + path: { + edition: string; + import: string; + }; cookie?: never; }; - requestBody?: { + requestBody: { content: { - "application/json": components["schemas"]["UpdateAccountRequest"]; + "application/json": components["schemas"]["EmailImportedTicketsRequest"]; }; }; responses: { - /** @description `UserResource` */ - 200: { + 202: { headers: { [name: string]: unknown; }; content: { "application/json": { - data: components["schemas"]["UserResource"]; + data: { + queued: number; + }; }; }; }; 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; 422: components["responses"]["ValidationException"]; }; }; - "me.photo.store": { + "ticketing.reconciliation.resolve": { parameters: { query?: never; header?: never; - path?: never; + path: { + edition: string; + issue: string; + }; cookie?: never; }; requestBody: { content: { - "multipart/form-data": components["schemas"]["UploadPhotoRequest"]; + "application/json": { + resolution: string; + }; }; }; responses: { - /** @description `UserResource` */ + /** @description `ReconciliationIssueResource` */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { - data: components["schemas"]["UserResource"]; + data: components["schemas"]["ReconciliationIssueResource"]; }; }; }; 401: components["responses"]["AuthenticationException"]; + 403: components["responses"]["AuthorizationException"]; + 404: components["responses"]["ModelNotFoundException"]; 422: components["responses"]["ValidationException"]; }; }; - "me.photo.destroy": { + "ticketing.checkout.orders.store": { parameters: { query?: never; header?: never; - path?: never; + path: { + edition: string; + }; cookie?: never; }; - requestBody?: never; + requestBody: { + content: { + "application/json": components["schemas"]["PlaceOrderRequest"]; + }; + }; responses: { - /** @description `UserResource` */ 200: { headers: { [name: string]: unknown; }; content: { - "application/json": { - data: components["schemas"]["UserResource"]; - }; + "application/json": string; }; }; - 401: components["responses"]["AuthenticationException"]; - }; - }; - "me.speaker-profile.show": { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - /** @description `SpeakerProfileResource` */ - 200: { + 400: { headers: { [name: string]: unknown; }; content: { "application/json": { - data: components["schemas"]["SpeakerProfileResource"]; + /** @constant */ + code: "idempotency_key_required"; + /** @constant */ + message: "O header Idempotency-Key é obrigatório para esta operação."; + errors: null; + request_id: string; }; }; }; - 401: components["responses"]["AuthenticationException"]; + 422: components["responses"]["ValidationException"]; }; }; - "me.speaker-profile.update": { + "ticketing.checkout.orders.show": { parameters: { query?: never; header?: never; - path?: never; - cookie?: never; - }; - requestBody: { - content: { - "application/json": components["schemas"]["SaveSpeakerProfileRequest"]; + path: { + edition: string; + order: string; }; + cookie?: never; }; + requestBody?: never; responses: { - /** @description `SpeakerProfileResource` */ + /** @description `OrderResource` */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { - data: components["schemas"]["SpeakerProfileResource"]; + data: components["schemas"]["OrderResource"]; }; }; }; - 401: components["responses"]["AuthenticationException"]; - 422: components["responses"]["ValidationException"]; }; }; - "identity.people.speaker-profile": { + "ticketing.checkout.orders.payment.show": { parameters: { query?: never; header?: never; path: { edition: string; - user: string; + order: string; }; cookie?: never; }; requestBody?: never; responses: { - /** @description `SpeakerProfileResource` */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { - data: components["schemas"]["SpeakerProfileResource"]; + data: { + id: string; + /** @enum {string} */ + method: "pix" | "card" | "boleto"; + /** @enum {string} */ + status: "pending" | "paid" | "failed" | "expired" | "cancelled" | "refunded" | "disputed"; + /** @enum {string} */ + status_label: "Aguardando pagamento" | "Pago" | "Recusado" | "Vencido" | "Cancelado" | "Reembolsado" | "Em contestação"; + amount: { + amount: number; + /** @constant */ + currency: "BRL"; + }; + installments: number; + pix: { + copy_paste: string | null; + qr_code_base64: string | null; + } | null; + checkout_url: string | null; + expires_at: string | null; + paid_at: string | null; + failure_reason: string | null; + /** @enum {string} */ + order_status: "created" | "awaiting_payment" | "paid" | "expired" | "cancelled" | "refunded"; + } | null; }; }; }; - 401: components["responses"]["AuthenticationException"]; - 403: components["responses"]["AuthorizationException"]; - 404: components["responses"]["ModelNotFoundException"]; }; }; - "notifications.templates.index": { + "ticketing.checkout.orders.payment.start": { parameters: { query?: never; header?: never; path: { edition: string; + order: string; }; cookie?: never; }; - requestBody?: never; + requestBody: { + content: { + "application/json": components["schemas"]["StartOrderPaymentRequest"]; + }; + }; responses: { 200: { headers: { @@ -5470,117 +13915,121 @@ export interface operations { }; content: { "application/json": { - data: unknown[]; + data: { + id: string; + /** @enum {string} */ + method: "pix" | "card" | "boleto"; + /** @enum {string} */ + status: "pending" | "paid" | "failed" | "expired" | "cancelled" | "refunded" | "disputed"; + /** @enum {string} */ + status_label: "Aguardando pagamento" | "Pago" | "Recusado" | "Vencido" | "Cancelado" | "Reembolsado" | "Em contestação"; + amount: { + amount: number; + /** @constant */ + currency: "BRL"; + }; + installments: number; + pix: { + copy_paste: string | null; + qr_code_base64: string | null; + } | null; + checkout_url: string | null; + expires_at: string | null; + paid_at: string | null; + failure_reason: string | null; + /** @enum {string} */ + order_status: "created" | "awaiting_payment" | "paid" | "expired" | "cancelled" | "refunded"; + }; }; }; }; - 401: components["responses"]["AuthenticationException"]; - 403: components["responses"]["AuthorizationException"]; + 422: components["responses"]["ValidationException"]; }; }; - "notifications.templates.show": { + "ticketing.checkout.orders.cancel": { parameters: { query?: never; header?: never; path: { edition: string; - template: string; + order: string; }; cookie?: never; }; requestBody?: never; responses: { - /** @description `EmailTemplateResource` */ + /** @description `OrderResource` */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { - data: components["schemas"]["EmailTemplateResource"]; + data: components["schemas"]["OrderResource"]; }; }; }; - 401: components["responses"]["AuthenticationException"]; - 403: components["responses"]["AuthorizationException"]; - 422: components["responses"]["ValidationException"]; }; }; - "notifications.templates.update": { + "ticketing.public.coupons.check": { parameters: { query?: never; header?: never; path: { edition: string; - template: string; }; cookie?: never; }; requestBody: { content: { - "application/json": components["schemas"]["SaveEmailTemplateRequest"]; + "application/json": components["schemas"]["CheckCouponRequest"]; }; }; responses: { - /** @description `EmailTemplateResource` */ 200: { headers: { [name: string]: unknown; }; content: { - "application/json": { - data: components["schemas"]["EmailTemplateResource"]; - }; + "application/json": Record; }; }; - 401: components["responses"]["AuthenticationException"]; - 403: components["responses"]["AuthorizationException"]; + 404: components["responses"]["ModelNotFoundException"]; 422: components["responses"]["ValidationException"]; }; }; - "notifications.templates.destroy": { + "ticketing.public.tickets": { parameters: { query?: never; header?: never; path: { edition: string; - template: string; }; cookie?: never; }; requestBody?: never; responses: { - /** @description `EmailTemplateResource` */ 200: { headers: { [name: string]: unknown; }; content: { - "application/json": { - data: components["schemas"]["EmailTemplateResource"]; - }; + "application/json": Record; }; }; - 401: components["responses"]["AuthenticationException"]; - 403: components["responses"]["AuthorizationException"]; - 422: components["responses"]["ValidationException"]; + 404: components["responses"]["ModelNotFoundException"]; }; }; - "notifications.templates.preview": { + "ticketing.attendee.tickets.index": { parameters: { query?: never; header?: never; path: { edition: string; - template: string; }; cookie?: never; }; - requestBody?: { - content: { - "application/json": components["schemas"]["PreviewEmailTemplateRequest"]; - }; - }; + requestBody?: never; responses: { 200: { headers: { @@ -5588,177 +14037,140 @@ export interface operations { }; content: { "application/json": { - data: { - subject: string; - html: string; - text: string; + data: unknown[][]; + meta: { + email_verified: boolean; }; }; }; }; 401: components["responses"]["AuthenticationException"]; - 403: components["responses"]["AuthorizationException"]; - 422: components["responses"]["ValidationException"]; }; }; - "notifications.templates.test": { + "ticketing.attendee.tickets.show": { parameters: { query?: never; header?: never; path: { edition: string; - template: string; + ticket: string; }; cookie?: never; }; - requestBody?: { - content: { - "application/json": components["schemas"]["PreviewEmailTemplateRequest"]; - }; - }; + requestBody?: never; responses: { - /** @description `EmailDeliveryResource` */ - 202: { + /** @description `TicketResource` */ + 200: { headers: { [name: string]: unknown; }; content: { "application/json": { - data: components["schemas"]["EmailDeliveryResource"]; + data: components["schemas"]["TicketResource"]; }; }; }; 401: components["responses"]["AuthenticationException"]; - 403: components["responses"]["AuthorizationException"]; - 422: components["responses"]["ValidationException"]; }; }; - "notifications.deliveries.index": { + "ticketing.attendee.tickets.update": { parameters: { - query?: { - status?: components["schemas"]["DeliveryStatus"]; - template?: components["schemas"]["EmailTemplate"]; - }; + query?: never; header?: never; path: { edition: string; + ticket: string; }; cookie?: never; }; - requestBody?: never; + requestBody?: { + content: { + "application/json": components["schemas"]["UpdateTicketAttendeeRequest"]; + }; + }; responses: { - /** @description Paginated set of `EmailDeliveryResource` */ + /** @description `TicketResource` */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { - data: components["schemas"]["EmailDeliveryResource"][]; - links: { - first: string | null; - last: string | null; - prev: string | null; - next: string | null; - }; - meta: { - current_page: number; - from: number | null; - last_page: number; - /** @description Generated paginator links. */ - links: { - url: string | null; - label: string; - active: boolean; - }[]; - /** @description Base path for paginator generated URLs. */ - path: string | null; - /** @description Number of items shown per page. */ - per_page: number; - /** @description Number of the last item in the slice. */ - to: number | null; - /** @description Total number of items being paginated. */ - total: number; - }; + data: components["schemas"]["TicketResource"]; }; }; }; 401: components["responses"]["AuthenticationException"]; - 403: components["responses"]["AuthorizationException"]; 422: components["responses"]["ValidationException"]; }; }; - "notifications.deliveries.resend": { + "ticketing.attendee.tickets.transfer": { parameters: { query?: never; header?: never; path: { edition: string; - delivery: string; + ticket: string; }; cookie?: never; }; - requestBody?: never; + requestBody: { + content: { + "application/json": components["schemas"]["TransferTicketRequest"]; + }; + }; responses: { - /** @description `EmailDeliveryResource` */ + /** @description `TicketResource` */ 200: { headers: { [name: string]: unknown; }; content: { "application/json": { - data: components["schemas"]["EmailDeliveryResource"]; + data: components["schemas"]["TicketResource"]; }; }; }; 401: components["responses"]["AuthenticationException"]; - 403: components["responses"]["AuthorizationException"]; - 404: components["responses"]["ModelNotFoundException"]; + 422: components["responses"]["ValidationException"]; }; }; - "notifications.unsubscribe": { + "ticketing.attendee.tickets.resend": { parameters: { - query?: { - email?: string; - }; + query?: never; header?: never; path: { edition: string; + ticket: string; }; cookie?: never; }; requestBody?: never; responses: { + /** @description `TicketResource` */ 200: { headers: { [name: string]: unknown; }; content: { - "application/json": Record | { - unsubscribed: boolean; + "application/json": { + data: components["schemas"]["TicketResource"]; }; }; }; - 404: components["responses"]["ModelNotFoundException"]; - }; - }; - ping: { - parameters: { - query?: never; - header?: never; - path?: never; - cookie?: never; - }; - requestBody?: never; - responses: { - 200: { + 401: components["responses"]["AuthenticationException"]; + /** @description An error */ + 422: { headers: { [name: string]: unknown; }; content: { "application/json": { - status: string; - request_id: string | null; + /** + * @description Error overview. + * @example Ingresso cancelado. + */ + message: string; }; }; }; diff --git a/front-admin/app/modules/orders/components/OrdersComponents.test.ts b/front-admin/app/modules/orders/components/OrdersComponents.test.ts index 01c505d..4f229b7 100644 --- a/front-admin/app/modules/orders/components/OrdersComponents.test.ts +++ b/front-admin/app/modules/orders/components/OrdersComponents.test.ts @@ -12,6 +12,7 @@ const order: Order = { { id: 'i-2', ticketTypeName: 'Inteira', batchName: '1º lote', totalCents: 15000, attendeeName: 'Bia Lima', attendeeEmail: 'bia@exemplo.com', cancelled: false, externalCode: null }, ], activeTickets: 2, + itemsSummary: '2× Inteira', } const flat = (text: string) => text.replace(/\s/g, ' ') diff --git a/front-admin/app/modules/orders/components/OrdersPanel.vue b/front-admin/app/modules/orders/components/OrdersPanel.vue index 1ad63cc..779225d 100644 --- a/front-admin/app/modules/orders/components/OrdersPanel.vue +++ b/front-admin/app/modules/orders/components/OrdersPanel.vue @@ -10,7 +10,7 @@ import locale from '../locales/pt-br' const props = defineProps<{ editionId: string, readOnly: boolean, canManage: boolean, canRefund: boolean }>() const orders = useOrders(props.editionId) -const { orders: list, page, pageCount, total, state, filtered, detail, detailState } = orders +const { orders: list, summary, page, pageCount, total, state, filtered, detail, detailState } = orders const toast = useToast() const statusInput = ref('') @@ -18,7 +18,14 @@ const queryInput = ref('') const drawerOpen = ref(false) const exporting = ref(false) -const statusOptions = [{ value: '', label: locale.allStatuses }, ...Object.entries(locale.statuses).map(([value, label]) => ({ value, label }))] +const chips = Object.entries(locale.chips).map(([value, label]) => ({ value, label })) +const percent = new Intl.NumberFormat('pt-BR', { style: 'percent', minimumFractionDigits: 1, maximumFractionDigits: 1 }) +const feeShare = computed(() => (summary.value && summary.value.grossCents > 0 ? locale.kpiFeeShare.replace('{p}', percent.format(summary.value.gatewayFeeCents / summary.value.grossCents)) : undefined)) + +function pickStatus(value: string) { + statusInput.value = value + applyFilters() +} const currentPage = computed({ get: () => page.value, set: (value: number) => orders.goTo(value) }) function applyFilters() { @@ -68,49 +75,55 @@ onMounted(() => orders.load())

    {{ locale.readOnly }}

    -