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