// @bun
var{defineProperty:J,getOwnPropertyNames:R,getOwnPropertyDescriptor:U}=Object,W=Object.prototype.hasOwnProperty;function X(b){return this[b]}var H=(b)=>{var j=(K??=new WeakMap).get(b),z;if(j)return j;if(j=J({},"__esModule",{value:!0}),b&&typeof b==="object"||typeof b==="function"){for(var F of R(b))if(!W.call(j,F))J(j,F,{get:X.bind(b,F),enumerable:!(z=U(b,F))||z.enumerable})}return K.set(b,j),j},K;var Y=(b)=>b;function Z(b,j){this[b]=Y.bind(null,j)}var I=(b,j)=>{for(var z in j)J(b,z,{get:j[z],enumerable:!0,configurable:!0,set:Z.bind(j,z)})};var O=(b,j)=>()=>(b&&(j=b(b=0)),j);var L={Idea:"idea",InCreation:"in_creation",Experimental:"experimental",Beta:"beta",Stable:"stable",Deprecated:"deprecated"},_={PlatformCore:"platform.core",PlatformSigil:"platform.sigil",PlatformMarketplace:"platform.marketplace",PlatformMessaging:"platform.messaging",PlatformContent:"platform.content",PlatformFeatureFlags:"platform.featureflags",PlatformFinance:"platform.finance"},T=_,$={Spots:"spots",Collectivity:"collectivity",Marketplace:"marketplace",Sellers:"sellers",Auth:"auth",Login:"login",Signup:"signup",Guide:"guide",Docs:"docs",I18n:"i18n",Incident:"incident",Automation:"automation",Hygiene:"hygiene"},V=$;var h=(b)=>("ref"in b),E=(b)=>({...b,meta:{...b.meta,kind:"command"},policy:{...b.policy,idempotent:b.policy?.policy?.idempotent??!1}}),N=(b)=>({...b,meta:{...b.meta,kind:"query"},policy:{...b.policy,idempotent:!0}});import{ScalarTypeEnum as x,SchemaModel as P,ZodSchemaType as q}from"@contractspec/lib.schema";import*as v from"zod";var w="report",A=["platform.core"],B=["report","drift","verification"],C=L.Experimental,f=new P({name:"ContractVerificationStatus",fields:{name:{type:x.String_unsecure(),isOptional:!1},lastVerifiedSha:{type:x.String_unsecure(),isOptional:!0},lastVerifiedDate:{type:x.String_unsecure(),isOptional:!0},surfaces:{type:x.String_unsecure(),isOptional:!1,isArray:!0},driftMismatches:{type:x.Int_unsecure(),isOptional:!1}}}),D=new P({name:"GetContractVerificationStatusInput",fields:{projectPath:{type:x.String_unsecure(),isOptional:!1},baseline:{type:x.String_unsecure(),isOptional:!0}}}),G=new q(v.object({contracts:v.object({name:v.string(),lastVerifiedSha:v.string().optional(),lastVerifiedDate:v.string().optional(),surfaces:v.string().array(),driftMismatches:v.int()}).array()}),{name:"GetContractVerificationStatusOutput"}),l=N({meta:{key:"report.getContractVerificationStatus",title:"Get Contract Verification Status",version:"1.0.0",description:"Retrieves per-contract verification status for the impact report.",goal:"Enable stakeholders to see contract health at a glance.",context:"Part of the impact report domain. Reads from drift check outputs and verified.json to provide a consolidated view of each contract's drift debt and surface coverage.",domain:w,owners:A,tags:B,stability:C},io:{input:D,output:G,errors:{PROJECT_NOT_FOUND:{description:"Project path does not exist.",http:404,when:"The provided projectPath does not resolve to a valid directory."}}},policy:{auth:"anonymous",pii:[]}});export{l as GetContractVerificationStatusQuery,G as GetContractVerificationStatusOutput,D as GetContractVerificationStatusInput,f as ContractVerificationStatusModel};
