var{defineProperty:r,getOwnPropertyNames:l,getOwnPropertyDescriptor:o}=Object,u=Object.prototype.hasOwnProperty;function y(t){return this[t]}var S=(t)=>{var s=(p??=new WeakMap).get(t),i;if(s)return s;if(s=r({},"__esModule",{value:!0}),t&&typeof t==="object"||typeof t==="function"){for(var a of l(t))if(!u.call(s,a))r(s,a,{get:y.bind(t,a),enumerable:!(i=o(t,a))||i.enumerable})}return p.set(t,s),s},p;var O=(t)=>t;function c(t,s){this[t]=O.bind(null,s)}var g=(t,s)=>{for(var i in s)r(t,i,{get:s[i],enumerable:!0,configurable:!0,set:c.bind(s,i)})};var _=(t,s)=>()=>(t&&(s=t(t=0)),s);import{ScalarTypeEnum as e,SchemaModel as n}from"@contractspec/lib.schema";var d=new n({name:"HarnessTarget",fields:{targetId:{type:e.ID(),isOptional:!1},kind:{type:e.String_unsecure(),isOptional:!1},isolation:{type:e.String_unsecure(),isOptional:!1},environment:{type:e.String_unsecure(),isOptional:!1},baseUrl:{type:e.String_unsecure(),isOptional:!0},allowlistedDomains:{type:e.String_unsecure(),isOptional:!0,isArray:!0},metadata:{type:e.JSONObject(),isOptional:!0}}}),f=new n({name:"HarnessStep",fields:{stepId:{type:e.ID(),isOptional:!1},stepKey:{type:e.NonEmptyString(),isOptional:!1},runId:{type:e.ID(),isOptional:!1},mode:{type:e.String_unsecure(),isOptional:!1},actionClass:{type:e.String_unsecure(),isOptional:!1},verdict:{type:e.String_unsecure(),isOptional:!1},requiresApproval:{type:e.Boolean(),isOptional:!1},status:{type:e.String_unsecure(),isOptional:!1},summary:{type:e.String_unsecure(),isOptional:!0},startedAt:{type:e.DateTime(),isOptional:!0},completedAt:{type:e.DateTime(),isOptional:!0},metadata:{type:e.JSONObject(),isOptional:!0}}}),A=new n({name:"EvidenceArtifact",fields:{artifactId:{type:e.ID(),isOptional:!1},kind:{type:e.String_unsecure(),isOptional:!1},runId:{type:e.ID(),isOptional:!1},stepId:{type:e.ID(),isOptional:!0},uri:{type:e.String_unsecure(),isOptional:!1},contentType:{type:e.String_unsecure(),isOptional:!0},hash:{type:e.String_unsecure(),isOptional:!0},summary:{type:e.String_unsecure(),isOptional:!0},createdAt:{type:e.DateTime(),isOptional:!1},metadata:{type:e.JSONObject(),isOptional:!0}}}),m=new n({name:"HarnessAssertionResult",fields:{assertionKey:{type:e.NonEmptyString(),isOptional:!1},status:{type:e.String_unsecure(),isOptional:!1},message:{type:e.String_unsecure(),isOptional:!0},evidenceArtifactIds:{type:e.ID(),isOptional:!0,isArray:!0}}}),v=new n({name:"HarnessRun",fields:{runId:{type:e.ID(),isOptional:!1},status:{type:e.String_unsecure(),isOptional:!1},mode:{type:e.String_unsecure(),isOptional:!1},scenarioKey:{type:e.String_unsecure(),isOptional:!0},suiteKey:{type:e.String_unsecure(),isOptional:!0},controlPlaneExecutionId:{type:e.ID(),isOptional:!0},target:{type:d,isOptional:!1},steps:{type:f,isOptional:!1,isArray:!0},evidenceCount:{type:e.Int_unsecure(),isOptional:!0},createdAt:{type:e.DateTime(),isOptional:!1},updatedAt:{type:e.DateTime(),isOptional:!1}}}),T=new n({name:"HarnessEvaluation",fields:{evaluationId:{type:e.ID(),isOptional:!1},runId:{type:e.ID(),isOptional:!1},scenarioKey:{type:e.NonEmptyString(),isOptional:!1},suiteKey:{type:e.String_unsecure(),isOptional:!0},status:{type:e.String_unsecure(),isOptional:!1},assertions:{type:m,isOptional:!1,isArray:!0},evidenceCount:{type:e.Int_unsecure(),isOptional:!1},startedAt:{type:e.DateTime(),isOptional:!1},completedAt:{type:e.DateTime(),isOptional:!0},replayBundleUri:{type:e.String_unsecure(),isOptional:!0}}});export{d as HarnessTargetModel,f as HarnessStepModel,v as HarnessRunModel,T as HarnessEvaluationModel,m as HarnessAssertionResultModel,A as EvidenceArtifactModel};
