{"asyncapi":"3.0.0","info":{"title":"CicloLog — Webhooks Multitenant","version":"1.0.0","description":"Eventos POST assinados com HMAC SHA-256. Uma configuração pode assinar múltiplos eventos de categorias diferentes. O destino valida o corpo bruto antes de desserializar."},"servers":{"ciclo":{"host":"masterlog.tech","protocol":"https","description":"A empresa autenticada inicia entregas para a URL HTTPS cadastrada."}},"channels":{"integration_token_created":{"address":"<url-cadastrada>","messages":{"integration_token_created":{"$ref":"#/components/messages/integration_token_created"}},"description":"Ciclo de vida do token usado pelos sistemas integrados."},"integration_token_rotated":{"address":"<url-cadastrada>","messages":{"integration_token_rotated":{"$ref":"#/components/messages/integration_token_rotated"}},"description":"Ciclo de vida do token usado pelos sistemas integrados."},"integration_token_revoked":{"address":"<url-cadastrada>","messages":{"integration_token_revoked":{"$ref":"#/components/messages/integration_token_revoked"}},"description":"Ciclo de vida do token usado pelos sistemas integrados."},"visit_created":{"address":"<url-cadastrada>","messages":{"visit_created":{"$ref":"#/components/messages/visit_created"}},"description":"Cadastro, alterações e execução operacional de visitas."},"visit_updated":{"address":"<url-cadastrada>","messages":{"visit_updated":{"$ref":"#/components/messages/visit_updated"}},"description":"Cadastro, alterações e execução operacional de visitas."},"visit_deleted":{"address":"<url-cadastrada>","messages":{"visit_deleted":{"$ref":"#/components/messages/visit_deleted"}},"description":"Cadastro, alterações e execução operacional de visitas."},"visit_canceled":{"address":"<url-cadastrada>","messages":{"visit_canceled":{"$ref":"#/components/messages/visit_canceled"}},"description":"Cadastro, alterações e execução operacional de visitas."},"visit_on_its_way":{"address":"<url-cadastrada>","messages":{"visit_on_its_way":{"$ref":"#/components/messages/visit_on_its_way"}},"description":"Cadastro, alterações e execução operacional de visitas."},"visit_checkout":{"address":"<url-cadastrada>","messages":{"visit_checkout":{"$ref":"#/components/messages/visit_checkout"}},"description":"Cadastro, alterações e execução operacional de visitas."},"visit_checkout_detailed":{"address":"<url-cadastrada>","messages":{"visit_checkout_detailed":{"$ref":"#/components/messages/visit_checkout_detailed"}},"description":"Cadastro, alterações e execução operacional de visitas."},"visit_failed":{"address":"<url-cadastrada>","messages":{"visit_failed":{"$ref":"#/components/messages/visit_failed"}},"description":"Cadastro, alterações e execução operacional de visitas."},"plan_created":{"address":"<url-cadastrada>","messages":{"plan_created":{"$ref":"#/components/messages/plan_created"}},"description":"Criação, edição e arquivamento dos planos diários."},"plan_edited":{"address":"<url-cadastrada>","messages":{"plan_edited":{"$ref":"#/components/messages/plan_edited"}},"description":"Criação, edição e arquivamento dos planos diários."},"plan_deleted":{"address":"<url-cadastrada>","messages":{"plan_deleted":{"$ref":"#/components/messages/plan_deleted"}},"description":"Criação, edição e arquivamento dos planos diários."},"route_created":{"address":"<url-cadastrada>","messages":{"route_created":{"$ref":"#/components/messages/route_created"}},"description":"Ciclo de vida e execução dos roteiros."},"route_edited":{"address":"<url-cadastrada>","messages":{"route_edited":{"$ref":"#/components/messages/route_edited"}},"description":"Ciclo de vida e execução dos roteiros."},"route_deleted":{"address":"<url-cadastrada>","messages":{"route_deleted":{"$ref":"#/components/messages/route_deleted"}},"description":"Ciclo de vida e execução dos roteiros."},"route_started":{"address":"<url-cadastrada>","messages":{"route_started":{"$ref":"#/components/messages/route_started"}},"description":"Ciclo de vida e execução dos roteiros."},"route_finished":{"address":"<url-cadastrada>","messages":{"route_finished":{"$ref":"#/components/messages/route_finished"}},"description":"Ciclo de vida e execução dos roteiros."},"vehicle_created":{"address":"<url-cadastrada>","messages":{"vehicle_created":{"$ref":"#/components/messages/vehicle_created"}},"description":"Alterações no cadastro e disponibilidade da frota."},"vehicle_updated":{"address":"<url-cadastrada>","messages":{"vehicle_updated":{"$ref":"#/components/messages/vehicle_updated"}},"description":"Alterações no cadastro e disponibilidade da frota."},"vehicle_deleted":{"address":"<url-cadastrada>","messages":{"vehicle_deleted":{"$ref":"#/components/messages/vehicle_deleted"}},"description":"Alterações no cadastro e disponibilidade da frota."},"customer_created":{"address":"<url-cadastrada>","messages":{"customer_created":{"$ref":"#/components/messages/customer_created"}},"description":"Ciclo de vida dos cadastros de clientes."},"customer_updated":{"address":"<url-cadastrada>","messages":{"customer_updated":{"$ref":"#/components/messages/customer_updated"}},"description":"Ciclo de vida dos cadastros de clientes."},"customer_deleted":{"address":"<url-cadastrada>","messages":{"customer_deleted":{"$ref":"#/components/messages/customer_deleted"}},"description":"Ciclo de vida dos cadastros de clientes."},"customer_onboarding_moved":{"address":"<url-cadastrada>","messages":{"customer_onboarding_moved":{"$ref":"#/components/messages/customer_onboarding_moved"}},"description":"Ciclo de vida dos cadastros de clientes."},"subscription_plan_created":{"address":"<url-cadastrada>","messages":{"subscription_plan_created":{"$ref":"#/components/messages/subscription_plan_created"}},"description":"Planos recorrentes e vínculos de assinatura dos clientes."},"subscription_plan_updated":{"address":"<url-cadastrada>","messages":{"subscription_plan_updated":{"$ref":"#/components/messages/subscription_plan_updated"}},"description":"Planos recorrentes e vínculos de assinatura dos clientes."},"subscription_plan_archived":{"address":"<url-cadastrada>","messages":{"subscription_plan_archived":{"$ref":"#/components/messages/subscription_plan_archived"}},"description":"Planos recorrentes e vínculos de assinatura dos clientes."},"customer_subscription_created":{"address":"<url-cadastrada>","messages":{"customer_subscription_created":{"$ref":"#/components/messages/customer_subscription_created"}},"description":"Planos recorrentes e vínculos de assinatura dos clientes."},"customer_subscription_updated":{"address":"<url-cadastrada>","messages":{"customer_subscription_updated":{"$ref":"#/components/messages/customer_subscription_updated"}},"description":"Planos recorrentes e vínculos de assinatura dos clientes."},"product_created":{"address":"<url-cadastrada>","messages":{"product_created":{"$ref":"#/components/messages/product_created"}},"description":"Ciclo de vida do catálogo de produtos usado em visitas e checklists."},"product_updated":{"address":"<url-cadastrada>","messages":{"product_updated":{"$ref":"#/components/messages/product_updated"}},"description":"Ciclo de vida do catálogo de produtos usado em visitas e checklists."},"product_deleted":{"address":"<url-cadastrada>","messages":{"product_deleted":{"$ref":"#/components/messages/product_deleted"}},"description":"Ciclo de vida do catálogo de produtos usado em visitas e checklists."},"form_submission_created":{"address":"<url-cadastrada>","messages":{"form_submission_created":{"$ref":"#/components/messages/form_submission_created"}},"description":"Registros concluídos nos formulários operacionais publicados."},"form_submission_updated":{"address":"<url-cadastrada>","messages":{"form_submission_updated":{"$ref":"#/components/messages/form_submission_updated"}},"description":"Registros concluídos nos formulários operacionais publicados."},"form_submission_deleted":{"address":"<url-cadastrada>","messages":{"form_submission_deleted":{"$ref":"#/components/messages/form_submission_deleted"}},"description":"Registros concluídos nos formulários operacionais publicados."},"vehicle_checklist_submitted":{"address":"<url-cadastrada>","messages":{"vehicle_checklist_submitted":{"$ref":"#/components/messages/vehicle_checklist_submitted"}},"description":"Preenchimento, correção e exclusão dos checklists de materiais, saída e chegada."},"vehicle_checklist_updated":{"address":"<url-cadastrada>","messages":{"vehicle_checklist_updated":{"$ref":"#/components/messages/vehicle_checklist_updated"}},"description":"Preenchimento, correção e exclusão dos checklists de materiais, saída e chegada."},"vehicle_checklist_deleted":{"address":"<url-cadastrada>","messages":{"vehicle_checklist_deleted":{"$ref":"#/components/messages/vehicle_checklist_deleted"}},"description":"Preenchimento, correção e exclusão dos checklists de materiais, saída e chegada."},"user_created":{"address":"<url-cadastrada>","messages":{"user_created":{"$ref":"#/components/messages/user_created"}},"description":"Mudanças na equipe operacional e em seus acessos."},"user_updated":{"address":"<url-cadastrada>","messages":{"user_updated":{"$ref":"#/components/messages/user_updated"}},"description":"Mudanças na equipe operacional e em seus acessos."},"user_deleted":{"address":"<url-cadastrada>","messages":{"user_deleted":{"$ref":"#/components/messages/user_deleted"}},"description":"Mudanças na equipe operacional e em seus acessos."},"chat_message_created":{"address":"<url-cadastrada>","messages":{"chat_message_created":{"$ref":"#/components/messages/chat_message_created"}},"description":"Mensagens, leitura, comunicados, alertas, SOS, anexos, reações e localização compartilhada."},"chat_attachment_created":{"address":"<url-cadastrada>","messages":{"chat_attachment_created":{"$ref":"#/components/messages/chat_attachment_created"}},"description":"Mensagens, leitura, comunicados, alertas, SOS, anexos, reações e localização compartilhada."},"chat_reaction_updated":{"address":"<url-cadastrada>","messages":{"chat_reaction_updated":{"$ref":"#/components/messages/chat_reaction_updated"}},"description":"Mensagens, leitura, comunicados, alertas, SOS, anexos, reações e localização compartilhada."},"chat_location_updated":{"address":"<url-cadastrada>","messages":{"chat_location_updated":{"$ref":"#/components/messages/chat_location_updated"}},"description":"Mensagens, leitura, comunicados, alertas, SOS, anexos, reações e localização compartilhada."},"chat_conversation_read":{"address":"<url-cadastrada>","messages":{"chat_conversation_read":{"$ref":"#/components/messages/chat_conversation_read"}},"description":"Mensagens, leitura, comunicados, alertas, SOS, anexos, reações e localização compartilhada."},"chat_broadcast_created":{"address":"<url-cadastrada>","messages":{"chat_broadcast_created":{"$ref":"#/components/messages/chat_broadcast_created"}},"description":"Mensagens, leitura, comunicados, alertas, SOS, anexos, reações e localização compartilhada."},"chat_alert_created":{"address":"<url-cadastrada>","messages":{"chat_alert_created":{"$ref":"#/components/messages/chat_alert_created"}},"description":"Mensagens, leitura, comunicados, alertas, SOS, anexos, reações e localização compartilhada."},"chat_alert_acknowledged":{"address":"<url-cadastrada>","messages":{"chat_alert_acknowledged":{"$ref":"#/components/messages/chat_alert_acknowledged"}},"description":"Mensagens, leitura, comunicados, alertas, SOS, anexos, reações e localização compartilhada."},"chat_sos_created":{"address":"<url-cadastrada>","messages":{"chat_sos_created":{"$ref":"#/components/messages/chat_sos_created"}},"description":"Mensagens, leitura, comunicados, alertas, SOS, anexos, reações e localização compartilhada."},"command_case_opened":{"address":"<url-cadastrada>","messages":{"command_case_opened":{"$ref":"#/components/messages/command_case_opened"}},"description":"Configuração, abertura, movimentação e conclusão de chamados operacionais."},"command_case_transitioned":{"address":"<url-cadastrada>","messages":{"command_case_transitioned":{"$ref":"#/components/messages/command_case_transitioned"}},"description":"Configuração, abertura, movimentação e conclusão de chamados operacionais."},"command_workflow_updated":{"address":"<url-cadastrada>","messages":{"command_workflow_updated":{"$ref":"#/components/messages/command_workflow_updated"}},"description":"Configuração, abertura, movimentação e conclusão de chamados operacionais."},"command_case_resolved":{"address":"<url-cadastrada>","messages":{"command_case_resolved":{"$ref":"#/components/messages/command_case_resolved"}},"description":"Configuração, abertura, movimentação e conclusão de chamados operacionais."},"webhook_created":{"address":"<url-cadastrada>","messages":{"webhook_created":{"$ref":"#/components/messages/webhook_created"}},"description":"Mudanças nas próprias configurações de entrega."},"webhook_updated":{"address":"<url-cadastrada>","messages":{"webhook_updated":{"$ref":"#/components/messages/webhook_updated"}},"description":"Mudanças nas próprias configurações de entrega."},"webhook_deleted":{"address":"<url-cadastrada>","messages":{"webhook_deleted":{"$ref":"#/components/messages/webhook_deleted"}},"description":"Mudanças nas próprias configurações de entrega."}},"operations":{"send_integration_token_created":{"action":"send","channel":{"$ref":"#/channels/integration_token_created"},"messages":[{"$ref":"#/channels/integration_token_created/messages/integration_token_created"}]},"send_integration_token_rotated":{"action":"send","channel":{"$ref":"#/channels/integration_token_rotated"},"messages":[{"$ref":"#/channels/integration_token_rotated/messages/integration_token_rotated"}]},"send_integration_token_revoked":{"action":"send","channel":{"$ref":"#/channels/integration_token_revoked"},"messages":[{"$ref":"#/channels/integration_token_revoked/messages/integration_token_revoked"}]},"send_visit_created":{"action":"send","channel":{"$ref":"#/channels/visit_created"},"messages":[{"$ref":"#/channels/visit_created/messages/visit_created"}]},"send_visit_updated":{"action":"send","channel":{"$ref":"#/channels/visit_updated"},"messages":[{"$ref":"#/channels/visit_updated/messages/visit_updated"}]},"send_visit_deleted":{"action":"send","channel":{"$ref":"#/channels/visit_deleted"},"messages":[{"$ref":"#/channels/visit_deleted/messages/visit_deleted"}]},"send_visit_canceled":{"action":"send","channel":{"$ref":"#/channels/visit_canceled"},"messages":[{"$ref":"#/channels/visit_canceled/messages/visit_canceled"}]},"send_visit_on_its_way":{"action":"send","channel":{"$ref":"#/channels/visit_on_its_way"},"messages":[{"$ref":"#/channels/visit_on_its_way/messages/visit_on_its_way"}]},"send_visit_checkout":{"action":"send","channel":{"$ref":"#/channels/visit_checkout"},"messages":[{"$ref":"#/channels/visit_checkout/messages/visit_checkout"}]},"send_visit_checkout_detailed":{"action":"send","channel":{"$ref":"#/channels/visit_checkout_detailed"},"messages":[{"$ref":"#/channels/visit_checkout_detailed/messages/visit_checkout_detailed"}]},"send_visit_failed":{"action":"send","channel":{"$ref":"#/channels/visit_failed"},"messages":[{"$ref":"#/channels/visit_failed/messages/visit_failed"}]},"send_plan_created":{"action":"send","channel":{"$ref":"#/channels/plan_created"},"messages":[{"$ref":"#/channels/plan_created/messages/plan_created"}]},"send_plan_edited":{"action":"send","channel":{"$ref":"#/channels/plan_edited"},"messages":[{"$ref":"#/channels/plan_edited/messages/plan_edited"}]},"send_plan_deleted":{"action":"send","channel":{"$ref":"#/channels/plan_deleted"},"messages":[{"$ref":"#/channels/plan_deleted/messages/plan_deleted"}]},"send_route_created":{"action":"send","channel":{"$ref":"#/channels/route_created"},"messages":[{"$ref":"#/channels/route_created/messages/route_created"}]},"send_route_edited":{"action":"send","channel":{"$ref":"#/channels/route_edited"},"messages":[{"$ref":"#/channels/route_edited/messages/route_edited"}]},"send_route_deleted":{"action":"send","channel":{"$ref":"#/channels/route_deleted"},"messages":[{"$ref":"#/channels/route_deleted/messages/route_deleted"}]},"send_route_started":{"action":"send","channel":{"$ref":"#/channels/route_started"},"messages":[{"$ref":"#/channels/route_started/messages/route_started"}]},"send_route_finished":{"action":"send","channel":{"$ref":"#/channels/route_finished"},"messages":[{"$ref":"#/channels/route_finished/messages/route_finished"}]},"send_vehicle_created":{"action":"send","channel":{"$ref":"#/channels/vehicle_created"},"messages":[{"$ref":"#/channels/vehicle_created/messages/vehicle_created"}]},"send_vehicle_updated":{"action":"send","channel":{"$ref":"#/channels/vehicle_updated"},"messages":[{"$ref":"#/channels/vehicle_updated/messages/vehicle_updated"}]},"send_vehicle_deleted":{"action":"send","channel":{"$ref":"#/channels/vehicle_deleted"},"messages":[{"$ref":"#/channels/vehicle_deleted/messages/vehicle_deleted"}]},"send_customer_created":{"action":"send","channel":{"$ref":"#/channels/customer_created"},"messages":[{"$ref":"#/channels/customer_created/messages/customer_created"}]},"send_customer_updated":{"action":"send","channel":{"$ref":"#/channels/customer_updated"},"messages":[{"$ref":"#/channels/customer_updated/messages/customer_updated"}]},"send_customer_deleted":{"action":"send","channel":{"$ref":"#/channels/customer_deleted"},"messages":[{"$ref":"#/channels/customer_deleted/messages/customer_deleted"}]},"send_customer_onboarding_moved":{"action":"send","channel":{"$ref":"#/channels/customer_onboarding_moved"},"messages":[{"$ref":"#/channels/customer_onboarding_moved/messages/customer_onboarding_moved"}]},"send_subscription_plan_created":{"action":"send","channel":{"$ref":"#/channels/subscription_plan_created"},"messages":[{"$ref":"#/channels/subscription_plan_created/messages/subscription_plan_created"}]},"send_subscription_plan_updated":{"action":"send","channel":{"$ref":"#/channels/subscription_plan_updated"},"messages":[{"$ref":"#/channels/subscription_plan_updated/messages/subscription_plan_updated"}]},"send_subscription_plan_archived":{"action":"send","channel":{"$ref":"#/channels/subscription_plan_archived"},"messages":[{"$ref":"#/channels/subscription_plan_archived/messages/subscription_plan_archived"}]},"send_customer_subscription_created":{"action":"send","channel":{"$ref":"#/channels/customer_subscription_created"},"messages":[{"$ref":"#/channels/customer_subscription_created/messages/customer_subscription_created"}]},"send_customer_subscription_updated":{"action":"send","channel":{"$ref":"#/channels/customer_subscription_updated"},"messages":[{"$ref":"#/channels/customer_subscription_updated/messages/customer_subscription_updated"}]},"send_product_created":{"action":"send","channel":{"$ref":"#/channels/product_created"},"messages":[{"$ref":"#/channels/product_created/messages/product_created"}]},"send_product_updated":{"action":"send","channel":{"$ref":"#/channels/product_updated"},"messages":[{"$ref":"#/channels/product_updated/messages/product_updated"}]},"send_product_deleted":{"action":"send","channel":{"$ref":"#/channels/product_deleted"},"messages":[{"$ref":"#/channels/product_deleted/messages/product_deleted"}]},"send_form_submission_created":{"action":"send","channel":{"$ref":"#/channels/form_submission_created"},"messages":[{"$ref":"#/channels/form_submission_created/messages/form_submission_created"}]},"send_form_submission_updated":{"action":"send","channel":{"$ref":"#/channels/form_submission_updated"},"messages":[{"$ref":"#/channels/form_submission_updated/messages/form_submission_updated"}]},"send_form_submission_deleted":{"action":"send","channel":{"$ref":"#/channels/form_submission_deleted"},"messages":[{"$ref":"#/channels/form_submission_deleted/messages/form_submission_deleted"}]},"send_vehicle_checklist_submitted":{"action":"send","channel":{"$ref":"#/channels/vehicle_checklist_submitted"},"messages":[{"$ref":"#/channels/vehicle_checklist_submitted/messages/vehicle_checklist_submitted"}]},"send_vehicle_checklist_updated":{"action":"send","channel":{"$ref":"#/channels/vehicle_checklist_updated"},"messages":[{"$ref":"#/channels/vehicle_checklist_updated/messages/vehicle_checklist_updated"}]},"send_vehicle_checklist_deleted":{"action":"send","channel":{"$ref":"#/channels/vehicle_checklist_deleted"},"messages":[{"$ref":"#/channels/vehicle_checklist_deleted/messages/vehicle_checklist_deleted"}]},"send_user_created":{"action":"send","channel":{"$ref":"#/channels/user_created"},"messages":[{"$ref":"#/channels/user_created/messages/user_created"}]},"send_user_updated":{"action":"send","channel":{"$ref":"#/channels/user_updated"},"messages":[{"$ref":"#/channels/user_updated/messages/user_updated"}]},"send_user_deleted":{"action":"send","channel":{"$ref":"#/channels/user_deleted"},"messages":[{"$ref":"#/channels/user_deleted/messages/user_deleted"}]},"send_chat_message_created":{"action":"send","channel":{"$ref":"#/channels/chat_message_created"},"messages":[{"$ref":"#/channels/chat_message_created/messages/chat_message_created"}]},"send_chat_attachment_created":{"action":"send","channel":{"$ref":"#/channels/chat_attachment_created"},"messages":[{"$ref":"#/channels/chat_attachment_created/messages/chat_attachment_created"}]},"send_chat_reaction_updated":{"action":"send","channel":{"$ref":"#/channels/chat_reaction_updated"},"messages":[{"$ref":"#/channels/chat_reaction_updated/messages/chat_reaction_updated"}]},"send_chat_location_updated":{"action":"send","channel":{"$ref":"#/channels/chat_location_updated"},"messages":[{"$ref":"#/channels/chat_location_updated/messages/chat_location_updated"}]},"send_chat_conversation_read":{"action":"send","channel":{"$ref":"#/channels/chat_conversation_read"},"messages":[{"$ref":"#/channels/chat_conversation_read/messages/chat_conversation_read"}]},"send_chat_broadcast_created":{"action":"send","channel":{"$ref":"#/channels/chat_broadcast_created"},"messages":[{"$ref":"#/channels/chat_broadcast_created/messages/chat_broadcast_created"}]},"send_chat_alert_created":{"action":"send","channel":{"$ref":"#/channels/chat_alert_created"},"messages":[{"$ref":"#/channels/chat_alert_created/messages/chat_alert_created"}]},"send_chat_alert_acknowledged":{"action":"send","channel":{"$ref":"#/channels/chat_alert_acknowledged"},"messages":[{"$ref":"#/channels/chat_alert_acknowledged/messages/chat_alert_acknowledged"}]},"send_chat_sos_created":{"action":"send","channel":{"$ref":"#/channels/chat_sos_created"},"messages":[{"$ref":"#/channels/chat_sos_created/messages/chat_sos_created"}]},"send_command_case_opened":{"action":"send","channel":{"$ref":"#/channels/command_case_opened"},"messages":[{"$ref":"#/channels/command_case_opened/messages/command_case_opened"}]},"send_command_case_transitioned":{"action":"send","channel":{"$ref":"#/channels/command_case_transitioned"},"messages":[{"$ref":"#/channels/command_case_transitioned/messages/command_case_transitioned"}]},"send_command_workflow_updated":{"action":"send","channel":{"$ref":"#/channels/command_workflow_updated"},"messages":[{"$ref":"#/channels/command_workflow_updated/messages/command_workflow_updated"}]},"send_command_case_resolved":{"action":"send","channel":{"$ref":"#/channels/command_case_resolved"},"messages":[{"$ref":"#/channels/command_case_resolved/messages/command_case_resolved"}]},"send_webhook_created":{"action":"send","channel":{"$ref":"#/channels/webhook_created"},"messages":[{"$ref":"#/channels/webhook_created/messages/webhook_created"}]},"send_webhook_updated":{"action":"send","channel":{"$ref":"#/channels/webhook_updated"},"messages":[{"$ref":"#/channels/webhook_updated/messages/webhook_updated"}]},"send_webhook_deleted":{"action":"send","channel":{"$ref":"#/channels/webhook_deleted"},"messages":[{"$ref":"#/channels/webhook_deleted/messages/webhook_deleted"}]}},"components":{"messages":{"integration_token_created":{"name":"integration_token_created","title":"Token criado","headers":{"type":"object","required":["x-ciclo-delivery-id","x-ciclo-event","x-ciclo-timestamp"],"properties":{"x-ciclo-delivery-id":{"type":"string","format":"uuid"},"x-ciclo-event":{"type":"string","const":"integration_token_created"},"x-ciclo-timestamp":{"type":"string","format":"date-time"},"x-ciclo-signature":{"type":"string","description":"sha256=HMAC_SHA256(signing_secret, timestamp + '.' + corpo_bruto)"}}},"payload":{"type":"object","required":["event","created_at","data"],"properties":{"event":{"type":"string","const":"integration_token_created"},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","additionalProperties":true}}}},"integration_token_rotated":{"name":"integration_token_rotated","title":"Token rotacionado","headers":{"type":"object","required":["x-ciclo-delivery-id","x-ciclo-event","x-ciclo-timestamp"],"properties":{"x-ciclo-delivery-id":{"type":"string","format":"uuid"},"x-ciclo-event":{"type":"string","const":"integration_token_rotated"},"x-ciclo-timestamp":{"type":"string","format":"date-time"},"x-ciclo-signature":{"type":"string","description":"sha256=HMAC_SHA256(signing_secret, timestamp + '.' + corpo_bruto)"}}},"payload":{"type":"object","required":["event","created_at","data"],"properties":{"event":{"type":"string","const":"integration_token_rotated"},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","additionalProperties":true}}}},"integration_token_revoked":{"name":"integration_token_revoked","title":"Token revogado","headers":{"type":"object","required":["x-ciclo-delivery-id","x-ciclo-event","x-ciclo-timestamp"],"properties":{"x-ciclo-delivery-id":{"type":"string","format":"uuid"},"x-ciclo-event":{"type":"string","const":"integration_token_revoked"},"x-ciclo-timestamp":{"type":"string","format":"date-time"},"x-ciclo-signature":{"type":"string","description":"sha256=HMAC_SHA256(signing_secret, timestamp + '.' + corpo_bruto)"}}},"payload":{"type":"object","required":["event","created_at","data"],"properties":{"event":{"type":"string","const":"integration_token_revoked"},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","additionalProperties":true}}}},"visit_created":{"name":"visit_created","title":"Visita criada","headers":{"type":"object","required":["x-ciclo-delivery-id","x-ciclo-event","x-ciclo-timestamp"],"properties":{"x-ciclo-delivery-id":{"type":"string","format":"uuid"},"x-ciclo-event":{"type":"string","const":"visit_created"},"x-ciclo-timestamp":{"type":"string","format":"date-time"},"x-ciclo-signature":{"type":"string","description":"sha256=HMAC_SHA256(signing_secret, timestamp + '.' + corpo_bruto)"}}},"payload":{"type":"object","required":["event","created_at","data"],"properties":{"event":{"type":"string","const":"visit_created"},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","additionalProperties":true}}}},"visit_updated":{"name":"visit_updated","title":"Visita atualizada","headers":{"type":"object","required":["x-ciclo-delivery-id","x-ciclo-event","x-ciclo-timestamp"],"properties":{"x-ciclo-delivery-id":{"type":"string","format":"uuid"},"x-ciclo-event":{"type":"string","const":"visit_updated"},"x-ciclo-timestamp":{"type":"string","format":"date-time"},"x-ciclo-signature":{"type":"string","description":"sha256=HMAC_SHA256(signing_secret, timestamp + '.' + corpo_bruto)"}}},"payload":{"type":"object","required":["event","created_at","data"],"properties":{"event":{"type":"string","const":"visit_updated"},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","additionalProperties":true}}}},"visit_deleted":{"name":"visit_deleted","title":"Visita removida da fila","headers":{"type":"object","required":["x-ciclo-delivery-id","x-ciclo-event","x-ciclo-timestamp"],"properties":{"x-ciclo-delivery-id":{"type":"string","format":"uuid"},"x-ciclo-event":{"type":"string","const":"visit_deleted"},"x-ciclo-timestamp":{"type":"string","format":"date-time"},"x-ciclo-signature":{"type":"string","description":"sha256=HMAC_SHA256(signing_secret, timestamp + '.' + corpo_bruto)"}}},"payload":{"type":"object","required":["event","created_at","data"],"properties":{"event":{"type":"string","const":"visit_deleted"},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","additionalProperties":true}}}},"visit_canceled":{"name":"visit_canceled","title":"Visita cancelada","headers":{"type":"object","required":["x-ciclo-delivery-id","x-ciclo-event","x-ciclo-timestamp"],"properties":{"x-ciclo-delivery-id":{"type":"string","format":"uuid"},"x-ciclo-event":{"type":"string","const":"visit_canceled"},"x-ciclo-timestamp":{"type":"string","format":"date-time"},"x-ciclo-signature":{"type":"string","description":"sha256=HMAC_SHA256(signing_secret, timestamp + '.' + corpo_bruto)"}}},"payload":{"type":"object","required":["event","created_at","data"],"properties":{"event":{"type":"string","const":"visit_canceled"},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","additionalProperties":true}}}},"visit_on_its_way":{"name":"visit_on_its_way","title":"Equipe a caminho","headers":{"type":"object","required":["x-ciclo-delivery-id","x-ciclo-event","x-ciclo-timestamp"],"properties":{"x-ciclo-delivery-id":{"type":"string","format":"uuid"},"x-ciclo-event":{"type":"string","const":"visit_on_its_way"},"x-ciclo-timestamp":{"type":"string","format":"date-time"},"x-ciclo-signature":{"type":"string","description":"sha256=HMAC_SHA256(signing_secret, timestamp + '.' + corpo_bruto)"}}},"payload":{"type":"object","required":["event","created_at","data"],"properties":{"event":{"type":"string","const":"visit_on_its_way"},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","additionalProperties":true}}}},"visit_checkout":{"name":"visit_checkout","title":"Checkout da visita","headers":{"type":"object","required":["x-ciclo-delivery-id","x-ciclo-event","x-ciclo-timestamp"],"properties":{"x-ciclo-delivery-id":{"type":"string","format":"uuid"},"x-ciclo-event":{"type":"string","const":"visit_checkout"},"x-ciclo-timestamp":{"type":"string","format":"date-time"},"x-ciclo-signature":{"type":"string","description":"sha256=HMAC_SHA256(signing_secret, timestamp + '.' + corpo_bruto)"}}},"payload":{"type":"object","required":["event","created_at","data"],"properties":{"event":{"type":"string","const":"visit_checkout"},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","additionalProperties":true}}}},"visit_checkout_detailed":{"name":"visit_checkout_detailed","title":"Checkout detalhado","headers":{"type":"object","required":["x-ciclo-delivery-id","x-ciclo-event","x-ciclo-timestamp"],"properties":{"x-ciclo-delivery-id":{"type":"string","format":"uuid"},"x-ciclo-event":{"type":"string","const":"visit_checkout_detailed"},"x-ciclo-timestamp":{"type":"string","format":"date-time"},"x-ciclo-signature":{"type":"string","description":"sha256=HMAC_SHA256(signing_secret, timestamp + '.' + corpo_bruto)"}}},"payload":{"type":"object","required":["event","created_at","data"],"properties":{"event":{"type":"string","const":"visit_checkout_detailed"},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","additionalProperties":true}}}},"visit_failed":{"name":"visit_failed","title":"Visita com falha","headers":{"type":"object","required":["x-ciclo-delivery-id","x-ciclo-event","x-ciclo-timestamp"],"properties":{"x-ciclo-delivery-id":{"type":"string","format":"uuid"},"x-ciclo-event":{"type":"string","const":"visit_failed"},"x-ciclo-timestamp":{"type":"string","format":"date-time"},"x-ciclo-signature":{"type":"string","description":"sha256=HMAC_SHA256(signing_secret, timestamp + '.' + corpo_bruto)"}}},"payload":{"type":"object","required":["event","created_at","data"],"properties":{"event":{"type":"string","const":"visit_failed"},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","additionalProperties":true}}}},"plan_created":{"name":"plan_created","title":"Plano criado","headers":{"type":"object","required":["x-ciclo-delivery-id","x-ciclo-event","x-ciclo-timestamp"],"properties":{"x-ciclo-delivery-id":{"type":"string","format":"uuid"},"x-ciclo-event":{"type":"string","const":"plan_created"},"x-ciclo-timestamp":{"type":"string","format":"date-time"},"x-ciclo-signature":{"type":"string","description":"sha256=HMAC_SHA256(signing_secret, timestamp + '.' + corpo_bruto)"}}},"payload":{"type":"object","required":["event","created_at","data"],"properties":{"event":{"type":"string","const":"plan_created"},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","additionalProperties":true}}}},"plan_edited":{"name":"plan_edited","title":"Plano atualizado","headers":{"type":"object","required":["x-ciclo-delivery-id","x-ciclo-event","x-ciclo-timestamp"],"properties":{"x-ciclo-delivery-id":{"type":"string","format":"uuid"},"x-ciclo-event":{"type":"string","const":"plan_edited"},"x-ciclo-timestamp":{"type":"string","format":"date-time"},"x-ciclo-signature":{"type":"string","description":"sha256=HMAC_SHA256(signing_secret, timestamp + '.' + corpo_bruto)"}}},"payload":{"type":"object","required":["event","created_at","data"],"properties":{"event":{"type":"string","const":"plan_edited"},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","additionalProperties":true}}}},"plan_deleted":{"name":"plan_deleted","title":"Plano arquivado","headers":{"type":"object","required":["x-ciclo-delivery-id","x-ciclo-event","x-ciclo-timestamp"],"properties":{"x-ciclo-delivery-id":{"type":"string","format":"uuid"},"x-ciclo-event":{"type":"string","const":"plan_deleted"},"x-ciclo-timestamp":{"type":"string","format":"date-time"},"x-ciclo-signature":{"type":"string","description":"sha256=HMAC_SHA256(signing_secret, timestamp + '.' + corpo_bruto)"}}},"payload":{"type":"object","required":["event","created_at","data"],"properties":{"event":{"type":"string","const":"plan_deleted"},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","additionalProperties":true}}}},"route_created":{"name":"route_created","title":"Rota criada","headers":{"type":"object","required":["x-ciclo-delivery-id","x-ciclo-event","x-ciclo-timestamp"],"properties":{"x-ciclo-delivery-id":{"type":"string","format":"uuid"},"x-ciclo-event":{"type":"string","const":"route_created"},"x-ciclo-timestamp":{"type":"string","format":"date-time"},"x-ciclo-signature":{"type":"string","description":"sha256=HMAC_SHA256(signing_secret, timestamp + '.' + corpo_bruto)"}}},"payload":{"type":"object","required":["event","created_at","data"],"properties":{"event":{"type":"string","const":"route_created"},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","additionalProperties":true}}}},"route_edited":{"name":"route_edited","title":"Rota atualizada","headers":{"type":"object","required":["x-ciclo-delivery-id","x-ciclo-event","x-ciclo-timestamp"],"properties":{"x-ciclo-delivery-id":{"type":"string","format":"uuid"},"x-ciclo-event":{"type":"string","const":"route_edited"},"x-ciclo-timestamp":{"type":"string","format":"date-time"},"x-ciclo-signature":{"type":"string","description":"sha256=HMAC_SHA256(signing_secret, timestamp + '.' + corpo_bruto)"}}},"payload":{"type":"object","required":["event","created_at","data"],"properties":{"event":{"type":"string","const":"route_edited"},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","additionalProperties":true}}}},"route_deleted":{"name":"route_deleted","title":"Rota arquivada","headers":{"type":"object","required":["x-ciclo-delivery-id","x-ciclo-event","x-ciclo-timestamp"],"properties":{"x-ciclo-delivery-id":{"type":"string","format":"uuid"},"x-ciclo-event":{"type":"string","const":"route_deleted"},"x-ciclo-timestamp":{"type":"string","format":"date-time"},"x-ciclo-signature":{"type":"string","description":"sha256=HMAC_SHA256(signing_secret, timestamp + '.' + corpo_bruto)"}}},"payload":{"type":"object","required":["event","created_at","data"],"properties":{"event":{"type":"string","const":"route_deleted"},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","additionalProperties":true}}}},"route_started":{"name":"route_started","title":"Rota iniciada","headers":{"type":"object","required":["x-ciclo-delivery-id","x-ciclo-event","x-ciclo-timestamp"],"properties":{"x-ciclo-delivery-id":{"type":"string","format":"uuid"},"x-ciclo-event":{"type":"string","const":"route_started"},"x-ciclo-timestamp":{"type":"string","format":"date-time"},"x-ciclo-signature":{"type":"string","description":"sha256=HMAC_SHA256(signing_secret, timestamp + '.' + corpo_bruto)"}}},"payload":{"type":"object","required":["event","created_at","data"],"properties":{"event":{"type":"string","const":"route_started"},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","additionalProperties":true}}}},"route_finished":{"name":"route_finished","title":"Rota finalizada","headers":{"type":"object","required":["x-ciclo-delivery-id","x-ciclo-event","x-ciclo-timestamp"],"properties":{"x-ciclo-delivery-id":{"type":"string","format":"uuid"},"x-ciclo-event":{"type":"string","const":"route_finished"},"x-ciclo-timestamp":{"type":"string","format":"date-time"},"x-ciclo-signature":{"type":"string","description":"sha256=HMAC_SHA256(signing_secret, timestamp + '.' + corpo_bruto)"}}},"payload":{"type":"object","required":["event","created_at","data"],"properties":{"event":{"type":"string","const":"route_finished"},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","additionalProperties":true}}}},"vehicle_created":{"name":"vehicle_created","title":"Veículo criado","headers":{"type":"object","required":["x-ciclo-delivery-id","x-ciclo-event","x-ciclo-timestamp"],"properties":{"x-ciclo-delivery-id":{"type":"string","format":"uuid"},"x-ciclo-event":{"type":"string","const":"vehicle_created"},"x-ciclo-timestamp":{"type":"string","format":"date-time"},"x-ciclo-signature":{"type":"string","description":"sha256=HMAC_SHA256(signing_secret, timestamp + '.' + corpo_bruto)"}}},"payload":{"type":"object","required":["event","created_at","data"],"properties":{"event":{"type":"string","const":"vehicle_created"},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","additionalProperties":true}}}},"vehicle_updated":{"name":"vehicle_updated","title":"Veículo atualizado","headers":{"type":"object","required":["x-ciclo-delivery-id","x-ciclo-event","x-ciclo-timestamp"],"properties":{"x-ciclo-delivery-id":{"type":"string","format":"uuid"},"x-ciclo-event":{"type":"string","const":"vehicle_updated"},"x-ciclo-timestamp":{"type":"string","format":"date-time"},"x-ciclo-signature":{"type":"string","description":"sha256=HMAC_SHA256(signing_secret, timestamp + '.' + corpo_bruto)"}}},"payload":{"type":"object","required":["event","created_at","data"],"properties":{"event":{"type":"string","const":"vehicle_updated"},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","additionalProperties":true}}}},"vehicle_deleted":{"name":"vehicle_deleted","title":"Veículo desativado","headers":{"type":"object","required":["x-ciclo-delivery-id","x-ciclo-event","x-ciclo-timestamp"],"properties":{"x-ciclo-delivery-id":{"type":"string","format":"uuid"},"x-ciclo-event":{"type":"string","const":"vehicle_deleted"},"x-ciclo-timestamp":{"type":"string","format":"date-time"},"x-ciclo-signature":{"type":"string","description":"sha256=HMAC_SHA256(signing_secret, timestamp + '.' + corpo_bruto)"}}},"payload":{"type":"object","required":["event","created_at","data"],"properties":{"event":{"type":"string","const":"vehicle_deleted"},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","additionalProperties":true}}}},"customer_created":{"name":"customer_created","title":"Cliente criado","headers":{"type":"object","required":["x-ciclo-delivery-id","x-ciclo-event","x-ciclo-timestamp"],"properties":{"x-ciclo-delivery-id":{"type":"string","format":"uuid"},"x-ciclo-event":{"type":"string","const":"customer_created"},"x-ciclo-timestamp":{"type":"string","format":"date-time"},"x-ciclo-signature":{"type":"string","description":"sha256=HMAC_SHA256(signing_secret, timestamp + '.' + corpo_bruto)"}}},"payload":{"type":"object","required":["event","created_at","data"],"properties":{"event":{"type":"string","const":"customer_created"},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","additionalProperties":true}}}},"customer_updated":{"name":"customer_updated","title":"Cliente atualizado","headers":{"type":"object","required":["x-ciclo-delivery-id","x-ciclo-event","x-ciclo-timestamp"],"properties":{"x-ciclo-delivery-id":{"type":"string","format":"uuid"},"x-ciclo-event":{"type":"string","const":"customer_updated"},"x-ciclo-timestamp":{"type":"string","format":"date-time"},"x-ciclo-signature":{"type":"string","description":"sha256=HMAC_SHA256(signing_secret, timestamp + '.' + corpo_bruto)"}}},"payload":{"type":"object","required":["event","created_at","data"],"properties":{"event":{"type":"string","const":"customer_updated"},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","additionalProperties":true}}}},"customer_deleted":{"name":"customer_deleted","title":"Cliente inativado","headers":{"type":"object","required":["x-ciclo-delivery-id","x-ciclo-event","x-ciclo-timestamp"],"properties":{"x-ciclo-delivery-id":{"type":"string","format":"uuid"},"x-ciclo-event":{"type":"string","const":"customer_deleted"},"x-ciclo-timestamp":{"type":"string","format":"date-time"},"x-ciclo-signature":{"type":"string","description":"sha256=HMAC_SHA256(signing_secret, timestamp + '.' + corpo_bruto)"}}},"payload":{"type":"object","required":["event","created_at","data"],"properties":{"event":{"type":"string","const":"customer_deleted"},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","additionalProperties":true}}}},"customer_onboarding_moved":{"name":"customer_onboarding_moved","title":"Cartão de onboarding movimentado","headers":{"type":"object","required":["x-ciclo-delivery-id","x-ciclo-event","x-ciclo-timestamp"],"properties":{"x-ciclo-delivery-id":{"type":"string","format":"uuid"},"x-ciclo-event":{"type":"string","const":"customer_onboarding_moved"},"x-ciclo-timestamp":{"type":"string","format":"date-time"},"x-ciclo-signature":{"type":"string","description":"sha256=HMAC_SHA256(signing_secret, timestamp + '.' + corpo_bruto)"}}},"payload":{"type":"object","required":["event","created_at","data"],"properties":{"event":{"type":"string","const":"customer_onboarding_moved"},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","additionalProperties":true}}}},"subscription_plan_created":{"name":"subscription_plan_created","title":"Plano de assinatura criado","headers":{"type":"object","required":["x-ciclo-delivery-id","x-ciclo-event","x-ciclo-timestamp"],"properties":{"x-ciclo-delivery-id":{"type":"string","format":"uuid"},"x-ciclo-event":{"type":"string","const":"subscription_plan_created"},"x-ciclo-timestamp":{"type":"string","format":"date-time"},"x-ciclo-signature":{"type":"string","description":"sha256=HMAC_SHA256(signing_secret, timestamp + '.' + corpo_bruto)"}}},"payload":{"type":"object","required":["event","created_at","data"],"properties":{"event":{"type":"string","const":"subscription_plan_created"},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","additionalProperties":true,"example":{"id":"plan-id","code":"weekly-19l","name":"Coleta Semanal · Balde 19 L","cadence":"weekly","priceCents":11000,"labels":[{"key":"coleta-semanal","label":"Coleta semanal","emoji":"♻️","filterable":true,"showOnMap":true}],"active":true}}}},"examples":[{"payload":{"event":"subscription_plan_created","created_at":"2026-07-28T14:00:00.000Z","data":{"id":"plan-id","code":"weekly-19l","name":"Coleta Semanal · Balde 19 L","cadence":"weekly","priceCents":11000,"labels":[{"key":"coleta-semanal","label":"Coleta semanal","emoji":"♻️","filterable":true,"showOnMap":true}],"active":true}}}]},"subscription_plan_updated":{"name":"subscription_plan_updated","title":"Plano de assinatura atualizado","headers":{"type":"object","required":["x-ciclo-delivery-id","x-ciclo-event","x-ciclo-timestamp"],"properties":{"x-ciclo-delivery-id":{"type":"string","format":"uuid"},"x-ciclo-event":{"type":"string","const":"subscription_plan_updated"},"x-ciclo-timestamp":{"type":"string","format":"date-time"},"x-ciclo-signature":{"type":"string","description":"sha256=HMAC_SHA256(signing_secret, timestamp + '.' + corpo_bruto)"}}},"payload":{"type":"object","required":["event","created_at","data"],"properties":{"event":{"type":"string","const":"subscription_plan_updated"},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","additionalProperties":true,"example":{"id":"plan-id","code":"weekly-19l","name":"Coleta Semanal · Balde 19 L","cadence":"weekly","priceCents":11000,"labels":[{"key":"coleta-semanal","label":"Coleta semanal","emoji":"♻️","filterable":true,"showOnMap":true}],"active":true}}}},"examples":[{"payload":{"event":"subscription_plan_updated","created_at":"2026-07-28T14:00:00.000Z","data":{"id":"plan-id","code":"weekly-19l","name":"Coleta Semanal · Balde 19 L","cadence":"weekly","priceCents":11000,"labels":[{"key":"coleta-semanal","label":"Coleta semanal","emoji":"♻️","filterable":true,"showOnMap":true}],"active":true}}}]},"subscription_plan_archived":{"name":"subscription_plan_archived","title":"Plano de assinatura desativado","headers":{"type":"object","required":["x-ciclo-delivery-id","x-ciclo-event","x-ciclo-timestamp"],"properties":{"x-ciclo-delivery-id":{"type":"string","format":"uuid"},"x-ciclo-event":{"type":"string","const":"subscription_plan_archived"},"x-ciclo-timestamp":{"type":"string","format":"date-time"},"x-ciclo-signature":{"type":"string","description":"sha256=HMAC_SHA256(signing_secret, timestamp + '.' + corpo_bruto)"}}},"payload":{"type":"object","required":["event","created_at","data"],"properties":{"event":{"type":"string","const":"subscription_plan_archived"},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","additionalProperties":true,"example":{"id":"plan-id","code":"weekly-19l","name":"Coleta Semanal · Balde 19 L","cadence":"weekly","priceCents":11000,"active":false}}}},"examples":[{"payload":{"event":"subscription_plan_archived","created_at":"2026-07-28T14:00:00.000Z","data":{"id":"plan-id","code":"weekly-19l","name":"Coleta Semanal · Balde 19 L","cadence":"weekly","priceCents":11000,"active":false}}}]},"customer_subscription_created":{"name":"customer_subscription_created","title":"Assinatura associada ao cliente","headers":{"type":"object","required":["x-ciclo-delivery-id","x-ciclo-event","x-ciclo-timestamp"],"properties":{"x-ciclo-delivery-id":{"type":"string","format":"uuid"},"x-ciclo-event":{"type":"string","const":"customer_subscription_created"},"x-ciclo-timestamp":{"type":"string","format":"date-time"},"x-ciclo-signature":{"type":"string","description":"sha256=HMAC_SHA256(signing_secret, timestamp + '.' + corpo_bruto)"}}},"payload":{"type":"object","required":["event","created_at","data"],"properties":{"event":{"type":"string","const":"customer_subscription_created"},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","additionalProperties":true,"example":{"id":"subscription-id","customerId":"customer-id","planId":"plan-id","status":"active","startDate":"2026-08-11","weekdays":[2]}}}},"examples":[{"payload":{"event":"customer_subscription_created","created_at":"2026-07-28T14:00:00.000Z","data":{"id":"subscription-id","customerId":"customer-id","planId":"plan-id","status":"active","startDate":"2026-08-11","weekdays":[2]}}}]},"customer_subscription_updated":{"name":"customer_subscription_updated","title":"Assinatura do cliente atualizada","headers":{"type":"object","required":["x-ciclo-delivery-id","x-ciclo-event","x-ciclo-timestamp"],"properties":{"x-ciclo-delivery-id":{"type":"string","format":"uuid"},"x-ciclo-event":{"type":"string","const":"customer_subscription_updated"},"x-ciclo-timestamp":{"type":"string","format":"date-time"},"x-ciclo-signature":{"type":"string","description":"sha256=HMAC_SHA256(signing_secret, timestamp + '.' + corpo_bruto)"}}},"payload":{"type":"object","required":["event","created_at","data"],"properties":{"event":{"type":"string","const":"customer_subscription_updated"},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","additionalProperties":true,"example":{"id":"subscription-id","customerId":"customer-id","planId":"plan-id","status":"paused","startDate":"2026-08-11","weekdays":[2]}}}},"examples":[{"payload":{"event":"customer_subscription_updated","created_at":"2026-07-28T14:00:00.000Z","data":{"id":"subscription-id","customerId":"customer-id","planId":"plan-id","status":"paused","startDate":"2026-08-11","weekdays":[2]}}}]},"product_created":{"name":"product_created","title":"Produto criado","headers":{"type":"object","required":["x-ciclo-delivery-id","x-ciclo-event","x-ciclo-timestamp"],"properties":{"x-ciclo-delivery-id":{"type":"string","format":"uuid"},"x-ciclo-event":{"type":"string","const":"product_created"},"x-ciclo-timestamp":{"type":"string","format":"date-time"},"x-ciclo-signature":{"type":"string","description":"sha256=HMAC_SHA256(signing_secret, timestamp + '.' + corpo_bruto)"}}},"payload":{"type":"object","required":["event","created_at","data"],"properties":{"event":{"type":"string","const":"product_created"},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","additionalProperties":true,"example":{"id":"product-id","code":"baldinho-19l-reutilizado","title":"Baldinho de 19 L — reutilizado","active":true,"updatedAt":"2026-08-06T12:00:00.000Z"}}}},"examples":[{"payload":{"event":"product_created","created_at":"2026-07-28T14:00:00.000Z","data":{"id":"product-id","code":"baldinho-19l-reutilizado","title":"Baldinho de 19 L — reutilizado","active":true,"updatedAt":"2026-08-06T12:00:00.000Z"}}}]},"product_updated":{"name":"product_updated","title":"Produto atualizado","headers":{"type":"object","required":["x-ciclo-delivery-id","x-ciclo-event","x-ciclo-timestamp"],"properties":{"x-ciclo-delivery-id":{"type":"string","format":"uuid"},"x-ciclo-event":{"type":"string","const":"product_updated"},"x-ciclo-timestamp":{"type":"string","format":"date-time"},"x-ciclo-signature":{"type":"string","description":"sha256=HMAC_SHA256(signing_secret, timestamp + '.' + corpo_bruto)"}}},"payload":{"type":"object","required":["event","created_at","data"],"properties":{"event":{"type":"string","const":"product_updated"},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","additionalProperties":true,"example":{"id":"product-id","code":"baldinho-19l-reutilizado","title":"Baldinho de 19 L — reutilizado","active":true,"updatedAt":"2026-08-06T12:10:00.000Z"}}}},"examples":[{"payload":{"event":"product_updated","created_at":"2026-07-28T14:00:00.000Z","data":{"id":"product-id","code":"baldinho-19l-reutilizado","title":"Baldinho de 19 L — reutilizado","active":true,"updatedAt":"2026-08-06T12:10:00.000Z"}}}]},"product_deleted":{"name":"product_deleted","title":"Produto desativado","headers":{"type":"object","required":["x-ciclo-delivery-id","x-ciclo-event","x-ciclo-timestamp"],"properties":{"x-ciclo-delivery-id":{"type":"string","format":"uuid"},"x-ciclo-event":{"type":"string","const":"product_deleted"},"x-ciclo-timestamp":{"type":"string","format":"date-time"},"x-ciclo-signature":{"type":"string","description":"sha256=HMAC_SHA256(signing_secret, timestamp + '.' + corpo_bruto)"}}},"payload":{"type":"object","required":["event","created_at","data"],"properties":{"event":{"type":"string","const":"product_deleted"},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","additionalProperties":true,"example":{"id":"product-id","code":"baldinho-19l-reutilizado","title":"Baldinho de 19 L — reutilizado","active":false,"updatedAt":"2026-08-06T12:20:00.000Z"}}}},"examples":[{"payload":{"event":"product_deleted","created_at":"2026-07-28T14:00:00.000Z","data":{"id":"product-id","code":"baldinho-19l-reutilizado","title":"Baldinho de 19 L — reutilizado","active":false,"updatedAt":"2026-08-06T12:20:00.000Z"}}}]},"form_submission_created":{"name":"form_submission_created","title":"Registro criado","headers":{"type":"object","required":["x-ciclo-delivery-id","x-ciclo-event","x-ciclo-timestamp"],"properties":{"x-ciclo-delivery-id":{"type":"string","format":"uuid"},"x-ciclo-event":{"type":"string","const":"form_submission_created"},"x-ciclo-timestamp":{"type":"string","format":"date-time"},"x-ciclo-signature":{"type":"string","description":"sha256=HMAC_SHA256(signing_secret, timestamp + '.' + corpo_bruto)"}}},"payload":{"type":"object","required":["event","created_at","data"],"properties":{"event":{"type":"string","const":"form_submission_created"},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","additionalProperties":true,"example":{"id":"submission-id","form_key":"card","occurrence_date":"2026-08-06","payload":{"cardType":"Verde"},"score_effect":1,"created_at":"2026-08-06T12:00:00.000Z"}}}},"examples":[{"payload":{"event":"form_submission_created","created_at":"2026-07-28T14:00:00.000Z","data":{"id":"submission-id","form_key":"card","occurrence_date":"2026-08-06","payload":{"cardType":"Verde"},"score_effect":1,"created_at":"2026-08-06T12:00:00.000Z"}}}]},"form_submission_updated":{"name":"form_submission_updated","title":"Registro atualizado","headers":{"type":"object","required":["x-ciclo-delivery-id","x-ciclo-event","x-ciclo-timestamp"],"properties":{"x-ciclo-delivery-id":{"type":"string","format":"uuid"},"x-ciclo-event":{"type":"string","const":"form_submission_updated"},"x-ciclo-timestamp":{"type":"string","format":"date-time"},"x-ciclo-signature":{"type":"string","description":"sha256=HMAC_SHA256(signing_secret, timestamp + '.' + corpo_bruto)"}}},"payload":{"type":"object","required":["event","created_at","data"],"properties":{"event":{"type":"string","const":"form_submission_updated"},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","additionalProperties":true,"example":{"id":"submission-id","form_key":"card","occurrence_date":"2026-08-06","payload":{"cardType":"Amarelo"},"score_effect":-2,"updated_at":"2026-08-06T12:10:00.000Z"}}}},"examples":[{"payload":{"event":"form_submission_updated","created_at":"2026-07-28T14:00:00.000Z","data":{"id":"submission-id","form_key":"card","occurrence_date":"2026-08-06","payload":{"cardType":"Amarelo"},"score_effect":-2,"updated_at":"2026-08-06T12:10:00.000Z"}}}]},"form_submission_deleted":{"name":"form_submission_deleted","title":"Registro excluído","headers":{"type":"object","required":["x-ciclo-delivery-id","x-ciclo-event","x-ciclo-timestamp"],"properties":{"x-ciclo-delivery-id":{"type":"string","format":"uuid"},"x-ciclo-event":{"type":"string","const":"form_submission_deleted"},"x-ciclo-timestamp":{"type":"string","format":"date-time"},"x-ciclo-signature":{"type":"string","description":"sha256=HMAC_SHA256(signing_secret, timestamp + '.' + corpo_bruto)"}}},"payload":{"type":"object","required":["event","created_at","data"],"properties":{"event":{"type":"string","const":"form_submission_deleted"},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","additionalProperties":true,"example":{"id":"submission-id","form_key":"card","deleted":true}}}},"examples":[{"payload":{"event":"form_submission_deleted","created_at":"2026-07-28T14:00:00.000Z","data":{"id":"submission-id","form_key":"card","deleted":true}}}]},"vehicle_checklist_submitted":{"name":"vehicle_checklist_submitted","title":"Checklist concluído","headers":{"type":"object","required":["x-ciclo-delivery-id","x-ciclo-event","x-ciclo-timestamp"],"properties":{"x-ciclo-delivery-id":{"type":"string","format":"uuid"},"x-ciclo-event":{"type":"string","const":"vehicle_checklist_submitted"},"x-ciclo-timestamp":{"type":"string","format":"date-time"},"x-ciclo-signature":{"type":"string","description":"sha256=HMAC_SHA256(signing_secret, timestamp + '.' + corpo_bruto)"}}},"payload":{"type":"object","required":["event","created_at","data"],"properties":{"event":{"type":"string","const":"vehicle_checklist_submitted"},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","additionalProperties":true,"example":{"id":"checklist-id","route_id":"route-id","vehicle_name":"Carro 05","checklist_type":"departure","completed_at":"2026-08-06T09:00:00.000Z"}}}},"examples":[{"payload":{"event":"vehicle_checklist_submitted","created_at":"2026-07-28T14:00:00.000Z","data":{"id":"checklist-id","route_id":"route-id","vehicle_name":"Carro 05","checklist_type":"departure","completed_at":"2026-08-06T09:00:00.000Z"}}}]},"vehicle_checklist_updated":{"name":"vehicle_checklist_updated","title":"Checklist corrigido","headers":{"type":"object","required":["x-ciclo-delivery-id","x-ciclo-event","x-ciclo-timestamp"],"properties":{"x-ciclo-delivery-id":{"type":"string","format":"uuid"},"x-ciclo-event":{"type":"string","const":"vehicle_checklist_updated"},"x-ciclo-timestamp":{"type":"string","format":"date-time"},"x-ciclo-signature":{"type":"string","description":"sha256=HMAC_SHA256(signing_secret, timestamp + '.' + corpo_bruto)"}}},"payload":{"type":"object","required":["event","created_at","data"],"properties":{"event":{"type":"string","const":"vehicle_checklist_updated"},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","additionalProperties":true,"example":{"id":"checklist-id","route_id":"route-id","vehicle_name":"Carro 05","checklist_type":"departure","completed_at":"2026-08-06T09:00:00.000Z"}}}},"examples":[{"payload":{"event":"vehicle_checklist_updated","created_at":"2026-07-28T14:00:00.000Z","data":{"id":"checklist-id","route_id":"route-id","vehicle_name":"Carro 05","checklist_type":"departure","completed_at":"2026-08-06T09:00:00.000Z"}}}]},"vehicle_checklist_deleted":{"name":"vehicle_checklist_deleted","title":"Checklist excluído","headers":{"type":"object","required":["x-ciclo-delivery-id","x-ciclo-event","x-ciclo-timestamp"],"properties":{"x-ciclo-delivery-id":{"type":"string","format":"uuid"},"x-ciclo-event":{"type":"string","const":"vehicle_checklist_deleted"},"x-ciclo-timestamp":{"type":"string","format":"date-time"},"x-ciclo-signature":{"type":"string","description":"sha256=HMAC_SHA256(signing_secret, timestamp + '.' + corpo_bruto)"}}},"payload":{"type":"object","required":["event","created_at","data"],"properties":{"event":{"type":"string","const":"vehicle_checklist_deleted"},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","additionalProperties":true,"example":{"id":"checklist-id","route_id":"route-id","vehicle_name":"Carro 05","checklist_type":"departure","deleted_ids":["checklist-id"]}}}},"examples":[{"payload":{"event":"vehicle_checklist_deleted","created_at":"2026-07-28T14:00:00.000Z","data":{"id":"checklist-id","route_id":"route-id","vehicle_name":"Carro 05","checklist_type":"departure","deleted_ids":["checklist-id"]}}}]},"user_created":{"name":"user_created","title":"Usuário criado","headers":{"type":"object","required":["x-ciclo-delivery-id","x-ciclo-event","x-ciclo-timestamp"],"properties":{"x-ciclo-delivery-id":{"type":"string","format":"uuid"},"x-ciclo-event":{"type":"string","const":"user_created"},"x-ciclo-timestamp":{"type":"string","format":"date-time"},"x-ciclo-signature":{"type":"string","description":"sha256=HMAC_SHA256(signing_secret, timestamp + '.' + corpo_bruto)"}}},"payload":{"type":"object","required":["event","created_at","data"],"properties":{"event":{"type":"string","const":"user_created"},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","additionalProperties":true}}}},"user_updated":{"name":"user_updated","title":"Usuário atualizado","headers":{"type":"object","required":["x-ciclo-delivery-id","x-ciclo-event","x-ciclo-timestamp"],"properties":{"x-ciclo-delivery-id":{"type":"string","format":"uuid"},"x-ciclo-event":{"type":"string","const":"user_updated"},"x-ciclo-timestamp":{"type":"string","format":"date-time"},"x-ciclo-signature":{"type":"string","description":"sha256=HMAC_SHA256(signing_secret, timestamp + '.' + corpo_bruto)"}}},"payload":{"type":"object","required":["event","created_at","data"],"properties":{"event":{"type":"string","const":"user_updated"},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","additionalProperties":true}}}},"user_deleted":{"name":"user_deleted","title":"Usuário desativado","headers":{"type":"object","required":["x-ciclo-delivery-id","x-ciclo-event","x-ciclo-timestamp"],"properties":{"x-ciclo-delivery-id":{"type":"string","format":"uuid"},"x-ciclo-event":{"type":"string","const":"user_deleted"},"x-ciclo-timestamp":{"type":"string","format":"date-time"},"x-ciclo-signature":{"type":"string","description":"sha256=HMAC_SHA256(signing_secret, timestamp + '.' + corpo_bruto)"}}},"payload":{"type":"object","required":["event","created_at","data"],"properties":{"event":{"type":"string","const":"user_deleted"},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","additionalProperties":true}}}},"chat_message_created":{"name":"chat_message_created","title":"Mensagem enviada","headers":{"type":"object","required":["x-ciclo-delivery-id","x-ciclo-event","x-ciclo-timestamp"],"properties":{"x-ciclo-delivery-id":{"type":"string","format":"uuid"},"x-ciclo-event":{"type":"string","const":"chat_message_created"},"x-ciclo-timestamp":{"type":"string","format":"date-time"},"x-ciclo-signature":{"type":"string","description":"sha256=HMAC_SHA256(signing_secret, timestamp + '.' + corpo_bruto)"}}},"payload":{"type":"object","required":["event","created_at","data"],"properties":{"event":{"type":"string","const":"chat_message_created"},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","required":["id"],"properties":{"id":{"type":"string"},"conversation_id":{"type":"string"},"route_id":{"type":"string"},"message_id":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"acknowledged_at":{"type":"string","format":"date-time"},"actor":{"type":"object","additionalProperties":true},"sender":{"type":"object","additionalProperties":true},"target":{"type":"object","additionalProperties":true},"targets":{"type":"array","items":{"type":"object","additionalProperties":true}}},"additionalProperties":true,"example":{"id":"message-id","conversationId":"conversation-id","messageType":"text","body":"Chegando ao cliente.","senderName":"Luiz","createdAt":"2026-07-28T14:00:00.000Z"}}}},"examples":[{"payload":{"event":"chat_message_created","created_at":"2026-07-28T14:00:00.000Z","data":{"id":"message-id","conversationId":"conversation-id","messageType":"text","body":"Chegando ao cliente.","senderName":"Luiz","createdAt":"2026-07-28T14:00:00.000Z"}}}]},"chat_attachment_created":{"name":"chat_attachment_created","title":"Anexo enviado","headers":{"type":"object","required":["x-ciclo-delivery-id","x-ciclo-event","x-ciclo-timestamp"],"properties":{"x-ciclo-delivery-id":{"type":"string","format":"uuid"},"x-ciclo-event":{"type":"string","const":"chat_attachment_created"},"x-ciclo-timestamp":{"type":"string","format":"date-time"},"x-ciclo-signature":{"type":"string","description":"sha256=HMAC_SHA256(signing_secret, timestamp + '.' + corpo_bruto)"}}},"payload":{"type":"object","required":["event","created_at","data"],"properties":{"event":{"type":"string","const":"chat_attachment_created"},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","required":["id"],"properties":{"id":{"type":"string"},"conversation_id":{"type":"string"},"route_id":{"type":"string"},"message_id":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"acknowledged_at":{"type":"string","format":"date-time"},"actor":{"type":"object","additionalProperties":true},"sender":{"type":"object","additionalProperties":true},"target":{"type":"object","additionalProperties":true},"targets":{"type":"array","items":{"type":"object","additionalProperties":true}}},"additionalProperties":true}}}},"chat_reaction_updated":{"name":"chat_reaction_updated","title":"Reação atualizada","headers":{"type":"object","required":["x-ciclo-delivery-id","x-ciclo-event","x-ciclo-timestamp"],"properties":{"x-ciclo-delivery-id":{"type":"string","format":"uuid"},"x-ciclo-event":{"type":"string","const":"chat_reaction_updated"},"x-ciclo-timestamp":{"type":"string","format":"date-time"},"x-ciclo-signature":{"type":"string","description":"sha256=HMAC_SHA256(signing_secret, timestamp + '.' + corpo_bruto)"}}},"payload":{"type":"object","required":["event","created_at","data"],"properties":{"event":{"type":"string","const":"chat_reaction_updated"},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","required":["id"],"properties":{"id":{"type":"string"},"conversation_id":{"type":"string"},"route_id":{"type":"string"},"message_id":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"acknowledged_at":{"type":"string","format":"date-time"},"actor":{"type":"object","additionalProperties":true},"sender":{"type":"object","additionalProperties":true},"target":{"type":"object","additionalProperties":true},"targets":{"type":"array","items":{"type":"object","additionalProperties":true}}},"additionalProperties":true}}}},"chat_location_updated":{"name":"chat_location_updated","title":"Localização atualizada","headers":{"type":"object","required":["x-ciclo-delivery-id","x-ciclo-event","x-ciclo-timestamp"],"properties":{"x-ciclo-delivery-id":{"type":"string","format":"uuid"},"x-ciclo-event":{"type":"string","const":"chat_location_updated"},"x-ciclo-timestamp":{"type":"string","format":"date-time"},"x-ciclo-signature":{"type":"string","description":"sha256=HMAC_SHA256(signing_secret, timestamp + '.' + corpo_bruto)"}}},"payload":{"type":"object","required":["event","created_at","data"],"properties":{"event":{"type":"string","const":"chat_location_updated"},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","required":["id"],"properties":{"id":{"type":"string"},"conversation_id":{"type":"string"},"route_id":{"type":"string"},"message_id":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"acknowledged_at":{"type":"string","format":"date-time"},"actor":{"type":"object","additionalProperties":true},"sender":{"type":"object","additionalProperties":true},"target":{"type":"object","additionalProperties":true},"targets":{"type":"array","items":{"type":"object","additionalProperties":true}}},"additionalProperties":true}}}},"chat_conversation_read":{"name":"chat_conversation_read","title":"Conversa lida","headers":{"type":"object","required":["x-ciclo-delivery-id","x-ciclo-event","x-ciclo-timestamp"],"properties":{"x-ciclo-delivery-id":{"type":"string","format":"uuid"},"x-ciclo-event":{"type":"string","const":"chat_conversation_read"},"x-ciclo-timestamp":{"type":"string","format":"date-time"},"x-ciclo-signature":{"type":"string","description":"sha256=HMAC_SHA256(signing_secret, timestamp + '.' + corpo_bruto)"}}},"payload":{"type":"object","required":["event","created_at","data"],"properties":{"event":{"type":"string","const":"chat_conversation_read"},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","required":["id"],"properties":{"id":{"type":"string"},"conversation_id":{"type":"string"},"route_id":{"type":"string"},"message_id":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"acknowledged_at":{"type":"string","format":"date-time"},"actor":{"type":"object","additionalProperties":true},"sender":{"type":"object","additionalProperties":true},"target":{"type":"object","additionalProperties":true},"targets":{"type":"array","items":{"type":"object","additionalProperties":true}}},"additionalProperties":true,"example":{"id":"conversation-id","conversation_id":"conversation-id","channel_conversation_ids":["conversation-id"],"vehicle_name":"Carro 05","actor":{"key":"admin:member-id","kind":"admin","name":"Equipe de Logística","role":"logistica"},"read_at":"2026-07-28T14:05:00.000Z"}}}},"examples":[{"payload":{"event":"chat_conversation_read","created_at":"2026-07-28T14:00:00.000Z","data":{"id":"conversation-id","conversation_id":"conversation-id","channel_conversation_ids":["conversation-id"],"vehicle_name":"Carro 05","actor":{"key":"admin:member-id","kind":"admin","name":"Equipe de Logística","role":"logistica"},"read_at":"2026-07-28T14:05:00.000Z"}}}]},"chat_broadcast_created":{"name":"chat_broadcast_created","title":"Comunicado enviado","headers":{"type":"object","required":["x-ciclo-delivery-id","x-ciclo-event","x-ciclo-timestamp"],"properties":{"x-ciclo-delivery-id":{"type":"string","format":"uuid"},"x-ciclo-event":{"type":"string","const":"chat_broadcast_created"},"x-ciclo-timestamp":{"type":"string","format":"date-time"},"x-ciclo-signature":{"type":"string","description":"sha256=HMAC_SHA256(signing_secret, timestamp + '.' + corpo_bruto)"}}},"payload":{"type":"object","required":["event","created_at","data"],"properties":{"event":{"type":"string","const":"chat_broadcast_created"},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","required":["id"],"properties":{"id":{"type":"string"},"conversation_id":{"type":"string"},"route_id":{"type":"string"},"message_id":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"acknowledged_at":{"type":"string","format":"date-time"},"actor":{"type":"object","additionalProperties":true},"sender":{"type":"object","additionalProperties":true},"target":{"type":"object","additionalProperties":true},"targets":{"type":"array","items":{"type":"object","additionalProperties":true}}},"additionalProperties":true,"example":{"id":"broadcast-id","body":"Atenção ao acesso do condomínio.","sender_name":"Equipe de Logística","vehicle_count":4,"targeted":false,"conversation_ids":["conversation-id"],"created_at":"2026-07-28T14:00:00.000Z"}}}},"examples":[{"payload":{"event":"chat_broadcast_created","created_at":"2026-07-28T14:00:00.000Z","data":{"id":"broadcast-id","body":"Atenção ao acesso do condomínio.","sender_name":"Equipe de Logística","vehicle_count":4,"targeted":false,"conversation_ids":["conversation-id"],"created_at":"2026-07-28T14:00:00.000Z"}}}]},"chat_alert_created":{"name":"chat_alert_created","title":"Alerta operacional enviado","headers":{"type":"object","required":["x-ciclo-delivery-id","x-ciclo-event","x-ciclo-timestamp"],"properties":{"x-ciclo-delivery-id":{"type":"string","format":"uuid"},"x-ciclo-event":{"type":"string","const":"chat_alert_created"},"x-ciclo-timestamp":{"type":"string","format":"date-time"},"x-ciclo-signature":{"type":"string","description":"sha256=HMAC_SHA256(signing_secret, timestamp + '.' + corpo_bruto)"}}},"payload":{"type":"object","required":["event","created_at","data"],"properties":{"event":{"type":"string","const":"chat_alert_created"},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","required":["id"],"properties":{"id":{"type":"string"},"conversation_id":{"type":"string"},"route_id":{"type":"string"},"message_id":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"acknowledged_at":{"type":"string","format":"date-time"},"actor":{"type":"object","additionalProperties":true},"sender":{"type":"object","additionalProperties":true},"target":{"type":"object","additionalProperties":true},"targets":{"type":"array","items":{"type":"object","additionalProperties":true}}},"additionalProperties":true,"example":{"id":"message-id","system_message_id":"message-id","conversation_id":"conversation-id","route_id":"route-id","vehicle_name":"Carro 05","sender":{"id":"member-id","name":"Equipe de Logística","role":"logistica"},"targets":[{"id":"alert-id","user_id":"user-id","name":"Luiz","role":"driver"}],"created_at":"2026-07-28T14:00:00.000Z"}}}},"examples":[{"payload":{"event":"chat_alert_created","created_at":"2026-07-28T14:00:00.000Z","data":{"id":"message-id","system_message_id":"message-id","conversation_id":"conversation-id","route_id":"route-id","vehicle_name":"Carro 05","sender":{"id":"member-id","name":"Equipe de Logística","role":"logistica"},"targets":[{"id":"alert-id","user_id":"user-id","name":"Luiz","role":"driver"}],"created_at":"2026-07-28T14:00:00.000Z"}}}]},"chat_alert_acknowledged":{"name":"chat_alert_acknowledged","title":"Alerta confirmado","headers":{"type":"object","required":["x-ciclo-delivery-id","x-ciclo-event","x-ciclo-timestamp"],"properties":{"x-ciclo-delivery-id":{"type":"string","format":"uuid"},"x-ciclo-event":{"type":"string","const":"chat_alert_acknowledged"},"x-ciclo-timestamp":{"type":"string","format":"date-time"},"x-ciclo-signature":{"type":"string","description":"sha256=HMAC_SHA256(signing_secret, timestamp + '.' + corpo_bruto)"}}},"payload":{"type":"object","required":["event","created_at","data"],"properties":{"event":{"type":"string","const":"chat_alert_acknowledged"},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","required":["id"],"properties":{"id":{"type":"string"},"conversation_id":{"type":"string"},"route_id":{"type":"string"},"message_id":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"acknowledged_at":{"type":"string","format":"date-time"},"actor":{"type":"object","additionalProperties":true},"sender":{"type":"object","additionalProperties":true},"target":{"type":"object","additionalProperties":true},"targets":{"type":"array","items":{"type":"object","additionalProperties":true}}},"additionalProperties":true,"example":{"id":"alert-id","alert_id":"alert-id","conversation_id":"conversation-id","route_id":"route-id","target":{"id":"user-id","name":"Luiz","role":"driver"},"acknowledged_at":"2026-07-28T14:01:00.000Z"}}}},"examples":[{"payload":{"event":"chat_alert_acknowledged","created_at":"2026-07-28T14:00:00.000Z","data":{"id":"alert-id","alert_id":"alert-id","conversation_id":"conversation-id","route_id":"route-id","target":{"id":"user-id","name":"Luiz","role":"driver"},"acknowledged_at":"2026-07-28T14:01:00.000Z"}}}]},"chat_sos_created":{"name":"chat_sos_created","title":"SOS acionado","headers":{"type":"object","required":["x-ciclo-delivery-id","x-ciclo-event","x-ciclo-timestamp"],"properties":{"x-ciclo-delivery-id":{"type":"string","format":"uuid"},"x-ciclo-event":{"type":"string","const":"chat_sos_created"},"x-ciclo-timestamp":{"type":"string","format":"date-time"},"x-ciclo-signature":{"type":"string","description":"sha256=HMAC_SHA256(signing_secret, timestamp + '.' + corpo_bruto)"}}},"payload":{"type":"object","required":["event","created_at","data"],"properties":{"event":{"type":"string","const":"chat_sos_created"},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","required":["id"],"properties":{"id":{"type":"string"},"conversation_id":{"type":"string"},"route_id":{"type":"string"},"message_id":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"acknowledged_at":{"type":"string","format":"date-time"},"actor":{"type":"object","additionalProperties":true},"sender":{"type":"object","additionalProperties":true},"target":{"type":"object","additionalProperties":true},"targets":{"type":"array","items":{"type":"object","additionalProperties":true}}},"additionalProperties":true,"example":{"id":"message-id","message_id":"message-id","conversation_id":"conversation-id","route_id":"route-id","route_slug":"rota-2026-07-28","vehicle_name":"Carro 05","sender":{"id":"user-id","name":"Luiz","role":"driver"},"visit":{"id":"1554","title":"Maria Silva","address":"Rua Professor Luís Cantanhede, 249"},"detail":"Luiz solicita ajuda.","created_at":"2026-07-28T14:00:00.000Z"}}}},"examples":[{"payload":{"event":"chat_sos_created","created_at":"2026-07-28T14:00:00.000Z","data":{"id":"message-id","message_id":"message-id","conversation_id":"conversation-id","route_id":"route-id","route_slug":"rota-2026-07-28","vehicle_name":"Carro 05","sender":{"id":"user-id","name":"Luiz","role":"driver"},"visit":{"id":"1554","title":"Maria Silva","address":"Rua Professor Luís Cantanhede, 249"},"detail":"Luiz solicita ajuda.","created_at":"2026-07-28T14:00:00.000Z"}}}]},"command_case_opened":{"name":"command_case_opened","title":"Chamado aberto","headers":{"type":"object","required":["x-ciclo-delivery-id","x-ciclo-event","x-ciclo-timestamp"],"properties":{"x-ciclo-delivery-id":{"type":"string","format":"uuid"},"x-ciclo-event":{"type":"string","const":"command_case_opened"},"x-ciclo-timestamp":{"type":"string","format":"date-time"},"x-ciclo-signature":{"type":"string","description":"sha256=HMAC_SHA256(signing_secret, timestamp + '.' + corpo_bruto)"}}},"payload":{"type":"object","required":["event","created_at","data"],"properties":{"event":{"type":"string","const":"command_case_opened"},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","required":["id","route_id","visit_task_id","customer_name","phase","updated_at"],"properties":{"id":{"type":"string","format":"uuid"},"route_id":{"type":"string","format":"uuid"},"visit_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}]},"visit_task_id":{"type":"string"},"conversation_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}]},"customer_name":{"type":"string"},"vehicle_name":{"anyOf":[{"type":"string"},{"type":"null"}]},"collector_name":{"anyOf":[{"type":"string"},{"type":"null"}]},"phase":{"type":"string"},"from_phase":{"anyOf":[{"type":"string"},{"type":"null"}]},"to_phase":{"type":"string"},"workflow_revision":{"anyOf":[{"type":"integer"},{"type":"null"}]},"field_values":{"type":"object","additionalProperties":{"type":"string"}},"phase_definition":{"anyOf":[{"type":"object","additionalProperties":true},{"type":"null"}]},"available_transitions":{"type":"array","items":{"type":"object","additionalProperties":true}},"outcome":{"anyOf":[{"type":"string"},{"type":"null"}]},"instructions":{"anyOf":[{"type":"string"},{"type":"null"}]},"actor":{"type":"object","additionalProperties":true},"transition":{"type":"object","additionalProperties":true},"resolved_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}},"additionalProperties":true,"example":{"id":"case-id","route_id":"route-id","visit_id":"visit-id","visit_task_id":"1554","customer_name":"Maria Silva","vehicle_name":"Carro 05","phase":"new","failure_reason":"Sem contato.","actor":{"id":"member-id","name":"Equipe de Logística","role":"logistica"},"created_at":"2026-07-28T14:00:00.000Z","updated_at":"2026-07-28T14:00:00.000Z"}}}},"examples":[{"payload":{"event":"command_case_opened","created_at":"2026-07-28T14:00:00.000Z","data":{"id":"case-id","route_id":"route-id","visit_id":"visit-id","visit_task_id":"1554","customer_name":"Maria Silva","vehicle_name":"Carro 05","phase":"new","failure_reason":"Sem contato.","actor":{"id":"member-id","name":"Equipe de Logística","role":"logistica"},"created_at":"2026-07-28T14:00:00.000Z","updated_at":"2026-07-28T14:00:00.000Z"}}}]},"command_case_transitioned":{"name":"command_case_transitioned","title":"Chamado movimentado","headers":{"type":"object","required":["x-ciclo-delivery-id","x-ciclo-event","x-ciclo-timestamp"],"properties":{"x-ciclo-delivery-id":{"type":"string","format":"uuid"},"x-ciclo-event":{"type":"string","const":"command_case_transitioned"},"x-ciclo-timestamp":{"type":"string","format":"date-time"},"x-ciclo-signature":{"type":"string","description":"sha256=HMAC_SHA256(signing_secret, timestamp + '.' + corpo_bruto)"}}},"payload":{"type":"object","required":["event","created_at","data"],"properties":{"event":{"type":"string","const":"command_case_transitioned"},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","required":["id","route_id","visit_task_id","customer_name","phase","updated_at"],"properties":{"id":{"type":"string","format":"uuid"},"route_id":{"type":"string","format":"uuid"},"visit_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}]},"visit_task_id":{"type":"string"},"conversation_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}]},"customer_name":{"type":"string"},"vehicle_name":{"anyOf":[{"type":"string"},{"type":"null"}]},"collector_name":{"anyOf":[{"type":"string"},{"type":"null"}]},"phase":{"type":"string"},"from_phase":{"anyOf":[{"type":"string"},{"type":"null"}]},"to_phase":{"type":"string"},"workflow_revision":{"anyOf":[{"type":"integer"},{"type":"null"}]},"field_values":{"type":"object","additionalProperties":{"type":"string"}},"phase_definition":{"anyOf":[{"type":"object","additionalProperties":true},{"type":"null"}]},"available_transitions":{"type":"array","items":{"type":"object","additionalProperties":true}},"outcome":{"anyOf":[{"type":"string"},{"type":"null"}]},"instructions":{"anyOf":[{"type":"string"},{"type":"null"}]},"actor":{"type":"object","additionalProperties":true},"transition":{"type":"object","additionalProperties":true},"resolved_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}},"additionalProperties":true,"example":{"id":"case-id","route_id":"route-id","visit_task_id":"1554","customer_name":"Maria Silva","vehicle_name":"Carro 05","phase":"waiting","from_phase":"new","to_phase":"waiting","actor":{"id":"member-id","name":"Equipe de Logística","role":"logistica"},"transition":{"instructions":null,"recollection_date":null,"extra_bucket":null,"next_collection_date":null,"scheduled_visit_id":null},"updated_at":"2026-07-28T14:05:00.000Z"}}}},"examples":[{"payload":{"event":"command_case_transitioned","created_at":"2026-07-28T14:00:00.000Z","data":{"id":"case-id","route_id":"route-id","visit_task_id":"1554","customer_name":"Maria Silva","vehicle_name":"Carro 05","phase":"waiting","from_phase":"new","to_phase":"waiting","actor":{"id":"member-id","name":"Equipe de Logística","role":"logistica"},"transition":{"instructions":null,"recollection_date":null,"extra_bucket":null,"next_collection_date":null,"scheduled_visit_id":null},"updated_at":"2026-07-28T14:05:00.000Z"}}}]},"command_workflow_updated":{"name":"command_workflow_updated","title":"Configuração da Torre atualizada","headers":{"type":"object","required":["x-ciclo-delivery-id","x-ciclo-event","x-ciclo-timestamp"],"properties":{"x-ciclo-delivery-id":{"type":"string","format":"uuid"},"x-ciclo-event":{"type":"string","const":"command_workflow_updated"},"x-ciclo-timestamp":{"type":"string","format":"date-time"},"x-ciclo-signature":{"type":"string","description":"sha256=HMAC_SHA256(signing_secret, timestamp + '.' + corpo_bruto)"}}},"payload":{"type":"object","required":["event","created_at","data"],"properties":{"event":{"type":"string","const":"command_workflow_updated"},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","required":["revision","updated_at","updated_by","fields","phases"],"properties":{"revision":{"type":"integer","minimum":1},"updated_at":{"type":"string","format":"date-time"},"updated_by":{"type":"object","additionalProperties":true},"fields":{"type":"array","items":{"type":"object","additionalProperties":true}},"phases":{"type":"array","items":{"type":"object","additionalProperties":true}}},"additionalProperties":false,"example":{"revision":4,"updated_at":"2026-08-03T12:00:00.000Z","updated_by":{"id":"member-id","name":"Equipe de Logística","role":"logistica"},"fields":[{"id":"instructions","apiName":"instructions","type":"textarea"}],"phases":[{"id":"waiting","label":"⏳ Aguardando a resposta","color":"#d79a12","position":1,"terminal":false,"initial":false,"requiredFields":[],"allowedTransitions":["immediate_return"],"favoriteTransition":"immediate_return","active":true}]}}}},"examples":[{"payload":{"event":"command_workflow_updated","created_at":"2026-07-28T14:00:00.000Z","data":{"revision":4,"updated_at":"2026-08-03T12:00:00.000Z","updated_by":{"id":"member-id","name":"Equipe de Logística","role":"logistica"},"fields":[{"id":"instructions","apiName":"instructions","type":"textarea"}],"phases":[{"id":"waiting","label":"⏳ Aguardando a resposta","color":"#d79a12","position":1,"terminal":false,"initial":false,"requiredFields":[],"allowedTransitions":["immediate_return"],"favoriteTransition":"immediate_return","active":true}]}}}]},"command_case_resolved":{"name":"command_case_resolved","title":"Chamado concluído","headers":{"type":"object","required":["x-ciclo-delivery-id","x-ciclo-event","x-ciclo-timestamp"],"properties":{"x-ciclo-delivery-id":{"type":"string","format":"uuid"},"x-ciclo-event":{"type":"string","const":"command_case_resolved"},"x-ciclo-timestamp":{"type":"string","format":"date-time"},"x-ciclo-signature":{"type":"string","description":"sha256=HMAC_SHA256(signing_secret, timestamp + '.' + corpo_bruto)"}}},"payload":{"type":"object","required":["event","created_at","data"],"properties":{"event":{"type":"string","const":"command_case_resolved"},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","required":["id","route_id","visit_task_id","customer_name","phase","updated_at"],"properties":{"id":{"type":"string","format":"uuid"},"route_id":{"type":"string","format":"uuid"},"visit_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}]},"visit_task_id":{"type":"string"},"conversation_id":{"anyOf":[{"type":"string","format":"uuid"},{"type":"null"}]},"customer_name":{"type":"string"},"vehicle_name":{"anyOf":[{"type":"string"},{"type":"null"}]},"collector_name":{"anyOf":[{"type":"string"},{"type":"null"}]},"phase":{"type":"string"},"from_phase":{"anyOf":[{"type":"string"},{"type":"null"}]},"to_phase":{"type":"string"},"workflow_revision":{"anyOf":[{"type":"integer"},{"type":"null"}]},"field_values":{"type":"object","additionalProperties":{"type":"string"}},"phase_definition":{"anyOf":[{"type":"object","additionalProperties":true},{"type":"null"}]},"available_transitions":{"type":"array","items":{"type":"object","additionalProperties":true}},"outcome":{"anyOf":[{"type":"string"},{"type":"null"}]},"instructions":{"anyOf":[{"type":"string"},{"type":"null"}]},"actor":{"type":"object","additionalProperties":true},"transition":{"type":"object","additionalProperties":true},"resolved_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}},"additionalProperties":true,"example":{"id":"case-id","route_id":"route-id","visit_task_id":"1554","customer_name":"Maria Silva","vehicle_name":"Carro 05","phase":"recovered","from_phase":"waiting","to_phase":"recovered","outcome":"recovered","resolved_at":"2026-07-28T14:10:00.000Z","updated_at":"2026-07-28T14:10:00.000Z"}}}},"examples":[{"payload":{"event":"command_case_resolved","created_at":"2026-07-28T14:00:00.000Z","data":{"id":"case-id","route_id":"route-id","visit_task_id":"1554","customer_name":"Maria Silva","vehicle_name":"Carro 05","phase":"recovered","from_phase":"waiting","to_phase":"recovered","outcome":"recovered","resolved_at":"2026-07-28T14:10:00.000Z","updated_at":"2026-07-28T14:10:00.000Z"}}}]},"webhook_created":{"name":"webhook_created","title":"Webhook criado","headers":{"type":"object","required":["x-ciclo-delivery-id","x-ciclo-event","x-ciclo-timestamp"],"properties":{"x-ciclo-delivery-id":{"type":"string","format":"uuid"},"x-ciclo-event":{"type":"string","const":"webhook_created"},"x-ciclo-timestamp":{"type":"string","format":"date-time"},"x-ciclo-signature":{"type":"string","description":"sha256=HMAC_SHA256(signing_secret, timestamp + '.' + corpo_bruto)"}}},"payload":{"type":"object","required":["event","created_at","data"],"properties":{"event":{"type":"string","const":"webhook_created"},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","additionalProperties":true}}}},"webhook_updated":{"name":"webhook_updated","title":"Webhook atualizado","headers":{"type":"object","required":["x-ciclo-delivery-id","x-ciclo-event","x-ciclo-timestamp"],"properties":{"x-ciclo-delivery-id":{"type":"string","format":"uuid"},"x-ciclo-event":{"type":"string","const":"webhook_updated"},"x-ciclo-timestamp":{"type":"string","format":"date-time"},"x-ciclo-signature":{"type":"string","description":"sha256=HMAC_SHA256(signing_secret, timestamp + '.' + corpo_bruto)"}}},"payload":{"type":"object","required":["event","created_at","data"],"properties":{"event":{"type":"string","const":"webhook_updated"},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","additionalProperties":true}}}},"webhook_deleted":{"name":"webhook_deleted","title":"Webhook excluído","headers":{"type":"object","required":["x-ciclo-delivery-id","x-ciclo-event","x-ciclo-timestamp"],"properties":{"x-ciclo-delivery-id":{"type":"string","format":"uuid"},"x-ciclo-event":{"type":"string","const":"webhook_deleted"},"x-ciclo-timestamp":{"type":"string","format":"date-time"},"x-ciclo-signature":{"type":"string","description":"sha256=HMAC_SHA256(signing_secret, timestamp + '.' + corpo_bruto)"}}},"payload":{"type":"object","required":["event","created_at","data"],"properties":{"event":{"type":"string","const":"webhook_deleted"},"created_at":{"type":"string","format":"date-time"},"data":{"type":"object","additionalProperties":true}}}}}}}