var{defineProperty:i,getOwnPropertyNames:y,getOwnPropertyDescriptor:g}=Object,C=Object.prototype.hasOwnProperty;function R(e){return this[e]}var x=(e)=>{var r=(c??=new WeakMap).get(e),a;if(r)return r;if(r=i({},"__esModule",{value:!0}),e&&typeof e==="object"||typeof e==="function"){for(var o of y(e))if(!C.call(r,o))i(r,o,{get:R.bind(e,o),enumerable:!(a=g(e,o))||a.enumerable})}return c.set(e,r),r},c;var f=(e)=>e;function l(e,r){this[e]=f.bind(null,r)}var u=(e,r)=>{for(var a in r)i(e,a,{get:r[a],enumerable:!0,configurable:!0,set:l.bind(r,a)})};var b=(e,r)=>()=>(e&&(r=e(e=0)),r);var n={Idea:"idea",InCreation:"in_creation",Experimental:"experimental",Beta:"beta",Stable:"stable",Deprecated:"deprecated"},h={PlatformCore:"platform.core",PlatformSigil:"platform.sigil",PlatformMarketplace:"platform.marketplace",PlatformMessaging:"platform.messaging",PlatformContent:"platform.content",PlatformFeatureFlags:"platform.featureflags",PlatformFinance:"platform.finance"},w=h,I={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"},j=I;import t from"zod";var S=["contractspec:operation","contractspec:event","contractspec:presentation","contractspec:form","contractspec:feature","contractspec:workflow","contractspec:template","contractspec:integration","contractspec:data-view","contractspec:visualization","contractspec:migration","contractspec:telemetry","contractspec:experiment","contractspec:app-config","contractspec:knowledge"],s=t.enum(S),p=t.object({path:t.string().min(1),type:t.string().min(1),content:t.string().optional()}),m=t.object({key:t.string().min(1),type:s,version:t.string(),title:t.string().min(1),description:t.string().min(1),meta:t.object({stability:t.enum([n.Idea,n.InCreation,n.Experimental,n.Beta,n.Stable,n.Deprecated]),owners:t.array(t.string().min(1)).default([]),tags:t.array(t.string().min(1)).default([])}),dependencies:t.array(t.string().min(1)).optional(),registryDependencies:t.array(t.string().min(1)).optional(),files:t.array(p).min(1),schema:t.object({input:t.unknown().optional(),output:t.unknown().optional()}).optional()}),d=t.object({$schema:t.string().min(1).optional(),name:t.string().min(1),homepage:t.string().min(1).optional(),items:t.array(m)});export{d as ContractRegistryManifestSchema,s as ContractRegistryItemTypeSchema,m as ContractRegistryItemSchema,p as ContractRegistryFileSchema};
