{"openapi":"3.1.0","info":{"title":"Funding OS API","version":"0.1.0","description":"Tenant-bound canonical funding operations. Cookie sessions; every POST requires exact Origin and x-csrf-token from funding_csrf cookie. No external send endpoint is enabled. Append-only, revision-CAS startup questionnaire drafts and saved search policies/runs are available with strict tenant RLS. Saved drafts cannot promote canonical facts, and read-only search runs cannot send external communications. Full production authorization and release remain incomplete."},"servers":[{"url":"http://localhost:3417/api"}],"security":[{"session":[]}],"components":{"securitySchemes":{"session":{"type":"apiKey","in":"cookie","name":"funding_session"},"automationMachine":{"type":"http","scheme":"bearer","description":"Tenant scoped, revocable FundingOS machine token; requires x-funding-tenant-id. NOT n8n admin API key."}},"schemas":{"Error":{"type":"object","required":["error","code","correlationId"],"properties":{"error":{"type":"string"},"code":{"type":"string","pattern":"^HTTP_[45][0-9]{2}$"},"correlationId":{"type":"string","format":"uuid"}}},"Project":{"type":"object","required":["name","stage"],"properties":{"name":{"type":"string","minLength":2,"maxLength":150},"stage":{"enum":["IDEA","PRE_SEED","SEED","GROWTH"]}}},"Fact":{"type":"object","required":["key","type","value","evidence"],"properties":{"key":{"type":"string","pattern":"^[a-z][a-z0-9_]{1,63}$"},"type":{"enum":["string","number","boolean"]},"value":{"type":["string","number","boolean"]},"status":{"const":"USER_CONFIRMED"},"evidence":{"type":"string","minLength":3},"sourceUrl":{"type":"string","format":"uri"},"confidence":{"type":"number","minimum":0,"maximum":1},"freshUntil":{"type":"string","format":"date-time"}}},"Requirement":{"type":"object","required":["key","kind","operator","value"],"properties":{"key":{"type":"string"},"kind":{"enum":["HARD","CONDITIONAL","SOFT"]},"operator":{"enum":["eq","gte","in"]},"value":{"type":["string","number","boolean","array"]},"weight":{"type":"number","minimum":0,"maximum":100}}},"ProfileDraftWrite":{"oneOf":[{"type":"object","properties":{"projectId":{"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)$"},"key":{"type":"string","minLength":2,"maxLength":64},"expectedRevision":{"type":"integer","minimum":0,"maximum":999999},"state":{"type":"string","const":"ANSWERED"},"value":{"anyOf":[{"type":"string","minLength":1,"maxLength":5000},{"type":"number"},{"type":"boolean"}]}},"required":["projectId","key","expectedRevision","state","value"],"additionalProperties":false},{"type":"object","properties":{"projectId":{"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)$"},"key":{"type":"string","minLength":2,"maxLength":64},"expectedRevision":{"type":"integer","minimum":0,"maximum":999999},"state":{"type":"string","const":"SKIPPED"},"skipReason":{"type":"string","enum":["NOT_APPLICABLE","NOT_MEASURED","NEEDS_EVIDENCE","UNKNOWN","DECLINED"]}},"required":["projectId","key","expectedRevision","state","skipReason"],"additionalProperties":false}]},"SavedSearchCreate":{"type":"object","properties":{"name":{"type":"string","minLength":3,"maxLength":80},"policy":{"type":"object","properties":{"projectId":{"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)$"},"policyVersion":{"type":"string","const":"search-v1"},"join":{"default":"AND","type":"string","enum":["AND","OR"]},"groups":{"minItems":1,"maxItems":4,"type":"array","items":{"type":"object","properties":{"join":{"default":"AND","type":"string","enum":["AND","OR"]},"clauses":{"minItems":1,"maxItems":12,"type":"array","items":{"type":"object","properties":{"operator":{"type":"string","enum":["MUST","PREFER","ALLOW","EXCLUDE"]},"field":{"type":"string","enum":["stage","sector","geography","ticketMin","ticketMax","status","deadline","freshness","conflict"]},"test":{"type":"string","enum":["eq","gte","lte","missing"]},"value":{"anyOf":[{"type":"string","minLength":1,"maxLength":100,"pattern":"^[\\p{L}\\p{N} _.,/+:-]+$"},{"type":"number","minimum":0,"maximum":1000000000000}]}},"required":["operator","field","test"],"additionalProperties":false}}},"required":["clauses"],"additionalProperties":false}},"unknowns":{"default":"include","type":"string","enum":["include","exclude"]},"includeDemo":{"default":false,"type":"boolean"},"limit":{"default":25,"type":"integer","minimum":1,"maximum":100},"offset":{"default":0,"type":"integer","minimum":0,"maximum":400}},"required":["projectId","policyVersion","groups"],"additionalProperties":false}},"required":["name","policy"],"additionalProperties":false},"SavedSearchRevise":{"type":"object","properties":{"id":{"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)$"},"expectedRevision":{"type":"integer","minimum":1,"maximum":999999},"policy":{"type":"object","properties":{"projectId":{"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)$"},"policyVersion":{"type":"string","const":"search-v1"},"join":{"default":"AND","type":"string","enum":["AND","OR"]},"groups":{"minItems":1,"maxItems":4,"type":"array","items":{"type":"object","properties":{"join":{"default":"AND","type":"string","enum":["AND","OR"]},"clauses":{"minItems":1,"maxItems":12,"type":"array","items":{"type":"object","properties":{"operator":{"type":"string","enum":["MUST","PREFER","ALLOW","EXCLUDE"]},"field":{"type":"string","enum":["stage","sector","geography","ticketMin","ticketMax","status","deadline","freshness","conflict"]},"test":{"type":"string","enum":["eq","gte","lte","missing"]},"value":{"anyOf":[{"type":"string","minLength":1,"maxLength":100,"pattern":"^[\\p{L}\\p{N} _.,/+:-]+$"},{"type":"number","minimum":0,"maximum":1000000000000}]}},"required":["operator","field","test"],"additionalProperties":false}}},"required":["clauses"],"additionalProperties":false}},"unknowns":{"default":"include","type":"string","enum":["include","exclude"]},"includeDemo":{"default":false,"type":"boolean"},"limit":{"default":25,"type":"integer","minimum":1,"maximum":100},"offset":{"default":0,"type":"integer","minimum":0,"maximum":400}},"required":["projectId","policyVersion","groups"],"additionalProperties":false}},"required":["id","expectedRevision","policy"],"additionalProperties":false},"SavedSearchRun":{"type":"object","properties":{"id":{"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)$"},"revision":{"type":"integer","minimum":1,"maximum":1000000},"requestKey":{"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":["id","revision","requestKey"],"additionalProperties":false},"AdvancedSearchPolicy":{"type":"object","properties":{"projectId":{"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)$"},"policyVersion":{"type":"string","const":"search-v1"},"join":{"default":"AND","type":"string","enum":["AND","OR"]},"groups":{"minItems":1,"maxItems":4,"type":"array","items":{"type":"object","properties":{"join":{"default":"AND","type":"string","enum":["AND","OR"]},"clauses":{"minItems":1,"maxItems":12,"type":"array","items":{"type":"object","properties":{"operator":{"type":"string","enum":["MUST","PREFER","ALLOW","EXCLUDE"]},"field":{"type":"string","enum":["stage","sector","geography","ticketMin","ticketMax","status","deadline","freshness","conflict"]},"test":{"type":"string","enum":["eq","gte","lte","missing"]},"value":{"anyOf":[{"type":"string","minLength":1,"maxLength":100,"pattern":"^[\\p{L}\\p{N} _.,/+:-]+$"},{"type":"number","minimum":0,"maximum":1000000000000}]}},"required":["operator","field","test"],"additionalProperties":false}}},"required":["clauses"],"additionalProperties":false}},"unknowns":{"default":"include","type":"string","enum":["include","exclude"]},"includeDemo":{"default":false,"type":"boolean"},"limit":{"default":25,"type":"integer","minimum":1,"maximum":100},"offset":{"default":0,"type":"integer","minimum":0,"maximum":400}},"required":["projectId","policyVersion","groups"],"additionalProperties":false},"ProfileDraftRead":{"type":"object","required":["projectId","authority","items"],"properties":{"projectId":{"type":"string","format":"uuid"},"authority":{"type":"string","const":"DRAFT_ONLY_NOT_CANONICAL"},"items":{"type":"array","items":{"type":"object"}}}},"SavedSearchList":{"type":"object","required":["projectId","authority","items"],"properties":{"projectId":{"type":"string","format":"uuid"},"authority":{"type":"string","const":"SAVED_SEARCH_ONLY"},"items":{"type":"array","items":{"type":"object"}}}},"SearchRunReceipt":{"type":"object","required":["id","revision","replay","policyHash","resultHash","summary","authority"],"properties":{"id":{"type":"string","format":"uuid"},"revision":{"type":"integer"},"replay":{"type":"boolean"},"policyHash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"resultHash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"summary":{"type":"object"},"authority":{"type":"string","const":"READ_ONLY_MATCHING"}}},"ApplicationCreate":{"type":"object","properties":{"projectId":{"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)$"},"opportunityId":{"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)$"},"opportunityUrl":{"type":"string","format":"uri"},"draftId":{"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)$"},"fundingRoundSnapshot":{"type":"object","properties":{"fundingRoundId":{"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)$"},"versionId":{"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)$"},"version":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["fundingRoundId","versionId","version"],"additionalProperties":false},"portal":{"type":"string","minLength":1,"maxLength":200},"deadline":{"anyOf":[{"type":"string","format":"date","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])))$"},{"type":"null"}]},"nextAction":{"default":"","type":"string","maxLength":500}},"required":["projectId","portal"],"additionalProperties":false},"ApplicationUpdate":{"type":"object","properties":{"status":{"type":"string","enum":["DRAFT","IN_PROGRESS","NEEDS_HUMAN","READY_TO_SUBMIT","SUBMITTED","AWARDED","REJECTED"]},"nextAction":{"type":"string","maxLength":500},"approvalId":{"anyOf":[{"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)$"},{"type":"null"}]}},"required":["status"],"additionalProperties":false},"ApplicationEconomicTerms":{"type":"object","properties":{"cheque":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}]},"dilutionPercent":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}]},"reportingHours":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}]},"cofinancing":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}]},"fees":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}]},"controlRights":{"type":"string","enum":["NONE","REVIEW_REQUIRED","UNKNOWN"]},"nonCashBenefits":{"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}}},"required":["cheque","dilutionPercent","reportingHours","cofinancing","fees","controlRights","nonCashBenefits"],"additionalProperties":false},"EconomicCompare":{"type":"object","properties":{"applicationIds":{"minItems":2,"maxItems":10,"type":"array","items":{"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":["applicationIds"],"additionalProperties":false},"FormPilotRunCreate":{"type":"object","properties":{"projectId":{"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)$"},"draftId":{"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)$"},"portalUrl":{"type":"string","maxLength":1000,"format":"uri"},"mode":{"default":"DRY_RUN","type":"string","enum":["DRY_RUN","SUBMIT_APPROVED"]},"approvalId":{"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":["projectId","draftId","portalUrl"],"additionalProperties":false},"FormPilotApproveSubmit":{"type":"object","properties":{"approvalId":{"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":["approvalId"],"additionalProperties":false},"FormPilotResume":{"type":"object","additionalProperties":false,"properties":{}},"StartupProfilePatch":{"anyOf":[{"type":"object","properties":{"company_name":{"anyOf":[{"anyOf":[{"type":"string","minLength":1,"maxLength":5000},{"type":"number"},{"type":"boolean"}]},{"type":"null"}]},"incorporated":{"anyOf":[{"anyOf":[{"type":"string","minLength":1,"maxLength":5000},{"type":"number"},{"type":"boolean"}]},{"type":"null"}]},"incorporation_country":{"anyOf":[{"anyOf":[{"type":"string","minLength":1,"maxLength":5000},{"type":"number"},{"type":"boolean"}]},{"type":"null"}]},"operating_country":{"anyOf":[{"anyOf":[{"type":"string","minLength":1,"maxLength":5000},{"type":"number"},{"type":"boolean"}]},{"type":"null"}]},"founded_year":{"anyOf":[{"type":"integer","minimum":1800,"maximum":2026},{"type":"null"}]},"website":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]},"problem":{"anyOf":[{"anyOf":[{"type":"string","minLength":1,"maxLength":5000},{"type":"number"},{"type":"boolean"}]},{"type":"null"}]},"solution":{"anyOf":[{"anyOf":[{"type":"string","minLength":1,"maxLength":5000},{"type":"number"},{"type":"boolean"}]},{"type":"null"}]},"sector":{"anyOf":[{"anyOf":[{"type":"string","minLength":1,"maxLength":5000},{"type":"number"},{"type":"boolean"}]},{"type":"null"}]},"target_customer":{"anyOf":[{"anyOf":[{"type":"string","minLength":1,"maxLength":5000},{"type":"number"},{"type":"boolean"}]},{"type":"null"}]},"business_model":{"anyOf":[{"anyOf":[{"type":"string","minLength":1,"maxLength":5000},{"type":"number"},{"type":"boolean"}]},{"type":"null"}]},"product_stage":{"anyOf":[{"type":"string","enum":["IDEA","PROTOTYPE","MVP","PILOT","REVENUE","SCALE"]},{"type":"null"}]},"founder_count":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}]},"team_size":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}]},"founder_experience":{"anyOf":[{"anyOf":[{"type":"string","minLength":1,"maxLength":5000},{"type":"number"},{"type":"boolean"}]},{"type":"null"}]},"technical_lead":{"anyOf":[{"anyOf":[{"type":"string","minLength":1,"maxLength":5000},{"type":"number"},{"type":"boolean"}]},{"type":"null"}]},"full_time_founders":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}]},"team_gaps":{"anyOf":[{"anyOf":[{"type":"string","minLength":1,"maxLength":5000},{"type":"number"},{"type":"boolean"}]},{"type":"null"}]},"customer_discovery":{"anyOf":[{"anyOf":[{"type":"string","minLength":1,"maxLength":5000},{"type":"number"},{"type":"boolean"}]},{"type":"null"}]},"pilot_count":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}]},"active_users":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}]},"paying_customers":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}]},"monthly_revenue":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}]},"revenue_currency":{"anyOf":[{"anyOf":[{"type":"string","minLength":1,"maxLength":5000},{"type":"number"},{"type":"boolean"}]},{"type":"null"}]},"funding_goal":{"anyOf":[{"anyOf":[{"type":"string","minLength":1,"maxLength":5000},{"type":"number"},{"type":"boolean"}]},{"type":"null"}]},"funding_target":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}]},"funding_currency":{"anyOf":[{"anyOf":[{"type":"string","minLength":1,"maxLength":5000},{"type":"number"},{"type":"boolean"}]},{"type":"null"}]},"use_of_funds":{"anyOf":[{"anyOf":[{"type":"string","minLength":1,"maxLength":5000},{"type":"number"},{"type":"boolean"}]},{"type":"null"}]},"runway_months":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}]},"funding_timeline":{"anyOf":[{"anyOf":[{"type":"string","minLength":1,"maxLength":5000},{"type":"number"},{"type":"boolean"}]},{"type":"null"}]},"pitch_deck_ready":{"anyOf":[{"anyOf":[{"type":"string","minLength":1,"maxLength":5000},{"type":"number"},{"type":"boolean"}]},{"type":"null"}]},"financial_records_ready":{"anyOf":[{"anyOf":[{"type":"string","minLength":1,"maxLength":5000},{"type":"number"},{"type":"boolean"}]},{"type":"null"}]},"company_documents_ready":{"anyOf":[{"anyOf":[{"type":"string","minLength":1,"maxLength":5000},{"type":"number"},{"type":"boolean"}]},{"type":"null"}]},"evidence_owner":{"anyOf":[{"anyOf":[{"type":"string","minLength":1,"maxLength":5000},{"type":"number"},{"type":"boolean"}]},{"type":"null"}]},"data_room_ready":{"anyOf":[{"anyOf":[{"type":"string","minLength":1,"maxLength":5000},{"type":"number"},{"type":"boolean"}]},{"type":"null"}]},"evidence_review_date":{"anyOf":[{"type":"string","format":"date","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])))$"},{"type":"null"}]},"startup_code":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9_-]{1,63}$"},{"type":"null"}]},"display_name":{"anyOf":[{"type":"string","minLength":1,"maxLength":500},{"type":"null"}]},"legal_name":{"anyOf":[{"type":"string","minLength":1,"maxLength":500},{"type":"null"}]},"registration_number":{"anyOf":[{"type":"string","minLength":1,"maxLength":120},{"type":"null"}]},"incorporation_date":{"anyOf":[{"type":"string","format":"date","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])))$"},{"type":"null"}]},"contact_email":{"anyOf":[{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},{"type":"null"}]},"contact_phone":{"anyOf":[{"type":"string","pattern":"^\\+?[0-9 ()-]{7,30}$"},{"type":"null"}]},"value_proposition":{"anyOf":[{"anyOf":[{"type":"string","minLength":1,"maxLength":5000},{"type":"number"},{"type":"boolean"}]},{"type":"null"}]},"technology_tags":{"anyOf":[{"maxItems":30,"type":"array","items":{"type":"string","minLength":1,"maxLength":120}},{"type":"null"}]},"market_tam":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}]},"market_sam":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}]},"market_som":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}]},"target_countries":{"anyOf":[{"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":120}},{"type":"null"}]},"competitors":{"anyOf":[{"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":120}},{"type":"null"}]},"funding_types_sought":{"anyOf":[{"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":120}},{"type":"null"}]},"previous_funding":{"anyOf":[{"anyOf":[{"type":"string","minLength":1,"maxLength":5000},{"type":"number"},{"type":"boolean"}]},{"type":"null"}]}},"additionalProperties":false},{"type":"object","properties":{"company":{"type":"object","properties":{"company_name":{"anyOf":[{"anyOf":[{"type":"string","minLength":1,"maxLength":5000},{"type":"number"},{"type":"boolean"}]},{"type":"null"}]},"incorporated":{"anyOf":[{"anyOf":[{"type":"string","minLength":1,"maxLength":5000},{"type":"number"},{"type":"boolean"}]},{"type":"null"}]},"incorporation_country":{"anyOf":[{"anyOf":[{"type":"string","minLength":1,"maxLength":5000},{"type":"number"},{"type":"boolean"}]},{"type":"null"}]},"operating_country":{"anyOf":[{"anyOf":[{"type":"string","minLength":1,"maxLength":5000},{"type":"number"},{"type":"boolean"}]},{"type":"null"}]},"founded_year":{"anyOf":[{"type":"integer","minimum":1800,"maximum":2026},{"type":"null"}]},"website":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]},"startup_code":{"anyOf":[{"type":"string","pattern":"^[A-Za-z0-9][A-Za-z0-9_-]{1,63}$"},{"type":"null"}]},"display_name":{"anyOf":[{"type":"string","minLength":1,"maxLength":500},{"type":"null"}]},"legal_name":{"anyOf":[{"type":"string","minLength":1,"maxLength":500},{"type":"null"}]},"registration_number":{"anyOf":[{"type":"string","minLength":1,"maxLength":120},{"type":"null"}]},"incorporation_date":{"anyOf":[{"type":"string","format":"date","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])))$"},{"type":"null"}]},"contact_email":{"anyOf":[{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},{"type":"null"}]},"contact_phone":{"anyOf":[{"type":"string","pattern":"^\\+?[0-9 ()-]{7,30}$"},{"type":"null"}]}},"additionalProperties":false},"product":{"type":"object","properties":{"problem":{"anyOf":[{"anyOf":[{"type":"string","minLength":1,"maxLength":5000},{"type":"number"},{"type":"boolean"}]},{"type":"null"}]},"solution":{"anyOf":[{"anyOf":[{"type":"string","minLength":1,"maxLength":5000},{"type":"number"},{"type":"boolean"}]},{"type":"null"}]},"sector":{"anyOf":[{"anyOf":[{"type":"string","minLength":1,"maxLength":5000},{"type":"number"},{"type":"boolean"}]},{"type":"null"}]},"target_customer":{"anyOf":[{"anyOf":[{"type":"string","minLength":1,"maxLength":5000},{"type":"number"},{"type":"boolean"}]},{"type":"null"}]},"business_model":{"anyOf":[{"anyOf":[{"type":"string","minLength":1,"maxLength":5000},{"type":"number"},{"type":"boolean"}]},{"type":"null"}]},"product_stage":{"anyOf":[{"type":"string","enum":["IDEA","PROTOTYPE","MVP","PILOT","REVENUE","SCALE"]},{"type":"null"}]},"value_proposition":{"anyOf":[{"anyOf":[{"type":"string","minLength":1,"maxLength":5000},{"type":"number"},{"type":"boolean"}]},{"type":"null"}]},"technology_tags":{"anyOf":[{"maxItems":30,"type":"array","items":{"type":"string","minLength":1,"maxLength":120}},{"type":"null"}]}},"additionalProperties":false},"team_traction":{"type":"object","properties":{"founder_count":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}]},"team_size":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}]},"founder_experience":{"anyOf":[{"anyOf":[{"type":"string","minLength":1,"maxLength":5000},{"type":"number"},{"type":"boolean"}]},{"type":"null"}]},"technical_lead":{"anyOf":[{"anyOf":[{"type":"string","minLength":1,"maxLength":5000},{"type":"number"},{"type":"boolean"}]},{"type":"null"}]},"full_time_founders":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}]},"team_gaps":{"anyOf":[{"anyOf":[{"type":"string","minLength":1,"maxLength":5000},{"type":"number"},{"type":"boolean"}]},{"type":"null"}]},"customer_discovery":{"anyOf":[{"anyOf":[{"type":"string","minLength":1,"maxLength":5000},{"type":"number"},{"type":"boolean"}]},{"type":"null"}]},"pilot_count":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}]},"active_users":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}]},"paying_customers":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}]},"monthly_revenue":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}]},"revenue_currency":{"anyOf":[{"anyOf":[{"type":"string","minLength":1,"maxLength":5000},{"type":"number"},{"type":"boolean"}]},{"type":"null"}]}},"additionalProperties":false},"funding_market":{"type":"object","properties":{"funding_goal":{"anyOf":[{"anyOf":[{"type":"string","minLength":1,"maxLength":5000},{"type":"number"},{"type":"boolean"}]},{"type":"null"}]},"funding_target":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}]},"funding_currency":{"anyOf":[{"anyOf":[{"type":"string","minLength":1,"maxLength":5000},{"type":"number"},{"type":"boolean"}]},{"type":"null"}]},"use_of_funds":{"anyOf":[{"anyOf":[{"type":"string","minLength":1,"maxLength":5000},{"type":"number"},{"type":"boolean"}]},{"type":"null"}]},"runway_months":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}]},"funding_timeline":{"anyOf":[{"anyOf":[{"type":"string","minLength":1,"maxLength":5000},{"type":"number"},{"type":"boolean"}]},{"type":"null"}]},"pitch_deck_ready":{"anyOf":[{"anyOf":[{"type":"string","minLength":1,"maxLength":5000},{"type":"number"},{"type":"boolean"}]},{"type":"null"}]},"financial_records_ready":{"anyOf":[{"anyOf":[{"type":"string","minLength":1,"maxLength":5000},{"type":"number"},{"type":"boolean"}]},{"type":"null"}]},"company_documents_ready":{"anyOf":[{"anyOf":[{"type":"string","minLength":1,"maxLength":5000},{"type":"number"},{"type":"boolean"}]},{"type":"null"}]},"evidence_owner":{"anyOf":[{"anyOf":[{"type":"string","minLength":1,"maxLength":5000},{"type":"number"},{"type":"boolean"}]},{"type":"null"}]},"data_room_ready":{"anyOf":[{"anyOf":[{"type":"string","minLength":1,"maxLength":5000},{"type":"number"},{"type":"boolean"}]},{"type":"null"}]},"evidence_review_date":{"anyOf":[{"type":"string","format":"date","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])))$"},{"type":"null"}]},"market_tam":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}]},"market_sam":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}]},"market_som":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}]},"target_countries":{"anyOf":[{"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":120}},{"type":"null"}]},"competitors":{"anyOf":[{"maxItems":50,"type":"array","items":{"type":"string","minLength":1,"maxLength":120}},{"type":"null"}]},"funding_types_sought":{"anyOf":[{"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":120}},{"type":"null"}]},"previous_funding":{"anyOf":[{"anyOf":[{"type":"string","minLength":1,"maxLength":5000},{"type":"number"},{"type":"boolean"}]},{"type":"null"}]}},"additionalProperties":false}},"additionalProperties":false}]},"StartupProfile":{"type":"object","properties":{"projectId":{"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)$"},"sections":{"type":"object","properties":{"company":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"value":{"anyOf":[{},{"type":"null"}]},"status":{"type":"string","enum":["VERIFIED","USER_CONFIRMED","UNVERIFIED","DERIVED","ESTIMATE","FORECAST","UNKNOWN","NOT_MEASURED","NOT_APPLICABLE","CONFLICTING","OUTDATED"]}},"required":["value","status"]}},"product":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"value":{"anyOf":[{},{"type":"null"}]},"status":{"type":"string","enum":["VERIFIED","USER_CONFIRMED","UNVERIFIED","DERIVED","ESTIMATE","FORECAST","UNKNOWN","NOT_MEASURED","NOT_APPLICABLE","CONFLICTING","OUTDATED"]}},"required":["value","status"]}},"teamTraction":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"value":{"anyOf":[{},{"type":"null"}]},"status":{"type":"string","enum":["VERIFIED","USER_CONFIRMED","UNVERIFIED","DERIVED","ESTIMATE","FORECAST","UNKNOWN","NOT_MEASURED","NOT_APPLICABLE","CONFLICTING","OUTDATED"]}},"required":["value","status"]}},"fundingMarket":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"value":{"anyOf":[{},{"type":"null"}]},"status":{"type":"string","enum":["VERIFIED","USER_CONFIRMED","UNVERIFIED","DERIVED","ESTIMATE","FORECAST","UNKNOWN","NOT_MEASURED","NOT_APPLICABLE","CONFLICTING","OUTDATED"]}},"required":["value","status"]}}},"required":["company","product","teamTraction","fundingMarket"]},"team":{"type":"array","items":{"type":"object","properties":{"id":{"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)$"},"full_name":{"type":"string"},"role":{"type":"string"},"is_founder":{"type":"boolean"},"equity_percent":{"type":["number","null"]},"linkedin_url":{"type":["string","null"]}},"required":["id","full_name","role","is_founder","equity_percent","linkedin_url"]}},"metrics":{"type":"array","items":{"type":"object","properties":{"id":{"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)$"},"metric":{"type":"string","enum":["MRR","ARR","ACTIVE_USERS","PAYING_CUSTOMERS","REVENUE","PILOTS","GMV","OTHER"]},"period_month":{"type":"string","format":"date","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])))$"},"value":{"type":"number"},"currency":{"type":["string","null"]},"source":{"type":"string","enum":["USER_ENTERED","EVIDENCE_LINKED"]},"evidence_id":{"type":["string","null"]}},"required":["id","metric","period_month","value","currency","source","evidence_id"]}},"documents":{"type":"array","items":{"type":"object","properties":{"id":{"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)$"},"type":{"type":"string","enum":["PITCH_DECK","BUSINESS_PLAN","FINANCIAL_MODEL","FOUNDER_CV","INCORPORATION","TRACTION_EVIDENCE","OTHER"]},"title":{"type":["string","null"]},"tags":{"type":"array","items":{"type":"string"}},"state":{"type":"string"}},"required":["id","type","title","tags","state"]}}},"required":["projectId","sections","team","metrics","documents"]},"StartupProfileSave":{"type":"object","required":["profile","changedKeys"],"properties":{"profile":{"$ref":"#/components/schemas/StartupProfile"},"changedKeys":{"type":"array","items":{"type":"string"}}}},"StartupReadiness":{"type":"object","properties":{"percent":{"type":"integer","minimum":0,"maximum":100},"level":{"type":"string","enum":["INCOMPLETE","BASIC","READY","STRONG"]},"missing":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"label":{"type":"string"},"section":{"type":"string","enum":["company","product","teamTraction","fundingMarket"]},"weight":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["key","label","section","weight"],"additionalProperties":false}}},"required":["percent","level","missing"],"additionalProperties":false},"StartupTeamMember":{"type":"object","properties":{"full_name":{"type":"string","minLength":1,"maxLength":200},"role":{"type":"string","minLength":1,"maxLength":120},"is_founder":{"default":false,"type":"boolean"},"equity_percent":{"anyOf":[{"type":"number","minimum":0,"maximum":100},{"type":"null"}]},"linkedin_url":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]}},"required":["full_name","role"],"additionalProperties":false},"StartupMetrics":{"anyOf":[{"type":"object","properties":{"metric":{"type":"string","enum":["MRR","ARR","ACTIVE_USERS","PAYING_CUSTOMERS","REVENUE","PILOTS","GMV","OTHER"]},"period_month":{"type":"string","format":"date","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])))$"},"value":{"type":"number"},"currency":{"anyOf":[{"type":"string","minLength":3,"maxLength":12},{"type":"null"}]},"source":{"type":"string","enum":["USER_ENTERED","EVIDENCE_LINKED"]},"evidence_id":{"anyOf":[{"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)$"},{"type":"null"}]}},"required":["metric","period_month","value","source"],"additionalProperties":false},{"minItems":1,"maxItems":100,"type":"array","items":{"type":"object","properties":{"metric":{"type":"string","enum":["MRR","ARR","ACTIVE_USERS","PAYING_CUSTOMERS","REVENUE","PILOTS","GMV","OTHER"]},"period_month":{"type":"string","format":"date","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])))$"},"value":{"type":"number"},"currency":{"anyOf":[{"type":"string","minLength":3,"maxLength":12},{"type":"null"}]},"source":{"type":"string","enum":["USER_ENTERED","EVIDENCE_LINKED"]},"evidence_id":{"anyOf":[{"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)$"},{"type":"null"}]}},"required":["metric","period_month","value","source"],"additionalProperties":false}}]},"EvidenceMetadata":{"type":"object","properties":{"doc_type":{"type":"string","enum":["PITCH_DECK","BUSINESS_PLAN","FINANCIAL_MODEL","FOUNDER_CV","INCORPORATION","TRACTION_EVIDENCE","OTHER"]},"title":{"anyOf":[{"type":"string","minLength":1,"maxLength":300},{"type":"null"}]},"tags":{"maxItems":30,"type":"array","items":{"type":"string","minLength":1,"maxLength":80}}},"additionalProperties":false},"ProjectReindexResult":{"type":"object","properties":{"projectId":{"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)$"},"status":{"type":"string","enum":["SKIPPED","INDEXED","PARTIAL"]},"documents":{"type":"integer","minimum":0,"maximum":9007199254740991},"reason":{"type":"string"},"chunks":{"type":"integer","minimum":0,"maximum":9007199254740991},"failed":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["projectId","status","documents"]},"EvidenceSensitivity":{"type":"object","properties":{"sensitivity":{"type":"string","enum":["PUBLIC","INTERNAL","CONFIDENTIAL","EQUITY"]}},"required":["sensitivity"],"additionalProperties":false},"EvidenceExtraction":{"type":"object","properties":{"status":{"type":"string","enum":["PARTIAL","UNSUPPORTED"]},"reason":{"type":"string"},"quotes":{"maxItems":10000,"type":"array","items":{"type":"object","properties":{"paragraph":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"start":{"type":"integer","minimum":0,"maximum":9007199254740991},"end":{"type":"integer","minimum":0,"maximum":9007199254740991},"text":{"type":"string"},"sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"},"version":{"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)$"},"status":{"type":"string","const":"UNVERIFIED"}},"required":["paragraph","start","end","text","sha256","version","status"],"additionalProperties":false}},"sections":{"maxItems":10000,"type":"array","items":{"type":"object","properties":{"ordinal":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"heading":{"anyOf":[{"type":"string","maxLength":160},{"type":"null"}]},"headingPath":{"maxItems":12,"type":"array","items":{"type":"string","maxLength":160}},"pageFrom":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"pageTo":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"spanStart":{"type":"integer","minimum":0,"maximum":9007199254740991},"spanEnd":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"text":{"type":"string","minLength":1,"maxLength":1048576},"textHash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"quote":{"type":"string","minLength":1,"maxLength":500},"citation":{"type":"object","properties":{"page":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"pageFrom":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"pageTo":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"sourceUrl":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}]},"spanStart":{"type":"integer","minimum":0,"maximum":9007199254740991},"spanEnd":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"quote":{"type":"string","minLength":1,"maxLength":500}},"required":["page","pageFrom","pageTo","sourceUrl","spanStart","spanEnd","quote"],"additionalProperties":false},"confidence":{"type":"number","minimum":0,"maximum":1},"trace":{"type":"object","properties":{"method":{"type":"string","enum":["TEXT","OCR"]},"provider":{"type":"string","minLength":1,"maxLength":100},"untrusted":{"type":"boolean","const":true}},"required":["method","provider","untrusted"],"additionalProperties":false}},"required":["ordinal","heading","headingPath","pageFrom","pageTo","spanStart","spanEnd","text","textHash","quote","citation","confidence","trace"],"additionalProperties":false}},"contradictions":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"field":{"type":"string","const":"deadline"},"status":{"type":"string","const":"CONFLICTING"},"values":{"minItems":2,"maxItems":20,"type":"array","items":{"type":"string"}},"citations":{"minItems":2,"maxItems":20,"type":"array","items":{"type":"object","properties":{"page":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"pageFrom":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"pageTo":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"sourceUrl":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}]},"spanStart":{"type":"integer","minimum":0,"maximum":9007199254740991},"spanEnd":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"quote":{"type":"string","minLength":1,"maxLength":500}},"required":["page","pageFrom","pageTo","sourceUrl","spanStart","spanEnd","quote"],"additionalProperties":false}},"reason":{"type":"string","const":"FOOTER_MAIN_DEADLINE_MISMATCH"}},"required":["field","status","values","citations","reason"],"additionalProperties":false}},"confidence":{"type":"number","minimum":0,"maximum":1},"trace":{"type":"object","properties":{"method":{"type":"string","enum":["TEXT","OCR","DISABLED"]},"provider":{"type":"string","minLength":1,"maxLength":100},"network":{"type":"boolean","const":false},"untrusted":{"type":"boolean","const":true}},"required":["method","provider","network","untrusted"],"additionalProperties":false},"sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"},"version":{"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":["status","reason","quotes","sections","contradictions","confidence","trace","sha256","version"],"additionalProperties":false},"DocumentSections":{"type":"object","properties":{"evidenceId":{"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)$"},"version":{"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)$"},"sensitivity":{"type":"string","enum":["PUBLIC","INTERNAL","CONFIDENTIAL","EQUITY"]},"sourceUrl":{"type":"string","maxLength":500},"sections":{"maxItems":10000,"type":"array","items":{"type":"object","properties":{"id":{"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)$"},"ordinal":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"headingPath":{"maxItems":12,"type":"array","items":{"type":"string","maxLength":160}},"pageFrom":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"pageTo":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"textHash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"spanStart":{"type":"integer","minimum":0,"maximum":9007199254740991},"spanEnd":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"quote":{"type":"string","minLength":1,"maxLength":500},"sourceUrl":{"anyOf":[{"type":"string","maxLength":500},{"type":"null"}]},"method":{"type":"string","enum":["TEXT","OCR"]},"confidence":{"type":"number","minimum":0,"maximum":1}},"required":["id","ordinal","headingPath","pageFrom","pageTo","textHash","spanStart","spanEnd","quote","sourceUrl","method","confidence"],"additionalProperties":false}}},"required":["evidenceId","version","sensitivity","sourceUrl","sections"],"additionalProperties":false},"FactProposal":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-z0-9_]{1,63}$"},"type":{"type":"string","enum":["string","number","boolean"]},"value":{"anyOf":[{"type":"string","maxLength":5000},{"type":"number"},{"type":"boolean"}]},"status":{"default":"UNVERIFIED","type":"string","const":"UNVERIFIED"},"evidence":{"type":"string","minLength":3,"maxLength":2000},"sourceUrl":{"type":"string","format":"uri"},"confidence":{"default":1,"type":"number","minimum":0,"maximum":1},"freshUntil":{"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))$"},"asOf":{"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"period":{"type":"string","minLength":1,"maxLength":100},"unit":{"type":"string","minLength":1,"maxLength":40},"privacy":{"default":"INTERNAL","type":"string","enum":["PUBLIC","INTERNAL","CONFIDENTIAL","EQUITY"]},"ownerId":{"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)$"},"correlationId":{"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":["key","type","value","evidence"],"additionalProperties":false},"FactApprove":{"type":"object","properties":{"expectedVersion":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"additionalProperties":false},"FactConflictResolve":{"type":"object","properties":{"winnerVersionId":{"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":["winnerVersionId"],"additionalProperties":false},"FactLedgerMutation":{"type":"object","description":"Immutable fact version result; conflicts never replace the approved version."},"FactConflictList":{"type":"array","items":{"type":"object"}},"SearchProfileCreate":{"type":"object","properties":{"name":{"type":"string","minLength":3,"maxLength":80},"profileId":{"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)$"},"expectedVersion":{"type":"integer","minimum":1,"maximum":999999},"fundingRoundId":{"default":null,"anyOf":[{"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)$"},{"type":"null"}]},"mode":{"type":"string","enum":["BASIC","ADVANCED"]},"stage":{"type":"string","enum":["IDEA","PRE_SEED","SEED","GROWTH"]},"sector":{"type":"string","minLength":1,"maxLength":120,"pattern":"^[\\p{L}\\p{N} _.,/+:%()-]+$"},"geography":{"type":"string","minLength":1,"maxLength":120,"pattern":"^[\\p{L}\\p{N} _.,/+:%()-]+$"},"ticketMin":{"type":"number","minimum":0,"maximum":1000000000000},"ticketMax":{"type":"number","minimum":0,"maximum":1000000000000},"operators":{"default":[],"maxItems":32,"type":"array","items":{"type":"object","properties":{"operator":{"type":"string","enum":["MUST","PREFER","ALLOW","EXCLUDE"]},"field":{"type":"string","enum":["geography","sector","stage","ticket","instrument","keyword"]},"value":{"anyOf":[{"type":"string","minLength":1,"maxLength":120,"pattern":"^[\\p{L}\\p{N} _.,/+:%()-]+$"},{"type":"number","minimum":0,"maximum":1000000000000}]},"synonyms":{"maxItems":12,"type":"array","items":{"anyOf":[{"type":"string","minLength":1,"maxLength":120,"pattern":"^[\\p{L}\\p{N} _.,/+:%()-]+$"},{"type":"number","minimum":0,"maximum":1000000000000}]}}},"required":["operator","field","value"],"additionalProperties":false}},"threshold":{"default":50,"type":"integer","minimum":0,"maximum":100},"graphDepth":{"default":1,"type":"integer","minimum":0,"maximum":4},"semanticTolerance":{"default":0.25,"type":"number","minimum":0,"maximum":1},"includeDemo":{"default":false,"type":"boolean"},"unknowns":{"default":"include","type":"string","enum":["include","exclude"]},"sources":{"default":["official"],"minItems":1,"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":80}},"sourceAllowlist":{"default":["official"],"minItems":1,"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":80}},"languages":{"default":["az","en"],"minItems":1,"maxItems":8,"type":"array","items":{"type":"string","pattern":"^[a-z]{2}(-[a-z]{2})?$"}},"budget":{"default":{"maxBranches":20,"maxSources":4},"type":"object","properties":{"maxBranches":{"type":"integer","minimum":1,"maximum":100},"maxSources":{"type":"integer","minimum":1,"maximum":20}},"required":["maxBranches","maxSources"],"additionalProperties":false}},"required":["name","mode"],"additionalProperties":false},"SearchProfile":{"type":"object","properties":{"id":{"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)$"},"profileKey":{"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)$"},"projectId":{"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)$"},"fundingRoundId":{"anyOf":[{"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)$"},{"type":"null"}]},"name":{"type":"string"},"version":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"mode":{"type":"string","enum":["BASIC","ADVANCED"]},"definition":{"type":"object","properties":{"mode":{"type":"string","enum":["BASIC","ADVANCED"]},"stage":{"type":"string","enum":["IDEA","PRE_SEED","SEED","GROWTH"]},"sector":{"type":"string","minLength":1,"maxLength":120,"pattern":"^[\\p{L}\\p{N} _.,/+:%()-]+$"},"geography":{"type":"string","minLength":1,"maxLength":120,"pattern":"^[\\p{L}\\p{N} _.,/+:%()-]+$"},"ticketMin":{"type":"number","minimum":0,"maximum":1000000000000},"ticketMax":{"type":"number","minimum":0,"maximum":1000000000000},"operators":{"default":[],"maxItems":32,"type":"array","items":{"type":"object","properties":{"operator":{"type":"string","enum":["MUST","PREFER","ALLOW","EXCLUDE"]},"field":{"type":"string","enum":["geography","sector","stage","ticket","instrument","keyword"]},"value":{"anyOf":[{"type":"string","minLength":1,"maxLength":120,"pattern":"^[\\p{L}\\p{N} _.,/+:%()-]+$"},{"type":"number","minimum":0,"maximum":1000000000000}]},"synonyms":{"maxItems":12,"type":"array","items":{"anyOf":[{"type":"string","minLength":1,"maxLength":120,"pattern":"^[\\p{L}\\p{N} _.,/+:%()-]+$"},{"type":"number","minimum":0,"maximum":1000000000000}]}}},"required":["operator","field","value"],"additionalProperties":false}},"threshold":{"default":50,"type":"integer","minimum":0,"maximum":100},"graphDepth":{"default":1,"type":"integer","minimum":0,"maximum":4},"semanticTolerance":{"default":0.25,"type":"number","minimum":0,"maximum":1},"includeDemo":{"default":false,"type":"boolean"},"unknowns":{"default":"include","type":"string","enum":["include","exclude"]},"sources":{"default":["official"],"minItems":1,"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":80}},"sourceAllowlist":{"default":["official"],"minItems":1,"maxItems":20,"type":"array","items":{"type":"string","minLength":1,"maxLength":80}},"languages":{"default":["az","en"],"minItems":1,"maxItems":8,"type":"array","items":{"type":"string","pattern":"^[a-z]{2}(-[a-z]{2})?$"}},"budget":{"default":{"maxBranches":20,"maxSources":4},"type":"object","properties":{"maxBranches":{"type":"integer","minimum":1,"maximum":100},"maxSources":{"type":"integer","minimum":1,"maximum":20}},"required":["maxBranches","maxSources"],"additionalProperties":false}},"required":["mode"],"additionalProperties":false},"policyHash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"plan":{"type":"object","properties":{"version":{"type":"number","const":1},"branches":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"language":{"type":"string"},"mustTerms":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string","enum":["geography","sector","stage","ticket","instrument","keyword"]},"value":{"anyOf":[{"type":"string","minLength":1,"maxLength":120,"pattern":"^[\\p{L}\\p{N} _.,/+:%()-]+$"},{"type":"number","minimum":0,"maximum":1000000000000}]},"synonyms":{"type":"array","items":{"anyOf":[{"type":"string","minLength":1,"maxLength":120,"pattern":"^[\\p{L}\\p{N} _.,/+:%()-]+$"},{"type":"number","minimum":0,"maximum":1000000000000}]}}},"required":["field","value","synonyms"],"additionalProperties":false}},"preferTerms":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string","enum":["geography","sector","stage","ticket","instrument","keyword"]},"value":{"anyOf":[{"type":"string","minLength":1,"maxLength":120,"pattern":"^[\\p{L}\\p{N} _.,/+:%()-]+$"},{"type":"number","minimum":0,"maximum":1000000000000}]},"synonyms":{"type":"array","items":{"anyOf":[{"type":"string","minLength":1,"maxLength":120,"pattern":"^[\\p{L}\\p{N} _.,/+:%()-]+$"},{"type":"number","minimum":0,"maximum":1000000000000}]}}},"required":["field","value","synonyms"],"additionalProperties":false}},"allowTerms":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string","enum":["geography","sector","stage","ticket","instrument","keyword"]},"value":{"anyOf":[{"type":"string","minLength":1,"maxLength":120,"pattern":"^[\\p{L}\\p{N} _.,/+:%()-]+$"},{"type":"number","minimum":0,"maximum":1000000000000}]},"synonyms":{"type":"array","items":{"anyOf":[{"type":"string","minLength":1,"maxLength":120,"pattern":"^[\\p{L}\\p{N} _.,/+:%()-]+$"},{"type":"number","minimum":0,"maximum":1000000000000}]}}},"required":["field","value","synonyms"],"additionalProperties":false}},"excludeTerms":{"type":"array","items":{"type":"object","properties":{"field":{"type":"string","enum":["geography","sector","stage","ticket","instrument","keyword"]},"value":{"anyOf":[{"type":"string","minLength":1,"maxLength":120,"pattern":"^[\\p{L}\\p{N} _.,/+:%()-]+$"},{"type":"number","minimum":0,"maximum":1000000000000}]},"synonyms":{"type":"array","items":{"anyOf":[{"type":"string","minLength":1,"maxLength":120,"pattern":"^[\\p{L}\\p{N} _.,/+:%()-]+$"},{"type":"number","minimum":0,"maximum":1000000000000}]}}},"required":["field","value","synonyms"],"additionalProperties":false}},"sources":{"type":"array","items":{"type":"string"}}},"required":["language","mustTerms","preferTerms","allowTerms","excludeTerms","sources"],"additionalProperties":false}},"sourceAllowlist":{"maxItems":20,"type":"array","items":{"type":"string"}},"budget":{"type":"object","properties":{"maxBranches":{"type":"integer","minimum":0,"maximum":9007199254740991},"maxSources":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["maxBranches","maxSources"],"additionalProperties":false},"execution":{"default":{"threshold":50,"graphDepth":1,"semanticTolerance":0.25,"includeDemo":false,"unknowns":"include"},"type":"object","properties":{"threshold":{"type":"integer","minimum":0,"maximum":100},"graphDepth":{"type":"integer","minimum":0,"maximum":4},"semanticTolerance":{"type":"number","minimum":0,"maximum":1},"includeDemo":{"type":"boolean"},"unknowns":{"type":"string","enum":["include","exclude"]}},"required":["threshold","graphDepth","semanticTolerance","includeDemo","unknowns"],"additionalProperties":false},"cancellation":{"type":"object","properties":{"token":{"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)$"},"mode":{"type":"string","const":"COOPERATIVE"}},"required":["token","mode"],"additionalProperties":false},"auditReasons":{"type":"array","items":{"anyOf":[{"type":"object","properties":{"code":{"type":"string","const":"SOURCE_NOT_ALLOWLISTED"},"source":{"type":"string"},"language":{"type":"string"},"synonymSet":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["code","source","language","synonymSet"],"additionalProperties":false},{"type":"object","properties":{"code":{"type":"string","const":"BRANCH_BUDGET_EXHAUSTED"},"language":{"type":"string"},"synonymSet":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["code","language","synonymSet"],"additionalProperties":false},{"type":"object","properties":{"code":{"type":"string","const":"SOURCE_BUDGET_EXHAUSTED"},"source":{"type":"string"},"language":{"type":"string"},"synonymSet":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["code","source","language","synonymSet"],"additionalProperties":false}]}},"policyHash":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["version","branches","sourceAllowlist","budget","cancellation","auditReasons","policyHash"],"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","profileKey","projectId","fundingRoundId","name","version","mode","definition","policyHash","plan","createdAt"],"additionalProperties":false},"SearchProfileRunCreate":{"type":"object","properties":{"requestKey":{"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)$"},"correlationId":{"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":["requestKey","correlationId"],"additionalProperties":false},"SearchProfileRun":{"type":"object","properties":{"id":{"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)$"},"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)$"},"profileId":{"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)$"},"profileVersion":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"policyHash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"status":{"type":"string","enum":["PENDING","RUNNING","SUCCEEDED","FAILED","CANCELLED"]},"correlationId":{"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)$"},"replay":{"type":"boolean"},"sourceSnapshotHash":{"anyOf":[{"type":"string","pattern":"^[a-f0-9]{64}$"},{"type":"null"}]},"branchResultsSummary":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"resultCount":{"default":0,"type":"integer","minimum":0,"maximum":9007199254740991},"results":{"default":[],"maxItems":500,"type":"array","items":{"type":"object","properties":{"id":{"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)$"},"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)$"},"opportunityId":{"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)$"},"rank":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"name":{"type":"string","minLength":1,"maxLength":200},"sourceUrl":{"type":"string","format":"uri"},"score":{"type":"integer","minimum":0,"maximum":100},"gate":{"type":"string","enum":["PASS","FAIL","UNKNOWN"]},"clauseTrace":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"field":{"type":"string","enum":["geography","sector","stage","ticket","instrument","keyword"]},"operator":{"type":"string","enum":["MUST","PREFER","ALLOW","EXCLUDE"]},"value":{"type":["string","number"]},"result":{"type":"string","enum":["MATCH","NO_MATCH","UNKNOWN"]}},"required":["field","operator","value","result"],"additionalProperties":false}}},"required":["id","runId","opportunityId","rank","name","sourceUrl","score","gate","clauseTrace"],"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"startedAt":{"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}]},"completedAt":{"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}]}},"required":["id","runId","profileId","profileVersion","policyHash","status","correlationId","replay","sourceSnapshotHash","branchResultsSummary","createdAt","startedAt","completedAt"],"additionalProperties":false},"OpportunityRequirementProposal":{"type":"object","properties":{"sourceSectionIds":{"minItems":1,"maxItems":50,"type":"array","items":{"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)$"}},"parserVersion":{"type":"string","minLength":1,"maxLength":100}},"required":["sourceSectionIds","parserVersion"],"additionalProperties":false},"OpportunityRequirementReview":{"type":"object","properties":{"decision":{"type":"string","enum":["APPROVED","REJECTED"]},"note":{"type":"string","minLength":1,"maxLength":1000}},"required":["decision"],"additionalProperties":false},"OpportunityRequirements":{"maxItems":500,"type":"array","items":{"type":"object","properties":{"id":{"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)$"},"opportunityId":{"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)$"},"sourceSectionId":{"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)$"},"factKey":{"type":"string"},"requirementClass":{"type":"string","enum":["eligibility","preference","evaluation","input","document","process","commitment","obligation"]},"severity":{"type":"string","enum":["HARD","CONDITIONAL","SOFT"]},"operator":{"type":"string","enum":["eq","gte","in"]},"value":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"array","items":{"type":"string"}}]},"status":{"type":"string","enum":["PROPOSED","APPROVED","REJECTED"]},"quote":{"type":"string","minLength":1,"maxLength":500},"page":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"parserVersion":{"type":"string"},"parserDoubt":{"anyOf":[{"type":"string","const":"MANDATORY_PARSED_AS_PREFER"},{"type":"null"}]},"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","opportunityId","sourceSectionId","factKey","requirementClass","severity","operator","value","status","quote","page","parserVersion","parserDoubt","createdAt","updatedAt"],"additionalProperties":false}},"OpportunityRequirement":{"type":"object","properties":{"id":{"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)$"},"opportunityId":{"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)$"},"sourceSectionId":{"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)$"},"factKey":{"type":"string"},"requirementClass":{"type":"string","enum":["eligibility","preference","evaluation","input","document","process","commitment","obligation"]},"severity":{"type":"string","enum":["HARD","CONDITIONAL","SOFT"]},"operator":{"type":"string","enum":["eq","gte","in"]},"value":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"array","items":{"type":"string"}}]},"status":{"type":"string","enum":["PROPOSED","APPROVED","REJECTED"]},"quote":{"type":"string","minLength":1,"maxLength":500},"page":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"parserVersion":{"type":"string"},"parserDoubt":{"anyOf":[{"type":"string","const":"MANDATORY_PARSED_AS_PREFER"},{"type":"null"}]},"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","opportunityId","sourceSectionId","factKey","requirementClass","severity","operator","value","status","quote","page","parserVersion","parserDoubt","createdAt","updatedAt"],"additionalProperties":false},"OpportunityCanonicalList":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"id":{"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)$"},"tenant_id":{"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)$"},"program_id":{"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)$"},"payload":{"type":"object","properties":{"name":{"type":"string","minLength":3,"maxLength":200},"funder":{"type":"string","minLength":2,"maxLength":200},"program":{"type":"string","minLength":2,"maxLength":200},"decisionMaker":{"type":"string","maxLength":200},"sector":{"type":"string","minLength":1,"maxLength":100},"ticketMin":{"type":"number","minimum":0},"ticketMax":{"type":"number","minimum":0},"deadline":{"type":"string","format":"date","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])))$"},"status":{"type":"string","enum":["UNVERIFIED","VERIFIED","CONFLICTING","OUTDATED","UNKNOWN"]},"conflict":{"type":"boolean"},"sourceUrl":{"type":"string","format":"uri"},"geography":{"type":"string","minLength":2},"stage":{"type":"string","minLength":2},"terms":{"type":"string","maxLength":2000},"requirements":{"maxItems":50,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":2},"kind":{"type":"string","enum":["HARD","CONDITIONAL","SOFT"]},"operator":{"type":"string","enum":["eq","gte","in"]},"value":{"anyOf":[{"type":"string"},{"type":"number"},{"type":"boolean"},{"type":"array","items":{"type":"string"}}]},"weight":{"default":1,"type":"number","minimum":0,"maximum":100}},"required":["key","kind","operator","value"],"additionalProperties":false}},"discovery":{"type":"object","properties":{"source":{"type":"string","enum":["grants","eu"]},"sourceId":{"type":"string","minLength":1,"maxLength":200},"title":{"type":"string","minLength":3,"maxLength":500},"publisher":{"type":"string","maxLength":300},"publishedStatus":{"type":"string","maxLength":100},"sourceUrl":{"type":"string","format":"uri"},"deadline":{"type":"string","format":"date","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])))$"},"last_checked":{"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))$"},"incomplete_requirements":{"type":"boolean","const":true},"verification":{"type":"string","const":"UNVERIFIED"},"language":{"type":"string","enum":["EN","AZ","TR","RU","MULTI","UNKNOWN"]}},"required":["source","sourceId","title","publisher","publishedStatus","sourceUrl","last_checked","incomplete_requirements","verification"],"additionalProperties":false}},"required":["name","funder","program","sourceUrl","geography","stage","terms","requirements"],"additionalProperties":false},"source_url":{"type":"string","format":"uri"},"source_hash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"fetched_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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"demo":{"type":"boolean"},"canonical_key":{"anyOf":[{"type":"string","pattern":"^[a-f0-9]{64}$"},{"type":"null"}]},"cycle_year":{"anyOf":[{"type":"integer","minimum":1900,"maximum":2200},{"type":"null"}]},"lifecycle_status":{"type":"string","enum":["ACTIVE","EXPIRED","DEAD_LINK","DEADLINE_UNCONFIRMED"]},"last_verified_at":{"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}]},"source_confidence":{"anyOf":[{"anyOf":[{"type":"number"},{"type":"string","pattern":"^\\d+(\\.\\d+)?$"}]},{"type":"null"}]},"source_dead_link":{"type":"boolean"},"review_state":{"type":"string","enum":["NEW","REVIEWING","SHORTLISTED","REJECTED"]},"assignee_user_id":{"anyOf":[{"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)$"},{"type":"null"}]},"canonical":{"anyOf":[{"type":"string","pattern":"^[a-f0-9]{64}$"},{"type":"null"}]},"language":{"type":"string","enum":["EN","AZ","TR","RU","MULTI","UNKNOWN"]}},"required":["id","tenant_id","program_id","payload","source_url","source_hash","fetched_at","demo","canonical_key","cycle_year","review_state","assignee_user_id","canonical","language"],"additionalProperties":false}},"ConnectorRegistry":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"id":{"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)$"},"adapterId":{"type":"string","pattern":"^[a-z][a-z0-9_-]{1,63}$"},"kind":{"type":"string","enum":["OFFICIAL_SITE","PROGRAMME_PAGE","API","PUBLIC_PDF","LICENSED_DATABASE"]},"baseOrigin":{"type":"string","format":"uri"},"robotsCheckedAt":{"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}]},"tosUrl":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]},"licenceRef":{"type":["string","null"]},"rateLimit":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"cacheTtlSeconds":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"enabled":{"type":"boolean"},"restrictionReason":{"type":["string","null"]},"lastSuccessAt":{"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}]},"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","adapterId","kind","baseOrigin","robotsCheckedAt","tosUrl","licenceRef","rateLimit","cacheTtlSeconds","enabled","restrictionReason","lastSuccessAt","updatedAt"],"additionalProperties":false}},"LegalEntityInput":{"type":"object","properties":{"role":{"type":"string","enum":["HOLDING","OPERATING","IP"]},"facts":{"type":"object","properties":{"displayNameFactId":{"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)$"},"legalNameFactId":{"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)$"},"registrationIdFactId":{"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)$"},"jurisdictionFactId":{"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)$"},"ownershipFactId":{"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)$"},"ipHolderFactId":{"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)$"}},"additionalProperties":false},"validFrom":{"type":"string","format":"date","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])))$"},"validTo":{"anyOf":[{"type":"string","format":"date","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])))$"},{"type":"null"}]}},"required":["role","facts","validFrom"],"additionalProperties":false},"LegalEntity":{"type":"object","properties":{"id":{"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)$"},"tenant_id":{"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)$"},"project_id":{"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)$"},"role":{"type":"string","enum":["HOLDING","OPERATING","IP"]},"facts":{"type":"object","properties":{"displayName":{"anyOf":[{"type":"object","properties":{"id":{"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)$"},"key":{"type":"string","pattern":"^[a-z][a-z0-9_]{1,63}$"},"value":{},"status":{"type":"string","enum":["VERIFIED","USER_CONFIRMED"]},"version":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["id","key","value","status","version"],"additionalProperties":false},{"type":"null"}]},"legalName":{"anyOf":[{"type":"object","properties":{"id":{"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)$"},"key":{"type":"string","pattern":"^[a-z][a-z0-9_]{1,63}$"},"value":{},"status":{"type":"string","enum":["VERIFIED","USER_CONFIRMED"]},"version":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["id","key","value","status","version"],"additionalProperties":false},{"type":"null"}]},"registrationId":{"anyOf":[{"type":"object","properties":{"id":{"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)$"},"key":{"type":"string","pattern":"^[a-z][a-z0-9_]{1,63}$"},"value":{},"status":{"type":"string","enum":["VERIFIED","USER_CONFIRMED"]},"version":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["id","key","value","status","version"],"additionalProperties":false},{"type":"null"}]},"jurisdiction":{"anyOf":[{"type":"object","properties":{"id":{"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)$"},"key":{"type":"string","pattern":"^[a-z][a-z0-9_]{1,63}$"},"value":{},"status":{"type":"string","enum":["VERIFIED","USER_CONFIRMED"]},"version":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["id","key","value","status","version"],"additionalProperties":false},{"type":"null"}]},"ownership":{"anyOf":[{"type":"object","properties":{"id":{"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)$"},"key":{"type":"string","pattern":"^[a-z][a-z0-9_]{1,63}$"},"value":{},"status":{"type":"string","enum":["VERIFIED","USER_CONFIRMED"]},"version":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["id","key","value","status","version"],"additionalProperties":false},{"type":"null"}]},"ipHolder":{"anyOf":[{"type":"object","properties":{"id":{"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)$"},"key":{"type":"string","pattern":"^[a-z][a-z0-9_]{1,63}$"},"value":{},"status":{"type":"string","enum":["VERIFIED","USER_CONFIRMED"]},"version":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["id","key","value","status","version"],"additionalProperties":false},{"type":"null"}]}},"required":["displayName","legalName","registrationId","jurisdiction","ownership","ipHolder"],"additionalProperties":false},"valid_from":{"type":"string","format":"date","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])))$"},"valid_to":{"anyOf":[{"type":"string","format":"date","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])))$"},{"type":"null"}]},"created_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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","tenant_id","project_id","role","facts","valid_from","valid_to","created_at"],"additionalProperties":false},"LegalEntityList":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"id":{"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)$"},"tenant_id":{"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)$"},"project_id":{"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)$"},"role":{"type":"string","enum":["HOLDING","OPERATING","IP"]},"facts":{"type":"object","properties":{"displayName":{"anyOf":[{"type":"object","properties":{"id":{"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)$"},"key":{"type":"string","pattern":"^[a-z][a-z0-9_]{1,63}$"},"value":{},"status":{"type":"string","enum":["VERIFIED","USER_CONFIRMED"]},"version":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["id","key","value","status","version"],"additionalProperties":false},{"type":"null"}]},"legalName":{"anyOf":[{"type":"object","properties":{"id":{"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)$"},"key":{"type":"string","pattern":"^[a-z][a-z0-9_]{1,63}$"},"value":{},"status":{"type":"string","enum":["VERIFIED","USER_CONFIRMED"]},"version":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["id","key","value","status","version"],"additionalProperties":false},{"type":"null"}]},"registrationId":{"anyOf":[{"type":"object","properties":{"id":{"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)$"},"key":{"type":"string","pattern":"^[a-z][a-z0-9_]{1,63}$"},"value":{},"status":{"type":"string","enum":["VERIFIED","USER_CONFIRMED"]},"version":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["id","key","value","status","version"],"additionalProperties":false},{"type":"null"}]},"jurisdiction":{"anyOf":[{"type":"object","properties":{"id":{"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)$"},"key":{"type":"string","pattern":"^[a-z][a-z0-9_]{1,63}$"},"value":{},"status":{"type":"string","enum":["VERIFIED","USER_CONFIRMED"]},"version":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["id","key","value","status","version"],"additionalProperties":false},{"type":"null"}]},"ownership":{"anyOf":[{"type":"object","properties":{"id":{"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)$"},"key":{"type":"string","pattern":"^[a-z][a-z0-9_]{1,63}$"},"value":{},"status":{"type":"string","enum":["VERIFIED","USER_CONFIRMED"]},"version":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["id","key","value","status","version"],"additionalProperties":false},{"type":"null"}]},"ipHolder":{"anyOf":[{"type":"object","properties":{"id":{"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)$"},"key":{"type":"string","pattern":"^[a-z][a-z0-9_]{1,63}$"},"value":{},"status":{"type":"string","enum":["VERIFIED","USER_CONFIRMED"]},"version":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["id","key","value","status","version"],"additionalProperties":false},{"type":"null"}]}},"required":["displayName","legalName","registrationId","jurisdiction","ownership","ipHolder"],"additionalProperties":false},"valid_from":{"type":"string","format":"date","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])))$"},"valid_to":{"anyOf":[{"type":"string","format":"date","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])))$"},{"type":"null"}]},"created_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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","tenant_id","project_id","role","facts","valid_from","valid_to","created_at"],"additionalProperties":false}},"FundingRoundInput":{"type":"object","properties":{"roundId":{"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)$"},"name":{"type":"string","minLength":2,"maxLength":100},"instrument":{"type":"string","enum":["EQUITY","SAFE","CONVERTIBLE_NOTE","GRANT","DEBT","OTHER"]},"targetAmount":{"type":"number","exclusiveMinimum":0},"currency":{"type":"string","enum":["AZN","USD","EUR"]},"ticketMin":{"anyOf":[{"type":"number","exclusiveMinimum":0},{"type":"null"}]},"ticketMax":{"anyOf":[{"type":"number","exclusiveMinimum":0},{"type":"null"}]},"useOfFunds":{"default":[],"maxItems":30,"type":"array","items":{"type":"string","minLength":1,"maxLength":200}},"runwayMonths":{"anyOf":[{"type":"integer","minimum":0,"maximum":120},{"type":"null"}]},"founderPreferences":{"default":{"equityFreePreferred":false,"boardSeatAllowed":false,"leadInvestorRequired":false},"type":"object","properties":{"equityFreePreferred":{"default":false,"type":"boolean"},"boardSeatAllowed":{"default":false,"type":"boolean"},"leadInvestorRequired":{"default":false,"type":"boolean"}},"additionalProperties":false},"valuation":{"anyOf":[{"type":"object","properties":{"amount":{"type":"number","exclusiveMinimum":0},"currency":{"type":"string","enum":["AZN","USD","EUR"]},"status":{"type":"string","const":"ESTIMATE"}},"required":["amount","currency","status"],"additionalProperties":false},{"type":"null"}]},"effectiveAt":{"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["name","instrument","targetAmount","currency"],"additionalProperties":false},"FundingRound":{"type":"object","properties":{"id":{"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)$"},"tenant_id":{"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)$"},"project_id":{"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)$"},"current_version_id":{"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)$"},"created_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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updated_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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"current":{"type":"object","properties":{"id":{"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)$"},"funding_round_id":{"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)$"},"project_id":{"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)$"},"version":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"name":{"type":"string"},"instrument":{"type":"string","enum":["EQUITY","SAFE","CONVERTIBLE_NOTE","GRANT","DEBT","OTHER"]},"target_amount":{"type":"number"},"currency":{"type":"string","enum":["AZN","USD","EUR"]},"ticket_min":{"type":["number","null"]},"ticket_max":{"type":["number","null"]},"use_of_funds":{"type":"array","items":{"type":"string"}},"runway_months":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"founder_preferences":{"type":"object","properties":{"equityFreePreferred":{"default":false,"type":"boolean"},"boardSeatAllowed":{"default":false,"type":"boolean"},"leadInvestorRequired":{"default":false,"type":"boolean"}},"additionalProperties":false},"valuation":{"anyOf":[{"type":"object","properties":{"amount":{"type":"number","exclusiveMinimum":0},"currency":{"type":"string","enum":["AZN","USD","EUR"]},"status":{"type":"string","const":"ESTIMATE"}},"required":["amount","currency","status"],"additionalProperties":false},{"type":"null"}]},"effective_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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"created_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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","funding_round_id","project_id","version","name","instrument","target_amount","currency","ticket_min","ticket_max","use_of_funds","runway_months","founder_preferences","valuation","effective_at","created_at"],"additionalProperties":false}},"required":["id","tenant_id","project_id","current_version_id","created_at","updated_at","current"],"additionalProperties":false},"FundingRoundList":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"id":{"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)$"},"tenant_id":{"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)$"},"project_id":{"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)$"},"current_version_id":{"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)$"},"created_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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updated_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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"current":{"type":"object","properties":{"id":{"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)$"},"funding_round_id":{"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)$"},"project_id":{"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)$"},"version":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"name":{"type":"string"},"instrument":{"type":"string","enum":["EQUITY","SAFE","CONVERTIBLE_NOTE","GRANT","DEBT","OTHER"]},"target_amount":{"type":"number"},"currency":{"type":"string","enum":["AZN","USD","EUR"]},"ticket_min":{"type":["number","null"]},"ticket_max":{"type":["number","null"]},"use_of_funds":{"type":"array","items":{"type":"string"}},"runway_months":{"anyOf":[{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},{"type":"null"}]},"founder_preferences":{"type":"object","properties":{"equityFreePreferred":{"default":false,"type":"boolean"},"boardSeatAllowed":{"default":false,"type":"boolean"},"leadInvestorRequired":{"default":false,"type":"boolean"}},"additionalProperties":false},"valuation":{"anyOf":[{"type":"object","properties":{"amount":{"type":"number","exclusiveMinimum":0},"currency":{"type":"string","enum":["AZN","USD","EUR"]},"status":{"type":"string","const":"ESTIMATE"}},"required":["amount","currency","status"],"additionalProperties":false},{"type":"null"}]},"effective_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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"created_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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","funding_round_id","project_id","version","name","instrument","target_amount","currency","ticket_min","ticket_max","use_of_funds","runway_months","founder_preferences","valuation","effective_at","created_at"],"additionalProperties":false}},"required":["id","tenant_id","project_id","current_version_id","created_at","updated_at","current"],"additionalProperties":false}},"OpportunityRecheckRequest":{"type":"object","properties":{"requestKey":{"type":"string","minLength":8,"maxLength":128}},"required":["requestKey"],"additionalProperties":false},"OpportunityRecheck":{"type":"object","properties":{"id":{"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)$"},"opportunityId":{"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)$"},"beforeHash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"afterHash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"outcome":{"type":"string","enum":["VERIFIED","OUTDATED","CONFLICTING","DEAD_LINK"]},"fields":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"field":{"type":"string","minLength":1,"maxLength":100},"before":{},"after":{},"status":{"type":"string","enum":["VERIFIED","OUTDATED","CONFLICTING","UNVERIFIED"]}},"required":["field","before","after","status"],"additionalProperties":false}},"impact":{"maxItems":500,"type":"array","items":{"type":"object","properties":{"applicationId":{"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)$"},"projectId":{"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)$"},"status":{"type":"string"},"previousDeadline":{"type":["string","null"]},"newDeadline":{"type":["string","null"]}},"required":["applicationId","projectId","status","previousDeadline","newDeadline"],"additionalProperties":false}},"sourceConfidence":{"type":"number","minimum":0,"maximum":1},"lastVerifiedAt":{"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"deadLink":{"type":"boolean"},"replay":{"type":"boolean"}},"required":["id","opportunityId","beforeHash","afterHash","outcome","fields","impact","sourceConfidence","lastVerifiedAt","deadLink","replay"],"additionalProperties":false},"MatchRecalculate":{"type":"object","properties":{"projectId":{"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":["projectId"],"additionalProperties":false},"MatchDecision":{"type":"object","properties":{"id":{"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)$"},"projectId":{"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)$"},"opportunityId":{"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)$"},"formulaVersion":{"type":"string"},"snapshotHash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"gate":{"type":"string","enum":["PASS","CONDITIONAL","UNCLEAR","FAIL"]},"score":{"anyOf":[{"type":"integer","minimum":0,"maximum":100},{"type":"null"}]},"components":{"type":"array","items":{}},"penalties":{"type":"array","items":{}},"confidence":{},"evidenceRefs":{"type":"array","items":{"type":"string"}},"risk":{},"nextAction":{"type":"string"},"supersedes":{"anyOf":[{"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)$"},{"type":"null"}]},"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))$"}},"required":["id","projectId","opportunityId","formulaVersion","snapshotHash","gate","score","components","penalties","confidence","evidenceRefs","risk","nextAction","supersedes","createdAt"],"additionalProperties":false},"MatchDecisionList":{"type":"object","properties":{"projectId":{"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)$"},"items":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"id":{"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)$"},"projectId":{"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)$"},"opportunityId":{"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)$"},"formulaVersion":{"type":"string"},"snapshotHash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"gate":{"type":"string","enum":["PASS","CONDITIONAL","UNCLEAR","FAIL"]},"score":{"anyOf":[{"type":"integer","minimum":0,"maximum":100},{"type":"null"}]},"components":{"type":"array","items":{}},"penalties":{"type":"array","items":{}},"confidence":{},"evidenceRefs":{"type":"array","items":{"type":"string"}},"risk":{},"nextAction":{"type":"string"},"supersedes":{"anyOf":[{"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)$"},{"type":"null"}]},"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))$"}},"required":["id","projectId","opportunityId","formulaVersion","snapshotHash","gate","score","components","penalties","confidence","evidenceRefs","risk","nextAction","supersedes","createdAt"],"additionalProperties":false}},"nextCursor":{"type":["string","null"]}},"required":["projectId","items","nextCursor"],"additionalProperties":false},"DiversifiedMatchList":{"type":"object","properties":{"projectId":{"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)$"},"items":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"id":{"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)$"},"projectId":{"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)$"},"opportunityId":{"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)$"},"formulaVersion":{"type":"string"},"snapshotHash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"gate":{"type":"string","enum":["PASS","CONDITIONAL","UNCLEAR","FAIL"]},"score":{"anyOf":[{"type":"integer","minimum":0,"maximum":100},{"type":"null"}]},"components":{"type":"array","items":{}},"penalties":{"type":"array","items":{}},"confidence":{},"evidenceRefs":{"type":"array","items":{"type":"string"}},"risk":{},"nextAction":{"type":"string"},"supersedes":{"anyOf":[{"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)$"},{"type":"null"}]},"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))$"},"category":{"type":"string","enum":["GRANTS","PILOTS","ACCELERATORS","CREDITS","VC","OTHER"]},"diversityRank":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["id","projectId","opportunityId","formulaVersion","snapshotHash","gate","score","components","penalties","confidence","evidenceRefs","risk","nextAction","supersedes","createdAt","category","diversityRank"],"additionalProperties":false}},"nextCursor":{"type":["string","null"]},"diversity":{"type":"object","properties":{"applied":{"type":"boolean","const":true},"window":{"type":"integer","minimum":1,"maximum":10},"categories":{"maxItems":6,"type":"array","items":{"type":"string","enum":["GRANTS","PILOTS","ACCELERATORS","CREDITS","VC","OTHER"]}}},"required":["applied","window","categories"],"additionalProperties":false}},"required":["projectId","items","nextCursor","diversity"],"additionalProperties":false},"OpportunityResearchMatrixQuery":{"type":"object","properties":{"projectId":{"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)$"}},"additionalProperties":false},"OpportunityResearchMatrix":{"type":"object","properties":{"opportunityId":{"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)$"},"tier":{"type":"string","enum":["S","STANDARD"]},"researchBudget":{"type":"integer","minimum":0,"maximum":9007199254740991},"spent":{"type":"integer","minimum":0,"maximum":9007199254740991},"sourceMatrix":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"url":{"type":"string","format":"uri"},"language":{"type":"string","enum":["EN","AZ","TR","RU","MULTI","UNKNOWN"]},"fetchedAt":{"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))$"},"confidence":{"type":"number","minimum":0,"maximum":1}},"required":["url","language","fetchedAt","confidence"],"additionalProperties":false}},"contradictions":{"maxItems":50,"type":"array","items":{"type":"object","properties":{"field":{"type":"string"},"values":{"minItems":2,"maxItems":20,"type":"array","items":{"type":"string"}},"sourceUrls":{"minItems":2,"maxItems":20,"type":"array","items":{"type":"string","format":"uri"}}},"required":["field","values","sourceUrls"],"additionalProperties":false}},"customMessaging":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"text":{"type":"string","maxLength":1000},"sourceRefs":{"maxItems":20,"type":"array","items":{"type":"string","maxLength":2000}},"status":{"type":"string","const":"DRAFT_REVIEW_REQUIRED"}},"required":["text","sourceRefs","status"],"additionalProperties":false}},"introPaths":{"maxItems":50,"type":"array","items":{"type":"object","properties":{"cohort":{"type":"string"},"investorName":{"type":"string"},"source":{"type":"string","format":"uri"},"permission":{"type":"string","enum":["PUBLIC","LICENSED","CONSENTED","UNKNOWN"]},"observedAt":{"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))$"},"currentMandate":{"type":"boolean","const":false},"accessClaim":{"type":"string","const":"UNCERTAIN_NO_INTRO_PERMISSION"}},"required":["cohort","investorName","source","permission","observedAt","currentMandate","accessClaim"],"additionalProperties":false}}},"required":["opportunityId","tier","researchBudget","spent","sourceMatrix","contradictions","customMessaging","introPaths"],"additionalProperties":false},"ApplicationStageInput":{"type":"object","properties":{"kind":{"type":"string","enum":["SCREENING","LONG_FORM","INTERVIEW","DUE_DILIGENCE","FINAL_TERMS"]},"ordinal":{"type":"integer","minimum":1,"maximum":20},"deadline":{"anyOf":[{"type":"string","format":"date","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])))$"},{"type":"null"}]},"requirements":{"default":[],"maxItems":100,"type":"array","items":{"type":"string","minLength":2,"maxLength":120}},"questions":{"default":[],"maxItems":100,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":2,"maxLength":120},"required":{"default":true,"type":"boolean"},"limits":{"type":"object","properties":{"words":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":10000},{"type":"null"}]},"chars":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":50000},{"type":"null"}]}},"additionalProperties":false}},"required":["key"],"additionalProperties":false}}},"required":["kind","ordinal"],"additionalProperties":false},"ApplicationStage":{"type":"object","properties":{"id":{"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)$"},"tenant_id":{"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)$"},"application_id":{"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)$"},"kind":{"type":"string","enum":["SCREENING","LONG_FORM","INTERVIEW","DUE_DILIGENCE","FINAL_TERMS"]},"ordinal":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"status":{"type":"string","enum":["PENDING","IN_PROGRESS","READY","SUBMITTED","COMPLETED","BLOCKED"]},"deadline":{"anyOf":[{"type":"string","format":"date","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])))$"},{"type":"null"}]},"requirements":{"type":"array","items":{"type":"string"}},"questions":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":2,"maxLength":120},"required":{"default":true,"type":"boolean"},"limits":{"type":"object","properties":{"words":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":10000},{"type":"null"}]},"chars":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":50000},{"type":"null"}]}},"additionalProperties":false}},"required":["key"],"additionalProperties":false}},"outcome":{"type":["string","null"]},"created_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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updated_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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"latest_package":{"anyOf":[{"type":"object","properties":{"id":{"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)$"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"snapshot_hash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"stale_answers":{"type":"array","items":{"type":"string"}},"file_map":{"type":"array","items":{"type":"object","properties":{"category":{"type":"string","enum":["DECK","MODEL","CAP_TABLE","LOI","REGISTRATION","ANNEX"]},"evidenceId":{"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)$"},"version":{"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)$"},"sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["category","evidenceId","version","sha256"],"additionalProperties":false}}},"required":["id","version","snapshot_hash","stale_answers","file_map"]},{"type":"null"}]}},"required":["id","tenant_id","application_id","kind","ordinal","status","deadline","requirements","questions","outcome","created_at","updated_at","latest_package"],"additionalProperties":false},"ApplicationStageList":{"type":"array","items":{"type":"object","properties":{"id":{"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)$"},"tenant_id":{"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)$"},"application_id":{"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)$"},"kind":{"type":"string","enum":["SCREENING","LONG_FORM","INTERVIEW","DUE_DILIGENCE","FINAL_TERMS"]},"ordinal":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"status":{"type":"string","enum":["PENDING","IN_PROGRESS","READY","SUBMITTED","COMPLETED","BLOCKED"]},"deadline":{"anyOf":[{"type":"string","format":"date","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])))$"},{"type":"null"}]},"requirements":{"type":"array","items":{"type":"string"}},"questions":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":2,"maxLength":120},"required":{"default":true,"type":"boolean"},"limits":{"type":"object","properties":{"words":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":10000},{"type":"null"}]},"chars":{"anyOf":[{"type":"integer","exclusiveMinimum":0,"maximum":50000},{"type":"null"}]}},"additionalProperties":false}},"required":["key"],"additionalProperties":false}},"outcome":{"type":["string","null"]},"created_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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updated_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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"latest_package":{"anyOf":[{"type":"object","properties":{"id":{"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)$"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"snapshot_hash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"stale_answers":{"type":"array","items":{"type":"string"}},"file_map":{"type":"array","items":{"type":"object","properties":{"category":{"type":"string","enum":["DECK","MODEL","CAP_TABLE","LOI","REGISTRATION","ANNEX"]},"evidenceId":{"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)$"},"version":{"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)$"},"sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["category","evidenceId","version","sha256"],"additionalProperties":false}}},"required":["id","version","snapshot_hash","stale_answers","file_map"]},{"type":"null"}]}},"required":["id","tenant_id","application_id","kind","ordinal","status","deadline","requirements","questions","outcome","created_at","updated_at","latest_package"],"additionalProperties":false}},"ApplicationStageCompile":{"type":"object","properties":{"fileMap":{"maxItems":50,"type":"array","items":{"type":"object","properties":{"category":{"type":"string","enum":["DECK","MODEL","CAP_TABLE","LOI","REGISTRATION","ANNEX"]},"evidenceId":{"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)$"},"version":{"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)$"},"sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["category","evidenceId","version","sha256"],"additionalProperties":false}},"answerKeys":{"maxItems":100,"type":"array","items":{"type":"string","minLength":2,"maxLength":120}}},"required":["fileMap","answerKeys"],"additionalProperties":false},"ApplicationPackage":{"type":"object","properties":{"id":{"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)$"},"tenant_id":{"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)$"},"stage_id":{"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)$"},"version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"file_map":{"type":"array","items":{"type":"object","properties":{"category":{"type":"string","enum":["DECK","MODEL","CAP_TABLE","LOI","REGISTRATION","ANNEX"]},"evidenceId":{"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)$"},"version":{"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)$"},"sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["category","evidenceId","version","sha256"],"additionalProperties":false}},"answers":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"answers_snapshot_hash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"snapshot_hash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"sealed":{"type":"boolean","const":true},"created_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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"warnings":{"type":"array","items":{"type":"string"}},"missing_answers":{"type":"array","items":{"type":"string"}}},"required":["id","tenant_id","stage_id","version","file_map","answers","answers_snapshot_hash","snapshot_hash","sealed","created_at","warnings","missing_answers"],"additionalProperties":false},"ApprovalCreate":{"type":"object","properties":{"stageId":{"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)$"},"expiresInMinutes":{"default":60,"type":"integer","minimum":1,"maximum":1440}},"required":["stageId"],"additionalProperties":false},"ApprovalDecision":{"type":"object","properties":{"decision":{"type":"string","enum":["APPROVED","REJECTED"]},"snapshotHash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"mfaCode":{"type":"string","pattern":"^(?:[0-9]{6}|[a-f0-9]{32})$"}},"required":["decision","snapshotHash","mfaCode"],"additionalProperties":false},"ApprovalRequest":{"type":"object","properties":{"id":{"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)$"},"tenant_id":{"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)$"},"snapshot_id":{"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)$"},"snapshot_hash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"requested_by":{"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_role":{"type":"string","enum":["OWNER","ADMIN","REVIEWER"]},"expires_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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"step_up_at":{"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}]},"decision":{"type":"string","enum":["PENDING","APPROVED","REJECTED","EXPIRED","INVALIDATED"]},"decided_by":{"anyOf":[{"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)$"},{"type":"null"}]},"decided_at":{"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}]},"created_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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","tenant_id","snapshot_id","snapshot_hash","requested_by","required_role","expires_at","step_up_at","decision","decided_by","decided_at","created_at"],"additionalProperties":false},"ApprovalCreated":{"type":"object","properties":{"request":{"type":"object","properties":{"id":{"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)$"},"tenant_id":{"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)$"},"snapshot_id":{"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)$"},"snapshot_hash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"requested_by":{"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_role":{"type":"string","enum":["OWNER","ADMIN","REVIEWER"]},"expires_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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"step_up_at":{"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}]},"decision":{"type":"string","enum":["PENDING","APPROVED","REJECTED","EXPIRED","INVALIDATED"]},"decided_by":{"anyOf":[{"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)$"},{"type":"null"}]},"decided_at":{"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}]},"created_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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","tenant_id","snapshot_id","snapshot_hash","requested_by","required_role","expires_at","step_up_at","decision","decided_by","decided_at","created_at"],"additionalProperties":false},"snapshot":{"type":"object","properties":{"id":{"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)$"},"hash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"stage":{"type":"string"},"package_version":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991}},"required":["id","hash","stage","package_version"],"additionalProperties":false},"preflight":{"type":"object","properties":{"stageId":{"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)$"},"status":{"type":"string","enum":["APPROVAL_READY","BLOCKED"]},"snapshotHash":{"anyOf":[{"type":"string","pattern":"^[a-f0-9]{64}$"},{"type":"null"}]},"latestChange":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"before":{},"after":{}},"required":["key","before","after"],"additionalProperties":false}},"factSources":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"source":{},"status":{"type":"string"}},"required":["key","source","status"],"additionalProperties":false}},"legalRisks":{"type":"array","items":{"type":"string"}},"blockers":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","enum":["NO_PACKAGE","STALE_ANSWERS","UNVERIFIED_CLAIM","EXPIRED_DEADLINE","FACT_CONFLICT","MISSING_ATTACHMENT","PORTAL_LIMIT","PREVIEW_MISMATCH","READBACK_MISSING"]},"message":{"type":"string"},"path":{"type":["string","null"]},"severity":{"type":"string","enum":["BLOCKER","WARNING","INFO"]},"source":{"type":"string"},"remediation":{"type":"string"}},"required":["code","message","path"],"additionalProperties":false}},"warnings":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"severity":{"type":"string","enum":["BLOCKER","WARNING","INFO"]},"source":{"type":"string"},"remediation":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"portalScreenshotRef":{"type":["string","null"]}},"required":["stageId","status","snapshotHash","latestChange","factSources","legalRisks","blockers","warnings","portalScreenshotRef"],"additionalProperties":false}},"required":["request","snapshot","preflight"],"additionalProperties":false},"ApplicationPreflight":{"type":"object","properties":{"stageId":{"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)$"},"status":{"type":"string","enum":["APPROVAL_READY","BLOCKED"]},"snapshotHash":{"anyOf":[{"type":"string","pattern":"^[a-f0-9]{64}$"},{"type":"null"}]},"latestChange":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"before":{},"after":{}},"required":["key","before","after"],"additionalProperties":false}},"factSources":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"source":{},"status":{"type":"string"}},"required":["key","source","status"],"additionalProperties":false}},"legalRisks":{"type":"array","items":{"type":"string"}},"blockers":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string","enum":["NO_PACKAGE","STALE_ANSWERS","UNVERIFIED_CLAIM","EXPIRED_DEADLINE","FACT_CONFLICT","MISSING_ATTACHMENT","PORTAL_LIMIT","PREVIEW_MISMATCH","READBACK_MISSING"]},"message":{"type":"string"},"path":{"type":["string","null"]},"severity":{"type":"string","enum":["BLOCKER","WARNING","INFO"]},"source":{"type":"string"},"remediation":{"type":"string"}},"required":["code","message","path"],"additionalProperties":false}},"warnings":{"type":"array","items":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"},"severity":{"type":"string","enum":["BLOCKER","WARNING","INFO"]},"source":{"type":"string"},"remediation":{"type":"string"}},"required":["code","message"],"additionalProperties":false}},"portalScreenshotRef":{"type":["string","null"]}},"required":["stageId","status","snapshotHash","latestChange","factSources","legalRisks","blockers","warnings","portalScreenshotRef"],"additionalProperties":false},"BrowserFillInput":{"type":"object","properties":{"portalUrl":{"type":"string","maxLength":1000,"format":"uri"}},"required":["portalUrl"],"additionalProperties":false},"BrowserFillQueued":{"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)$"},"status":{"type":"string","enum":["PENDING","RUNNING","NEEDS_HUMAN","READY_TO_SUBMIT","SUBMITTED","FAILED"]},"mode":{"type":"string","const":"DRY_RUN"},"snapshotHash":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["runId","status","mode","snapshotHash"],"additionalProperties":false},"PreviewReconciliationInput":{"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},"PreviewReconciliation":{"type":"object","properties":{"id":{"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)$"},"tenant_id":{"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)$"},"form_pilot_run_id":{"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)$"},"stage_id":{"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)$"},"snapshot":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"field_results":{"maxItems":5000,"type":"array","items":{"type":"object","properties":{"field":{"type":"string","minLength":1,"maxLength":300},"kind":{"type":"string","minLength":1,"maxLength":40},"status":{"type":"string","enum":["MATCH","MISMATCH","MAPPING_FAILED"]},"expectedSha256":{"anyOf":[{"type":"string","pattern":"^[a-f0-9]{64}$"},{"type":"null"}]},"readbackSha256":{"anyOf":[{"type":"string","pattern":"^[a-f0-9]{64}$"},{"type":"null"}]},"expectedCurrency":{"anyOf":[{"type":"string","maxLength":12},{"type":"null"}]},"readbackCurrency":{"anyOf":[{"type":"string","maxLength":12},{"type":"null"}]},"expectedFileVersion":{"anyOf":[{"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)$"},{"type":"null"}]},"readbackFileVersion":{"anyOf":[{"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)$"},{"type":"null"}]},"reason":{"anyOf":[{"type":"string","maxLength":120},{"type":"null"}]}},"required":["field","kind","status","expectedSha256","readbackSha256","expectedCurrency","readbackCurrency","expectedFileVersion","readbackFileVersion","reason"],"additionalProperties":false}},"status":{"type":"string","enum":["MATCH","MISMATCH","MAPPING_FAILED"]},"ready_for_approval":{"type":"boolean"},"screenshot_ref":{"anyOf":[{"type":"string","maxLength":1000},{"type":"null"}]},"created_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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","tenant_id","form_pilot_run_id","stage_id","snapshot","field_results","status","ready_for_approval","screenshot_ref","created_at"],"additionalProperties":false},"SubmitApplication":{"type":"object","properties":{"stageId":{"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)$"},"approvalRequestId":{"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)$"},"snapshotHash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"idempotencyKey":{"type":"string","minLength":16,"maxLength":100},"mfaCode":{"type":"string","pattern":"^(?:[0-9]{6}|[a-f0-9]{32})$"}},"required":["stageId","approvalRequestId","snapshotHash","idempotencyKey","mfaCode"],"additionalProperties":false},"SubmitGateReceipt":{"type":"object","properties":{"id":{"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)$"},"tenant_id":{"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)$"},"submission_id":{"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)$"},"evidence_ref":{"anyOf":[{"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)$"},{"type":"null"}]},"portal_confirmation_id":{"type":["string","null"]},"captured_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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"hash":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["id","tenant_id","submission_id","evidence_ref","portal_confirmation_id","captured_at","hash"],"additionalProperties":false},"SubmitGateOutcome":{"type":"object","properties":{"submissionId":{"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)$"},"status":{"type":"string","enum":["UNKNOWN_SUBMIT"]},"snapshotHash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"reconciliationId":{"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)$"},"externalSubmission":{"type":"string","const":"disabled"}},"required":["submissionId","status","snapshotHash","reconciliationId","externalSubmission"],"additionalProperties":false},"SubmissionReceipts":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"id":{"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)$"},"tenant_id":{"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)$"},"submission_id":{"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)$"},"evidence_ref":{"anyOf":[{"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)$"},{"type":"null"}]},"portal_confirmation_id":{"type":["string","null"]},"captured_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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"hash":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["id","tenant_id","submission_id","evidence_ref","portal_confirmation_id","captured_at","hash"],"additionalProperties":false}},"Reconciliation":{"type":"object","properties":{"id":{"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)$"},"tenant_id":{"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)$"},"submission_id":{"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)$"},"reason":{"type":"string"},"assigned_to":{"anyOf":[{"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)$"},{"type":"null"}]},"resolution":{"type":["string","null"]},"resolved_at":{"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}]},"created_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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","tenant_id","submission_id","reason","assigned_to","resolution","resolved_at","created_at"],"additionalProperties":false},"ReconciliationList":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"id":{"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)$"},"tenant_id":{"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)$"},"submission_id":{"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)$"},"reason":{"type":"string"},"assigned_to":{"anyOf":[{"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)$"},{"type":"null"}]},"resolution":{"type":["string","null"]},"resolved_at":{"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}]},"created_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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","tenant_id","submission_id","reason","assigned_to","resolution","resolved_at","created_at"],"additionalProperties":false}},"ReconciliationResolve":{"type":"object","properties":{"resolution":{"type":"string","minLength":1,"maxLength":2000}},"required":["resolution"],"additionalProperties":false},"R3ActionCreate":{"type":"object","properties":{"applicationId":{"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)$"},"actionKind":{"type":"string","enum":["LEGAL_TEXT","EQUITY_COMMITMENT","CAP_TABLE_UPLOAD","FINANCIAL_TERMS"]},"acceptedText":{"type":"string","minLength":1,"maxLength":10000},"overrideReason":{"type":"string","minLength":1,"maxLength":1000}},"required":["applicationId","actionKind","acceptedText","overrideReason"],"additionalProperties":false},"R3ActionApprove":{"type":"object","properties":{"acceptedText":{"type":"string","minLength":1,"maxLength":10000},"signatureAttestation":{"type":"boolean","const":true},"mfaCode":{"type":"string","pattern":"^(?:[0-9]{6}|[a-f0-9]{32})$"}},"required":["acceptedText","signatureAttestation"],"additionalProperties":false},"R3Action":{"type":"object","properties":{"id":{"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)$"},"tenant_id":{"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)$"},"application_id":{"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)$"},"action_kind":{"type":"string","enum":["LEGAL_TEXT","EQUITY_COMMITMENT","CAP_TABLE_UPLOAD","FINANCIAL_TERMS"]},"accepted_text_hash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"first_approver_id":{"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)$"},"second_approver_id":{"anyOf":[{"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)$"},{"type":"null"}]},"override_reason":{"type":"string"},"status":{"type":"string","enum":["PENDING_SECOND_APPROVAL","APPROVED","REJECTED"]},"signature_method":{"anyOf":[{"type":"string","const":"IN_APP_ATTESTATION"},{"type":"null"}]},"signature_at":{"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}]},"executed_at":{"type":"null"},"expires_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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"created_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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","tenant_id","application_id","action_kind","accepted_text_hash","first_approver_id","second_approver_id","override_reason","status","signature_method","signature_at","executed_at","expires_at","created_at"],"additionalProperties":false},"ResolveQuestionsInput":{"type":"object","properties":{"language":{"default":"az","type":"string","pattern":"^[a-z]{2}(?:-[A-Z]{2})?$"},"tone":{"default":"CONCISE","type":"string","enum":["CONCISE","TECHNICAL"]}},"additionalProperties":false},"ResolveQuestionsResponse":{"type":"object","properties":{"stageId":{"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)$"},"answers":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"question":{"type":"string"},"value":{"type":["string","number","boolean","null"]},"status":{"type":"string","enum":["SUPPORTED","NOT_MEASURED","NOT_APPLICABLE","NEEDS_FOUNDER","PROVIDER_UNAVAILABLE"]},"step":{"type":"string","enum":["EXACT_FACT","EQUIVALENT_FACT","EVIDENCE","DERIVED_CALCULATION","EXTERNAL_RESEARCH","APPROVED_ANSWER","NARRATIVE","FOUNDER_INPUT"]},"citations":{"type":"array","items":{"type":"object","properties":{"evidenceId":{"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)$"},"span":{"type":"object","properties":{"start":{"type":"integer","minimum":0,"maximum":9007199254740991},"end":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["start","end"],"additionalProperties":false},"quote":{"type":"string"}},"required":["evidenceId","span","quote"],"additionalProperties":false}},"founderAction":{"type":["string","null"]}},"required":["key","question","value","status","step","citations","founderAction"],"additionalProperties":false}}},"required":["stageId","answers"],"additionalProperties":false},"Notification":{"type":"object","properties":{"id":{"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)$"},"tenant_id":{"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)$"},"user_id":{"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)$"},"kind":{"type":"string","enum":["DIGEST","URGENT_ALERT","STAGE_ACTION","CONFLICT","BUDGET_ALERT"]},"severity":{"type":"string","enum":["INFO","WARNING","CRITICAL"]},"ref":{"type":["string","null"]},"title":{"type":"string"},"message":{"type":"string"},"state":{"type":"string","enum":["UNREAD","READ","SNOOZED","DISMISSED"]},"snoozed_until":{"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}]},"created_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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","tenant_id","user_id","kind","severity","ref","title","message","state","snoozed_until","created_at"],"additionalProperties":false},"NotificationSnooze":{"type":"object","properties":{"until":{"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["until"],"additionalProperties":false},"NotificationMutation":{"type":"object","required":["updated","notification"],"additionalProperties":false,"properties":{"updated":{"const":true},"notification":{"$ref":"#/components/schemas/Notification"}}},"NotificationList":{"type":"array","items":{"$ref":"#/components/schemas/Notification"},"maxItems":100},"WatchProfileCreate":{"type":"object","properties":{"projectId":{"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)$"},"triggers":{"default":["FACT_CHANGED","OPPORTUNITY_DEADLINE_CHANGED"],"minItems":1,"maxItems":6,"type":"array","items":{"type":"string","enum":["FACT_CHANGED","PROGRAM_MANDATE_CHANGED","OPPORTUNITY_CYCLE_CHANGED","OPPORTUNITY_DEADLINE_CHANGED","OPPORTUNITY_ELIGIBILITY_CHANGED","CALL_OPENED"]}},"cadence":{"default":"DAILY","type":"string","enum":["DAILY","WEEKLY"]},"thresholds":{"default":{},"type":"object","propertyNames":{"type":"string","maxLength":40},"additionalProperties":{"type":"number","minimum":0,"maximum":100}}},"required":["projectId"],"additionalProperties":false},"WatchProfile":{"type":"object","properties":{"id":{"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)$"},"tenant_id":{"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)$"},"project_id":{"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)$"},"enabled":{"type":"boolean"},"triggers":{"type":"array","items":{"type":"string"}},"cadence":{"type":"string","enum":["DAILY","WEEKLY"]},"thresholds":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"number"}},"profile_version":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"created_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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updated_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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","tenant_id","project_id","enabled","triggers","cadence","thresholds","profile_version","created_at","updated_at"],"additionalProperties":false},"WatchChange":{"type":"object","properties":{"id":{"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)$"},"tenant_id":{"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)$"},"project_id":{"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)$"},"source_event_id":{"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)$"},"kind":{"type":"string","enum":["FACT_CHANGED","PROGRAM_MANDATE_CHANGED","OPPORTUNITY_CYCLE_CHANGED","OPPORTUNITY_DEADLINE_CHANGED","OPPORTUNITY_ELIGIBILITY_CHANGED","ROUND_VERSION_CHANGED","CALL_OPENED","DISCOVERY_REFRESHED"]},"materiality":{"type":"string","enum":["COSMETIC","LOW","MATERIAL"]},"affected_opportunity_id":{"anyOf":[{"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)$"},{"type":"null"}]},"affected_application_id":{"anyOf":[{"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)$"},{"type":"null"}]},"summary":{"type":"string"},"details":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"created_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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","tenant_id","project_id","source_event_id","kind","materiality","affected_opportunity_id","affected_application_id","summary","details","created_at"],"additionalProperties":false},"WatchChangeList":{"type":"array","items":{"$ref":"#/components/schemas/WatchChange"},"maxItems":100},"CrmContactInput":{"type":"object","properties":{"name":{"type":"string","minLength":2,"maxLength":150},"organization":{"type":"string","minLength":2,"maxLength":150},"notes":{"default":"","type":"string","maxLength":2000},"role":{"default":"OTHER","type":"string","enum":["INVESTOR","OFFICER","PROGRAM_COORDINATOR","OTHER"]},"source":{"default":"USER_ENTERED","type":"string","enum":["USER_ENTERED","SUBMISSION_RECEIPT","INBOUND_RESPONSE","PUBLIC_SOURCE"]},"permissionBasis":{"default":"USER_ENTERED","type":"string","minLength":1,"maxLength":300},"channel":{"default":"EMAIL","type":"string","enum":["EMAIL","PHONE","LINKEDIN","OTHER"]},"email":{"anyOf":[{"anyOf":[{"type":"string","const":""},{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}]},{"type":"null"}]}},"required":["name","organization"],"additionalProperties":false},"CrmContact":{"type":"object","properties":{"id":{"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)$"},"tenant_id":{"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)$"},"name":{"type":"string"},"organization":{"type":"string"},"notes":{"type":"string"},"role":{"type":"string","enum":["INVESTOR","OFFICER","PROGRAM_COORDINATOR","OTHER"]},"source":{"type":"string","enum":["USER_ENTERED","SUBMISSION_RECEIPT","INBOUND_RESPONSE","PUBLIC_SOURCE"]},"permission_basis":{"type":"string"},"channel":{"type":"string","enum":["EMAIL","PHONE","LINKEDIN","OTHER"]},"email":{"type":["string","null"]},"created_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":["id","tenant_id","name","organization","notes","role","source","permission_basis","channel","email","created_at"],"additionalProperties":false},"CrmContactList":{"maxItems":500,"type":"array","items":{"type":"object","properties":{"id":{"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)$"},"tenant_id":{"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)$"},"name":{"type":"string"},"organization":{"type":"string"},"notes":{"type":"string"},"role":{"type":"string","enum":["INVESTOR","OFFICER","PROGRAM_COORDINATOR","OTHER"]},"source":{"type":"string","enum":["USER_ENTERED","SUBMISSION_RECEIPT","INBOUND_RESPONSE","PUBLIC_SOURCE"]},"permission_basis":{"type":"string"},"channel":{"type":"string","enum":["EMAIL","PHONE","LINKEDIN","OTHER"]},"email":{"type":["string","null"]},"created_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":["id","tenant_id","name","organization","notes","role","source","permission_basis","channel","email","created_at"],"additionalProperties":false}},"CrmTimeline":{"type":"object","properties":{"interactions":{"maxItems":500,"type":"array","items":{"type":"object","properties":{"id":{"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)$"},"tenant_id":{"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)$"},"contact_id":{"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)$"},"application_id":{"anyOf":[{"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)$"},{"type":"null"}]},"kind":{"type":"string","enum":["SUBMISSION_RECEIPT","RESPONSE","NOTE","THREAD","RECEIPT","RECONCILIATION"]},"occurred_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))$"},"summary":{"type":"string"},"thread_id":{"type":["string","null"]},"source_reference":{"anyOf":[{"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)$"},{"type":"null"}]},"created_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":["id","tenant_id","contact_id","application_id","kind","occurred_at","summary","thread_id","source_reference","created_at"],"additionalProperties":false}},"followUps":{"maxItems":500,"type":"array","items":{"type":"object","properties":{"id":{"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)$"},"tenant_id":{"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)$"},"contact_id":{"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)$"},"application_id":{"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)$"},"suggested_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))$"},"suggestion":{"type":"string"},"status":{"type":"string","enum":["SUGGESTED","PENDING_APPROVAL","APPROVED","DISMISSED","DONE"]},"approved_by":{"anyOf":[{"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)$"},{"type":"null"}]},"approved_at":{"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"}]},"created_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))$"},"updated_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":["id","tenant_id","contact_id","application_id","suggested_at","suggestion","status","approved_by","approved_at","created_at","updated_at"],"additionalProperties":false}}},"required":["interactions","followUps"],"additionalProperties":false},"FollowUpInput":{"type":"object","properties":{"contactId":{"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)$"},"suggestedAt":{"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))$"},"suggestion":{"type":"string","minLength":1,"maxLength":1000},"agentResult":{}},"required":["contactId","suggestedAt","suggestion"],"additionalProperties":false},"FollowUpTask":{"type":"object","properties":{"id":{"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)$"},"tenant_id":{"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)$"},"contact_id":{"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)$"},"application_id":{"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)$"},"suggested_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))$"},"suggestion":{"type":"string"},"status":{"type":"string","enum":["SUGGESTED","PENDING_APPROVAL","APPROVED","DISMISSED","DONE"]},"approved_by":{"anyOf":[{"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)$"},{"type":"null"}]},"approved_at":{"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"}]},"created_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))$"},"updated_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":["id","tenant_id","contact_id","application_id","suggested_at","suggestion","status","approved_by","approved_at","created_at","updated_at"],"additionalProperties":false},"FollowUpTaskList":{"type":"array","items":{"$ref":"#/components/schemas/FollowUpTask"},"maxItems":200},"OutreachConsentInput":{"type":"object","properties":{"contactId":{"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)$"},"channel":{"type":"string","enum":["EMAIL","WHATSAPP"]},"lawfulBasis":{"type":"string","minLength":1,"maxLength":300},"consentText":{"type":"string","minLength":1,"maxLength":1000}},"required":["contactId","channel","lawfulBasis","consentText"],"additionalProperties":false},"OutreachConsent":{"type":"object","properties":{"id":{"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)$"},"tenant_id":{"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)$"},"contact_id":{"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)$"},"channel":{"type":"string","enum":["EMAIL","WHATSAPP"]},"lawful_basis":{"type":"string"},"consent_text":{"type":"string"},"status":{"type":"string","enum":["GRANTED","WITHDRAWN","OPTED_OUT"]},"granted_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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updated_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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","tenant_id","contact_id","channel","lawful_basis","consent_text","status","granted_at","updated_at"],"additionalProperties":false},"OutreachDraftInput":{"type":"object","properties":{"contactId":{"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)$"},"consentId":{"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)$"},"channel":{"type":"string","enum":["EMAIL","WHATSAPP"]},"subject":{"default":"","type":"string","maxLength":300},"body":{"type":"string","minLength":1,"maxLength":10000}},"required":["contactId","consentId","channel","body"],"additionalProperties":false},"OutreachDraft":{"type":"object","properties":{"id":{"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)$"},"tenant_id":{"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)$"},"contact_id":{"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)$"},"consent_id":{"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)$"},"channel":{"type":"string","enum":["EMAIL","WHATSAPP"]},"subject":{"type":"string"},"body":{"type":"string"},"body_hash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"state":{"type":"string","enum":["DRAFT","APPROVED","SENT","CANCELLED"]},"approved_by":{"anyOf":[{"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)$"},{"type":"null"}]},"approved_at":{"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}]},"created_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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updated_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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","tenant_id","contact_id","consent_id","channel","subject","body","body_hash","state","approved_by","approved_at","created_at","updated_at"],"additionalProperties":false},"OutreachApprovalInput":{"type":"object","properties":{"approved":{"type":"boolean","const":true}},"required":["approved"],"additionalProperties":false},"OutreachOptOutInput":{"type":"object","properties":{"contactId":{"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)$"},"channel":{"type":"string","enum":["EMAIL","WHATSAPP"]}},"required":["contactId","channel"],"additionalProperties":false},"OutreachOptOut":{"type":"object","required":["optedOut","changed"],"additionalProperties":false,"properties":{"optedOut":{"const":true},"changed":{"type":"integer","minimum":0}}},"Empty":{"type":"object","additionalProperties":false},"InterviewPrep":{"type":"object","properties":{"stageId":{"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)$"},"prompts":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string","minLength":2,"maxLength":180},"prompt":{"type":"string","minLength":1,"maxLength":500},"source":{"type":"string","enum":["VERIFIED_FACT","REQUIREMENT"]},"factVersionId":{"anyOf":[{"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)$"},{"type":"null"}]}},"required":["key","prompt","source","factVersionId"],"additionalProperties":false}},"factCount":{"type":"integer","minimum":0,"maximum":9007199254740991},"requirementCount":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["stageId","prompts","factCount","requirementCount"],"additionalProperties":false},"DiligenceCreate":{"type":"object","properties":{"requestText":{"type":"string","minLength":1,"maxLength":5000},"evidenceIds":{"default":[],"maxItems":50,"type":"array","items":{"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)$"}},"factVersionIds":{"default":[],"maxItems":50,"type":"array","items":{"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":["requestText"],"additionalProperties":false},"DiligenceRecord":{"type":"object","properties":{"id":{"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)$"},"tenant_id":{"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)$"},"stage_id":{"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)$"},"request_text":{"type":"string"},"evidence_refs":{"type":"array","items":{"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)$"}},"fact_refs":{"type":"array","items":{"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)$"}},"status":{"type":"string","enum":["OPEN","MAPPED","SUBMITTED","CLOSED"]},"conflict":{"type":"boolean"},"uploadsEnabled":{"type":"boolean"},"created_by":{"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)$"},"created_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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updated_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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"submitted_at":{"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}]},"missing":{"type":"array","items":{"type":"string"}}},"required":["id","tenant_id","stage_id","request_text","evidence_refs","fact_refs","status","conflict","uploadsEnabled","created_by","created_at","updated_at","submitted_at","missing"],"additionalProperties":false},"DiligenceUpdate":{"type":"object","properties":{"evidenceIds":{"maxItems":50,"type":"array","items":{"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)$"}},"factVersionIds":{"maxItems":50,"type":"array","items":{"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)$"}},"status":{"type":"string","enum":["OPEN","MAPPED","SUBMITTED","CLOSED"]}},"additionalProperties":false},"DiligenceList":{"type":"array","items":{"$ref":"#/components/schemas/DiligenceRecord"},"maxItems":500},"UsageSummary":{"type":"object","additionalProperties":false,"required":["entitlements","usage","breakdown","reconciliations","billing","period"],"properties":{"entitlements":{"type":"array","items":{"type":"object","additionalProperties":true}},"usage":{"type":"array","items":{"type":"object","required":["feature","units"],"properties":{"feature":{"type":"string"},"units":{"type":"string"}}}},"breakdown":{"type":"array","items":{"type":"object","required":["feature","units","cost_micros"],"properties":{"feature":{"type":"string","enum":["LOCAL_RESEARCH","LLM_TOKENS","CRAWLED_PAGES","BROWSER_MINUTES","EMBEDDINGS","SEARCH_CALLS","OUTBOUND_NOTIFICATIONS"]},"units":{"type":"string"},"cost_micros":{"type":"string"}}}},"reconciliations":{"type":"array","items":{"type":"object","additionalProperties":true}},"billing":{"type":"string"},"period":{"type":"string"}}},"InvoiceList":{"type":"array","maxItems":100,"items":{"type":"object","additionalProperties":false,"required":["id","provider","provider_id","amount","currency","status","period_start","period_end","hosted_url","created_at"],"properties":{"id":{"type":"string","format":"uuid"},"provider":{"type":"string","enum":["stripe"]},"provider_id":{"type":"string"},"amount":{"oneOf":[{"type":"integer"},{"type":"string","pattern":"^\\d+$"}]},"currency":{"type":"string","pattern":"^[A-Z]{3}$"},"status":{"type":"string","enum":["DRAFT","OPEN","PAID","VOID","UNCOLLECTIBLE","REFUNDED","PARTIALLY_REFUNDED"]},"period_start":{"type":["string","null"],"format":"date-time"},"period_end":{"type":["string","null"],"format":"date-time"},"hosted_url":{"type":["string","null"],"format":"uri"},"created_at":{"type":"string","format":"date-time"}}}},"OrganizationCreate":{"type":"object","properties":{"name":{"type":"string","minLength":2,"maxLength":100}},"required":["name"],"additionalProperties":false},"OrganizationRecord":{"type":"object","required":["id","name"],"additionalProperties":false,"properties":{"id":{"type":"string","format":"uuid"},"name":{"type":"string"}}},"InvitationCreate":{"type":"object","properties":{"email":{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"role":{"type":"string","enum":["ADMIN","FOUNDER_EDITOR","ANALYST","REVIEWER","AUDITOR","BILLING_ADMIN","LEGAL","MEMBER","VIEWER"]}},"required":["email","role"],"additionalProperties":false},"InvitationCreated":{"type":"object","properties":{"token":{"type":"string","pattern":"^[a-f0-9]{64}$"},"expiresIn":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"delivery":{"type":"string","enum":["email_logged","email_sent","email_failed"]},"acceptPath":{"type":"string","pattern":"^\\/\\?auth=invite&token=[a-f0-9]{64}&tenant=[0-9a-f-]{36}$"}},"required":["token","expiresIn","delivery","acceptPath"],"additionalProperties":false},"InvitationAccept":{"type":"object","properties":{"token":{"type":"string","pattern":"^[a-f0-9]{64}$"},"tenantId":{"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":["token","tenantId"],"additionalProperties":false},"InvitationList":{"type":"array","items":{"type":"object","properties":{"id":{"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)$"},"email":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"role":{"type":"string","enum":["ADMIN","FOUNDER_EDITOR","ANALYST","REVIEWER","AUDITOR","BILLING_ADMIN","LEGAL","MEMBER","VIEWER"]},"expires_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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"accepted_at":{"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}]},"revoked_at":{"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}]}},"required":["id","email","role","expires_at","accepted_at","revoked_at"],"additionalProperties":false}},"MembershipList":{"type":"array","items":{"type":"object","properties":{"user_id":{"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)$"},"email":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"role":{"type":"string","enum":["OWNER","ADMIN","FOUNDER_EDITOR","ANALYST","REVIEWER","AUDITOR","BILLING_ADMIN","SUPPORT_RO","LEGAL","MEMBER","VIEWER"]},"revoked_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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["user_id","email","role","revoked_at"],"additionalProperties":false}},"MembershipRoleUpdate":{"type":"object","properties":{"role":{"type":"string","enum":["ADMIN","FOUNDER_EDITOR","ANALYST","REVIEWER","AUDITOR","BILLING_ADMIN","LEGAL","MEMBER","VIEWER"]}},"required":["role"],"additionalProperties":false},"MembershipRole":{"type":"object","required":["userId","role"],"additionalProperties":false,"properties":{"userId":{"type":"string","format":"uuid"},"role":{"type":"string"}}},"MembershipRevoked":{"type":"object","required":["revoked","userId","sessionsRevoked"],"additionalProperties":false,"properties":{"revoked":{"const":true},"userId":{"type":"string","format":"uuid"},"sessionsRevoked":{"type":"integer","minimum":0}}},"MutationOk":{"type":"object","properties":{"ok":{"type":"boolean","const":true}},"required":["ok"],"additionalProperties":false},"SupportGrantCreate":{"type":"object","properties":{"supportUserId":{"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)$"},"reason":{"type":"string","minLength":10,"maxLength":1000},"durationMinutes":{"type":"integer","minimum":1,"maximum":60}},"required":["supportUserId","reason","durationMinutes"],"additionalProperties":false},"SupportGrant":{"type":"object","properties":{"id":{"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)$"},"tenant_id":{"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)$"},"support_user_id":{"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)$"},"granted_by":{"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)$"},"reason":{"type":"string"},"starts_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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"expires_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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"revoked_at":{"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}]}},"required":["id","tenant_id","support_user_id","granted_by","reason","starts_at","expires_at","revoked_at"],"additionalProperties":false},"DataRequestCreate":{"type":"object","properties":{"requestKey":{"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)$"},"scope":{"type":"string","enum":["TENANT","PROJECT"]},"projectId":{"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":["requestKey","scope"],"additionalProperties":false},"DataRequest":{"type":"object","properties":{"id":{"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)$"},"kind":{"type":"string","enum":["EXPORT","DELETE"]},"scope":{"type":"string","enum":["TENANT","PROJECT"]},"projectId":{"anyOf":[{"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)$"},{"type":"null"}]},"state":{"type":"string","enum":["REQUESTED","COMPLETED","PLANNED","FAILED"]},"tableProgress":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"action":{"type":"string","enum":["EXPORTED","EXCLUDED","WOULD_DELETE","RETAINED","DELETED","ANONYMISED","SKIPPED","FAILED"]},"rows":{"type":"integer","minimum":0,"maximum":9007199254740991},"truncated":{"type":"boolean"},"reason":{"type":"string","maxLength":200}},"required":["action","rows"],"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"completedAt":{"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}]},"download":{"anyOf":[{"type":"object","properties":{"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["expiresAt","sha256"],"additionalProperties":false},{"type":"null"}]},"execution":{"type":"string","enum":["NOT_APPLICABLE","BLOCKED_PENDING_LEGAL_REVIEW","QUEUED","RUNNING","COMPLETED","FAILED"]},"confirmedAt":{"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}]},"receipt":{"anyOf":[{"type":"object","properties":{"startedAt":{"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"finishedAt":{"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"tables":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"action":{"type":"string","enum":["EXPORTED","EXCLUDED","WOULD_DELETE","RETAINED","DELETED","ANONYMISED","SKIPPED","FAILED"]},"rows":{"type":"integer","minimum":0,"maximum":9007199254740991},"truncated":{"type":"boolean"},"reason":{"type":"string","maxLength":200}},"required":["action","rows"],"additionalProperties":false}},"totals":{"type":"object","properties":{"deleted":{"type":"integer","minimum":0,"maximum":9007199254740991},"anonymised":{"type":"integer","minimum":0,"maximum":9007199254740991},"retained":{"type":"integer","minimum":0,"maximum":9007199254740991},"failedTables":{"maxItems":200,"type":"array","items":{"type":"string"}}},"required":["deleted","anonymised","retained","failedTables"],"additionalProperties":false},"storage":{"type":"object","properties":{"objectsFound":{"type":"integer","minimum":0,"maximum":9007199254740991},"objectsDeleted":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["objectsFound","objectsDeleted"],"additionalProperties":false},"vectors":{"type":"object","properties":{"enabled":{"type":"boolean"},"tombstoned":{"type":"integer","minimum":0,"maximum":9007199254740991},"removed":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["enabled","tombstoned","removed"],"additionalProperties":false},"backupPolicy":{"type":"string","const":"BACKUPS_EXPIRE_PER_RETENTION_POLICY"}},"required":["startedAt","finishedAt","tables","totals","storage","vectors","backupPolicy"],"additionalProperties":false},{"type":"null"}]}},"required":["id","kind","scope","projectId","state","tableProgress","createdAt","completedAt","download","execution","confirmedAt","receipt"],"additionalProperties":false},"DataRequestList":{"maxItems":50,"type":"array","items":{"type":"object","properties":{"id":{"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)$"},"kind":{"type":"string","enum":["EXPORT","DELETE"]},"scope":{"type":"string","enum":["TENANT","PROJECT"]},"projectId":{"anyOf":[{"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)$"},{"type":"null"}]},"state":{"type":"string","enum":["REQUESTED","COMPLETED","PLANNED","FAILED"]},"tableProgress":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"action":{"type":"string","enum":["EXPORTED","EXCLUDED","WOULD_DELETE","RETAINED","DELETED","ANONYMISED","SKIPPED","FAILED"]},"rows":{"type":"integer","minimum":0,"maximum":9007199254740991},"truncated":{"type":"boolean"},"reason":{"type":"string","maxLength":200}},"required":["action","rows"],"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"completedAt":{"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}]},"download":{"anyOf":[{"type":"object","properties":{"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"}},"required":["expiresAt","sha256"],"additionalProperties":false},{"type":"null"}]},"execution":{"type":"string","enum":["NOT_APPLICABLE","BLOCKED_PENDING_LEGAL_REVIEW","QUEUED","RUNNING","COMPLETED","FAILED"]},"confirmedAt":{"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}]},"receipt":{"anyOf":[{"type":"object","properties":{"startedAt":{"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"finishedAt":{"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"tables":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"object","properties":{"action":{"type":"string","enum":["EXPORTED","EXCLUDED","WOULD_DELETE","RETAINED","DELETED","ANONYMISED","SKIPPED","FAILED"]},"rows":{"type":"integer","minimum":0,"maximum":9007199254740991},"truncated":{"type":"boolean"},"reason":{"type":"string","maxLength":200}},"required":["action","rows"],"additionalProperties":false}},"totals":{"type":"object","properties":{"deleted":{"type":"integer","minimum":0,"maximum":9007199254740991},"anonymised":{"type":"integer","minimum":0,"maximum":9007199254740991},"retained":{"type":"integer","minimum":0,"maximum":9007199254740991},"failedTables":{"maxItems":200,"type":"array","items":{"type":"string"}}},"required":["deleted","anonymised","retained","failedTables"],"additionalProperties":false},"storage":{"type":"object","properties":{"objectsFound":{"type":"integer","minimum":0,"maximum":9007199254740991},"objectsDeleted":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["objectsFound","objectsDeleted"],"additionalProperties":false},"vectors":{"type":"object","properties":{"enabled":{"type":"boolean"},"tombstoned":{"type":"integer","minimum":0,"maximum":9007199254740991},"removed":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["enabled","tombstoned","removed"],"additionalProperties":false},"backupPolicy":{"type":"string","const":"BACKUPS_EXPIRE_PER_RETENTION_POLICY"}},"required":["startedAt","finishedAt","tables","totals","storage","vectors","backupPolicy"],"additionalProperties":false},{"type":"null"}]}},"required":["id","kind","scope","projectId","state","tableProgress","createdAt","completedAt","download","execution","confirmedAt","receipt"],"additionalProperties":false}},"ExportDownload":{"type":"object","properties":{"requestId":{"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)$"},"scope":{"type":"string","enum":["TENANT","PROJECT"]},"projectId":{"anyOf":[{"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)$"},{"type":"null"}]},"generatedAt":{"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"tables":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{"type":"array","items":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}}},"excluded":{"type":"array","items":{"type":"string"}},"binaryContentIncluded":{"type":"boolean","const":false}},"required":["requestId","scope","projectId","generatedAt","tables","excluded","binaryContentIncluded"],"additionalProperties":false},"PortfolioClientCreate":{"type":"object","properties":{"projectId":{"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)$"},"clientName":{"type":"string","minLength":2,"maxLength":200},"exportOwnerEmail":{"type":"string","maxLength":254,"format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"consentConfirmed":{"type":"boolean","const":true}},"required":["projectId","clientName","exportOwnerEmail","consentConfirmed"],"additionalProperties":false},"PortfolioClient":{"type":"object","properties":{"id":{"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)$"},"projectId":{"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)$"},"clientName":{"type":"string"},"exportOwnerEmail":{"type":"string"},"consentState":{"type":"string","enum":["ACTIVE","WITHDRAWN"]},"consentRecordedAt":{"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"consentWithdrawnAt":{"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}]},"grants":{"type":"array","items":{"type":"object","properties":{"id":{"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)$"},"memberId":{"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)$"},"permission":{"type":"string","enum":["READ","WRITE"]},"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"revokedAt":{"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}]}},"required":["id","memberId","permission","expiresAt","revokedAt"],"additionalProperties":false}}},"required":["id","projectId","clientName","exportOwnerEmail","consentState","consentRecordedAt","consentWithdrawnAt","grants"],"additionalProperties":false},"PortfolioClientList":{"maxItems":200,"type":"array","items":{"type":"object","properties":{"id":{"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)$"},"projectId":{"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)$"},"clientName":{"type":"string"},"exportOwnerEmail":{"type":"string"},"consentState":{"type":"string","enum":["ACTIVE","WITHDRAWN"]},"consentRecordedAt":{"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"consentWithdrawnAt":{"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}]},"grants":{"type":"array","items":{"type":"object","properties":{"id":{"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)$"},"memberId":{"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)$"},"permission":{"type":"string","enum":["READ","WRITE"]},"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"revokedAt":{"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}]}},"required":["id","memberId","permission","expiresAt","revokedAt"],"additionalProperties":false}}},"required":["id","projectId","clientName","exportOwnerEmail","consentState","consentRecordedAt","consentWithdrawnAt","grants"],"additionalProperties":false}},"ClientGrantCreate":{"type":"object","properties":{"memberId":{"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)$"},"permission":{"type":"string","enum":["READ","WRITE"]},"expiresInDays":{"type":"integer","minimum":1,"maximum":365}},"required":["memberId","permission","expiresInDays"],"additionalProperties":false},"AgentRunCreate":{"type":"object","properties":{"requestKey":{"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)$"},"manager":{"type":"string","minLength":1,"maxLength":100},"budgetTokens":{"type":"integer","minimum":1,"maximum":100000},"residency":{"default":"LOCAL","type":"string","enum":["LOCAL","EU","ANY"]},"steps":{"minItems":1,"maxItems":20,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","pattern":"^[A-Za-z0-9_.-]{1,64}$"},"agentId":{"type":"string","pattern":"^A-(0[1-9]|1[0-9]|2[0-4])$"},"projectId":{"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)$"},"input":{},"dependsOn":{"maxItems":20,"type":"array","items":{"type":"string"}}},"required":["key","agentId","projectId","input"],"additionalProperties":false}}},"required":["requestKey","manager","budgetTokens","steps"],"additionalProperties":false},"AgentRun":{"type":"object","properties":{"id":{"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)$"},"manager":{"type":"string"},"state":{"type":"string","enum":["QUEUED","RUNNING","COMPLETED","PARTIAL_FAILED","PARTIAL_BUDGET_EXCEEDED","CANCELLED"]},"budgetTokens":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"budgetUsed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"residency":{"anyOf":[{"type":"string","enum":["LOCAL","EU","ANY"]},{"type":"null"}]},"modelProvider":{"type":["string","null"]},"model":{"type":["string","null"]},"attempts":{"type":"integer","minimum":0,"maximum":9007199254740991},"incident":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","const":"WORKER_FAILURE"},"workers":{"type":"array","items":{"type":"string"}},"steps":{"type":"array","items":{"type":"string"}},"openCircuits":{"type":"array","items":{"type":"string"}}},"required":["kind","workers","steps","openCircuits"],"additionalProperties":false},{"type":"null"}]},"steps":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"worker":{"type":"string"},"status":{"type":"string","enum":["PENDING","SUCCEEDED","BLOCKED","FAILED","UNKNOWN","INVALID_OUTPUT","SKIPPED_CIRCUIT_OPEN","SKIPPED_DEPENDENCY","SKIPPED_BUDGET","CANCELLED"]},"attempts":{"type":"integer","minimum":0,"maximum":9007199254740991},"result":{},"error":{"type":["string","null"]},"dependsOn":{"type":"array","items":{"type":"string"}},"sourceRefs":{"type":"array","items":{"type":"string"}},"confidence":{"anyOf":[{"type":"number","minimum":0,"maximum":1},{"type":"null"}]}},"required":["key","worker","status","attempts","result","error","dependsOn","sourceRefs","confidence"],"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"startedAt":{"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}]},"cancelRequestedAt":{"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}]},"completedAt":{"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}]}},"required":["id","manager","state","budgetTokens","budgetUsed","residency","modelProvider","model","attempts","incident","steps","createdAt","startedAt","cancelRequestedAt","completedAt"],"additionalProperties":false},"AgentRunList":{"maxItems":50,"type":"array","items":{"type":"object","properties":{"id":{"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)$"},"manager":{"type":"string"},"state":{"type":"string","enum":["QUEUED","RUNNING","COMPLETED","PARTIAL_FAILED","PARTIAL_BUDGET_EXCEEDED","CANCELLED"]},"budgetTokens":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"budgetUsed":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"residency":{"anyOf":[{"type":"string","enum":["LOCAL","EU","ANY"]},{"type":"null"}]},"modelProvider":{"type":["string","null"]},"model":{"type":["string","null"]},"attempts":{"type":"integer","minimum":0,"maximum":9007199254740991},"incident":{"anyOf":[{"type":"object","properties":{"kind":{"type":"string","const":"WORKER_FAILURE"},"workers":{"type":"array","items":{"type":"string"}},"steps":{"type":"array","items":{"type":"string"}},"openCircuits":{"type":"array","items":{"type":"string"}}},"required":["kind","workers","steps","openCircuits"],"additionalProperties":false},{"type":"null"}]},"steps":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"worker":{"type":"string"},"status":{"type":"string","enum":["PENDING","SUCCEEDED","BLOCKED","FAILED","UNKNOWN","INVALID_OUTPUT","SKIPPED_CIRCUIT_OPEN","SKIPPED_DEPENDENCY","SKIPPED_BUDGET","CANCELLED"]},"attempts":{"type":"integer","minimum":0,"maximum":9007199254740991},"result":{},"error":{"type":["string","null"]},"dependsOn":{"type":"array","items":{"type":"string"}},"sourceRefs":{"type":"array","items":{"type":"string"}},"confidence":{"anyOf":[{"type":"number","minimum":0,"maximum":1},{"type":"null"}]}},"required":["key","worker","status","attempts","result","error","dependsOn","sourceRefs","confidence"],"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"startedAt":{"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}]},"cancelRequestedAt":{"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}]},"completedAt":{"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}]}},"required":["id","manager","state","budgetTokens","budgetUsed","residency","modelProvider","model","attempts","incident","steps","createdAt","startedAt","cancelRequestedAt","completedAt"],"additionalProperties":false}},"DeadLetterList":{"type":"array","items":{"type":"object","properties":{"id":{"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)$"},"jobId":{"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)$"},"fairShareKey":{"type":"string"},"attempts":{"type":"integer","minimum":0,"maximum":9007199254740991},"lastError":{"type":["string","null"]},"deadAt":{"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"requeuedAt":{"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}]}},"required":["id","jobId","fairShareKey","attempts","lastError","deadAt","requeuedAt"],"additionalProperties":false}},"RequeueResult":{"type":"object","properties":{"jobId":{"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)$"},"status":{"type":"string","const":"PENDING"},"attempts":{"type":"number","const":0},"deadLetter":{"type":"object","properties":{"id":{"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)$"},"jobId":{"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)$"},"fairShareKey":{"type":"string"},"attempts":{"type":"integer","minimum":0,"maximum":9007199254740991},"lastError":{"type":["string","null"]},"deadAt":{"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"requeuedAt":{"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}]}},"required":["id","jobId","fairShareKey","attempts","lastError","deadAt","requeuedAt"],"additionalProperties":false}},"required":["jobId","status","attempts","deadLetter"],"additionalProperties":false},"ExternalConnectorCreate":{"type":"object","properties":{"name":{"type":"string","minLength":2,"maxLength":100},"ownerMemberId":{"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)$"},"monthlyCostCents":{"type":"integer","minimum":0,"maximum":100000000},"permissions":{"maxItems":4,"type":"array","items":{"type":"string","enum":["READ","WRITE","SEND","WEBHOOK"]}},"engine":{"type":"string","enum":["N8N","TEMPORAL","ZAPIER","MAKE","OTHER"]},"workflowId":{"type":"string","pattern":"^[A-Za-z0-9_.:-]{2,100}$"},"webhookPath":{"default":null,"anyOf":[{"type":"string","pattern":"^\\/[A-Za-z0-9_./-]{1,200}$"},{"type":"null"}]},"enabled":{"default":false,"type":"boolean"}},"required":["name","ownerMemberId","monthlyCostCents","permissions","engine","workflowId"],"additionalProperties":false},"ExternalConnector":{"type":"object","properties":{"id":{"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)$"},"name":{"type":"string"},"ownerMemberId":{"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)$"},"monthlyCostCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"permissions":{"type":"array","items":{"type":"string","enum":["READ","WRITE","SEND","WEBHOOK"]}},"engine":{"type":"string","enum":["N8N","TEMPORAL","ZAPIER","MAKE","OTHER"]},"workflowId":{"type":"string"},"webhookPath":{"type":["string","null"]},"enabled":{"type":"boolean"},"webhookActive":{"type":"boolean"},"disabledAt":{"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}]},"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","name","ownerMemberId","monthlyCostCents","permissions","engine","workflowId","webhookPath","enabled","webhookActive","disabledAt","createdAt"],"additionalProperties":false},"ExternalConnectorList":{"maxItems":200,"type":"array","items":{"type":"object","properties":{"id":{"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)$"},"name":{"type":"string"},"ownerMemberId":{"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)$"},"monthlyCostCents":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"permissions":{"type":"array","items":{"type":"string","enum":["READ","WRITE","SEND","WEBHOOK"]}},"engine":{"type":"string","enum":["N8N","TEMPORAL","ZAPIER","MAKE","OTHER"]},"workflowId":{"type":"string"},"webhookPath":{"type":["string","null"]},"enabled":{"type":"boolean"},"webhookActive":{"type":"boolean"},"disabledAt":{"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}]},"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","name","ownerMemberId","monthlyCostCents","permissions","engine","workflowId","webhookPath","enabled","webhookActive","disabledAt","createdAt"],"additionalProperties":false}},"SecurityEvent":{"type":"object","properties":{"id":{"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)$"},"kind":{"type":"string","enum":["SUSPICIOUS_SUBMIT","BROAD_EXPORT","INJECTION_ATTEMPT","AUTH_ANOMALY","PRIVILEGE_CHANGE"]},"severity":{"type":"string","enum":["LOW","MEDIUM","HIGH","CRITICAL"]},"actorId":{"anyOf":[{"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)$"},{"type":"null"}]},"ref":{"type":["string","null"]},"evidence":{},"evidenceHash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"escalationState":{"type":"string","enum":["OPEN","ESCALATED","CONTAINED","CLOSED"]},"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","kind","severity","actorId","ref","evidence","evidenceHash","escalationState","createdAt"],"additionalProperties":false},"SecurityEventList":{"maxItems":200,"type":"array","items":{"type":"object","properties":{"id":{"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)$"},"kind":{"type":"string","enum":["SUSPICIOUS_SUBMIT","BROAD_EXPORT","INJECTION_ATTEMPT","AUTH_ANOMALY","PRIVILEGE_CHANGE"]},"severity":{"type":"string","enum":["LOW","MEDIUM","HIGH","CRITICAL"]},"actorId":{"anyOf":[{"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)$"},{"type":"null"}]},"ref":{"type":["string","null"]},"evidence":{},"evidenceHash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"escalationState":{"type":"string","enum":["OPEN","ESCALATED","CONTAINED","CLOSED"]},"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","kind","severity","actorId","ref","evidence","evidenceHash","escalationState","createdAt"],"additionalProperties":false}},"IncidentTrace":{"type":"object","properties":{"event":{"type":"object","properties":{"id":{"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)$"},"kind":{"type":"string","enum":["SUSPICIOUS_SUBMIT","BROAD_EXPORT","INJECTION_ATTEMPT","AUTH_ANOMALY","PRIVILEGE_CHANGE"]},"severity":{"type":"string","enum":["LOW","MEDIUM","HIGH","CRITICAL"]},"actorId":{"anyOf":[{"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)$"},{"type":"null"}]},"ref":{"type":["string","null"]},"evidence":{},"evidenceHash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"escalationState":{"type":"string","enum":["OPEN","ESCALATED","CONTAINED","CLOSED"]},"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","kind","severity","actorId","ref","evidence","evidenceHash","escalationState","createdAt"],"additionalProperties":false},"scope":{"type":"string","enum":["FULL","SUPPORT_LIMITED"]},"steps":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"worker":{"type":"string"},"status":{"type":"string"},"attempts":{"type":"integer","minimum":-9007199254740991,"maximum":9007199254740991},"result":{},"error":{"type":["string","null"]}},"required":["key","worker","status","attempts","result","error"],"additionalProperties":false}},"lastSafeCheckpoint":{"type":["string","null"]}},"required":["event","scope","steps","lastSafeCheckpoint"],"additionalProperties":false},"EscalationUpdate":{"type":"object","properties":{"state":{"type":"string","enum":["ESCALATED","CONTAINED","CLOSED"]}},"required":["state"],"additionalProperties":false},"FounderDashboard":{"type":"object","properties":{"projectId":{"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)$"},"sampleData":{"type":"boolean"},"readiness":{"anyOf":[{"type":"object","properties":{"percent":{"type":"integer","minimum":0,"maximum":100},"level":{"type":"string"},"missing":{"maxItems":30,"type":"array","items":{"type":"object","properties":{"key":{"type":"string","maxLength":64},"section":{"type":"string","enum":["company","product","teamTraction","fundingMarket"]},"status":{"type":"string","enum":["MISSING","NOT_MEASURED","UNCONFIRMED"]}},"required":["key","section","status"],"additionalProperties":false}}},"required":["percent","level"],"additionalProperties":false},{"type":"null"}]},"facts":{"type":"object","properties":{"total":{"type":"integer","minimum":0,"maximum":9007199254740991},"verified":{"type":"integer","minimum":0,"maximum":9007199254740991},"unverified":{"type":"integer","minimum":0,"maximum":9007199254740991},"stale":{"type":"integer","minimum":0,"maximum":9007199254740991},"staleKeys":{"maxItems":100,"type":"array","items":{"type":"string","maxLength":64}}},"required":["total","verified","unverified","stale"],"additionalProperties":false},"conflicts":{"type":"object","properties":{"open":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["open"],"additionalProperties":false},"pendingReview":{"type":"object","properties":{"conflicts":{"type":"integer","minimum":0,"maximum":9007199254740991},"approvals":{"type":"integer","minimum":0,"maximum":9007199254740991},"total":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["conflicts","approvals","total"],"additionalProperties":false},"risk":{"type":"object","properties":{"level":{"type":"string","enum":["LOW","MEDIUM","HIGH"]},"reasons":{"type":"array","items":{"type":"string"}}},"required":["level","reasons"],"additionalProperties":false},"topOpportunities":{"maxItems":5,"type":"array","items":{"type":"object","properties":{"opportunityId":{"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)$"},"title":{"type":"string"},"gate":{"type":"string","enum":["PASS","CONDITIONAL","UNCLEAR"]},"score":{"anyOf":[{"type":"integer","minimum":0,"maximum":100},{"type":"null"}]},"decidedAt":{"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["opportunityId","title","gate","score","decidedAt"],"additionalProperties":false}},"deadlines":{"type":"object","properties":{"nearest":{"anyOf":[{"type":"object","properties":{"date":{"type":"string","format":"date","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])))$"},"kind":{"type":"string","enum":["APPLICATION","STAGE"]},"ref":{"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)$"},"label":{"type":"string","maxLength":200},"applicationId":{"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":["date","kind","ref","label"],"additionalProperties":false},{"type":"null"}]},"upcoming":{"maxItems":5,"type":"array","items":{"type":"object","properties":{"date":{"type":"string","format":"date","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])))$"},"kind":{"type":"string","enum":["APPLICATION","STAGE"]},"ref":{"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)$"},"label":{"type":"string","maxLength":200},"applicationId":{"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":["date","kind","ref","label"],"additionalProperties":false}},"overdue":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["nearest","upcoming","overdue"],"additionalProperties":false},"aiSpend":{"type":"object","properties":{"costMicros":{"type":"string","pattern":"^\\d+$"},"period":{"type":"string","const":"MONTH_TO_DATE"},"scope":{"type":"string","const":"TENANT"}},"required":["costMicros","period","scope"],"additionalProperties":false}},"required":["projectId","sampleData","readiness","facts","conflicts","pendingReview","risk","topOpportunities","deadlines","aiSpend"],"additionalProperties":false},"Funnel":{"type":"object","properties":{"stages":{"minItems":8,"maxItems":8,"type":"array","items":{"type":"object","properties":{"stage":{"type":"string","enum":["PROJECT_CREATED","PROFILE_UPDATED","DRAFT_COMPILED","APPLICATION_CREATED","APPROVAL_REQUESTED","APPROVED","SUBMITTED","AWARDED"]},"denominator":{"type":"string","enum":["projects","drafts","applications","approval_requests"]},"count":{"type":"integer","minimum":0,"maximum":9007199254740991},"rateFromPrevious":{"anyOf":[{"type":"object","properties":{"numerator":{"type":"integer","minimum":0,"maximum":9007199254740991},"denominator":{"type":"integer","minimum":0,"maximum":9007199254740991},"rate":{"anyOf":[{"type":"number","minimum":0},{"type":"null"}]}},"required":["numerator","denominator","rate"],"additionalProperties":false},{"type":"null"}]}},"required":["stage","denominator","count","rateFromPrevious"],"additionalProperties":false}},"source":{"type":"string","const":"funnel_events"},"matchesAuditTrail":{"type":"boolean"},"lastEventAt":{"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}]}},"required":["stages","source","matchesAuditTrail","lastEventAt"],"additionalProperties":false},"ReleaseChecklist":{"type":"object","properties":{"gates":{"minItems":20,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-z0-9-]{2,60}$"},"title":{"type":"string"},"critical":{"type":"boolean"},"evidence":{"type":"string"}},"required":["id","title","critical","evidence"],"additionalProperties":false}},"nonCriticalFloor":{"type":"number","minimum":0,"maximum":1},"records":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"id":{"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)$"},"releaseRef":{"type":"string"},"environment":{"type":"string","enum":["STAGING","PRODUCTION"]},"decision":{"type":"string","enum":["GO","NO_GO"]},"reasons":{"type":"array","items":{"type":"string"}},"signed":{"type":"boolean"},"signedBy":{"type":["string","null"]},"signedAt":{"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}]},"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"gates":{"type":"array","items":{"type":"object","properties":{"gateId":{"type":"string"},"critical":{"type":"boolean"},"status":{"type":"string","enum":["PASS","FAIL","SKIPPED","MISSING"]},"evidenceRef":{"type":["string","null"]},"evidenceHash":{"type":["string","null"]}},"required":["gateId","critical","status","evidenceRef","evidenceHash"],"additionalProperties":false}}},"required":["id","releaseRef","environment","decision","reasons","signed","signedBy","signedAt","createdAt","gates"],"additionalProperties":false}}},"required":["gates","nonCriticalFloor","records"],"additionalProperties":false},"ProjectCreate":{"type":"object","properties":{"name":{"type":"string","minLength":2,"maxLength":150},"stage":{"type":"string","enum":["IDEA","PRE_SEED","SEED","GROWTH"]}},"required":["name","stage"],"additionalProperties":false},"ProjectRecord":{"type":"object","properties":{"id":{"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)$"},"tenant_id":{"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)$"},"name":{"type":"string","minLength":2,"maxLength":150},"stage":{"type":"string","enum":["IDEA","PRE_SEED","SEED","GROWTH"]},"created_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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"archived_at":{"default":null,"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}]},"archived_by":{"default":null,"anyOf":[{"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)$"},{"type":"null"}]}},"required":["id","tenant_id","name","stage","created_at"],"additionalProperties":false},"EvidenceUploadInit":{"type":"object","properties":{"requestKey":{"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)$"},"filename":{"type":"string","minLength":1,"maxLength":120},"mime":{"type":"string","enum":["text/plain","text/csv","application/pdf","application/vnd.openxmlformats-officedocument.wordprocessingml.document","image/png","image/jpeg"]},"size":{"type":"integer","minimum":1,"maximum":5242880},"sizeClass":{"type":"string","enum":["SMALL","STANDARD","LARGE"]},"sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"},"sourceRef":{"type":"string","minLength":1,"maxLength":500}},"required":["requestKey","filename","mime","size","sha256","sourceRef"],"additionalProperties":false},"EvidenceUpload":{"type":"object","required":["id","state"],"additionalProperties":false,"properties":{"id":{"type":"string","format":"uuid"},"state":{"type":"string"}}},"ApplicationStageStatusUpdate":{"type":"object","properties":{"status":{"type":"string","enum":["PENDING","IN_PROGRESS","READY","SUBMITTED","COMPLETED","BLOCKED"]},"outcome":{"anyOf":[{"type":"string","maxLength":2000},{"type":"null"}]}},"required":["status"],"additionalProperties":false},"ApprovalInbox":{"maxItems":500,"type":"array","items":{"type":"object","properties":{"id":{"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)$"},"snapshot_kind":{"type":"string","enum":["SCREENING","LONG_FORM","INTERVIEW","DUE_DILIGENCE","FINAL_TERMS","DRAFT"]},"snapshot_id":{"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)$"},"snapshot_hash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"requested_by":{"type":"object","properties":{"id":{"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)$"},"name":{"type":"string","minLength":1}},"required":["id","name"],"additionalProperties":false},"required_role":{"type":"string","enum":["OWNER","ADMIN","REVIEWER"]},"expires_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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"stage_name":{"type":["string","null"]},"application_name":{"type":["string","null"]},"is_requester":{"type":"boolean"}},"required":["id","snapshot_kind","snapshot_id","snapshot_hash","requested_by","required_role","expires_at","stage_name","application_name","is_requester"],"additionalProperties":false}},"ApprovalListQuery":{"type":"object","properties":{"decision":{"default":"PENDING","type":"string","enum":["PENDING","APPROVED","REJECTED","EXPIRED","INVALIDATED"]}},"additionalProperties":false},"R3ActionDecision":{"oneOf":[{"type":"object","properties":{"decision":{"type":"string","const":"APPROVED"},"acceptedText":{"type":"string","minLength":1,"maxLength":10000},"signatureAttestation":{"type":"boolean","const":true},"mfaCode":{"type":"string","pattern":"^(?:[0-9]{6}|[a-f0-9]{32})$"}},"required":["decision","acceptedText","signatureAttestation","mfaCode"],"additionalProperties":false},{"type":"object","properties":{"decision":{"type":"string","const":"REJECTED"},"mfaCode":{"type":"string","pattern":"^(?:[0-9]{6}|[a-f0-9]{32})$"}},"required":["decision","mfaCode"],"additionalProperties":false}]},"R3ActionInbox":{"maxItems":500,"type":"array","items":{"type":"object","properties":{"id":{"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)$"},"application_id":{"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)$"},"action":{"type":"string","enum":["LEGAL_TEXT","EQUITY_COMMITMENT","CAP_TABLE_UPLOAD","FINANCIAL_TERMS"]},"accepted_text_hash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"requested_by":{"type":"object","properties":{"id":{"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)$"},"name":{"type":"string","minLength":1}},"required":["id","name"],"additionalProperties":false},"expires_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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"application_name":{"type":"string"},"is_requester":{"type":"boolean"}},"required":["id","application_id","action","accepted_text_hash","requested_by","expires_at","application_name","is_requester"],"additionalProperties":false}},"R3ActionListQuery":{"type":"object","properties":{"status":{"default":"PENDING_SECOND_APPROVAL","type":"string","enum":["PENDING_SECOND_APPROVAL","APPROVED","REJECTED"]}},"additionalProperties":false},"PackageEvidenceList":{"maxItems":500,"type":"array","items":{"type":"object","properties":{"id":{"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)$"},"filename":{"type":"string"},"version":{"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)$"},"sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"},"byte_size":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"mime":{"type":"string"}},"required":["id","filename","version","sha256","byte_size","mime"],"additionalProperties":false}},"PasswordChange":{"type":"object","properties":{"currentPassword":{"type":"string","minLength":1,"maxLength":128},"newPassword":{"type":"string","minLength":12,"maxLength":128}},"required":["currentPassword","newPassword"],"additionalProperties":false},"ActiveSessionList":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","pattern":"^[a-f0-9]{64}$"},"current":{"type":"boolean"},"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","current","expiresAt"],"additionalProperties":false}},"SessionMutation":{"type":"object","properties":{"ok":{"type":"boolean","const":true},"sessionsRevoked":{"type":"integer","minimum":0,"maximum":9007199254740991}},"required":["ok","sessionsRevoked"],"additionalProperties":false},"WorkspaceUpdate":{"type":"object","properties":{"name":{"type":"string","minLength":2,"maxLength":100}},"required":["name"],"additionalProperties":false},"WorkspaceUpdateResponse":{"type":"object","properties":{"name":{"type":"string","minLength":2,"maxLength":100}},"required":["name"],"additionalProperties":false},"AdminOverview":{"type":"object","properties":{"memberCount":{"type":"integer","minimum":0,"maximum":9007199254740991},"activeProjects":{"type":"integer","minimum":0,"maximum":9007199254740991},"facts":{"type":"integer","minimum":0,"maximum":9007199254740991},"opportunities":{"type":"integer","minimum":0,"maximum":9007199254740991},"applications":{"type":"integer","minimum":0,"maximum":9007199254740991},"openApprovals":{"type":"integer","minimum":0,"maximum":9007199254740991},"auditEvents":{"maxItems":10,"type":"array","items":{"type":"object","properties":{"id":{"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)$"},"actorId":{"anyOf":[{"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)$"},{"type":"null"}]},"action":{"type":"string"},"resourceId":{"type":["string","null"]},"detail":{},"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","actorId","action","resourceId","detail","createdAt"],"additionalProperties":false}}},"required":["memberCount","activeProjects","facts","opportunities","applications","openApprovals","auditEvents"],"additionalProperties":false},"StartupTeamMemberRecord":{"type":"object","properties":{"id":{"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)$"},"full_name":{"type":"string"},"role":{"type":"string"},"is_founder":{"type":"boolean"},"equity_percent":{"type":["number","null"]},"linkedin_url":{"type":["string","null"]}},"required":["id","full_name","role","is_founder","equity_percent","linkedin_url"]},"StartupTeamMemberPatch":{"type":"object","properties":{"full_name":{"type":"string","minLength":1,"maxLength":200},"role":{"type":"string","minLength":1,"maxLength":120},"is_founder":{"type":"boolean"},"equity_percent":{"anyOf":[{"type":"number","minimum":0,"maximum":100},{"type":"null"}]},"linkedin_url":{"anyOf":[{"type":"string","format":"uri"},{"type":"null"}]}},"additionalProperties":false},"MetricDeleteResult":{"type":"object","properties":{"deleted":{"type":"boolean","const":true},"id":{"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":["deleted","id"],"additionalProperties":false},"EvidenceRemoval":{"type":"object","properties":{"evidence_id":{"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)$"},"project_id":{"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)$"},"removed_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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["evidence_id","project_id","removed_at"],"additionalProperties":false},"ProjectPatch":{"type":"object","properties":{"name":{"type":"string","minLength":2,"maxLength":150},"stage":{"type":"string","enum":["IDEA","PRE_SEED","SEED","GROWTH"]}},"additionalProperties":false},"OpportunityDetail":{"type":"object","properties":{"id":{"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)$"},"payload":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"sourceUrl":{"type":"string","format":"uri"},"lifecycleStatus":{"type":"string","enum":["ACTIVE","DEAD_LINK","EXPIRED","DEADLINE_UNCONFIRMED"]},"reviewState":{"type":"string","enum":["NEW","REVIEWING","SHORTLISTED","REJECTED"]},"assigneeUserId":{"anyOf":[{"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)$"},{"type":"null"}]},"sourceConfidence":{"anyOf":[{"type":"number","minimum":0,"maximum":1},{"type":"null"}]},"firstSeenAt":{"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"lastCheckedAt":{"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}]},"deadline":{"anyOf":[{"type":"string","format":"date","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])))$"},{"type":"null"}]},"terms":{"type":"object","properties":{"summary":{"type":"string"},"currency":{"type":["string","null"]},"ticketMin":{"type":["number","null"]},"ticketMax":{"type":["number","null"]},"equityPercent":{"type":["number","null"]},"coFinancingPercent":{"type":["number","null"]}},"required":["summary","currency","ticketMin","ticketMax","equityPercent","coFinancingPercent"],"additionalProperties":false},"fitReasons":{"maxItems":100,"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"result":{"type":"string"},"reason":{"type":"string"}},"required":["key","result","reason"],"additionalProperties":false}},"hardGate":{"anyOf":[{"type":"string","enum":["PASS","CONDITIONAL","UNCLEAR","FAIL"]},{"type":"null"}]},"conflicts":{"maxItems":100,"type":"array","items":{"type":"string"}},"nextAction":{"type":"string"},"members":{"maxItems":500,"type":"array","items":{"type":"object","properties":{"userId":{"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)$"},"email":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"}},"required":["userId","email"],"additionalProperties":false}},"sourceChanges":{"maxItems":500,"type":"array","items":{"type":"object","properties":{"id":{"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)$"},"opportunityId":{"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)$"},"field":{"type":"string","minLength":1,"maxLength":100},"oldValue":{},"newValue":{},"sourceUrl":{"type":"string","format":"uri"},"fetchedAt":{"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"status":{"type":"string","enum":["PROPOSED","ACCEPTED","REJECTED"]},"decidedBy":{"anyOf":[{"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)$"},{"type":"null"}]},"decidedAt":{"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}]}},"required":["id","opportunityId","field","oldValue","newValue","sourceUrl","fetchedAt","status","decidedBy","decidedAt"],"additionalProperties":false}},"timeline":{"maxItems":1000,"type":"array","items":{"type":"object","properties":{"id":{"type":"string","minLength":1,"maxLength":200},"kind":{"type":"string","enum":["FIRST_SEEN","LAST_CHECKED","SOURCE_CHANGE","REVIEW_CHANGED","OWNER_CHANGED"]},"occurredAt":{"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"detail":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}}},"required":["id","kind","occurredAt","detail"],"additionalProperties":false}}},"required":["id","payload","sourceUrl","lifecycleStatus","reviewState","assigneeUserId","sourceConfidence","firstSeenAt","lastCheckedAt","deadline","terms","fitReasons","hardGate","conflicts","nextAction","members","sourceChanges","timeline"],"additionalProperties":false},"OpportunityReviewInput":{"type":"object","properties":{"reviewState":{"type":"string","enum":["NEW","REVIEWING","SHORTLISTED","REJECTED"]},"assigneeUserId":{"anyOf":[{"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)$"},{"type":"null"}]}},"required":["reviewState","assigneeUserId"],"additionalProperties":false},"OpportunityReviewResult":{"type":"object","properties":{"reviewState":{"type":"string","enum":["NEW","REVIEWING","SHORTLISTED","REJECTED"]},"assigneeUserId":{"anyOf":[{"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)$"},{"type":"null"}]},"opportunityId":{"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":["reviewState","assigneeUserId","opportunityId"],"additionalProperties":false},"OpportunitySourceChangeDecision":{"type":"object","properties":{"decision":{"type":"string","enum":["ACCEPT","REJECT"]}},"required":["decision"],"additionalProperties":false},"OpportunitySourceChange":{"type":"object","properties":{"id":{"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)$"},"opportunityId":{"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)$"},"field":{"type":"string","minLength":1,"maxLength":100},"oldValue":{},"newValue":{},"sourceUrl":{"type":"string","format":"uri"},"fetchedAt":{"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"status":{"type":"string","enum":["PROPOSED","ACCEPTED","REJECTED"]},"decidedBy":{"anyOf":[{"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)$"},{"type":"null"}]},"decidedAt":{"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}]}},"required":["id","opportunityId","field","oldValue","newValue","sourceUrl","fetchedAt","status","decidedBy","decidedAt"],"additionalProperties":false},"InvitationPreview":{"type":"object","properties":{"organization":{"type":"string"},"role":{"type":"string","enum":["ADMIN","FOUNDER_EDITOR","ANALYST","REVIEWER","AUDITOR","BILLING_ADMIN","LEGAL","MEMBER","VIEWER"]},"email":{"type":"string","format":"email","pattern":"^(?:[A-Za-z0-9_'+\\-]+\\.)*[A-Za-z0-9_'+\\-]*[A-Za-z0-9_+-]@(?:[A-Za-z0-9][A-Za-z0-9\\-]*\\.)+[A-Za-z]{2,}$"},"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"status":{"type":"string","enum":["PENDING","EXPIRED","ACCEPTED","REVOKED"]}},"required":["organization","role","email","expiresAt","status"],"additionalProperties":false},"WorkspaceList":{"type":"object","properties":{"currentTenantId":{"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)$"},"workspaces":{"maxItems":200,"type":"array","items":{"type":"object","properties":{"tenantId":{"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)$"},"organization":{"type":"string"},"role":{"type":"string","enum":["OWNER","ADMIN","FOUNDER_EDITOR","ANALYST","REVIEWER","AUDITOR","BILLING_ADMIN","SUPPORT_RO","LEGAL","MEMBER","VIEWER"]},"workspaceType":{"type":"string","enum":["FOUNDER","AGENCY","ANALYST"]},"current":{"type":"boolean"}},"required":["tenantId","organization","role","workspaceType","current"],"additionalProperties":false}}},"required":["currentTenantId","workspaces"],"additionalProperties":false},"FactReviewQueue":{"maxItems":200,"type":"array","items":{"type":"object","properties":{"id":{"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)$"},"project_fact_id":{"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)$"},"key":{"type":"string"},"version":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"type":{"anyOf":[{"type":"string","enum":["string","number","boolean"]},{"type":"null"}]},"value":{"anyOf":[{"anyOf":[{"type":"string","maxLength":5000},{"type":"number"},{"type":"boolean"}]},{"type":"null"}]},"unit":{"type":["string","null"]},"period":{"type":["string","null"]},"as_of":{"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}]},"source":{"type":"object","properties":{"evidence":{"type":["string","null"]},"url":{"type":["string","null"]}},"required":["evidence","url"],"additionalProperties":false},"confidence":{"type":"number","minimum":0,"maximum":1},"privacy":{"type":"string","enum":["PUBLIC","INTERNAL","CONFIDENTIAL","EQUITY"]},"actor_type":{"type":"string","enum":["USER","AI","SYSTEM","LEGACY"]},"actor_email":{"type":["string","null"]},"created_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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","project_fact_id","key","version","type","value","unit","period","as_of","source","confidence","privacy","actor_type","actor_email","created_at"],"additionalProperties":false}},"FactRejectInput":{"type":"object","properties":{"reason":{"type":"string","minLength":3,"maxLength":2000}},"required":["reason"],"additionalProperties":false},"FactRejectResponse":{"type":"object","properties":{"review":{"type":"object","properties":{"id":{"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)$"},"tenant_id":{"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)$"},"project_id":{"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)$"},"fact_version_id":{"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)$"},"decision":{"type":"string","enum":["APPROVED","REJECTED"]},"reason":{"type":["string","null"]},"result_version_id":{"anyOf":[{"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)$"},{"type":"null"}]},"reviewed_by":{"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)$"},"created_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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","tenant_id","project_id","fact_version_id","decision","reason","result_version_id","reviewed_by","created_at"],"additionalProperties":false}},"required":["review"],"additionalProperties":false},"CanonicalFactInput":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-z0-9_]{1,63}$"},"state":{"default":"VALUE","type":"string","enum":["VALUE","NOT_MEASURED","NOT_APPLICABLE"]},"type":{"default":"string","type":"string","enum":["string","number","boolean"]},"value":{"anyOf":[{"type":"string","maxLength":5000},{"type":"number"},{"type":"boolean"}]},"unit":{"type":"string","minLength":1,"maxLength":40},"period":{"type":"string","minLength":1,"maxLength":100},"asOf":{"type":"string","format":"date","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])))$"},"privacy":{"default":"INTERNAL","type":"string","enum":["PUBLIC","INTERNAL","CONFIDENTIAL","EQUITY"]},"evidence":{"type":"string","minLength":3,"maxLength":2000},"sourceUrl":{"type":"string","format":"uri"}},"required":["key"],"additionalProperties":false},"CanonicalFactVersion":{"type":"object","properties":{"id":{"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)$"},"tenant_id":{"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)$"},"project_fact_id":{"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)$"},"project_id":{"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)$"},"key":{"type":"string"},"version":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"value":{"anyOf":[{"anyOf":[{"type":"string","maxLength":5000},{"type":"number"},{"type":"boolean"}]},{"type":"null"}]},"fact_status":{"type":"string","enum":["USER_CONFIRMED","NOT_MEASURED","NOT_APPLICABLE"]},"review_state":{"type":"string","const":"APPROVED"},"unit":{"type":["string","null"]},"period":{"type":["string","null"]},"as_of":{"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}]},"confidence":{"type":"number","minimum":0,"maximum":1},"privacy":{"type":"string","enum":["PUBLIC","INTERNAL","CONFIDENTIAL","EQUITY"]},"actor_type":{"type":"string","const":"USER"},"created_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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","tenant_id","project_fact_id","project_id","key","version","value","fact_status","review_state","unit","period","as_of","confidence","privacy","actor_type","created_at"],"additionalProperties":false},"SupplyValueInput":{"type":"object","properties":{"key":{"type":"string","pattern":"^[a-z][a-z0-9_]{1,63}$"},"value":{"type":"string","minLength":1,"maxLength":5000},"unit":{"type":"string","minLength":1,"maxLength":40},"sourceUrl":{"type":"string","format":"uri"},"language":{"default":"az","type":"string","pattern":"^[a-z]{2}(?:-[A-Z]{2})?$"},"tone":{"default":"CONCISE","type":"string","enum":["CONCISE","TECHNICAL"]}},"required":["key","value"],"additionalProperties":false},"SupplyValueResponse":{"type":"object","properties":{"fact":{"type":"object","properties":{"id":{"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)$"},"tenant_id":{"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)$"},"project_fact_id":{"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)$"},"project_id":{"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)$"},"key":{"type":"string"},"version":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991},"value":{"anyOf":[{"anyOf":[{"type":"string","maxLength":5000},{"type":"number"},{"type":"boolean"}]},{"type":"null"}]},"fact_status":{"type":"string","enum":["USER_CONFIRMED","NOT_MEASURED","NOT_APPLICABLE"]},"review_state":{"type":"string","const":"APPROVED"},"unit":{"type":["string","null"]},"period":{"type":["string","null"]},"as_of":{"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}]},"confidence":{"type":"number","minimum":0,"maximum":1},"privacy":{"type":"string","enum":["PUBLIC","INTERNAL","CONFIDENTIAL","EQUITY"]},"actor_type":{"type":"string","const":"USER"},"created_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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","tenant_id","project_fact_id","project_id","key","version","value","fact_status","review_state","unit","period","as_of","confidence","privacy","actor_type","created_at"],"additionalProperties":false},"resolution":{"type":"object","properties":{"stageId":{"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)$"},"answers":{"type":"array","items":{"type":"object","properties":{"key":{"type":"string"},"question":{"type":"string"},"value":{"type":["string","number","boolean","null"]},"status":{"type":"string","enum":["SUPPORTED","NOT_MEASURED","NOT_APPLICABLE","NEEDS_FOUNDER","PROVIDER_UNAVAILABLE"]},"step":{"type":"string","enum":["EXACT_FACT","EQUIVALENT_FACT","EVIDENCE","DERIVED_CALCULATION","EXTERNAL_RESEARCH","APPROVED_ANSWER","NARRATIVE","FOUNDER_INPUT"]},"citations":{"type":"array","items":{"type":"object","properties":{"evidenceId":{"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)$"},"span":{"type":"object","properties":{"start":{"type":"integer","minimum":0,"maximum":9007199254740991},"end":{"type":"integer","exclusiveMinimum":0,"maximum":9007199254740991}},"required":["start","end"],"additionalProperties":false},"quote":{"type":"string"}},"required":["evidenceId","span","quote"],"additionalProperties":false}},"founderAction":{"type":["string","null"]}},"required":["key","question","value","status","step","citations","founderAction"],"additionalProperties":false}}},"required":["stageId","answers"],"additionalProperties":false}},"required":["fact","resolution"],"additionalProperties":false},"OutreachSendInput":{"type":"object","properties":{"send":{"type":"boolean","const":true}},"required":["send"],"additionalProperties":false},"OutreachSendResult":{"type":"object","properties":{"duplicate":{"type":"boolean"},"draft":{"type":"object","properties":{"id":{"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)$"},"tenant_id":{"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)$"},"contact_id":{"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)$"},"consent_id":{"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)$"},"channel":{"type":"string","enum":["EMAIL","WHATSAPP"]},"subject":{"type":"string"},"body":{"type":"string"},"body_hash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"state":{"type":"string","enum":["DRAFT","APPROVED","SENT","CANCELLED"]},"approved_by":{"anyOf":[{"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)$"},{"type":"null"}]},"approved_at":{"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}]},"created_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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updated_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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","tenant_id","contact_id","consent_id","channel","subject","body","body_hash","state","approved_by","approved_at","created_at","updated_at"],"additionalProperties":false},"message":{"type":"object","properties":{"id":{"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)$"},"tenant_id":{"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)$"},"draft_id":{"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)$"},"provider":{"type":"string","enum":["EMAIL","WHATSAPP","IN_APP"]},"provider_message_id":{"type":["string","null"]},"status":{"type":"string","enum":["QUEUED","SENT","DELIVERED","BOUNCED","FAILED","OPTED_OUT"]},"receipt":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"receipt_hash":{"anyOf":[{"type":"string","pattern":"^[a-f0-9]{64}$"},{"type":"null"}]},"idempotency_key":{"type":"string"},"created_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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updated_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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","tenant_id","draft_id","provider","provider_message_id","status","receipt","receipt_hash","idempotency_key","created_at","updated_at"],"additionalProperties":false}},"required":["duplicate","draft","message"],"additionalProperties":false},"OutreachContactState":{"type":"object","properties":{"contactId":{"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)$"},"email":{"type":["string","null"]},"optedOut":{"type":"boolean"},"optedOutAt":{"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}]},"optOutSource":{"anyOf":[{"type":"string","enum":["LINK","STAFF","PROVIDER"]},{"type":"null"}]},"consents":{"maxItems":20,"type":"array","items":{"type":"object","properties":{"id":{"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)$"},"tenant_id":{"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)$"},"contact_id":{"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)$"},"channel":{"type":"string","enum":["EMAIL","WHATSAPP"]},"lawful_basis":{"type":"string"},"consent_text":{"type":"string"},"status":{"type":"string","enum":["GRANTED","WITHDRAWN","OPTED_OUT"]},"granted_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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updated_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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","tenant_id","contact_id","channel","lawful_basis","consent_text","status","granted_at","updated_at"],"additionalProperties":false}},"drafts":{"maxItems":200,"type":"array","items":{"type":"object","properties":{"id":{"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)$"},"tenant_id":{"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)$"},"contact_id":{"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)$"},"consent_id":{"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)$"},"channel":{"type":"string","enum":["EMAIL","WHATSAPP"]},"subject":{"type":"string"},"body":{"type":"string"},"body_hash":{"type":"string","pattern":"^[a-f0-9]{64}$"},"state":{"type":"string","enum":["DRAFT","APPROVED","SENT","CANCELLED"]},"approved_by":{"anyOf":[{"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)$"},{"type":"null"}]},"approved_at":{"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},{"type":"null"}]},"created_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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updated_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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","tenant_id","contact_id","consent_id","channel","subject","body","body_hash","state","approved_by","approved_at","created_at","updated_at"],"additionalProperties":false}},"messages":{"maxItems":500,"type":"array","items":{"type":"object","properties":{"id":{"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)$"},"tenant_id":{"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)$"},"draft_id":{"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)$"},"provider":{"type":"string","enum":["EMAIL","WHATSAPP","IN_APP"]},"provider_message_id":{"type":["string","null"]},"status":{"type":"string","enum":["QUEUED","SENT","DELIVERED","BOUNCED","FAILED","OPTED_OUT"]},"receipt":{"type":"object","propertyNames":{"type":"string"},"additionalProperties":{}},"receipt_hash":{"anyOf":[{"type":"string","pattern":"^[a-f0-9]{64}$"},{"type":"null"}]},"idempotency_key":{"type":"string"},"created_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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"},"updated_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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["id","tenant_id","draft_id","provider","provider_message_id","status","receipt","receipt_hash","idempotency_key","created_at","updated_at"],"additionalProperties":false}}},"required":["contactId","email","optedOut","optedOutAt","optOutSource","consents","drafts","messages"],"additionalProperties":false},"OutreachDeliveryReceipt":{"type":"object","properties":{"eventId":{"type":"string","minLength":1,"maxLength":200},"tenantId":{"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)$"},"messageId":{"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)$"},"status":{"type":"string","enum":["SENT","DELIVERED","BOUNCED","FAILED","OPTED_OUT"]},"providerMessageId":{"anyOf":[{"type":"string","minLength":1,"maxLength":300},{"type":"null"}]},"occurredAt":{"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|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"}},"required":["eventId","tenantId","messageId","status","occurredAt"],"additionalProperties":false},"OutreachDeliveryReceiptResult":{"type":"object","properties":{"received":{"type":"boolean","const":true},"duplicate":{"type":"boolean"},"handled":{"type":"boolean"}},"required":["received","duplicate","handled"],"additionalProperties":false},"DeletionConfirm":{"type":"object","properties":{"organizationName":{"type":"string","minLength":1,"maxLength":200},"mfaCode":{"type":"string","pattern":"^(?:[0-9]{6}|[a-f0-9]{32})$"}},"required":["organizationName","mfaCode"],"additionalProperties":false}},"headers":{"CorrelationId":{"description":"Server-generated request identifier; returned on all catch-all API responses.","schema":{"type":"string","format":"uuid"}}}},"paths":{"/auth/register":{"post":{"security":[],"summary":"Create user, organization and owner membership atomically","requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","required":["email","password","organization"],"properties":{"email":{"type":"string","format":"email"},"password":{"type":"string","minLength":12,"maxLength":128},"organization":{"type":"string","minLength":2}}}}}},"responses":{"201":{"description":"Session and CSRF cookies issued","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}},"409":{"description":"Already registered","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}}}}},"/auth/login":{"post":{"security":[],"summary":"Authenticate; session expires in 12 hours","responses":{"201":{"description":"Authenticated","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}},"401":{"description":"Invalid credentials","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}}}}},"/auth/me":{"get":{"summary":"Current user, tenant and role","responses":{"200":{"description":"Actor","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}},"401":{"description":"No valid session","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}}}}},"/auth/logout":{"post":{"summary":"Revoke session and expire cookies","responses":{"200":{"description":"Logged out","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}}}}},"/auth/workspace":{"post":{"summary":"Switch to tenant only after membership check","responses":{"200":{"description":"Switched","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}},"403":{"description":"No membership","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}}}}},"/projects":{"get":{"summary":"Tenant projects","responses":{"200":{"description":"Project array","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}}},"parameters":[{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["IDEA","PRE_SEED","SEED","GROWTH"]}},{"name":"archived","in":"query","required":false,"schema":{"type":"string","enum":["0","1"]}}]},"post":{"summary":"Create a project once per actor and Idempotency-Key; replay the original response","security":[{"session":[]}],"parameters":[{"name":"Idempotency-Key","in":"header","required":false,"schema":{"type":"string","maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectCreate"}}}},"responses":{"201":{"description":"Created tenant-scoped resource (or idempotent replay)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectRecord"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/projects/{id}/facts":{"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"get":{"summary":"All immutable fact revisions","responses":{"200":{"description":"Fact revisions","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}},"404":{"description":"Project not visible","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}}}},"post":{"summary":"Append user-confirmed revision; verified fact replacement forbidden","requestBody":{"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Fact"}}}},"responses":{"201":{"description":"Revision created","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}},"409":{"description":"Protected fact","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}}}}},"/projects/{id}/rounds":{"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"get":{"summary":"Funding rounds","responses":{"200":{"description":"Rounds","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}}}},"post":{"summary":"Create funding round","responses":{"201":{"description":"Created","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}}}}},"/opportunities":{"get":{"summary":"List opportunities with tenant canonical identity and source language","security":[{"session":[]}],"parameters":[],"responses":{"200":{"description":"Tenant-bound no-store result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpportunityCanonicalList"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"summary":"Import HTTPS provenance and typed requirements; deduplicate URL","responses":{"201":{"description":"Hierarchy and opportunity created","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}},"409":{"description":"Duplicate source","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}}}}},"/matching":{"get":{"summary":"Eligibility gate and deterministic weighted ranking","parameters":[{"name":"projectId","in":"query","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Explained PASS/CONDITIONAL/UNCLEAR/FAIL; FAIL has score 0","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}}}}},"/drafts":{"get":{"summary":"Tenant drafts","responses":{"200":{"description":"Draft array with hash and stage","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}}}},"post":{"summary":"Compile keys from supported canonical facts for eligible opportunity","responses":{"201":{"description":"Immutable initial snapshot created","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}},"409":{"description":"Gate blocks active application","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}}}}},"/drafts/{id}/{action}":{"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"action","in":"path","required":true,"schema":{"enum":["edit","review","approve","prepare","submit","preview","history"]}}],"post":{"summary":"Draft lifecycle; edit requires expectedHash and keys, approve requires hash, prepare requires idempotencyKey","description":"Edit resets approval; REVIEW required before approval. Approve rejects withheld answers. Prepare revalidates facts, eligibility and hash and writes a unique ledger row, without sending. Submit always returns 403. Preview records adapter-blocked task. History returns immutable snapshots for comparison.","responses":{"200":{"description":"State transition or history","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}},"201":{"description":"Preview request recorded","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}},"403":{"description":"Role denied or external send disabled","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}},"409":{"description":"Stale hash, stale evidence, invalid stage or replay","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}}}}},"/audit":{"get":{"summary":"Append-only tenant audit; owner/admin/reviewer","responses":{"200":{"description":"Latest 100 events","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}}}}},"/crm":{"get":{"summary":"Internal contacts","responses":{"200":{"description":"Contacts","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}}}},"post":{"summary":"Create internal contact; never sends email","responses":{"201":{"description":"Created","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}}}}},"/watches":{"get":{"summary":"Paused source watches","responses":{"200":{"description":"Watches","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}}}},"post":{"summary":"Record paused watch, no network activity","responses":{"201":{"description":"Created paused","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}}}}},"/invites":{"post":{"summary":"Owner/admin generates single-use token; manual delivery only","responses":{"201":{"description":"Token returned once, stored as hash, expires in 24h","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}}}}},"/invites/accept":{"post":{"summary":"Accept a live invitation for the authenticated email","security":[{"session":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvitationAccept"}}}},"responses":{"200":{"description":"Updated tenant-scoped membership or invitation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MutationOk"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/build":{"get":{"security":[],"summary":"Shared phase manifest with observed DB health","responses":{"200":{"description":"Six delivery phases and real evidence","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}}}}},"/health":{"get":{"security":[],"summary":"Database readiness probe","responses":{"200":{"description":"Reachable","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}},"503":{"description":"Database unavailable","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}}}}},"/openapi":{"get":{"security":[],"summary":"This specification","responses":{"200":{"description":"OpenAPI 3.1","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}}}}},"/projects/{id}/questions":{"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"get":{"summary":"Stage-aware canonical question templates for this tenant project","responses":{"200":{"description":"Question keys, Azerbaijani labels, answer types and required flags","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}},"404":{"description":"Project not visible","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}}}}},"/api/discovery/sources":{"get":{"summary":"Official source policy and tenant cache status","responses":{"200":{"description":"Success","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}},"400":{"description":"Invalid typed request","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}},"401":{"description":"Session required","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}},"403":{"description":"Tenant role, origin or CSRF denied","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}},"429":{"description":"Tenant request budget exceeded","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}},"503":{"description":"Disabled or source unavailable","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}}}}},"/api/discovery/preview":{"post":{"summary":"Bounded official public preview; no opportunity persistence","responses":{"200":{"description":"Success","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}},"400":{"description":"Invalid typed request","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}},"401":{"description":"Session required","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}},"403":{"description":"Tenant role, origin or CSRF denied","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}},"429":{"description":"Tenant request budget exceeded","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}},"503":{"description":"Disabled or source unavailable","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}}}}},"/api/discovery/import":{"post":{"summary":"Explicit approval imports an unexpired tenant preview as UNVERIFIED","responses":{"200":{"description":"Success","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}},"400":{"description":"Invalid typed request","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}},"401":{"description":"Session required","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}},"403":{"description":"Tenant role, origin or CSRF denied","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}},"429":{"description":"Tenant request budget exceeded","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}},"503":{"description":"Disabled or source unavailable","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}}}}},"/api/discovery/watch":{"post":{"summary":"Register tenant source query watch; no notifications","responses":{"200":{"description":"Success","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}},"400":{"description":"Invalid typed request","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}},"401":{"description":"Session required","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}},"403":{"description":"Tenant role, origin or CSRF denied","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}},"429":{"description":"Tenant request budget exceeded","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}},"503":{"description":"Disabled or source unavailable","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}}}}},"/api/discovery/refresh":{"post":{"summary":"Process at most two due tenant watches; no external sends","responses":{"200":{"description":"Success","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}},"400":{"description":"Invalid typed request","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}},"401":{"description":"Session required","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}},"403":{"description":"Tenant role, origin or CSRF denied","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}},"429":{"description":"Tenant request budget exceeded","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}},"503":{"description":"Disabled or source unavailable","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}}}}},"/api/discovery/events":{"get":{"summary":"Read tenant diff events","responses":{"200":{"description":"Success","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}},"400":{"description":"Invalid typed request","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}},"401":{"description":"Session required","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}},"403":{"description":"Tenant role, origin or CSRF denied","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}},"429":{"description":"Tenant request budget exceeded","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}},"503":{"description":"Disabled or source unavailable","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}}}}},"/api/agents/status":{"get":{"summary":"Non-secret enablement and key presence; no paid invocation","responses":{"200":{"description":"Success","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}},"400":{"description":"Invalid typed request","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}},"401":{"description":"Session required","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}},"403":{"description":"Tenant role, origin or CSRF denied","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}},"429":{"description":"Tenant request budget exceeded","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}},"503":{"description":"Disabled or source unavailable","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}}}}},"/api/agents/run":{"post":{"summary":"Tenant-scoped bounded paid specialist; explicit user approval, UUID replay key and committed monthly AI budget reservation required","responses":{"200":{"description":"Paid call completed; tenant reservation settled before response","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}},"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["results","authority","requestKey","spendAuthority"],"properties":{"results":{"type":"array","minItems":1,"maxItems":1,"items":{"type":"object","additionalProperties":true}},"authority":{"type":"string","const":"SUGGESTION_ONLY"},"requestKey":{"type":"string","format":"uuid"},"spendAuthority":{"type":"string","const":"COMMITTED_RESERVATION_SETTLED"}}}}}},"400":{"description":"Invalid typed request","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}},"401":{"description":"Session required","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}},"403":{"description":"Tenant role, origin or CSRF denied","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}},"409":{"description":"Duplicate reserved paid operation, monthly cap or provider settlement conflict"},"429":{"description":"Tenant request budget exceeded","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}},"503":{"description":"AI provider disabled or not configured; no paid call authorized","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["projectId","requestKey","specialist","approvedPaidCall"],"properties":{"projectId":{"type":"string","format":"uuid"},"requestKey":{"type":"string","format":"uuid","description":"Caller-supplied idempotency key, never reused for new paid calls"},"specialist":{"type":"string","enum":["SCOUT","COUNTERPARTY_RESEARCH","REQUIREMENT_PARSER","DATA_STEWARD","APPLICATION_QA"]},"approvedPaidCall":{"type":"boolean","const":true}}}}}}}},"/api/projects/{projectId}/evidence":{"get":{"summary":"Private canonical evidence get","parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"description":"Session and tenant/project authority required. Mutations require OWNER/ADMIN/MEMBER, same Origin and X-CSRF-Token. No external submission. See PRIVATE_EVIDENCE.md.","responses":{"200":{"description":"Tenant-scoped result","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}},"400":{"description":"Invalid input or checksum","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}},"401":{"description":"Session required","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}},"403":{"description":"Role, CSRF or origin denied","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}},"404":{"description":"Scoped resource not found","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}},"409":{"description":"Immutable version/idempotency conflict","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}},"503":{"description":"Storage configuration unavailable","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}}}},"post":{"summary":"Private canonical evidence post","parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"description":"Session and tenant/project authority required. Mutations require OWNER/ADMIN/MEMBER, same Origin and X-CSRF-Token. No external submission. See PRIVATE_EVIDENCE.md.","responses":{"200":{"description":"Tenant-scoped result","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}},"400":{"description":"Invalid input or checksum","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}},"401":{"description":"Session required","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}},"403":{"description":"Role, CSRF or origin denied","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}},"404":{"description":"Scoped resource not found","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}},"409":{"description":"Immutable version/idempotency conflict","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}},"503":{"description":"Storage configuration unavailable","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["requestKey","filename","mime","size","sha256","sourceRef"],"properties":{"requestKey":{"type":"string","format":"uuid"},"filename":{"type":"string","maxLength":120},"mime":{"enum":["text/plain","text/csv","application/pdf","image/png","image/jpeg"]},"size":{"type":"integer","minimum":1,"maximum":5242880},"sha256":{"type":"string","pattern":"^[a-f0-9]{64}$"},"sourceRef":{"type":"string","maxLength":500}}}}}}}},"/api/projects/{projectId}/evidence/{evidenceId}/content":{"get":{"summary":"Private canonical evidence get","parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"evidenceId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"description":"Session and tenant/project authority required. Mutations require OWNER/ADMIN/MEMBER, same Origin and X-CSRF-Token. No external submission. See PRIVATE_EVIDENCE.md.","responses":{"200":{"description":"Tenant-scoped result","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}},"400":{"description":"Invalid input or checksum","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}},"401":{"description":"Session required","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}},"403":{"description":"Role, CSRF or origin denied","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}},"404":{"description":"Scoped resource not found","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}},"409":{"description":"Immutable version/idempotency conflict","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}},"503":{"description":"Storage configuration unavailable","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}}}},"post":{"summary":"Private canonical evidence post","parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"evidenceId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"description":"Session and tenant/project authority required. Mutations require OWNER/ADMIN/MEMBER, same Origin and X-CSRF-Token. No external submission. See PRIVATE_EVIDENCE.md.","responses":{"200":{"description":"Tenant-scoped result","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}},"400":{"description":"Invalid input or checksum","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}},"401":{"description":"Session required","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}},"403":{"description":"Role, CSRF or origin denied","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}},"404":{"description":"Scoped resource not found","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}},"409":{"description":"Immutable version/idempotency conflict","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}},"503":{"description":"Storage configuration unavailable","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}}},"requestBody":{"required":true,"content":{"application/octet-stream":{"schema":{"type":"string","format":"binary","maxLength":5242880}}}}}},"/api/projects/{projectId}/retrieval":{"get":{"summary":"Private canonical evidence get","parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"q","in":"query","required":true,"schema":{"type":"string","minLength":1,"maxLength":200}}],"description":"Session and tenant/project authority required. Mutations require OWNER/ADMIN/MEMBER, same Origin and X-CSRF-Token. No external submission. See PRIVATE_EVIDENCE.md.","responses":{"200":{"description":"Tenant-scoped result","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}},"400":{"description":"Invalid input or checksum","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}},"401":{"description":"Session required","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}},"403":{"description":"Role, CSRF or origin denied","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}},"404":{"description":"Scoped resource not found","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}},"409":{"description":"Immutable version/idempotency conflict","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}},"503":{"description":"Storage configuration unavailable","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}}}}},"/api/projects/{projectId}/portal-previews":{"get":{"summary":"Durable read-only portal preview job get","parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"description":"Session and tenant/project authority required. Mutations require OWNER/ADMIN/MEMBER, same Origin and X-CSRF-Token. No external submission. See PRIVATE_EVIDENCE.md.","responses":{"200":{"description":"Tenant-scoped result","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}},"400":{"description":"Invalid input or checksum","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}},"401":{"description":"Session required","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}},"403":{"description":"Role, CSRF or origin denied","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}},"404":{"description":"Scoped resource not found","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}},"409":{"description":"Immutable version/idempotency conflict","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}},"503":{"description":"Storage configuration unavailable","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}}}},"post":{"summary":"Durable read-only portal preview job post","parameters":[{"name":"projectId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"description":"Session and tenant/project authority required. Mutations require OWNER/ADMIN/MEMBER, same Origin and X-CSRF-Token. No external submission. See PRIVATE_EVIDENCE.md.","responses":{"200":{"description":"Tenant-scoped result","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}},"400":{"description":"Invalid input or checksum","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}},"401":{"description":"Session required","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}},"403":{"description":"Role, CSRF or origin denied","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}},"404":{"description":"Scoped resource not found","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}},"409":{"description":"Immutable version/idempotency conflict","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}},"503":{"description":"Storage configuration unavailable","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}}},"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["requestKey","draftId","url"],"properties":{"requestKey":{"type":"string","format":"uuid"},"draftId":{"type":"string","format":"uuid"},"url":{"type":"string","format":"uri"}}}}}}}},"/privacy/export/dry-run":{"post":{"summary":"Owner/admin: enqueue counts-only project export dry-run; requestKey, correlationId, projectId UUIDs; CSRF required","responses":{"202":{"description":"Durable dry-run job accepted","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}},"403":{"description":"Denied","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}},"409":{"description":"Idempotency conflict","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}}}}},"/jobs/{id}":{"get":{"summary":"Owner/admin: tenant-scoped dry-run job status","responses":{"200":{"description":"Authorized result","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}},"403":{"description":"Denied","headers":{"x-correlation-id":{"$ref":"#/components/headers/CorrelationId"}}}}}},"/usage":{"get":{"summary":"Read tenant usage totals and monthly provider reconciliation history","security":[{"session":[]}],"parameters":[],"responses":{"200":{"description":"Tenant-bound no-store result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/UsageSummary"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/profile/answers":{"get":{"summary":"Read latest questionnaire drafts only; not canonical facts","security":[{"session":[]}],"parameters":[{"name":"projectId","in":"query","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Tenant-bound no-store result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileDraftRead"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"summary":"Append-only answer or explicit skip reason; revision CAS, no fact promotion","security":[{"session":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProfileDraftWrite"}}}},"responses":{"201":{"description":"Created tenant-scoped resource (or idempotent replay)","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/profile/answers/history":{"get":{"summary":"Immutable draft question revision history","security":[{"session":[]}],"parameters":[{"name":"projectId","in":"query","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"key","in":"query","required":true,"schema":{"type":"string","maxLength":64}}],"responses":{"200":{"description":"Tenant-bound no-store result","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/opportunities/saved-searches":{"get":{"summary":"List tenant/project saved search policies","security":[{"session":[]}],"parameters":[{"name":"projectId","in":"query","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Tenant-bound no-store result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SavedSearchList"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"summary":"Save strict advanced search policy v1","security":[{"session":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SavedSearchCreate"}}}},"responses":{"201":{"description":"Created tenant-scoped resource (or idempotent replay)","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/opportunities/saved-searches/revise":{"post":{"summary":"Create new immutable policy version with CAS","security":[{"session":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SavedSearchRevise"}}}},"responses":{"201":{"description":"Created tenant-scoped resource (or idempotent replay)","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/opportunities/saved-searches/history":{"get":{"summary":"Read prior versions and SHA-256 policy hashes","security":[{"session":[]}],"parameters":[{"name":"id","in":"query","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Tenant-bound no-store result","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/opportunities/saved-searches/run":{"post":{"summary":"Bounded read-only local execution; immutable receipt, no external side effects","security":[{"session":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SavedSearchRun"}}}},"responses":{"201":{"description":"Created tenant-scoped resource (or idempotent replay)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchRunReceipt"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/opportunities/saved-searches/runs":{"get":{"summary":"List tenant-scoped read-only search execution receipts","security":[{"session":[]}],"parameters":[{"name":"id","in":"query","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Tenant-bound no-store result","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/applications":{"get":{"summary":"List tenant applications by deadline with status and next action","security":[{"session":[]}],"parameters":[],"responses":{"200":{"description":"Tenant-bound no-store result","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"summary":"Create a DRAFT application for a tenant project","security":[{"session":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplicationCreate"}}}},"responses":{"201":{"description":"Created tenant-scoped resource (or idempotent replay)","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/applications/{id}/status":{"post":{"summary":"Audited status transition; SUBMITTED requires a recorded human approval","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplicationUpdate"}}}},"responses":{"201":{"description":"Created tenant-scoped resource (or idempotent replay)","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/applications/due":{"get":{"summary":"n8n reminders: applications due within N days (read-only)","security":[{"automationMachine":[]}],"parameters":[{"name":"x-funding-tenant-id","in":"header","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"days","in":"query","required":false,"schema":{"type":"integer","minimum":0,"maximum":365}}],"responses":{"200":{"description":"Tenant-bound no-store result","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/applications/{id}/economic-terms":{"put":{"summary":"Save user-entered, unverified economic terms on a tenant application","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplicationEconomicTerms"}}}},"responses":{"201":{"description":"Created tenant-scoped resource (or idempotent replay)","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/economic/compare":{"post":{"summary":"Side-by-side advisory comparison of 2-10 applications; uncalibrated, cannot submit","security":[{"session":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EconomicCompare"}}}},"responses":{"201":{"description":"Created tenant-scoped resource (or idempotent replay)","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/form-pilot/runs":{"get":{"summary":"List tenant Form Pilot runs with status, missing answers and receipts","security":[{"session":[]}],"parameters":[],"responses":{"200":{"description":"Tenant-bound no-store result","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"summary":"Queue a Form Pilot run for an official portal; DRY_RUN by default, never submits without a hash-bound approval","security":[{"session":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormPilotRunCreate"}}}},"responses":{"201":{"description":"Created tenant-scoped resource (or idempotent replay)","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/form-pilot/runs/{id}":{"get":{"summary":"Read one tenant Form Pilot run","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Tenant-bound no-store result","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/form-pilot/runs/{id}/screenshot":{"get":{"summary":"Latest private step screenshot (PNG) of a tenant Form Pilot run","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Tenant-bound no-store result","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/form-pilot/runs/{id}/approve-submit":{"post":{"summary":"OWNER/ADMIN: bind a recorded approval for the current draft hash and allow final submit","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormPilotApproveSubmit"}}}},"responses":{"201":{"description":"Created tenant-scoped resource (or idempotent replay)","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/form-pilot/runs/{id}/resume":{"post":{"summary":"Re-queue a run after a person resolved its human gate","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FormPilotResume"}}}},"responses":{"201":{"description":"Created tenant-scoped resource (or idempotent replay)","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/projects/{id}/startup-profile":{"get":{"summary":"Read the tenant-bound canonical startup profile studio view","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Tenant-bound no-store result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartupProfile"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"put":{"summary":"Append changed profile fields as USER_CONFIRMED fact versions","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartupProfilePatch"}}}},"responses":{"201":{"description":"Created tenant-scoped resource (or idempotent replay)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartupProfileSave"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/projects/{id}/readiness":{"get":{"summary":"Deterministic weighted startup profile readiness","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Tenant-bound no-store result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartupReadiness"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/projects/{id}/team":{"post":{"summary":"Add a project team member with founder equity cap validation","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartupTeamMember"}}}},"responses":{"201":{"description":"Created tenant-scoped resource (or idempotent replay)","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/projects/{id}/metrics":{"put":{"summary":"Upsert tenant-bound monthly metric datapoints","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartupMetrics"}}}},"responses":{"201":{"description":"Created tenant-scoped resource (or idempotent replay)","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/evidence/{id}/meta":{"patch":{"summary":"Update bounded evidence classification metadata","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvidenceMetadata"}}}},"responses":{"201":{"description":"Created tenant-scoped resource (or idempotent replay)","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"summary":"Hide immutable evidence with an append-only removal marker","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Evidence removal marker","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvidenceRemoval"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/projects/{id}/reindex":{"post":{"summary":"Reindex clean extracted project evidence when RAG is enabled","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"201":{"description":"Created tenant-scoped resource (or idempotent replay)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectReindexResult"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/projects/{id}/team/{memberId}":{"patch":{"summary":"Edit a project team member with founder equity cap validation","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"memberId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartupTeamMemberPatch"}}}},"responses":{"200":{"description":"Updated team member","content":{"application/json":{"schema":{"$ref":"#/components/schemas/StartupTeamMemberRecord"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"summary":"Delete a tenant-bound project team member","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"memberId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Deleted"},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/evidence/{id}/sensitivity":{"patch":{"summary":"Classify evidence sensitivity; confidential and equity documents stay out of shared indexes","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvidenceSensitivity"}}}},"responses":{"200":{"description":"Updated tenant-scoped evidence classification","content":{"application/json":{"schema":{"type":"object"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/projects/{id}/evidence/{evidenceId}/extract":{"post":{"summary":"Extract inert text, page-bound sections and bounded literal citations","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"evidenceId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Current immutable extraction result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvidenceExtraction"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/projects/{id}/evidence/{evidenceId}/sections":{"get":{"summary":"Read the immutable section tree for the current evidence version","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"evidenceId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Tenant-bound no-store result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DocumentSections"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/projects/{id}/facts/proposals":{"post":{"summary":"Persist an AI Data Steward proposal as UNVERIFIED; never promote it automatically","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactProposal"}}}},"responses":{"201":{"description":"Created tenant-scoped resource (or idempotent replay)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactLedgerMutation"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/facts/{id}/approve":{"post":{"summary":"OWNER/ADMIN review; a differing approved value opens a conflict","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactApprove"}}}},"responses":{"200":{"description":"Reviewed tenant-scoped fact mutation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactLedgerMutation"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/fact-conflicts/{id}/resolve":{"post":{"summary":"OWNER/ADMIN selects one conflicting immutable version","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactConflictResolve"}}}},"responses":{"200":{"description":"Reviewed tenant-scoped fact mutation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactLedgerMutation"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/projects/{id}/fact-conflicts":{"get":{"summary":"List open tenant-bound fact conflicts","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Tenant-bound no-store result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactConflictList"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/projects/{id}/search-profiles":{"post":{"summary":"Save an immutable compiled Search Builder profile version","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchProfileCreate"}}}},"responses":{"201":{"description":"Created tenant-scoped resource (or idempotent replay)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchProfile"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/search-profiles/{id}/runs":{"post":{"summary":"Queue an entitlement-checked durable search run using the exact stored QueryPlan","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchProfileRunCreate"}}}},"responses":{"201":{"description":"Created tenant-scoped resource (or idempotent replay)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchProfileRun"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/search-runs/{id}":{"get":{"summary":"Poll one tenant-scoped durable search run","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Tenant-bound no-store result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchProfileRun"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/opportunities/{id}/requirements":{"get":{"summary":"List source-bound requirement proposals and human review states","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Tenant-bound no-store result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpportunityRequirements"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"summary":"Parse selected immutable sections into inert requirement proposals","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpportunityRequirementProposal"}}}},"responses":{"201":{"description":"Created tenant-scoped resource (or idempotent replay)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpportunityRequirements"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/requirements/{id}/review":{"post":{"summary":"Approve or reject one requirement proposal with an audit record","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpportunityRequirementReview"}}}},"responses":{"200":{"description":"Reviewed tenant-scoped requirement","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpportunityRequirement"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/connectors":{"get":{"summary":"OWNER/ADMIN: list tenant connector policy, source restrictions and last successful cache receipt","security":[{"session":[]}],"parameters":[],"responses":{"200":{"description":"Tenant-bound no-store result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ConnectorRegistry"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/projects/{id}/legal-entities":{"get":{"summary":"List version-contextual legal entities without mixing company identities","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Tenant-bound no-store result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegalEntityList"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"summary":"Create a legal-entity context from approved project fact references","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegalEntityInput"}}}},"responses":{"201":{"description":"Created tenant-scoped resource (or idempotent replay)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/LegalEntity"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/projects/{id}/funding-rounds":{"get":{"summary":"List current immutable funding-round aggregate versions","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Tenant-bound no-store result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FundingRoundList"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"summary":"Create a funding round or append an immutable aggregate version","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FundingRoundInput"}}}},"responses":{"201":{"description":"Created tenant-scoped resource (or idempotent replay)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FundingRound"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/opportunities/{id}/recheck":{"post":{"summary":"Recheck an opportunity through an enabled official-source adapter; return immutable freshness and application impact","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpportunityRecheckRequest"}}}},"responses":{"200":{"description":"Freshness result or idempotent replay","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpportunityRecheck"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/matches/recalculate":{"post":{"summary":"Persist deterministic tenant match decisions for the selected project","security":[{"session":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MatchRecalculate"}}}},"responses":{"201":{"description":"Created tenant-scoped resource (or idempotent replay)","content":{"application/json":{"schema":{"type":"array","items":{"$ref":"#/components/schemas/MatchDecision"},"maxItems":100}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/projects/{id}/matches":{"get":{"summary":"Read persisted match decisions with a stable cursor","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"cursor","in":"query","required":false,"schema":{"type":"string","format":"uuid"}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100}},{"name":"diversify","in":"query","required":false,"schema":{"type":"string","enum":["0","1"]}}],"responses":{"200":{"description":"Tenant-bound no-store result","content":{"application/json":{"schema":{"oneOf":[{"$ref":"#/components/schemas/MatchDecisionList"},{"$ref":"#/components/schemas/DiversifiedMatchList"}]}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/opportunities/{id}/research-matrix":{"get":{"summary":"Read a bounded, audited opportunity research matrix and sourced intro leads","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"projectId","in":"query","required":false,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Tenant-bound no-store result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpportunityResearchMatrix"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/applications/{id}/stages":{"get":{"summary":"List ordered stages and latest compiled package","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Tenant-bound no-store result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplicationStageList"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"summary":"Create an ordered application stage with requirements and questions","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplicationStageInput"}}}},"responses":{"201":{"description":"Created tenant-scoped resource (or idempotent replay)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplicationStage"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/application-stages/{id}/compile":{"post":{"summary":"Compile a sealed package bound to exact evidence versions and supported answers","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplicationStageCompile"}}}},"responses":{"201":{"description":"Created tenant-scoped resource (or idempotent replay)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplicationPackage"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/approvals":{"post":{"summary":"Create a short-lived approval request bound to the latest pre-flight-ready package hash","security":[{"session":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApprovalCreate"}}}},"responses":{"201":{"description":"Created tenant-scoped resource (or idempotent replay)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApprovalCreated"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"get":{"summary":"List tenant-bound approval requests by decision","security":[{"session":[]}],"parameters":[{"name":"decision","in":"query","required":false,"schema":{"type":"string","enum":["PENDING","APPROVED","REJECTED","EXPIRED","INVALIDATED"],"default":"PENDING"}}],"responses":{"200":{"description":"Tenant-bound no-store result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApprovalInbox"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/approvals/{id}/decision":{"post":{"summary":"Approve or reject with recent MFA step-up; email links are not authority","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApprovalDecision"}}}},"responses":{"200":{"description":"Recorded reviewer decision","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApprovalRequest"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/application-stages/{id}/preflight":{"get":{"summary":"Read blockers, evidence sources, legal risks and latest package diff before approval","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Tenant-bound no-store result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplicationPreflight"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/application-stages/{id}/browser-fill":{"post":{"summary":"Queue a dry-run browser fill against the current immutable stage snapshot","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrowserFillInput"}}}},"responses":{"201":{"description":"Created tenant-scoped resource (or idempotent replay)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/BrowserFillQueued"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/application-stages/{id}/preview":{"post":{"summary":"Reconcile every browser read-back against the bound application snapshot; mismatches block approval readiness","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreviewReconciliationInput"}}}},"responses":{"201":{"description":"Created tenant-scoped resource (or idempotent replay)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PreviewReconciliation"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/applications/{id}/submit":{"post":{"summary":"Record a submit gate hold bound to an approved, unexpired MFA step-up snapshot; portal dispatch remains disabled","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmitApplication"}}}},"responses":{"201":{"description":"Created tenant-scoped resource (or idempotent replay)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmitGateOutcome"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/applications/{id}/receipts":{"get":{"summary":"List immutable tenant-bound submission receipts","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Tenant-bound no-store result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SubmissionReceipts"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/reconciliations/{id}/resolve":{"post":{"summary":"Record a human reconciliation decision; does not retry portal submission","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReconciliationResolve"}}}},"responses":{"201":{"description":"Created tenant-scoped resource (or idempotent replay)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Reconciliation"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/reconciliations":{"get":{"summary":"List tenant-bound submit holds for manual reconciliation","security":[{"session":[]}],"parameters":[],"responses":{"200":{"description":"Tenant-bound no-store result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReconciliationList"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/r3-actions":{"post":{"summary":"Create a legal/equity action request with accepted-text hash and audited manual override; no external action is executed","security":[{"session":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/R3ActionCreate"}}}},"responses":{"201":{"description":"Created tenant-scoped resource (or idempotent replay)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/R3Action"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"get":{"summary":"List tenant-bound R3 actions awaiting a distinct second decision","security":[{"session":[]}],"parameters":[{"name":"status","in":"query","required":false,"schema":{"type":"string","enum":["PENDING_SECOND_APPROVAL","APPROVED","REJECTED"],"default":"PENDING_SECOND_APPROVAL"}}],"responses":{"200":{"description":"Tenant-bound no-store result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/R3ActionInbox"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/r3-actions/{id}/approve":{"post":{"summary":"Record a second LEGAL approver and in-app signature attestation for the exact accepted text","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/R3ActionApprove"}}}},"responses":{"201":{"description":"Created tenant-scoped resource (or idempotent replay)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/R3Action"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/application-stages/{id}/resolve-questions":{"post":{"summary":"Resolve stage questions through canonical facts and approved answers","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResolveQuestionsInput"}}}},"responses":{"201":{"description":"Created tenant-scoped resource (or idempotent replay)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ResolveQuestionsResponse"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/notifications":{"get":{"summary":"List the current user's tenant notifications with snooze state","security":[{"session":[]}],"parameters":[{"name":"state","in":"query","required":false,"schema":{"type":"string","enum":["UNREAD","READ","SNOOZED","DISMISSED"]}},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100}}],"responses":{"200":{"description":"Tenant-bound no-store result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationList"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/notifications/{id}/read":{"post":{"summary":"Mark one of the current user's tenant notifications as read and audit it","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Updated tenant-scoped notification","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationMutation"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/notifications/{id}/snooze":{"post":{"summary":"Snooze one notification and append a snooze audit event","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationSnooze"}}}},"responses":{"200":{"description":"Updated tenant-scoped notification","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NotificationMutation"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/watch-profiles":{"post":{"summary":"Enable a project watch profile for material opportunity changes","security":[{"session":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WatchProfileCreate"}}}},"responses":{"201":{"description":"Created tenant-scoped resource (or idempotent replay)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WatchProfile"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/watch-changes":{"get":{"summary":"List recent material and cosmetic changes for enabled project watches","security":[{"session":[]}],"parameters":[{"name":"limit","in":"query","required":false,"schema":{"type":"integer","minimum":1,"maximum":100,"default":50}}],"responses":{"200":{"description":"Tenant-bound no-store result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WatchChangeList"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/crm/contacts":{"get":{"summary":"List tenant CRM contacts including permission basis and channel","security":[{"session":[]}],"parameters":[],"responses":{"200":{"description":"Tenant-bound no-store result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmContactList"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"summary":"Create an internal CRM contact with explicit source and permission basis","security":[{"session":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmContactInput"}}}},"responses":{"201":{"description":"Created tenant-scoped resource (or idempotent replay)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmContact"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/crm/contacts/{id}/timeline":{"get":{"summary":"Read a tenant contact timeline without inferring email-thread identity","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Tenant-bound no-store result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CrmTimeline"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/applications/{id}/follow-ups":{"get":{"summary":"List saved follow-up suggestions for one tenant application","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Tenant-bound no-store result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FollowUpTaskList"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"summary":"Save an approval-required follow-up suggestion; no message is sent","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FollowUpInput"}}}},"responses":{"201":{"description":"Created tenant-scoped resource (or idempotent replay)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FollowUpTask"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/outreach/consents":{"post":{"summary":"Record lawful basis and channel consent for a CRM contact","security":[{"session":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutreachConsentInput"}}}},"responses":{"201":{"description":"Created tenant-scoped resource (or idempotent replay)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutreachConsent"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/outreach/opt-out":{"post":{"summary":"Withdraw channel consent and cancel pending drafts","security":[{"session":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutreachOptOutInput"}}}},"responses":{"201":{"description":"Created tenant-scoped resource (or idempotent replay)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutreachOptOut"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/outreach/drafts":{"post":{"summary":"Create a consent-bound outreach draft; never sends","security":[{"session":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutreachDraftInput"}}}},"responses":{"201":{"description":"Created tenant-scoped resource (or idempotent replay)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutreachDraft"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/outreach/drafts/{id}/approve":{"post":{"summary":"Human reviewer approves an unchanged outreach draft","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutreachApprovalInput"}}}},"responses":{"201":{"description":"Created tenant-scoped resource (or idempotent replay)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutreachDraft"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/application-stages/{id}/interview-prep":{"post":{"summary":"Build interview prompts from verified facts and stage requirements","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Empty"}}}},"responses":{"200":{"description":"Prepared interview questions","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InterviewPrep"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/application-stages/{id}/diligence":{"post":{"summary":"Create an evidence-mapped due-diligence request","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiligenceCreate"}}}},"responses":{"201":{"description":"Created tenant-scoped resource (or idempotent replay)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiligenceRecord"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"get":{"summary":"List mapped due-diligence requests","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Tenant-bound no-store result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiligenceList"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/application-stages/{id}/diligence/{requestId}":{"patch":{"summary":"Update mappings or submit a diligence request; submitted mappings are immutable","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"requestId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiligenceUpdate"}}}},"responses":{"200":{"description":"Updated tenant-scoped request","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DiligenceRecord"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/billing/invoices":{"get":{"summary":"List tenant invoices and payment status","security":[{"session":[]}],"parameters":[],"responses":{"200":{"description":"Tenant-bound no-store result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvoiceList"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/organizations":{"post":{"summary":"Create a new isolated workspace","security":[{"session":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationCreate"}}}},"responses":{"201":{"description":"Created tenant-scoped resource (or idempotent replay)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OrganizationRecord"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/memberships":{"get":{"summary":"List current workspace members and revocation state","security":[{"session":[]}],"parameters":[],"responses":{"200":{"description":"Tenant-bound no-store result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MembershipList"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/invitations":{"get":{"summary":"List pending and historical invitations without exposing tokens","security":[{"session":[]}],"parameters":[],"responses":{"200":{"description":"Tenant-bound no-store result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvitationList"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/organizations/{id}/invitations":{"post":{"summary":"Create a 24-hour role-scoped invitation and email the accept link through the configured provider (EMAIL_PROVIDER=log records it without sending)","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvitationCreate"}}}},"responses":{"201":{"description":"Created tenant-scoped resource (or idempotent replay)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvitationCreated"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/invitations/{id}/revoke":{"post":{"summary":"Revoke an unused invitation","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Updated tenant-scoped membership or invitation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MutationOk"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/memberships/{id}/role":{"post":{"summary":"Change a workspace member role","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/MembershipRoleUpdate"}}}},"responses":{"200":{"description":"Updated tenant-scoped membership or invitation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MembershipRole"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/memberships/{id}/revoke":{"post":{"summary":"Revoke workspace membership, sessions, approvals and tokens","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Updated tenant-scoped membership or invitation","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MembershipRevoked"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/support/grants":{"post":{"summary":"Grant audited, read-only support access for at most one hour","security":[{"session":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupportGrantCreate"}}}},"responses":{"201":{"description":"Created tenant-scoped resource (or idempotent replay)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupportGrant"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/exports":{"post":{"summary":"Request a tenant or project data export; returns per-table progress and a 7-day private download","security":[{"session":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataRequestCreate"}}}},"responses":{"201":{"description":"Created tenant-scoped resource (or idempotent replay)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataRequest"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/deletions":{"post":{"summary":"Plan a tenant or project deletion with retention exemptions; executing it needs an owner confirmation","security":[{"session":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataRequestCreate"}}}},"responses":{"201":{"description":"Created tenant-scoped resource (or idempotent replay)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataRequest"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/data-requests":{"get":{"summary":"List export and deletion requests with per-table progress","security":[{"session":[]}],"parameters":[],"responses":{"200":{"description":"Tenant-bound no-store result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataRequestList"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/exports/{id}":{"get":{"summary":"Read one export request and its download expiry","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Tenant-bound no-store result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataRequest"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/exports/{id}/download":{"get":{"summary":"Download an unexpired export file (JSON, no binary content); audited","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Tenant-bound no-store result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExportDownload"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/portfolio/clients":{"get":{"summary":"List agency portfolio clients; non-managers see only clients they hold a live grant for","security":[{"session":[]}],"parameters":[],"responses":{"200":{"description":"Tenant-bound no-store result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PortfolioClientList"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"summary":"Register a project as an agency client with recorded consent and client export owner","security":[{"session":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PortfolioClientCreate"}}}},"responses":{"201":{"description":"Created tenant-scoped resource (or idempotent replay)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PortfolioClient"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/portfolio/clients/{id}/grants":{"post":{"summary":"Grant one member expiring READ or WRITE access to one client","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ClientGrantCreate"}}}},"responses":{"201":{"description":"Created tenant-scoped resource (or idempotent replay)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PortfolioClient"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/portfolio/clients/{id}/withdraw-consent":{"post":{"summary":"Record client consent withdrawal and revoke every grant","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Consent withdrawn","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PortfolioClient"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/agent-runs":{"post":{"summary":"Queue a bounded agent task graph (retries, circuit breaker, token budget; proposals only); a leased worker runs it","security":[{"session":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentRunCreate"}}}},"responses":{"200":{"description":"Idempotent replay of the same requestKey","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentRun"}}}},"202":{"description":"Run queued (state QUEUED); poll GET /agent-runs/{id}","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentRun"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"get":{"summary":"List recent agent runs with step outcomes and incidents; advances queued runs","security":[{"session":[]}],"parameters":[],"responses":{"200":{"description":"Tenant-bound no-store result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentRunList"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/agent-runs/{id}":{"get":{"summary":"Read one agent run with step evidence; advances a queued run","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Tenant-bound no-store result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentRun"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/agent-runs/{id}/cancel":{"post":{"summary":"Cancel a QUEUED or RUNNING run; later steps are not started","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Run cancelled","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AgentRun"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/jobs/dead-letters":{"get":{"summary":"List dead-lettered durable jobs (owner/admin)","security":[{"session":[]}],"parameters":[],"responses":{"200":{"description":"Tenant-bound no-store result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeadLetterList"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/jobs/{id}/requeue":{"post":{"summary":"Requeue a dead-lettered job with a fresh attempt budget (owner/admin)","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Job requeued","content":{"application/json":{"schema":{"$ref":"#/components/schemas/RequeueResult"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/external-connectors":{"get":{"summary":"List the connector register: owner, cost, permissions, engine and webhook state","security":[{"session":[]}],"parameters":[],"responses":{"200":{"description":"Tenant-bound no-store result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExternalConnectorList"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"post":{"summary":"Register an automation connector; one workflow id has exactly one owning engine","security":[{"session":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExternalConnectorCreate"}}}},"responses":{"201":{"description":"Created tenant-scoped resource (or idempotent replay)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExternalConnector"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/external-connectors/{id}/disable":{"post":{"summary":"Disable a connector and tear down its webhook","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Connector disabled","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ExternalConnector"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/security-events":{"get":{"summary":"List security events (support roles see no evidence)","security":[{"session":[]}],"parameters":[],"responses":{"200":{"description":"Tenant-bound no-store result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SecurityEventList"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/security-events/{id}/trace":{"get":{"summary":"Incident trace: event, referenced agent tool trace and last safe checkpoint","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Tenant-bound no-store result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/IncidentTrace"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/security-events/{id}/escalation":{"post":{"summary":"Move escalation forward (ESCALATED, CONTAINED, CLOSED)","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EscalationUpdate"}}}},"responses":{"200":{"description":"Escalation updated","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SecurityEvent"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/projects/{id}/dashboard":{"get":{"summary":"Startup 360 dashboard: readiness, verified facts, conflicts, pending review, risk, top opportunities, deadlines and AI spend","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Tenant-bound no-store result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FounderDashboard"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/funnel":{"get":{"summary":"North-star funnel from the audit trail: raw counts per stage with comparable-unit rates","security":[{"session":[]}],"parameters":[],"responses":{"200":{"description":"Tenant-bound no-store result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Funnel"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/release-gates":{"get":{"summary":"Read-only release checklist: blocking gates and the latest signed go/no-go records","security":[{"session":[]}],"parameters":[],"responses":{"200":{"description":"Tenant-bound no-store result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ReleaseChecklist"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/projects/{id}/documents/upload-init":{"post":{"summary":"Initialize a private evidence upload with bounded size class and SHA-256 binding","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvidenceUploadInit"}}}},"responses":{"201":{"description":"Created tenant-scoped resource (or idempotent replay)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/EvidenceUpload"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/auth/oidc/start":{"get":{"summary":"Start an OIDC authorization-code login with state, nonce and PKCE","security":[],"responses":{"302":{"description":"Redirect to the configured identity provider","headers":{"Location":{"schema":{"type":"string","format":"uri"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/auth/oidc/callback":{"get":{"summary":"Validate the OIDC callback and sign in an existing linked active user","security":[],"responses":{"303":{"description":"Login completed (Location /) or a short-lived MFA step is required (Location /?oidc=mfa)","headers":{"Location":{"schema":{"type":"string"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/auth/oidc/mfa":{"post":{"summary":"Complete the OIDC login MFA step using the short-lived HttpOnly challenge","security":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["mfaCode"],"properties":{"mfaCode":{"type":"string","pattern":"^(?:[0-9]{6}|[a-f0-9]{32})$"}}}}}},"responses":{"200":{"description":"Login completed","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["ok"],"properties":{"ok":{"const":true}}}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/auth/oidc/config":{"get":{"summary":"Read whether OIDC login is configured without exposing provider settings","security":[],"responses":{"200":{"description":"OIDC is fully configured or disabled/incomplete","content":{"application/json":{"schema":{"type":"object","additionalProperties":false,"required":["enabled"],"properties":{"enabled":{"type":"boolean"}}}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/application-stages/{id}/status":{"patch":{"summary":"Apply an audited application stage state-machine transition and optional outcome","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplicationStageStatusUpdate"}}}},"responses":{"200":{"description":"Updated tenant-scoped stage","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ApplicationStage"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/r3-actions/{id}/decision":{"post":{"summary":"Approve or reject an R3 action as a distinct MFA-verified second approver","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/R3ActionDecision"}}}},"responses":{"201":{"description":"Created tenant-scoped resource (or idempotent replay)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/R3Action"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/projects/{id}/package-evidence":{"get":{"summary":"List CLEAN project evidence versions available to the package compiler","security":[{"session":[]}],"parameters":[],"responses":{"200":{"description":"Tenant-bound no-store result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/PackageEvidenceList"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/auth/password/change":{"post":{"summary":"Change the signed-in user's password, revoke other sessions and append an audit event","security":[{"session":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/PasswordChange"}}}},"responses":{"200":{"description":"Updated account security","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionMutation"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/auth/sessions/revoke-others":{"post":{"summary":"Revoke the signed-in user's other active sessions and append an audit event","security":[{"session":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/Empty"}}}},"responses":{"200":{"description":"Updated account security","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SessionMutation"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/auth/sessions":{"get":{"summary":"List the signed-in user's active sessions without exposing token hashes","security":[{"session":[]}],"parameters":[],"responses":{"200":{"description":"Tenant-bound no-store result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ActiveSessionList"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/workspace":{"patch":{"summary":"Rename the current workspace as OWNER or ADMIN and append an audit event","security":[{"session":[]}],"parameters":[],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceUpdate"}}}},"responses":{"200":{"description":"Workspace renamed","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceUpdateResponse"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/admin/overview":{"get":{"summary":"Read OWNER/ADMIN workspace counts and the ten latest audit events","security":[{"session":[]}],"parameters":[],"responses":{"200":{"description":"Tenant-bound no-store result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/AdminOverview"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/projects/{id}":{"patch":{"summary":"Update an active tenant project","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectPatch"}}}},"responses":{"200":{"description":"Updated project","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectRecord"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}},"delete":{"summary":"Soft-archive a tenant project","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Archived project","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectRecord"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/projects/{id}/restore":{"post":{"summary":"Restore an archived tenant project","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"201":{"description":"Created tenant-scoped resource (or idempotent replay)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ProjectRecord"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/projects/{id}/metrics/{metricId}":{"delete":{"summary":"Delete a tenant-bound monthly metric","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"metricId","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Deleted metric","content":{"application/json":{"schema":{"$ref":"#/components/schemas/MetricDeleteResult"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/opportunities/{id}":{"get":{"summary":"Read opportunity fit, economics, source confidence, proposed changes and lifecycle timeline","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}},{"name":"projectId","in":"query","required":false,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Tenant-bound no-store result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpportunityDetail"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/opportunities/{id}/review":{"patch":{"summary":"Update the tenant-owned review state and assignee with audit history","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpportunityReviewInput"}}}},"responses":{"200":{"description":"Updated review ownership","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpportunityReviewResult"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/opportunity-source-changes/{id}/decision":{"post":{"summary":"Accept or reject one official-source field proposal without silent overwrite","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpportunitySourceChangeDecision"}}}},"responses":{"200":{"description":"Source proposal decided","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OpportunitySourceChange"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/invites/preview":{"get":{"summary":"Read the organization, role, invited email and state behind an emailed invite link; no session needed and no token is returned","security":[],"parameters":[{"name":"token","in":"query","required":true,"schema":{"type":"string","pattern":"^[a-f0-9]{64}$"}},{"name":"tenantId","in":"query","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Invitation summary","content":{"application/json":{"schema":{"$ref":"#/components/schemas/InvitationPreview"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/auth/workspaces":{"get":{"summary":"List the signed-in user's active workspace memberships; the session workspace is marked current","security":[{"session":[]}],"parameters":[],"responses":{"200":{"description":"Tenant-bound no-store result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/WorkspaceList"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/projects/{id}/fact-review":{"get":{"summary":"List PROPOSED fact versions awaiting OWNER/ADMIN review (no decision, no conflict)","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Tenant-bound no-store result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactReviewQueue"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/facts/{id}/reject":{"post":{"summary":"OWNER/ADMIN rejects an unverified proposal; the immutable version stays and the decision is audited","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactRejectInput"}}}},"responses":{"200":{"description":"Reviewed or re-resolved tenant-scoped result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/FactRejectResponse"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/projects/{id}/fact-versions":{"post":{"summary":"Founder-confirmed canonical fact version with unit/period/as_of/privacy, or an explicit NOT_MEASURED/NOT_APPLICABLE state","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/CanonicalFactInput"}}}},"responses":{"201":{"description":"Created tenant-scoped resource (or idempotent replay)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/CanonicalFactVersion"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/application-stages/{id}/supply-value":{"post":{"summary":"Founder supplies a USER_CONFIRMED value for one unresolved stage question and re-resolves the stage","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupplyValueInput"}}}},"responses":{"200":{"description":"Reviewed or re-resolved tenant-scoped result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SupplyValueResponse"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/outreach/drafts/{id}/send":{"post":{"summary":"Send an approved outreach draft once through the email provider (EMAIL_PROVIDER=log never delivers); consent, opt-out and connector policy enforced","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutreachSendInput"}}}},"responses":{"201":{"description":"Created tenant-scoped resource (or idempotent replay)","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutreachSendResult"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/outreach/contacts/{id}":{"get":{"summary":"Contact outreach state: opt-out, consents, drafts and per-message delivery status","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Tenant-bound no-store result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutreachContactState"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/outreach/webhooks/delivery":{"post":{"summary":"Provider delivery receipt; HMAC-SHA256 over the exact body in x-outreach-signature (t=<unix>,v1=<hex>); disabled unless OUTREACH_WEBHOOK_SECRET is set","security":[],"parameters":[{"name":"x-outreach-signature","in":"header","required":true,"schema":{"type":"string","maxLength":200}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutreachDeliveryReceipt"}}}},"responses":{"200":{"description":"Receipt applied, ignored, stale or duplicate","content":{"application/json":{"schema":{"$ref":"#/components/schemas/OutreachDeliveryReceiptResult"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/deletions/{id}":{"get":{"summary":"Read one deletion request with its execution status and receipt","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"responses":{"200":{"description":"Tenant-bound no-store result","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataRequest"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/deletions/{id}/confirm":{"post":{"summary":"Owner confirms a planned deletion with step-up MFA and the typed organization name; queues the erasure job","security":[{"session":[]}],"parameters":[{"name":"id","in":"path","required":true,"schema":{"type":"string","format":"uuid"}}],"requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/DeletionConfirm"}}}},"responses":{"202":{"description":"Deletion confirmed and queued","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DataRequest"}}}},"400":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"401":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"403":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"404":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"409":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"413":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"500":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"503":{"description":"Error; no side effects","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}}}