{"openapi":"3.1.0","info":{"title":"SES Email Adapter","version":"1.0.0"},"components":{"schemas":{"Account":{"type":"object","properties":{"accountId":{"type":"string"},"name":{"type":"string"},"retentionDuration":{"type":"string","enum":["P1M","P2M","P3M","P5M","P6M","P1Y","P2Y","P5Y","P10Y","P100Y","Infinity"]},"digest":{"type":"object","nullable":true,"properties":{"frequency":{"type":"string","enum":["daily","weekly","monthly"]},"forwardingTargetId":{"type":"string"}},"required":["frequency","forwardingTargetId"]},"filtering":{"$ref":"#/components/schemas/AccountFilteringConfig"},"onboarding":{"$ref":"#/components/schemas/AccountOnboarding"},"billingPlan":{"type":"string"},"afterSendAction":{"type":"string","enum":["archive","keep_active"]},"defaultCalendarInviteForwardingTargetId":{"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["accountId","name","filtering","createdAt","updatedAt"]},"AccountFilteringConfig":{"type":"object","properties":{"defaultUnknownSenderPolicy":{"type":"string","enum":["allow_all","quarantine_visible","quarantine_hidden","block_hidden","block_reject","report_violation"],"description":"Disposition applied to emails from senders not explicitly allowed, for any alias on this account that has no alias-level override. Defaults to \"quarantine_visible\" for accounts that have never explicitly set this value."}},"required":["defaultUnknownSenderPolicy"]},"AccountOnboarding":{"type":"object","properties":{"completed":{"type":"boolean"},"completedAt":{"type":"string"},"testEmailReceived":{"type":"boolean"},"testEmailReceivedAt":{"type":"string"}},"required":["completed"]},"ErrorResponse":{"type":"object","properties":{"title":{"type":"string"},"errorCode":{"type":"string","enum":["ACCOUNT_EXISTS","ACCOUNT_NOT_FOUND","ALIAS_EXISTS","ALIAS_NOT_FOUND","THREAD_NOT_FOUND","DOMAIN_EXISTS","DOMAIN_MISCONFIGURATION","DOMAIN_NOT_FOUND","DOMAIN_NOT_REGISTERED","FORWARDING_ADDRESS_NOT_FOUND","INVALID_CODE","INVALID_CONDITION","INVALID_EMAIL","INVALID_RECIPIENT_DOMAIN","INVALID_STATUS","INVALID_STATUS_TRANSITION","INVALID_TOKEN","INVALID_WEBHOOK_CONFIG","INVITE_CREATION_FAILED","LABEL_NOT_FOUND","MISSING_CODE","NOT_CALENDAR_EVENT","NO_ALIAS_ADDRESS","PLAN_FEATURE_REQUIRED","RSVP_SEND_FAILED","RULE_NOT_FOUND","SENDER_EXISTS","SENDER_NOT_FOUND","SYSTEM_RULE_IMMUTABLE","SIGNAL_ALREADY_SENT","SIGNAL_THREAD_MISMATCH","SIGNAL_NOT_DRAFT","SIGNAL_NOT_EDITABLE","SIGNAL_NOT_FOUND","SIGNAL_NOT_REVIEWABLE","TEMPLATE_NOT_FOUND","UNVERIFIED_FORWARD_TARGET","UNVERIFIED_CALENDAR_TARGET","TARGET_IN_USE","VIEW_NOT_FOUND"]},"details":{"nullable":true},"errorId":{"type":"string"}},"required":["title","errorId"]},"Pagination":{"type":"object","properties":{"cursor":{"type":"string","nullable":true}},"required":["cursor"]},"Thread":{"type":"object","properties":{"threadId":{"type":"string"},"workflow":{"type":"string","enum":["auth","conversation","crm","package","travel","payments","alert","content","onboarding","notice","healthcare","job","support","test","events"]},"labels":{"type":"array","items":{"type":"string"}},"status":{"type":"string","enum":["active","archived","deleted","report_violation"]},"summary":{"type":"string"},"lastSignalAt":{"type":"string"},"deletedAt":{"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"},"retentionDuration":{"type":"string","enum":["P1M","P2M","P3M","P5M","P6M","P1Y","P2Y","P5Y","P10Y","P100Y","Infinity"]},"urgency":{"type":"string","enum":["critical","high","normal","low","silent"]},"followupAt":{"type":"string","format":"date-time"},"senderAddress":{"type":"string"},"recipientAddress":{"type":"string"},"subject":{"type":"string"}},"required":["threadId","workflow","labels","status","summary","lastSignalAt","createdAt","updatedAt","senderAddress","recipientAddress","subject"]},"Signal":{"anyOf":[{"$ref":"#/components/schemas/EmailInboundSignal"},{"$ref":"#/components/schemas/EmailOutboundSignal"},{"$ref":"#/components/schemas/DeliverabilitySignal"},{"$ref":"#/components/schemas/InvalidRuleFunctionSignal"},{"$ref":"#/components/schemas/InvalidTemplateFunctionSignal"},{"$ref":"#/components/schemas/AutoSendBlockedSignal"},{"$ref":"#/components/schemas/CalendarEventSignal"},{"$ref":"#/components/schemas/CalendarResponseSignal"},{"$ref":"#/components/schemas/CalendarInviteInvalidSignal"},{"$ref":"#/components/schemas/DomainMisconfigurationSignal"}]},"EmailInboundSignal":{"type":"object","properties":{"signalId":{"type":"string"},"threadId":{"type":"string","nullable":true},"source":{"type":"string","enum":["system","user"]},"status":{"type":"string","enum":["active","block_hidden","block_reject","report_violation","quarantine_visible","quarantine_hidden","draft","pending_send","sent"]},"createdAt":{"type":"string"},"type":{"type":"string","enum":["email"]},"data":{"$ref":"#/components/schemas/InboundEmailSignalData"}},"required":["signalId","threadId","source","status","createdAt","type","data"]},"InboundEmailSignalData":{"type":"object","properties":{"receivedAt":{"type":"string"},"summary":{"type":"string"},"urgency":{"type":"string","enum":["critical","high","normal","low","silent"]},"from":{"$ref":"#/components/schemas/EmailAddress"},"to":{"type":"array","items":{"$ref":"#/components/schemas/EmailAddress"}},"cc":{"type":"array","items":{"$ref":"#/components/schemas/EmailAddress"}},"replyTo":{"$ref":"#/components/schemas/EmailAddress"},"subject":{"type":"string"},"body":{"type":"string"},"attachments":{"type":"array","items":{"$ref":"#/components/schemas/Attachment"}},"headers":{"type":"object","additionalProperties":{"type":"string"}},"recipientAddress":{"type":"string"},"workflow":{"type":"string","enum":["auth","conversation","crm","package","travel","payments","alert","content","onboarding","notice","healthcare","job","support","test","events"]},"workflowData":{"$ref":"#/components/schemas/WorkflowData"},"matchedRules":{"type":"array","items":{"$ref":"#/components/schemas/MatchedRuleResult"}},"unsubscribe":{"$ref":"#/components/schemas/UnsubscribeInfo"}},"required":["receivedAt","summary","from","to","cc","subject","attachments","headers","recipientAddress","workflow"]},"EmailAddress":{"type":"object","properties":{"address":{"type":"string"},"name":{"type":"string"}},"required":["address"]},"Attachment":{"type":"object","properties":{"attachmentId":{"type":"string"},"filename":{"type":"string"},"mimeType":{"type":"string"},"sizeBytes":{"type":"number"},"url":{"type":"string"}},"required":["attachmentId","filename","mimeType","sizeBytes"]},"WorkflowData":{"oneOf":[{"$ref":"#/components/schemas/AuthData"},{"$ref":"#/components/schemas/ConversationData"},{"$ref":"#/components/schemas/CrmData"},{"$ref":"#/components/schemas/PackageData"},{"$ref":"#/components/schemas/TravelData"},{"$ref":"#/components/schemas/PaymentsData"},{"$ref":"#/components/schemas/AlertData"},{"$ref":"#/components/schemas/ContentData"},{"$ref":"#/components/schemas/NoticeData"},{"$ref":"#/components/schemas/HealthcareData"},{"$ref":"#/components/schemas/JobData"},{"$ref":"#/components/schemas/SupportData"},{"$ref":"#/components/schemas/TestData"}],"discriminator":{"propertyName":"workflow","mapping":{"auth":"#/components/schemas/AuthData","conversation":"#/components/schemas/ConversationData","crm":"#/components/schemas/CrmData","package":"#/components/schemas/PackageData","travel":"#/components/schemas/TravelData","payments":"#/components/schemas/PaymentsData","alert":"#/components/schemas/AlertData","content":"#/components/schemas/ContentData","notice":"#/components/schemas/NoticeData","healthcare":"#/components/schemas/HealthcareData","job":"#/components/schemas/JobData","support":"#/components/schemas/SupportData","test":"#/components/schemas/TestData"}}},"AuthData":{"type":"object","properties":{"workflow":{"type":"string","enum":["auth"]},"authType":{"type":"string","enum":["otp","password_reset","magic_link","verification","two_factor","security_alert","other"]},"code":{"type":"string"},"expiresInMinutes":{"type":"number"},"service":{"type":"string"},"actionUrl":{"type":"string"}},"required":["workflow","authType","service"]},"ConversationData":{"type":"object","properties":{"workflow":{"type":"string","enum":["conversation"]},"sentiment":{"type":"string","enum":["positive","neutral","negative","urgent"]},"requiresReply":{"type":"boolean"}},"required":["workflow","sentiment","requiresReply"]},"CrmData":{"type":"object","properties":{"workflow":{"type":"string","enum":["crm"]},"senderCompany":{"type":"string"},"senderRole":{"type":"string"}},"required":["workflow"]},"PackageData":{"type":"object","properties":{"workflow":{"type":"string","enum":["package"]},"packageType":{"type":"string","enum":["confirmation","shipping","out_for_delivery","delivered","return","refund","cancellation"]},"retailer":{"type":"string"},"orderNumber":{"type":"string"},"trackingNumber":{"type":"string"},"trackingUrl":{"type":"string"},"estimatedDelivery":{"type":"string"},"items":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"},"quantity":{"type":"number"},"price":{"type":"number"}},"required":["name","quantity"]}}},"required":["workflow","packageType","retailer"]},"TravelData":{"type":"object","properties":{"workflow":{"type":"string","enum":["travel"]},"travelType":{"type":"string","enum":["flight","hotel","car_rental","train","cruise","activity","itinerary","check_in_reminder","boarding_pass"]},"provider":{"type":"string"},"confirmationNumber":{"type":"string"},"departureDate":{"type":"string"},"returnDate":{"type":"string"},"origin":{"type":"string"},"destination":{"type":"string"},"passengers":{"type":"array","items":{"type":"object","properties":{"name":{"type":"string"}},"required":["name"]}},"totalAmount":{"type":"number"},"currency":{"type":"string"}},"required":["workflow","travelType","provider"]},"PaymentsData":{"type":"object","properties":{"workflow":{"type":"string","enum":["payments"]},"paymentType":{"type":"string","enum":["invoice","receipt","subscription_renewal","payment_failed","plan_changed","tax","wire_transfer","refund","statement","other"]},"vendor":{"type":"string"},"amount":{"type":"number"},"currency":{"type":"string"},"dueDate":{"type":"string"},"invoiceNumber":{"type":"string"},"accountLastFour":{"type":"string"},"downloadUrl":{"type":"string"},"managementUrl":{"type":"string"}},"required":["workflow","paymentType","vendor"]},"AlertData":{"type":"object","properties":{"workflow":{"type":"string","enum":["alert"]},"alertType":{"type":"string","enum":["suspicious_login","new_device","password_changed","breach_notice","api_key_exposed","account_locked","fraud_alert","ci_failure","deployment_failed","error_spike","domain_expiry","cert_expiry","security_scan","other"]},"service":{"type":"string"},"severity":{"type":"string","enum":["info","warning","critical"]},"requiresAction":{"type":"boolean"},"actionUrl":{"type":"string"},"ipAddress":{"type":"string"},"location":{"type":"string"},"deviceName":{"type":"string"},"repository":{"type":"string"},"errorMessage":{"type":"string"}},"required":["workflow","alertType","service","requiresAction"]},"ContentData":{"type":"object","properties":{"workflow":{"type":"string","enum":["content"]},"contentType":{"type":"string","enum":["newsletter","promotion","social_digest","product_update","announcement"]},"publisher":{"type":"string"},"topics":{"type":"array","items":{"type":"string"}},"discountCode":{"type":"string"},"discountAmount":{"type":"string"},"expiryDate":{"type":"string"}},"required":["workflow","contentType","publisher"]},"NoticeData":{"type":"object","properties":{"workflow":{"type":"string","enum":["notice"]},"noticeType":{"type":"string","enum":["terms_update","privacy_policy","data_processor","cookie_policy","compliance","service_notice","government","account_notification","security_awareness","other"]},"provider":{"type":"string"},"effectiveDate":{"type":"string"},"referenceNumber":{"type":"string"},"documentUrl":{"type":"string"}},"required":["workflow","noticeType","provider"]},"HealthcareData":{"type":"object","properties":{"workflow":{"type":"string","enum":["healthcare"]},"eventType":{"type":"string","enum":["appointment_reminder","appointment_confirmation","test_results","prescription","insurance_update","billing","referral"]},"provider":{"type":"string"},"appointmentDate":{"type":"string"},"location":{"type":"string"},"requiresAction":{"type":"boolean"},"portalUrl":{"type":"string"}},"required":["workflow","eventType","requiresAction"]},"JobData":{"type":"object","properties":{"workflow":{"type":"string","enum":["job"]},"jobType":{"type":"string","enum":["application_status","recruiter_outreach","interview_request","offer","rejection","job_posting"]},"company":{"type":"string"},"role":{"type":"string"},"location":{"type":"string"},"salary":{"type":"string"},"interviewDate":{"type":"string"},"applicationStatus":{"type":"string","enum":["submitted","reviewing","interview","offer","rejected"]},"actionUrl":{"type":"string"}},"required":["workflow","jobType"]},"SupportData":{"type":"object","properties":{"workflow":{"type":"string","enum":["support"]},"eventType":{"type":"string","enum":["ticket_opened","ticket_updated","ticket_resolved","ticket_closed","awaiting_response","status_update"]},"ticketId":{"type":"string"},"service":{"type":"string"},"priority":{"type":"string","enum":["low","normal","high","urgent"]},"agentName":{"type":"string"},"responseUrl":{"type":"string"}},"required":["workflow","eventType","service"]},"TestData":{"type":"object","properties":{"workflow":{"type":"string","enum":["test"]},"triggeredBy":{"type":"string","enum":["user","system"]}},"required":["workflow","triggeredBy"]},"MatchedRuleResult":{"type":"object","properties":{"ruleId":{"type":"string"},"actions":{"type":"array","items":{"$ref":"#/components/schemas/MatchedRuleAction"}},"labelsAdded":{"type":"array","items":{"type":"string"}},"statusChange":{"type":"string"},"text":{"type":"string"}},"required":["ruleId","actions","labelsAdded"]},"MatchedRuleAction":{"type":"object","properties":{"type":{"type":"string","enum":["assign_label","assign_workflow","archive","forward","block_hidden","block_reject","quarantine_visible","quarantine_hidden","set_urgency","suppress_notification","pong","approve_sender","auto_draft","forwardCalendarInvite"]},"value":{"type":"string"}},"required":["type"]},"UnsubscribeInfo":{"type":"object","properties":{"type":{"type":"string","enum":["server","website","mailto"]},"url":{"type":"string"}},"required":["type","url"]},"EmailOutboundSignal":{"type":"object","properties":{"signalId":{"type":"string"},"threadId":{"type":"string","nullable":true},"source":{"type":"string","enum":["system","user"]},"status":{"type":"string","enum":["active","block_hidden","block_reject","report_violation","quarantine_visible","quarantine_hidden","draft","pending_send","sent"]},"createdAt":{"type":"string"},"type":{"type":"string","enum":["email"]},"data":{"$ref":"#/components/schemas/OutboundEmailSignalData"}},"required":["signalId","threadId","source","status","createdAt","type","data"]},"OutboundEmailSignalData":{"type":"object","properties":{"from":{"$ref":"#/components/schemas/EmailAddress"},"to":{"type":"array","items":{"$ref":"#/components/schemas/EmailAddress"}},"cc":{"type":"array","items":{"$ref":"#/components/schemas/EmailAddress"}},"bcc":{"type":"array","items":{"$ref":"#/components/schemas/EmailAddress"}},"replyTo":{"$ref":"#/components/schemas/EmailAddress"},"subject":{"type":"string"},"body":{"type":"string"},"attachments":{"type":"array","items":{"$ref":"#/components/schemas/Attachment"}},"sentAt":{"type":"string"},"sendInitiatedAt":{"type":"string"},"sendFailureReason":{"type":"string"}},"required":["from","to","cc","bcc","subject","attachments","sendInitiatedAt"]},"DeliverabilitySignal":{"type":"object","properties":{"signalId":{"type":"string"},"threadId":{"type":"string","nullable":true},"source":{"type":"string","enum":["system","user"]},"status":{"type":"string","enum":["active","block_hidden","block_reject","report_violation","quarantine_visible","quarantine_hidden","draft","pending_send","sent"]},"createdAt":{"type":"string"},"type":{"type":"string","enum":["deliverability"]},"data":{"$ref":"#/components/schemas/DeliverabilitySignalData"}},"required":["signalId","threadId","source","status","createdAt","type","data"]},"DeliverabilitySignalData":{"type":"object","properties":{"linkedSignalId":{"type":"string"},"bouncedRecipients":{"type":"array","items":{"type":"object","properties":{"address":{"type":"string"},"bounceType":{"type":"string","enum":["permanent","transient"]},"reason":{"type":"string"}},"required":["address","bounceType"]}},"subject":{"type":"string"}},"required":["linkedSignalId","bouncedRecipients","subject"]},"InvalidRuleFunctionSignal":{"type":"object","properties":{"signalId":{"type":"string"},"threadId":{"type":"string","nullable":true},"source":{"type":"string","enum":["system","user"]},"status":{"type":"string","enum":["active","block_hidden","block_reject","report_violation","quarantine_visible","quarantine_hidden","draft","pending_send","sent"]},"createdAt":{"type":"string"},"type":{"type":"string","enum":["invalid_rule_function"]},"data":{"$ref":"#/components/schemas/InvalidRuleFunctionData"}},"required":["signalId","threadId","source","status","createdAt","type","data"]},"InvalidRuleFunctionData":{"type":"object","properties":{"resourceName":{"type":"string"},"issue":{"type":"string"}},"required":["resourceName","issue"]},"InvalidTemplateFunctionSignal":{"type":"object","properties":{"signalId":{"type":"string"},"threadId":{"type":"string","nullable":true},"source":{"type":"string","enum":["system","user"]},"status":{"type":"string","enum":["active","block_hidden","block_reject","report_violation","quarantine_visible","quarantine_hidden","draft","pending_send","sent"]},"createdAt":{"type":"string"},"type":{"type":"string","enum":["invalid_template_function"]},"data":{"$ref":"#/components/schemas/InvalidTemplateFunctionData"}},"required":["signalId","threadId","source","status","createdAt","type","data"]},"InvalidTemplateFunctionData":{"type":"object","properties":{"resourceName":{"type":"string"},"functionName":{"type":"string"},"issue":{"type":"string"}},"required":["resourceName","functionName","issue"]},"AutoSendBlockedSignal":{"type":"object","properties":{"signalId":{"type":"string"},"threadId":{"type":"string","nullable":true},"source":{"type":"string","enum":["system","user"]},"status":{"type":"string","enum":["active","block_hidden","block_reject","report_violation","quarantine_visible","quarantine_hidden","draft","pending_send","sent"]},"createdAt":{"type":"string"},"type":{"type":"string","enum":["auto_send_blocked"]},"data":{"$ref":"#/components/schemas/AutoSendBlockedData"}},"required":["signalId","threadId","source","status","createdAt","type","data"]},"AutoSendBlockedData":{"type":"object","properties":{"recipientAddress":{"type":"string"},"reason":{"type":"string"}},"required":["recipientAddress"]},"CalendarEventSignal":{"type":"object","properties":{"signalId":{"type":"string"},"threadId":{"type":"string","nullable":true},"source":{"type":"string","enum":["system","user"]},"status":{"type":"string","enum":["active","block_hidden","block_reject","report_violation","quarantine_visible","quarantine_hidden","draft","pending_send","sent"]},"createdAt":{"type":"string"},"type":{"type":"string","enum":["calendar_event"]},"data":{"$ref":"#/components/schemas/CalendarEventData"}},"required":["signalId","threadId","source","status","createdAt","type","data"]},"CalendarEventData":{"type":"object","properties":{"title":{"type":"string"},"description":{"type":"string"},"startTime":{"type":"string"},"endTime":{"type":"string"},"location":{"type":"string"},"url":{"type":"string"},"organizer":{"type":"string"},"organizerName":{"type":"string"},"attendees":{"type":"array","items":{"$ref":"#/components/schemas/CalendarAttendee"}},"linkedSignalId":{"type":"string"}},"required":["title","startTime","organizer","attendees","linkedSignalId"]},"CalendarAttendee":{"type":"object","properties":{"address":{"type":"string"},"name":{"type":"string"},"rsvpStatus":{"type":"string"},"optional":{"type":"boolean"}},"required":["address"]},"CalendarResponseSignal":{"type":"object","properties":{"signalId":{"type":"string"},"threadId":{"type":"string","nullable":true},"source":{"type":"string","enum":["system","user"]},"status":{"type":"string","enum":["active","block_hidden","block_reject","report_violation","quarantine_visible","quarantine_hidden","draft","pending_send","sent"]},"createdAt":{"type":"string"},"type":{"type":"string","enum":["calendar_response"]},"data":{"$ref":"#/components/schemas/CalendarResponseData"}},"required":["signalId","threadId","source","status","createdAt","type","data"]},"CalendarResponseData":{"type":"object","properties":{"rsvpResponse":{"type":"string","enum":["accepted","declined","tentative"]},"respondedAt":{"type":"string"},"linkedSignalId":{"type":"string"}},"required":["rsvpResponse","respondedAt","linkedSignalId"]},"CalendarInviteInvalidSignal":{"type":"object","properties":{"signalId":{"type":"string"},"threadId":{"type":"string","nullable":true},"source":{"type":"string","enum":["system","user"]},"status":{"type":"string","enum":["active","block_hidden","block_reject","report_violation","quarantine_visible","quarantine_hidden","draft","pending_send","sent"]},"createdAt":{"type":"string"},"type":{"type":"string","enum":["calendar_invite_invalid"]},"data":{"$ref":"#/components/schemas/CalendarInviteInvalidData"}},"required":["signalId","threadId","source","status","createdAt","type","data"]},"CalendarInviteInvalidData":{"type":"object","properties":{"reason":{"type":"string"},"linkedSignalId":{"type":"string"}},"required":["reason","linkedSignalId"]},"DomainMisconfigurationSignal":{"type":"object","properties":{"signalId":{"type":"string"},"threadId":{"type":"string","nullable":true},"source":{"type":"string","enum":["system","user"]},"status":{"type":"string","enum":["active","block_hidden","block_reject","report_violation","quarantine_visible","quarantine_hidden","draft","pending_send","sent"]},"createdAt":{"type":"string"},"type":{"type":"string","enum":["domain_misconfiguration"]},"data":{"$ref":"#/components/schemas/DomainMisconfigurationData"}},"required":["signalId","threadId","source","status","createdAt","type","data"]},"DomainMisconfigurationData":{"type":"object","properties":{"reason":{"type":"string"},"linkedSignalId":{"type":"string"},"aliasAddress":{"type":"string"},"domain":{"type":"string"}},"required":["reason","linkedSignalId","aliasAddress","domain"]},"Resource":{"type":"object","properties":{"resourceId":{"type":"string"},"threadId":{"type":"string"},"workflow":{"type":"string","enum":["auth","conversation","crm","package","travel","payments","alert","content","onboarding","notice","healthcare","job","support","test","events"]},"status":{"type":"string","enum":["active","complete"]},"expectedResolutionDate":{"type":"string"},"resolvedAt":{"type":"string"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["resourceId","threadId","workflow","status","expectedResolutionDate","createdAt","updatedAt"]},"View":{"type":"object","properties":{"viewId":{"type":"string"},"name":{"type":"string"},"icon":{"type":"string"},"color":{"type":"string"},"workflow":{"type":"string","enum":["auth","conversation","crm","package","travel","payments","alert","content","onboarding","notice","healthcare","job","support","test","events"]},"labels":{"type":"array","items":{"type":"string"}},"sortField":{"type":"string","enum":["lastSignalAt","createdAt"]},"sortDirection":{"type":"string","enum":["asc","desc"]},"position":{"type":"number"},"layout":{"type":"array","items":{"nullable":true}},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["viewId","name","labels","sortField","sortDirection","position","createdAt","updatedAt"]},"Label":{"type":"object","properties":{"label":{"type":"string"},"name":{"type":"string"},"color":{"type":"string"},"icon":{"type":"string"},"createdAt":{"type":"string"}},"required":["label","name","createdAt"]},"Rule":{"type":"object","properties":{"ruleId":{"type":"string"},"name":{"type":"string"},"condition":{"type":"string"},"conditionType":{"type":"string","enum":["json_logic","js"]},"actions":{"type":"array","items":{"$ref":"#/components/schemas/RuleAction"}},"status":{"type":"string","enum":["enabled","disabled"]},"priorityOrder":{"type":"number"},"type":{"type":"string","enum":["IMMUTABLE"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["ruleId","name","actions","status","priorityOrder","createdAt","updatedAt"]},"RuleAction":{"type":"object","properties":{"type":{"type":"string","enum":["assign_label","assign_workflow","archive","forward","block_hidden","block_reject","quarantine_visible","quarantine_hidden","set_urgency","suppress_notification","pong","approve_sender","auto_draft","forwardCalendarInvite"]},"value":{"type":"string"}},"required":["type"]},"Domain":{"type":"object","properties":{"domainId":{"type":"string"},"domain":{"type":"string"},"receivingSetupComplete":{"type":"boolean"},"senderSetupComplete":{"type":"boolean"},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["domainId","domain","receivingSetupComplete","senderSetupComplete","createdAt","updatedAt"]},"DomainWithRecords":{"allOf":[{"$ref":"#/components/schemas/Domain"},{"type":"object","properties":{"records":{"type":"array","items":{"$ref":"#/components/schemas/DnsRecord"}}},"required":["records"]}]},"DnsRecord":{"type":"object","properties":{"name":{"type":"string"},"type":{"type":"string","enum":["CNAME","MX","TXT"]},"value":{"type":"string"},"currentValue":{"type":"string"},"status":{"type":"string","enum":["verified","failing","pending"]}},"required":["name","type","value","status"]},"Alias":{"type":"object","properties":{"alias":{"type":"string"},"unknownSenderPolicy":{"type":"string","enum":["allow_all","quarantine_visible","quarantine_hidden","block_hidden","block_reject","report_violation"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["alias","unknownSenderPolicy","createdAt","updatedAt"]},"AliasSender":{"type":"object","properties":{"alias":{"type":"string"},"sender":{"type":"string"},"policy":{"type":"string","enum":["allow","block_hidden","block_reject","report_violation"]},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["alias","sender","policy","createdAt","updatedAt"]},"ForwardingTarget":{"type":"object","properties":{"target":{"type":"string"},"type":{"type":"string","enum":["email","webhook"]},"status":{"type":"string","enum":["pending","verified","disabled"]},"createdAt":{"type":"string"},"verifiedAt":{"type":"string"}},"required":["target","type","status","createdAt"]},"EmailTemplate":{"type":"object","properties":{"templateId":{"type":"string"},"name":{"type":"string"},"subject":{"type":"string"},"body":{"type":"string"},"functions":{"type":"array","items":{"$ref":"#/components/schemas/TemplateFunction"}},"createdAt":{"type":"string"},"updatedAt":{"type":"string"}},"required":["templateId","name","subject","body","createdAt","updatedAt"]},"TemplateFunction":{"type":"object","properties":{"name":{"type":"string"},"code":{"type":"string"},"lastError":{"type":"string"}},"required":["name","code"]}},"parameters":{}},"paths":{"/accounts":{"get":{"tags":["Accounts"],"responses":{"200":{"description":"List accounts","content":{"application/json":{"schema":{"type":"object","properties":{"accounts":{"type":"array","items":{"$ref":"#/components/schemas/Account"}}},"required":["accounts"]}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"501":{"description":"Not implemented","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"post":{"tags":["Accounts"],"responses":{"201":{"description":"Account created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Account"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"501":{"description":"Not implemented","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/accounts/{accountId}":{"get":{"tags":["Accounts"],"parameters":[{"schema":{"type":"string"},"required":true,"name":"accountId","in":"path"}],"responses":{"200":{"description":"Get account","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Account"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"501":{"description":"Not implemented","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"patch":{"tags":["Accounts"],"parameters":[{"schema":{"type":"string"},"required":true,"name":"accountId","in":"path"}],"responses":{"200":{"description":"Update account","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Account"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"501":{"description":"Not implemented","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/accounts/{accountId}/stats":{"get":{"tags":["Accounts"],"parameters":[{"schema":{"type":"string"},"required":true,"name":"accountId","in":"path"}],"responses":{"200":{"description":"Get stats","content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"501":{"description":"Not implemented","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/accounts/{accountId}/users":{"get":{"tags":["Users"],"parameters":[{"schema":{"type":"string"},"required":true,"name":"accountId","in":"path"}],"responses":{"200":{"description":"List users","content":{"application/json":{"schema":{"type":"object","properties":{"users":{"type":"array","items":{"type":"object","properties":{"userId":{"type":"string"},"role":{"type":"string"},"name":{"type":"string"},"email":{"type":"string"},"picture":{"type":"string"}},"required":["userId","role"]}},"pagination":{"$ref":"#/components/schemas/Pagination"}},"required":["users","pagination"]}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"501":{"description":"Not implemented","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"post":{"tags":["Users"],"parameters":[{"schema":{"type":"string"},"required":true,"name":"accountId","in":"path"}],"responses":{"201":{"description":"User invited"},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"501":{"description":"Not implemented","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/accounts/{accountId}/users/{userId}":{"patch":{"tags":["Users"],"parameters":[{"schema":{"type":"string"},"required":true,"name":"accountId","in":"path"},{"schema":{"type":"string"},"required":true,"name":"userId","in":"path"}],"responses":{"200":{"description":"Update user role","content":{"application/json":{"schema":{"type":"object","properties":{"userId":{"type":"string"},"role":{"type":"string"}},"required":["userId","role"]}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"501":{"description":"Not implemented","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"delete":{"tags":["Users"],"parameters":[{"schema":{"type":"string"},"required":true,"name":"accountId","in":"path"},{"schema":{"type":"string"},"required":true,"name":"userId","in":"path"}],"responses":{"204":{"description":"User removed"},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"501":{"description":"Not implemented","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/accounts/{accountId}/threads":{"get":{"tags":["Threads"],"parameters":[{"schema":{"type":"string"},"required":true,"name":"accountId","in":"path"},{"schema":{"type":"string"},"required":false,"name":"workflow","in":"query"},{"schema":{"type":"string"},"required":false,"name":"label","in":"query"},{"schema":{"type":"string"},"required":false,"name":"status","in":"query"},{"schema":{"type":"string"},"required":false,"name":"cursor","in":"query"},{"schema":{"type":"string"},"required":false,"name":"limit","in":"query"},{"schema":{"type":"string"},"required":false,"name":"q","in":"query"}],"responses":{"200":{"description":"List threads","content":{"application/json":{"schema":{"type":"object","properties":{"threads":{"type":"array","items":{"$ref":"#/components/schemas/Thread"}},"pagination":{"$ref":"#/components/schemas/Pagination"}},"required":["threads","pagination"]}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"501":{"description":"Not implemented","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/accounts/{accountId}/threads/{threadId}":{"get":{"tags":["Threads"],"parameters":[{"schema":{"type":"string"},"required":true,"name":"accountId","in":"path"},{"schema":{"type":"string"},"required":true,"name":"threadId","in":"path"}],"responses":{"200":{"description":"Get thread","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Thread"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"501":{"description":"Not implemented","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"patch":{"tags":["Threads"],"parameters":[{"schema":{"type":"string"},"required":true,"name":"accountId","in":"path"},{"schema":{"type":"string"},"required":true,"name":"threadId","in":"path"}],"responses":{"200":{"description":"Update thread","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Thread"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"501":{"description":"Not implemented","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/accounts/{accountId}/threads/{threadId}/signals":{"get":{"tags":["Threads"],"parameters":[{"schema":{"type":"string"},"required":true,"name":"accountId","in":"path"},{"schema":{"type":"string"},"required":true,"name":"threadId","in":"path"},{"schema":{"type":"string"},"required":false,"name":"cursor","in":"query"},{"schema":{"type":"string"},"required":false,"name":"limit","in":"query"}],"responses":{"200":{"description":"List signals for thread","content":{"application/json":{"schema":{"type":"object","properties":{"signals":{"type":"array","items":{"$ref":"#/components/schemas/Signal"}},"pagination":{"$ref":"#/components/schemas/Pagination"}},"required":["signals","pagination"]}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"501":{"description":"Not implemented","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"post":{"tags":["Threads"],"parameters":[{"schema":{"type":"string"},"required":true,"name":"accountId","in":"path"},{"schema":{"type":"string"},"required":true,"name":"threadId","in":"path"}],"responses":{"201":{"description":"Create draft signal","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Signal"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"501":{"description":"Not implemented","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/accounts/{accountId}/threads/{threadId}/signals/{id}":{"put":{"tags":["Threads"],"parameters":[{"schema":{"type":"string"},"required":true,"name":"accountId","in":"path"},{"schema":{"type":"string"},"required":true,"name":"threadId","in":"path"},{"schema":{"type":"string"},"required":true,"name":"id","in":"path"}],"responses":{"200":{"description":"Replace draft signal","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Signal"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"501":{"description":"Not implemented","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"get":{"tags":["Threads"],"parameters":[{"schema":{"type":"string"},"required":true,"name":"accountId","in":"path"},{"schema":{"type":"string"},"required":true,"name":"threadId","in":"path"},{"schema":{"type":"string"},"required":true,"name":"id","in":"path"}],"responses":{"200":{"description":"Get signal","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Signal"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"501":{"description":"Not implemented","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"patch":{"tags":["Threads"],"parameters":[{"schema":{"type":"string"},"required":true,"name":"accountId","in":"path"},{"schema":{"type":"string"},"required":true,"name":"threadId","in":"path"},{"schema":{"type":"string"},"required":true,"name":"id","in":"path"}],"responses":{"200":{"description":"Update signal","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Signal"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"501":{"description":"Not implemented","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"delete":{"tags":["Threads"],"parameters":[{"schema":{"type":"string"},"required":true,"name":"accountId","in":"path"},{"schema":{"type":"string"},"required":true,"name":"threadId","in":"path"},{"schema":{"type":"string"},"required":true,"name":"id","in":"path"}],"responses":{"204":{"description":"Signal deleted"},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"501":{"description":"Not implemented","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/accounts/{accountId}/threads/{threadId}/signals/{id}/send":{"post":{"tags":["Threads"],"parameters":[{"schema":{"type":"string"},"required":true,"name":"accountId","in":"path"},{"schema":{"type":"string"},"required":true,"name":"threadId","in":"path"},{"schema":{"type":"string"},"required":true,"name":"id","in":"path"}],"responses":{"200":{"description":"Send draft signal","content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"501":{"description":"Not implemented","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/accounts/{accountId}/threads/{threadId}/unsubscribe":{"post":{"tags":["Threads"],"parameters":[{"schema":{"type":"string"},"required":true,"name":"accountId","in":"path"},{"schema":{"type":"string"},"required":true,"name":"threadId","in":"path"}],"responses":{"200":{"description":"Unsubscribe initiated and thread archived","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string"},"url":{"type":"string"}},"required":["status"]}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"501":{"description":"Not implemented","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/accounts/{accountId}/threads/{threadId}/signals/{id}/rsvp":{"post":{"tags":["Threads"],"parameters":[{"schema":{"type":"string"},"required":true,"name":"accountId","in":"path"},{"schema":{"type":"string"},"required":true,"name":"threadId","in":"path"},{"schema":{"type":"string"},"required":true,"name":"id","in":"path"}],"responses":{"200":{"description":"RSVP to calendar invite","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Signal"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"501":{"description":"Not implemented","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/accounts/{accountId}/threads/{threadId}/signals/{id}/raw":{"get":{"tags":["Threads"],"parameters":[{"schema":{"type":"string"},"required":true,"name":"accountId","in":"path"},{"schema":{"type":"string"},"required":true,"name":"threadId","in":"path"},{"schema":{"type":"string"},"required":true,"name":"id","in":"path"}],"responses":{"307":{"description":"Redirect to presigned S3 URL for the raw email"},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"501":{"description":"Not implemented","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/accounts/{accountId}/threads/{threadId}/signals/{id}/reprocess":{"post":{"tags":["Admin"],"parameters":[{"schema":{"type":"string"},"required":true,"name":"accountId","in":"path"},{"schema":{"type":"string"},"required":true,"name":"threadId","in":"path"},{"schema":{"type":"string"},"required":true,"name":"id","in":"path"}],"responses":{"200":{"description":"Signal reprocessed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Signal"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"501":{"description":"Not implemented","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/accounts/{accountId}/resources":{"get":{"tags":["Resources"],"parameters":[{"schema":{"type":"string"},"required":true,"name":"accountId","in":"path"},{"schema":{"type":"string"},"required":true,"name":"workflow","in":"query"},{"schema":{"type":"string"},"required":false,"name":"status","in":"query"},{"schema":{"type":"string"},"required":false,"name":"dateFrom","in":"query"},{"schema":{"type":"string"},"required":false,"name":"dateTo","in":"query"},{"schema":{"type":"string"},"required":false,"name":"cursor","in":"query"},{"schema":{"type":"string"},"required":false,"name":"limit","in":"query"}],"responses":{"200":{"description":"List resources","content":{"application/json":{"schema":{"type":"object","properties":{"resources":{"type":"array","items":{"$ref":"#/components/schemas/Resource"}},"pagination":{"$ref":"#/components/schemas/Pagination"}},"required":["resources","pagination"]}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"501":{"description":"Not implemented","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/accounts/{accountId}/resources/{resourceId}":{"get":{"tags":["Resources"],"parameters":[{"schema":{"type":"string"},"required":true,"name":"accountId","in":"path"},{"schema":{"type":"string"},"required":true,"name":"resourceId","in":"path"}],"responses":{"200":{"description":"Get resource","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Resource"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"501":{"description":"Not implemented","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"patch":{"tags":["Resources"],"parameters":[{"schema":{"type":"string"},"required":true,"name":"accountId","in":"path"},{"schema":{"type":"string"},"required":true,"name":"resourceId","in":"path"}],"responses":{"200":{"description":"Update resource status","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Resource"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"501":{"description":"Not implemented","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/accounts/{accountId}/signals":{"get":{"tags":["Signals"],"parameters":[{"schema":{"type":"string"},"required":true,"name":"accountId","in":"path"},{"schema":{"type":"string"},"required":true,"name":"status","in":"query"},{"schema":{"type":"string"},"required":false,"name":"cursor","in":"query"},{"schema":{"type":"string"},"required":false,"name":"limit","in":"query"}],"responses":{"200":{"description":"List quarantined signals","content":{"application/json":{"schema":{"type":"object","properties":{"signals":{"type":"array","items":{"$ref":"#/components/schemas/Signal"}},"pagination":{"$ref":"#/components/schemas/Pagination"}},"required":["signals","pagination"]}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"501":{"description":"Not implemented","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/accounts/{accountId}/signals/{id}/quarantineResponse":{"post":{"tags":["Signals"],"parameters":[{"schema":{"type":"string"},"required":true,"name":"accountId","in":"path"},{"schema":{"type":"string"},"required":true,"name":"id","in":"path"}],"responses":{"200":{"description":"Quarantine response","content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"501":{"description":"Not implemented","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/accounts/{accountId}/views":{"get":{"tags":["Views"],"parameters":[{"schema":{"type":"string"},"required":true,"name":"accountId","in":"path"}],"responses":{"200":{"description":"List views","content":{"application/json":{"schema":{"type":"object","properties":{"views":{"type":"array","items":{"$ref":"#/components/schemas/View"}}},"required":["views"]}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"501":{"description":"Not implemented","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"post":{"tags":["Views"],"parameters":[{"schema":{"type":"string"},"required":true,"name":"accountId","in":"path"}],"responses":{"201":{"description":"View created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/View"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"501":{"description":"Not implemented","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/accounts/{accountId}/views/{id}":{"patch":{"tags":["Views"],"parameters":[{"schema":{"type":"string"},"required":true,"name":"accountId","in":"path"},{"schema":{"type":"string"},"required":true,"name":"id","in":"path"}],"responses":{"200":{"description":"Update view","content":{"application/json":{"schema":{"$ref":"#/components/schemas/View"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"501":{"description":"Not implemented","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"delete":{"tags":["Views"],"parameters":[{"schema":{"type":"string"},"required":true,"name":"accountId","in":"path"},{"schema":{"type":"string"},"required":true,"name":"id","in":"path"}],"responses":{"204":{"description":"View deleted"},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"501":{"description":"Not implemented","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/accounts/{accountId}/labels":{"get":{"tags":["Labels"],"parameters":[{"schema":{"type":"string"},"required":true,"name":"accountId","in":"path"}],"responses":{"200":{"description":"List labels","content":{"application/json":{"schema":{"type":"object","properties":{"labels":{"type":"array","items":{"$ref":"#/components/schemas/Label"}}},"required":["labels"]}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"501":{"description":"Not implemented","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"post":{"tags":["Labels"],"parameters":[{"schema":{"type":"string"},"required":true,"name":"accountId","in":"path"}],"responses":{"201":{"description":"Label created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Label"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"501":{"description":"Not implemented","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/accounts/{accountId}/labels/{id}":{"patch":{"tags":["Labels"],"parameters":[{"schema":{"type":"string"},"required":true,"name":"accountId","in":"path"},{"schema":{"type":"string"},"required":true,"name":"id","in":"path"}],"responses":{"200":{"description":"Update label","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Label"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"501":{"description":"Not implemented","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"delete":{"tags":["Labels"],"parameters":[{"schema":{"type":"string"},"required":true,"name":"accountId","in":"path"},{"schema":{"type":"string"},"required":true,"name":"id","in":"path"}],"responses":{"204":{"description":"Label deleted"},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"501":{"description":"Not implemented","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/accounts/{accountId}/rules":{"get":{"tags":["Rules"],"parameters":[{"schema":{"type":"string"},"required":true,"name":"accountId","in":"path"}],"responses":{"200":{"description":"List rules","content":{"application/json":{"schema":{"type":"object","properties":{"rules":{"type":"array","items":{"$ref":"#/components/schemas/Rule"}}},"required":["rules"]}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"501":{"description":"Not implemented","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"post":{"tags":["Rules"],"parameters":[{"schema":{"type":"string"},"required":true,"name":"accountId","in":"path"}],"responses":{"201":{"description":"Rule created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Rule"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"501":{"description":"Not implemented","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/accounts/{accountId}/rules/{id}":{"patch":{"tags":["Rules"],"parameters":[{"schema":{"type":"string"},"required":true,"name":"accountId","in":"path"},{"schema":{"type":"string"},"required":true,"name":"id","in":"path"}],"responses":{"200":{"description":"Update rule","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Rule"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"501":{"description":"Not implemented","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"delete":{"tags":["Rules"],"parameters":[{"schema":{"type":"string"},"required":true,"name":"accountId","in":"path"},{"schema":{"type":"string"},"required":true,"name":"id","in":"path"}],"responses":{"204":{"description":"Rule deleted"},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"501":{"description":"Not implemented","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/accounts/{accountId}/domains":{"get":{"tags":["Domains"],"parameters":[{"schema":{"type":"string"},"required":true,"name":"accountId","in":"path"}],"responses":{"200":{"description":"List domains","content":{"application/json":{"schema":{"type":"object","properties":{"domains":{"type":"array","items":{"$ref":"#/components/schemas/Domain"}}},"required":["domains"]}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"501":{"description":"Not implemented","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"post":{"tags":["Domains"],"parameters":[{"schema":{"type":"string"},"required":true,"name":"accountId","in":"path"}],"responses":{"201":{"description":"Domain created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Domain"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"501":{"description":"Not implemented","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/accounts/{accountId}/domains/{id}":{"get":{"tags":["Domains"],"parameters":[{"schema":{"type":"string"},"required":true,"name":"accountId","in":"path"},{"schema":{"type":"string"},"required":true,"name":"id","in":"path"}],"responses":{"200":{"description":"Get domain with DNS records","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainWithRecords"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"501":{"description":"Not implemented","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"patch":{"tags":["Domains"],"parameters":[{"schema":{"type":"string"},"required":true,"name":"accountId","in":"path"},{"schema":{"type":"string"},"required":true,"name":"id","in":"path"}],"responses":{"200":{"description":"Verify/refresh domain","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DomainWithRecords"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"501":{"description":"Not implemented","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"delete":{"tags":["Domains"],"parameters":[{"schema":{"type":"string"},"required":true,"name":"accountId","in":"path"},{"schema":{"type":"string"},"required":true,"name":"id","in":"path"}],"responses":{"204":{"description":"Domain deleted"},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"501":{"description":"Not implemented","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/accounts/{accountId}/aliases":{"get":{"tags":["Aliases"],"parameters":[{"schema":{"type":"string"},"required":true,"name":"accountId","in":"path"},{"schema":{"type":"string"},"required":false,"name":"domain","in":"query"}],"responses":{"200":{"description":"List aliases","content":{"application/json":{"schema":{"type":"object","properties":{"aliases":{"type":"array","items":{"$ref":"#/components/schemas/Alias"}}},"required":["aliases"]}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"501":{"description":"Not implemented","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"post":{"tags":["Aliases"],"parameters":[{"schema":{"type":"string"},"required":true,"name":"accountId","in":"path"}],"responses":{"201":{"description":"Alias created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Alias"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"501":{"description":"Not implemented","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/accounts/{accountId}/aliases/{address}":{"get":{"tags":["Aliases"],"parameters":[{"schema":{"type":"string"},"required":true,"name":"accountId","in":"path"},{"schema":{"type":"string"},"required":true,"name":"address","in":"path"}],"responses":{"200":{"description":"Get alias","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Alias"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"501":{"description":"Not implemented","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"patch":{"tags":["Aliases"],"parameters":[{"schema":{"type":"string"},"required":true,"name":"accountId","in":"path"},{"schema":{"type":"string"},"required":true,"name":"address","in":"path"}],"responses":{"200":{"description":"Update alias","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Alias"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"501":{"description":"Not implemented","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"delete":{"tags":["Aliases"],"parameters":[{"schema":{"type":"string"},"required":true,"name":"accountId","in":"path"},{"schema":{"type":"string"},"required":true,"name":"address","in":"path"}],"responses":{"204":{"description":"Alias deleted"},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"501":{"description":"Not implemented","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/accounts/{accountId}/aliases/{address}/senders":{"get":{"tags":["Alias Senders"],"parameters":[{"schema":{"type":"string"},"required":true,"name":"accountId","in":"path"},{"schema":{"type":"string"},"required":true,"name":"address","in":"path"}],"responses":{"200":{"description":"List senders","content":{"application/json":{"schema":{"type":"object","properties":{"senders":{"type":"array","items":{"$ref":"#/components/schemas/AliasSender"}}},"required":["senders"]}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"501":{"description":"Not implemented","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"post":{"tags":["Alias Senders"],"parameters":[{"schema":{"type":"string"},"required":true,"name":"accountId","in":"path"},{"schema":{"type":"string"},"required":true,"name":"address","in":"path"}],"responses":{"201":{"description":"Sender created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AliasSender"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"501":{"description":"Not implemented","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/accounts/{accountId}/aliases/{address}/senders/{domain}":{"put":{"tags":["Alias Senders"],"parameters":[{"schema":{"type":"string"},"required":true,"name":"accountId","in":"path"},{"schema":{"type":"string"},"required":true,"name":"address","in":"path"},{"schema":{"type":"string"},"required":true,"name":"domain","in":"path"}],"responses":{"200":{"description":"Sender updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AliasSender"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"501":{"description":"Not implemented","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"delete":{"tags":["Alias Senders"],"parameters":[{"schema":{"type":"string"},"required":true,"name":"accountId","in":"path"},{"schema":{"type":"string"},"required":true,"name":"address","in":"path"},{"schema":{"type":"string"},"required":true,"name":"domain","in":"path"}],"responses":{"204":{"description":"Sender removed"},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"501":{"description":"Not implemented","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/accounts/{accountId}/forwarding-addresses":{"get":{"tags":["Forwarding Targets"],"parameters":[{"schema":{"type":"string"},"required":true,"name":"accountId","in":"path"}],"responses":{"200":{"description":"List forwarding targets","content":{"application/json":{"schema":{"type":"object","properties":{"forwardingTargets":{"type":"array","items":{"$ref":"#/components/schemas/ForwardingTarget"}}},"required":["forwardingTargets"]}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"501":{"description":"Not implemented","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"post":{"tags":["Forwarding Targets"],"parameters":[{"schema":{"type":"string"},"required":true,"name":"accountId","in":"path"}],"responses":{"201":{"description":"Forwarding target created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForwardingTarget"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"501":{"description":"Not implemented","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/accounts/{accountId}/forwarding-addresses/{address}/verify":{"post":{"tags":["Forwarding Targets"],"parameters":[{"schema":{"type":"string"},"required":true,"name":"accountId","in":"path"},{"schema":{"type":"string"},"required":true,"name":"address","in":"path"}],"responses":{"200":{"description":"Target verified","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ForwardingTarget"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"501":{"description":"Not implemented","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/accounts/{accountId}/forwarding-addresses/{address}":{"delete":{"tags":["Forwarding Targets"],"parameters":[{"schema":{"type":"string"},"required":true,"name":"accountId","in":"path"},{"schema":{"type":"string"},"required":true,"name":"address","in":"path"}],"responses":{"204":{"description":"Forwarding target deleted"},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"501":{"description":"Not implemented","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/accounts/{accountId}/templates":{"get":{"tags":["Templates"],"parameters":[{"schema":{"type":"string"},"required":true,"name":"accountId","in":"path"}],"responses":{"200":{"description":"List templates","content":{"application/json":{"schema":{"type":"object","properties":{"templates":{"type":"array","items":{"$ref":"#/components/schemas/EmailTemplate"}}},"required":["templates"]}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"501":{"description":"Not implemented","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"post":{"tags":["Templates"],"parameters":[{"schema":{"type":"string"},"required":true,"name":"accountId","in":"path"}],"responses":{"201":{"description":"Template created","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailTemplate"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"501":{"description":"Not implemented","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/accounts/{accountId}/templates/{id}":{"patch":{"tags":["Templates"],"parameters":[{"schema":{"type":"string"},"required":true,"name":"accountId","in":"path"},{"schema":{"type":"string"},"required":true,"name":"id","in":"path"}],"responses":{"200":{"description":"Update template","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailTemplate"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"501":{"description":"Not implemented","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"put":{"tags":["Templates"],"parameters":[{"schema":{"type":"string"},"required":true,"name":"accountId","in":"path"},{"schema":{"type":"string"},"required":true,"name":"id","in":"path"}],"responses":{"200":{"description":"Replace template","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EmailTemplate"}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"501":{"description":"Not implemented","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"delete":{"tags":["Templates"],"parameters":[{"schema":{"type":"string"},"required":true,"name":"accountId","in":"path"},{"schema":{"type":"string"},"required":true,"name":"id","in":"path"}],"responses":{"204":{"description":"Template deleted"},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"501":{"description":"Not implemented","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/accounts/{accountId}/audit":{"get":{"tags":["Audit"],"parameters":[{"schema":{"type":"string"},"required":true,"name":"accountId","in":"path"},{"schema":{"type":"string"},"required":false,"name":"cursor","in":"query"},{"schema":{"type":"string"},"required":false,"name":"limit","in":"query"}],"responses":{"200":{"description":"List audit events","content":{"application/json":{"schema":{"type":"object","properties":{}}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"501":{"description":"Not implemented","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/reindex":{"post":{"tags":["Admin"],"requestBody":{"content":{"application/json":{"schema":{"type":"object","properties":{"targetRegistryId":{"type":"string"},"segmentCount":{"type":"integer","minimum":1,"maximum":256}},"required":["targetRegistryId"]}}}},"responses":{"202":{"description":"Reindex job dispatched","content":{"application/json":{"schema":{"type":"object","properties":{"jobId":{"type":"string"},"targetRegistryId":{"type":"string"},"modelId":{"type":"string"},"segmentCount":{"type":"number"},"startedAt":{"type":"string"}},"required":["jobId","targetRegistryId","modelId","segmentCount","startedAt"]}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"501":{"description":"Not implemented","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/healthcheck":{"get":{"tags":["Admin"],"responses":{"200":{"description":"Current health-check validation status","content":{"application/json":{"schema":{"type":"object","properties":{"status":{"type":"string","enum":["pass","fail","unknown"]},"checkedDate":{"type":"string"},"checkedAt":{"type":"string"},"checks":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string"},"label":{"type":"string"},"status":{"type":"string","enum":["pass","fail","unknown"]},"detail":{"type":"string"},"section":{"type":"string","enum":["terminus","delegation","ses","pipeline"]}},"required":["id","label","status","section"]}}},"required":["status","checkedDate","checkedAt","checks"]}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"501":{"description":"Not implemented","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/user/{userId}/configuration":{"get":{"parameters":[{"schema":{"type":"string"},"required":true,"name":"userId","in":"path"}],"responses":{"200":{"description":"User configuration","content":{"application/json":{"schema":{"type":"object","properties":{"postSendView":{"type":"string","enum":["return_to_inbox","stay_on_thread"]}},"required":["postSendView"]}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"501":{"description":"Not implemented","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}},"patch":{"parameters":[{"schema":{"type":"string"},"required":true,"name":"userId","in":"path"}],"responses":{"200":{"description":"Updated user configuration","content":{"application/json":{"schema":{"type":"object","properties":{"postSendView":{"type":"string","enum":["return_to_inbox","stay_on_thread"]}},"required":["postSendView"]}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"501":{"description":"Not implemented","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}},"/users/{userId}":{"get":{"tags":["Users"],"parameters":[{"schema":{"type":"string"},"required":true,"name":"userId","in":"path"}],"responses":{"200":{"description":"User profile","content":{"application/json":{"schema":{"type":"object","properties":{"name":{"type":"string"},"picture":{"type":"string"}}}}}},"400":{"description":"Bad request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"401":{"description":"Unauthorized","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"403":{"description":"Forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"404":{"description":"Not found","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"409":{"description":"Conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"422":{"description":"Unprocessable entity","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"500":{"description":"Internal server error","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"501":{"description":"Not implemented","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}},"503":{"description":"Service unavailable","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}}}}