{"openapi":"3.1.0","info":{"title":"wapp-personal-go","version":"0.1.0"},"paths":{"/webhook/evolution-go":{"post":{"tags":["webhook"],"summary":"Receive Evolution Webhook","description":"Main Evolution webhook endpoint — multi-tenant hot path.\n\nResolution order:\n1. If a ``TenantGatewayResolver`` is on ``app.state`` and the payload\n   carries an ``instance_token``, resolve the tenant from the DB.\n2. Auth is implicit when a tenant is resolved (the token itself proved\n   ownership). When a resolver is present and the payload carries an\n   ``instance_token`` that does not match any tenant, reject with 401.\n   Otherwise fall back to the legacy global token check.\n3. ``connection.update`` events are handled before auth and return early.\n4. Message processing runs inside ``with_tenant`` when a tenant is known,\n   which sets RLS GUCs and warms the per-request settings cache.","operationId":"receive_evolution_webhook_webhook_evolution_go_post","parameters":[{"name":"token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token"}},{"name":"x-webhook-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Webhook-Token"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvolutionWebhookPayload"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"},"title":"Response Receive Evolution Webhook Webhook Evolution Go Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/webhooks/asaas":{"post":{"tags":["billing-webhook"],"summary":"Receive Asaas Webhook","description":"Process Asaas billing events and sync subscriptions + accounts.status.","operationId":"receive_asaas_webhook_webhooks_asaas_post","parameters":[{"name":"authToken","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Authtoken"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":true,"title":"Body"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"type":"object","additionalProperties":{"type":"string"},"title":"Response Receive Asaas Webhook Webhooks Asaas Post"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/panel/auth/signup":{"post":{"tags":["auth"],"summary":"Signup","description":"Register a new tenant account (status ``trialing``) + default settings.","operationId":"signup_panel_auth_signup_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SignupRequest"}}},"required":true},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/panel/auth/login":{"post":{"tags":["auth"],"summary":"Login","description":"Authenticate with email/password and start a session.","operationId":"login_panel_auth_login_post","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LoginRequest"}}},"required":true},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/panel/auth/me":{"get":{"tags":["auth"],"summary":"Me","description":"Return the authenticated account (protected route smoke test).","operationId":"me_panel_auth_me_get","parameters":[{"name":"auth_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AuthAccountResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/panel/auth/logout":{"post":{"tags":["auth"],"summary":"Logout","description":"Clear the session cookie.","operationId":"logout_panel_auth_logout_post","responses":{"204":{"description":"Successful Response"}}}},"/panel/account/delete-request":{"post":{"tags":["account"],"summary":"Delete Request","operationId":"delete_request_panel_account_delete_request_post","parameters":[{"name":"auth_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeletionRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/panel/account/cancel-delete-request":{"post":{"tags":["account"],"summary":"Cancel Delete Request","operationId":"cancel_delete_request_panel_account_cancel_delete_request_post","parameters":[{"name":"auth_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeletionRequestResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/panel/billing/status":{"get":{"tags":["billing"],"summary":"Billing Status","description":"Return subscription + account billing status for the logged-in tenant.","operationId":"billing_status_panel_billing_status_get","parameters":[{"name":"auth_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BillingStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/panel/billing/checkout":{"post":{"tags":["billing"],"summary":"Billing Checkout","description":"Initiate Asaas Pix Automático checkout (redirect URL or QR payload).","operationId":"billing_checkout_panel_billing_checkout_post","parameters":[{"name":"auth_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CheckoutResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/panel/onboarding/whatsapp":{"post":{"tags":["onboarding"],"summary":"Start Whatsapp","description":"Create Evolution instance for the logged-in account and return QR code.","operationId":"start_whatsapp_panel_onboarding_whatsapp_post","parameters":[{"name":"auth_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth Session"}}],"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppStartResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/panel/onboarding/whatsapp/status":{"get":{"tags":["onboarding"],"summary":"Whatsapp Status","description":"Poll connection status from ``whatsapp_instances`` (updated by webhook).","operationId":"whatsapp_status_panel_onboarding_whatsapp_status_get","parameters":[{"name":"auth_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppStatusResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/panel/onboarding/whatsapp/qr":{"get":{"tags":["onboarding"],"summary":"Whatsapp Qr","description":"Refresh QR code for a pending or disconnected instance.","operationId":"whatsapp_qr_panel_onboarding_whatsapp_qr_get","parameters":[{"name":"auth_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WhatsAppStartResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/panel/config":{"get":{"tags":["config"],"summary":"Get Config","operationId":"get_config_panel_config_get","parameters":[{"name":"auth_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth Session"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PanelConfigResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"patch":{"tags":["config"],"summary":"Patch Config","operationId":"patch_config_panel_config_patch","parameters":[{"name":"auth_session","in":"cookie","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Auth Session"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PanelConfigPatchRequest"}}}},"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PanelConfigResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tasks":{"get":{"tags":["tasks"],"summary":"List Tasks","operationId":"list_tasks_tasks_get","parameters":[{"name":"user_id","in":"query","required":false,"schema":{"type":"string","default":"personal","title":"User Id"}},{"name":"include_completed","in":"query","required":false,"schema":{"type":"boolean","default":false,"title":"Include Completed"}},{"name":"x-account-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Account-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/TaskListResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}},"post":{"tags":["tasks"],"summary":"Create Task","operationId":"create_task_tasks_post","parameters":[{"name":"x-account-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Account-Id"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CreateTaskRequest"}}}},"responses":{"201":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Task"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/tasks/{task_id}/done":{"post":{"tags":["tasks"],"summary":"Complete Task","operationId":"complete_task_tasks__task_id__done_post","parameters":[{"name":"task_id","in":"path","required":true,"schema":{"type":"integer","title":"Task Id"}},{"name":"user_id","in":"query","required":false,"schema":{"type":"string","default":"personal","title":"User Id"}},{"name":"x-account-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Account-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Task"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/reminders/dispatch":{"post":{"tags":["reminders"],"summary":"Dispatch Reminders","operationId":"dispatch_reminders_reminders_dispatch_post","parameters":[{"name":"token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token"}},{"name":"x-webhook-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Webhook-Token"}},{"name":"x-account-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Account-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReminderDispatchResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/briefings/morning":{"post":{"tags":["briefings"],"summary":"Dispatch Morning","operationId":"dispatch_morning_briefings_morning_post","parameters":[{"name":"token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token"}},{"name":"x-webhook-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Webhook-Token"}},{"name":"x-account-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Account-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BriefingResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/briefings/evening":{"post":{"tags":["briefings"],"summary":"Dispatch Evening","operationId":"dispatch_evening_briefings_evening_post","parameters":[{"name":"token","in":"query","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Token"}},{"name":"x-webhook-token","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Webhook-Token"}},{"name":"x-account-id","in":"header","required":false,"schema":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"X-Account-Id"}}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BriefingResponse"}}}},"422":{"description":"Validation Error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HTTPValidationError"}}}}}}},"/health":{"get":{"summary":"Health","operationId":"health_health_get","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{}}}}}}}},"components":{"schemas":{"AuthAccountResponse":{"properties":{"account_id":{"type":"string","format":"uuid","title":"Account Id"},"email":{"type":"string","title":"Email"},"full_name":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Full Name"},"status":{"type":"string","title":"Status"}},"type":"object","required":["account_id","email","full_name","status"],"title":"AuthAccountResponse"},"BillingStatusResponse":{"properties":{"account_id":{"type":"string","format":"uuid","title":"Account Id"},"account_status":{"type":"string","title":"Account Status"},"subscription_status":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Subscription Status"},"provider":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Provider"},"plan":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Plan"},"trial_ends_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Trial Ends At"},"current_period_end":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Current Period End"}},"type":"object","required":["account_id","account_status","subscription_status","provider","plan","trial_ends_at","current_period_end"],"title":"BillingStatusResponse"},"BriefingResponse":{"properties":{"kind":{"type":"string","title":"Kind"},"sent":{"type":"boolean","title":"Sent"},"skipped":{"type":"boolean","title":"Skipped"},"reason":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Reason"}},"type":"object","required":["kind","sent","skipped"],"title":"BriefingResponse"},"CheckoutResponse":{"properties":{"payment_id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Payment Id"},"redirect_url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Redirect Url"},"pix_qr_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pix Qr Code"},"pix_copy_paste":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pix Copy Paste"},"mock":{"type":"boolean","title":"Mock","default":false}},"type":"object","required":["payment_id","redirect_url","pix_qr_code","pix_copy_paste"],"title":"CheckoutResponse"},"CreateTaskRequest":{"properties":{"text":{"type":"string","minLength":1,"title":"Text"},"user_id":{"type":"string","title":"User Id","default":"personal"}},"type":"object","required":["text"],"title":"CreateTaskRequest"},"DeletionRequestResponse":{"properties":{"account_id":{"type":"string","format":"uuid","title":"Account Id"},"status":{"type":"string","title":"Status"},"deleted_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Deleted At"},"grace_days":{"type":"integer","title":"Grace Days"}},"type":"object","required":["account_id","status","deleted_at","grace_days"],"title":"DeletionRequestResponse"},"EvolutionMessageData":{"properties":{"key":{"anyOf":[{"$ref":"#/components/schemas/EvolutionMessageKey"},{"type":"null"}]},"Info":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Info"},"ID":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"},"Sender":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Sender"},"Chat":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Chat"},"IsFromMe":{"type":"boolean","title":"Isfromme","default":false},"pushName":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Pushname"},"message":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Message"},"Message":{"anyOf":[{"additionalProperties":true,"type":"object"},{"type":"null"}],"title":"Message"}},"additionalProperties":true,"type":"object","title":"EvolutionMessageData"},"EvolutionMessageKey":{"properties":{"remoteJid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Remotejid"},"fromMe":{"type":"boolean","title":"Fromme","default":false},"id":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Id"}},"additionalProperties":true,"type":"object","title":"EvolutionMessageKey"},"EvolutionWebhookPayload":{"properties":{"event":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Event"},"instance":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Instance"},"instanceId":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Instanceid"},"instanceToken":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Instancetoken"},"data":{"anyOf":[{"$ref":"#/components/schemas/EvolutionMessageData"},{"type":"null"}]}},"additionalProperties":true,"type":"object","title":"EvolutionWebhookPayload"},"HTTPValidationError":{"properties":{"detail":{"items":{"$ref":"#/components/schemas/ValidationError"},"type":"array","title":"Detail"}},"type":"object","title":"HTTPValidationError"},"LoginRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"password":{"type":"string","minLength":1,"title":"Password"}},"type":"object","required":["email","password"],"title":"LoginRequest"},"PanelConfigPatchRequest":{"properties":{"timezone":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Timezone"},"briefing_morning_hour":{"anyOf":[{"type":"integer","maximum":23.0,"minimum":0.0},{"type":"null"}],"title":"Briefing Morning Hour"},"briefing_evening_hour":{"anyOf":[{"type":"integer","maximum":23.0,"minimum":0.0},{"type":"null"}],"title":"Briefing Evening Hour"},"briefing_tomorrow_hour":{"anyOf":[{"type":"integer","maximum":23.0,"minimum":0.0},{"type":"null"}],"title":"Briefing Tomorrow Hour"},"briefing_enabled":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Briefing Enabled"},"audio_consent":{"anyOf":[{"type":"boolean"},{"type":"null"}],"title":"Audio Consent"}},"type":"object","title":"PanelConfigPatchRequest"},"PanelConfigResponse":{"properties":{"timezone":{"type":"string","title":"Timezone"},"briefing_morning_hour":{"type":"integer","title":"Briefing Morning Hour"},"briefing_evening_hour":{"type":"integer","title":"Briefing Evening Hour"},"briefing_tomorrow_hour":{"type":"integer","title":"Briefing Tomorrow Hour"},"briefing_enabled":{"type":"boolean","title":"Briefing Enabled"},"audio_consent":{"type":"boolean","title":"Audio Consent"}},"type":"object","required":["timezone","briefing_morning_hour","briefing_evening_hour","briefing_tomorrow_hour","briefing_enabled","audio_consent"],"title":"PanelConfigResponse"},"ReminderDispatchResponse":{"properties":{"due":{"type":"integer","title":"Due"},"sent":{"type":"integer","title":"Sent"},"failed":{"type":"integer","title":"Failed"}},"type":"object","required":["due","sent","failed"],"title":"ReminderDispatchResponse"},"SessionResponse":{"properties":{"account":{"$ref":"#/components/schemas/AuthAccountResponse"}},"type":"object","required":["account"],"title":"SessionResponse"},"SignupRequest":{"properties":{"email":{"type":"string","format":"email","title":"Email"},"password":{"type":"string","minLength":8,"title":"Password"},"full_name":{"type":"string","minLength":1,"title":"Full Name"}},"type":"object","required":["email","password","full_name"],"title":"SignupRequest"},"Task":{"properties":{"id":{"type":"integer","title":"Id"},"user_id":{"type":"string","title":"User Id","default":""},"title":{"type":"string","title":"Title"},"status":{"type":"string","title":"Status","default":"pending"},"completed":{"type":"boolean","title":"Completed","default":false},"created_at":{"type":"string","format":"date-time","title":"Created At"},"completed_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Completed At"},"scheduled_for":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Scheduled For"},"recurring_task_id":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Recurring Task Id"},"next_reminder_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Next Reminder At"},"last_reminded_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Last Reminded At"},"snooze_count":{"type":"integer","title":"Snooze Count","default":0},"renag_interval_minutes":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Renag Interval Minutes"},"max_renags":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Max Renags"},"renag_count":{"type":"integer","title":"Renag Count","default":0},"tags":{"items":{"type":"string"},"type":"array","title":"Tags"},"priority":{"type":"string","title":"Priority","default":"normal"},"pinned":{"type":"boolean","title":"Pinned","default":false},"reminder_days_before":{"anyOf":[{"type":"integer"},{"type":"null"}],"title":"Reminder Days Before"}},"type":"object","required":["id","title"],"title":"Task"},"TaskListResponse":{"properties":{"tasks":{"items":{"$ref":"#/components/schemas/Task"},"type":"array","title":"Tasks"}},"type":"object","required":["tasks"],"title":"TaskListResponse"},"ValidationError":{"properties":{"loc":{"items":{"anyOf":[{"type":"string"},{"type":"integer"}]},"type":"array","title":"Location"},"msg":{"type":"string","title":"Message"},"type":{"type":"string","title":"Error Type"},"input":{"title":"Input"},"ctx":{"type":"object","title":"Context"}},"type":"object","required":["loc","msg","type"],"title":"ValidationError"},"WhatsAppStartResponse":{"properties":{"instance_name":{"type":"string","title":"Instance Name"},"status":{"type":"string","title":"Status","description":"pending|connected|disconnected|banned"},"owner_jid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner Jid"},"connected_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Connected At"},"qr_code":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Qr Code","description":"Base64 QR image (data URL) while status is pending"}},"type":"object","required":["instance_name","status"],"title":"WhatsAppStartResponse"},"WhatsAppStatusResponse":{"properties":{"instance_name":{"type":"string","title":"Instance Name"},"status":{"type":"string","title":"Status","description":"pending|connected|disconnected|banned"},"owner_jid":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Owner Jid"},"connected_at":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}],"title":"Connected At"}},"type":"object","required":["instance_name","status"],"title":"WhatsAppStatusResponse"}}}}