{"openapi":"3.1.0","info":{"title":"Pax LifeMap life-insurance backend","version":"0.2.0","description":"Synthetic-data PoC with real calculators and explicitly non-binding contract artifacts. Runtime Zod/domain validation adds invariants beyond JSON Schema. Cookie authentication requires X-CSRF-Token for writes. Reviewer approval/start-review/decisions/policy issuance require a separately authenticated reviewer. An agent is restricted to its granted case and context/events/proposals."},"servers":[{"url":"http://127.0.0.1:3000"}],"components":{"schemas":{"VoiceSessionStart":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"voiceSession":{"type":"object","properties":{"schemaVersion":{"type":"string","const":"1.0"},"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"caseId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"provider":{"type":"string","enum":["gpt-live","elevenlabs"]},"locale":{"type":"string","enum":["de","fr","it","en"]},"status":{"type":"string","enum":["starting","active","closed","interrupted","failed"]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"expiresAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"endedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"closeReason":{"anyOf":[{"type":"string","enum":["customer_closed","voice_switch","inactive","human_handover","session_revoked","expired","server_restart","provider_failed","shutdown"]},{"type":"null"}]},"transcriptRevision":{"type":"integer","minimum":0,"maximum":9007199254740991},"turnCount":{"type":"integer","minimum":0,"maximum":9007199254740991},"resumeFrom":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},{"type":"null"}]},"noticeVersion":{"type":"string","const":"voice-synthetic-v1"},"dataClassification":{"type":"string","const":"synthetic"},"externalVoiceProcessingAccepted":{"type":"boolean","const":true},"remoteStop":{"type":"string","enum":["not_requested","requested","failed","client_required"]},"fullContextTransferAuthorized":{"type":"boolean","const":false}},"required":["schemaVersion","id","caseId","provider","locale","status","createdAt","expiresAt","endedAt","closeReason","transcriptRevision","turnCount","resumeFrom","noticeVersion","dataClassification","externalVoiceProcessingAccepted","remoteStop","fullContextTransferAuthorized"],"additionalProperties":false},"connection":{"oneOf":[{"type":"object","properties":{"provider":{"type":"string","const":"gpt-live"},"session":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":200}},"required":["id"],"additionalProperties":false},"transport":{"type":"object","properties":{"type":{"type":"string","const":"webrtc"},"sdp":{"type":"string","minLength":1,"maxLength":150000}},"required":["type","sdp"],"additionalProperties":false}},"required":["provider","session","transport"],"additionalProperties":false},{"type":"object","properties":{"provider":{"type":"string","const":"elevenlabs"},"token":{"type":"string","minLength":1,"maxLength":16000},"conversationId":{"type":"string","minLength":1,"maxLength":200},"agentId":{"type":"string","minLength":1,"maxLength":200}},"required":["provider","token","conversationId","agentId"],"additionalProperties":false}]},"prompt":{"type":"string","maxLength":32000},"replayed":{"type":"boolean"},"reports":{"type":"boolean"}},"required":["voiceSession","connection","prompt","replayed"],"additionalProperties":false},"VoiceSession":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemaVersion":{"type":"string","const":"1.0"},"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"caseId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"provider":{"type":"string","enum":["gpt-live","elevenlabs"]},"locale":{"type":"string","enum":["de","fr","it","en"]},"status":{"type":"string","enum":["starting","active","closed","interrupted","failed"]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"expiresAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"endedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"closeReason":{"anyOf":[{"type":"string","enum":["customer_closed","voice_switch","inactive","human_handover","session_revoked","expired","server_restart","provider_failed","shutdown"]},{"type":"null"}]},"transcriptRevision":{"type":"integer","minimum":0,"maximum":9007199254740991},"turnCount":{"type":"integer","minimum":0,"maximum":9007199254740991},"resumeFrom":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},{"type":"null"}]},"noticeVersion":{"type":"string","const":"voice-synthetic-v1"},"dataClassification":{"type":"string","const":"synthetic"},"externalVoiceProcessingAccepted":{"type":"boolean","const":true},"remoteStop":{"type":"string","enum":["not_requested","requested","failed","client_required"]},"fullContextTransferAuthorized":{"type":"boolean","const":false}},"required":["schemaVersion","id","caseId","provider","locale","status","createdAt","expiresAt","endedAt","closeReason","transcriptRevision","turnCount","resumeFrom","noticeVersion","dataClassification","externalVoiceProcessingAccepted","remoteStop","fullContextTransferAuthorized"],"additionalProperties":false},"VoiceTranscript":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"caseId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"voiceSession":{"type":"object","properties":{"schemaVersion":{"type":"string","const":"1.0"},"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"caseId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"provider":{"type":"string","enum":["gpt-live","elevenlabs"]},"locale":{"type":"string","enum":["de","fr","it","en"]},"status":{"type":"string","enum":["starting","active","closed","interrupted","failed"]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"expiresAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"endedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"closeReason":{"anyOf":[{"type":"string","enum":["customer_closed","voice_switch","inactive","human_handover","session_revoked","expired","server_restart","provider_failed","shutdown"]},{"type":"null"}]},"transcriptRevision":{"type":"integer","minimum":0,"maximum":9007199254740991},"turnCount":{"type":"integer","minimum":0,"maximum":9007199254740991},"resumeFrom":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},{"type":"null"}]},"noticeVersion":{"type":"string","const":"voice-synthetic-v1"},"dataClassification":{"type":"string","const":"synthetic"},"externalVoiceProcessingAccepted":{"type":"boolean","const":true},"remoteStop":{"type":"string","enum":["not_requested","requested","failed","client_required"]},"fullContextTransferAuthorized":{"type":"boolean","const":false}},"required":["schemaVersion","id","caseId","provider","locale","status","createdAt","expiresAt","endedAt","closeReason","transcriptRevision","turnCount","resumeFrom","noticeVersion","dataClassification","externalVoiceProcessingAccepted","remoteStop","fullContextTransferAuthorized"],"additionalProperties":false},"turns":{"maxItems":250,"type":"array","items":{"type":"object","properties":{"speaker":{"type":"string","enum":["customer","agent"]},"log":{"type":"object","properties":{"schemaVersion":{"type":"string","const":"1.0"},"messageId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"caseId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"correlationId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"turnId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"source":{"type":"string","enum":["voice","text"]},"locale":{"type":"string","enum":["de","fr","it","en"]},"text":{"type":"string","minLength":1,"maxLength":8000},"transcriptStatus":{"type":"string","const":"final"},"dataClassification":{"type":"string","const":"synthetic"},"expectedCaseRevision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["schemaVersion","messageId","caseId","correlationId","turnId","source","locale","text","transcriptStatus","dataClassification"],"additionalProperties":false},"receivedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["speaker","log","receivedAt"],"additionalProperties":false}}},"required":["caseId","voiceSession","turns"],"additionalProperties":false},"VoiceExtraction":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"caseId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"voiceSessionId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"caseRevision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"contextRevision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"mappingVersion":{"type":"string","const":"voice-portfolio-v1"},"proposalBatch":{"anyOf":[{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"messageId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"source":{"type":"object","properties":{"messageId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"turnId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"sourceRef":{"type":"string","minLength":1,"maxLength":240}},"required":["messageId","turnId","sourceRef"],"additionalProperties":false},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"requestHash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"expectedProfileVersion":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},{"type":"null"}]},"basisDraftHash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"changes":{"maxItems":50,"type":"array","items":{"type":"object","properties":{"path":{"type":"string","minLength":1,"maxLength":200},"value":{"$ref":"#/components/schemas/VoiceExtraction/$defs/__schema0"},"personId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"}},"required":["path","value"],"additionalProperties":false}},"status":{"type":"string","enum":["proposed","accepted","superseded","rejected"]},"supersedesBatchIds":{"maxItems":20,"type":"array","items":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"}},"supersedesProposalIds":{"maxItems":20,"type":"array","items":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"}},"replacedByBatchId":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},{"type":"null"}]},"ambiguityIds":{"maxItems":20,"type":"array","items":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"}},"resolvesAmbiguityIds":{"maxItems":20,"type":"array","items":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"}},"acceptedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]}},"required":["id","messageId","source","createdAt","requestHash","expectedProfileVersion","basisDraftHash","changes","status","supersedesBatchIds","supersedesProposalIds","replacedByBatchId","ambiguityIds","resolvesAmbiguityIds","acceptedAt"],"additionalProperties":false},{"type":"null"}]},"issues":{"maxItems":50,"type":"array","items":{"type":"object","properties":{"fieldId":{"type":"string","enum":["full_name","birth_date","postal_code","sex","smoker","civil_status","relationship_since_year","partner_birth_year","partner_annual_gross_income_chf","children_count","children_birth_years","expecting_child","employment_type","occupation","employment_rate_percent","annual_gross_income_chf","first_working_year_switzerland","has_pension_fund","has_pillar_3a","pillar_3a_annual_contribution_chf","existing_life_insurance","free_assets_chf","housing","monthly_housing_cost_chf","debts_chf","goals","desired_retirement_age","home_purchase_year","risk_appetite","net_income_band","net_worth_band","annual_saving_capacity_band","one_time_investment_band","investment_goal","investment_horizon","securities_experience","reaction_to_30_percent_loss"]},"code":{"type":"string","enum":["NOT_COLLECTED_FOR_DEMO","HUMAN_REVIEW_REQUIRED","LOOKUP_REQUIRED","STRUCTURED_INPUT_REQUIRED","TARGET_MISSING","AMBIGUOUS_VALUE"]},"requiresFollowUp":{"type":"boolean","const":true}},"required":["fieldId","code","requiresFollowUp"],"additionalProperties":false}},"confirmationStillRequired":{"type":"boolean","const":true},"replayed":{"type":"boolean"}},"required":["caseId","voiceSessionId","caseRevision","contextRevision","mappingVersion","proposalBatch","issues","confirmationStillRequired","replayed"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/components/schemas/VoiceExtraction/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/components/schemas/VoiceExtraction/$defs/__schema0"}}]}}},"InsuranceCaseDto":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"handover":{"default":{"status":"digital","revision":0,"wantsHumanAdvisor":false,"leaveViewRequested":false,"stopDigitalConversation":false,"requestId":null,"requestedAt":null,"resumedAt":null,"source":null},"type":"object","properties":{"status":{"type":"string","enum":["digital","requested"]},"revision":{"type":"integer","minimum":0,"maximum":9007199254740991},"wantsHumanAdvisor":{"type":"boolean"},"leaveViewRequested":{"type":"boolean"},"stopDigitalConversation":{"type":"boolean"},"requestId":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},{"type":"null"}]},"requestedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"resumedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"source":{"anyOf":[{"type":"string","enum":["ui","voice"]},{"type":"null"}]}},"required":["status","revision","wantsHumanAdvisor","leaveViewRequested","stopDigitalConversation","requestId","requestedAt","resumedAt","source"],"additionalProperties":false},"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"updatedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"expiresAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"locale":{"type":"string","enum":["de","fr","it","en"]},"timeBudgetMinutes":{"type":"integer","minimum":3,"maximum":120},"caseRevision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"contextRevision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"draft":{"type":"object","properties":{"financial":{"anyOf":[{"type":"object","properties":{"schemaVersion":{"type":"string","const":"1.0"},"caseId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"caseRevision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"profileVersion":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"dataClassification":{"type":"string","enum":["synthetic","customer"]},"valuationDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"priceBasis":{"type":"string","const":"nominal"},"persons":{"minItems":1,"maxItems":2,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"birthYear":{"type":"integer","minimum":1900,"maximum":2100},"employmentRateBps":{"type":"integer","minimum":0,"maximum":10000},"income":{"type":"object","properties":{"value":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"currency":{"type":"string","const":"CHF"},"unit":{"type":"string","const":"cent"},"period":{"type":"string","enum":["month","year","once"]},"origin":{"type":"string","enum":["user","document","api","estimate","synthetic"]},"confirmation":{"type":"string","enum":["proposed","confirmed"]},"review":{"type":"string","enum":["unreviewed","reviewed","rejected"]},"sourceRef":{"type":"string","minLength":1,"maxLength":240}},"required":["value","currency","unit","period","origin","confirmation","review","sourceRef"],"additionalProperties":false},"incomeBasis":{"type":"string","enum":["gross","net_before_income_tax","net_after_income_tax"]}},"required":["id","birthYear","employmentRateBps","income","incomeBasis"],"additionalProperties":false}},"expenses":{"maxItems":80,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"category":{"type":"string","enum":["housing","living","tax","provision","debt","reserve","other"]},"amount":{"type":"object","properties":{"value":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"currency":{"type":"string","const":"CHF"},"unit":{"type":"string","const":"cent"},"period":{"type":"string","enum":["month","year","once"]},"origin":{"type":"string","enum":["user","document","api","estimate","synthetic"]},"confirmation":{"type":"string","enum":["proposed","confirmed"]},"review":{"type":"string","enum":["unreviewed","reviewed","rejected"]},"sourceRef":{"type":"string","minLength":1,"maxLength":240}},"required":["value","currency","unit","period","origin","confirmation","review","sourceRef"],"additionalProperties":false},"includedInExpenseId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"}},"required":["id","category","amount"],"additionalProperties":false}},"safetyBuffer":{"type":"object","properties":{"value":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"currency":{"type":"string","const":"CHF"},"unit":{"type":"string","const":"cent"},"period":{"type":"string","enum":["month","year","once"]},"origin":{"type":"string","enum":["user","document","api","estimate","synthetic"]},"confirmation":{"type":"string","enum":["proposed","confirmed"]},"review":{"type":"string","enum":["unreviewed","reviewed","rejected"]},"sourceRef":{"type":"string","minLength":1,"maxLength":240}},"required":["value","currency","unit","period","origin","confirmation","review","sourceRef"],"additionalProperties":false},"assets":{"maxItems":40,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"amount":{"type":"object","properties":{"value":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"currency":{"type":"string","const":"CHF"},"unit":{"type":"string","const":"cent"},"period":{"type":"string","enum":["month","year","once"]},"origin":{"type":"string","enum":["user","document","api","estimate","synthetic"]},"confirmation":{"type":"string","enum":["proposed","confirmed"]},"review":{"type":"string","enum":["unreviewed","reviewed","rejected"]},"sourceRef":{"type":"string","minLength":1,"maxLength":240}},"required":["value","currency","unit","period","origin","confirmation","review","sourceRef"],"additionalProperties":false},"ownerPersonIds":{"minItems":1,"maxItems":2,"type":"array","items":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"}},"liquidity":{"type":"string","enum":["free","restricted"]},"availableFrom":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"pillar":{"type":"string","enum":["2","3","none"]},"allocations":{"maxItems":30,"type":"array","items":{"type":"object","properties":{"goalId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"amountCents":{"type":"integer","minimum":0,"maximum":1000000000000}},"required":["goalId","amountCents"],"additionalProperties":false}}},"required":["id","amount","liquidity","availableFrom","pillar","allocations"],"additionalProperties":false}},"assetsConfirmed":{"type":"boolean"},"provisions":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"personId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"pillar":{"type":"string","enum":["1","2","3"]},"event":{"type":"string","enum":["retirement","disability_illness","disability_accident","death_illness","death_accident"]},"amount":{"type":"object","properties":{"value":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"currency":{"type":"string","const":"CHF"},"unit":{"type":"string","const":"cent"},"period":{"type":"string","enum":["month","year","once"]},"origin":{"type":"string","enum":["user","document","api","estimate","synthetic"]},"confirmation":{"type":"string","enum":["proposed","confirmed"]},"review":{"type":"string","enum":["unreviewed","reviewed","rejected"]},"sourceRef":{"type":"string","minLength":1,"maxLength":240}},"required":["value","currency","unit","period","origin","confirmation","review","sourceRef"],"additionalProperties":false}},"required":["id","personId","pillar","event","amount"],"additionalProperties":false}}},"required":["schemaVersion","caseId","caseRevision","profileVersion","dataClassification","valuationDate","priceBasis","persons","expenses","safetyBuffer","assets","assetsConfirmed","provisions"],"additionalProperties":false},{"type":"null"}]},"insurance":{"anyOf":[{"type":"object","properties":{"relationship":{"type":"string","enum":["unknown","single","married","cohabiting","registered_partnership"]},"relationshipSinceYear":{"anyOf":[{"type":"integer","minimum":1900,"maximum":2100},{"type":"null"}]},"sharedChildren":{"anyOf":[{"type":"integer","minimum":0,"maximum":30},{"type":"null"}]},"taxLocationId":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},{"type":"null"}]},"persons":{"maxItems":2,"type":"array","items":{"type":"object","properties":{"personId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"providerSex":{"anyOf":[{"anyOf":[{"type":"number","const":1},{"type":"number","const":2}]},{"type":"null"}]},"grossAnnualIncomeCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"withPillar2":{"type":["boolean","null"]},"pillar2Risk":{"type":"object","properties":{"disabilityAnnualCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"disabilityChildAnnualCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"survivorAnnualCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"orphanAnnualCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]}},"required":["disabilityAnnualCents","disabilityChildAnnualCents","survivorAnnualCents","orphanAnnualCents"],"additionalProperties":false},"retirementPensionAnnualCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"currentPillar2CapitalCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"desiredWorkStopAge":{"anyOf":[{"type":"integer","minimum":18,"maximum":100},{"type":"null"}]},"disabilityNeedAnnualCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"deathNeedAnnualCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"protectionTermMonths":{"anyOf":[{"type":"integer","minimum":1,"maximum":600},{"type":"null"}]},"existingDeathCapitalCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"deathOneOffCostsCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"debtPayoffCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"debtTreatment":{"anyOf":[{"type":"string","enum":["included_in_income_need","pay_off_separately"]},{"type":"null"}]},"deathNeedExcludesRepaidDebtService":{"type":"boolean"},"personalAffordableAnnualPremiumCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]}},"required":["personId","providerSex","grossAnnualIncomeCents","withPillar2","pillar2Risk","retirementPensionAnnualCents","currentPillar2CapitalCents","desiredWorkStopAge","disabilityNeedAnnualCents","deathNeedAnnualCents","protectionTermMonths","existingDeathCapitalCents","deathOneOffCostsCents","debtPayoffCents","debtTreatment","deathNeedExcludesRepaidDebtService","personalAffordableAnnualPremiumCents"],"additionalProperties":false}},"children":{"maxItems":30,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"birthYear":{"type":"integer","minimum":1900,"maximum":2100},"kind":{"type":"string","enum":["shared","sole_custody","goal_only","expected"]},"parentPersonIds":{"maxItems":2,"type":"array","items":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"}},"supportUntilMonth":{"anyOf":[{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"},{"type":"null"}]},"goalId":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},{"type":"null"}]}},"required":["id","birthYear","kind","parentPersonIds","supportUntilMonth","goalId"],"additionalProperties":false}},"debts":{"maxItems":30,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"ownerPersonIds":{"minItems":1,"maxItems":2,"type":"array","items":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"}},"balanceCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"annualServiceCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"kind":{"type":"string","enum":["mortgage","consumer","education","other"]}},"required":["id","ownerPersonIds","balanceCents","annualServiceCents","kind"],"additionalProperties":false}},"debtsConfirmed":{"type":"boolean"},"existingPrivateRiskBenefitsConfirmed":{"type":"boolean"},"confession1":{"anyOf":[{"anyOf":[{"type":"number","const":1},{"type":"number","const":2},{"type":"number","const":3},{"type":"number","const":4},{"type":"number","const":9}]},{"type":"null"}]},"confession2":{"anyOf":[{"anyOf":[{"type":"number","const":1},{"type":"number","const":2},{"type":"number","const":3},{"type":"number","const":4},{"type":"number","const":9}]},{"type":"null"}]},"taxableFortuneCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"retirementNeedAnnualCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"annualReturnBps":{"anyOf":[{"type":"integer","minimum":-5000,"maximum":2000},{"type":"null"}]},"retirementHorizonAge":{"anyOf":[{"type":"integer","minimum":50,"maximum":120},{"type":"null"}]},"annualSavingCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"investmentKnowledgeConfirmed":{"type":"boolean"},"annualSavingIsAdditional":{"type":"boolean","const":true},"existingAnnualRetirementSavingCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"existingAnnualPillar3aContributionCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"riskAppetite":{"type":"string","enum":["unknown","low","medium","high"]},"riskCapitalStrategy":{"anyOf":[{"type":"string","enum":["use_free_assets_first","preserve_assets_for_other_goals"]},{"type":"null"}]}},"required":["relationship","relationshipSinceYear","sharedChildren","taxLocationId","persons","children","debts","debtsConfirmed","existingPrivateRiskBenefitsConfirmed","confession1","confession2","taxableFortuneCents","retirementNeedAnnualCents","annualReturnBps","retirementHorizonAge","annualSavingCents","investmentKnowledgeConfirmed","annualSavingIsAdditional","existingAnnualRetirementSavingCents","existingAnnualPillar3aContributionCents","riskAppetite","riskCapitalStrategy"],"additionalProperties":false},{"type":"null"}]},"goals":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["family","home","retirement","child_protection","income_protection","survivor_protection"]},"targetMonth":{"anyOf":[{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"},{"type":"null"}]},"priority":{"type":"integer","minimum":1,"maximum":5},"targetCapitalCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]}},"required":["id","kind","targetMonth","priority","targetCapitalCents"],"additionalProperties":false}},"reviewFlags":{"maxItems":8,"type":"array","items":{"type":"string","enum":["user_requested","complex_beneficiaries","cross_border","self_employed","medical_review_needed","investment_knowledge_missing","high_impact"]}}},"required":["financial","insurance","goals","reviewFlags"],"additionalProperties":false},"draftDirty":{"type":"boolean"},"confirmedVersions":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"version":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"draft":{"type":"object","properties":{"financial":{"anyOf":[{"type":"object","properties":{"schemaVersion":{"type":"string","const":"1.0"},"caseId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"caseRevision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"profileVersion":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"dataClassification":{"type":"string","enum":["synthetic","customer"]},"valuationDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"priceBasis":{"type":"string","const":"nominal"},"persons":{"minItems":1,"maxItems":2,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"birthYear":{"type":"integer","minimum":1900,"maximum":2100},"employmentRateBps":{"type":"integer","minimum":0,"maximum":10000},"income":{"type":"object","properties":{"value":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"currency":{"type":"string","const":"CHF"},"unit":{"type":"string","const":"cent"},"period":{"type":"string","enum":["month","year","once"]},"origin":{"type":"string","enum":["user","document","api","estimate","synthetic"]},"confirmation":{"type":"string","enum":["proposed","confirmed"]},"review":{"type":"string","enum":["unreviewed","reviewed","rejected"]},"sourceRef":{"type":"string","minLength":1,"maxLength":240}},"required":["value","currency","unit","period","origin","confirmation","review","sourceRef"],"additionalProperties":false},"incomeBasis":{"type":"string","enum":["gross","net_before_income_tax","net_after_income_tax"]}},"required":["id","birthYear","employmentRateBps","income","incomeBasis"],"additionalProperties":false}},"expenses":{"maxItems":80,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"category":{"type":"string","enum":["housing","living","tax","provision","debt","reserve","other"]},"amount":{"type":"object","properties":{"value":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"currency":{"type":"string","const":"CHF"},"unit":{"type":"string","const":"cent"},"period":{"type":"string","enum":["month","year","once"]},"origin":{"type":"string","enum":["user","document","api","estimate","synthetic"]},"confirmation":{"type":"string","enum":["proposed","confirmed"]},"review":{"type":"string","enum":["unreviewed","reviewed","rejected"]},"sourceRef":{"type":"string","minLength":1,"maxLength":240}},"required":["value","currency","unit","period","origin","confirmation","review","sourceRef"],"additionalProperties":false},"includedInExpenseId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"}},"required":["id","category","amount"],"additionalProperties":false}},"safetyBuffer":{"type":"object","properties":{"value":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"currency":{"type":"string","const":"CHF"},"unit":{"type":"string","const":"cent"},"period":{"type":"string","enum":["month","year","once"]},"origin":{"type":"string","enum":["user","document","api","estimate","synthetic"]},"confirmation":{"type":"string","enum":["proposed","confirmed"]},"review":{"type":"string","enum":["unreviewed","reviewed","rejected"]},"sourceRef":{"type":"string","minLength":1,"maxLength":240}},"required":["value","currency","unit","period","origin","confirmation","review","sourceRef"],"additionalProperties":false},"assets":{"maxItems":40,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"amount":{"type":"object","properties":{"value":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"currency":{"type":"string","const":"CHF"},"unit":{"type":"string","const":"cent"},"period":{"type":"string","enum":["month","year","once"]},"origin":{"type":"string","enum":["user","document","api","estimate","synthetic"]},"confirmation":{"type":"string","enum":["proposed","confirmed"]},"review":{"type":"string","enum":["unreviewed","reviewed","rejected"]},"sourceRef":{"type":"string","minLength":1,"maxLength":240}},"required":["value","currency","unit","period","origin","confirmation","review","sourceRef"],"additionalProperties":false},"ownerPersonIds":{"minItems":1,"maxItems":2,"type":"array","items":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"}},"liquidity":{"type":"string","enum":["free","restricted"]},"availableFrom":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"pillar":{"type":"string","enum":["2","3","none"]},"allocations":{"maxItems":30,"type":"array","items":{"type":"object","properties":{"goalId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"amountCents":{"type":"integer","minimum":0,"maximum":1000000000000}},"required":["goalId","amountCents"],"additionalProperties":false}}},"required":["id","amount","liquidity","availableFrom","pillar","allocations"],"additionalProperties":false}},"assetsConfirmed":{"type":"boolean"},"provisions":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"personId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"pillar":{"type":"string","enum":["1","2","3"]},"event":{"type":"string","enum":["retirement","disability_illness","disability_accident","death_illness","death_accident"]},"amount":{"type":"object","properties":{"value":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"currency":{"type":"string","const":"CHF"},"unit":{"type":"string","const":"cent"},"period":{"type":"string","enum":["month","year","once"]},"origin":{"type":"string","enum":["user","document","api","estimate","synthetic"]},"confirmation":{"type":"string","enum":["proposed","confirmed"]},"review":{"type":"string","enum":["unreviewed","reviewed","rejected"]},"sourceRef":{"type":"string","minLength":1,"maxLength":240}},"required":["value","currency","unit","period","origin","confirmation","review","sourceRef"],"additionalProperties":false}},"required":["id","personId","pillar","event","amount"],"additionalProperties":false}}},"required":["schemaVersion","caseId","caseRevision","profileVersion","dataClassification","valuationDate","priceBasis","persons","expenses","safetyBuffer","assets","assetsConfirmed","provisions"],"additionalProperties":false},{"type":"null"}]},"insurance":{"anyOf":[{"type":"object","properties":{"relationship":{"type":"string","enum":["unknown","single","married","cohabiting","registered_partnership"]},"relationshipSinceYear":{"anyOf":[{"type":"integer","minimum":1900,"maximum":2100},{"type":"null"}]},"sharedChildren":{"anyOf":[{"type":"integer","minimum":0,"maximum":30},{"type":"null"}]},"taxLocationId":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},{"type":"null"}]},"persons":{"maxItems":2,"type":"array","items":{"type":"object","properties":{"personId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"providerSex":{"anyOf":[{"anyOf":[{"type":"number","const":1},{"type":"number","const":2}]},{"type":"null"}]},"grossAnnualIncomeCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"withPillar2":{"type":["boolean","null"]},"pillar2Risk":{"type":"object","properties":{"disabilityAnnualCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"disabilityChildAnnualCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"survivorAnnualCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"orphanAnnualCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]}},"required":["disabilityAnnualCents","disabilityChildAnnualCents","survivorAnnualCents","orphanAnnualCents"],"additionalProperties":false},"retirementPensionAnnualCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"currentPillar2CapitalCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"desiredWorkStopAge":{"anyOf":[{"type":"integer","minimum":18,"maximum":100},{"type":"null"}]},"disabilityNeedAnnualCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"deathNeedAnnualCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"protectionTermMonths":{"anyOf":[{"type":"integer","minimum":1,"maximum":600},{"type":"null"}]},"existingDeathCapitalCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"deathOneOffCostsCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"debtPayoffCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"debtTreatment":{"anyOf":[{"type":"string","enum":["included_in_income_need","pay_off_separately"]},{"type":"null"}]},"deathNeedExcludesRepaidDebtService":{"type":"boolean"},"personalAffordableAnnualPremiumCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]}},"required":["personId","providerSex","grossAnnualIncomeCents","withPillar2","pillar2Risk","retirementPensionAnnualCents","currentPillar2CapitalCents","desiredWorkStopAge","disabilityNeedAnnualCents","deathNeedAnnualCents","protectionTermMonths","existingDeathCapitalCents","deathOneOffCostsCents","debtPayoffCents","debtTreatment","deathNeedExcludesRepaidDebtService","personalAffordableAnnualPremiumCents"],"additionalProperties":false}},"children":{"maxItems":30,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"birthYear":{"type":"integer","minimum":1900,"maximum":2100},"kind":{"type":"string","enum":["shared","sole_custody","goal_only","expected"]},"parentPersonIds":{"maxItems":2,"type":"array","items":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"}},"supportUntilMonth":{"anyOf":[{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"},{"type":"null"}]},"goalId":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},{"type":"null"}]}},"required":["id","birthYear","kind","parentPersonIds","supportUntilMonth","goalId"],"additionalProperties":false}},"debts":{"maxItems":30,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"ownerPersonIds":{"minItems":1,"maxItems":2,"type":"array","items":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"}},"balanceCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"annualServiceCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"kind":{"type":"string","enum":["mortgage","consumer","education","other"]}},"required":["id","ownerPersonIds","balanceCents","annualServiceCents","kind"],"additionalProperties":false}},"debtsConfirmed":{"type":"boolean"},"existingPrivateRiskBenefitsConfirmed":{"type":"boolean"},"confession1":{"anyOf":[{"anyOf":[{"type":"number","const":1},{"type":"number","const":2},{"type":"number","const":3},{"type":"number","const":4},{"type":"number","const":9}]},{"type":"null"}]},"confession2":{"anyOf":[{"anyOf":[{"type":"number","const":1},{"type":"number","const":2},{"type":"number","const":3},{"type":"number","const":4},{"type":"number","const":9}]},{"type":"null"}]},"taxableFortuneCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"retirementNeedAnnualCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"annualReturnBps":{"anyOf":[{"type":"integer","minimum":-5000,"maximum":2000},{"type":"null"}]},"retirementHorizonAge":{"anyOf":[{"type":"integer","minimum":50,"maximum":120},{"type":"null"}]},"annualSavingCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"investmentKnowledgeConfirmed":{"type":"boolean"},"annualSavingIsAdditional":{"type":"boolean","const":true},"existingAnnualRetirementSavingCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"existingAnnualPillar3aContributionCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"riskAppetite":{"type":"string","enum":["unknown","low","medium","high"]},"riskCapitalStrategy":{"anyOf":[{"type":"string","enum":["use_free_assets_first","preserve_assets_for_other_goals"]},{"type":"null"}]}},"required":["relationship","relationshipSinceYear","sharedChildren","taxLocationId","persons","children","debts","debtsConfirmed","existingPrivateRiskBenefitsConfirmed","confession1","confession2","taxableFortuneCents","retirementNeedAnnualCents","annualReturnBps","retirementHorizonAge","annualSavingCents","investmentKnowledgeConfirmed","annualSavingIsAdditional","existingAnnualRetirementSavingCents","existingAnnualPillar3aContributionCents","riskAppetite","riskCapitalStrategy"],"additionalProperties":false},{"type":"null"}]},"goals":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["family","home","retirement","child_protection","income_protection","survivor_protection"]},"targetMonth":{"anyOf":[{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"},{"type":"null"}]},"priority":{"type":"integer","minimum":1,"maximum":5},"targetCapitalCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]}},"required":["id","kind","targetMonth","priority","targetCapitalCents"],"additionalProperties":false}},"reviewFlags":{"maxItems":8,"type":"array","items":{"type":"string","enum":["user_requested","complex_beneficiaries","cross_border","self_employed","medical_review_needed","investment_knowledge_missing","high_impact"]}}},"required":["financial","insurance","goals","reviewFlags"],"additionalProperties":false},"confirmedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"confirmedBy":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"noticeVersion":{"type":"string","enum":["lifemap-synthetic-v1","lifemap-synthetic-v2"]},"calculatorTransferAllowed":{"type":"boolean","const":true}},"required":["version","draft","confirmedAt","confirmedBy","noticeVersion","calculatorTransferAllowed"],"additionalProperties":false}},"latestAnalysisRequestId":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},{"type":"null"}]},"activeRunId":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},{"type":"null"}]},"runs":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"modelVersion":{"type":"string"},"profileVersion":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"scenarioVersionId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"inputHash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"scenario":{"anyOf":[{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"baseline"}},"required":["kind"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"family"},"personId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"newEmploymentRateBps":{"type":"integer","minimum":0,"maximum":10000},"additionalMonthlyCostCents":{"type":"integer","minimum":0,"maximum":1000000000000},"linearIncomeAssumptionConfirmed":{"type":"boolean","const":true}},"required":["kind","personId","newEmploymentRateBps","additionalMonthlyCostCents","linearIncomeAssumptionConfirmed"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"home"},"purchasePriceCents":{"type":"integer","minimum":0,"maximum":1000000000000},"equityRateBps":{"type":"integer","minimum":0,"maximum":10000},"purchaseCostsCents":{"type":"integer","minimum":0,"maximum":1000000000000},"reserveCents":{"type":"integer","minimum":0,"maximum":1000000000000},"annualInterestBps":{"type":"integer","minimum":0,"maximum":2000},"annualMaintenanceBps":{"type":"integer","minimum":0,"maximum":2000},"annualAmortizationCents":{"type":"integer","minimum":0,"maximum":1000000000000},"assumptionsConfirmed":{"type":"boolean","const":true}},"required":["kind","purchasePriceCents","equityRateBps","purchaseCostsCents","reserveCents","annualInterestBps","annualMaintenanceBps","annualAmortizationCents","assumptionsConfirmed"],"additionalProperties":false}]},{"type":"object","properties":{"kind":{"type":"string","const":"retirement"},"goalId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"startMonth":{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"},"endMonth":{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"},"incomeBasis":{"type":"string","const":"net_after_income_tax"},"monthlyNeedCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"monthlySavingCents":{"type":"integer","minimum":0,"maximum":1000000000000},"savingLiquidity":{"type":"string","enum":["free","retirement_restricted"]},"savingsReleaseMonth":{"anyOf":[{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"},{"type":"null"}]},"annualReturnBps":{"type":"integer","minimum":-5000,"maximum":2000},"releaseAssumptions":{"maxItems":40,"type":"array","items":{"type":"object","properties":{"assetId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"availableMonth":{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"}},"required":["assetId","availableMonth"],"additionalProperties":false}},"persons":{"minItems":1,"maxItems":2,"type":"array","items":{"type":"object","properties":{"personId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"workEndsMonth":{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"},"pensionStartsMonth":{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"},"pillar1MonthlyCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"pillar2MonthlyCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"pillar3MonthlyCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]}},"required":["personId","workEndsMonth","pensionStartsMonth","pillar1MonthlyCents","pillar2MonthlyCents","pillar3MonthlyCents"],"additionalProperties":false}},"assumptionsConfirmed":{"type":"boolean","const":true},"priceBasis":{"type":"string","const":"nominal"}},"required":["kind","goalId","startMonth","endMonth","incomeBasis","monthlyNeedCents","monthlySavingCents","savingLiquidity","savingsReleaseMonth","annualReturnBps","releaseAssumptions","persons","assumptionsConfirmed","priceBasis"],"additionalProperties":false}]},"status":{"type":"string","enum":["current","stale","provider_error","needs_input"]},"local":{"type":"object","properties":{"schemaVersion":{"type":"string","const":"1.0"},"messageId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"caseId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"correlationId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"profileVersion":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"scenarioVersionId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"runId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"calculationInputHash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"modelVersion":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"dataClassification":{"type":"string","enum":["synthetic","customer"]},"valuationDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"priceBasis":{"type":"string","const":"nominal"},"periodStart":{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"},"periodEnd":{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"},"statusByArea":{"type":"object","properties":{"budget":{"type":"string","enum":["valid","estimated","requires_review","needs_input","provider_error","unsupported","stale"]},"capital":{"type":"string","enum":["valid","estimated","requires_review","needs_input","provider_error","unsupported","stale"]},"pillars":{"type":"string","enum":["valid","estimated","requires_review","needs_input","provider_error","unsupported","stale"]}},"additionalProperties":false},"metrics":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,160}$"},"value":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"currency":{"type":"string","const":"CHF"},"unit":{"type":"string","const":"cent"},"period":{"type":"string","enum":["month","year","once"]},"status":{"type":"string","enum":["valid","estimated","requires_review","needs_input","provider_error","unsupported","stale"]},"personId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"sourceRefs":{"maxItems":120,"type":"array","items":{"type":"string"}}},"required":["id","value","currency","unit","period","status","sourceRefs"],"additionalProperties":false}},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"}},"required":["code","path","message"],"additionalProperties":false}},"assumptions":{"type":"array","items":{"type":"string"}},"capitalBreakdown":{"type":"array","items":{"type":"object","properties":{"assetId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"totalCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"allocatedCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"freeCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"excludedReason":{"anyOf":[{"type":"string","enum":["restricted","not_available_yet"]},{"type":"null"}]},"allocations":{"type":"array","items":{"type":"object","properties":{"goalId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"amountCents":{"type":"integer","minimum":0,"maximum":1000000000000}},"required":["goalId","amountCents"],"additionalProperties":false}}},"required":["assetId","totalCents","allocatedCents","freeCents","excludedReason","allocations"],"additionalProperties":false}},"progress":{"type":"object","properties":{"domain":{"type":"string","const":"data_capture"},"percent":{"type":"integer","minimum":0,"maximum":100},"reviewOpen":{"type":"boolean"},"groups":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"complete":{"type":"boolean"},"missing":{"type":"array","items":{"type":"string"}}},"required":["id","complete","missing"],"additionalProperties":false}}},"required":["domain","percent","reviewOpen","groups"],"additionalProperties":false}},"required":["schemaVersion","messageId","caseId","correlationId","profileVersion","scenarioVersionId","runId","calculationInputHash","modelVersion","createdAt","dataClassification","valuationDate","priceBasis","periodStart","periodEnd","statusByArea","metrics","issues","assumptions","capitalBreakdown","progress"],"additionalProperties":false},"providerResults":{"maxItems":50,"type":"array","items":{"type":"object","properties":{"operation":{"type":"string","enum":["saving3aLimits","ageLimits","riskBase","risk","retirementBase","retirement","income","budgetProposal","saving","consumption","searchLocation","location","incomeFortuneTax","saving3a","capitalTax","purchaseP2","taxBaseInfo","searchLocationGeo","estateGainFields","estateGainTax","inheritanceAll","inheritanceGroup","inheritanceBeneficiary","corporateEntityTax"]},"status":{"type":"string","enum":["valid","estimated","requires_review","needs_input","provider_error","unsupported","stale"]},"metrics":{"maxItems":1000,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","maxLength":160},"value":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"currency":{"type":"string","const":"CHF"},"unit":{"type":"string","const":"cent"},"period":{"type":"string","enum":["month","year","once"]},"status":{"type":"string","enum":["valid","estimated","requires_review","needs_input","provider_error","unsupported","stale"]},"scenario":{"type":"integer","minimum":1,"maximum":8}},"required":["id","value","currency","unit","period","status"],"additionalProperties":false}},"issues":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"}},"required":["code","path","message"],"additionalProperties":false}},"metadata":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/components/schemas/InsuranceCaseDto/$defs/__schema0"}},"provenance":{"type":"object","properties":{"mode":{"type":"string","enum":["live","replay"]},"operationId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"inputHash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"capturedAt":{"type":"string","maxLength":50},"sourceRef":{"type":"string","maxLength":250}},"required":["mode","operationId","inputHash","capturedAt","sourceRef"],"additionalProperties":false}},"required":["operation","status","metrics","issues","metadata","provenance"],"additionalProperties":false}},"providerFailures":{"maxItems":50,"type":"array","items":{"type":"object","properties":{"operation":{"type":"string","maxLength":80},"code":{"type":"string","pattern":"^[A-Z0-9_]{2,100}$"}},"required":["operation","code"],"additionalProperties":false}},"riskNeeds":{"maxItems":8,"type":"array","items":{"type":"object","properties":{"personId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"scenario":{"type":"integer","minimum":1,"maximum":8},"event":{"type":"string","enum":["disability_illness","disability_accident","death_illness","death_accident"]},"annualNeedCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"providerReportedNeedCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"providerIncomeCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"privatePillar3IncomeCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"annualGapCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"deathCapitalCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"liquidAssetsAppliedCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"status":{"type":"string","enum":["valid","estimated","requires_review","needs_input","provider_error","unsupported","stale"]},"sourceRefs":{"type":"array","items":{"type":"string"}}},"required":["personId","scenario","event","annualNeedCents","providerReportedNeedCents","providerIncomeCents","privatePillar3IncomeCents","annualGapCents","deathCapitalCents","liquidAssetsAppliedCents","status","sourceRefs"],"additionalProperties":false}},"timeline":{"anyOf":[{"type":"object","properties":{"status":{"type":"string","enum":["estimated","needs_input"]},"priceBasis":{"type":"string","const":"nominal"},"guaranteed":{"type":"boolean","const":false},"periods":{"maxItems":1200,"type":"array","items":{"type":"object","properties":{"month":{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"},"persons":{"minItems":1,"maxItems":2,"type":"array","items":{"type":"object","properties":{"personId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"employmentCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"pillar1Cents":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"pillar2Cents":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"pillar3Cents":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"phase":{"type":"string","enum":["working","bridge","pension"]}},"required":["personId","employmentCents","pillar1Cents","pillar2Cents","pillar3Cents","phase"],"additionalProperties":false}},"knownIncomeCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"incomeCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"needCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"withdrawalCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"unfundedCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"capitalCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"knownCapitalCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"contributionCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"unfundedContributionCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"restrictedSavingCapitalCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"status":{"type":"string","enum":["estimated","needs_input"]}},"required":["month","persons","knownIncomeCents","incomeCents","needCents","withdrawalCents","unfundedCents","capitalCents","knownCapitalCents","contributionCents","unfundedContributionCents","restrictedSavingCapitalCents","status"],"additionalProperties":false}},"phases":{"type":"array","items":{"type":"object","properties":{"fromMonth":{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"},"persons":{"type":"array","items":{"type":"object","properties":{"personId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"phase":{"type":"string","enum":["working","bridge","pension"]}},"required":["personId","phase"],"additionalProperties":false}}},"required":["fromMonth","persons"],"additionalProperties":false}},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"}},"required":["code","path","message"],"additionalProperties":false}},"firstUnfundedMonth":{"anyOf":[{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"},{"type":"null"}]},"assumptions":{"type":"array","items":{"type":"string"}}},"required":["status","priceBasis","guaranteed","periods","phases","issues","firstUnfundedMonth","assumptions"],"additionalProperties":false},{"type":"null"}]},"reviewReasons":{"maxItems":100,"type":"array","items":{"type":"string","pattern":"^[A-Z0-9_]{1,100}$"}},"assumptions":{"type":"array","items":{"type":"string"}},"pillarPicture":{"minItems":3,"maxItems":3,"type":"array","items":{"type":"object","properties":{"pillar":{"type":"string","enum":["1","2","3"]},"status":{"type":"string","enum":["valid","estimated","requires_review","needs_input","provider_error","unsupported","stale"]},"annualPensions":{"type":"array","items":{"type":"object","properties":{"event":{"type":"string"},"personId":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},{"type":"null"}]},"amountCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]}},"required":["event","personId","amountCents"],"additionalProperties":false}},"capitalCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"annualContributionCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"capitalIsReferenceOnly":{"type":"boolean","const":true},"sourceRefs":{"type":"array","items":{"type":"string"}}},"required":["pillar","status","annualPensions","capitalCents","annualContributionCents","capitalIsReferenceOnly","sourceRefs"],"additionalProperties":false}}},"required":["id","modelVersion","profileVersion","scenarioVersionId","inputHash","createdAt","scenario","status","local","providerResults","providerFailures","riskNeeds","timeline","reviewReasons","assumptions","pillarPicture"],"additionalProperties":false}},"reviewTasks":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"runId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"profileVersion":{"type":"integer","minimum":0,"maximum":9007199254740991},"reasons":{"maxItems":100,"type":"array","items":{"type":"string","pattern":"^[A-Z0-9_]{1,100}$"}},"status":{"type":"string","enum":["open","approved_for_demo","needs_information","declined"]},"decision":{"anyOf":[{"type":"object","properties":{"actorId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"acknowledgedReasonCodes":{"maxItems":100,"type":"array","items":{"type":"string","pattern":"^[A-Z0-9_]{1,100}$"}},"criteria":{"maxItems":5,"type":"array","items":{"type":"string","maxLength":100}}},"required":["actorId","at","acknowledgedReasonCodes","criteria"],"additionalProperties":false},{"type":"null"}]}},"required":["id","runId","profileVersion","reasons","status","decision"],"additionalProperties":false}},"recommendations":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"runId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"profileVersion":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"status":{"type":"string","enum":["human_review_required","ready_for_demo","no_new_contract"]},"candidates":{"maxItems":30,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"productId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"productName":{"type":"string","maxLength":4000},"personId":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},{"type":"null"}]},"insuredChildId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"needAmountCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"needPeriod":{"type":"string","enum":["year","once"]},"rule":{"type":"object","properties":{"ruleId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"ruleVersion":{"type":"string","maxLength":120},"runId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"inputHash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"reasonCodes":{"maxItems":100,"type":"array","items":{"type":"string","pattern":"^[A-Z0-9_]{1,100}$"}},"sourceRefs":{"maxItems":200,"type":"array","items":{"type":"string","maxLength":2000}}},"required":["ruleId","ruleVersion","runId","inputHash","reasonCodes","sourceRefs"],"additionalProperties":false},"premiumCents":{"type":"null"},"premiumStatus":{"type":"string","const":"pax_tariff_api_unavailable"},"eligibility":{"type":"string","enum":["human_review_required","ready_for_demo"]},"conditions":{"maxItems":30,"type":"array","items":{"type":"string","maxLength":4000}}},"required":["id","productId","productName","personId","needAmountCents","needPeriod","rule","premiumCents","premiumStatus","eligibility","conditions"],"additionalProperties":false}},"alternatives":{"maxItems":20,"type":"array","items":{"type":"string","maxLength":4000}},"decision":{"type":"object","properties":{"ruleId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"ruleVersion":{"type":"string","maxLength":120},"runId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"inputHash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"reasonCodes":{"maxItems":100,"type":"array","items":{"type":"string","pattern":"^[A-Z0-9_]{1,100}$"}},"sourceRefs":{"maxItems":200,"type":"array","items":{"type":"string","maxLength":2000}}},"required":["ruleId","ruleVersion","runId","inputHash","reasonCodes","sourceRefs"],"additionalProperties":false}},"required":["id","runId","profileVersion","createdAt","status","candidates","alternatives","decision"],"additionalProperties":false}},"quotes":{"maxItems":200,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"recommendationId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"profileVersion":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"runId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"expiresAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"documents":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["id","sha256"],"additionalProperties":false}},"configurations":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"productId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"productName":{"type":"string","maxLength":4000},"personId":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},{"type":"null"}]},"insuredChildId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"needAmountCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"needPeriod":{"type":"string","enum":["year","once"]},"rule":{"type":"object","properties":{"ruleId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"ruleVersion":{"type":"string","maxLength":120},"runId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"inputHash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"reasonCodes":{"maxItems":100,"type":"array","items":{"type":"string","pattern":"^[A-Z0-9_]{1,100}$"}},"sourceRefs":{"maxItems":200,"type":"array","items":{"type":"string","maxLength":2000}}},"required":["ruleId","ruleVersion","runId","inputHash","reasonCodes","sourceRefs"],"additionalProperties":false},"premiumCents":{"type":"null"},"premiumStatus":{"type":"string","const":"pax_tariff_api_unavailable"},"eligibility":{"type":"string","enum":["human_review_required","ready_for_demo"]},"conditions":{"maxItems":30,"type":"array","items":{"type":"string","maxLength":4000}}},"required":["id","productId","productName","personId","needAmountCents","needPeriod","rule","premiumCents","premiumStatus","eligibility","conditions"],"additionalProperties":false}},"demo":{"type":"boolean","const":true},"legalEffect":{"type":"string","const":"none"},"premiumCents":{"type":"null"},"premiumStatus":{"type":"string","const":"pax_tariff_api_unavailable"}},"required":["id","recommendationId","profileVersion","runId","createdAt","expiresAt","documents","configurations","demo","legalEffect","premiumCents","premiumStatus"],"additionalProperties":false}},"applications":{"maxItems":200,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"quoteId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"runId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"profileVersion":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"status":{"type":"string","enum":["draft","submitted","under_review","needs_information","accepted_for_demo","declined"]},"submittedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"decisionBy":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},{"type":"null"}]},"decisionAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"demo":{"type":"boolean","const":true},"coverageInForce":{"type":"boolean","const":false}},"required":["id","quoteId","runId","profileVersion","createdAt","status","submittedAt","decisionBy","decisionAt","demo","coverageInForce"],"additionalProperties":false}},"policies":{"maxItems":200,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"applicationId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"profileVersion":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"runId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"issuedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"demo":{"type":"boolean","const":true},"coverageInForce":{"type":"boolean","const":false},"legalEffect":{"type":"string","const":"none"},"label":{"type":"string","const":"DEMO – KEIN VERSICHERUNGSSCHUTZ"},"configuration":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"productId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"productName":{"type":"string","maxLength":4000},"personId":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},{"type":"null"}]},"insuredChildId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"needAmountCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"needPeriod":{"type":"string","enum":["year","once"]},"rule":{"type":"object","properties":{"ruleId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"ruleVersion":{"type":"string","maxLength":120},"runId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"inputHash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"reasonCodes":{"maxItems":100,"type":"array","items":{"type":"string","pattern":"^[A-Z0-9_]{1,100}$"}},"sourceRefs":{"maxItems":200,"type":"array","items":{"type":"string","maxLength":2000}}},"required":["ruleId","ruleVersion","runId","inputHash","reasonCodes","sourceRefs"],"additionalProperties":false},"premiumCents":{"type":"null"},"premiumStatus":{"type":"string","const":"pax_tariff_api_unavailable"},"eligibility":{"type":"string","enum":["human_review_required","ready_for_demo"]},"conditions":{"maxItems":30,"type":"array","items":{"type":"string","maxLength":4000}}},"required":["id","productId","productName","personId","needAmountCents","needPeriod","rule","premiumCents","premiumStatus","eligibility","conditions"],"additionalProperties":false}}},"required":["id","applicationId","profileVersion","runId","issuedAt","demo","coverageInForce","legalEffect","label","configuration"],"additionalProperties":false}},"graphContext":{"anyOf":[{"type":"object","properties":{"caseId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"profileVersion":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"scenarioVersionId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"runId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"graphId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"metricId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,160}$"},"personId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"periodStart":{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"},"periodEnd":{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"}},"required":["caseId","profileVersion","scenarioVersionId","runId","graphId","metricId","periodStart","periodEnd"],"additionalProperties":false},{"type":"null"}]},"events":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"contextRevision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"reason":{"type":"string","minLength":1,"maxLength":100},"at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"voiceSessionId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"}},"required":["id","contextRevision","reason","at"],"additionalProperties":false}},"proposals":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"messageId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"path":{"type":"string","maxLength":200},"value":{"anyOf":[{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["family","home","retirement","child_protection","income_protection","survivor_protection"]},"targetMonth":{"anyOf":[{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"},{"type":"null"}]},"priority":{"type":"integer","minimum":1,"maximum":5},"targetCapitalCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]}},"required":["id","kind","targetMonth","priority","targetCapitalCents"],"additionalProperties":false},{"type":"string","maxLength":80}]},"expectedProfileVersion":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},{"type":"null"}]},"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"basisDraftHash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"status":{"type":"string","enum":["proposed","accepted","superseded"]},"replacedByBatchId":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},{"type":"null"}]}},"required":["messageId","path","value","expectedProfileVersion","id","basisDraftHash","status"],"additionalProperties":false}},"proposalBatches":{"default":[],"maxItems":100,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"messageId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"source":{"type":"object","properties":{"messageId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"turnId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"sourceRef":{"type":"string","minLength":1,"maxLength":240}},"required":["messageId","turnId","sourceRef"],"additionalProperties":false},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"requestHash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"expectedProfileVersion":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},{"type":"null"}]},"basisDraftHash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"changes":{"maxItems":50,"type":"array","items":{"type":"object","properties":{"path":{"type":"string","minLength":1,"maxLength":200},"value":{"$ref":"#/components/schemas/InsuranceCaseDto/$defs/__schema1"},"personId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"}},"required":["path","value"],"additionalProperties":false}},"status":{"type":"string","enum":["proposed","accepted","superseded","rejected"]},"supersedesBatchIds":{"maxItems":20,"type":"array","items":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"}},"supersedesProposalIds":{"maxItems":20,"type":"array","items":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"}},"replacedByBatchId":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},{"type":"null"}]},"ambiguityIds":{"maxItems":20,"type":"array","items":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"}},"resolvesAmbiguityIds":{"maxItems":20,"type":"array","items":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"}},"acceptedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]}},"required":["id","messageId","source","createdAt","requestHash","expectedProfileVersion","basisDraftHash","changes","status","supersedesBatchIds","supersedesProposalIds","replacedByBatchId","ambiguityIds","resolvesAmbiguityIds","acceptedAt"],"additionalProperties":false}},"ambiguities":{"default":[],"maxItems":100,"type":"array","items":{"type":"object","properties":{"path":{"type":"string","minLength":1,"maxLength":200},"personId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"question":{"type":"string","minLength":1,"maxLength":1000},"source":{"type":"object","properties":{"messageId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"turnId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"sourceRef":{"type":"string","minLength":1,"maxLength":240}},"required":["messageId","turnId","sourceRef"],"additionalProperties":false},"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"locale":{"type":"string","enum":["de","fr","it","en"]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"status":{"type":"string","enum":["open","resolved"]},"resolvedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"resolvedByBatchId":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},{"type":"null"}]},"resolutionSourceRef":{"anyOf":[{"type":"string","minLength":1,"maxLength":240},{"type":"null"}]}},"required":["path","question","source","id","locale","createdAt","status","resolvedAt","resolvedByBatchId","resolutionSourceRef"],"additionalProperties":false}},"estimates":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"draftHash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"results":{"maxItems":50,"type":"array","items":{"type":"object","properties":{"operation":{"type":"string","enum":["saving3aLimits","ageLimits","riskBase","risk","retirementBase","retirement","income","budgetProposal","saving","consumption","searchLocation","location","incomeFortuneTax","saving3a","capitalTax","purchaseP2","taxBaseInfo","searchLocationGeo","estateGainFields","estateGainTax","inheritanceAll","inheritanceGroup","inheritanceBeneficiary","corporateEntityTax"]},"status":{"type":"string","enum":["valid","estimated","requires_review","needs_input","provider_error","unsupported","stale"]},"metrics":{"maxItems":1000,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","maxLength":160},"value":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"currency":{"type":"string","const":"CHF"},"unit":{"type":"string","const":"cent"},"period":{"type":"string","enum":["month","year","once"]},"status":{"type":"string","enum":["valid","estimated","requires_review","needs_input","provider_error","unsupported","stale"]},"scenario":{"type":"integer","minimum":1,"maximum":8}},"required":["id","value","currency","unit","period","status"],"additionalProperties":false}},"issues":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"}},"required":["code","path","message"],"additionalProperties":false}},"metadata":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/components/schemas/InsuranceCaseDto/$defs/__schema0"}},"provenance":{"type":"object","properties":{"mode":{"type":"string","enum":["live","replay"]},"operationId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"inputHash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"capturedAt":{"type":"string","maxLength":50},"sourceRef":{"type":"string","maxLength":250}},"required":["mode","operationId","inputHash","capturedAt","sourceRef"],"additionalProperties":false}},"required":["operation","status","metrics","issues","metadata","provenance"],"additionalProperties":false}}},"required":["id","draftHash","at","results"],"additionalProperties":false}},"comparisons":{"maxItems":50,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"scope":{"type":"string","const":"valuation_snapshot_local_metrics"},"valuationDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"futureTimelineCompared":{"type":"boolean","const":false},"profileVersion":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"baselineRunId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"variantRunId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"baselineInputHash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"variantInputHash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"metrics":{"maxItems":500,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","maxLength":160},"personId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"currency":{"type":"string","const":"CHF"},"unit":{"type":"string","const":"cent"},"period":{"type":"string","enum":["month","year","once"]},"baselineValue":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"variantValue":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"delta":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"status":{"type":"string","enum":["valid","estimated","requires_review","needs_input","provider_error","unsupported","stale"]}},"required":["id","currency","unit","period","baselineValue","variantValue","delta","status"],"additionalProperties":false}}},"required":["id","scope","valuationDate","futureTimelineCompared","profileVersion","baselineRunId","variantRunId","baselineInputHash","variantInputHash","metrics"],"additionalProperties":false}},"toolRuns":{"maxItems":40,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"operation":{"type":"string","enum":["saving3aLimits","ageLimits","riskBase","risk","retirementBase","retirement","income","budgetProposal","saving","consumption","searchLocation","location","incomeFortuneTax","saving3a","capitalTax","purchaseP2","taxBaseInfo","searchLocationGeo","estateGainFields","estateGainTax","inheritanceAll","inheritanceGroup","inheritanceBeneficiary","corporateEntityTax"]},"requestUnits":{"type":"string","const":"CHF_CENTS"},"request":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/components/schemas/InsuranceCaseDto/$defs/__schema2"}},"result":{"type":"object","properties":{"operation":{"type":"string","enum":["saving3aLimits","ageLimits","riskBase","risk","retirementBase","retirement","income","budgetProposal","saving","consumption","searchLocation","location","incomeFortuneTax","saving3a","capitalTax","purchaseP2","taxBaseInfo","searchLocationGeo","estateGainFields","estateGainTax","inheritanceAll","inheritanceGroup","inheritanceBeneficiary","corporateEntityTax"]},"status":{"type":"string","enum":["valid","estimated","requires_review","needs_input","provider_error","unsupported","stale"]},"metrics":{"maxItems":1000,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","maxLength":160},"value":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"currency":{"type":"string","const":"CHF"},"unit":{"type":"string","const":"cent"},"period":{"type":"string","enum":["month","year","once"]},"status":{"type":"string","enum":["valid","estimated","requires_review","needs_input","provider_error","unsupported","stale"]},"scenario":{"type":"integer","minimum":1,"maximum":8}},"required":["id","value","currency","unit","period","status"],"additionalProperties":false}},"issues":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"}},"required":["code","path","message"],"additionalProperties":false}},"metadata":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/components/schemas/InsuranceCaseDto/$defs/__schema0"}},"provenance":{"type":"object","properties":{"mode":{"type":"string","enum":["live","replay"]},"operationId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"inputHash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"capturedAt":{"type":"string","maxLength":50},"sourceRef":{"type":"string","maxLength":250}},"required":["mode","operationId","inputHash","capturedAt","sourceRef"],"additionalProperties":false}},"required":["operation","status","metrics","issues","metadata","provenance"],"additionalProperties":false},"scope":{"type":"string","const":"isolated_calculator_estimate"},"profileMutated":{"type":"boolean","const":false},"financialInputHashChanged":{"type":"boolean","const":false},"inputHash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"locale":{"type":"string","enum":["de","fr","it","en"]}},"required":["id","createdAt","operation","requestUnits","request","result","scope","profileMutated","financialInputHashChanged","inputHash","locale"],"additionalProperties":false}},"schemaVersion":{"type":"string","const":"1.0"},"presentation":{"type":"object","properties":{"locale":{"type":"string","enum":["de","fr","it","en"]},"activeRun":{"anyOf":[{"type":"object","properties":{"locale":{"type":"string","enum":["de","fr","it","en"]},"statusLabel":{"type":"string","maxLength":4000},"metrics":{"maxItems":1000,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","maxLength":160},"personId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"label":{"type":"string","maxLength":4000},"valueCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"formatted":{"type":"string","maxLength":4000},"period":{"type":"string","enum":["month","year","once"]},"periodLabel":{"type":"string","maxLength":4000},"status":{"type":"string","enum":["valid","estimated","requires_review","needs_input","provider_error","unsupported","stale"]},"statusLabel":{"type":"string","maxLength":4000}},"required":["id","label","valueCents","formatted","period","periodLabel","status","statusLabel"],"additionalProperties":false}},"assumptions":{"maxItems":100,"type":"array","items":{"type":"string","maxLength":4000}},"reviewReasons":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"text":{"type":"string","maxLength":4000}},"required":["code","text"],"additionalProperties":false}},"issues":{"maxItems":2000,"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"}},"required":["code","path","message"],"additionalProperties":false}},"legalDocumentsNotice":{"type":"string","maxLength":4000},"demoLabel":{"type":"string","maxLength":4000}},"required":["locale","statusLabel","metrics","assumptions","reviewReasons","issues","legalDocumentsNotice","demoLabel"],"additionalProperties":false},{"type":"null"}]},"recommendations":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"runId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"profileVersion":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"status":{"type":"string","enum":["human_review_required","ready_for_demo","no_new_contract"]},"candidates":{"maxItems":30,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"productId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"productName":{"type":"string","maxLength":4000},"personId":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},{"type":"null"}]},"insuredChildId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"needAmountCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"needPeriod":{"type":"string","enum":["year","once"]},"rule":{"type":"object","properties":{"ruleId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"ruleVersion":{"type":"string","maxLength":120},"runId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"inputHash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"reasonCodes":{"maxItems":100,"type":"array","items":{"type":"string","pattern":"^[A-Z0-9_]{1,100}$"}},"sourceRefs":{"maxItems":200,"type":"array","items":{"type":"string","maxLength":2000}}},"required":["ruleId","ruleVersion","runId","inputHash","reasonCodes","sourceRefs"],"additionalProperties":false},"premiumCents":{"type":"null"},"premiumStatus":{"type":"string","const":"pax_tariff_api_unavailable"},"eligibility":{"type":"string","enum":["human_review_required","ready_for_demo"]},"conditions":{"maxItems":30,"type":"array","items":{"type":"string","maxLength":4000}},"explanation":{"type":"string","maxLength":4000},"reasonDetails":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"text":{"type":"string","maxLength":4000}},"required":["code","text"],"additionalProperties":false}}},"required":["id","productId","productName","personId","needAmountCents","needPeriod","rule","premiumCents","premiumStatus","eligibility","conditions","explanation","reasonDetails"],"additionalProperties":false}},"alternatives":{"maxItems":20,"type":"array","items":{"type":"string","maxLength":4000}},"decision":{"type":"object","properties":{"ruleId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"ruleVersion":{"type":"string","maxLength":120},"runId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"inputHash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"reasonCodes":{"maxItems":100,"type":"array","items":{"type":"string","pattern":"^[A-Z0-9_]{1,100}$"}},"sourceRefs":{"maxItems":200,"type":"array","items":{"type":"string","maxLength":2000}}},"required":["ruleId","ruleVersion","runId","inputHash","reasonCodes","sourceRefs"],"additionalProperties":false},"locale":{"type":"string","enum":["de","fr","it","en"]},"statusLabel":{"type":"string","maxLength":4000},"disclaimer":{"type":"string","maxLength":4000},"documentsLanguageNotice":{"type":"string","maxLength":4000}},"required":["id","runId","profileVersion","createdAt","status","candidates","alternatives","decision","locale","statusLabel","disclaimer","documentsLanguageNotice"],"additionalProperties":false}},"portal":{"type":"object","properties":{"quotes":{"maxItems":200,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"recommendationId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"profileVersion":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"runId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"expiresAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"documents":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["id","sha256"],"additionalProperties":false}},"configurations":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"productId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"productName":{"type":"string","maxLength":4000},"personId":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},{"type":"null"}]},"insuredChildId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"needAmountCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"needPeriod":{"type":"string","enum":["year","once"]},"rule":{"type":"object","properties":{"ruleId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"ruleVersion":{"type":"string","maxLength":120},"runId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"inputHash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"reasonCodes":{"maxItems":100,"type":"array","items":{"type":"string","pattern":"^[A-Z0-9_]{1,100}$"}},"sourceRefs":{"maxItems":200,"type":"array","items":{"type":"string","maxLength":2000}}},"required":["ruleId","ruleVersion","runId","inputHash","reasonCodes","sourceRefs"],"additionalProperties":false},"premiumCents":{"type":"null"},"premiumStatus":{"type":"string","const":"pax_tariff_api_unavailable"},"eligibility":{"type":"string","enum":["human_review_required","ready_for_demo"]},"conditions":{"maxItems":30,"type":"array","items":{"type":"string","maxLength":4000}}},"required":["id","productId","productName","personId","needAmountCents","needPeriod","rule","premiumCents","premiumStatus","eligibility","conditions"],"additionalProperties":false}},"demo":{"type":"boolean","const":true},"legalEffect":{"type":"string","const":"none"},"premiumCents":{"type":"null"},"premiumStatus":{"type":"string","const":"pax_tariff_api_unavailable"},"displayLabel":{"type":"string","maxLength":4000}},"required":["id","recommendationId","profileVersion","runId","createdAt","expiresAt","documents","configurations","demo","legalEffect","premiumCents","premiumStatus","displayLabel"],"additionalProperties":false}},"applications":{"maxItems":200,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"quoteId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"runId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"profileVersion":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"status":{"type":"string","enum":["draft","submitted","under_review","needs_information","accepted_for_demo","declined"]},"submittedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"decisionBy":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},{"type":"null"}]},"decisionAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"demo":{"type":"boolean","const":true},"coverageInForce":{"type":"boolean","const":false},"displayLabel":{"type":"string","maxLength":4000},"statusLabel":{"type":"string","maxLength":4000}},"required":["id","quoteId","runId","profileVersion","createdAt","status","submittedAt","decisionBy","decisionAt","demo","coverageInForce","displayLabel","statusLabel"],"additionalProperties":false}},"policies":{"maxItems":200,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"applicationId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"profileVersion":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"runId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"issuedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"demo":{"type":"boolean","const":true},"coverageInForce":{"type":"boolean","const":false},"legalEffect":{"type":"string","const":"none"},"label":{"type":"string","const":"DEMO – KEIN VERSICHERUNGSSCHUTZ"},"configuration":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"productId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"productName":{"type":"string","maxLength":4000},"personId":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},{"type":"null"}]},"insuredChildId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"needAmountCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"needPeriod":{"type":"string","enum":["year","once"]},"rule":{"type":"object","properties":{"ruleId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"ruleVersion":{"type":"string","maxLength":120},"runId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"inputHash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"reasonCodes":{"maxItems":100,"type":"array","items":{"type":"string","pattern":"^[A-Z0-9_]{1,100}$"}},"sourceRefs":{"maxItems":200,"type":"array","items":{"type":"string","maxLength":2000}}},"required":["ruleId","ruleVersion","runId","inputHash","reasonCodes","sourceRefs"],"additionalProperties":false},"premiumCents":{"type":"null"},"premiumStatus":{"type":"string","const":"pax_tariff_api_unavailable"},"eligibility":{"type":"string","enum":["human_review_required","ready_for_demo"]},"conditions":{"maxItems":30,"type":"array","items":{"type":"string","maxLength":4000}}},"required":["id","productId","productName","personId","needAmountCents","needPeriod","rule","premiumCents","premiumStatus","eligibility","conditions"],"additionalProperties":false}},"displayLabel":{"type":"string","maxLength":4000}},"required":["id","applicationId","profileVersion","runId","issuedAt","demo","coverageInForce","legalEffect","label","configuration","displayLabel"],"additionalProperties":false}},"locale":{"type":"string","enum":["de","fr","it","en"]},"displayLabel":{"type":"string","maxLength":4000},"documentsLanguageNotice":{"type":"string","maxLength":4000}},"required":["quotes","applications","policies","locale","displayLabel","documentsLanguageNotice"],"additionalProperties":false}},"required":["locale","activeRun","recommendations","portal"],"additionalProperties":false}},"required":["handover","id","createdAt","updatedAt","expiresAt","locale","timeBudgetMinutes","caseRevision","contextRevision","draft","draftDirty","confirmedVersions","latestAnalysisRequestId","activeRunId","runs","reviewTasks","recommendations","quotes","applications","policies","graphContext","events","proposals","proposalBatches","ambiguities","estimates","comparisons","toolRuns","schemaVersion","presentation"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/components/schemas/InsuranceCaseDto/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/components/schemas/InsuranceCaseDto/$defs/__schema0"}}]},"__schema1":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/components/schemas/InsuranceCaseDto/$defs/__schema1"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/components/schemas/InsuranceCaseDto/$defs/__schema1"}}]},"__schema2":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/components/schemas/InsuranceCaseDto/$defs/__schema2"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/components/schemas/InsuranceCaseDto/$defs/__schema2"}}]}}},"LifeAnalysisResponse":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"caseRevision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"contextRevision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"run":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"modelVersion":{"type":"string"},"profileVersion":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"scenarioVersionId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"inputHash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"scenario":{"anyOf":[{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"baseline"}},"required":["kind"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"family"},"personId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"newEmploymentRateBps":{"type":"integer","minimum":0,"maximum":10000},"additionalMonthlyCostCents":{"type":"integer","minimum":0,"maximum":1000000000000},"linearIncomeAssumptionConfirmed":{"type":"boolean","const":true}},"required":["kind","personId","newEmploymentRateBps","additionalMonthlyCostCents","linearIncomeAssumptionConfirmed"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"home"},"purchasePriceCents":{"type":"integer","minimum":0,"maximum":1000000000000},"equityRateBps":{"type":"integer","minimum":0,"maximum":10000},"purchaseCostsCents":{"type":"integer","minimum":0,"maximum":1000000000000},"reserveCents":{"type":"integer","minimum":0,"maximum":1000000000000},"annualInterestBps":{"type":"integer","minimum":0,"maximum":2000},"annualMaintenanceBps":{"type":"integer","minimum":0,"maximum":2000},"annualAmortizationCents":{"type":"integer","minimum":0,"maximum":1000000000000},"assumptionsConfirmed":{"type":"boolean","const":true}},"required":["kind","purchasePriceCents","equityRateBps","purchaseCostsCents","reserveCents","annualInterestBps","annualMaintenanceBps","annualAmortizationCents","assumptionsConfirmed"],"additionalProperties":false}]},{"type":"object","properties":{"kind":{"type":"string","const":"retirement"},"goalId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"startMonth":{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"},"endMonth":{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"},"incomeBasis":{"type":"string","const":"net_after_income_tax"},"monthlyNeedCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"monthlySavingCents":{"type":"integer","minimum":0,"maximum":1000000000000},"savingLiquidity":{"type":"string","enum":["free","retirement_restricted"]},"savingsReleaseMonth":{"anyOf":[{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"},{"type":"null"}]},"annualReturnBps":{"type":"integer","minimum":-5000,"maximum":2000},"releaseAssumptions":{"maxItems":40,"type":"array","items":{"type":"object","properties":{"assetId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"availableMonth":{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"}},"required":["assetId","availableMonth"],"additionalProperties":false}},"persons":{"minItems":1,"maxItems":2,"type":"array","items":{"type":"object","properties":{"personId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"workEndsMonth":{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"},"pensionStartsMonth":{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"},"pillar1MonthlyCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"pillar2MonthlyCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"pillar3MonthlyCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]}},"required":["personId","workEndsMonth","pensionStartsMonth","pillar1MonthlyCents","pillar2MonthlyCents","pillar3MonthlyCents"],"additionalProperties":false}},"assumptionsConfirmed":{"type":"boolean","const":true},"priceBasis":{"type":"string","const":"nominal"}},"required":["kind","goalId","startMonth","endMonth","incomeBasis","monthlyNeedCents","monthlySavingCents","savingLiquidity","savingsReleaseMonth","annualReturnBps","releaseAssumptions","persons","assumptionsConfirmed","priceBasis"],"additionalProperties":false}]},"status":{"type":"string","enum":["current","stale","provider_error","needs_input"]},"local":{"type":"object","properties":{"schemaVersion":{"type":"string","const":"1.0"},"messageId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"caseId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"correlationId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"profileVersion":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"scenarioVersionId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"runId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"calculationInputHash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"modelVersion":{"type":"string"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"dataClassification":{"type":"string","enum":["synthetic","customer"]},"valuationDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"priceBasis":{"type":"string","const":"nominal"},"periodStart":{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"},"periodEnd":{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"},"statusByArea":{"type":"object","properties":{"budget":{"type":"string","enum":["valid","estimated","requires_review","needs_input","provider_error","unsupported","stale"]},"capital":{"type":"string","enum":["valid","estimated","requires_review","needs_input","provider_error","unsupported","stale"]},"pillars":{"type":"string","enum":["valid","estimated","requires_review","needs_input","provider_error","unsupported","stale"]}},"additionalProperties":false},"metrics":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,160}$"},"value":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"currency":{"type":"string","const":"CHF"},"unit":{"type":"string","const":"cent"},"period":{"type":"string","enum":["month","year","once"]},"status":{"type":"string","enum":["valid","estimated","requires_review","needs_input","provider_error","unsupported","stale"]},"personId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"sourceRefs":{"maxItems":120,"type":"array","items":{"type":"string"}}},"required":["id","value","currency","unit","period","status","sourceRefs"],"additionalProperties":false}},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"}},"required":["code","path","message"],"additionalProperties":false}},"assumptions":{"type":"array","items":{"type":"string"}},"capitalBreakdown":{"type":"array","items":{"type":"object","properties":{"assetId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"totalCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"allocatedCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"freeCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"excludedReason":{"anyOf":[{"type":"string","enum":["restricted","not_available_yet"]},{"type":"null"}]},"allocations":{"type":"array","items":{"type":"object","properties":{"goalId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"amountCents":{"type":"integer","minimum":0,"maximum":1000000000000}},"required":["goalId","amountCents"],"additionalProperties":false}}},"required":["assetId","totalCents","allocatedCents","freeCents","excludedReason","allocations"],"additionalProperties":false}},"progress":{"type":"object","properties":{"domain":{"type":"string","const":"data_capture"},"percent":{"type":"integer","minimum":0,"maximum":100},"reviewOpen":{"type":"boolean"},"groups":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"complete":{"type":"boolean"},"missing":{"type":"array","items":{"type":"string"}}},"required":["id","complete","missing"],"additionalProperties":false}}},"required":["domain","percent","reviewOpen","groups"],"additionalProperties":false}},"required":["schemaVersion","messageId","caseId","correlationId","profileVersion","scenarioVersionId","runId","calculationInputHash","modelVersion","createdAt","dataClassification","valuationDate","priceBasis","periodStart","periodEnd","statusByArea","metrics","issues","assumptions","capitalBreakdown","progress"],"additionalProperties":false},"providerResults":{"maxItems":50,"type":"array","items":{"type":"object","properties":{"operation":{"type":"string","enum":["saving3aLimits","ageLimits","riskBase","risk","retirementBase","retirement","income","budgetProposal","saving","consumption","searchLocation","location","incomeFortuneTax","saving3a","capitalTax","purchaseP2","taxBaseInfo","searchLocationGeo","estateGainFields","estateGainTax","inheritanceAll","inheritanceGroup","inheritanceBeneficiary","corporateEntityTax"]},"status":{"type":"string","enum":["valid","estimated","requires_review","needs_input","provider_error","unsupported","stale"]},"metrics":{"maxItems":1000,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","maxLength":160},"value":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"currency":{"type":"string","const":"CHF"},"unit":{"type":"string","const":"cent"},"period":{"type":"string","enum":["month","year","once"]},"status":{"type":"string","enum":["valid","estimated","requires_review","needs_input","provider_error","unsupported","stale"]},"scenario":{"type":"integer","minimum":1,"maximum":8}},"required":["id","value","currency","unit","period","status"],"additionalProperties":false}},"issues":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"}},"required":["code","path","message"],"additionalProperties":false}},"metadata":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/components/schemas/LifeAnalysisResponse/$defs/__schema0"}},"provenance":{"type":"object","properties":{"mode":{"type":"string","enum":["live","replay"]},"operationId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"inputHash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"capturedAt":{"type":"string","maxLength":50},"sourceRef":{"type":"string","maxLength":250}},"required":["mode","operationId","inputHash","capturedAt","sourceRef"],"additionalProperties":false}},"required":["operation","status","metrics","issues","metadata","provenance"],"additionalProperties":false}},"providerFailures":{"maxItems":50,"type":"array","items":{"type":"object","properties":{"operation":{"type":"string","maxLength":80},"code":{"type":"string","pattern":"^[A-Z0-9_]{2,100}$"}},"required":["operation","code"],"additionalProperties":false}},"riskNeeds":{"maxItems":8,"type":"array","items":{"type":"object","properties":{"personId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"scenario":{"type":"integer","minimum":1,"maximum":8},"event":{"type":"string","enum":["disability_illness","disability_accident","death_illness","death_accident"]},"annualNeedCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"providerReportedNeedCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"providerIncomeCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"privatePillar3IncomeCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"annualGapCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"deathCapitalCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"liquidAssetsAppliedCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"status":{"type":"string","enum":["valid","estimated","requires_review","needs_input","provider_error","unsupported","stale"]},"sourceRefs":{"type":"array","items":{"type":"string"}}},"required":["personId","scenario","event","annualNeedCents","providerReportedNeedCents","providerIncomeCents","privatePillar3IncomeCents","annualGapCents","deathCapitalCents","liquidAssetsAppliedCents","status","sourceRefs"],"additionalProperties":false}},"timeline":{"anyOf":[{"type":"object","properties":{"status":{"type":"string","enum":["estimated","needs_input"]},"priceBasis":{"type":"string","const":"nominal"},"guaranteed":{"type":"boolean","const":false},"periods":{"maxItems":1200,"type":"array","items":{"type":"object","properties":{"month":{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"},"persons":{"minItems":1,"maxItems":2,"type":"array","items":{"type":"object","properties":{"personId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"employmentCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"pillar1Cents":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"pillar2Cents":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"pillar3Cents":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"phase":{"type":"string","enum":["working","bridge","pension"]}},"required":["personId","employmentCents","pillar1Cents","pillar2Cents","pillar3Cents","phase"],"additionalProperties":false}},"knownIncomeCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"incomeCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"needCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"withdrawalCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"unfundedCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"capitalCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"knownCapitalCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"contributionCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"unfundedContributionCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"restrictedSavingCapitalCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"status":{"type":"string","enum":["estimated","needs_input"]}},"required":["month","persons","knownIncomeCents","incomeCents","needCents","withdrawalCents","unfundedCents","capitalCents","knownCapitalCents","contributionCents","unfundedContributionCents","restrictedSavingCapitalCents","status"],"additionalProperties":false}},"phases":{"type":"array","items":{"type":"object","properties":{"fromMonth":{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"},"persons":{"type":"array","items":{"type":"object","properties":{"personId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"phase":{"type":"string","enum":["working","bridge","pension"]}},"required":["personId","phase"],"additionalProperties":false}}},"required":["fromMonth","persons"],"additionalProperties":false}},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"}},"required":["code","path","message"],"additionalProperties":false}},"firstUnfundedMonth":{"anyOf":[{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"},{"type":"null"}]},"assumptions":{"type":"array","items":{"type":"string"}}},"required":["status","priceBasis","guaranteed","periods","phases","issues","firstUnfundedMonth","assumptions"],"additionalProperties":false},{"type":"null"}]},"reviewReasons":{"maxItems":100,"type":"array","items":{"type":"string","pattern":"^[A-Z0-9_]{1,100}$"}},"assumptions":{"type":"array","items":{"type":"string"}},"pillarPicture":{"minItems":3,"maxItems":3,"type":"array","items":{"type":"object","properties":{"pillar":{"type":"string","enum":["1","2","3"]},"status":{"type":"string","enum":["valid","estimated","requires_review","needs_input","provider_error","unsupported","stale"]},"annualPensions":{"type":"array","items":{"type":"object","properties":{"event":{"type":"string"},"personId":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},{"type":"null"}]},"amountCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]}},"required":["event","personId","amountCents"],"additionalProperties":false}},"capitalCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"annualContributionCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"capitalIsReferenceOnly":{"type":"boolean","const":true},"sourceRefs":{"type":"array","items":{"type":"string"}}},"required":["pillar","status","annualPensions","capitalCents","annualContributionCents","capitalIsReferenceOnly","sourceRefs"],"additionalProperties":false}}},"required":["id","modelVersion","profileVersion","scenarioVersionId","inputHash","createdAt","scenario","status","local","providerResults","providerFailures","riskNeeds","timeline","reviewReasons","assumptions","pillarPicture"],"additionalProperties":false},"presentation":{"type":"object","properties":{"locale":{"type":"string","enum":["de","fr","it","en"]},"statusLabel":{"type":"string","maxLength":4000},"metrics":{"maxItems":1000,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","maxLength":160},"personId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"label":{"type":"string","maxLength":4000},"valueCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"formatted":{"type":"string","maxLength":4000},"period":{"type":"string","enum":["month","year","once"]},"periodLabel":{"type":"string","maxLength":4000},"status":{"type":"string","enum":["valid","estimated","requires_review","needs_input","provider_error","unsupported","stale"]},"statusLabel":{"type":"string","maxLength":4000}},"required":["id","label","valueCents","formatted","period","periodLabel","status","statusLabel"],"additionalProperties":false}},"assumptions":{"maxItems":100,"type":"array","items":{"type":"string","maxLength":4000}},"reviewReasons":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"text":{"type":"string","maxLength":4000}},"required":["code","text"],"additionalProperties":false}},"issues":{"maxItems":2000,"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"}},"required":["code","path","message"],"additionalProperties":false}},"legalDocumentsNotice":{"type":"string","maxLength":4000},"demoLabel":{"type":"string","maxLength":4000}},"required":["locale","statusLabel","metrics","assumptions","reviewReasons","issues","legalDocumentsNotice","demoLabel"],"additionalProperties":false}},"required":["caseRevision","contextRevision","run","presentation"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/components/schemas/LifeAnalysisResponse/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/components/schemas/LifeAnalysisResponse/$defs/__schema0"}}]}}},"AdvisorContext":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"handover":{"default":{"status":"digital","revision":0,"wantsHumanAdvisor":false,"leaveViewRequested":false,"stopDigitalConversation":false,"requestId":null,"requestedAt":null,"resumedAt":null,"source":null},"type":"object","properties":{"status":{"type":"string","enum":["digital","requested"]},"revision":{"type":"integer","minimum":0,"maximum":9007199254740991},"wantsHumanAdvisor":{"type":"boolean"},"leaveViewRequested":{"type":"boolean"},"stopDigitalConversation":{"type":"boolean"},"requestId":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},{"type":"null"}]},"requestedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"resumedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"source":{"anyOf":[{"type":"string","enum":["ui","voice"]},{"type":"null"}]}},"required":["status","revision","wantsHumanAdvisor","leaveViewRequested","stopDigitalConversation","requestId","requestedAt","resumedAt","source"],"additionalProperties":false},"humanAdvisorContact":{"default":{"organization":"Pax","kind":"public_general_contact","phone":"+41612776666","displayPhone":"+41 61 277 66 66","sourceUrl":"https://www.pax.ch/de/kontakt-und-services","verifiedAt":"2026-10-31","automaticDialing":false,"advisorAssigned":false},"type":"object","properties":{"organization":{"type":"string","const":"Pax"},"kind":{"type":"string","const":"public_general_contact"},"phone":{"type":"string","pattern":"^\\+[1-9]\\d{7,14}$"},"displayPhone":{"type":"string","maxLength":40},"sourceUrl":{"type":"string","format":"uri"},"verifiedAt":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"automaticDialing":{"type":"boolean","const":false},"advisorAssigned":{"type":"boolean","const":false}},"required":["organization","kind","phone","displayPhone","sourceUrl","verifiedAt","automaticDialing","advisorAssigned"],"additionalProperties":false},"caseId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"caseRevision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"contextRevision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"profileVersion":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},{"type":"null"}]},"runId":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},{"type":"null"}]},"scenarioVersionId":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},{"type":"null"}]},"calculationInputHash":{"anyOf":[{"type":"string","pattern":"^[a-f0-9]{64}$"},{"type":"null"}]},"locale":{"type":"string","enum":["de","fr","it","en"]},"tempo":{"type":"string","enum":["compact","detailed"]},"graphContext":{"anyOf":[{"type":"object","properties":{"caseId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"profileVersion":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"scenarioVersionId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"runId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"graphId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"metricId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,160}$"},"personId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"periodStart":{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"},"periodEnd":{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"}},"required":["caseId","profileVersion","scenarioVersionId","runId","graphId","metricId","periodStart","periodEnd"],"additionalProperties":false},{"type":"null"}]},"contextId":{"anyOf":[{"type":"string","pattern":"^[a-f0-9]{64}$"},{"type":"null"}]},"selectedGraphFacts":{"anyOf":[{"type":"object","properties":{"metric":{"type":"object","properties":{"id":{"type":"string","maxLength":160},"value":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"unit":{"type":"string","const":"cent"},"currency":{"type":"string","const":"CHF"},"period":{"type":"string","enum":["month","year","once","range"]},"status":{"type":"string","enum":["valid","estimated","requires_review","needs_input","provider_error","unsupported","stale"]},"personId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"sourceRefs":{"type":"array","items":{"type":"string"}}},"required":["id","value","unit","currency","period","status"],"additionalProperties":false},"series":{"maxItems":24,"type":"array","items":{"type":"object","properties":{"month":{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"},"value":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"unit":{"type":"string","const":"cent"},"currency":{"type":"string","const":"CHF"},"period":{"type":"string","enum":["month","once"]},"status":{"type":"string","enum":["valid","estimated","requires_review","needs_input","provider_error","unsupported","stale"]}},"required":["month","value","unit","currency","period","status"],"additionalProperties":false}},"sourceRefs":{"type":"array","items":{"type":"string"}},"rangeSummary":{"type":"object","properties":{"points":{"type":"integer","minimum":25,"maximum":1200},"first":{"type":"object","properties":{"month":{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"},"value":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"unit":{"type":"string","const":"cent"},"currency":{"type":"string","const":"CHF"},"period":{"type":"string","enum":["month","once"]},"status":{"type":"string","enum":["valid","estimated","requires_review","needs_input","provider_error","unsupported","stale"]}},"required":["month","value","unit","currency","period","status"],"additionalProperties":false},"last":{"type":"object","properties":{"month":{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"},"value":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"unit":{"type":"string","const":"cent"},"currency":{"type":"string","const":"CHF"},"period":{"type":"string","enum":["month","once"]},"status":{"type":"string","enum":["valid","estimated","requires_review","needs_input","provider_error","unsupported","stale"]}},"required":["month","value","unit","currency","period","status"],"additionalProperties":false},"minimumKnown":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"maximumKnown":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"unknownPoints":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["points","first","last","minimumKnown","maximumKnown","unknownPoints"],"additionalProperties":false}},"required":["metric","series","sourceRefs"],"additionalProperties":false},{"type":"null"}]},"maySpeakSelectedAmounts":{"type":"boolean"},"calculationStatus":{"type":"string","enum":["current","stale","provider_error","needs_input","running"]},"ambiguities":{"default":[],"maxItems":100,"type":"array","items":{"type":"object","properties":{"path":{"type":"string","minLength":1,"maxLength":200},"personId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"question":{"type":"string","minLength":1,"maxLength":1000},"source":{"type":"object","properties":{"messageId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"turnId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"sourceRef":{"type":"string","minLength":1,"maxLength":240}},"required":["messageId","turnId","sourceRef"],"additionalProperties":false},"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"locale":{"type":"string","enum":["de","fr","it","en"]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"status":{"type":"string","enum":["open","resolved"]},"resolvedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"resolvedByBatchId":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},{"type":"null"}]},"resolutionSourceRef":{"anyOf":[{"type":"string","minLength":1,"maxLength":240},{"type":"null"}]},"dialogueStatus":{"type":"string","enum":["needs_answer","awaiting_customer_acceptance","resolved"]},"answerBatchId":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},{"type":"null"}]}},"required":["path","question","source","id","locale","createdAt","status","resolvedAt","resolvedByBatchId","resolutionSourceRef","dialogueStatus","answerBatchId"],"additionalProperties":false}},"pendingAcceptanceBatchIds":{"default":[],"maxItems":100,"type":"array","items":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"}},"approvedFacts":{"maxItems":1000,"type":"array","items":{"type":"object","properties":{"metricId":{"type":"string","maxLength":160},"value":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"currency":{"type":"string","const":"CHF"},"unit":{"type":"string","const":"cent"},"period":{"type":"string","enum":["month","year","once"]},"status":{"type":"string","enum":["valid","estimated","requires_review","needs_input","provider_error","unsupported","stale"]},"runId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"profileVersion":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"scenarioVersionId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"humanReviewedForDemo":{"type":"boolean"},"label":{"type":"string","maxLength":4000},"statusLabel":{"type":"string","maxLength":4000}},"required":["metricId","value","currency","unit","period","status","runId","profileVersion","scenarioVersionId","humanReviewedForDemo","label","statusLabel"],"additionalProperties":false}},"nextQuestion":{"anyOf":[{"type":"object","properties":{"path":{"type":"string","maxLength":250},"mandatory":{"type":"boolean","const":true},"text":{"type":"string","maxLength":4000}},"required":["path","mandatory","text"],"additionalProperties":false},{"type":"null"}]},"missingFields":{"type":"array","items":{"type":"string"}},"scenarioComparisons":{"maxItems":1,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"scope":{"type":"string","const":"valuation_snapshot_local_metrics"},"valuationDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"futureTimelineCompared":{"type":"boolean","const":false},"profileVersion":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"baselineRunId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"variantRunId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"baselineInputHash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"variantInputHash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"metrics":{"maxItems":500,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","maxLength":160},"personId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"currency":{"type":"string","const":"CHF"},"unit":{"type":"string","const":"cent"},"period":{"type":"string","enum":["month","year","once"]},"baselineValue":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"variantValue":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"delta":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"status":{"type":"string","enum":["valid","estimated","requires_review","needs_input","provider_error","unsupported","stale"]}},"required":["id","currency","unit","period","baselineValue","variantValue","delta","status"],"additionalProperties":false}}},"required":["id","scope","valuationDate","futureTimelineCompared","profileVersion","baselineRunId","variantRunId","baselineInputHash","variantInputHash","metrics"],"additionalProperties":false}},"reviewStatus":{"type":"string","enum":["approved_for_demo","open","not_started"]},"maySpeakAmounts":{"type":"boolean"},"progress":{"type":"object","properties":{"domain":{"type":"string","const":"data_capture"},"percent":{"type":"integer","minimum":0,"maximum":100},"reviewOpen":{"type":"boolean"},"groups":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"complete":{"type":"boolean"},"missing":{"type":"array","items":{"type":"string"}},"label":{"type":"string","maxLength":4000}},"required":["id","complete","missing","label"],"additionalProperties":false}},"scope":{"type":"string","const":"whole_life_intake"}},"required":["domain","percent","reviewOpen","groups","scope"],"additionalProperties":false},"allowedActions":{"maxItems":10,"type":"array","items":{"type":"string","enum":["read_context","propose_patch","update_draft","confirm_profile","calculate","request_human","resume_digital","record_review"]}},"policy":{"type":"object","properties":{"noRawHealthData":{"type":"boolean","const":true},"noProviderTokens":{"type":"boolean","const":true},"noExternalAiTransferAuthorized":{"type":"boolean","const":true},"productFirstSelling":{"type":"boolean","const":false}},"required":["noRawHealthData","noProviderTokens","noExternalAiTransferAuthorized","productFirstSelling"],"additionalProperties":false}},"required":["handover","humanAdvisorContact","caseId","caseRevision","contextRevision","profileVersion","runId","scenarioVersionId","calculationInputHash","locale","tempo","graphContext","contextId","selectedGraphFacts","maySpeakSelectedAmounts","calculationStatus","ambiguities","pendingAcceptanceBatchIds","approvedFacts","nextQuestion","missingFields","scenarioComparisons","reviewStatus","maySpeakAmounts","progress","allowedActions","policy"],"additionalProperties":false},"ExtractorContext":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"handover":{"default":{"status":"digital","revision":0,"wantsHumanAdvisor":false,"leaveViewRequested":false,"stopDigitalConversation":false,"requestId":null,"requestedAt":null,"resumedAt":null,"source":null},"type":"object","properties":{"status":{"type":"string","enum":["digital","requested"]},"revision":{"type":"integer","minimum":0,"maximum":9007199254740991},"wantsHumanAdvisor":{"type":"boolean"},"leaveViewRequested":{"type":"boolean"},"stopDigitalConversation":{"type":"boolean"},"requestId":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},{"type":"null"}]},"requestedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"resumedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"source":{"anyOf":[{"type":"string","enum":["ui","voice"]},{"type":"null"}]}},"required":["status","revision","wantsHumanAdvisor","leaveViewRequested","stopDigitalConversation","requestId","requestedAt","resumedAt","source"],"additionalProperties":false},"humanAdvisorContact":{"default":{"organization":"Pax","kind":"public_general_contact","phone":"+41612776666","displayPhone":"+41 61 277 66 66","sourceUrl":"https://www.pax.ch/de/kontakt-und-services","verifiedAt":"2026-10-31","automaticDialing":false,"advisorAssigned":false},"type":"object","properties":{"organization":{"type":"string","const":"Pax"},"kind":{"type":"string","const":"public_general_contact"},"phone":{"type":"string","pattern":"^\\+[1-9]\\d{7,14}$"},"displayPhone":{"type":"string","maxLength":40},"sourceUrl":{"type":"string","format":"uri"},"verifiedAt":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"automaticDialing":{"type":"boolean","const":false},"advisorAssigned":{"type":"boolean","const":false}},"required":["organization","kind","phone","displayPhone","sourceUrl","verifiedAt","automaticDialing","advisorAssigned"],"additionalProperties":false},"schemaVersion":{"type":"string","const":"1.0"},"caseId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"caseRevision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"contextRevision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"profileVersion":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},{"type":"null"}]},"draftHash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"draftDirty":{"type":"boolean"},"locale":{"type":"string","enum":["de","fr","it","en"]},"dataClassification":{"type":"string","const":"synthetic"},"personIds":{"maxItems":2,"type":"array","items":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"}},"draft":{"type":"object","properties":{"financial":{"anyOf":[{"type":"object","properties":{"schemaVersion":{"type":"string","const":"1.0"},"caseId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"caseRevision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"profileVersion":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"dataClassification":{"type":"string","enum":["synthetic","customer"]},"valuationDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"priceBasis":{"type":"string","const":"nominal"},"persons":{"minItems":1,"maxItems":2,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"birthYear":{"type":"integer","minimum":1900,"maximum":2100},"employmentRateBps":{"type":"integer","minimum":0,"maximum":10000},"income":{"type":"object","properties":{"value":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"currency":{"type":"string","const":"CHF"},"unit":{"type":"string","const":"cent"},"period":{"type":"string","enum":["month","year","once"]},"origin":{"type":"string","enum":["user","document","api","estimate","synthetic"]},"confirmation":{"type":"string","enum":["proposed","confirmed"]},"review":{"type":"string","enum":["unreviewed","reviewed","rejected"]},"sourceRef":{"type":"string","minLength":1,"maxLength":240}},"required":["value","currency","unit","period","origin","confirmation","review","sourceRef"],"additionalProperties":false},"incomeBasis":{"type":"string","enum":["gross","net_before_income_tax","net_after_income_tax"]}},"required":["id","birthYear","employmentRateBps","income","incomeBasis"],"additionalProperties":false}},"expenses":{"maxItems":80,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"category":{"type":"string","enum":["housing","living","tax","provision","debt","reserve","other"]},"amount":{"type":"object","properties":{"value":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"currency":{"type":"string","const":"CHF"},"unit":{"type":"string","const":"cent"},"period":{"type":"string","enum":["month","year","once"]},"origin":{"type":"string","enum":["user","document","api","estimate","synthetic"]},"confirmation":{"type":"string","enum":["proposed","confirmed"]},"review":{"type":"string","enum":["unreviewed","reviewed","rejected"]},"sourceRef":{"type":"string","minLength":1,"maxLength":240}},"required":["value","currency","unit","period","origin","confirmation","review","sourceRef"],"additionalProperties":false},"includedInExpenseId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"}},"required":["id","category","amount"],"additionalProperties":false}},"safetyBuffer":{"type":"object","properties":{"value":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"currency":{"type":"string","const":"CHF"},"unit":{"type":"string","const":"cent"},"period":{"type":"string","enum":["month","year","once"]},"origin":{"type":"string","enum":["user","document","api","estimate","synthetic"]},"confirmation":{"type":"string","enum":["proposed","confirmed"]},"review":{"type":"string","enum":["unreviewed","reviewed","rejected"]},"sourceRef":{"type":"string","minLength":1,"maxLength":240}},"required":["value","currency","unit","period","origin","confirmation","review","sourceRef"],"additionalProperties":false},"assets":{"maxItems":40,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"amount":{"type":"object","properties":{"value":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"currency":{"type":"string","const":"CHF"},"unit":{"type":"string","const":"cent"},"period":{"type":"string","enum":["month","year","once"]},"origin":{"type":"string","enum":["user","document","api","estimate","synthetic"]},"confirmation":{"type":"string","enum":["proposed","confirmed"]},"review":{"type":"string","enum":["unreviewed","reviewed","rejected"]},"sourceRef":{"type":"string","minLength":1,"maxLength":240}},"required":["value","currency","unit","period","origin","confirmation","review","sourceRef"],"additionalProperties":false},"ownerPersonIds":{"minItems":1,"maxItems":2,"type":"array","items":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"}},"liquidity":{"type":"string","enum":["free","restricted"]},"availableFrom":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"pillar":{"type":"string","enum":["2","3","none"]},"allocations":{"maxItems":30,"type":"array","items":{"type":"object","properties":{"goalId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"amountCents":{"type":"integer","minimum":0,"maximum":1000000000000}},"required":["goalId","amountCents"],"additionalProperties":false}}},"required":["id","amount","liquidity","availableFrom","pillar","allocations"],"additionalProperties":false}},"assetsConfirmed":{"type":"boolean"},"provisions":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"personId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"pillar":{"type":"string","enum":["1","2","3"]},"event":{"type":"string","enum":["retirement","disability_illness","disability_accident","death_illness","death_accident"]},"amount":{"type":"object","properties":{"value":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"currency":{"type":"string","const":"CHF"},"unit":{"type":"string","const":"cent"},"period":{"type":"string","enum":["month","year","once"]},"origin":{"type":"string","enum":["user","document","api","estimate","synthetic"]},"confirmation":{"type":"string","enum":["proposed","confirmed"]},"review":{"type":"string","enum":["unreviewed","reviewed","rejected"]},"sourceRef":{"type":"string","minLength":1,"maxLength":240}},"required":["value","currency","unit","period","origin","confirmation","review","sourceRef"],"additionalProperties":false}},"required":["id","personId","pillar","event","amount"],"additionalProperties":false}}},"required":["schemaVersion","caseId","caseRevision","profileVersion","dataClassification","valuationDate","priceBasis","persons","expenses","safetyBuffer","assets","assetsConfirmed","provisions"],"additionalProperties":false},{"type":"null"}]},"insurance":{"anyOf":[{"type":"object","properties":{"relationship":{"type":"string","enum":["unknown","single","married","cohabiting","registered_partnership"]},"relationshipSinceYear":{"anyOf":[{"type":"integer","minimum":1900,"maximum":2100},{"type":"null"}]},"sharedChildren":{"anyOf":[{"type":"integer","minimum":0,"maximum":30},{"type":"null"}]},"taxLocationId":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},{"type":"null"}]},"persons":{"maxItems":2,"type":"array","items":{"type":"object","properties":{"personId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"providerSex":{"anyOf":[{"anyOf":[{"type":"number","const":1},{"type":"number","const":2}]},{"type":"null"}]},"grossAnnualIncomeCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"withPillar2":{"type":["boolean","null"]},"pillar2Risk":{"type":"object","properties":{"disabilityAnnualCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"disabilityChildAnnualCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"survivorAnnualCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"orphanAnnualCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]}},"required":["disabilityAnnualCents","disabilityChildAnnualCents","survivorAnnualCents","orphanAnnualCents"],"additionalProperties":false},"retirementPensionAnnualCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"currentPillar2CapitalCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"desiredWorkStopAge":{"anyOf":[{"type":"integer","minimum":18,"maximum":100},{"type":"null"}]},"disabilityNeedAnnualCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"deathNeedAnnualCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"protectionTermMonths":{"anyOf":[{"type":"integer","minimum":1,"maximum":600},{"type":"null"}]},"existingDeathCapitalCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"deathOneOffCostsCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"debtPayoffCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"debtTreatment":{"anyOf":[{"type":"string","enum":["included_in_income_need","pay_off_separately"]},{"type":"null"}]},"deathNeedExcludesRepaidDebtService":{"type":"boolean"},"personalAffordableAnnualPremiumCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]}},"required":["personId","providerSex","grossAnnualIncomeCents","withPillar2","pillar2Risk","retirementPensionAnnualCents","currentPillar2CapitalCents","desiredWorkStopAge","disabilityNeedAnnualCents","deathNeedAnnualCents","protectionTermMonths","existingDeathCapitalCents","deathOneOffCostsCents","debtPayoffCents","debtTreatment","deathNeedExcludesRepaidDebtService","personalAffordableAnnualPremiumCents"],"additionalProperties":false}},"children":{"maxItems":30,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"birthYear":{"type":"integer","minimum":1900,"maximum":2100},"kind":{"type":"string","enum":["shared","sole_custody","goal_only","expected"]},"parentPersonIds":{"maxItems":2,"type":"array","items":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"}},"supportUntilMonth":{"anyOf":[{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"},{"type":"null"}]},"goalId":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},{"type":"null"}]}},"required":["id","birthYear","kind","parentPersonIds","supportUntilMonth","goalId"],"additionalProperties":false}},"debts":{"maxItems":30,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"ownerPersonIds":{"minItems":1,"maxItems":2,"type":"array","items":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"}},"balanceCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"annualServiceCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"kind":{"type":"string","enum":["mortgage","consumer","education","other"]}},"required":["id","ownerPersonIds","balanceCents","annualServiceCents","kind"],"additionalProperties":false}},"debtsConfirmed":{"type":"boolean"},"existingPrivateRiskBenefitsConfirmed":{"type":"boolean"},"confession1":{"anyOf":[{"anyOf":[{"type":"number","const":1},{"type":"number","const":2},{"type":"number","const":3},{"type":"number","const":4},{"type":"number","const":9}]},{"type":"null"}]},"confession2":{"anyOf":[{"anyOf":[{"type":"number","const":1},{"type":"number","const":2},{"type":"number","const":3},{"type":"number","const":4},{"type":"number","const":9}]},{"type":"null"}]},"taxableFortuneCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"retirementNeedAnnualCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"annualReturnBps":{"anyOf":[{"type":"integer","minimum":-5000,"maximum":2000},{"type":"null"}]},"retirementHorizonAge":{"anyOf":[{"type":"integer","minimum":50,"maximum":120},{"type":"null"}]},"annualSavingCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"investmentKnowledgeConfirmed":{"type":"boolean"},"annualSavingIsAdditional":{"type":"boolean","const":true},"existingAnnualRetirementSavingCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"existingAnnualPillar3aContributionCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"riskAppetite":{"type":"string","enum":["unknown","low","medium","high"]},"riskCapitalStrategy":{"anyOf":[{"type":"string","enum":["use_free_assets_first","preserve_assets_for_other_goals"]},{"type":"null"}]}},"required":["relationship","relationshipSinceYear","sharedChildren","taxLocationId","persons","children","debts","debtsConfirmed","existingPrivateRiskBenefitsConfirmed","confession1","confession2","taxableFortuneCents","retirementNeedAnnualCents","annualReturnBps","retirementHorizonAge","annualSavingCents","investmentKnowledgeConfirmed","annualSavingIsAdditional","existingAnnualRetirementSavingCents","existingAnnualPillar3aContributionCents","riskAppetite","riskCapitalStrategy"],"additionalProperties":false},{"type":"null"}]},"goals":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["family","home","retirement","child_protection","income_protection","survivor_protection"]},"targetMonth":{"anyOf":[{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"},{"type":"null"}]},"priority":{"type":"integer","minimum":1,"maximum":5},"targetCapitalCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]}},"required":["id","kind","targetMonth","priority","targetCapitalCents"],"additionalProperties":false}},"reviewFlags":{"maxItems":8,"type":"array","items":{"type":"string","enum":["user_requested","complex_beneficiaries","cross_border","self_employed","medical_review_needed","investment_knowledge_missing","high_impact"]}}},"required":["financial","insurance","goals","reviewFlags"],"additionalProperties":false},"fields":{"maxItems":3000,"type":"array","items":{"type":"object","properties":{"path":{"type":"string","maxLength":200},"personId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"value":{"$ref":"#/components/schemas/ExtractorContext/$defs/__schema0"},"confirmation":{"type":"string","enum":["proposed","confirmed"]}},"required":["path","value","confirmation"],"additionalProperties":false}},"proposalBatches":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"messageId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"source":{"type":"object","properties":{"messageId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"turnId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"sourceRef":{"type":"string","minLength":1,"maxLength":240}},"required":["messageId","turnId","sourceRef"],"additionalProperties":false},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"requestHash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"expectedProfileVersion":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},{"type":"null"}]},"basisDraftHash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"changes":{"maxItems":50,"type":"array","items":{"type":"object","properties":{"path":{"type":"string","minLength":1,"maxLength":200},"value":{"$ref":"#/components/schemas/ExtractorContext/$defs/__schema1"},"personId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"}},"required":["path","value"],"additionalProperties":false}},"status":{"type":"string","enum":["proposed","accepted","superseded","rejected"]},"supersedesBatchIds":{"maxItems":20,"type":"array","items":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"}},"supersedesProposalIds":{"maxItems":20,"type":"array","items":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"}},"replacedByBatchId":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},{"type":"null"}]},"ambiguityIds":{"maxItems":20,"type":"array","items":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"}},"resolvesAmbiguityIds":{"maxItems":20,"type":"array","items":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"}},"acceptedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]}},"required":["id","messageId","source","createdAt","requestHash","expectedProfileVersion","basisDraftHash","changes","status","supersedesBatchIds","supersedesProposalIds","replacedByBatchId","ambiguityIds","resolvesAmbiguityIds","acceptedAt"],"additionalProperties":false}},"ambiguities":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"path":{"type":"string","minLength":1,"maxLength":200},"personId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"question":{"type":"string","minLength":1,"maxLength":1000},"source":{"type":"object","properties":{"messageId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"turnId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"sourceRef":{"type":"string","minLength":1,"maxLength":240}},"required":["messageId","turnId","sourceRef"],"additionalProperties":false},"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"locale":{"type":"string","enum":["de","fr","it","en"]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"status":{"type":"string","enum":["open","resolved"]},"resolvedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"resolvedByBatchId":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},{"type":"null"}]},"resolutionSourceRef":{"anyOf":[{"type":"string","minLength":1,"maxLength":240},{"type":"null"}]},"dialogueStatus":{"type":"string","enum":["needs_answer","awaiting_customer_acceptance","resolved"]},"answerBatchId":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},{"type":"null"}]}},"required":["path","question","source","id","locale","createdAt","status","resolvedAt","resolvedByBatchId","resolutionSourceRef","dialogueStatus","answerBatchId"],"additionalProperties":false}},"writablePaths":{"maxItems":3000,"type":"array","items":{"type":"string","maxLength":200}},"policy":{"type":"object","properties":{"noRawHealthData":{"type":"boolean","const":true},"noProviderTokens":{"type":"boolean","const":true},"noExternalAiTransferAuthorized":{"type":"boolean","const":true},"customerConfirmationRequired":{"type":"boolean","const":true}},"required":["noRawHealthData","noProviderTokens","noExternalAiTransferAuthorized","customerConfirmationRequired"],"additionalProperties":false},"proposals":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"messageId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"path":{"type":"string","maxLength":200},"value":{"anyOf":[{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["family","home","retirement","child_protection","income_protection","survivor_protection"]},"targetMonth":{"anyOf":[{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"},{"type":"null"}]},"priority":{"type":"integer","minimum":1,"maximum":5},"targetCapitalCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]}},"required":["id","kind","targetMonth","priority","targetCapitalCents"],"additionalProperties":false},{"type":"string","maxLength":80}]},"expectedProfileVersion":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},{"type":"null"}]},"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"basisDraftHash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"status":{"type":"string","enum":["proposed","accepted","superseded"]},"replacedByBatchId":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},{"type":"null"}]}},"required":["messageId","path","value","expectedProfileVersion","id","basisDraftHash","status"],"additionalProperties":false}}},"required":["handover","humanAdvisorContact","schemaVersion","caseId","caseRevision","contextRevision","profileVersion","draftHash","draftDirty","locale","dataClassification","personIds","draft","fields","proposalBatches","ambiguities","writablePaths","policy","proposals"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/components/schemas/ExtractorContext/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/components/schemas/ExtractorContext/$defs/__schema0"}}]},"__schema1":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/components/schemas/ExtractorContext/$defs/__schema1"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/components/schemas/ExtractorContext/$defs/__schema1"}}]}}},"ProposalBatch":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"messageId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"source":{"type":"object","properties":{"messageId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"turnId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"sourceRef":{"type":"string","minLength":1,"maxLength":240}},"required":["messageId","turnId","sourceRef"],"additionalProperties":false},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"requestHash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"expectedProfileVersion":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},{"type":"null"}]},"basisDraftHash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"changes":{"maxItems":50,"type":"array","items":{"type":"object","properties":{"path":{"type":"string","minLength":1,"maxLength":200},"value":{"$ref":"#/components/schemas/ProposalBatch/$defs/__schema0"},"personId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"}},"required":["path","value"],"additionalProperties":false}},"status":{"type":"string","enum":["proposed","accepted","superseded","rejected"]},"supersedesBatchIds":{"maxItems":20,"type":"array","items":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"}},"supersedesProposalIds":{"maxItems":20,"type":"array","items":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"}},"replacedByBatchId":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},{"type":"null"}]},"ambiguityIds":{"maxItems":20,"type":"array","items":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"}},"resolvesAmbiguityIds":{"maxItems":20,"type":"array","items":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"}},"acceptedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]}},"required":["id","messageId","source","createdAt","requestHash","expectedProfileVersion","basisDraftHash","changes","status","supersedesBatchIds","supersedesProposalIds","replacedByBatchId","ambiguityIds","resolvesAmbiguityIds","acceptedAt"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/components/schemas/ProposalBatch/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/components/schemas/ProposalBatch/$defs/__schema0"}}]}}},"ProposalAcceptance":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"caseRevision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"contextRevision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"confirmationStillRequired":{"type":"boolean","const":true},"draft":{"type":"object","properties":{"financial":{"anyOf":[{"type":"object","properties":{"schemaVersion":{"type":"string","const":"1.0"},"caseId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"caseRevision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"profileVersion":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"dataClassification":{"type":"string","enum":["synthetic","customer"]},"valuationDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"priceBasis":{"type":"string","const":"nominal"},"persons":{"minItems":1,"maxItems":2,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"birthYear":{"type":"integer","minimum":1900,"maximum":2100},"employmentRateBps":{"type":"integer","minimum":0,"maximum":10000},"income":{"type":"object","properties":{"value":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"currency":{"type":"string","const":"CHF"},"unit":{"type":"string","const":"cent"},"period":{"type":"string","enum":["month","year","once"]},"origin":{"type":"string","enum":["user","document","api","estimate","synthetic"]},"confirmation":{"type":"string","enum":["proposed","confirmed"]},"review":{"type":"string","enum":["unreviewed","reviewed","rejected"]},"sourceRef":{"type":"string","minLength":1,"maxLength":240}},"required":["value","currency","unit","period","origin","confirmation","review","sourceRef"],"additionalProperties":false},"incomeBasis":{"type":"string","enum":["gross","net_before_income_tax","net_after_income_tax"]}},"required":["id","birthYear","employmentRateBps","income","incomeBasis"],"additionalProperties":false}},"expenses":{"maxItems":80,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"category":{"type":"string","enum":["housing","living","tax","provision","debt","reserve","other"]},"amount":{"type":"object","properties":{"value":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"currency":{"type":"string","const":"CHF"},"unit":{"type":"string","const":"cent"},"period":{"type":"string","enum":["month","year","once"]},"origin":{"type":"string","enum":["user","document","api","estimate","synthetic"]},"confirmation":{"type":"string","enum":["proposed","confirmed"]},"review":{"type":"string","enum":["unreviewed","reviewed","rejected"]},"sourceRef":{"type":"string","minLength":1,"maxLength":240}},"required":["value","currency","unit","period","origin","confirmation","review","sourceRef"],"additionalProperties":false},"includedInExpenseId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"}},"required":["id","category","amount"],"additionalProperties":false}},"safetyBuffer":{"type":"object","properties":{"value":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"currency":{"type":"string","const":"CHF"},"unit":{"type":"string","const":"cent"},"period":{"type":"string","enum":["month","year","once"]},"origin":{"type":"string","enum":["user","document","api","estimate","synthetic"]},"confirmation":{"type":"string","enum":["proposed","confirmed"]},"review":{"type":"string","enum":["unreviewed","reviewed","rejected"]},"sourceRef":{"type":"string","minLength":1,"maxLength":240}},"required":["value","currency","unit","period","origin","confirmation","review","sourceRef"],"additionalProperties":false},"assets":{"maxItems":40,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"amount":{"type":"object","properties":{"value":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"currency":{"type":"string","const":"CHF"},"unit":{"type":"string","const":"cent"},"period":{"type":"string","enum":["month","year","once"]},"origin":{"type":"string","enum":["user","document","api","estimate","synthetic"]},"confirmation":{"type":"string","enum":["proposed","confirmed"]},"review":{"type":"string","enum":["unreviewed","reviewed","rejected"]},"sourceRef":{"type":"string","minLength":1,"maxLength":240}},"required":["value","currency","unit","period","origin","confirmation","review","sourceRef"],"additionalProperties":false},"ownerPersonIds":{"minItems":1,"maxItems":2,"type":"array","items":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"}},"liquidity":{"type":"string","enum":["free","restricted"]},"availableFrom":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"pillar":{"type":"string","enum":["2","3","none"]},"allocations":{"maxItems":30,"type":"array","items":{"type":"object","properties":{"goalId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"amountCents":{"type":"integer","minimum":0,"maximum":1000000000000}},"required":["goalId","amountCents"],"additionalProperties":false}}},"required":["id","amount","liquidity","availableFrom","pillar","allocations"],"additionalProperties":false}},"assetsConfirmed":{"type":"boolean"},"provisions":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"personId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"pillar":{"type":"string","enum":["1","2","3"]},"event":{"type":"string","enum":["retirement","disability_illness","disability_accident","death_illness","death_accident"]},"amount":{"type":"object","properties":{"value":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"currency":{"type":"string","const":"CHF"},"unit":{"type":"string","const":"cent"},"period":{"type":"string","enum":["month","year","once"]},"origin":{"type":"string","enum":["user","document","api","estimate","synthetic"]},"confirmation":{"type":"string","enum":["proposed","confirmed"]},"review":{"type":"string","enum":["unreviewed","reviewed","rejected"]},"sourceRef":{"type":"string","minLength":1,"maxLength":240}},"required":["value","currency","unit","period","origin","confirmation","review","sourceRef"],"additionalProperties":false}},"required":["id","personId","pillar","event","amount"],"additionalProperties":false}}},"required":["schemaVersion","caseId","caseRevision","profileVersion","dataClassification","valuationDate","priceBasis","persons","expenses","safetyBuffer","assets","assetsConfirmed","provisions"],"additionalProperties":false},{"type":"null"}]},"insurance":{"anyOf":[{"type":"object","properties":{"relationship":{"type":"string","enum":["unknown","single","married","cohabiting","registered_partnership"]},"relationshipSinceYear":{"anyOf":[{"type":"integer","minimum":1900,"maximum":2100},{"type":"null"}]},"sharedChildren":{"anyOf":[{"type":"integer","minimum":0,"maximum":30},{"type":"null"}]},"taxLocationId":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},{"type":"null"}]},"persons":{"maxItems":2,"type":"array","items":{"type":"object","properties":{"personId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"providerSex":{"anyOf":[{"anyOf":[{"type":"number","const":1},{"type":"number","const":2}]},{"type":"null"}]},"grossAnnualIncomeCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"withPillar2":{"type":["boolean","null"]},"pillar2Risk":{"type":"object","properties":{"disabilityAnnualCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"disabilityChildAnnualCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"survivorAnnualCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"orphanAnnualCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]}},"required":["disabilityAnnualCents","disabilityChildAnnualCents","survivorAnnualCents","orphanAnnualCents"],"additionalProperties":false},"retirementPensionAnnualCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"currentPillar2CapitalCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"desiredWorkStopAge":{"anyOf":[{"type":"integer","minimum":18,"maximum":100},{"type":"null"}]},"disabilityNeedAnnualCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"deathNeedAnnualCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"protectionTermMonths":{"anyOf":[{"type":"integer","minimum":1,"maximum":600},{"type":"null"}]},"existingDeathCapitalCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"deathOneOffCostsCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"debtPayoffCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"debtTreatment":{"anyOf":[{"type":"string","enum":["included_in_income_need","pay_off_separately"]},{"type":"null"}]},"deathNeedExcludesRepaidDebtService":{"type":"boolean"},"personalAffordableAnnualPremiumCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]}},"required":["personId","providerSex","grossAnnualIncomeCents","withPillar2","pillar2Risk","retirementPensionAnnualCents","currentPillar2CapitalCents","desiredWorkStopAge","disabilityNeedAnnualCents","deathNeedAnnualCents","protectionTermMonths","existingDeathCapitalCents","deathOneOffCostsCents","debtPayoffCents","debtTreatment","deathNeedExcludesRepaidDebtService","personalAffordableAnnualPremiumCents"],"additionalProperties":false}},"children":{"maxItems":30,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"birthYear":{"type":"integer","minimum":1900,"maximum":2100},"kind":{"type":"string","enum":["shared","sole_custody","goal_only","expected"]},"parentPersonIds":{"maxItems":2,"type":"array","items":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"}},"supportUntilMonth":{"anyOf":[{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"},{"type":"null"}]},"goalId":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},{"type":"null"}]}},"required":["id","birthYear","kind","parentPersonIds","supportUntilMonth","goalId"],"additionalProperties":false}},"debts":{"maxItems":30,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"ownerPersonIds":{"minItems":1,"maxItems":2,"type":"array","items":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"}},"balanceCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"annualServiceCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"kind":{"type":"string","enum":["mortgage","consumer","education","other"]}},"required":["id","ownerPersonIds","balanceCents","annualServiceCents","kind"],"additionalProperties":false}},"debtsConfirmed":{"type":"boolean"},"existingPrivateRiskBenefitsConfirmed":{"type":"boolean"},"confession1":{"anyOf":[{"anyOf":[{"type":"number","const":1},{"type":"number","const":2},{"type":"number","const":3},{"type":"number","const":4},{"type":"number","const":9}]},{"type":"null"}]},"confession2":{"anyOf":[{"anyOf":[{"type":"number","const":1},{"type":"number","const":2},{"type":"number","const":3},{"type":"number","const":4},{"type":"number","const":9}]},{"type":"null"}]},"taxableFortuneCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"retirementNeedAnnualCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"annualReturnBps":{"anyOf":[{"type":"integer","minimum":-5000,"maximum":2000},{"type":"null"}]},"retirementHorizonAge":{"anyOf":[{"type":"integer","minimum":50,"maximum":120},{"type":"null"}]},"annualSavingCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"investmentKnowledgeConfirmed":{"type":"boolean"},"annualSavingIsAdditional":{"type":"boolean","const":true},"existingAnnualRetirementSavingCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"existingAnnualPillar3aContributionCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"riskAppetite":{"type":"string","enum":["unknown","low","medium","high"]},"riskCapitalStrategy":{"anyOf":[{"type":"string","enum":["use_free_assets_first","preserve_assets_for_other_goals"]},{"type":"null"}]}},"required":["relationship","relationshipSinceYear","sharedChildren","taxLocationId","persons","children","debts","debtsConfirmed","existingPrivateRiskBenefitsConfirmed","confession1","confession2","taxableFortuneCents","retirementNeedAnnualCents","annualReturnBps","retirementHorizonAge","annualSavingCents","investmentKnowledgeConfirmed","annualSavingIsAdditional","existingAnnualRetirementSavingCents","existingAnnualPillar3aContributionCents","riskAppetite","riskCapitalStrategy"],"additionalProperties":false},{"type":"null"}]},"goals":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["family","home","retirement","child_protection","income_protection","survivor_protection"]},"targetMonth":{"anyOf":[{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"},{"type":"null"}]},"priority":{"type":"integer","minimum":1,"maximum":5},"targetCapitalCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]}},"required":["id","kind","targetMonth","priority","targetCapitalCents"],"additionalProperties":false}},"reviewFlags":{"maxItems":8,"type":"array","items":{"type":"string","enum":["user_requested","complex_beneficiaries","cross_border","self_employed","medical_review_needed","investment_knowledge_missing","high_impact"]}}},"required":["financial","insurance","goals","reviewFlags"],"additionalProperties":false}},"required":["caseRevision","contextRevision","confirmationStillRequired","draft"],"additionalProperties":false},"AmbiguityResolution":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"caseRevision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"contextRevision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"ambiguity":{"type":"object","properties":{"path":{"type":"string","minLength":1,"maxLength":200},"personId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"question":{"type":"string","minLength":1,"maxLength":1000},"source":{"type":"object","properties":{"messageId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"turnId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"sourceRef":{"type":"string","minLength":1,"maxLength":240}},"required":["messageId","turnId","sourceRef"],"additionalProperties":false},"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"locale":{"type":"string","enum":["de","fr","it","en"]},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"status":{"type":"string","enum":["open","resolved"]},"resolvedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"resolvedByBatchId":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},{"type":"null"}]},"resolutionSourceRef":{"anyOf":[{"type":"string","minLength":1,"maxLength":240},{"type":"null"}]}},"required":["path","question","source","id","locale","createdAt","status","resolvedAt","resolvedByBatchId","resolutionSourceRef"],"additionalProperties":false}},"required":["caseRevision","contextRevision","ambiguity"],"additionalProperties":false},"CustomerConfirmation":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemaVersion":{"type":"string","const":"1.0"},"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"caseId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"target":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"accept_batch"},"batchId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"}},"required":["kind","batchId"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"confirm_profile"}},"required":["kind"],"additionalProperties":false}]},"channel":{"type":"string","enum":["voice","screen"]},"basisCaseRevision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"basisProfileVersion":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},{"type":"null"}]},"basisDraftHash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"targetHash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"locale":{"type":"string","enum":["de","fr","it","en"]},"questionId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"questionTurnId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"questionReplyId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"questionHash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"questionText":{"type":"string","minLength":1,"maxLength":16000},"review":{"type":"object","properties":{"draft":{"type":"object","properties":{"financial":{"anyOf":[{"type":"object","properties":{"schemaVersion":{"type":"string","const":"1.0"},"caseId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"caseRevision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"profileVersion":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"dataClassification":{"type":"string","enum":["synthetic","customer"]},"valuationDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"priceBasis":{"type":"string","const":"nominal"},"persons":{"minItems":1,"maxItems":2,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"birthYear":{"type":"integer","minimum":1900,"maximum":2100},"employmentRateBps":{"type":"integer","minimum":0,"maximum":10000},"income":{"type":"object","properties":{"value":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"currency":{"type":"string","const":"CHF"},"unit":{"type":"string","const":"cent"},"period":{"type":"string","enum":["month","year","once"]},"origin":{"type":"string","enum":["user","document","api","estimate","synthetic"]},"confirmation":{"type":"string","enum":["proposed","confirmed"]},"review":{"type":"string","enum":["unreviewed","reviewed","rejected"]},"sourceRef":{"type":"string","minLength":1,"maxLength":240}},"required":["value","currency","unit","period","origin","confirmation","review","sourceRef"],"additionalProperties":false},"incomeBasis":{"type":"string","enum":["gross","net_before_income_tax","net_after_income_tax"]}},"required":["id","birthYear","employmentRateBps","income","incomeBasis"],"additionalProperties":false}},"expenses":{"maxItems":80,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"category":{"type":"string","enum":["housing","living","tax","provision","debt","reserve","other"]},"amount":{"type":"object","properties":{"value":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"currency":{"type":"string","const":"CHF"},"unit":{"type":"string","const":"cent"},"period":{"type":"string","enum":["month","year","once"]},"origin":{"type":"string","enum":["user","document","api","estimate","synthetic"]},"confirmation":{"type":"string","enum":["proposed","confirmed"]},"review":{"type":"string","enum":["unreviewed","reviewed","rejected"]},"sourceRef":{"type":"string","minLength":1,"maxLength":240}},"required":["value","currency","unit","period","origin","confirmation","review","sourceRef"],"additionalProperties":false},"includedInExpenseId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"}},"required":["id","category","amount"],"additionalProperties":false}},"safetyBuffer":{"type":"object","properties":{"value":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"currency":{"type":"string","const":"CHF"},"unit":{"type":"string","const":"cent"},"period":{"type":"string","enum":["month","year","once"]},"origin":{"type":"string","enum":["user","document","api","estimate","synthetic"]},"confirmation":{"type":"string","enum":["proposed","confirmed"]},"review":{"type":"string","enum":["unreviewed","reviewed","rejected"]},"sourceRef":{"type":"string","minLength":1,"maxLength":240}},"required":["value","currency","unit","period","origin","confirmation","review","sourceRef"],"additionalProperties":false},"assets":{"maxItems":40,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"amount":{"type":"object","properties":{"value":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"currency":{"type":"string","const":"CHF"},"unit":{"type":"string","const":"cent"},"period":{"type":"string","enum":["month","year","once"]},"origin":{"type":"string","enum":["user","document","api","estimate","synthetic"]},"confirmation":{"type":"string","enum":["proposed","confirmed"]},"review":{"type":"string","enum":["unreviewed","reviewed","rejected"]},"sourceRef":{"type":"string","minLength":1,"maxLength":240}},"required":["value","currency","unit","period","origin","confirmation","review","sourceRef"],"additionalProperties":false},"ownerPersonIds":{"minItems":1,"maxItems":2,"type":"array","items":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"}},"liquidity":{"type":"string","enum":["free","restricted"]},"availableFrom":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"pillar":{"type":"string","enum":["2","3","none"]},"allocations":{"maxItems":30,"type":"array","items":{"type":"object","properties":{"goalId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"amountCents":{"type":"integer","minimum":0,"maximum":1000000000000}},"required":["goalId","amountCents"],"additionalProperties":false}}},"required":["id","amount","liquidity","availableFrom","pillar","allocations"],"additionalProperties":false}},"assetsConfirmed":{"type":"boolean"},"provisions":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"personId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"pillar":{"type":"string","enum":["1","2","3"]},"event":{"type":"string","enum":["retirement","disability_illness","disability_accident","death_illness","death_accident"]},"amount":{"type":"object","properties":{"value":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"currency":{"type":"string","const":"CHF"},"unit":{"type":"string","const":"cent"},"period":{"type":"string","enum":["month","year","once"]},"origin":{"type":"string","enum":["user","document","api","estimate","synthetic"]},"confirmation":{"type":"string","enum":["proposed","confirmed"]},"review":{"type":"string","enum":["unreviewed","reviewed","rejected"]},"sourceRef":{"type":"string","minLength":1,"maxLength":240}},"required":["value","currency","unit","period","origin","confirmation","review","sourceRef"],"additionalProperties":false}},"required":["id","personId","pillar","event","amount"],"additionalProperties":false}}},"required":["schemaVersion","caseId","caseRevision","profileVersion","dataClassification","valuationDate","priceBasis","persons","expenses","safetyBuffer","assets","assetsConfirmed","provisions"],"additionalProperties":false},{"type":"null"}]},"insurance":{"anyOf":[{"type":"object","properties":{"relationship":{"type":"string","enum":["unknown","single","married","cohabiting","registered_partnership"]},"relationshipSinceYear":{"anyOf":[{"type":"integer","minimum":1900,"maximum":2100},{"type":"null"}]},"sharedChildren":{"anyOf":[{"type":"integer","minimum":0,"maximum":30},{"type":"null"}]},"taxLocationId":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},{"type":"null"}]},"persons":{"maxItems":2,"type":"array","items":{"type":"object","properties":{"personId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"providerSex":{"anyOf":[{"anyOf":[{"type":"number","const":1},{"type":"number","const":2}]},{"type":"null"}]},"grossAnnualIncomeCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"withPillar2":{"type":["boolean","null"]},"pillar2Risk":{"type":"object","properties":{"disabilityAnnualCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"disabilityChildAnnualCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"survivorAnnualCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"orphanAnnualCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]}},"required":["disabilityAnnualCents","disabilityChildAnnualCents","survivorAnnualCents","orphanAnnualCents"],"additionalProperties":false},"retirementPensionAnnualCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"currentPillar2CapitalCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"desiredWorkStopAge":{"anyOf":[{"type":"integer","minimum":18,"maximum":100},{"type":"null"}]},"disabilityNeedAnnualCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"deathNeedAnnualCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"protectionTermMonths":{"anyOf":[{"type":"integer","minimum":1,"maximum":600},{"type":"null"}]},"existingDeathCapitalCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"deathOneOffCostsCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"debtPayoffCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"debtTreatment":{"anyOf":[{"type":"string","enum":["included_in_income_need","pay_off_separately"]},{"type":"null"}]},"deathNeedExcludesRepaidDebtService":{"type":"boolean"},"personalAffordableAnnualPremiumCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]}},"required":["personId","providerSex","grossAnnualIncomeCents","withPillar2","pillar2Risk","retirementPensionAnnualCents","currentPillar2CapitalCents","desiredWorkStopAge","disabilityNeedAnnualCents","deathNeedAnnualCents","protectionTermMonths","existingDeathCapitalCents","deathOneOffCostsCents","debtPayoffCents","debtTreatment","deathNeedExcludesRepaidDebtService","personalAffordableAnnualPremiumCents"],"additionalProperties":false}},"children":{"maxItems":30,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"birthYear":{"type":"integer","minimum":1900,"maximum":2100},"kind":{"type":"string","enum":["shared","sole_custody","goal_only","expected"]},"parentPersonIds":{"maxItems":2,"type":"array","items":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"}},"supportUntilMonth":{"anyOf":[{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"},{"type":"null"}]},"goalId":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},{"type":"null"}]}},"required":["id","birthYear","kind","parentPersonIds","supportUntilMonth","goalId"],"additionalProperties":false}},"debts":{"maxItems":30,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"ownerPersonIds":{"minItems":1,"maxItems":2,"type":"array","items":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"}},"balanceCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"annualServiceCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"kind":{"type":"string","enum":["mortgage","consumer","education","other"]}},"required":["id","ownerPersonIds","balanceCents","annualServiceCents","kind"],"additionalProperties":false}},"debtsConfirmed":{"type":"boolean"},"existingPrivateRiskBenefitsConfirmed":{"type":"boolean"},"confession1":{"anyOf":[{"anyOf":[{"type":"number","const":1},{"type":"number","const":2},{"type":"number","const":3},{"type":"number","const":4},{"type":"number","const":9}]},{"type":"null"}]},"confession2":{"anyOf":[{"anyOf":[{"type":"number","const":1},{"type":"number","const":2},{"type":"number","const":3},{"type":"number","const":4},{"type":"number","const":9}]},{"type":"null"}]},"taxableFortuneCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"retirementNeedAnnualCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"annualReturnBps":{"anyOf":[{"type":"integer","minimum":-5000,"maximum":2000},{"type":"null"}]},"retirementHorizonAge":{"anyOf":[{"type":"integer","minimum":50,"maximum":120},{"type":"null"}]},"annualSavingCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"investmentKnowledgeConfirmed":{"type":"boolean"},"annualSavingIsAdditional":{"type":"boolean","const":true},"existingAnnualRetirementSavingCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"existingAnnualPillar3aContributionCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"riskAppetite":{"type":"string","enum":["unknown","low","medium","high"]},"riskCapitalStrategy":{"anyOf":[{"type":"string","enum":["use_free_assets_first","preserve_assets_for_other_goals"]},{"type":"null"}]}},"required":["relationship","relationshipSinceYear","sharedChildren","taxLocationId","persons","children","debts","debtsConfirmed","existingPrivateRiskBenefitsConfirmed","confession1","confession2","taxableFortuneCents","retirementNeedAnnualCents","annualReturnBps","retirementHorizonAge","annualSavingCents","investmentKnowledgeConfirmed","annualSavingIsAdditional","existingAnnualRetirementSavingCents","existingAnnualPillar3aContributionCents","riskAppetite","riskCapitalStrategy"],"additionalProperties":false},{"type":"null"}]},"goals":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["family","home","retirement","child_protection","income_protection","survivor_protection"]},"targetMonth":{"anyOf":[{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"},{"type":"null"}]},"priority":{"type":"integer","minimum":1,"maximum":5},"targetCapitalCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]}},"required":["id","kind","targetMonth","priority","targetCapitalCents"],"additionalProperties":false}},"reviewFlags":{"maxItems":8,"type":"array","items":{"type":"string","enum":["user_requested","complex_beneficiaries","cross_border","self_employed","medical_review_needed","investment_knowledge_missing","high_impact"]}}},"required":["financial","insurance","goals","reviewFlags"],"additionalProperties":false},"changes":{"maxItems":50,"type":"array","items":{"type":"object","properties":{"path":{"type":"string","minLength":1,"maxLength":200},"value":{"$ref":"#/components/schemas/CustomerConfirmation/$defs/__schema0"},"personId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"}},"required":["path","value"],"additionalProperties":false}},"noticeVersion":{"type":"string","enum":["lifemap-synthetic-v1","lifemap-synthetic-v2"]},"allowSyntheticCalculatorTransfer":{"type":"boolean"},"confirmProfileAndAssumptions":{"type":"boolean"}},"required":["draft","changes","noticeVersion","allowSyntheticCalculatorTransfer","confirmProfileAndAssumptions"],"additionalProperties":false},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"expiresAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"status":{"type":"string","enum":["awaiting_presentation","awaiting_answer","consumed","cancelled","invalidated"]},"presentedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"playbackId":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},{"type":"null"}]},"answerMessageId":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},{"type":"null"}]},"answeredAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"invalidationReason":{"anyOf":[{"type":"string","enum":["case_changed","expired","new_question","cancelled_by_customer"]},{"type":"null"}]}},"required":["schemaVersion","id","caseId","target","channel","basisCaseRevision","basisProfileVersion","basisDraftHash","targetHash","locale","questionId","questionTurnId","questionReplyId","questionHash","questionText","review","createdAt","expiresAt","status","presentedAt","playbackId","answerMessageId","answeredAt","invalidationReason"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/components/schemas/CustomerConfirmation/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/components/schemas/CustomerConfirmation/$defs/__schema0"}}]}}},"CurrentCustomerConfirmation":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"confirmation":{"anyOf":[{"type":"object","properties":{"schemaVersion":{"type":"string","const":"1.0"},"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"caseId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"target":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"accept_batch"},"batchId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"}},"required":["kind","batchId"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"confirm_profile"}},"required":["kind"],"additionalProperties":false}]},"channel":{"type":"string","enum":["voice","screen"]},"basisCaseRevision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"basisProfileVersion":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},{"type":"null"}]},"basisDraftHash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"targetHash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"locale":{"type":"string","enum":["de","fr","it","en"]},"questionId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"questionTurnId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"questionReplyId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"questionHash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"questionText":{"type":"string","minLength":1,"maxLength":16000},"review":{"type":"object","properties":{"draft":{"type":"object","properties":{"financial":{"anyOf":[{"type":"object","properties":{"schemaVersion":{"type":"string","const":"1.0"},"caseId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"caseRevision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"profileVersion":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"dataClassification":{"type":"string","enum":["synthetic","customer"]},"valuationDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"priceBasis":{"type":"string","const":"nominal"},"persons":{"minItems":1,"maxItems":2,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"birthYear":{"type":"integer","minimum":1900,"maximum":2100},"employmentRateBps":{"type":"integer","minimum":0,"maximum":10000},"income":{"type":"object","properties":{"value":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"currency":{"type":"string","const":"CHF"},"unit":{"type":"string","const":"cent"},"period":{"type":"string","enum":["month","year","once"]},"origin":{"type":"string","enum":["user","document","api","estimate","synthetic"]},"confirmation":{"type":"string","enum":["proposed","confirmed"]},"review":{"type":"string","enum":["unreviewed","reviewed","rejected"]},"sourceRef":{"type":"string","minLength":1,"maxLength":240}},"required":["value","currency","unit","period","origin","confirmation","review","sourceRef"],"additionalProperties":false},"incomeBasis":{"type":"string","enum":["gross","net_before_income_tax","net_after_income_tax"]}},"required":["id","birthYear","employmentRateBps","income","incomeBasis"],"additionalProperties":false}},"expenses":{"maxItems":80,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"category":{"type":"string","enum":["housing","living","tax","provision","debt","reserve","other"]},"amount":{"type":"object","properties":{"value":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"currency":{"type":"string","const":"CHF"},"unit":{"type":"string","const":"cent"},"period":{"type":"string","enum":["month","year","once"]},"origin":{"type":"string","enum":["user","document","api","estimate","synthetic"]},"confirmation":{"type":"string","enum":["proposed","confirmed"]},"review":{"type":"string","enum":["unreviewed","reviewed","rejected"]},"sourceRef":{"type":"string","minLength":1,"maxLength":240}},"required":["value","currency","unit","period","origin","confirmation","review","sourceRef"],"additionalProperties":false},"includedInExpenseId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"}},"required":["id","category","amount"],"additionalProperties":false}},"safetyBuffer":{"type":"object","properties":{"value":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"currency":{"type":"string","const":"CHF"},"unit":{"type":"string","const":"cent"},"period":{"type":"string","enum":["month","year","once"]},"origin":{"type":"string","enum":["user","document","api","estimate","synthetic"]},"confirmation":{"type":"string","enum":["proposed","confirmed"]},"review":{"type":"string","enum":["unreviewed","reviewed","rejected"]},"sourceRef":{"type":"string","minLength":1,"maxLength":240}},"required":["value","currency","unit","period","origin","confirmation","review","sourceRef"],"additionalProperties":false},"assets":{"maxItems":40,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"amount":{"type":"object","properties":{"value":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"currency":{"type":"string","const":"CHF"},"unit":{"type":"string","const":"cent"},"period":{"type":"string","enum":["month","year","once"]},"origin":{"type":"string","enum":["user","document","api","estimate","synthetic"]},"confirmation":{"type":"string","enum":["proposed","confirmed"]},"review":{"type":"string","enum":["unreviewed","reviewed","rejected"]},"sourceRef":{"type":"string","minLength":1,"maxLength":240}},"required":["value","currency","unit","period","origin","confirmation","review","sourceRef"],"additionalProperties":false},"ownerPersonIds":{"minItems":1,"maxItems":2,"type":"array","items":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"}},"liquidity":{"type":"string","enum":["free","restricted"]},"availableFrom":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"pillar":{"type":"string","enum":["2","3","none"]},"allocations":{"maxItems":30,"type":"array","items":{"type":"object","properties":{"goalId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"amountCents":{"type":"integer","minimum":0,"maximum":1000000000000}},"required":["goalId","amountCents"],"additionalProperties":false}}},"required":["id","amount","liquidity","availableFrom","pillar","allocations"],"additionalProperties":false}},"assetsConfirmed":{"type":"boolean"},"provisions":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"personId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"pillar":{"type":"string","enum":["1","2","3"]},"event":{"type":"string","enum":["retirement","disability_illness","disability_accident","death_illness","death_accident"]},"amount":{"type":"object","properties":{"value":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"currency":{"type":"string","const":"CHF"},"unit":{"type":"string","const":"cent"},"period":{"type":"string","enum":["month","year","once"]},"origin":{"type":"string","enum":["user","document","api","estimate","synthetic"]},"confirmation":{"type":"string","enum":["proposed","confirmed"]},"review":{"type":"string","enum":["unreviewed","reviewed","rejected"]},"sourceRef":{"type":"string","minLength":1,"maxLength":240}},"required":["value","currency","unit","period","origin","confirmation","review","sourceRef"],"additionalProperties":false}},"required":["id","personId","pillar","event","amount"],"additionalProperties":false}}},"required":["schemaVersion","caseId","caseRevision","profileVersion","dataClassification","valuationDate","priceBasis","persons","expenses","safetyBuffer","assets","assetsConfirmed","provisions"],"additionalProperties":false},{"type":"null"}]},"insurance":{"anyOf":[{"type":"object","properties":{"relationship":{"type":"string","enum":["unknown","single","married","cohabiting","registered_partnership"]},"relationshipSinceYear":{"anyOf":[{"type":"integer","minimum":1900,"maximum":2100},{"type":"null"}]},"sharedChildren":{"anyOf":[{"type":"integer","minimum":0,"maximum":30},{"type":"null"}]},"taxLocationId":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},{"type":"null"}]},"persons":{"maxItems":2,"type":"array","items":{"type":"object","properties":{"personId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"providerSex":{"anyOf":[{"anyOf":[{"type":"number","const":1},{"type":"number","const":2}]},{"type":"null"}]},"grossAnnualIncomeCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"withPillar2":{"type":["boolean","null"]},"pillar2Risk":{"type":"object","properties":{"disabilityAnnualCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"disabilityChildAnnualCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"survivorAnnualCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"orphanAnnualCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]}},"required":["disabilityAnnualCents","disabilityChildAnnualCents","survivorAnnualCents","orphanAnnualCents"],"additionalProperties":false},"retirementPensionAnnualCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"currentPillar2CapitalCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"desiredWorkStopAge":{"anyOf":[{"type":"integer","minimum":18,"maximum":100},{"type":"null"}]},"disabilityNeedAnnualCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"deathNeedAnnualCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"protectionTermMonths":{"anyOf":[{"type":"integer","minimum":1,"maximum":600},{"type":"null"}]},"existingDeathCapitalCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"deathOneOffCostsCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"debtPayoffCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"debtTreatment":{"anyOf":[{"type":"string","enum":["included_in_income_need","pay_off_separately"]},{"type":"null"}]},"deathNeedExcludesRepaidDebtService":{"type":"boolean"},"personalAffordableAnnualPremiumCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]}},"required":["personId","providerSex","grossAnnualIncomeCents","withPillar2","pillar2Risk","retirementPensionAnnualCents","currentPillar2CapitalCents","desiredWorkStopAge","disabilityNeedAnnualCents","deathNeedAnnualCents","protectionTermMonths","existingDeathCapitalCents","deathOneOffCostsCents","debtPayoffCents","debtTreatment","deathNeedExcludesRepaidDebtService","personalAffordableAnnualPremiumCents"],"additionalProperties":false}},"children":{"maxItems":30,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"birthYear":{"type":"integer","minimum":1900,"maximum":2100},"kind":{"type":"string","enum":["shared","sole_custody","goal_only","expected"]},"parentPersonIds":{"maxItems":2,"type":"array","items":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"}},"supportUntilMonth":{"anyOf":[{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"},{"type":"null"}]},"goalId":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},{"type":"null"}]}},"required":["id","birthYear","kind","parentPersonIds","supportUntilMonth","goalId"],"additionalProperties":false}},"debts":{"maxItems":30,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"ownerPersonIds":{"minItems":1,"maxItems":2,"type":"array","items":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"}},"balanceCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"annualServiceCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"kind":{"type":"string","enum":["mortgage","consumer","education","other"]}},"required":["id","ownerPersonIds","balanceCents","annualServiceCents","kind"],"additionalProperties":false}},"debtsConfirmed":{"type":"boolean"},"existingPrivateRiskBenefitsConfirmed":{"type":"boolean"},"confession1":{"anyOf":[{"anyOf":[{"type":"number","const":1},{"type":"number","const":2},{"type":"number","const":3},{"type":"number","const":4},{"type":"number","const":9}]},{"type":"null"}]},"confession2":{"anyOf":[{"anyOf":[{"type":"number","const":1},{"type":"number","const":2},{"type":"number","const":3},{"type":"number","const":4},{"type":"number","const":9}]},{"type":"null"}]},"taxableFortuneCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"retirementNeedAnnualCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"annualReturnBps":{"anyOf":[{"type":"integer","minimum":-5000,"maximum":2000},{"type":"null"}]},"retirementHorizonAge":{"anyOf":[{"type":"integer","minimum":50,"maximum":120},{"type":"null"}]},"annualSavingCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"investmentKnowledgeConfirmed":{"type":"boolean"},"annualSavingIsAdditional":{"type":"boolean","const":true},"existingAnnualRetirementSavingCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"existingAnnualPillar3aContributionCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"riskAppetite":{"type":"string","enum":["unknown","low","medium","high"]},"riskCapitalStrategy":{"anyOf":[{"type":"string","enum":["use_free_assets_first","preserve_assets_for_other_goals"]},{"type":"null"}]}},"required":["relationship","relationshipSinceYear","sharedChildren","taxLocationId","persons","children","debts","debtsConfirmed","existingPrivateRiskBenefitsConfirmed","confession1","confession2","taxableFortuneCents","retirementNeedAnnualCents","annualReturnBps","retirementHorizonAge","annualSavingCents","investmentKnowledgeConfirmed","annualSavingIsAdditional","existingAnnualRetirementSavingCents","existingAnnualPillar3aContributionCents","riskAppetite","riskCapitalStrategy"],"additionalProperties":false},{"type":"null"}]},"goals":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["family","home","retirement","child_protection","income_protection","survivor_protection"]},"targetMonth":{"anyOf":[{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"},{"type":"null"}]},"priority":{"type":"integer","minimum":1,"maximum":5},"targetCapitalCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]}},"required":["id","kind","targetMonth","priority","targetCapitalCents"],"additionalProperties":false}},"reviewFlags":{"maxItems":8,"type":"array","items":{"type":"string","enum":["user_requested","complex_beneficiaries","cross_border","self_employed","medical_review_needed","investment_knowledge_missing","high_impact"]}}},"required":["financial","insurance","goals","reviewFlags"],"additionalProperties":false},"changes":{"maxItems":50,"type":"array","items":{"type":"object","properties":{"path":{"type":"string","minLength":1,"maxLength":200},"value":{"$ref":"#/components/schemas/CurrentCustomerConfirmation/$defs/__schema0"},"personId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"}},"required":["path","value"],"additionalProperties":false}},"noticeVersion":{"type":"string","enum":["lifemap-synthetic-v1","lifemap-synthetic-v2"]},"allowSyntheticCalculatorTransfer":{"type":"boolean"},"confirmProfileAndAssumptions":{"type":"boolean"}},"required":["draft","changes","noticeVersion","allowSyntheticCalculatorTransfer","confirmProfileAndAssumptions"],"additionalProperties":false},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"expiresAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"status":{"type":"string","enum":["awaiting_presentation","awaiting_answer","consumed","cancelled","invalidated"]},"presentedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"playbackId":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},{"type":"null"}]},"answerMessageId":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},{"type":"null"}]},"answeredAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"invalidationReason":{"anyOf":[{"type":"string","enum":["case_changed","expired","new_question","cancelled_by_customer"]},{"type":"null"}]}},"required":["schemaVersion","id","caseId","target","channel","basisCaseRevision","basisProfileVersion","basisDraftHash","targetHash","locale","questionId","questionTurnId","questionReplyId","questionHash","questionText","review","createdAt","expiresAt","status","presentedAt","playbackId","answerMessageId","answeredAt","invalidationReason"],"additionalProperties":false},{"type":"null"}]}},"required":["confirmation"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/components/schemas/CurrentCustomerConfirmation/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/components/schemas/CurrentCustomerConfirmation/$defs/__schema0"}}]}}},"ConfirmationOutcome":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"confirmation":{"type":"object","properties":{"schemaVersion":{"type":"string","const":"1.0"},"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"caseId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"target":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"accept_batch"},"batchId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"}},"required":["kind","batchId"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"confirm_profile"}},"required":["kind"],"additionalProperties":false}]},"channel":{"type":"string","enum":["voice","screen"]},"basisCaseRevision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"basisProfileVersion":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},{"type":"null"}]},"basisDraftHash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"targetHash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"locale":{"type":"string","enum":["de","fr","it","en"]},"questionId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"questionTurnId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"questionReplyId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"questionHash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"questionText":{"type":"string","minLength":1,"maxLength":16000},"review":{"type":"object","properties":{"draft":{"type":"object","properties":{"financial":{"anyOf":[{"type":"object","properties":{"schemaVersion":{"type":"string","const":"1.0"},"caseId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"caseRevision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"profileVersion":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"dataClassification":{"type":"string","enum":["synthetic","customer"]},"valuationDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"priceBasis":{"type":"string","const":"nominal"},"persons":{"minItems":1,"maxItems":2,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"birthYear":{"type":"integer","minimum":1900,"maximum":2100},"employmentRateBps":{"type":"integer","minimum":0,"maximum":10000},"income":{"type":"object","properties":{"value":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"currency":{"type":"string","const":"CHF"},"unit":{"type":"string","const":"cent"},"period":{"type":"string","enum":["month","year","once"]},"origin":{"type":"string","enum":["user","document","api","estimate","synthetic"]},"confirmation":{"type":"string","enum":["proposed","confirmed"]},"review":{"type":"string","enum":["unreviewed","reviewed","rejected"]},"sourceRef":{"type":"string","minLength":1,"maxLength":240}},"required":["value","currency","unit","period","origin","confirmation","review","sourceRef"],"additionalProperties":false},"incomeBasis":{"type":"string","enum":["gross","net_before_income_tax","net_after_income_tax"]}},"required":["id","birthYear","employmentRateBps","income","incomeBasis"],"additionalProperties":false}},"expenses":{"maxItems":80,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"category":{"type":"string","enum":["housing","living","tax","provision","debt","reserve","other"]},"amount":{"type":"object","properties":{"value":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"currency":{"type":"string","const":"CHF"},"unit":{"type":"string","const":"cent"},"period":{"type":"string","enum":["month","year","once"]},"origin":{"type":"string","enum":["user","document","api","estimate","synthetic"]},"confirmation":{"type":"string","enum":["proposed","confirmed"]},"review":{"type":"string","enum":["unreviewed","reviewed","rejected"]},"sourceRef":{"type":"string","minLength":1,"maxLength":240}},"required":["value","currency","unit","period","origin","confirmation","review","sourceRef"],"additionalProperties":false},"includedInExpenseId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"}},"required":["id","category","amount"],"additionalProperties":false}},"safetyBuffer":{"type":"object","properties":{"value":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"currency":{"type":"string","const":"CHF"},"unit":{"type":"string","const":"cent"},"period":{"type":"string","enum":["month","year","once"]},"origin":{"type":"string","enum":["user","document","api","estimate","synthetic"]},"confirmation":{"type":"string","enum":["proposed","confirmed"]},"review":{"type":"string","enum":["unreviewed","reviewed","rejected"]},"sourceRef":{"type":"string","minLength":1,"maxLength":240}},"required":["value","currency","unit","period","origin","confirmation","review","sourceRef"],"additionalProperties":false},"assets":{"maxItems":40,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"amount":{"type":"object","properties":{"value":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"currency":{"type":"string","const":"CHF"},"unit":{"type":"string","const":"cent"},"period":{"type":"string","enum":["month","year","once"]},"origin":{"type":"string","enum":["user","document","api","estimate","synthetic"]},"confirmation":{"type":"string","enum":["proposed","confirmed"]},"review":{"type":"string","enum":["unreviewed","reviewed","rejected"]},"sourceRef":{"type":"string","minLength":1,"maxLength":240}},"required":["value","currency","unit","period","origin","confirmation","review","sourceRef"],"additionalProperties":false},"ownerPersonIds":{"minItems":1,"maxItems":2,"type":"array","items":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"}},"liquidity":{"type":"string","enum":["free","restricted"]},"availableFrom":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"pillar":{"type":"string","enum":["2","3","none"]},"allocations":{"maxItems":30,"type":"array","items":{"type":"object","properties":{"goalId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"amountCents":{"type":"integer","minimum":0,"maximum":1000000000000}},"required":["goalId","amountCents"],"additionalProperties":false}}},"required":["id","amount","liquidity","availableFrom","pillar","allocations"],"additionalProperties":false}},"assetsConfirmed":{"type":"boolean"},"provisions":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"personId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"pillar":{"type":"string","enum":["1","2","3"]},"event":{"type":"string","enum":["retirement","disability_illness","disability_accident","death_illness","death_accident"]},"amount":{"type":"object","properties":{"value":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"currency":{"type":"string","const":"CHF"},"unit":{"type":"string","const":"cent"},"period":{"type":"string","enum":["month","year","once"]},"origin":{"type":"string","enum":["user","document","api","estimate","synthetic"]},"confirmation":{"type":"string","enum":["proposed","confirmed"]},"review":{"type":"string","enum":["unreviewed","reviewed","rejected"]},"sourceRef":{"type":"string","minLength":1,"maxLength":240}},"required":["value","currency","unit","period","origin","confirmation","review","sourceRef"],"additionalProperties":false}},"required":["id","personId","pillar","event","amount"],"additionalProperties":false}}},"required":["schemaVersion","caseId","caseRevision","profileVersion","dataClassification","valuationDate","priceBasis","persons","expenses","safetyBuffer","assets","assetsConfirmed","provisions"],"additionalProperties":false},{"type":"null"}]},"insurance":{"anyOf":[{"type":"object","properties":{"relationship":{"type":"string","enum":["unknown","single","married","cohabiting","registered_partnership"]},"relationshipSinceYear":{"anyOf":[{"type":"integer","minimum":1900,"maximum":2100},{"type":"null"}]},"sharedChildren":{"anyOf":[{"type":"integer","minimum":0,"maximum":30},{"type":"null"}]},"taxLocationId":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},{"type":"null"}]},"persons":{"maxItems":2,"type":"array","items":{"type":"object","properties":{"personId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"providerSex":{"anyOf":[{"anyOf":[{"type":"number","const":1},{"type":"number","const":2}]},{"type":"null"}]},"grossAnnualIncomeCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"withPillar2":{"type":["boolean","null"]},"pillar2Risk":{"type":"object","properties":{"disabilityAnnualCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"disabilityChildAnnualCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"survivorAnnualCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"orphanAnnualCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]}},"required":["disabilityAnnualCents","disabilityChildAnnualCents","survivorAnnualCents","orphanAnnualCents"],"additionalProperties":false},"retirementPensionAnnualCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"currentPillar2CapitalCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"desiredWorkStopAge":{"anyOf":[{"type":"integer","minimum":18,"maximum":100},{"type":"null"}]},"disabilityNeedAnnualCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"deathNeedAnnualCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"protectionTermMonths":{"anyOf":[{"type":"integer","minimum":1,"maximum":600},{"type":"null"}]},"existingDeathCapitalCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"deathOneOffCostsCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"debtPayoffCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"debtTreatment":{"anyOf":[{"type":"string","enum":["included_in_income_need","pay_off_separately"]},{"type":"null"}]},"deathNeedExcludesRepaidDebtService":{"type":"boolean"},"personalAffordableAnnualPremiumCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]}},"required":["personId","providerSex","grossAnnualIncomeCents","withPillar2","pillar2Risk","retirementPensionAnnualCents","currentPillar2CapitalCents","desiredWorkStopAge","disabilityNeedAnnualCents","deathNeedAnnualCents","protectionTermMonths","existingDeathCapitalCents","deathOneOffCostsCents","debtPayoffCents","debtTreatment","deathNeedExcludesRepaidDebtService","personalAffordableAnnualPremiumCents"],"additionalProperties":false}},"children":{"maxItems":30,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"birthYear":{"type":"integer","minimum":1900,"maximum":2100},"kind":{"type":"string","enum":["shared","sole_custody","goal_only","expected"]},"parentPersonIds":{"maxItems":2,"type":"array","items":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"}},"supportUntilMonth":{"anyOf":[{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"},{"type":"null"}]},"goalId":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},{"type":"null"}]}},"required":["id","birthYear","kind","parentPersonIds","supportUntilMonth","goalId"],"additionalProperties":false}},"debts":{"maxItems":30,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"ownerPersonIds":{"minItems":1,"maxItems":2,"type":"array","items":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"}},"balanceCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"annualServiceCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"kind":{"type":"string","enum":["mortgage","consumer","education","other"]}},"required":["id","ownerPersonIds","balanceCents","annualServiceCents","kind"],"additionalProperties":false}},"debtsConfirmed":{"type":"boolean"},"existingPrivateRiskBenefitsConfirmed":{"type":"boolean"},"confession1":{"anyOf":[{"anyOf":[{"type":"number","const":1},{"type":"number","const":2},{"type":"number","const":3},{"type":"number","const":4},{"type":"number","const":9}]},{"type":"null"}]},"confession2":{"anyOf":[{"anyOf":[{"type":"number","const":1},{"type":"number","const":2},{"type":"number","const":3},{"type":"number","const":4},{"type":"number","const":9}]},{"type":"null"}]},"taxableFortuneCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"retirementNeedAnnualCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"annualReturnBps":{"anyOf":[{"type":"integer","minimum":-5000,"maximum":2000},{"type":"null"}]},"retirementHorizonAge":{"anyOf":[{"type":"integer","minimum":50,"maximum":120},{"type":"null"}]},"annualSavingCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"investmentKnowledgeConfirmed":{"type":"boolean"},"annualSavingIsAdditional":{"type":"boolean","const":true},"existingAnnualRetirementSavingCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"existingAnnualPillar3aContributionCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"riskAppetite":{"type":"string","enum":["unknown","low","medium","high"]},"riskCapitalStrategy":{"anyOf":[{"type":"string","enum":["use_free_assets_first","preserve_assets_for_other_goals"]},{"type":"null"}]}},"required":["relationship","relationshipSinceYear","sharedChildren","taxLocationId","persons","children","debts","debtsConfirmed","existingPrivateRiskBenefitsConfirmed","confession1","confession2","taxableFortuneCents","retirementNeedAnnualCents","annualReturnBps","retirementHorizonAge","annualSavingCents","investmentKnowledgeConfirmed","annualSavingIsAdditional","existingAnnualRetirementSavingCents","existingAnnualPillar3aContributionCents","riskAppetite","riskCapitalStrategy"],"additionalProperties":false},{"type":"null"}]},"goals":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["family","home","retirement","child_protection","income_protection","survivor_protection"]},"targetMonth":{"anyOf":[{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"},{"type":"null"}]},"priority":{"type":"integer","minimum":1,"maximum":5},"targetCapitalCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]}},"required":["id","kind","targetMonth","priority","targetCapitalCents"],"additionalProperties":false}},"reviewFlags":{"maxItems":8,"type":"array","items":{"type":"string","enum":["user_requested","complex_beneficiaries","cross_border","self_employed","medical_review_needed","investment_knowledge_missing","high_impact"]}}},"required":["financial","insurance","goals","reviewFlags"],"additionalProperties":false},"changes":{"maxItems":50,"type":"array","items":{"type":"object","properties":{"path":{"type":"string","minLength":1,"maxLength":200},"value":{"$ref":"#/components/schemas/ConfirmationOutcome/$defs/__schema0"},"personId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"}},"required":["path","value"],"additionalProperties":false}},"noticeVersion":{"type":"string","enum":["lifemap-synthetic-v1","lifemap-synthetic-v2"]},"allowSyntheticCalculatorTransfer":{"type":"boolean"},"confirmProfileAndAssumptions":{"type":"boolean"}},"required":["draft","changes","noticeVersion","allowSyntheticCalculatorTransfer","confirmProfileAndAssumptions"],"additionalProperties":false},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"expiresAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"status":{"type":"string","enum":["awaiting_presentation","awaiting_answer","consumed","cancelled","invalidated"]},"presentedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"playbackId":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},{"type":"null"}]},"answerMessageId":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},{"type":"null"}]},"answeredAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"invalidationReason":{"anyOf":[{"type":"string","enum":["case_changed","expired","new_question","cancelled_by_customer"]},{"type":"null"}]}},"required":["schemaVersion","id","caseId","target","channel","basisCaseRevision","basisProfileVersion","basisDraftHash","targetHash","locale","questionId","questionTurnId","questionReplyId","questionHash","questionText","review","createdAt","expiresAt","status","presentedAt","playbackId","answerMessageId","answeredAt","invalidationReason"],"additionalProperties":false},"caseRevision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"contextRevision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"profileVersion":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},{"type":"null"}]},"accepted":{"type":"boolean"},"confirmationStillRequired":{"type":"boolean"}},"required":["confirmation","caseRevision","contextRevision","profileVersion","accepted","confirmationStillRequired"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/components/schemas/ConfirmationOutcome/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/components/schemas/ConfirmationOutcome/$defs/__schema0"}}]}}},"HumanHandoverView":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"caseId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"caseRevision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"contextRevision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"handover":{"type":"object","properties":{"status":{"type":"string","enum":["digital","requested"]},"revision":{"type":"integer","minimum":0,"maximum":9007199254740991},"wantsHumanAdvisor":{"type":"boolean"},"leaveViewRequested":{"type":"boolean"},"stopDigitalConversation":{"type":"boolean"},"requestId":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},{"type":"null"}]},"requestedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"resumedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"source":{"anyOf":[{"type":"string","enum":["ui","voice"]},{"type":"null"}]}},"required":["status","revision","wantsHumanAdvisor","leaveViewRequested","stopDigitalConversation","requestId","requestedAt","resumedAt","source"],"additionalProperties":false},"contact":{"type":"object","properties":{"organization":{"type":"string","const":"Pax"},"kind":{"type":"string","const":"public_general_contact"},"phone":{"type":"string","pattern":"^\\+[1-9]\\d{7,14}$"},"displayPhone":{"type":"string","maxLength":40},"sourceUrl":{"type":"string","format":"uri"},"verifiedAt":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"automaticDialing":{"type":"boolean","const":false},"advisorAssigned":{"type":"boolean","const":false}},"required":["organization","kind","phone","displayPhone","sourceUrl","verifiedAt","automaticDialing","advisorAssigned"],"additionalProperties":false}},"required":["caseId","caseRevision","contextRevision","handover","contact"],"additionalProperties":false},"HumanHandoverCommandResponse":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"caseId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"caseRevision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"contextRevision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"handover":{"type":"object","properties":{"status":{"type":"string","enum":["digital","requested"]},"revision":{"type":"integer","minimum":0,"maximum":9007199254740991},"wantsHumanAdvisor":{"type":"boolean"},"leaveViewRequested":{"type":"boolean"},"stopDigitalConversation":{"type":"boolean"},"requestId":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},{"type":"null"}]},"requestedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"resumedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"source":{"anyOf":[{"type":"string","enum":["ui","voice"]},{"type":"null"}]}},"required":["status","revision","wantsHumanAdvisor","leaveViewRequested","stopDigitalConversation","requestId","requestedAt","resumedAt","source"],"additionalProperties":false},"contact":{"type":"object","properties":{"organization":{"type":"string","const":"Pax"},"kind":{"type":"string","const":"public_general_contact"},"phone":{"type":"string","pattern":"^\\+[1-9]\\d{7,14}$"},"displayPhone":{"type":"string","maxLength":40},"sourceUrl":{"type":"string","format":"uri"},"verifiedAt":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"automaticDialing":{"type":"boolean","const":false},"advisorAssigned":{"type":"boolean","const":false}},"required":["organization","kind","phone","displayPhone","sourceUrl","verifiedAt","automaticDialing","advisorAssigned"],"additionalProperties":false},"command":{"type":"object","properties":{"messageId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"action":{"type":"string","enum":["request","resume"]},"replayed":{"type":"boolean"},"changed":{"type":"boolean"}},"required":["messageId","action","replayed","changed"],"additionalProperties":false}},"required":["caseId","caseRevision","contextRevision","handover","contact","command"],"additionalProperties":false},"QuestionsResponse":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"profileVersion":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},{"type":"null"}]},"caseRevision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"contextRevision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"mandatoryFields":{"type":"array","items":{"type":"string","maxLength":250}},"pendingAcceptanceBatchIds":{"default":[],"maxItems":100,"type":"array","items":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"}},"questions":{"maxItems":3,"type":"array","items":{"type":"object","properties":{"path":{"type":"string","maxLength":250},"mandatory":{"type":"boolean","const":true},"text":{"type":"string","maxLength":4000}},"required":["path","mandatory","text"],"additionalProperties":false}},"pace":{"type":"string","enum":["compact","detailed"]}},"required":["profileVersion","caseRevision","contextRevision","mandatoryFields","pendingAcceptanceBatchIds","questions","pace"],"additionalProperties":false},"RecommendationPresentation":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"runId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"profileVersion":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"status":{"type":"string","enum":["human_review_required","ready_for_demo","no_new_contract"]},"candidates":{"maxItems":30,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"productId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"productName":{"type":"string","maxLength":4000},"personId":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},{"type":"null"}]},"insuredChildId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"needAmountCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"needPeriod":{"type":"string","enum":["year","once"]},"rule":{"type":"object","properties":{"ruleId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"ruleVersion":{"type":"string","maxLength":120},"runId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"inputHash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"reasonCodes":{"maxItems":100,"type":"array","items":{"type":"string","pattern":"^[A-Z0-9_]{1,100}$"}},"sourceRefs":{"maxItems":200,"type":"array","items":{"type":"string","maxLength":2000}}},"required":["ruleId","ruleVersion","runId","inputHash","reasonCodes","sourceRefs"],"additionalProperties":false},"premiumCents":{"type":"null"},"premiumStatus":{"type":"string","const":"pax_tariff_api_unavailable"},"eligibility":{"type":"string","enum":["human_review_required","ready_for_demo"]},"conditions":{"maxItems":30,"type":"array","items":{"type":"string","maxLength":4000}},"explanation":{"type":"string","maxLength":4000},"reasonDetails":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"text":{"type":"string","maxLength":4000}},"required":["code","text"],"additionalProperties":false}}},"required":["id","productId","productName","personId","needAmountCents","needPeriod","rule","premiumCents","premiumStatus","eligibility","conditions","explanation","reasonDetails"],"additionalProperties":false}},"alternatives":{"maxItems":20,"type":"array","items":{"type":"string","maxLength":4000}},"decision":{"type":"object","properties":{"ruleId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"ruleVersion":{"type":"string","maxLength":120},"runId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"inputHash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"reasonCodes":{"maxItems":100,"type":"array","items":{"type":"string","pattern":"^[A-Z0-9_]{1,100}$"}},"sourceRefs":{"maxItems":200,"type":"array","items":{"type":"string","maxLength":2000}}},"required":["ruleId","ruleVersion","runId","inputHash","reasonCodes","sourceRefs"],"additionalProperties":false},"locale":{"type":"string","enum":["de","fr","it","en"]},"statusLabel":{"type":"string","maxLength":4000},"disclaimer":{"type":"string","maxLength":4000},"documentsLanguageNotice":{"type":"string","maxLength":4000}},"required":["id","runId","profileVersion","createdAt","status","candidates","alternatives","decision","locale","statusLabel","disclaimer","documentsLanguageNotice"],"additionalProperties":false},"AdvisorContextUpdated":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemaVersion":{"type":"string","const":"1.0"},"messageId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"caseId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"correlationId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"eventId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"contextRevision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"reason":{"type":"string","maxLength":100},"voiceSessionId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"contextRef":{"type":"string","pattern":"^\\/api\\/cases\\/[A-Za-z0-9_-]+\\/advisor\\/context$"},"handover":{"default":{"status":"digital","revision":0,"wantsHumanAdvisor":false,"leaveViewRequested":false,"stopDigitalConversation":false,"requestId":null,"requestedAt":null,"resumedAt":null,"source":null},"type":"object","properties":{"status":{"type":"string","enum":["digital","requested"]},"revision":{"type":"integer","minimum":0,"maximum":9007199254740991},"wantsHumanAdvisor":{"type":"boolean"},"leaveViewRequested":{"type":"boolean"},"stopDigitalConversation":{"type":"boolean"},"requestId":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},{"type":"null"}]},"requestedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"resumedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"source":{"anyOf":[{"type":"string","enum":["ui","voice"]},{"type":"null"}]}},"required":["status","revision","wantsHumanAdvisor","leaveViewRequested","stopDigitalConversation","requestId","requestedAt","resumedAt","source"],"additionalProperties":false},"interruptPolicy":{"type":"string","enum":["refresh_before_next_turn","if_current_answer_invalid","immediate"]}},"required":["schemaVersion","messageId","caseId","correlationId","eventId","contextRevision","reason","contextRef","handover","interruptPolicy"],"additionalProperties":false},"ApiError":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"code":{"type":"string","pattern":"^[A-Z0-9_]{1,100}$"},"fields":{"type":"array","items":{"type":"string"}},"locale":{"type":"string","enum":["de","fr","it","en"]},"message":{"type":"string","maxLength":4000}},"required":["code","locale","message"],"additionalProperties":false},"SessionResponse":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"sessionToken":{"type":"string","pattern":"^[A-Za-z0-9_-]{40,100}$"},"csrfToken":{"type":"string","pattern":"^[A-Za-z0-9_-]{40,100}$"},"expiresAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"role":{"type":"string","enum":["customer","reviewer"]},"actorId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"}},"required":["sessionToken","csrfToken","expiresAt","role","actorId"],"additionalProperties":false},"AgentAccessResponse":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"sessionToken":{"type":"string","pattern":"^[A-Za-z0-9_-]{40,100}$"},"role":{"type":"string","const":"advisor"},"caseId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"expiresAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["sessionToken","role","caseId","expiresAt"],"additionalProperties":false},"SummaryBundle":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemaVersion":{"type":"string","const":"1.0"},"snapshotId":{"type":"string","pattern":"^[a-f0-9]{64}$"},"customer":{"type":"object","properties":{"schemaVersion":{"type":"string","const":"1.0"},"snapshotId":{"type":"string","pattern":"^[a-f0-9]{64}$"},"caseId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"profileVersion":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},{"type":"null"}]},"runId":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},{"type":"null"}]},"calculationInputHash":{"anyOf":[{"type":"string","pattern":"^[a-f0-9]{64}$"},{"type":"null"}]},"draftPending":{"type":"boolean"},"goals":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["family","home","retirement","child_protection","income_protection","survivor_protection"]},"targetMonth":{"anyOf":[{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"},{"type":"null"}]},"priority":{"type":"integer","minimum":1,"maximum":5},"targetCapitalCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]}},"required":["id","kind","targetMonth","priority","targetCapitalCents"],"additionalProperties":false}},"financial":{"anyOf":[{"type":"object","properties":{"schemaVersion":{"type":"string","const":"1.0"},"caseId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"caseRevision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"profileVersion":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"dataClassification":{"type":"string","enum":["synthetic","customer"]},"valuationDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"priceBasis":{"type":"string","const":"nominal"},"persons":{"minItems":1,"maxItems":2,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"birthYear":{"type":"integer","minimum":1900,"maximum":2100},"employmentRateBps":{"type":"integer","minimum":0,"maximum":10000},"income":{"type":"object","properties":{"value":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"currency":{"type":"string","const":"CHF"},"unit":{"type":"string","const":"cent"},"period":{"type":"string","enum":["month","year","once"]},"origin":{"type":"string","enum":["user","document","api","estimate","synthetic"]},"confirmation":{"type":"string","enum":["proposed","confirmed"]},"review":{"type":"string","enum":["unreviewed","reviewed","rejected"]},"sourceRef":{"type":"string","minLength":1,"maxLength":240}},"required":["value","currency","unit","period","origin","confirmation","review","sourceRef"],"additionalProperties":false},"incomeBasis":{"type":"string","enum":["gross","net_before_income_tax","net_after_income_tax"]}},"required":["id","birthYear","employmentRateBps","income","incomeBasis"],"additionalProperties":false}},"expenses":{"maxItems":80,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"category":{"type":"string","enum":["housing","living","tax","provision","debt","reserve","other"]},"amount":{"type":"object","properties":{"value":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"currency":{"type":"string","const":"CHF"},"unit":{"type":"string","const":"cent"},"period":{"type":"string","enum":["month","year","once"]},"origin":{"type":"string","enum":["user","document","api","estimate","synthetic"]},"confirmation":{"type":"string","enum":["proposed","confirmed"]},"review":{"type":"string","enum":["unreviewed","reviewed","rejected"]},"sourceRef":{"type":"string","minLength":1,"maxLength":240}},"required":["value","currency","unit","period","origin","confirmation","review","sourceRef"],"additionalProperties":false},"includedInExpenseId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"}},"required":["id","category","amount"],"additionalProperties":false}},"safetyBuffer":{"type":"object","properties":{"value":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"currency":{"type":"string","const":"CHF"},"unit":{"type":"string","const":"cent"},"period":{"type":"string","enum":["month","year","once"]},"origin":{"type":"string","enum":["user","document","api","estimate","synthetic"]},"confirmation":{"type":"string","enum":["proposed","confirmed"]},"review":{"type":"string","enum":["unreviewed","reviewed","rejected"]},"sourceRef":{"type":"string","minLength":1,"maxLength":240}},"required":["value","currency","unit","period","origin","confirmation","review","sourceRef"],"additionalProperties":false},"assets":{"maxItems":40,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"amount":{"type":"object","properties":{"value":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"currency":{"type":"string","const":"CHF"},"unit":{"type":"string","const":"cent"},"period":{"type":"string","enum":["month","year","once"]},"origin":{"type":"string","enum":["user","document","api","estimate","synthetic"]},"confirmation":{"type":"string","enum":["proposed","confirmed"]},"review":{"type":"string","enum":["unreviewed","reviewed","rejected"]},"sourceRef":{"type":"string","minLength":1,"maxLength":240}},"required":["value","currency","unit","period","origin","confirmation","review","sourceRef"],"additionalProperties":false},"ownerPersonIds":{"minItems":1,"maxItems":2,"type":"array","items":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"}},"liquidity":{"type":"string","enum":["free","restricted"]},"availableFrom":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"pillar":{"type":"string","enum":["2","3","none"]},"allocations":{"maxItems":30,"type":"array","items":{"type":"object","properties":{"goalId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"amountCents":{"type":"integer","minimum":0,"maximum":1000000000000}},"required":["goalId","amountCents"],"additionalProperties":false}}},"required":["id","amount","liquidity","availableFrom","pillar","allocations"],"additionalProperties":false}},"assetsConfirmed":{"type":"boolean"},"provisions":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"personId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"pillar":{"type":"string","enum":["1","2","3"]},"event":{"type":"string","enum":["retirement","disability_illness","disability_accident","death_illness","death_accident"]},"amount":{"type":"object","properties":{"value":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"currency":{"type":"string","const":"CHF"},"unit":{"type":"string","const":"cent"},"period":{"type":"string","enum":["month","year","once"]},"origin":{"type":"string","enum":["user","document","api","estimate","synthetic"]},"confirmation":{"type":"string","enum":["proposed","confirmed"]},"review":{"type":"string","enum":["unreviewed","reviewed","rejected"]},"sourceRef":{"type":"string","minLength":1,"maxLength":240}},"required":["value","currency","unit","period","origin","confirmation","review","sourceRef"],"additionalProperties":false}},"required":["id","personId","pillar","event","amount"],"additionalProperties":false}}},"required":["schemaVersion","caseId","caseRevision","profileVersion","dataClassification","valuationDate","priceBasis","persons","expenses","safetyBuffer","assets","assetsConfirmed","provisions"],"additionalProperties":false},{"type":"null"}]},"metrics":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,160}$"},"value":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"currency":{"type":"string","const":"CHF"},"unit":{"type":"string","const":"cent"},"period":{"type":"string","enum":["month","year","once"]},"status":{"type":"string","enum":["valid","estimated","requires_review","needs_input","provider_error","unsupported","stale"]},"personId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"sourceRefs":{"maxItems":120,"type":"array","items":{"type":"string"}}},"required":["id","value","currency","unit","period","status","sourceRefs"],"additionalProperties":false}},"capitalAllocations":{"type":"array","items":{"type":"object","properties":{"assetId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"totalCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"allocatedCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"freeCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"excludedReason":{"anyOf":[{"type":"string","enum":["restricted","not_available_yet"]},{"type":"null"}]},"allocations":{"type":"array","items":{"type":"object","properties":{"goalId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"amountCents":{"type":"integer","minimum":0,"maximum":1000000000000}},"required":["goalId","amountCents"],"additionalProperties":false}}},"required":["assetId","totalCents","allocatedCents","freeCents","excludedReason","allocations"],"additionalProperties":false}},"riskNeeds":{"maxItems":8,"type":"array","items":{"type":"object","properties":{"personId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"scenario":{"type":"integer","minimum":1,"maximum":8},"event":{"type":"string","enum":["disability_illness","disability_accident","death_illness","death_accident"]},"annualNeedCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"providerReportedNeedCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"providerIncomeCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"privatePillar3IncomeCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"annualGapCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"deathCapitalCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"liquidAssetsAppliedCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"status":{"type":"string","enum":["valid","estimated","requires_review","needs_input","provider_error","unsupported","stale"]},"sourceRefs":{"type":"array","items":{"type":"string"}}},"required":["personId","scenario","event","annualNeedCents","providerReportedNeedCents","providerIncomeCents","privatePillar3IncomeCents","annualGapCents","deathCapitalCents","liquidAssetsAppliedCents","status","sourceRefs"],"additionalProperties":false}},"timeline":{"anyOf":[{"type":"object","properties":{"status":{"type":"string","enum":["estimated","needs_input"]},"priceBasis":{"type":"string","const":"nominal"},"guaranteed":{"type":"boolean","const":false},"periods":{"maxItems":1200,"type":"array","items":{"type":"object","properties":{"month":{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"},"persons":{"minItems":1,"maxItems":2,"type":"array","items":{"type":"object","properties":{"personId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"employmentCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"pillar1Cents":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"pillar2Cents":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"pillar3Cents":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"phase":{"type":"string","enum":["working","bridge","pension"]}},"required":["personId","employmentCents","pillar1Cents","pillar2Cents","pillar3Cents","phase"],"additionalProperties":false}},"knownIncomeCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"incomeCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"needCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"withdrawalCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"unfundedCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"capitalCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"knownCapitalCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"contributionCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"unfundedContributionCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"restrictedSavingCapitalCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"status":{"type":"string","enum":["estimated","needs_input"]}},"required":["month","persons","knownIncomeCents","incomeCents","needCents","withdrawalCents","unfundedCents","capitalCents","knownCapitalCents","contributionCents","unfundedContributionCents","restrictedSavingCapitalCents","status"],"additionalProperties":false}},"phases":{"type":"array","items":{"type":"object","properties":{"fromMonth":{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"},"persons":{"type":"array","items":{"type":"object","properties":{"personId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"phase":{"type":"string","enum":["working","bridge","pension"]}},"required":["personId","phase"],"additionalProperties":false}}},"required":["fromMonth","persons"],"additionalProperties":false}},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"}},"required":["code","path","message"],"additionalProperties":false}},"firstUnfundedMonth":{"anyOf":[{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"},{"type":"null"}]},"assumptions":{"type":"array","items":{"type":"string"}}},"required":["status","priceBasis","guaranteed","periods","phases","issues","firstUnfundedMonth","assumptions"],"additionalProperties":false},{"type":"null"}]},"pillarPicture":{"anyOf":[{"minItems":3,"maxItems":3,"type":"array","items":{"type":"object","properties":{"pillar":{"type":"string","enum":["1","2","3"]},"status":{"type":"string","enum":["valid","estimated","requires_review","needs_input","provider_error","unsupported","stale"]},"annualPensions":{"type":"array","items":{"type":"object","properties":{"event":{"type":"string"},"personId":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},{"type":"null"}]},"amountCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]}},"required":["event","personId","amountCents"],"additionalProperties":false}},"capitalCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"annualContributionCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"capitalIsReferenceOnly":{"type":"boolean","const":true},"sourceRefs":{"type":"array","items":{"type":"string"}}},"required":["pillar","status","annualPensions","capitalCents","annualContributionCents","capitalIsReferenceOnly","sourceRefs"],"additionalProperties":false}},{"type":"array","prefixItems":[],"items":false,"maxItems":0}]},"assumptions":{"type":"array","items":{"type":"string","maxLength":4000}},"reviewReasons":{"type":"array","items":{"type":"string"}},"reviewTasks":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"runId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"profileVersion":{"type":"integer","minimum":0,"maximum":9007199254740991},"reasons":{"maxItems":100,"type":"array","items":{"type":"string","pattern":"^[A-Z0-9_]{1,100}$"}},"status":{"type":"string","enum":["open","approved_for_demo","needs_information","declined"]},"decision":{"anyOf":[{"type":"object","properties":{"actorId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"acknowledgedReasonCodes":{"maxItems":100,"type":"array","items":{"type":"string","pattern":"^[A-Z0-9_]{1,100}$"}},"criteria":{"maxItems":5,"type":"array","items":{"type":"string","maxLength":100}}},"required":["actorId","at","acknowledgedReasonCodes","criteria"],"additionalProperties":false},{"type":"null"}]},"current":{"type":"boolean"},"statusLabel":{"type":"string","maxLength":4000}},"required":["id","runId","profileVersion","reasons","status","decision","current","statusLabel"],"additionalProperties":false}},"recommendations":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"runId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"profileVersion":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"status":{"type":"string","enum":["human_review_required","ready_for_demo","no_new_contract"]},"candidates":{"maxItems":30,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"productId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"productName":{"type":"string","maxLength":4000},"personId":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},{"type":"null"}]},"insuredChildId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"needAmountCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"needPeriod":{"type":"string","enum":["year","once"]},"rule":{"type":"object","properties":{"ruleId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"ruleVersion":{"type":"string","maxLength":120},"runId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"inputHash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"reasonCodes":{"maxItems":100,"type":"array","items":{"type":"string","pattern":"^[A-Z0-9_]{1,100}$"}},"sourceRefs":{"maxItems":200,"type":"array","items":{"type":"string","maxLength":2000}}},"required":["ruleId","ruleVersion","runId","inputHash","reasonCodes","sourceRefs"],"additionalProperties":false},"premiumCents":{"type":"null"},"premiumStatus":{"type":"string","const":"pax_tariff_api_unavailable"},"eligibility":{"type":"string","enum":["human_review_required","ready_for_demo"]},"conditions":{"maxItems":30,"type":"array","items":{"type":"string","maxLength":4000}},"explanation":{"type":"string","maxLength":4000},"reasonDetails":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"text":{"type":"string","maxLength":4000}},"required":["code","text"],"additionalProperties":false}}},"required":["id","productId","productName","personId","needAmountCents","needPeriod","rule","premiumCents","premiumStatus","eligibility","conditions","explanation","reasonDetails"],"additionalProperties":false}},"alternatives":{"maxItems":20,"type":"array","items":{"type":"string","maxLength":4000}},"decision":{"type":"object","properties":{"ruleId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"ruleVersion":{"type":"string","maxLength":120},"runId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"inputHash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"reasonCodes":{"maxItems":100,"type":"array","items":{"type":"string","pattern":"^[A-Z0-9_]{1,100}$"}},"sourceRefs":{"maxItems":200,"type":"array","items":{"type":"string","maxLength":2000}}},"required":["ruleId","ruleVersion","runId","inputHash","reasonCodes","sourceRefs"],"additionalProperties":false},"locale":{"type":"string","enum":["de","fr","it","en"]},"statusLabel":{"type":"string","maxLength":4000},"disclaimer":{"type":"string","maxLength":4000},"documentsLanguageNotice":{"type":"string","maxLength":4000}},"required":["id","runId","profileVersion","createdAt","status","candidates","alternatives","decision","locale","statusLabel","disclaimer","documentsLanguageNotice"],"additionalProperties":false}},"comparisons":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"scope":{"type":"string","const":"valuation_snapshot_local_metrics"},"valuationDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"futureTimelineCompared":{"type":"boolean","const":false},"profileVersion":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"baselineRunId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"variantRunId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"baselineInputHash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"variantInputHash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"metrics":{"maxItems":500,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","maxLength":160},"personId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"currency":{"type":"string","const":"CHF"},"unit":{"type":"string","const":"cent"},"period":{"type":"string","enum":["month","year","once"]},"baselineValue":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"variantValue":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"delta":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"status":{"type":"string","enum":["valid","estimated","requires_review","needs_input","provider_error","unsupported","stale"]}},"required":["id","currency","unit","period","baselineValue","variantValue","delta","status"],"additionalProperties":false}}},"required":["id","scope","valuationDate","futureTimelineCompared","profileVersion","baselineRunId","variantRunId","baselineInputHash","variantInputHash","metrics"],"additionalProperties":false}},"portal":{"type":"object","properties":{"schemaVersion":{"type":"string","const":"1.0"},"caseId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"caseRevision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"profileVersion":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},{"type":"null"}]},"activeRunId":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},{"type":"null"}]},"reviewTasks":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"runId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"profileVersion":{"type":"integer","minimum":0,"maximum":9007199254740991},"reasons":{"maxItems":100,"type":"array","items":{"type":"string","pattern":"^[A-Z0-9_]{1,100}$"}},"status":{"type":"string","enum":["open","approved_for_demo","needs_information","declined"]},"decision":{"anyOf":[{"type":"object","properties":{"actorId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"acknowledgedReasonCodes":{"maxItems":100,"type":"array","items":{"type":"string","pattern":"^[A-Z0-9_]{1,100}$"}},"criteria":{"maxItems":5,"type":"array","items":{"type":"string","maxLength":100}}},"required":["actorId","at","acknowledgedReasonCodes","criteria"],"additionalProperties":false},{"type":"null"}]},"current":{"type":"boolean"},"statusLabel":{"type":"string","maxLength":4000}},"required":["id","runId","profileVersion","reasons","status","decision","current","statusLabel"],"additionalProperties":false}},"quotes":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"recommendationId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"profileVersion":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"runId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"expiresAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"documents":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["id","sha256"],"additionalProperties":false}},"configurations":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"productId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"productName":{"type":"string","maxLength":4000},"personId":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},{"type":"null"}]},"insuredChildId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"needAmountCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"needPeriod":{"type":"string","enum":["year","once"]},"rule":{"type":"object","properties":{"ruleId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"ruleVersion":{"type":"string","maxLength":120},"runId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"inputHash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"reasonCodes":{"maxItems":100,"type":"array","items":{"type":"string","pattern":"^[A-Z0-9_]{1,100}$"}},"sourceRefs":{"maxItems":200,"type":"array","items":{"type":"string","maxLength":2000}}},"required":["ruleId","ruleVersion","runId","inputHash","reasonCodes","sourceRefs"],"additionalProperties":false},"premiumCents":{"type":"null"},"premiumStatus":{"type":"string","const":"pax_tariff_api_unavailable"},"eligibility":{"type":"string","enum":["human_review_required","ready_for_demo"]},"conditions":{"maxItems":30,"type":"array","items":{"type":"string","maxLength":4000}}},"required":["id","productId","productName","personId","needAmountCents","needPeriod","rule","premiumCents","premiumStatus","eligibility","conditions"],"additionalProperties":false}},"demo":{"type":"boolean","const":true},"legalEffect":{"type":"string","const":"none"},"premiumCents":{"type":"null"},"premiumStatus":{"type":"string","const":"pax_tariff_api_unavailable"},"stale":{"type":"boolean"},"displayLabel":{"type":"string","maxLength":4000}},"required":["id","recommendationId","profileVersion","runId","createdAt","expiresAt","documents","configurations","demo","legalEffect","premiumCents","premiumStatus","stale","displayLabel"],"additionalProperties":false}},"applications":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"quoteId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"runId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"profileVersion":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"status":{"type":"string","enum":["draft","submitted","under_review","needs_information","accepted_for_demo","declined"]},"submittedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"decisionBy":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},{"type":"null"}]},"decisionAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"demo":{"type":"boolean","const":true},"coverageInForce":{"type":"boolean","const":false},"stale":{"type":"boolean"},"displayLabel":{"type":"string","maxLength":4000},"statusLabel":{"type":"string","maxLength":4000}},"required":["id","quoteId","runId","profileVersion","createdAt","status","submittedAt","decisionBy","decisionAt","demo","coverageInForce","stale","displayLabel","statusLabel"],"additionalProperties":false}},"policies":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"applicationId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"profileVersion":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"runId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"issuedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"demo":{"type":"boolean","const":true},"coverageInForce":{"type":"boolean","const":false},"legalEffect":{"type":"string","const":"none"},"label":{"type":"string","const":"DEMO – KEIN VERSICHERUNGSSCHUTZ"},"configuration":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"productId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"productName":{"type":"string","maxLength":4000},"personId":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},{"type":"null"}]},"insuredChildId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"needAmountCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"needPeriod":{"type":"string","enum":["year","once"]},"rule":{"type":"object","properties":{"ruleId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"ruleVersion":{"type":"string","maxLength":120},"runId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"inputHash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"reasonCodes":{"maxItems":100,"type":"array","items":{"type":"string","pattern":"^[A-Z0-9_]{1,100}$"}},"sourceRefs":{"maxItems":200,"type":"array","items":{"type":"string","maxLength":2000}}},"required":["ruleId","ruleVersion","runId","inputHash","reasonCodes","sourceRefs"],"additionalProperties":false},"premiumCents":{"type":"null"},"premiumStatus":{"type":"string","const":"pax_tariff_api_unavailable"},"eligibility":{"type":"string","enum":["human_review_required","ready_for_demo"]},"conditions":{"maxItems":30,"type":"array","items":{"type":"string","maxLength":4000}}},"required":["id","productId","productName","personId","needAmountCents","needPeriod","rule","premiumCents","premiumStatus","eligibility","conditions"],"additionalProperties":false}},"adviceContextChanged":{"type":"boolean"},"displayLabel":{"type":"string","maxLength":4000}},"required":["id","applicationId","profileVersion","runId","issuedAt","demo","coverageInForce","legalEffect","label","configuration","adviceContextChanged","displayLabel"],"additionalProperties":false}},"complianceSteps":{"minItems":4,"maxItems":4,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["identification","aml_check","health_declaration","signature"]},"status":{"type":"string","const":"required_in_real_integration"},"label":{"type":"string","maxLength":4000},"explanation":{"type":"string","maxLength":4000}},"required":["id","status","label","explanation"],"additionalProperties":false}},"realInsuranceCoverage":{"type":"boolean","const":false},"paxContractIntegrationAvailable":{"type":"boolean","const":false},"locale":{"type":"string","enum":["de","fr","it","en"]},"displayLabel":{"type":"string","maxLength":4000},"documentsLanguageNotice":{"type":"string","maxLength":4000}},"required":["schemaVersion","caseId","caseRevision","profileVersion","activeRunId","reviewTasks","quotes","applications","policies","complianceSteps","realInsuranceCoverage","paxContractIntegrationAvailable","locale","displayLabel","documentsLanguageNotice"],"additionalProperties":false},"coverageInForce":{"type":"boolean","const":false},"demo":{"type":"boolean","const":true},"locale":{"type":"string","enum":["de","fr","it","en"]},"presentation":{"anyOf":[{"type":"object","properties":{"locale":{"type":"string","enum":["de","fr","it","en"]},"statusLabel":{"type":"string","maxLength":4000},"metrics":{"maxItems":1000,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","maxLength":160},"personId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"label":{"type":"string","maxLength":4000},"valueCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"formatted":{"type":"string","maxLength":4000},"period":{"type":"string","enum":["month","year","once"]},"periodLabel":{"type":"string","maxLength":4000},"status":{"type":"string","enum":["valid","estimated","requires_review","needs_input","provider_error","unsupported","stale"]},"statusLabel":{"type":"string","maxLength":4000}},"required":["id","label","valueCents","formatted","period","periodLabel","status","statusLabel"],"additionalProperties":false}},"assumptions":{"maxItems":100,"type":"array","items":{"type":"string","maxLength":4000}},"reviewReasons":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"text":{"type":"string","maxLength":4000}},"required":["code","text"],"additionalProperties":false}},"issues":{"maxItems":2000,"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"}},"required":["code","path","message"],"additionalProperties":false}},"legalDocumentsNotice":{"type":"string","maxLength":4000},"demoLabel":{"type":"string","maxLength":4000}},"required":["locale","statusLabel","metrics","assumptions","reviewReasons","issues","legalDocumentsNotice","demoLabel"],"additionalProperties":false},{"type":"null"}]}},"required":["schemaVersion","snapshotId","caseId","profileVersion","runId","calculationInputHash","draftPending","goals","financial","metrics","capitalAllocations","riskNeeds","timeline","pillarPicture","assumptions","reviewReasons","reviewTasks","recommendations","comparisons","portal","coverageInForce","demo","locale","presentation"],"additionalProperties":false},"advisor":{"type":"object","properties":{"schemaVersion":{"type":"string","const":"1.0"},"snapshotId":{"type":"string","pattern":"^[a-f0-9]{64}$"},"caseId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"profileVersion":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},{"type":"null"}]},"runId":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},{"type":"null"}]},"calculationInputHash":{"anyOf":[{"type":"string","pattern":"^[a-f0-9]{64}$"},{"type":"null"}]},"draftPending":{"type":"boolean"},"goals":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["family","home","retirement","child_protection","income_protection","survivor_protection"]},"targetMonth":{"anyOf":[{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"},{"type":"null"}]},"priority":{"type":"integer","minimum":1,"maximum":5},"targetCapitalCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]}},"required":["id","kind","targetMonth","priority","targetCapitalCents"],"additionalProperties":false}},"financial":{"anyOf":[{"type":"object","properties":{"schemaVersion":{"type":"string","const":"1.0"},"caseId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"caseRevision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"profileVersion":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"dataClassification":{"type":"string","enum":["synthetic","customer"]},"valuationDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"priceBasis":{"type":"string","const":"nominal"},"persons":{"minItems":1,"maxItems":2,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"birthYear":{"type":"integer","minimum":1900,"maximum":2100},"employmentRateBps":{"type":"integer","minimum":0,"maximum":10000},"income":{"type":"object","properties":{"value":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"currency":{"type":"string","const":"CHF"},"unit":{"type":"string","const":"cent"},"period":{"type":"string","enum":["month","year","once"]},"origin":{"type":"string","enum":["user","document","api","estimate","synthetic"]},"confirmation":{"type":"string","enum":["proposed","confirmed"]},"review":{"type":"string","enum":["unreviewed","reviewed","rejected"]},"sourceRef":{"type":"string","minLength":1,"maxLength":240}},"required":["value","currency","unit","period","origin","confirmation","review","sourceRef"],"additionalProperties":false},"incomeBasis":{"type":"string","enum":["gross","net_before_income_tax","net_after_income_tax"]}},"required":["id","birthYear","employmentRateBps","income","incomeBasis"],"additionalProperties":false}},"expenses":{"maxItems":80,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"category":{"type":"string","enum":["housing","living","tax","provision","debt","reserve","other"]},"amount":{"type":"object","properties":{"value":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"currency":{"type":"string","const":"CHF"},"unit":{"type":"string","const":"cent"},"period":{"type":"string","enum":["month","year","once"]},"origin":{"type":"string","enum":["user","document","api","estimate","synthetic"]},"confirmation":{"type":"string","enum":["proposed","confirmed"]},"review":{"type":"string","enum":["unreviewed","reviewed","rejected"]},"sourceRef":{"type":"string","minLength":1,"maxLength":240}},"required":["value","currency","unit","period","origin","confirmation","review","sourceRef"],"additionalProperties":false},"includedInExpenseId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"}},"required":["id","category","amount"],"additionalProperties":false}},"safetyBuffer":{"type":"object","properties":{"value":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"currency":{"type":"string","const":"CHF"},"unit":{"type":"string","const":"cent"},"period":{"type":"string","enum":["month","year","once"]},"origin":{"type":"string","enum":["user","document","api","estimate","synthetic"]},"confirmation":{"type":"string","enum":["proposed","confirmed"]},"review":{"type":"string","enum":["unreviewed","reviewed","rejected"]},"sourceRef":{"type":"string","minLength":1,"maxLength":240}},"required":["value","currency","unit","period","origin","confirmation","review","sourceRef"],"additionalProperties":false},"assets":{"maxItems":40,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"amount":{"type":"object","properties":{"value":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"currency":{"type":"string","const":"CHF"},"unit":{"type":"string","const":"cent"},"period":{"type":"string","enum":["month","year","once"]},"origin":{"type":"string","enum":["user","document","api","estimate","synthetic"]},"confirmation":{"type":"string","enum":["proposed","confirmed"]},"review":{"type":"string","enum":["unreviewed","reviewed","rejected"]},"sourceRef":{"type":"string","minLength":1,"maxLength":240}},"required":["value","currency","unit","period","origin","confirmation","review","sourceRef"],"additionalProperties":false},"ownerPersonIds":{"minItems":1,"maxItems":2,"type":"array","items":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"}},"liquidity":{"type":"string","enum":["free","restricted"]},"availableFrom":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"pillar":{"type":"string","enum":["2","3","none"]},"allocations":{"maxItems":30,"type":"array","items":{"type":"object","properties":{"goalId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"amountCents":{"type":"integer","minimum":0,"maximum":1000000000000}},"required":["goalId","amountCents"],"additionalProperties":false}}},"required":["id","amount","liquidity","availableFrom","pillar","allocations"],"additionalProperties":false}},"assetsConfirmed":{"type":"boolean"},"provisions":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"personId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"pillar":{"type":"string","enum":["1","2","3"]},"event":{"type":"string","enum":["retirement","disability_illness","disability_accident","death_illness","death_accident"]},"amount":{"type":"object","properties":{"value":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"currency":{"type":"string","const":"CHF"},"unit":{"type":"string","const":"cent"},"period":{"type":"string","enum":["month","year","once"]},"origin":{"type":"string","enum":["user","document","api","estimate","synthetic"]},"confirmation":{"type":"string","enum":["proposed","confirmed"]},"review":{"type":"string","enum":["unreviewed","reviewed","rejected"]},"sourceRef":{"type":"string","minLength":1,"maxLength":240}},"required":["value","currency","unit","period","origin","confirmation","review","sourceRef"],"additionalProperties":false}},"required":["id","personId","pillar","event","amount"],"additionalProperties":false}}},"required":["schemaVersion","caseId","caseRevision","profileVersion","dataClassification","valuationDate","priceBasis","persons","expenses","safetyBuffer","assets","assetsConfirmed","provisions"],"additionalProperties":false},{"type":"null"}]},"metrics":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,160}$"},"value":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"currency":{"type":"string","const":"CHF"},"unit":{"type":"string","const":"cent"},"period":{"type":"string","enum":["month","year","once"]},"status":{"type":"string","enum":["valid","estimated","requires_review","needs_input","provider_error","unsupported","stale"]},"personId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"sourceRefs":{"maxItems":120,"type":"array","items":{"type":"string"}}},"required":["id","value","currency","unit","period","status","sourceRefs"],"additionalProperties":false}},"capitalAllocations":{"type":"array","items":{"type":"object","properties":{"assetId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"totalCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"allocatedCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"freeCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"excludedReason":{"anyOf":[{"type":"string","enum":["restricted","not_available_yet"]},{"type":"null"}]},"allocations":{"type":"array","items":{"type":"object","properties":{"goalId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"amountCents":{"type":"integer","minimum":0,"maximum":1000000000000}},"required":["goalId","amountCents"],"additionalProperties":false}}},"required":["assetId","totalCents","allocatedCents","freeCents","excludedReason","allocations"],"additionalProperties":false}},"riskNeeds":{"maxItems":8,"type":"array","items":{"type":"object","properties":{"personId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"scenario":{"type":"integer","minimum":1,"maximum":8},"event":{"type":"string","enum":["disability_illness","disability_accident","death_illness","death_accident"]},"annualNeedCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"providerReportedNeedCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"providerIncomeCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"privatePillar3IncomeCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"annualGapCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"deathCapitalCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"liquidAssetsAppliedCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"status":{"type":"string","enum":["valid","estimated","requires_review","needs_input","provider_error","unsupported","stale"]},"sourceRefs":{"type":"array","items":{"type":"string"}}},"required":["personId","scenario","event","annualNeedCents","providerReportedNeedCents","providerIncomeCents","privatePillar3IncomeCents","annualGapCents","deathCapitalCents","liquidAssetsAppliedCents","status","sourceRefs"],"additionalProperties":false}},"timeline":{"anyOf":[{"type":"object","properties":{"status":{"type":"string","enum":["estimated","needs_input"]},"priceBasis":{"type":"string","const":"nominal"},"guaranteed":{"type":"boolean","const":false},"periods":{"maxItems":1200,"type":"array","items":{"type":"object","properties":{"month":{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"},"persons":{"minItems":1,"maxItems":2,"type":"array","items":{"type":"object","properties":{"personId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"employmentCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"pillar1Cents":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"pillar2Cents":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"pillar3Cents":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"phase":{"type":"string","enum":["working","bridge","pension"]}},"required":["personId","employmentCents","pillar1Cents","pillar2Cents","pillar3Cents","phase"],"additionalProperties":false}},"knownIncomeCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"incomeCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"needCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"withdrawalCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"unfundedCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"capitalCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"knownCapitalCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"contributionCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"unfundedContributionCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"restrictedSavingCapitalCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"status":{"type":"string","enum":["estimated","needs_input"]}},"required":["month","persons","knownIncomeCents","incomeCents","needCents","withdrawalCents","unfundedCents","capitalCents","knownCapitalCents","contributionCents","unfundedContributionCents","restrictedSavingCapitalCents","status"],"additionalProperties":false}},"phases":{"type":"array","items":{"type":"object","properties":{"fromMonth":{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"},"persons":{"type":"array","items":{"type":"object","properties":{"personId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"phase":{"type":"string","enum":["working","bridge","pension"]}},"required":["personId","phase"],"additionalProperties":false}}},"required":["fromMonth","persons"],"additionalProperties":false}},"issues":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"}},"required":["code","path","message"],"additionalProperties":false}},"firstUnfundedMonth":{"anyOf":[{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"},{"type":"null"}]},"assumptions":{"type":"array","items":{"type":"string"}}},"required":["status","priceBasis","guaranteed","periods","phases","issues","firstUnfundedMonth","assumptions"],"additionalProperties":false},{"type":"null"}]},"pillarPicture":{"anyOf":[{"minItems":3,"maxItems":3,"type":"array","items":{"type":"object","properties":{"pillar":{"type":"string","enum":["1","2","3"]},"status":{"type":"string","enum":["valid","estimated","requires_review","needs_input","provider_error","unsupported","stale"]},"annualPensions":{"type":"array","items":{"type":"object","properties":{"event":{"type":"string"},"personId":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},{"type":"null"}]},"amountCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]}},"required":["event","personId","amountCents"],"additionalProperties":false}},"capitalCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"annualContributionCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"capitalIsReferenceOnly":{"type":"boolean","const":true},"sourceRefs":{"type":"array","items":{"type":"string"}}},"required":["pillar","status","annualPensions","capitalCents","annualContributionCents","capitalIsReferenceOnly","sourceRefs"],"additionalProperties":false}},{"type":"array","prefixItems":[],"items":false,"maxItems":0}]},"assumptions":{"type":"array","items":{"type":"string","maxLength":4000}},"reviewReasons":{"type":"array","items":{"type":"string"}},"reviewTasks":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"runId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"profileVersion":{"type":"integer","minimum":0,"maximum":9007199254740991},"reasons":{"maxItems":100,"type":"array","items":{"type":"string","pattern":"^[A-Z0-9_]{1,100}$"}},"status":{"type":"string","enum":["open","approved_for_demo","needs_information","declined"]},"decision":{"anyOf":[{"type":"object","properties":{"actorId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"acknowledgedReasonCodes":{"maxItems":100,"type":"array","items":{"type":"string","pattern":"^[A-Z0-9_]{1,100}$"}},"criteria":{"maxItems":5,"type":"array","items":{"type":"string","maxLength":100}}},"required":["actorId","at","acknowledgedReasonCodes","criteria"],"additionalProperties":false},{"type":"null"}]},"current":{"type":"boolean"},"statusLabel":{"type":"string","maxLength":4000}},"required":["id","runId","profileVersion","reasons","status","decision","current","statusLabel"],"additionalProperties":false}},"recommendations":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"runId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"profileVersion":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"status":{"type":"string","enum":["human_review_required","ready_for_demo","no_new_contract"]},"candidates":{"maxItems":30,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"productId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"productName":{"type":"string","maxLength":4000},"personId":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},{"type":"null"}]},"insuredChildId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"needAmountCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"needPeriod":{"type":"string","enum":["year","once"]},"rule":{"type":"object","properties":{"ruleId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"ruleVersion":{"type":"string","maxLength":120},"runId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"inputHash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"reasonCodes":{"maxItems":100,"type":"array","items":{"type":"string","pattern":"^[A-Z0-9_]{1,100}$"}},"sourceRefs":{"maxItems":200,"type":"array","items":{"type":"string","maxLength":2000}}},"required":["ruleId","ruleVersion","runId","inputHash","reasonCodes","sourceRefs"],"additionalProperties":false},"premiumCents":{"type":"null"},"premiumStatus":{"type":"string","const":"pax_tariff_api_unavailable"},"eligibility":{"type":"string","enum":["human_review_required","ready_for_demo"]},"conditions":{"maxItems":30,"type":"array","items":{"type":"string","maxLength":4000}},"explanation":{"type":"string","maxLength":4000},"reasonDetails":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"text":{"type":"string","maxLength":4000}},"required":["code","text"],"additionalProperties":false}}},"required":["id","productId","productName","personId","needAmountCents","needPeriod","rule","premiumCents","premiumStatus","eligibility","conditions","explanation","reasonDetails"],"additionalProperties":false}},"alternatives":{"maxItems":20,"type":"array","items":{"type":"string","maxLength":4000}},"decision":{"type":"object","properties":{"ruleId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"ruleVersion":{"type":"string","maxLength":120},"runId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"inputHash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"reasonCodes":{"maxItems":100,"type":"array","items":{"type":"string","pattern":"^[A-Z0-9_]{1,100}$"}},"sourceRefs":{"maxItems":200,"type":"array","items":{"type":"string","maxLength":2000}}},"required":["ruleId","ruleVersion","runId","inputHash","reasonCodes","sourceRefs"],"additionalProperties":false},"locale":{"type":"string","enum":["de","fr","it","en"]},"statusLabel":{"type":"string","maxLength":4000},"disclaimer":{"type":"string","maxLength":4000},"documentsLanguageNotice":{"type":"string","maxLength":4000}},"required":["id","runId","profileVersion","createdAt","status","candidates","alternatives","decision","locale","statusLabel","disclaimer","documentsLanguageNotice"],"additionalProperties":false}},"comparisons":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"scope":{"type":"string","const":"valuation_snapshot_local_metrics"},"valuationDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"futureTimelineCompared":{"type":"boolean","const":false},"profileVersion":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"baselineRunId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"variantRunId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"baselineInputHash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"variantInputHash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"metrics":{"maxItems":500,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","maxLength":160},"personId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"currency":{"type":"string","const":"CHF"},"unit":{"type":"string","const":"cent"},"period":{"type":"string","enum":["month","year","once"]},"baselineValue":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"variantValue":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"delta":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"status":{"type":"string","enum":["valid","estimated","requires_review","needs_input","provider_error","unsupported","stale"]}},"required":["id","currency","unit","period","baselineValue","variantValue","delta","status"],"additionalProperties":false}}},"required":["id","scope","valuationDate","futureTimelineCompared","profileVersion","baselineRunId","variantRunId","baselineInputHash","variantInputHash","metrics"],"additionalProperties":false}},"portal":{"type":"object","properties":{"schemaVersion":{"type":"string","const":"1.0"},"caseId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"caseRevision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"profileVersion":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},{"type":"null"}]},"activeRunId":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},{"type":"null"}]},"reviewTasks":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"runId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"profileVersion":{"type":"integer","minimum":0,"maximum":9007199254740991},"reasons":{"maxItems":100,"type":"array","items":{"type":"string","pattern":"^[A-Z0-9_]{1,100}$"}},"status":{"type":"string","enum":["open","approved_for_demo","needs_information","declined"]},"decision":{"anyOf":[{"type":"object","properties":{"actorId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"acknowledgedReasonCodes":{"maxItems":100,"type":"array","items":{"type":"string","pattern":"^[A-Z0-9_]{1,100}$"}},"criteria":{"maxItems":5,"type":"array","items":{"type":"string","maxLength":100}}},"required":["actorId","at","acknowledgedReasonCodes","criteria"],"additionalProperties":false},{"type":"null"}]},"current":{"type":"boolean"},"statusLabel":{"type":"string","maxLength":4000}},"required":["id","runId","profileVersion","reasons","status","decision","current","statusLabel"],"additionalProperties":false}},"quotes":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"recommendationId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"profileVersion":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"runId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"expiresAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"documents":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["id","sha256"],"additionalProperties":false}},"configurations":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"productId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"productName":{"type":"string","maxLength":4000},"personId":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},{"type":"null"}]},"insuredChildId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"needAmountCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"needPeriod":{"type":"string","enum":["year","once"]},"rule":{"type":"object","properties":{"ruleId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"ruleVersion":{"type":"string","maxLength":120},"runId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"inputHash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"reasonCodes":{"maxItems":100,"type":"array","items":{"type":"string","pattern":"^[A-Z0-9_]{1,100}$"}},"sourceRefs":{"maxItems":200,"type":"array","items":{"type":"string","maxLength":2000}}},"required":["ruleId","ruleVersion","runId","inputHash","reasonCodes","sourceRefs"],"additionalProperties":false},"premiumCents":{"type":"null"},"premiumStatus":{"type":"string","const":"pax_tariff_api_unavailable"},"eligibility":{"type":"string","enum":["human_review_required","ready_for_demo"]},"conditions":{"maxItems":30,"type":"array","items":{"type":"string","maxLength":4000}}},"required":["id","productId","productName","personId","needAmountCents","needPeriod","rule","premiumCents","premiumStatus","eligibility","conditions"],"additionalProperties":false}},"demo":{"type":"boolean","const":true},"legalEffect":{"type":"string","const":"none"},"premiumCents":{"type":"null"},"premiumStatus":{"type":"string","const":"pax_tariff_api_unavailable"},"stale":{"type":"boolean"},"displayLabel":{"type":"string","maxLength":4000}},"required":["id","recommendationId","profileVersion","runId","createdAt","expiresAt","documents","configurations","demo","legalEffect","premiumCents","premiumStatus","stale","displayLabel"],"additionalProperties":false}},"applications":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"quoteId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"runId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"profileVersion":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"status":{"type":"string","enum":["draft","submitted","under_review","needs_information","accepted_for_demo","declined"]},"submittedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"decisionBy":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},{"type":"null"}]},"decisionAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"demo":{"type":"boolean","const":true},"coverageInForce":{"type":"boolean","const":false},"stale":{"type":"boolean"},"displayLabel":{"type":"string","maxLength":4000},"statusLabel":{"type":"string","maxLength":4000}},"required":["id","quoteId","runId","profileVersion","createdAt","status","submittedAt","decisionBy","decisionAt","demo","coverageInForce","stale","displayLabel","statusLabel"],"additionalProperties":false}},"policies":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"applicationId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"profileVersion":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"runId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"issuedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"demo":{"type":"boolean","const":true},"coverageInForce":{"type":"boolean","const":false},"legalEffect":{"type":"string","const":"none"},"label":{"type":"string","const":"DEMO – KEIN VERSICHERUNGSSCHUTZ"},"configuration":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"productId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"productName":{"type":"string","maxLength":4000},"personId":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},{"type":"null"}]},"insuredChildId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"needAmountCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"needPeriod":{"type":"string","enum":["year","once"]},"rule":{"type":"object","properties":{"ruleId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"ruleVersion":{"type":"string","maxLength":120},"runId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"inputHash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"reasonCodes":{"maxItems":100,"type":"array","items":{"type":"string","pattern":"^[A-Z0-9_]{1,100}$"}},"sourceRefs":{"maxItems":200,"type":"array","items":{"type":"string","maxLength":2000}}},"required":["ruleId","ruleVersion","runId","inputHash","reasonCodes","sourceRefs"],"additionalProperties":false},"premiumCents":{"type":"null"},"premiumStatus":{"type":"string","const":"pax_tariff_api_unavailable"},"eligibility":{"type":"string","enum":["human_review_required","ready_for_demo"]},"conditions":{"maxItems":30,"type":"array","items":{"type":"string","maxLength":4000}}},"required":["id","productId","productName","personId","needAmountCents","needPeriod","rule","premiumCents","premiumStatus","eligibility","conditions"],"additionalProperties":false}},"adviceContextChanged":{"type":"boolean"},"displayLabel":{"type":"string","maxLength":4000}},"required":["id","applicationId","profileVersion","runId","issuedAt","demo","coverageInForce","legalEffect","label","configuration","adviceContextChanged","displayLabel"],"additionalProperties":false}},"complianceSteps":{"minItems":4,"maxItems":4,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["identification","aml_check","health_declaration","signature"]},"status":{"type":"string","const":"required_in_real_integration"},"label":{"type":"string","maxLength":4000},"explanation":{"type":"string","maxLength":4000}},"required":["id","status","label","explanation"],"additionalProperties":false}},"realInsuranceCoverage":{"type":"boolean","const":false},"paxContractIntegrationAvailable":{"type":"boolean","const":false},"locale":{"type":"string","enum":["de","fr","it","en"]},"displayLabel":{"type":"string","maxLength":4000},"documentsLanguageNotice":{"type":"string","maxLength":4000}},"required":["schemaVersion","caseId","caseRevision","profileVersion","activeRunId","reviewTasks","quotes","applications","policies","complianceSteps","realInsuranceCoverage","paxContractIntegrationAvailable","locale","displayLabel","documentsLanguageNotice"],"additionalProperties":false},"coverageInForce":{"type":"boolean","const":false},"demo":{"type":"boolean","const":true},"locale":{"type":"string","enum":["de","fr","it","en"]},"presentation":{"anyOf":[{"type":"object","properties":{"locale":{"type":"string","enum":["de","fr","it","en"]},"statusLabel":{"type":"string","maxLength":4000},"metrics":{"maxItems":1000,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","maxLength":160},"personId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"label":{"type":"string","maxLength":4000},"valueCents":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"formatted":{"type":"string","maxLength":4000},"period":{"type":"string","enum":["month","year","once"]},"periodLabel":{"type":"string","maxLength":4000},"status":{"type":"string","enum":["valid","estimated","requires_review","needs_input","provider_error","unsupported","stale"]},"statusLabel":{"type":"string","maxLength":4000}},"required":["id","label","valueCents","formatted","period","periodLabel","status","statusLabel"],"additionalProperties":false}},"assumptions":{"maxItems":100,"type":"array","items":{"type":"string","maxLength":4000}},"reviewReasons":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"code":{"type":"string","maxLength":100},"text":{"type":"string","maxLength":4000}},"required":["code","text"],"additionalProperties":false}},"issues":{"maxItems":2000,"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"}},"required":["code","path","message"],"additionalProperties":false}},"legalDocumentsNotice":{"type":"string","maxLength":4000},"demoLabel":{"type":"string","maxLength":4000}},"required":["locale","statusLabel","metrics","assumptions","reviewReasons","issues","legalDocumentsNotice","demoLabel"],"additionalProperties":false},{"type":"null"}]},"providerProvenance":{"type":"array","items":{"type":"object","properties":{"operation":{"type":"string","enum":["saving3aLimits","ageLimits","riskBase","risk","retirementBase","retirement","income","budgetProposal","saving","consumption","searchLocation","location","incomeFortuneTax","saving3a","capitalTax","purchaseP2","taxBaseInfo","searchLocationGeo","estateGainFields","estateGainTax","inheritanceAll","inheritanceGroup","inheritanceBeneficiary","corporateEntityTax"]},"status":{"type":"string","enum":["valid","estimated","requires_review","needs_input","provider_error","unsupported","stale"]},"provenance":{"type":"object","properties":{"mode":{"type":"string","enum":["live","replay"]},"operationId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"inputHash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"capturedAt":{"type":"string","maxLength":50},"sourceRef":{"type":"string","maxLength":250}},"required":["mode","operationId","inputHash","capturedAt","sourceRef"],"additionalProperties":false},"issues":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"path":{"type":"string"},"message":{"type":"string"}},"required":["code","path","message"],"additionalProperties":false}}},"required":["operation","status","provenance","issues"],"additionalProperties":false}},"openQuestions":{"type":"array","items":{"type":"string"}},"decisions":{"type":"array","items":{"type":"object","properties":{"ruleId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"ruleVersion":{"type":"string","maxLength":120},"runId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"inputHash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"reasonCodes":{"maxItems":100,"type":"array","items":{"type":"string","pattern":"^[A-Z0-9_]{1,100}$"}},"sourceRefs":{"maxItems":200,"type":"array","items":{"type":"string","maxLength":2000}}},"required":["ruleId","ruleVersion","runId","inputHash","reasonCodes","sourceRefs"],"additionalProperties":false}}},"required":["schemaVersion","snapshotId","caseId","profileVersion","runId","calculationInputHash","draftPending","goals","financial","metrics","capitalAllocations","riskNeeds","timeline","pillarPicture","assumptions","reviewReasons","reviewTasks","recommendations","comparisons","portal","coverageInForce","demo","locale","presentation","providerProvenance","openQuestions","decisions"],"additionalProperties":false}},"required":["schemaVersion","snapshotId","customer","advisor"],"additionalProperties":false},"PortalDto":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"schemaVersion":{"type":"string","const":"1.0"},"caseId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"caseRevision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"profileVersion":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},{"type":"null"}]},"activeRunId":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},{"type":"null"}]},"reviewTasks":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"runId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"profileVersion":{"type":"integer","minimum":0,"maximum":9007199254740991},"reasons":{"maxItems":100,"type":"array","items":{"type":"string","pattern":"^[A-Z0-9_]{1,100}$"}},"status":{"type":"string","enum":["open","approved_for_demo","needs_information","declined"]},"decision":{"anyOf":[{"type":"object","properties":{"actorId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"acknowledgedReasonCodes":{"maxItems":100,"type":"array","items":{"type":"string","pattern":"^[A-Z0-9_]{1,100}$"}},"criteria":{"maxItems":5,"type":"array","items":{"type":"string","maxLength":100}}},"required":["actorId","at","acknowledgedReasonCodes","criteria"],"additionalProperties":false},{"type":"null"}]},"current":{"type":"boolean"},"statusLabel":{"type":"string","maxLength":4000}},"required":["id","runId","profileVersion","reasons","status","decision","current","statusLabel"],"additionalProperties":false}},"quotes":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"recommendationId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"profileVersion":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"runId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"expiresAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"documents":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["id","sha256"],"additionalProperties":false}},"configurations":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"productId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"productName":{"type":"string","maxLength":4000},"personId":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},{"type":"null"}]},"insuredChildId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"needAmountCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"needPeriod":{"type":"string","enum":["year","once"]},"rule":{"type":"object","properties":{"ruleId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"ruleVersion":{"type":"string","maxLength":120},"runId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"inputHash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"reasonCodes":{"maxItems":100,"type":"array","items":{"type":"string","pattern":"^[A-Z0-9_]{1,100}$"}},"sourceRefs":{"maxItems":200,"type":"array","items":{"type":"string","maxLength":2000}}},"required":["ruleId","ruleVersion","runId","inputHash","reasonCodes","sourceRefs"],"additionalProperties":false},"premiumCents":{"type":"null"},"premiumStatus":{"type":"string","const":"pax_tariff_api_unavailable"},"eligibility":{"type":"string","enum":["human_review_required","ready_for_demo"]},"conditions":{"maxItems":30,"type":"array","items":{"type":"string","maxLength":4000}}},"required":["id","productId","productName","personId","needAmountCents","needPeriod","rule","premiumCents","premiumStatus","eligibility","conditions"],"additionalProperties":false}},"demo":{"type":"boolean","const":true},"legalEffect":{"type":"string","const":"none"},"premiumCents":{"type":"null"},"premiumStatus":{"type":"string","const":"pax_tariff_api_unavailable"},"stale":{"type":"boolean"},"displayLabel":{"type":"string","maxLength":4000}},"required":["id","recommendationId","profileVersion","runId","createdAt","expiresAt","documents","configurations","demo","legalEffect","premiumCents","premiumStatus","stale","displayLabel"],"additionalProperties":false}},"applications":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"quoteId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"runId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"profileVersion":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"createdAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"status":{"type":"string","enum":["draft","submitted","under_review","needs_information","accepted_for_demo","declined"]},"submittedAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"decisionBy":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},{"type":"null"}]},"decisionAt":{"anyOf":[{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},{"type":"null"}]},"demo":{"type":"boolean","const":true},"coverageInForce":{"type":"boolean","const":false},"stale":{"type":"boolean"},"displayLabel":{"type":"string","maxLength":4000},"statusLabel":{"type":"string","maxLength":4000}},"required":["id","quoteId","runId","profileVersion","createdAt","status","submittedAt","decisionBy","decisionAt","demo","coverageInForce","stale","displayLabel","statusLabel"],"additionalProperties":false}},"policies":{"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"applicationId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"profileVersion":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"runId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"issuedAt":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"},"demo":{"type":"boolean","const":true},"coverageInForce":{"type":"boolean","const":false},"legalEffect":{"type":"string","const":"none"},"label":{"type":"string","const":"DEMO – KEIN VERSICHERUNGSSCHUTZ"},"configuration":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"productId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"productName":{"type":"string","maxLength":4000},"personId":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},{"type":"null"}]},"insuredChildId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"needAmountCents":{"type":"integer","minimum":0,"maximum":9007199254740991},"needPeriod":{"type":"string","enum":["year","once"]},"rule":{"type":"object","properties":{"ruleId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"ruleVersion":{"type":"string","maxLength":120},"runId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"inputHash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"reasonCodes":{"maxItems":100,"type":"array","items":{"type":"string","pattern":"^[A-Z0-9_]{1,100}$"}},"sourceRefs":{"maxItems":200,"type":"array","items":{"type":"string","maxLength":2000}}},"required":["ruleId","ruleVersion","runId","inputHash","reasonCodes","sourceRefs"],"additionalProperties":false},"premiumCents":{"type":"null"},"premiumStatus":{"type":"string","const":"pax_tariff_api_unavailable"},"eligibility":{"type":"string","enum":["human_review_required","ready_for_demo"]},"conditions":{"maxItems":30,"type":"array","items":{"type":"string","maxLength":4000}}},"required":["id","productId","productName","personId","needAmountCents","needPeriod","rule","premiumCents","premiumStatus","eligibility","conditions"],"additionalProperties":false}},"adviceContextChanged":{"type":"boolean"},"displayLabel":{"type":"string","maxLength":4000}},"required":["id","applicationId","profileVersion","runId","issuedAt","demo","coverageInForce","legalEffect","label","configuration","adviceContextChanged","displayLabel"],"additionalProperties":false}},"complianceSteps":{"minItems":4,"maxItems":4,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","enum":["identification","aml_check","health_declaration","signature"]},"status":{"type":"string","const":"required_in_real_integration"},"label":{"type":"string","maxLength":4000},"explanation":{"type":"string","maxLength":4000}},"required":["id","status","label","explanation"],"additionalProperties":false}},"realInsuranceCoverage":{"type":"boolean","const":false},"paxContractIntegrationAvailable":{"type":"boolean","const":false},"locale":{"type":"string","enum":["de","fr","it","en"]},"displayLabel":{"type":"string","maxLength":4000},"documentsLanguageNotice":{"type":"string","maxLength":4000}},"required":["schemaVersion","caseId","caseRevision","profileVersion","activeRunId","reviewTasks","quotes","applications","policies","complianceSteps","realInsuranceCoverage","paxContractIntegrationAvailable","locale","displayLabel","documentsLanguageNotice"],"additionalProperties":false},"post__api_cases__caseId__voice_sessions":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"messageId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"expectedCaseRevision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"provider":{"type":"string","enum":["gpt-live","elevenlabs"]},"locale":{"type":"string","enum":["de","fr","it","en"]},"dataClassification":{"type":"string","const":"synthetic"},"noticeVersion":{"type":"string","const":"voice-synthetic-v1"},"allowExternalVoiceProcessing":{"type":"boolean","const":true},"sdp":{"type":"string","minLength":4,"maxLength":100000},"resumeFrom":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"conversationSettings":{"type":"object","properties":{"skillIds":{"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":100}},"timeBudgetMinutes":{"type":"integer","minimum":5,"maximum":60},"priorities":{"maxItems":8,"type":"array","items":{"type":"string","enum":["full_name","birth_date","postal_code","sex","smoker","civil_status","relationship_since_year","partner_birth_year","partner_annual_gross_income_chf","children_count","children_birth_years","expecting_child","employment_type","occupation","employment_rate_percent","annual_gross_income_chf","first_working_year_switzerland","has_pension_fund","has_pillar_3a","pillar_3a_annual_contribution_chf","existing_life_insurance","free_assets_chf","housing","monthly_housing_cost_chf","debts_chf","goals","desired_retirement_age","home_purchase_year","risk_appetite","net_income_band","net_worth_band","annual_saving_capacity_band","one_time_investment_band","investment_goal","investment_horizon","securities_experience","reaction_to_30_percent_loss"]}}},"additionalProperties":false}},"required":["messageId","expectedCaseRevision","provider","locale","dataClassification","noticeVersion","allowExternalVoiceProcessing"],"additionalProperties":false},"post__api_cases__caseId__voice_sessions__voiceSessionId__turns":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"speaker":{"type":"string","enum":["customer","agent"]},"log":{"type":"object","properties":{"schemaVersion":{"type":"string","const":"1.0"},"messageId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"caseId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"correlationId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"turnId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"source":{"type":"string","enum":["voice","text"]},"locale":{"type":"string","enum":["de","fr","it","en"]},"text":{"type":"string","minLength":1,"maxLength":8000},"transcriptStatus":{"type":"string","const":"final"},"dataClassification":{"type":"string","const":"synthetic"},"expectedCaseRevision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["schemaVersion","messageId","caseId","correlationId","turnId","source","locale","text","transcriptStatus","dataClassification"],"additionalProperties":false}},"required":["speaker","log"],"additionalProperties":false},"post__api_cases__caseId__voice_agent_turns":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"conversationId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,120}$"},"turns":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"object","properties":{"messageId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,120}$"},"speaker":{"type":"string","enum":["customer","agent"]},"text":{"type":"string","minLength":1,"maxLength":4000},"at":{"type":"string","format":"date-time","pattern":"^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z))$"}},"required":["messageId","speaker","text","at"],"additionalProperties":false}}},"required":["conversationId","turns"],"additionalProperties":false},"post__api_cases__caseId__voice_agent_observations":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"messageId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,120}$"},"conversationId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,120}$"},"expectedCaseRevision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"expectedProfileVersion":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},{"type":"null"}]},"basisDraftHash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"turns":{"minItems":1,"maxItems":24,"type":"array","items":{"type":"object","properties":{"messageId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,120}$"},"turnId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,120}$"},"text":{"type":"string","minLength":1,"maxLength":4000}},"required":["messageId","turnId","text"],"additionalProperties":false}},"observations":{"minItems":1,"maxItems":50,"type":"array","items":{"type":"object","properties":{"fieldId":{"type":"string","enum":["full_name","birth_date","postal_code","sex","smoker","civil_status","relationship_since_year","partner_birth_year","partner_annual_gross_income_chf","children_count","children_birth_years","expecting_child","employment_type","occupation","employment_rate_percent","annual_gross_income_chf","first_working_year_switzerland","has_pension_fund","has_pillar_3a","pillar_3a_annual_contribution_chf","existing_life_insurance","free_assets_chf","housing","monthly_housing_cost_chf","debts_chf","goals","desired_retirement_age","home_purchase_year","risk_appetite","net_income_band","net_worth_band","annual_saving_capacity_band","one_time_investment_band","investment_goal","investment_horizon","securities_experience","reaction_to_30_percent_loss"]},"personId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"sourceMessageId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"quote":{"type":"string","minLength":1,"maxLength":500},"value":{"anyOf":[{"type":"string","maxLength":500},{"type":"number"},{"type":"boolean"},{"type":"null"}]},"precision":{"type":"string","enum":["exact","approximate","range","unknown"]},"unit":{"type":"string","enum":["CHF","percent","year","boolean","enum","text"]},"period":{"anyOf":[{"type":"string","enum":["month","year","once"]},{"type":"null"}]},"basis":{"anyOf":[{"type":"string","enum":["gross","net_after_income_tax","net_before_income_tax","not_applicable"]},{"type":"null"}]}},"required":["fieldId","sourceMessageId","quote","value","precision","unit","period","basis"],"additionalProperties":false}},"supersedesBatchIds":{"default":[],"maxItems":20,"type":"array","items":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,120}$"}}},"required":["messageId","conversationId","expectedCaseRevision","expectedProfileVersion","basisDraftHash","turns","observations","supersedesBatchIds"],"additionalProperties":false},"post__api_cases__caseId__voice_sessions__voiceSessionId__close":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"reason":{"type":"string","enum":["customer_closed","voice_switch","inactive"]}},"required":["reason"],"additionalProperties":false},"post__api_cases__caseId__extraction_consent":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"expectedCaseRevision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"noticeVersion":{"type":"string","const":"extraction-synthetic-v1"},"noticeHash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"dataClassification":{"type":"string","const":"synthetic"},"allowSyntheticModelExtraction":{"type":"boolean","const":true}},"required":["expectedCaseRevision","noticeVersion","noticeHash","dataClassification","allowSyntheticModelExtraction"],"additionalProperties":false},"post__api_cases__caseId__extraction_consent_revoke":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"expectedCaseRevision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["expectedCaseRevision"],"additionalProperties":false},"post__api_sessions":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"accessCode":{"type":"string","minLength":1,"maxLength":200}},"required":["accessCode"],"additionalProperties":false},"post__api_cases":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"locale":{"type":"string","enum":["de","fr","it","en"]},"timeBudgetMinutes":{"type":"integer","minimum":3,"maximum":120},"noticeVersion":{"type":"string","const":"lifemap-synthetic-v2"},"dataClassification":{"type":"string","const":"synthetic"}},"required":["locale","timeBudgetMinutes","noticeVersion","dataClassification"],"additionalProperties":false},"patch__api_cases__caseId__draft":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"financial":{"anyOf":[{"type":"object","properties":{"schemaVersion":{"type":"string","const":"1.0"},"caseId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"caseRevision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"profileVersion":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"dataClassification":{"type":"string","enum":["synthetic","customer"]},"valuationDate":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"priceBasis":{"type":"string","const":"nominal"},"persons":{"minItems":1,"maxItems":2,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"birthYear":{"type":"integer","minimum":1900,"maximum":2100},"employmentRateBps":{"type":"integer","minimum":0,"maximum":10000},"income":{"type":"object","properties":{"value":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"currency":{"type":"string","const":"CHF"},"unit":{"type":"string","const":"cent"},"period":{"type":"string","enum":["month","year","once"]},"origin":{"type":"string","enum":["user","document","api","estimate","synthetic"]},"confirmation":{"type":"string","enum":["proposed","confirmed"]},"review":{"type":"string","enum":["unreviewed","reviewed","rejected"]},"sourceRef":{"type":"string","minLength":1,"maxLength":240}},"required":["value","currency","unit","period","origin","confirmation","review","sourceRef"],"additionalProperties":false},"incomeBasis":{"type":"string","enum":["gross","net_before_income_tax","net_after_income_tax"]}},"required":["id","birthYear","employmentRateBps","income","incomeBasis"],"additionalProperties":false}},"expenses":{"maxItems":80,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"category":{"type":"string","enum":["housing","living","tax","provision","debt","reserve","other"]},"amount":{"type":"object","properties":{"value":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"currency":{"type":"string","const":"CHF"},"unit":{"type":"string","const":"cent"},"period":{"type":"string","enum":["month","year","once"]},"origin":{"type":"string","enum":["user","document","api","estimate","synthetic"]},"confirmation":{"type":"string","enum":["proposed","confirmed"]},"review":{"type":"string","enum":["unreviewed","reviewed","rejected"]},"sourceRef":{"type":"string","minLength":1,"maxLength":240}},"required":["value","currency","unit","period","origin","confirmation","review","sourceRef"],"additionalProperties":false},"includedInExpenseId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"}},"required":["id","category","amount"],"additionalProperties":false}},"safetyBuffer":{"type":"object","properties":{"value":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"currency":{"type":"string","const":"CHF"},"unit":{"type":"string","const":"cent"},"period":{"type":"string","enum":["month","year","once"]},"origin":{"type":"string","enum":["user","document","api","estimate","synthetic"]},"confirmation":{"type":"string","enum":["proposed","confirmed"]},"review":{"type":"string","enum":["unreviewed","reviewed","rejected"]},"sourceRef":{"type":"string","minLength":1,"maxLength":240}},"required":["value","currency","unit","period","origin","confirmation","review","sourceRef"],"additionalProperties":false},"assets":{"maxItems":40,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"amount":{"type":"object","properties":{"value":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"currency":{"type":"string","const":"CHF"},"unit":{"type":"string","const":"cent"},"period":{"type":"string","enum":["month","year","once"]},"origin":{"type":"string","enum":["user","document","api","estimate","synthetic"]},"confirmation":{"type":"string","enum":["proposed","confirmed"]},"review":{"type":"string","enum":["unreviewed","reviewed","rejected"]},"sourceRef":{"type":"string","minLength":1,"maxLength":240}},"required":["value","currency","unit","period","origin","confirmation","review","sourceRef"],"additionalProperties":false},"ownerPersonIds":{"minItems":1,"maxItems":2,"type":"array","items":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"}},"liquidity":{"type":"string","enum":["free","restricted"]},"availableFrom":{"type":"string","pattern":"^\\d{4}-\\d{2}-\\d{2}$"},"pillar":{"type":"string","enum":["2","3","none"]},"allocations":{"maxItems":30,"type":"array","items":{"type":"object","properties":{"goalId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"amountCents":{"type":"integer","minimum":0,"maximum":1000000000000}},"required":["goalId","amountCents"],"additionalProperties":false}}},"required":["id","amount","liquidity","availableFrom","pillar","allocations"],"additionalProperties":false}},"assetsConfirmed":{"type":"boolean"},"provisions":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"personId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"pillar":{"type":"string","enum":["1","2","3"]},"event":{"type":"string","enum":["retirement","disability_illness","disability_accident","death_illness","death_accident"]},"amount":{"type":"object","properties":{"value":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"currency":{"type":"string","const":"CHF"},"unit":{"type":"string","const":"cent"},"period":{"type":"string","enum":["month","year","once"]},"origin":{"type":"string","enum":["user","document","api","estimate","synthetic"]},"confirmation":{"type":"string","enum":["proposed","confirmed"]},"review":{"type":"string","enum":["unreviewed","reviewed","rejected"]},"sourceRef":{"type":"string","minLength":1,"maxLength":240}},"required":["value","currency","unit","period","origin","confirmation","review","sourceRef"],"additionalProperties":false}},"required":["id","personId","pillar","event","amount"],"additionalProperties":false}}},"required":["schemaVersion","caseId","caseRevision","profileVersion","dataClassification","valuationDate","priceBasis","persons","expenses","safetyBuffer","assets","assetsConfirmed","provisions"],"additionalProperties":false},{"type":"null"}]},"insurance":{"anyOf":[{"type":"object","properties":{"relationship":{"type":"string","enum":["unknown","single","married","cohabiting","registered_partnership"]},"relationshipSinceYear":{"anyOf":[{"type":"integer","minimum":1900,"maximum":2100},{"type":"null"}]},"sharedChildren":{"anyOf":[{"type":"integer","minimum":0,"maximum":30},{"type":"null"}]},"taxLocationId":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},{"type":"null"}]},"persons":{"maxItems":2,"type":"array","items":{"type":"object","properties":{"personId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"providerSex":{"anyOf":[{"anyOf":[{"type":"number","const":1},{"type":"number","const":2}]},{"type":"null"}]},"grossAnnualIncomeCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"withPillar2":{"type":["boolean","null"]},"pillar2Risk":{"type":"object","properties":{"disabilityAnnualCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"disabilityChildAnnualCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"survivorAnnualCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"orphanAnnualCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]}},"required":["disabilityAnnualCents","disabilityChildAnnualCents","survivorAnnualCents","orphanAnnualCents"],"additionalProperties":false},"retirementPensionAnnualCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"currentPillar2CapitalCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"desiredWorkStopAge":{"anyOf":[{"type":"integer","minimum":18,"maximum":100},{"type":"null"}]},"disabilityNeedAnnualCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"deathNeedAnnualCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"protectionTermMonths":{"anyOf":[{"type":"integer","minimum":1,"maximum":600},{"type":"null"}]},"existingDeathCapitalCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"deathOneOffCostsCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"debtPayoffCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"debtTreatment":{"anyOf":[{"type":"string","enum":["included_in_income_need","pay_off_separately"]},{"type":"null"}]},"deathNeedExcludesRepaidDebtService":{"type":"boolean"},"personalAffordableAnnualPremiumCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]}},"required":["personId","providerSex","grossAnnualIncomeCents","withPillar2","pillar2Risk","retirementPensionAnnualCents","currentPillar2CapitalCents","desiredWorkStopAge","disabilityNeedAnnualCents","deathNeedAnnualCents","protectionTermMonths","existingDeathCapitalCents","deathOneOffCostsCents","debtPayoffCents","debtTreatment","deathNeedExcludesRepaidDebtService","personalAffordableAnnualPremiumCents"],"additionalProperties":false}},"children":{"maxItems":30,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"birthYear":{"type":"integer","minimum":1900,"maximum":2100},"kind":{"type":"string","enum":["shared","sole_custody","goal_only","expected"]},"parentPersonIds":{"maxItems":2,"type":"array","items":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"}},"supportUntilMonth":{"anyOf":[{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"},{"type":"null"}]},"goalId":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},{"type":"null"}]}},"required":["id","birthYear","kind","parentPersonIds","supportUntilMonth","goalId"],"additionalProperties":false}},"debts":{"maxItems":30,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"ownerPersonIds":{"minItems":1,"maxItems":2,"type":"array","items":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"}},"balanceCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"annualServiceCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"kind":{"type":"string","enum":["mortgage","consumer","education","other"]}},"required":["id","ownerPersonIds","balanceCents","annualServiceCents","kind"],"additionalProperties":false}},"debtsConfirmed":{"type":"boolean"},"existingPrivateRiskBenefitsConfirmed":{"type":"boolean"},"confession1":{"anyOf":[{"anyOf":[{"type":"number","const":1},{"type":"number","const":2},{"type":"number","const":3},{"type":"number","const":4},{"type":"number","const":9}]},{"type":"null"}]},"confession2":{"anyOf":[{"anyOf":[{"type":"number","const":1},{"type":"number","const":2},{"type":"number","const":3},{"type":"number","const":4},{"type":"number","const":9}]},{"type":"null"}]},"taxableFortuneCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"retirementNeedAnnualCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"annualReturnBps":{"anyOf":[{"type":"integer","minimum":-5000,"maximum":2000},{"type":"null"}]},"retirementHorizonAge":{"anyOf":[{"type":"integer","minimum":50,"maximum":120},{"type":"null"}]},"annualSavingCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"investmentKnowledgeConfirmed":{"type":"boolean"},"annualSavingIsAdditional":{"type":"boolean","const":true},"existingAnnualRetirementSavingCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"existingAnnualPillar3aContributionCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"riskAppetite":{"type":"string","enum":["unknown","low","medium","high"]},"riskCapitalStrategy":{"anyOf":[{"type":"string","enum":["use_free_assets_first","preserve_assets_for_other_goals"]},{"type":"null"}]}},"required":["relationship","relationshipSinceYear","sharedChildren","taxLocationId","persons","children","debts","debtsConfirmed","existingPrivateRiskBenefitsConfirmed","confession1","confession2","taxableFortuneCents","retirementNeedAnnualCents","annualReturnBps","retirementHorizonAge","annualSavingCents","investmentKnowledgeConfirmed","annualSavingIsAdditional","existingAnnualRetirementSavingCents","existingAnnualPillar3aContributionCents","riskAppetite","riskCapitalStrategy"],"additionalProperties":false},{"type":"null"}]},"goals":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"kind":{"type":"string","enum":["family","home","retirement","child_protection","income_protection","survivor_protection"]},"targetMonth":{"anyOf":[{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"},{"type":"null"}]},"priority":{"type":"integer","minimum":1,"maximum":5},"targetCapitalCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]}},"required":["id","kind","targetMonth","priority","targetCapitalCents"],"additionalProperties":false}},"reviewFlags":{"maxItems":8,"type":"array","items":{"type":"string","enum":["user_requested","complex_beneficiaries","cross_border","self_employed","medical_review_needed","investment_knowledge_missing","high_impact"]}},"expectedCaseRevision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["expectedCaseRevision"],"additionalProperties":false},"post__api_demo_start":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"locale":{"default":"de","type":"string","enum":["de","fr","it","en"]},"fresh":{"default":false,"type":"boolean"},"empty":{"default":false,"type":"boolean"}},"required":["locale","fresh","empty"],"additionalProperties":false},"post__api_cases__caseId__suitability":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"expectedCaseRevision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"productId":{"type":"string","enum":["pax_fondsstar","pax_lifestar","pax_payout"]},"personId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"answers":{"type":"object","properties":{"annualPremiumCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"singleInvestmentCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":9007199254740991},{"type":"null"}]},"netIncome":{"type":"string","enum":["under_75k","75k_150k","150k_250k","over_250k"]},"netWorth":{"type":"string","enum":["under_10k","10k_50k","50k_150k","150k_300k","over_300k"]},"annualSavingCapacity":{"type":"string","enum":["under_1k","1k_3k","3k_7k","over_7k"]},"singleInvestmentCapacity":{"type":"string","enum":["under_10k","10k_50k","50k_150k","150k_300k","over_300k"]},"investmentGoal":{"type":"string","enum":["low_risk","moderate_risk","high_risk"]},"horizon":{"type":"string","enum":["under_10_years","10_to_15_years","over_15_years"]},"securitiesExperience":{"type":"string","enum":["none","knowledge_only","experience","extensive"]},"lossReaction":{"type":"string","enum":["sell_all","sell_part","hold","buy_more"]},"guaranteedPercent":{"type":"integer","minimum":0,"maximum":100},"selectedStrategy":{"type":"string","enum":["conservative","balanced","dynamic"]}},"required":["annualPremiumCents","singleInvestmentCents","netIncome","netWorth","annualSavingCapacity","singleInvestmentCapacity","investmentGoal","horizon","securitiesExperience","lossReaction","guaranteedPercent","selectedStrategy"],"additionalProperties":false},"answersConfirmedByCustomer":{"type":"boolean","const":true}},"required":["expectedCaseRevision","productId","personId","answers","answersConfirmedByCustomer"],"additionalProperties":false},"post__api_cases__caseId__demo_profile":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"persona":{"type":"string","enum":["mueller"]},"expectedCaseRevision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["persona","expectedCaseRevision"],"additionalProperties":false},"post__api_cases__caseId__standard_analyses":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"expectedProfileVersion":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["expectedProfileVersion"],"additionalProperties":false},"post__api_cases__caseId__confirmations":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"expectedCaseRevision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"confirmProfileAndAssumptions":{"type":"boolean","const":true},"allowSyntheticCalculatorTransfer":{"type":"boolean","const":true},"noticeVersion":{"type":"string","const":"lifemap-synthetic-v2"}},"required":["expectedCaseRevision","confirmProfileAndAssumptions","allowSyntheticCalculatorTransfer","noticeVersion"],"additionalProperties":false},"post__api_cases__caseId__calculations":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"expectedProfileVersion":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"scenarioVersionId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"scenario":{"anyOf":[{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"baseline"}},"required":["kind"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"family"},"personId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"newEmploymentRateBps":{"type":"integer","minimum":0,"maximum":10000},"additionalMonthlyCostCents":{"type":"integer","minimum":0,"maximum":1000000000000},"linearIncomeAssumptionConfirmed":{"type":"boolean","const":true}},"required":["kind","personId","newEmploymentRateBps","additionalMonthlyCostCents","linearIncomeAssumptionConfirmed"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"home"},"purchasePriceCents":{"type":"integer","minimum":0,"maximum":1000000000000},"equityRateBps":{"type":"integer","minimum":0,"maximum":10000},"purchaseCostsCents":{"type":"integer","minimum":0,"maximum":1000000000000},"reserveCents":{"type":"integer","minimum":0,"maximum":1000000000000},"annualInterestBps":{"type":"integer","minimum":0,"maximum":2000},"annualMaintenanceBps":{"type":"integer","minimum":0,"maximum":2000},"annualAmortizationCents":{"type":"integer","minimum":0,"maximum":1000000000000},"assumptionsConfirmed":{"type":"boolean","const":true}},"required":["kind","purchasePriceCents","equityRateBps","purchaseCostsCents","reserveCents","annualInterestBps","annualMaintenanceBps","annualAmortizationCents","assumptionsConfirmed"],"additionalProperties":false}]},{"type":"object","properties":{"kind":{"type":"string","const":"retirement"},"goalId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"startMonth":{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"},"endMonth":{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"},"incomeBasis":{"type":"string","const":"net_after_income_tax"},"monthlyNeedCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"monthlySavingCents":{"type":"integer","minimum":0,"maximum":1000000000000},"savingLiquidity":{"type":"string","enum":["free","retirement_restricted"]},"savingsReleaseMonth":{"anyOf":[{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"},{"type":"null"}]},"annualReturnBps":{"type":"integer","minimum":-5000,"maximum":2000},"releaseAssumptions":{"maxItems":40,"type":"array","items":{"type":"object","properties":{"assetId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"availableMonth":{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"}},"required":["assetId","availableMonth"],"additionalProperties":false}},"persons":{"minItems":1,"maxItems":2,"type":"array","items":{"type":"object","properties":{"personId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"workEndsMonth":{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"},"pensionStartsMonth":{"type":"string","pattern":"^\\d{4}-(0[1-9]|1[0-2])$"},"pillar1MonthlyCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"pillar2MonthlyCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]},"pillar3MonthlyCents":{"anyOf":[{"type":"integer","minimum":0,"maximum":1000000000000},{"type":"null"}]}},"required":["personId","workEndsMonth","pensionStartsMonth","pillar1MonthlyCents","pillar2MonthlyCents","pillar3MonthlyCents"],"additionalProperties":false}},"assumptionsConfirmed":{"type":"boolean","const":true},"priceBasis":{"type":"string","const":"nominal"}},"required":["kind","goalId","startMonth","endMonth","incomeBasis","monthlyNeedCents","monthlySavingCents","savingLiquidity","savingsReleaseMonth","annualReturnBps","releaseAssumptions","persons","assumptionsConfirmed","priceBasis"],"additionalProperties":false}]},"expectedCaseRevision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["expectedProfileVersion","scenarioVersionId","scenario","expectedCaseRevision"],"additionalProperties":false},"post__api_cases__caseId__active_analysis":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"runId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"}},"required":["runId"],"additionalProperties":false},"post__api_cases__caseId__comparisons":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"baselineRunId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"variantRunId":{"type":"string","format":"uuid","pattern":"^([0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[1-8][0-9a-fA-F]{3}-[89abAB][0-9a-fA-F]{3}-[0-9a-fA-F]{12}|00000000-0000-0000-0000-000000000000|ffffffff-ffff-ffff-ffff-ffffffffffff)$"},"expectedProfileVersion":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["baselineRunId","variantRunId","expectedProfileVersion"],"additionalProperties":false},"post__api_cases__caseId__locations":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"search":{"type":"string","minLength":2,"maxLength":60},"allowSyntheticCalculatorTransfer":{"type":"boolean","const":true}},"required":["search","allowSyntheticCalculatorTransfer"],"additionalProperties":false},"post__api_cases__caseId__calculator_estimates":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"expectedCaseRevision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"noticeVersion":{"type":"string","const":"lifemap-synthetic-v2"},"allowSyntheticCalculatorTransfer":{"type":"boolean","const":true},"operations":{"minItems":1,"maxItems":6,"type":"array","items":{"type":"string","enum":["income","budgetProposal","incomeFortuneTax","saving3a","capitalTax","purchaseP2"]}},"saving3a":{"type":"object","properties":{"years":{"type":"integer","minimum":1,"maximum":100},"initialCents":{"type":"integer","minimum":0,"maximum":1000000000000},"annualCents":{"type":"integer","minimum":0,"maximum":1000000000000}},"required":["years","initialCents","annualCents"],"additionalProperties":false},"capitalTax":{"type":"object","properties":{"paymentCents":{"type":"integer","minimum":0,"maximum":1000000000000},"paymentAge":{"type":"integer","minimum":18,"maximum":100}},"required":["paymentCents","paymentAge"],"additionalProperties":false},"purchaseP2":{"type":"object","properties":{"investmentCents":{"type":"integer","minimum":0,"maximum":1000000000000},"years":{"type":"integer","minimum":1,"maximum":50},"conversionBps":{"type":"integer","minimum":0,"maximum":2000}},"required":["investmentCents","years","conversionBps"],"additionalProperties":false}},"required":["expectedCaseRevision","noticeVersion","allowSyntheticCalculatorTransfer","operations"],"additionalProperties":false},"post__api_cases__caseId__calculator_tools":{"$schema":"https://json-schema.org/draft/2020-12/schema","oneOf":[{"type":"object","properties":{"expectedCaseRevision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"noticeVersion":{"type":"string","const":"lifemap-synthetic-v2"},"allowSyntheticCalculatorTransfer":{"type":"boolean","const":true},"requestUnits":{"type":"string","const":"CHF_CENTS"},"operation":{"type":"string","const":"taxBaseInfo"},"request":{"type":"object","properties":{},"additionalProperties":false}},"required":["expectedCaseRevision","noticeVersion","allowSyntheticCalculatorTransfer","requestUnits","operation","request"],"additionalProperties":false},{"type":"object","properties":{"expectedCaseRevision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"noticeVersion":{"type":"string","const":"lifemap-synthetic-v2"},"allowSyntheticCalculatorTransfer":{"type":"boolean","const":true},"requestUnits":{"type":"string","const":"CHF_CENTS"},"operation":{"type":"string","const":"searchLocationGeo"},"request":{"type":"object","properties":{"Latitude":{"type":"number","minimum":-90,"maximum":90},"Longitude":{"type":"number","minimum":-180,"maximum":180},"RadiusKm":{"type":"number","exclusiveMinimum":0,"maximum":10000}},"required":["Latitude","Longitude","RadiusKm"],"additionalProperties":false}},"required":["expectedCaseRevision","noticeVersion","allowSyntheticCalculatorTransfer","requestUnits","operation","request"],"additionalProperties":false},{"type":"object","properties":{"expectedCaseRevision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"noticeVersion":{"type":"string","const":"lifemap-synthetic-v2"},"allowSyntheticCalculatorTransfer":{"type":"boolean","const":true},"requestUnits":{"type":"string","const":"CHF_CENTS"},"operation":{"type":"string","const":"estateGainFields"},"request":{"type":"object","properties":{"TaxLocationID":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["TaxLocationID"],"additionalProperties":false}},"required":["expectedCaseRevision","noticeVersion","allowSyntheticCalculatorTransfer","requestUnits","operation","request"],"additionalProperties":false},{"type":"object","properties":{"expectedCaseRevision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"noticeVersion":{"type":"string","const":"lifemap-synthetic-v2"},"allowSyntheticCalculatorTransfer":{"type":"boolean","const":true},"requestUnits":{"type":"string","const":"CHF_CENTS"},"operation":{"type":"string","const":"estateGainTax"},"request":{"type":"object","properties":{"TaxLocationID":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"Relationship":{"type":"integer","minimum":1,"maximum":4},"Confession1":{"anyOf":[{"type":"number","const":1},{"type":"number","const":2},{"type":"number","const":3},{"type":"number","const":4},{"type":"number","const":9}]},"Confession2":{"anyOf":[{"type":"number","const":1},{"type":"number","const":2},{"type":"number","const":3},{"type":"number","const":4},{"type":"number","const":9}]},"ConfessionPart1":{"type":"integer","minimum":0,"maximum":100},"TaxableGain":{"type":"integer","minimum":-1000000000000,"maximum":1000000000000},"OwnerYears":{"type":"integer","minimum":0,"maximum":300},"OwnerMonths":{"type":"integer","minimum":0,"maximum":11},"Revenues":{"type":"integer","minimum":0,"maximum":1000000000000},"FirstCosts":{"type":"integer","minimum":0,"maximum":1000000000000},"BuildingInvest":{"type":"integer","minimum":0,"maximum":1000000000000},"HasBuilding":{"type":"boolean"},"SelfInhabited":{"type":"boolean"},"SelfInhabYears":{"type":"integer","minimum":0,"maximum":300},"HasDiscount":{"type":"boolean"}},"required":["TaxLocationID","Relationship","Confession1"],"additionalProperties":false}},"required":["expectedCaseRevision","noticeVersion","allowSyntheticCalculatorTransfer","requestUnits","operation","request"],"additionalProperties":false},{"type":"object","properties":{"expectedCaseRevision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"noticeVersion":{"type":"string","const":"lifemap-synthetic-v2"},"allowSyntheticCalculatorTransfer":{"type":"boolean","const":true},"requestUnits":{"type":"string","const":"CHF_CENTS"},"operation":{"type":"string","const":"inheritanceAll"},"request":{"type":"object","properties":{"TaxLocationID":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"Amount":{"type":"integer","minimum":0,"maximum":1000000000000}},"required":["TaxLocationID","Amount"],"additionalProperties":false}},"required":["expectedCaseRevision","noticeVersion","allowSyntheticCalculatorTransfer","requestUnits","operation","request"],"additionalProperties":false},{"type":"object","properties":{"expectedCaseRevision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"noticeVersion":{"type":"string","const":"lifemap-synthetic-v2"},"allowSyntheticCalculatorTransfer":{"type":"boolean","const":true},"requestUnits":{"type":"string","const":"CHF_CENTS"},"operation":{"type":"string","const":"inheritanceGroup"},"request":{"type":"object","properties":{"TaxLocationID":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"Amount":{"type":"integer","minimum":0,"maximum":1000000000000},"Group":{"anyOf":[{"type":"number","const":100},{"type":"number","const":200},{"type":"number","const":300},{"type":"number","const":400},{"type":"number","const":500},{"type":"number","const":600},{"type":"number","const":700},{"type":"number","const":800}]}},"required":["TaxLocationID","Amount","Group"],"additionalProperties":false}},"required":["expectedCaseRevision","noticeVersion","allowSyntheticCalculatorTransfer","requestUnits","operation","request"],"additionalProperties":false},{"type":"object","properties":{"expectedCaseRevision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"noticeVersion":{"type":"string","const":"lifemap-synthetic-v2"},"allowSyntheticCalculatorTransfer":{"type":"boolean","const":true},"requestUnits":{"type":"string","const":"CHF_CENTS"},"operation":{"type":"string","const":"inheritanceBeneficiary"},"request":{"type":"object","properties":{"TaxLocationID":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"Amount":{"type":"integer","minimum":0,"maximum":1000000000000},"Beneficiary":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["TaxLocationID","Amount","Beneficiary"],"additionalProperties":false}},"required":["expectedCaseRevision","noticeVersion","allowSyntheticCalculatorTransfer","requestUnits","operation","request"],"additionalProperties":false},{"type":"object","properties":{"expectedCaseRevision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"noticeVersion":{"type":"string","const":"lifemap-synthetic-v2"},"allowSyntheticCalculatorTransfer":{"type":"boolean","const":true},"requestUnits":{"type":"string","const":"CHF_CENTS"},"operation":{"type":"string","const":"corporateEntityTax"},"request":{"type":"object","properties":{"TaxLocationID":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"ProfitBeforeTaxes":{"type":"boolean"},"TaxableProfitConf":{"type":"integer","minimum":0,"maximum":1000000000000},"TaxableProfitCanton":{"type":"integer","minimum":0,"maximum":1000000000000},"TaxableCapital":{"type":"integer","minimum":0,"maximum":1000000000000},"ShareCapital":{"type":"integer","minimum":0,"maximum":1000000000000},"NetProfitParticipationConf":{"type":"integer","minimum":0,"maximum":1000000000000},"NetProfitParticipationCanton":{"type":"integer","minimum":0,"maximum":1000000000000},"InnovationsDeduction":{"type":"integer","minimum":0,"maximum":1000000000000},"NotionalInterestDeduction":{"type":"integer","minimum":0,"maximum":1000000000000},"TotalAssets":{"type":"integer","minimum":0,"maximum":1000000000000},"TotalBeneficiaryParticipation":{"type":"integer","minimum":0,"maximum":1000000000000}},"required":["TaxLocationID","ProfitBeforeTaxes","TaxableProfitConf","TaxableProfitCanton","TaxableCapital","ShareCapital","NetProfitParticipationConf","NetProfitParticipationCanton","InnovationsDeduction","NotionalInterestDeduction","TotalAssets","TotalBeneficiaryParticipation"],"additionalProperties":false}},"required":["expectedCaseRevision","noticeVersion","allowSyntheticCalculatorTransfer","requestUnits","operation","request"],"additionalProperties":false}]},"post__api_cases__caseId__recommendations":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":false},"post__api_cases__caseId__reviews":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":false},"post__api_cases__caseId__review_decisions":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"runId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"decision":{"type":"string","enum":["approved_for_demo","needs_information","declined"]},"acknowledgedReasonCodes":{"maxItems":100,"type":"array","items":{"type":"string","pattern":"^[A-Z0-9_]{1,100}$"}},"criteria":{"minItems":1,"maxItems":5,"type":"array","items":{"type":"string","enum":["data_sources_checked","need_and_units_checked","beneficiaries_checked","personal_affordability_checked","demo_only_understood"]}}},"required":["runId","decision","acknowledgedReasonCodes","criteria"],"additionalProperties":false},"post__api_cases__caseId__demo_quotes":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"expectedCaseRevision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"idempotencyKey":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"selectedCandidateIds":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"}},"acknowledgedDocumentIds":{"maxItems":20,"type":"array","items":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"}},"recommendationId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"quoteId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"applicationId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"demoAcknowledged":{"type":"boolean","const":true},"informationDocumentsAcknowledged":{"type":"boolean"}},"required":["expectedCaseRevision","idempotencyKey","demoAcknowledged","informationDocumentsAcknowledged"],"additionalProperties":false},"post__api_cases__caseId__demo_applications":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"expectedCaseRevision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"idempotencyKey":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"selectedCandidateIds":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"}},"acknowledgedDocumentIds":{"maxItems":20,"type":"array","items":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"}},"recommendationId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"quoteId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"applicationId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"demoAcknowledged":{"type":"boolean","const":true},"informationDocumentsAcknowledged":{"type":"boolean"}},"required":["expectedCaseRevision","idempotencyKey","demoAcknowledged","informationDocumentsAcknowledged"],"additionalProperties":false},"post__api_cases__caseId__demo_applications_submit":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"expectedCaseRevision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"idempotencyKey":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"selectedCandidateIds":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"}},"acknowledgedDocumentIds":{"maxItems":20,"type":"array","items":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"}},"recommendationId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"quoteId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"applicationId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"demoAcknowledged":{"type":"boolean","const":true},"informationDocumentsAcknowledged":{"type":"boolean"}},"required":["expectedCaseRevision","idempotencyKey","demoAcknowledged","informationDocumentsAcknowledged"],"additionalProperties":false},"post__api_cases__caseId__demo_applications_start_review":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"expectedCaseRevision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"idempotencyKey":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"selectedCandidateIds":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"}},"acknowledgedDocumentIds":{"maxItems":20,"type":"array","items":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"}},"recommendationId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"quoteId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"applicationId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"demoAcknowledged":{"type":"boolean","const":true},"informationDocumentsAcknowledged":{"type":"boolean"}},"required":["expectedCaseRevision","idempotencyKey","demoAcknowledged","informationDocumentsAcknowledged"],"additionalProperties":false},"post__api_cases__caseId__demo_applications_decisions":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"expectedCaseRevision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"applicationId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"idempotencyKey":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"decision":{"type":"string","enum":["accepted_for_demo","needs_information","declined"]},"demoChecks":{"type":"object","properties":{"identity":{"type":"string","const":"demo_only"},"health":{"type":"string","const":"not_underwritten"},"aml":{"type":"string","const":"not_cleared_for_real_business"},"information":{"type":"boolean","const":true}},"required":["identity","health","aml","information"],"additionalProperties":false}},"required":["expectedCaseRevision","applicationId","idempotencyKey","decision","demoChecks"],"additionalProperties":false},"post__api_cases__caseId__demo_policies":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"expectedCaseRevision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"idempotencyKey":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"selectedCandidateIds":{"minItems":1,"maxItems":10,"type":"array","items":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"}},"acknowledgedDocumentIds":{"maxItems":20,"type":"array","items":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"}},"recommendationId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"quoteId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"applicationId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"demoAcknowledged":{"type":"boolean","const":true},"informationDocumentsAcknowledged":{"type":"boolean"}},"required":["expectedCaseRevision","idempotencyKey","demoAcknowledged","informationDocumentsAcknowledged"],"additionalProperties":false},"post__api_cases__caseId__agent_access":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{},"additionalProperties":false},"post__api_cases__caseId__customer_confirmations":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"expectedCaseRevision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"target":{"oneOf":[{"type":"object","properties":{"kind":{"type":"string","const":"accept_batch"},"batchId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"}},"required":["kind","batchId"],"additionalProperties":false},{"type":"object","properties":{"kind":{"type":"string","const":"confirm_profile"}},"required":["kind"],"additionalProperties":false}]},"channel":{"type":"string","enum":["voice","screen"]},"questionTurnId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"questionReplyId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"}},"required":["expectedCaseRevision","target","channel","questionTurnId","questionReplyId"],"additionalProperties":false},"post__api_cases__caseId__customer_confirmations__confirmationId__presented":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"questionId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"questionHash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"questionTurnId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"questionReplyId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"expectedCaseRevision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"reviewDisplayed":{"type":"boolean","const":true},"profileAndAssumptionsDisplayed":{"type":"boolean"},"privacyNoticeDisplayed":{"type":"boolean"},"playback":{"type":"object","properties":{"playbackId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"event":{"type":"string","const":"ended"}},"required":["playbackId","event"],"additionalProperties":false}},"required":["questionId","questionHash","questionTurnId","questionReplyId","expectedCaseRevision","reviewDisplayed","profileAndAssumptionsDisplayed","privacyNoticeDisplayed"],"additionalProperties":false},"post__api_cases__caseId__customer_confirmations__confirmationId__answer":{"$schema":"https://json-schema.org/draft/2020-12/schema","oneOf":[{"type":"object","properties":{"questionId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"questionHash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"questionTurnId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"questionReplyId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"channel":{"type":"string","const":"voice"},"expectedCaseRevision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"voiceLog":{"type":"object","properties":{"schemaVersion":{"type":"string","const":"1.0"},"messageId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"caseId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"correlationId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"turnId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"source":{"type":"string","enum":["voice","text"]},"locale":{"type":"string","enum":["de","fr","it","en"]},"text":{"type":"string","minLength":1,"maxLength":8000},"transcriptStatus":{"type":"string","const":"final"},"dataClassification":{"type":"string","const":"synthetic"},"expectedCaseRevision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["schemaVersion","messageId","caseId","correlationId","turnId","source","locale","text","transcriptStatus","dataClassification"],"additionalProperties":false}},"required":["questionId","questionHash","questionTurnId","questionReplyId","channel","expectedCaseRevision","voiceLog"],"additionalProperties":false},{"type":"object","properties":{"questionId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"questionHash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"questionTurnId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"questionReplyId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"channel":{"type":"string","const":"screen"},"expectedCaseRevision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"decision":{"type":"string","enum":["accept","reject"]},"answerMessageId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"}},"required":["questionId","questionHash","questionTurnId","questionReplyId","channel","expectedCaseRevision","decision","answerMessageId"],"additionalProperties":false}]},"post__api_cases__caseId__customer_confirmations__confirmationId__cancel":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"expectedCaseRevision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"reason":{"type":"string","enum":["new_question","cancelled_by_customer"]}},"required":["expectedCaseRevision","reason"],"additionalProperties":false},"post__api_cases__caseId__handover":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"action":{"type":"string","enum":["request","resume"]},"messageId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"expectedCaseRevision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"source":{"default":"ui","type":"string","enum":["ui","voice"]}},"required":["action","messageId","expectedCaseRevision","source"],"additionalProperties":false},"post__api_cases__caseId__advisor_proposal_batches":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"messageId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"source":{"type":"object","properties":{"messageId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"turnId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"sourceRef":{"type":"string","minLength":1,"maxLength":240}},"required":["messageId","turnId","sourceRef"],"additionalProperties":false},"expectedCaseRevision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"expectedProfileVersion":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},{"type":"null"}]},"basisDraftHash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"changes":{"maxItems":50,"type":"array","items":{"type":"object","properties":{"path":{"type":"string","minLength":1,"maxLength":200},"value":{"$ref":"#/components/schemas/post__api_cases__caseId__advisor_proposal_batches/$defs/__schema0"},"personId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"}},"required":["path","value"],"additionalProperties":false}},"ambiguities":{"default":[],"maxItems":20,"type":"array","items":{"type":"object","properties":{"path":{"type":"string","minLength":1,"maxLength":200},"personId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"question":{"type":"string","minLength":1,"maxLength":1000},"source":{"type":"object","properties":{"messageId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"turnId":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"},"sourceRef":{"type":"string","minLength":1,"maxLength":240}},"required":["messageId","turnId","sourceRef"],"additionalProperties":false}},"required":["path","question","source"],"additionalProperties":false}},"supersedesBatchIds":{"default":[],"maxItems":20,"type":"array","items":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"}},"supersedesProposalIds":{"default":[],"maxItems":20,"type":"array","items":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"}},"resolvesAmbiguityIds":{"default":[],"maxItems":20,"type":"array","items":{"type":"string","pattern":"^[A-Za-z0-9_-]{1,80}$"}}},"required":["messageId","source","expectedCaseRevision","expectedProfileVersion","basisDraftHash","changes","ambiguities","supersedesBatchIds","supersedesProposalIds","resolvesAmbiguityIds"],"additionalProperties":false,"$defs":{"__schema0":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"null"},{"type":"array","items":{"$ref":"#/components/schemas/post__api_cases__caseId__advisor_proposal_batches/$defs/__schema0"}},{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"$ref":"#/components/schemas/post__api_cases__caseId__advisor_proposal_batches/$defs/__schema0"}}]}}},"post__api_cases__caseId__advisor_proposal_batches__batchId__accept":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"expectedCaseRevision":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"accept":{"type":"boolean","const":true}},"required":["expectedCaseRevision","accept"],"additionalProperties":false},"patch__api_cases__caseId__preferences":{"$schema":"https://json-schema.org/draft/2020-12/schema","type":"object","properties":{"timeBudgetMinutes":{"type":"integer","minimum":3,"maximum":120},"locale":{"type":"string","enum":["de","fr","it","en"]}},"additionalProperties":false}},"securitySchemes":{"bearerAuth":{"type":"http","scheme":"bearer"},"cookieAuth":{"type":"apiKey","in":"cookie","name":"pax_session"}}},"paths":{"/api/voice/privacy":{"get":{"summary":"Read separate synthetic voice processing notice in DE/FR/IT/EN","security":[],"parameters":[{"in":"query","name":"locale","required":false,"schema":{"type":"string","enum":["de","fr","it","en"]}}],"responses":{"200":{"description":"Success"},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Session required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Role/CSRF forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found or unauthorized case","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Version, review or journey conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Missing/unsupported domain data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/cases/{caseId}/voice/sessions":{"get":{"summary":"Read own case voice session metadata","security":[{"bearerAuth":[]},{"cookieAuth":[]}],"parameters":[{"in":"path","name":"caseId","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"caseId":{"type":"string"},"sessions":{"type":"array","items":{"$ref":"#/components/schemas/VoiceSession"}}},"required":["caseId","sessions"],"additionalProperties":false}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Session required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Role/CSRF forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found or unauthorized case","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Version, review or journey conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Missing/unsupported domain data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}},"post":{"summary":"Customer opens consented voice session; short-lived connection replay only","security":[{"bearerAuth":[]},{"cookieAuth":[]}],"parameters":[{"in":"path","name":"caseId","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/post__api_cases__caseId__voice_sessions"}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceSessionStart"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Session required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Role/CSRF forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found or unauthorized case","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Version, review or journey conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Missing/unsupported domain data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/cases/{caseId}/voice/sessions/{voiceSessionId}/transcript":{"get":{"summary":"Read encrypted finalized transcript; scoped agent or owner only","security":[{"bearerAuth":[]},{"cookieAuth":[]}],"parameters":[{"in":"path","name":"caseId","required":true,"schema":{"type":"string"}},{"in":"path","name":"voiceSessionId","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceTranscript"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Session required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Role/CSRF forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found or unauthorized case","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Version, review or journey conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Missing/unsupported domain data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/cases/{caseId}/voice/sessions/{voiceSessionId}/turns":{"post":{"summary":"Customer client records a finalized customer/agent turn; never confirms facts","security":[{"bearerAuth":[]},{"cookieAuth":[]}],"parameters":[{"in":"path","name":"caseId","required":true,"schema":{"type":"string"}},{"in":"path","name":"voiceSessionId","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/post__api_cases__caseId__voice_sessions__voiceSessionId__turns"}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"type":"object","properties":{"voiceSession":{"$ref":"#/components/schemas/VoiceSession"},"replayed":{"type":"boolean"}},"required":["voiceSession","replayed"],"additionalProperties":false}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Session required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Role/CSRF forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found or unauthorized case","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Version, review or journey conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Missing/unsupported domain data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/cases/{caseId}/voice/agent-recommendation":{"get":{"summary":"Owner or scoped agent reads the rule-based recommendation of the active run, product names in the case language","security":[{"bearerAuth":[]},{"cookieAuth":[]}],"parameters":[{"in":"path","name":"caseId","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success"},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Session required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Role/CSRF forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found or unauthorized case","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Version, review or journey conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Missing/unsupported domain data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/cases/{caseId}/voice/agent-turns":{"get":{"summary":"Owner or scoped agent reads the call history recorded by a separate voice agent","security":[{"bearerAuth":[]},{"cookieAuth":[]}],"parameters":[{"in":"path","name":"caseId","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success"},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Session required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Role/CSRF forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found or unauthorized case","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Version, review or journey conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Missing/unsupported domain data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}},"post":{"summary":"Scoped agent of a separate voice agent records final turns for the call history; changes no fact and no case revision","security":[{"bearerAuth":[]},{"cookieAuth":[]}],"parameters":[{"in":"path","name":"caseId","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/post__api_cases__caseId__voice_agent_turns"}}}},"responses":{"201":{"description":"Success"},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Session required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Role/CSRF forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found or unauthorized case","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Version, review or journey conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Missing/unsupported domain data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/cases/{caseId}/voice/agent-observations":{"post":{"summary":"Scoped agent of a separately running voice agent maps quoted final customer turns into one atomic proposal batch","security":[{"bearerAuth":[]},{"cookieAuth":[]}],"parameters":[{"in":"path","name":"caseId","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/post__api_cases__caseId__voice_agent_observations"}}}},"responses":{"201":{"description":"Success"},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Session required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Role/CSRF forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found or unauthorized case","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Version, review or journey conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Missing/unsupported domain data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/cases/{caseId}/voice/sessions/{voiceSessionId}/close":{"post":{"summary":"Customer closes voice only; human handover remains a separate command","security":[{"bearerAuth":[]},{"cookieAuth":[]}],"parameters":[{"in":"path","name":"caseId","required":true,"schema":{"type":"string"}},{"in":"path","name":"voiceSessionId","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/post__api_cases__caseId__voice_sessions__voiceSessionId__close"}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/VoiceSession"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Session required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Role/CSRF forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found or unauthorized case","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Version, review or journey conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Missing/unsupported domain data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/extraction/privacy":{"get":{"summary":"Read separate synthetic OpenAI intake-extraction notice and its content hash in DE/FR/IT/EN","security":[{"bearerAuth":[]},{"cookieAuth":[]}],"parameters":[],"responses":{"200":{"description":"Success"},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Session required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Role/CSRF forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found or unauthorized case","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Version, review or journey conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Missing/unsupported domain data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/cases/{caseId}/extraction/consent":{"get":{"summary":"Read whether the current extraction notice is accepted; owner or scoped agent","security":[{"bearerAuth":[]},{"cookieAuth":[]}],"parameters":[{"in":"path","name":"caseId","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success"},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Session required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Role/CSRF forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found or unauthorized case","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Version, review or journey conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Missing/unsupported domain data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}},"post":{"summary":"Customer accepts the current extraction notice hash; never authorizes full-case or real-data transfer","security":[{"bearerAuth":[]},{"cookieAuth":[]}],"parameters":[{"in":"path","name":"caseId","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/post__api_cases__caseId__extraction_consent"}}}},"responses":{"201":{"description":"Success"},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Session required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Role/CSRF forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found or unauthorized case","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Version, review or journey conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Missing/unsupported domain data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/cases/{caseId}/extraction/consent/revoke":{"post":{"summary":"Customer withdraws extraction consent; allowed during human handover","security":[{"bearerAuth":[]},{"cookieAuth":[]}],"parameters":[{"in":"path","name":"caseId","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/post__api_cases__caseId__extraction_consent_revoke"}}}},"responses":{"201":{"description":"Success"},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Session required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Role/CSRF forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found or unauthorized case","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Version, review or journey conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Missing/unsupported domain data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/privacy":{"get":{"summary":"Read processing notice","security":[],"parameters":[{"in":"query","name":"locale","required":false,"schema":{"type":"string","enum":["de","fr","it","en"]}}],"responses":{"200":{"description":"Success"},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Session required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Role/CSRF forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found or unauthorized case","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Version, review or journey conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Missing/unsupported domain data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/status":{"get":{"summary":"Read runtime capabilities","security":[],"parameters":[],"responses":{"200":{"description":"Success"},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Session required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Role/CSRF forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found or unauthorized case","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Version, review or journey conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Missing/unsupported domain data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/translations":{"get":{"summary":"Read complete DE/FR/IT/EN customer presentation catalog; locale query or Accept-Language","security":[],"parameters":[{"in":"query","name":"locale","required":false,"schema":{"type":"string","enum":["de","fr","it","en"]}}],"responses":{"200":{"description":"Success"},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Session required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Role/CSRF forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found or unauthorized case","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Version, review or journey conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Missing/unsupported domain data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/openapi.json":{"get":{"summary":"Read API specification","security":[],"parameters":[],"responses":{"200":{"description":"Success"},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Session required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Role/CSRF forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found or unauthorized case","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Version, review or journey conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Missing/unsupported domain data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/sessions":{"post":{"summary":"Open a customer or reviewer session","security":[],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/post__api_sessions"}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionResponse"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Session required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Role/CSRF forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found or unauthorized case","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Version, review or journey conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Missing/unsupported domain data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/sessions/current":{"delete":{"summary":"Revoke current session and close its event streams","security":[{"bearerAuth":[]},{"cookieAuth":[]}],"parameters":[],"responses":{"200":{"description":"Success"},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Session required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Role/CSRF forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found or unauthorized case","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Version, review or journey conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Missing/unsupported domain data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/cases":{"post":{"summary":"Create synthetic life-insurance case","security":[{"bearerAuth":[]},{"cookieAuth":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/post__api_cases"}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InsuranceCaseDto"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Session required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Role/CSRF forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found or unauthorized case","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Version, review or journey conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Missing/unsupported domain data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/cases/{caseId}":{"get":{"summary":"Read own case","security":[{"bearerAuth":[]},{"cookieAuth":[]}],"parameters":[{"in":"path","name":"caseId","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InsuranceCaseDto"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Session required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Role/CSRF forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found or unauthorized case","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Version, review or journey conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Missing/unsupported domain data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}},"delete":{"summary":"Delete own demo case, linked feedback and agent sessions","security":[{"bearerAuth":[]},{"cookieAuth":[]}],"parameters":[{"in":"path","name":"caseId","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success"},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Session required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Role/CSRF forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found or unauthorized case","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Version, review or journey conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Missing/unsupported domain data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/cases/{caseId}/draft":{"patch":{"summary":"Update unconfirmed draft","security":[{"bearerAuth":[]},{"cookieAuth":[]}],"parameters":[{"in":"path","name":"caseId","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/patch__api_cases__caseId__draft"}}}},"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InsuranceCaseDto"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Session required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Role/CSRF forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found or unauthorized case","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Version, review or journey conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Missing/unsupported domain data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/demo/start":{"post":{"summary":"Local demo only (PAX_DEMO_START=1): shared customer session with the confirmed, calculated Mueller persona; no access code","security":[{"bearerAuth":[]},{"cookieAuth":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/post__api_demo_start"}}}},"responses":{"201":{"description":"Success"},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Session required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Role/CSRF forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found or unauthorized case","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Version, review or journey conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Missing/unsupported domain data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/cases/{caseId}/suitability":{"get":{"summary":"Read the suitability pre-checks (Pax form 0054/PMPV/03.2026, not binding) and the qualified products","security":[{"bearerAuth":[]},{"cookieAuth":[]}],"parameters":[{"in":"path","name":"caseId","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success"},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Session required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Role/CSRF forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found or unauthorized case","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Version, review or journey conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Missing/unsupported domain data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}},"post":{"summary":"Customer answers the suitability pre-check for one qualified product; fund-linked products cannot be quoted without a suitable result","security":[{"bearerAuth":[]},{"cookieAuth":[]}],"parameters":[{"in":"path","name":"caseId","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/post__api_cases__caseId__suitability"}}}},"responses":{"201":{"description":"Success"},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Session required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Role/CSRF forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found or unauthorized case","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Version, review or journey conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Missing/unsupported domain data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/cases/{caseId}/demo-review":{"post":{"summary":"Demo start only (PAX_DEMO_START=1): the demo reviewer account approves the open review of the active analysis and accepts a submitted demo application, then issues the demo policy; simulated, labelled as such","security":[{"bearerAuth":[]},{"cookieAuth":[]}],"parameters":[{"in":"path","name":"caseId","required":true,"schema":{"type":"string"}}],"responses":{"201":{"description":"Success"},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Session required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Role/CSRF forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found or unauthorized case","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Version, review or journey conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Missing/unsupported domain data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/cases/{caseId}/demo-accept":{"post":{"summary":"Demo start only (PAX_DEMO_START=1): accept the open proposal packages, confirm the profile and recalculate the standard scenarios","security":[{"bearerAuth":[]},{"cookieAuth":[]}],"parameters":[{"in":"path","name":"caseId","required":true,"schema":{"type":"string"}}],"responses":{"201":{"description":"Success"},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Session required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Role/CSRF forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found or unauthorized case","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Version, review or journey conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Missing/unsupported domain data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/cases/{caseId}/demo-profile":{"post":{"summary":"Load a synthetic Pax persona as unconfirmed draft; confirmation still required","security":[{"bearerAuth":[]},{"cookieAuth":[]}],"parameters":[{"in":"path","name":"caseId","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/post__api_cases__caseId__demo_profile"}}}},"responses":{"201":{"description":"Success"},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Session required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Role/CSRF forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found or unauthorized case","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Version, review or journey conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Missing/unsupported domain data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/cases/{caseId}/standard-analyses":{"post":{"summary":"Run the standard family/home/retirement/baseline scenarios of the confirmed profile, then derive the recommendation","security":[{"bearerAuth":[]},{"cookieAuth":[]}],"parameters":[{"in":"path","name":"caseId","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/post__api_cases__caseId__standard_analyses"}}}},"responses":{"201":{"description":"Success"},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Session required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Role/CSRF forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found or unauthorized case","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Version, review or journey conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Missing/unsupported domain data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/cases/{caseId}/confirmations":{"post":{"summary":"Confirm profile and calculator transfer","security":[{"bearerAuth":[]},{"cookieAuth":[]}],"parameters":[{"in":"path","name":"caseId","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/post__api_cases__caseId__confirmations"}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InsuranceCaseDto"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Session required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Role/CSRF forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found or unauthorized case","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Version, review or journey conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Missing/unsupported domain data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/cases/{caseId}/questions":{"get":{"summary":"Get mandatory needs-first follow-ups","security":[{"bearerAuth":[]},{"cookieAuth":[]}],"parameters":[{"in":"path","name":"caseId","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/QuestionsResponse"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Session required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Role/CSRF forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found or unauthorized case","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Version, review or journey conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Missing/unsupported domain data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/cases/{caseId}/calculations":{"post":{"summary":"Run real life-insurance calculations and scenarios","security":[{"bearerAuth":[]},{"cookieAuth":[]}],"parameters":[{"in":"path","name":"caseId","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/post__api_cases__caseId__calculations"}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LifeAnalysisResponse"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Session required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Role/CSRF forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found or unauthorized case","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Version, review or journey conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Missing/unsupported domain data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/cases/{caseId}/active-analysis":{"post":{"summary":"Select saved analysis without recomputing","security":[{"bearerAuth":[]},{"cookieAuth":[]}],"parameters":[{"in":"path","name":"caseId","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/post__api_cases__caseId__active_analysis"}}}},"responses":{"201":{"description":"Success"},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Session required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Role/CSRF forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found or unauthorized case","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Version, review or journey conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Missing/unsupported domain data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/cases/{caseId}/comparisons":{"post":{"summary":"Compare compatible stored runs without provider calls","security":[{"bearerAuth":[]},{"cookieAuth":[]}],"parameters":[{"in":"path","name":"caseId","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/post__api_cases__caseId__comparisons"}}}},"responses":{"201":{"description":"Success"},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Session required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Role/CSRF forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found or unauthorized case","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Version, review or journey conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Missing/unsupported domain data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/cases/{caseId}/locations":{"post":{"summary":"Search calculator location with explicit synthetic-transfer permission","security":[{"bearerAuth":[]},{"cookieAuth":[]}],"parameters":[{"in":"path","name":"caseId","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/post__api_cases__caseId__locations"}}}},"responses":{"201":{"description":"Success"},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Session required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Role/CSRF forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found or unauthorized case","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Version, review or journey conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Missing/unsupported domain data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/cases/{caseId}/calculator-estimates":{"post":{"summary":"Request explicit, uncommitted calculator estimates","security":[{"bearerAuth":[]},{"cookieAuth":[]}],"parameters":[{"in":"path","name":"caseId","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/post__api_cases__caseId__calculator_estimates"}}}},"responses":{"201":{"description":"Success"},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Session required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Role/CSRF forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found or unauthorized case","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Version, review or journey conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Missing/unsupported domain data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/cases/{caseId}/calculator-tools":{"post":{"summary":"Execute one isolated additional calculator; monetary request fields are integer CHF cents","security":[{"bearerAuth":[]},{"cookieAuth":[]}],"parameters":[{"in":"path","name":"caseId","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/post__api_cases__caseId__calculator_tools"}}}},"responses":{"201":{"description":"Success"},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Session required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Role/CSRF forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found or unauthorized case","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Version, review or journey conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Missing/unsupported domain data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/cases/{caseId}/recommendations":{"post":{"summary":"Derive needs-based product-family candidates","security":[{"bearerAuth":[]},{"cookieAuth":[]}],"parameters":[{"in":"path","name":"caseId","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/post__api_cases__caseId__recommendations"}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RecommendationPresentation"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Session required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Role/CSRF forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found or unauthorized case","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Version, review or journey conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Missing/unsupported domain data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/cases/{caseId}/reviews":{"post":{"summary":"Request human review","security":[{"bearerAuth":[]},{"cookieAuth":[]}],"parameters":[{"in":"path","name":"caseId","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/post__api_cases__caseId__reviews"}}}},"responses":{"201":{"description":"Success"},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Session required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Role/CSRF forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found or unauthorized case","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Version, review or journey conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Missing/unsupported domain data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/cases/{caseId}/review-decisions":{"post":{"summary":"Record reviewer-only advice decision","security":[{"bearerAuth":[]},{"cookieAuth":[]}],"parameters":[{"in":"path","name":"caseId","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/post__api_cases__caseId__review_decisions"}}}},"responses":{"201":{"description":"Success"},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Session required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Role/CSRF forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found or unauthorized case","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Version, review or journey conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Missing/unsupported domain data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/cases/{caseId}/demo-quotes":{"post":{"summary":"Create explicitly selected demo configuration","security":[{"bearerAuth":[]},{"cookieAuth":[]}],"parameters":[{"in":"path","name":"caseId","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/post__api_cases__caseId__demo_quotes"}}}},"responses":{"201":{"description":"Success"},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Session required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Role/CSRF forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found or unauthorized case","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Version, review or journey conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Missing/unsupported domain data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/cases/{caseId}/demo-applications":{"post":{"summary":"Create demo application with document acknowledgements","security":[{"bearerAuth":[]},{"cookieAuth":[]}],"parameters":[{"in":"path","name":"caseId","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/post__api_cases__caseId__demo_applications"}}}},"responses":{"201":{"description":"Success"},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Session required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Role/CSRF forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found or unauthorized case","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Version, review or journey conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Missing/unsupported domain data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/cases/{caseId}/demo-applications/submit":{"post":{"summary":"Idempotently submit demo application","security":[{"bearerAuth":[]},{"cookieAuth":[]}],"parameters":[{"in":"path","name":"caseId","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/post__api_cases__caseId__demo_applications_submit"}}}},"responses":{"201":{"description":"Success"},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Session required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Role/CSRF forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found or unauthorized case","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Version, review or journey conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Missing/unsupported domain data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/cases/{caseId}/demo-applications/start-review":{"post":{"summary":"Reviewer starts application review","security":[{"bearerAuth":[]},{"cookieAuth":[]}],"parameters":[{"in":"path","name":"caseId","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/post__api_cases__caseId__demo_applications_start_review"}}}},"responses":{"201":{"description":"Success"},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Session required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Role/CSRF forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found or unauthorized case","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Version, review or journey conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Missing/unsupported domain data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/cases/{caseId}/demo-applications/decisions":{"post":{"summary":"Reviewer-only demo underwriting decision","security":[{"bearerAuth":[]},{"cookieAuth":[]}],"parameters":[{"in":"path","name":"caseId","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/post__api_cases__caseId__demo_applications_decisions"}}}},"responses":{"201":{"description":"Success"},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Session required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Role/CSRF forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found or unauthorized case","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Version, review or journey conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Missing/unsupported domain data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/cases/{caseId}/demo-policies":{"post":{"summary":"Issue non-binding demo artifact after acceptance","security":[{"bearerAuth":[]},{"cookieAuth":[]}],"parameters":[{"in":"path","name":"caseId","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/post__api_cases__caseId__demo_policies"}}}},"responses":{"201":{"description":"Success"},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Session required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Role/CSRF forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found or unauthorized case","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Version, review or journey conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Missing/unsupported domain data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/cases/{caseId}/portal":{"get":{"summary":"Read persisted application and demo policy","security":[{"bearerAuth":[]},{"cookieAuth":[]}],"parameters":[{"in":"path","name":"caseId","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PortalDto"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Session required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Role/CSRF forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found or unauthorized case","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Version, review or journey conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Missing/unsupported domain data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/cases/{caseId}/summaries":{"get":{"summary":"Read customer/advisor projections of one snapshot","security":[{"bearerAuth":[]},{"cookieAuth":[]}],"parameters":[{"in":"path","name":"caseId","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SummaryBundle"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Session required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Role/CSRF forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found or unauthorized case","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Version, review or journey conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Missing/unsupported domain data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/cases/{caseId}/dossier":{"get":{"summary":"Export JSON or escaped print HTML","security":[{"bearerAuth":[]},{"cookieAuth":[]}],"parameters":[{"in":"path","name":"caseId","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success"},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Session required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Role/CSRF forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found or unauthorized case","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Version, review or journey conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Missing/unsupported domain data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/cases/{caseId}/advisor/context":{"get":{"summary":"Read minimal current conversational context","security":[{"bearerAuth":[]},{"cookieAuth":[]}],"parameters":[{"in":"path","name":"caseId","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdvisorContext"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Session required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Role/CSRF forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found or unauthorized case","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Version, review or journey conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Missing/unsupported domain data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/cases/{caseId}/agent-access":{"post":{"summary":"Create case-scoped 15-minute agent token; keep server-side","security":[{"bearerAuth":[]},{"cookieAuth":[]}],"parameters":[{"in":"path","name":"caseId","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/post__api_cases__caseId__agent_access"}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentAccessResponse"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Session required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Role/CSRF forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found or unauthorized case","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Version, review or journey conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Missing/unsupported domain data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/cases/{caseId}/customer-confirmations":{"post":{"summary":"Customer requests a single-use, session-bound question for exactly one draft/profile action","security":[{"bearerAuth":[]},{"cookieAuth":[]}],"parameters":[{"in":"path","name":"caseId","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/post__api_cases__caseId__customer_confirmations"}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerConfirmation"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Session required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Role/CSRF forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found or unauthorized case","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Version, review or journey conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Missing/unsupported domain data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/cases/{caseId}/customer-confirmations/current":{"get":{"summary":"Read most recent confirmation for this customer session","security":[{"bearerAuth":[]},{"cookieAuth":[]}],"parameters":[{"in":"path","name":"caseId","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CurrentCustomerConfirmation"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Session required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Role/CSRF forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found or unauthorized case","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Version, review or journey conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Missing/unsupported domain data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/cases/{caseId}/customer-confirmations/{confirmationId}/presented":{"post":{"summary":"Customer UI attests review display and completed voice playback","security":[{"bearerAuth":[]},{"cookieAuth":[]}],"parameters":[{"in":"path","name":"caseId","required":true,"schema":{"type":"string"}},{"in":"path","name":"confirmationId","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/post__api_cases__caseId__customer_confirmations__confirmationId__presented"}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerConfirmation"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Session required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Role/CSRF forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found or unauthorized case","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Version, review or journey conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Missing/unsupported domain data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/cases/{caseId}/customer-confirmations/{confirmationId}/answer":{"post":{"summary":"Consume a final, bound voice/screen answer in the same transaction as its one authorized action","security":[{"bearerAuth":[]},{"cookieAuth":[]}],"parameters":[{"in":"path","name":"caseId","required":true,"schema":{"type":"string"}},{"in":"path","name":"confirmationId","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/post__api_cases__caseId__customer_confirmations__confirmationId__answer"}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConfirmationOutcome"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Session required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Role/CSRF forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found or unauthorized case","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Version, review or journey conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Missing/unsupported domain data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/cases/{caseId}/customer-confirmations/{confirmationId}/cancel":{"post":{"summary":"Customer cancels an unanswered question, including on a new conversation question","security":[{"bearerAuth":[]},{"cookieAuth":[]}],"parameters":[{"in":"path","name":"caseId","required":true,"schema":{"type":"string"}},{"in":"path","name":"confirmationId","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/post__api_cases__caseId__customer_confirmations__confirmationId__cancel"}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CustomerConfirmation"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Session required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Role/CSRF forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found or unauthorized case","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Version, review or journey conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Missing/unsupported domain data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/cases/{caseId}/handover":{"get":{"summary":"Read persisted human-advisor intent, stop flag and contact data; does not dial or book","security":[{"bearerAuth":[]},{"cookieAuth":[]}],"parameters":[{"in":"path","name":"caseId","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HumanHandoverView"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Session required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Role/CSRF forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found or unauthorized case","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Version, review or journey conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Missing/unsupported domain data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}},"post":{"summary":"Customer requests human advice or explicitly resumes digital advice; revision guarded and idempotent","security":[{"bearerAuth":[]},{"cookieAuth":[]}],"parameters":[{"in":"path","name":"caseId","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/post__api_cases__caseId__handover"}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/HumanHandoverCommandResponse"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Session required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Role/CSRF forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found or unauthorized case","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Version, review or journey conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Missing/unsupported domain data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/cases/{caseId}/advisor/extractor-context":{"get":{"summary":"Read authorized current extraction state; no history, credentials or external-AI permission","security":[{"bearerAuth":[]},{"cookieAuth":[]}],"parameters":[{"in":"path","name":"caseId","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExtractorContext"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Session required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Role/CSRF forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found or unauthorized case","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Version, review or journey conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Missing/unsupported domain data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/cases/{caseId}/advisor/proposal-batches":{"post":{"summary":"Propose a source-bound atomic change set and ambiguities; agent only","security":[{"bearerAuth":[]},{"cookieAuth":[]}],"parameters":[{"in":"path","name":"caseId","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/post__api_cases__caseId__advisor_proposal_batches"}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProposalBatch"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Session required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Role/CSRF forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found or unauthorized case","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Version, review or journey conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Missing/unsupported domain data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/cases/{caseId}/advisor/proposal-batches/{batchId}/accept":{"post":{"summary":"Customer accepts all changes into draft; profile confirmation still required","security":[{"bearerAuth":[]},{"cookieAuth":[]}],"parameters":[{"in":"path","name":"caseId","required":true,"schema":{"type":"string"}},{"in":"path","name":"batchId","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/post__api_cases__caseId__advisor_proposal_batches__batchId__accept"}}}},"responses":{"201":{"description":"Success","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProposalAcceptance"}}}},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Session required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Role/CSRF forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found or unauthorized case","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Version, review or journey conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Missing/unsupported domain data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/cases/{caseId}/advisor/events":{"get":{"summary":"Subscribe to versioned SSE context events","security":[{"bearerAuth":[]},{"cookieAuth":[]}],"parameters":[{"in":"path","name":"caseId","required":true,"schema":{"type":"string"}}],"x-sse-event-name":"advisor.context.updated","x-sse-data-schema":{"$ref":"#/components/schemas/AdvisorContextUpdated"},"responses":{"200":{"description":"Success"},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Session required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Role/CSRF forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found or unauthorized case","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Version, review or journey conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Missing/unsupported domain data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/cases/{caseId}/preferences":{"patch":{"summary":"Change locale and/or duration without invalidating financial runs; at least one field required","security":[{"bearerAuth":[]},{"cookieAuth":[]}],"parameters":[{"in":"path","name":"caseId","required":true,"schema":{"type":"string"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/patch__api_cases__caseId__preferences"}}}},"responses":{"200":{"description":"Success"},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Session required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Role/CSRF forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found or unauthorized case","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Version, review or journey conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Missing/unsupported domain data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}},"/api/cases/{caseId}/documents/{documentId}":{"get":{"summary":"Download authorized allowlisted Pax document","security":[{"bearerAuth":[]},{"cookieAuth":[]}],"parameters":[{"in":"path","name":"caseId","required":true,"schema":{"type":"string"}},{"in":"path","name":"documentId","required":true,"schema":{"type":"string"}}],"responses":{"200":{"description":"Success"},"400":{"description":"Invalid input","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"401":{"description":"Session required","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"403":{"description":"Role/CSRF forbidden","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"404":{"description":"Not found or unauthorized case","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"409":{"description":"Version, review or journey conflict","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}},"422":{"description":"Missing/unsupported domain data","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApiError"}}}}}}}}}