var{defineProperty:q,getOwnPropertyNames:v,getOwnPropertyDescriptor:w}=Object,x=Object.prototype.hasOwnProperty;function y(g){return this[g]}var H=(g)=>{var h=(s??=new WeakMap).get(g),m;if(h)return h;if(h=q({},"__esModule",{value:!0}),g&&typeof g==="object"||typeof g==="function"){for(var p of v(g))if(!x.call(h,p))q(h,p,{get:y.bind(g,p),enumerable:!(m=w(g,p))||m.enumerable})}return s.set(g,h),h},s;var z=(g)=>g;function B(g,h){this[g]=z.bind(null,h)}var I=(g,h)=>{for(var m in h)q(g,m,{get:h[m],enumerable:!0,configurable:!0,set:B.bind(h,m)})};var J=(g,h)=>()=>(g&&(h=g(g=0)),h);import{ScalarTypeEnum as b,SchemaModel as j}from"@contractspec/lib.schema";var D=new j({name:"ControlPlaneSkillCapabilityRequirement",fields:{key:{type:b.String_unsecure(),isOptional:!1},version:{type:b.String_unsecure(),isOptional:!0}}}),u=new j({name:"ControlPlaneSkillVersionRange",fields:{minVersion:{type:b.String_unsecure(),isOptional:!0},maxVersion:{type:b.String_unsecure(),isOptional:!0}}}),E=new j({name:"ControlPlaneSkillArtifactFile",fields:{path:{type:b.String_unsecure(),isOptional:!1},digest:{type:b.String_unsecure(),isOptional:!1},size:{type:b.Int_unsecure(),isOptional:!1}}}),G=new j({name:"ControlPlaneSkillSignature",fields:{algorithm:{type:b.String_unsecure(),isOptional:!1},signature:{type:b.String_unsecure(),isOptional:!1},publicKey:{type:b.String_unsecure(),isOptional:!1},keyId:{type:b.String_unsecure(),isOptional:!0},issuedAt:{type:b.DateTime(),isOptional:!0},expiresAt:{type:b.DateTime(),isOptional:!0},metadata:{type:b.JSONObject(),isOptional:!0}}}),N=new j({name:"ControlPlaneSkillManifest",fields:{schemaVersion:{type:b.String_unsecure(),isOptional:!1},skill:{type:new j({name:"ControlPlaneSkillManifestSkill",fields:{key:{type:b.String_unsecure(),isOptional:!1},version:{type:b.String_unsecure(),isOptional:!1},entryPoint:{type:b.String_unsecure(),isOptional:!1},description:{type:b.String_unsecure(),isOptional:!0}}}),isOptional:!1},publisher:{type:new j({name:"ControlPlaneSkillManifestPublisher",fields:{id:{type:b.String_unsecure(),isOptional:!1},provenance:{type:b.String_unsecure(),isOptional:!1},repositoryUrl:{type:b.String_unsecure(),isOptional:!0}}}),isOptional:!1},artifact:{type:new j({name:"ControlPlaneSkillManifestArtifact",fields:{digest:{type:b.String_unsecure(),isOptional:!1},files:{type:E,isOptional:!0,isArray:!0}}}),isOptional:!1},compatibility:{type:new j({name:"ControlPlaneSkillManifestCompatibility",fields:{contractsSpec:{type:u,isOptional:!0},controlPlaneFeature:{type:u,isOptional:!0},requiredCapabilities:{type:D,isOptional:!0,isArray:!0}}}),isOptional:!1},metadata:{type:b.JSONObject(),isOptional:!0},signature:{type:G,isOptional:!0}}}),O=new j({name:"ControlPlaneSkillVerificationIssue",fields:{code:{type:b.String_unsecure(),isOptional:!1},message:{type:b.String_unsecure(),isOptional:!1}}});export{O as ControlPlaneSkillVerificationIssueModel,N as ControlPlaneSkillManifestModel,D as ControlPlaneSkillCapabilityRequirementModel};
