var{defineProperty:a,getOwnPropertyNames:f,getOwnPropertyDescriptor:g}=Object,l=Object.prototype.hasOwnProperty;function I(t){return this[t]}var E=(t)=>{var n=(z??=new WeakMap).get(t),o;if(n)return n;if(n=a({},"__esModule",{value:!0}),t&&typeof t==="object"||typeof t==="function"){for(var r of f(t))if(!l.call(n,r))a(n,r,{get:I.bind(t,r),enumerable:!(o=g(t,r))||o.enumerable})}return z.set(t,n),n},z;var S=(t)=>t;function u(t,n){this[t]=S.bind(null,n)}var b=(t,n)=>{for(var o in n)a(t,o,{get:n[o],enumerable:!0,configurable:!0,set:u.bind(n,o)})};var M=(t,n)=>()=>(t&&(n=t(t=0)),n);import{ZodSchemaType as m}from"@contractspec/lib.schema";import*as i from"zod";var h=i.object({chunkId:i.string().min(1),quote:i.string().min(1)}),s=new m(h,{name:"Citation"}),d=i.object({insightId:i.string().min(1),claim:i.string().min(1),tags:i.array(i.string().min(1)).optional(),segment:i.string().min(1).optional(),confidence:i.number().min(0).max(1).optional(),citations:i.array(h)}),T=new m(d,{name:"Insight"}),C=i.object({insights:i.array(d)}),R=new m(C,{name:"InsightExtraction"});import{ZodSchemaType as p}from"@contractspec/lib.schema";import*as e from"zod";var k=e.enum(["up","down"]),w=e.enum(["low","medium","high"]),c=e.object({text:e.string().min(1),citations:e.array(s.getZod())}),q=new p(c,{name:"CitedTextBlock"}),x=e.object({text:e.string().min(1),citations:e.array(s.getZod()).optional()}),v=new p(x,{name:"Risk"}),y=e.object({metric:e.string().min(1),direction:k,magnitudeHint:e.string().min(1).optional(),timeframeHint:e.string().min(1).optional()}),A=new p(y,{name:"ExpectedImpact"}),B=e.object({opportunityId:e.string().min(1),title:e.string().min(1),problem:c,who:c,proposedChange:c,expectedImpact:y,confidence:w,risks:e.array(x).optional()}),F=new p(B,{name:"OpportunityBrief"});export{v as RiskModel,F as OpportunityBriefModel,A as ExpectedImpactModel,q as CitedTextBlockModel};
