qyl-mcp-server 1.1.2 → 1.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/mcp-app.html CHANGED
@@ -68,7 +68,7 @@
68
68
 
69
69
  `)}t.write(`payload.value = newResult;`),t.write(`return payload;`);let s=t.compile();return(t,n)=>s(e,t,n)},a,o=le,s=!f.jitless,c=s&&ue.value,l=t.catchall,u;e._zod.parse=(d,f)=>{u??=r.value;let p=d.value;return o(p)?s&&c&&f?.async===!1&&f.jitless!==!0?(a||=i(t.shape),d=a(d,f),l?Or([],p,d,f,u,e):d):n(d,f):(d.issues.push({expected:`object`,code:`invalid_type`,input:p,inst:e}),d)}});function jr(e,t,n,r){for(let n of e)if(n.issues.length===0)return t.value=n.value,t;let i=e.filter(e=>!De(e));return i.length===1?(t.value=i[0].value,i[0]):(t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>b(e,r,p())))}),t)}var Mr=l(`$ZodUnion`,(e,t)=>{C.init(e,t),_(e._zod,`optin`,()=>t.options.some(e=>e._zod.optin===`optional`)?`optional`:void 0),_(e._zod,`optout`,()=>t.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),_(e._zod,`values`,()=>{if(t.options.every(e=>e._zod.values))return new Set(t.options.flatMap(e=>Array.from(e._zod.values)))}),_(e._zod,`pattern`,()=>{if(t.options.every(e=>e._zod.pattern)){let e=t.options.map(e=>e._zod.pattern);return RegExp(`^(${e.map(e=>te(e.source)).join(`|`)})$`)}});let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let a=!1,o=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},i);if(t instanceof Promise)o.push(t),a=!0;else{if(t.issues.length===0)return t;o.push(t)}}return a?Promise.all(o).then(t=>jr(t,r,e,i)):jr(o,r,e,i)}});function Nr(e,t,n,r){let i=e.filter(e=>e.issues.length===0);return i.length===1?(t.value=i[0].value,t):(i.length===0?t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:e.map(e=>e.issues.map(e=>b(e,r,p())))}):t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:[],inclusive:!1}),t)}var Pr=l(`$ZodXor`,(e,t)=>{Mr.init(e,t),t.inclusive=!1;let n=t.options.length===1?t.options[0]._zod.run:null;e._zod.parse=(r,i)=>{if(n)return n(r,i);let a=!1,o=[];for(let e of t.options){let t=e._zod.run({value:r.value,issues:[]},i);t instanceof Promise?(o.push(t),a=!0):o.push(t)}return a?Promise.all(o).then(t=>Nr(t,r,e,i)):Nr(o,r,e,i)}}),Fr=l(`$ZodDiscriminatedUnion`,(e,t)=>{t.inclusive=!1,Mr.init(e,t);let n=e._zod.parse;_(e._zod,`propValues`,()=>{let e={};for(let n of t.options){let r=n._zod.propValues;if(!r||Object.keys(r).length===0)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(n)}"`);for(let[t,n]of Object.entries(r)){e[t]||(e[t]=new Set);for(let r of n)e[t].add(r)}}return e});let r=ee(()=>{let e=t.options,n=new Map;for(let r of e){let e=r._zod.propValues?.[t.discriminator];if(!e||e.size===0)throw Error(`Invalid discriminated union option at index "${t.options.indexOf(r)}"`);for(let t of e){if(n.has(t))throw Error(`Duplicate discriminator value "${String(t)}"`);n.set(t,r)}}return n});e._zod.parse=(i,a)=>{let o=i.value;if(!le(o))return i.issues.push({code:`invalid_type`,expected:`object`,input:o,inst:e}),i;let s=r.value.get(o?.[t.discriminator]);return s?s._zod.run(i,a):t.unionFallback||a.direction===`backward`?n(i,a):(i.issues.push({code:`invalid_union`,errors:[],note:`No matching discriminator`,discriminator:t.discriminator,options:Array.from(r.value.keys()),input:o,path:[t.discriminator],inst:e}),i)}}),Ir=l(`$ZodIntersection`,(e,t)=>{C.init(e,t),e._zod.parse=(e,n)=>{let r=e.value,i=t.left._zod.run({value:r,issues:[]},n),a=t.right._zod.run({value:r,issues:[]},n);return i instanceof Promise||a instanceof Promise?Promise.all([i,a]).then(([t,n])=>Rr(e,t,n)):Rr(e,i,a)}});function Lr(e,t){if(e===t||e instanceof Date&&t instanceof Date&&+e==+t)return{valid:!0,data:e};if(de(e)&&de(t)){let n=Object.keys(t),r=Object.keys(e).filter(e=>n.indexOf(e)!==-1),i={...e,...t};for(let n of r){let r=Lr(e[n],t[n]);if(!r.valid)return{valid:!1,mergeErrorPath:[n,...r.mergeErrorPath]};i[n]=r.data}return{valid:!0,data:i}}if(Array.isArray(e)&&Array.isArray(t)){if(e.length!==t.length)return{valid:!1,mergeErrorPath:[]};let n=[];for(let r=0;r<e.length;r++){let i=e[r],a=t[r],o=Lr(i,a);if(!o.valid)return{valid:!1,mergeErrorPath:[r,...o.mergeErrorPath]};n.push(o.data)}return{valid:!0,data:n}}return{valid:!1,mergeErrorPath:[]}}function Rr(e,t,n){let r=new Map,i;for(let n of t.issues)if(n.code===`unrecognized_keys`){i??=n;for(let e of n.keys)r.has(e)||r.set(e,{}),r.get(e).l=!0}else e.issues.push(n);for(let t of n.issues)if(t.code===`unrecognized_keys`)for(let e of t.keys)r.has(e)||r.set(e,{}),r.get(e).r=!0;else e.issues.push(t);let a=[...r].filter(([,e])=>e.l&&e.r).map(([e])=>e);if(a.length&&i&&e.issues.push({...i,keys:a}),De(e))return e;let o=Lr(t.value,n.value);if(!o.valid)throw Error(`Unmergable intersection. Error path: ${JSON.stringify(o.mergeErrorPath)}`);return e.value=o.data,e}var zr=l(`$ZodTuple`,(e,t)=>{C.init(e,t);let n=t.items;e._zod.parse=(r,i)=>{let a=r.value;if(!Array.isArray(a))return r.issues.push({input:a,inst:e,expected:`tuple`,code:`invalid_type`}),r;r.value=[];let o=[],s=Br(n,`optin`),c=Br(n,`optout`);if(!t.rest){if(a.length<s)return r.issues.push({code:`too_small`,minimum:s,inclusive:!0,input:a,inst:e,origin:`array`}),r;a.length>n.length&&r.issues.push({code:`too_big`,maximum:n.length,inclusive:!0,input:a,inst:e,origin:`array`})}let l=Array(n.length);for(let e=0;e<n.length;e++){let t=n[e]._zod.run({value:a[e],issues:[]},i);t instanceof Promise?o.push(t.then(t=>{l[e]=t})):l[e]=t}if(t.rest){let e=n.length-1,s=a.slice(n.length);for(let n of s){e++;let a=t.rest._zod.run({value:n,issues:[]},i);a instanceof Promise?o.push(a.then(t=>Vr(t,r,e))):Vr(a,r,e)}}return o.length?Promise.all(o).then(()=>Hr(l,r,n,a,c)):Hr(l,r,n,a,c)}});function Br(e,t){for(let n=e.length-1;n>=0;n--)if(e[n]._zod[t]!==`optional`)return n+1;return 0}function Vr(e,t,n){e.issues.length&&t.issues.push(...y(n,e.issues)),t.value[n]=e.value}function Hr(e,t,n,r,i){for(let a=0;a<n.length;a++){let n=e[a],o=a<r.length;if(n.issues.length){if(!o&&a>=i){t.value.length=a;break}t.issues.push(...y(a,n.issues))}t.value[a]=n.value}for(let e=t.value.length-1;e>=r.length&&n[e]._zod.optout===`optional`&&t.value[e]===void 0;e--)t.value.length=e;return t}var Ur=l(`$ZodRecord`,(e,t)=>{C.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!de(i))return n.issues.push({expected:`record`,code:`invalid_type`,input:i,inst:e}),n;let a=[],o=t.keyType._zod.values;if(o){n.value={};let s=new Set;for(let c of o)if(typeof c==`string`||typeof c==`number`||typeof c==`symbol`){s.add(typeof c==`number`?c.toString():c);let o=t.keyType._zod.run({value:c,issues:[]},r);if(o instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(o.issues.length){n.issues.push({code:`invalid_key`,origin:`record`,issues:o.issues.map(e=>b(e,r,p())),input:c,path:[c],inst:e});continue}let l=o.value,u=t.valueType._zod.run({value:i[c],issues:[]},r);u instanceof Promise?a.push(u.then(e=>{e.issues.length&&n.issues.push(...y(c,e.issues)),n.value[l]=e.value})):(u.issues.length&&n.issues.push(...y(c,u.issues)),n.value[l]=u.value)}let c;for(let e in i)s.has(e)||(c??=[],c.push(e));c&&c.length>0&&n.issues.push({code:`unrecognized_keys`,input:i,inst:e,keys:c})}else{n.value={};for(let o of Reflect.ownKeys(i)){if(o===`__proto__`||!Object.prototype.propertyIsEnumerable.call(i,o))continue;let s=t.keyType._zod.run({value:o,issues:[]},r);if(s instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(typeof o==`string`&&Bt.test(o)&&s.issues.length){let e=t.keyType._zod.run({value:Number(o),issues:[]},r);if(e instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);e.issues.length===0&&(s=e)}if(s.issues.length){t.mode===`loose`?n.value[o]=i[o]:n.issues.push({code:`invalid_key`,origin:`record`,issues:s.issues.map(e=>b(e,r,p())),input:o,path:[o],inst:e});continue}let c=t.valueType._zod.run({value:i[o],issues:[]},r);c instanceof Promise?a.push(c.then(e=>{e.issues.length&&n.issues.push(...y(o,e.issues)),n.value[s.value]=e.value})):(c.issues.length&&n.issues.push(...y(o,c.issues)),n.value[s.value]=c.value)}}return a.length?Promise.all(a).then(()=>n):n}}),Wr=l(`$ZodMap`,(e,t)=>{C.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!(i instanceof Map))return n.issues.push({expected:`map`,code:`invalid_type`,input:i,inst:e}),n;let a=[];n.value=new Map;for(let[o,s]of i){let c=t.keyType._zod.run({value:o,issues:[]},r),l=t.valueType._zod.run({value:s,issues:[]},r);c instanceof Promise||l instanceof Promise?a.push(Promise.all([c,l]).then(([t,a])=>{Gr(t,a,n,o,i,e,r)})):Gr(c,l,n,o,i,e,r)}return a.length?Promise.all(a).then(()=>n):n}});function Gr(e,t,n,r,i,a,o){e.issues.length&&(pe.has(typeof r)?n.issues.push(...y(r,e.issues)):n.issues.push({code:`invalid_key`,origin:`map`,input:i,inst:a,issues:e.issues.map(e=>b(e,o,p()))})),t.issues.length&&(pe.has(typeof r)?n.issues.push(...y(r,t.issues)):n.issues.push({origin:`map`,code:`invalid_element`,input:i,inst:a,key:r,issues:t.issues.map(e=>b(e,o,p()))})),n.value.set(e.value,t.value)}var Kr=l(`$ZodSet`,(e,t)=>{C.init(e,t),e._zod.parse=(n,r)=>{let i=n.value;if(!(i instanceof Set))return n.issues.push({input:i,inst:e,expected:`set`,code:`invalid_type`}),n;let a=[];n.value=new Set;for(let e of i){let i=t.valueType._zod.run({value:e,issues:[]},r);i instanceof Promise?a.push(i.then(e=>qr(e,n))):qr(i,n)}return a.length?Promise.all(a).then(()=>n):n}});function qr(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}var Jr=l(`$ZodEnum`,(e,t)=>{C.init(e,t);let n=m(t.entries),r=new Set(n);e._zod.values=r,e._zod.pattern=RegExp(`^(${n.filter(e=>pe.has(typeof e)).map(e=>typeof e==`string`?he(e):e.toString()).join(`|`)})$`),e._zod.parse=(t,i)=>{let a=t.value;return r.has(a)||t.issues.push({code:`invalid_value`,values:n,input:a,inst:e}),t}}),Yr=l(`$ZodLiteral`,(e,t)=>{if(C.init(e,t),t.values.length===0)throw Error(`Cannot create literal schema with no valid values`);let n=new Set(t.values);e._zod.values=n,e._zod.pattern=RegExp(`^(${t.values.map(e=>typeof e==`string`?he(e):e?he(e.toString()):String(e)).join(`|`)})$`),e._zod.parse=(r,i)=>{let a=r.value;return n.has(a)||r.issues.push({code:`invalid_value`,values:t.values,input:a,inst:e}),r}}),Xr=l(`$ZodFile`,(e,t)=>{C.init(e,t),e._zod.parse=(t,n)=>{let r=t.value;return r instanceof File||t.issues.push({expected:`file`,code:`invalid_type`,input:r,inst:e}),t}}),Zr=l(`$ZodTransform`,(e,t)=>{C.init(e,t),e._zod.optin=`optional`,e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new d(e.constructor.name);let i=t.transform(n.value,n);if(r.async)return(i instanceof Promise?i:Promise.resolve(i)).then(e=>(n.value=e,n.fallback=!0,n));if(i instanceof Promise)throw new u;return n.value=i,n.fallback=!0,n}});function Qr(e,t){return t===void 0&&(e.issues.length||e.fallback)?{issues:[],value:void 0}:e}var $r=l(`$ZodOptional`,(e,t)=>{C.init(e,t),e._zod.optin=`optional`,e._zod.optout=`optional`,_(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,void 0]):void 0),_(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${te(e.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(t.innerType._zod.optin===`optional`){let r=e.value,i=t.innerType._zod.run(e,n);return i instanceof Promise?i.then(e=>Qr(e,r)):Qr(i,r)}return e.value===void 0?e:t.innerType._zod.run(e,n)}}),ei=l(`$ZodExactOptional`,(e,t)=>{$r.init(e,t),_(e._zod,`values`,()=>t.innerType._zod.values),_(e._zod,`pattern`,()=>t.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),ti=l(`$ZodNullable`,(e,t)=>{C.init(e,t),_(e._zod,`optin`,()=>t.innerType._zod.optin),_(e._zod,`optout`,()=>t.innerType._zod.optout),_(e._zod,`pattern`,()=>{let e=t.innerType._zod.pattern;return e?RegExp(`^(${te(e.source)}|null)$`):void 0}),_(e._zod,`values`,()=>t.innerType._zod.values?new Set([...t.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>e.value===null?e:t.innerType._zod.run(e,n)}),ni=l(`$ZodDefault`,(e,t)=>{C.init(e,t),e._zod.optin=`optional`,_(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);if(e.value===void 0)return e.value=t.defaultValue,e;let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(e=>ri(e,t)):ri(r,t)}});function ri(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var ii=l(`$ZodPrefault`,(e,t)=>{C.init(e,t),e._zod.optin=`optional`,_(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>(n.direction===`backward`||e.value===void 0&&(e.value=t.defaultValue),t.innerType._zod.run(e,n))}),ai=l(`$ZodNonOptional`,(e,t)=>{C.init(e,t),_(e._zod,`values`,()=>{let e=t.innerType._zod.values;return e?new Set([...e].filter(e=>e!==void 0)):void 0}),e._zod.parse=(n,r)=>{let i=t.innerType._zod.run(n,r);return i instanceof Promise?i.then(t=>oi(t,e)):oi(i,e)}});function oi(e,t){return!e.issues.length&&e.value===void 0&&e.issues.push({code:`invalid_type`,expected:`nonoptional`,input:e.value,inst:t}),e}var si=l(`$ZodSuccess`,(e,t)=>{C.init(e,t),e._zod.parse=(e,n)=>{if(n.direction===`backward`)throw new d(`ZodSuccess`);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(t=>(e.value=t.issues.length===0,e)):(e.value=r.issues.length===0,e)}}),ci=l(`$ZodCatch`,(e,t)=>{C.init(e,t),e._zod.optin=`optional`,_(e._zod,`optout`,()=>t.innerType._zod.optout),_(e._zod,`values`,()=>t.innerType._zod.values),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(r=>(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>b(e,n,p()))},input:e.value}),e.issues=[],e.fallback=!0),e)):(e.value=r.value,r.issues.length&&(e.value=t.catchValue({...e,error:{issues:r.issues.map(e=>b(e,n,p()))},input:e.value}),e.issues=[],e.fallback=!0),e)}}),li=l(`$ZodNaN`,(e,t)=>{C.init(e,t),e._zod.parse=(t,n)=>((typeof t.value!=`number`||!Number.isNaN(t.value))&&t.issues.push({input:t.value,inst:e,expected:`nan`,code:`invalid_type`}),t)}),ui=l(`$ZodPipe`,(e,t)=>{C.init(e,t),_(e._zod,`values`,()=>t.in._zod.values),_(e._zod,`optin`,()=>t.in._zod.optin),_(e._zod,`optout`,()=>t.out._zod.optout),_(e._zod,`propValues`,()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if(n.direction===`backward`){let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>di(e,t.in,n)):di(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>di(e,t.out,n)):di(r,t.out,n)}});function di(e,t,n){return e.issues.length?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues,fallback:e.fallback},n)}var fi=l(`$ZodCodec`,(e,t)=>{C.init(e,t),_(e._zod,`values`,()=>t.in._zod.values),_(e._zod,`optin`,()=>t.in._zod.optin),_(e._zod,`optout`,()=>t.out._zod.optout),_(e._zod,`propValues`,()=>t.in._zod.propValues),e._zod.parse=(e,n)=>{if((n.direction||`forward`)===`forward`){let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>pi(e,t,n)):pi(r,t,n)}else{let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>pi(e,t,n)):pi(r,t,n)}}});function pi(e,t,n){if(e.issues.length)return e.aborted=!0,e;if((n.direction||`forward`)===`forward`){let r=t.transform(e.value,e);return r instanceof Promise?r.then(r=>mi(e,r,t.out,n)):mi(e,r,t.out,n)}else{let r=t.reverseTransform(e.value,e);return r instanceof Promise?r.then(r=>mi(e,r,t.in,n)):mi(e,r,t.in,n)}}function mi(e,t,n,r){return e.issues.length?(e.aborted=!0,e):n._zod.run({value:t,issues:e.issues},r)}var hi=l(`$ZodPreprocess`,(e,t)=>{ui.init(e,t)}),gi=l(`$ZodReadonly`,(e,t)=>{C.init(e,t),_(e._zod,`propValues`,()=>t.innerType._zod.propValues),_(e._zod,`values`,()=>t.innerType._zod.values),_(e._zod,`optin`,()=>t.innerType?._zod?.optin),_(e._zod,`optout`,()=>t.innerType?._zod?.optout),e._zod.parse=(e,n)=>{if(n.direction===`backward`)return t.innerType._zod.run(e,n);let r=t.innerType._zod.run(e,n);return r instanceof Promise?r.then(_i):_i(r)}});function _i(e){return e.value=Object.freeze(e.value),e}var vi=l(`$ZodTemplateLiteral`,(e,t)=>{C.init(e,t);let n=[];for(let e of t.parts)if(typeof e==`object`&&e){if(!e._zod.pattern)throw Error(`Invalid template literal part, no pattern found: ${[...e._zod.traits].shift()}`);let t=e._zod.pattern instanceof RegExp?e._zod.pattern.source:e._zod.pattern;if(!t)throw Error(`Invalid template literal part: ${e._zod.traits}`);let r=+!!t.startsWith(`^`),i=t.endsWith(`$`)?t.length-1:t.length;n.push(t.slice(r,i))}else if(e===null||me.has(typeof e))n.push(he(`${e}`));else throw Error(`Invalid template literal part: ${e}`);e._zod.pattern=RegExp(`^${n.join(``)}$`),e._zod.parse=(n,r)=>typeof n.value==`string`?(e._zod.pattern.lastIndex=0,e._zod.pattern.test(n.value)||n.issues.push({input:n.value,inst:e,code:`invalid_format`,format:t.format??`template_literal`,pattern:e._zod.pattern.source}),n):(n.issues.push({input:n.value,inst:e,expected:`string`,code:`invalid_type`}),n)}),yi=l(`$ZodFunction`,(e,t)=>(C.init(e,t),e._def=t,e._zod.def=t,e.implement=t=>{if(typeof t!=`function`)throw Error(`implement() must be called with a function`);return function(...n){let r=e._def.input?ze(e._def.input,n):n,i=Reflect.apply(t,this,r);return e._def.output?ze(e._def.output,i):i}},e.implementAsync=t=>{if(typeof t!=`function`)throw Error(`implementAsync() must be called with a function`);return async function(...n){let r=e._def.input?await Ve(e._def.input,n):n,i=await Reflect.apply(t,this,r);return e._def.output?await Ve(e._def.output,i):i}},e._zod.parse=(t,n)=>typeof t.value==`function`?(e._def.output&&e._def.output._zod.def.type===`promise`?t.value=e.implementAsync(t.value):t.value=e.implement(t.value),t):(t.issues.push({code:`invalid_type`,expected:`function`,input:t.value,inst:e}),t),e.input=(...t)=>{let n=e.constructor;return Array.isArray(t[0])?new n({type:`function`,input:new zr({type:`tuple`,items:t[0],rest:t[1]}),output:e._def.output}):new n({type:`function`,input:t[0],output:e._def.output})},e.output=t=>{let n=e.constructor;return new n({type:`function`,input:e._def.input,output:t})},e)),bi=l(`$ZodPromise`,(e,t)=>{C.init(e,t),e._zod.parse=(e,n)=>Promise.resolve(e.value).then(e=>t.innerType._zod.run({value:e,issues:[]},n))}),xi=l(`$ZodLazy`,(e,t)=>{C.init(e,t),_(e._zod,`innerType`,()=>{let e=t;return e._cachedInner||=t.getter(),e._cachedInner}),_(e._zod,`pattern`,()=>e._zod.innerType?._zod?.pattern),_(e._zod,`propValues`,()=>e._zod.innerType?._zod?.propValues),_(e._zod,`optin`,()=>e._zod.innerType?._zod?.optin??void 0),_(e._zod,`optout`,()=>e._zod.innerType?._zod?.optout??void 0),e._zod.parse=(t,n)=>e._zod.innerType._zod.run(t,n)}),Si=l(`$ZodCustom`,(e,t)=>{S.init(e,t),C.init(e,t),e._zod.parse=(e,t)=>e,e._zod.check=n=>{let r=n.value,i=t.fn(r);if(i instanceof Promise)return i.then(t=>Ci(t,n,r,e));Ci(i,n,r,e)}});function Ci(e,t,n,r){if(!e){let e={code:`custom`,input:n,inst:r,path:[...r._zod.def.path??[]],continue:!r._zod.def.abort};r._zod.def.params&&(e.params=r._zod.def.params),t.issues.push(Me(e))}}var wi,Ti=class{constructor(){this._map=new WeakMap,this._idmap=new Map}add(e,...t){let n=t[0];return this._map.set(e,n),n&&typeof n==`object`&&`id`in n&&this._idmap.set(n.id,e),this}clear(){return this._map=new WeakMap,this._idmap=new Map,this}remove(e){let t=this._map.get(e);return t&&typeof t==`object`&&`id`in t&&this._idmap.delete(t.id),this._map.delete(e),this}get(e){let t=e._zod.parent;if(t){let n={...this.get(t)??{}};delete n.id;let r={...n,...this._map.get(e)};return Object.keys(r).length?r:void 0}return this._map.get(e)}has(e){return this._map.has(e)}};function Ei(){return new Ti}(wi=globalThis).__zod_globalRegistry??(wi.__zod_globalRegistry=Ei());var Di=globalThis.__zod_globalRegistry;function Oi(e,t){return new e({type:`string`,...v(t)})}function ki(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:!1,...v(t)})}function Ai(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:!1,...v(t)})}function ji(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,...v(t)})}function Mi(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v4`,...v(t)})}function Ni(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v6`,...v(t)})}function Pi(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v7`,...v(t)})}function Fi(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:!1,...v(t)})}function Ii(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:!1,...v(t)})}function Li(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:!1,...v(t)})}function Ri(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:!1,...v(t)})}function zi(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:!1,...v(t)})}function Bi(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:!1,...v(t)})}function Vi(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:!1,...v(t)})}function Hi(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:!1,...v(t)})}function Ui(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:!1,...v(t)})}function Wi(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:!1,...v(t)})}function Gi(e,t){return new e({type:`string`,format:`mac`,check:`string_format`,abort:!1,...v(t)})}function Ki(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:!1,...v(t)})}function qi(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:!1,...v(t)})}function Ji(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:!1,...v(t)})}function Yi(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:!1,...v(t)})}function Xi(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:!1,...v(t)})}function Zi(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:!1,...v(t)})}function Qi(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:!1,local:!1,precision:null,...v(t)})}function $i(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...v(t)})}function ea(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...v(t)})}function ta(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...v(t)})}function na(e,t){return new e({type:`number`,checks:[],...v(t)})}function ra(e,t){return new e({type:`number`,coerce:!0,checks:[],...v(t)})}function ia(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`safeint`,...v(t)})}function aa(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`float32`,...v(t)})}function oa(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`float64`,...v(t)})}function sa(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`int32`,...v(t)})}function ca(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`uint32`,...v(t)})}function la(e,t){return new e({type:`boolean`,...v(t)})}function ua(e,t){return new e({type:`bigint`,...v(t)})}function da(e,t){return new e({type:`bigint`,check:`bigint_format`,abort:!1,format:`int64`,...v(t)})}function fa(e,t){return new e({type:`bigint`,check:`bigint_format`,abort:!1,format:`uint64`,...v(t)})}function pa(e,t){return new e({type:`symbol`,...v(t)})}function ma(e,t){return new e({type:`undefined`,...v(t)})}function ha(e,t){return new e({type:`null`,...v(t)})}function ga(e){return new e({type:`any`})}function _a(e){return new e({type:`unknown`})}function va(e,t){return new e({type:`never`,...v(t)})}function ya(e,t){return new e({type:`void`,...v(t)})}function ba(e,t){return new e({type:`date`,...v(t)})}function xa(e,t){return new e({type:`nan`,...v(t)})}function Sa(e,t){return new fn({check:`less_than`,...v(t),value:e,inclusive:!1})}function Ca(e,t){return new fn({check:`less_than`,...v(t),value:e,inclusive:!0})}function wa(e,t){return new pn({check:`greater_than`,...v(t),value:e,inclusive:!1})}function Ta(e,t){return new pn({check:`greater_than`,...v(t),value:e,inclusive:!0})}function Ea(e){return wa(0,e)}function Da(e){return Sa(0,e)}function Oa(e){return Ca(0,e)}function ka(e){return Ta(0,e)}function Aa(e,t){return new mn({check:`multiple_of`,...v(t),value:e})}function ja(e,t){return new _n({check:`max_size`,...v(t),maximum:e})}function Ma(e,t){return new vn({check:`min_size`,...v(t),minimum:e})}function Na(e,t){return new yn({check:`size_equals`,...v(t),size:e})}function Pa(e,t){return new bn({check:`max_length`,...v(t),maximum:e})}function Fa(e,t){return new xn({check:`min_length`,...v(t),minimum:e})}function Ia(e,t){return new Sn({check:`length_equals`,...v(t),length:e})}function La(e,t){return new wn({check:`string_format`,format:`regex`,...v(t),pattern:e})}function Ra(e){return new Tn({check:`string_format`,format:`lowercase`,...v(e)})}function za(e){return new En({check:`string_format`,format:`uppercase`,...v(e)})}function Ba(e,t){return new Dn({check:`string_format`,format:`includes`,...v(t),includes:e})}function Va(e,t){return new On({check:`string_format`,format:`starts_with`,...v(t),prefix:e})}function Ha(e,t){return new kn({check:`string_format`,format:`ends_with`,...v(t),suffix:e})}function Ua(e,t,n){return new jn({check:`property`,property:e,schema:t,...v(n)})}function Wa(e,t){return new Mn({check:`mime_type`,mime:e,...v(t)})}function Ga(e){return new Nn({check:`overwrite`,tx:e})}function Ka(e){return Ga(t=>t.normalize(e))}function qa(){return Ga(e=>e.trim())}function Ja(){return Ga(e=>e.toLowerCase())}function Ya(){return Ga(e=>e.toUpperCase())}function Xa(){return Ga(e=>se(e))}function Za(e,t,n){return new e({type:`array`,element:t,...v(n)})}function Qa(e,t){return new e({type:`file`,...v(t)})}function $a(e,t,n){let r=v(n);return r.abort??=!0,new e({type:`custom`,check:`custom`,fn:t,...r})}function eo(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...v(n)})}function to(e,t){let n=no(t=>(t.addIssue=e=>{if(typeof e==`string`)t.issues.push(Me(e,t.value,n._zod.def));else{let r=e;r.fatal&&(r.continue=!1),r.code??=`custom`,r.input??=t.value,r.inst??=n,r.continue??=!n._zod.def.abort,t.issues.push(Me(r))}},e(t.value,t)),t);return n}function no(e,t){let n=new S({check:`custom`,...v(t)});return n._zod.check=e,n}function ro(e){let t=new S({check:`describe`});return t._zod.onattach=[t=>{let n=Di.get(t)??{};Di.add(t,{...n,description:e})}],t._zod.check=()=>{},t}function io(e){let t=new S({check:`meta`});return t._zod.onattach=[t=>{let n=Di.get(t)??{};Di.add(t,{...n,...e})}],t._zod.check=()=>{},t}function ao(e,t){let n=v(t),r=n.truthy??[`true`,`1`,`yes`,`on`,`y`,`enabled`],i=n.falsy??[`false`,`0`,`no`,`off`,`n`,`disabled`];n.case!==`sensitive`&&(r=r.map(e=>typeof e==`string`?e.toLowerCase():e),i=i.map(e=>typeof e==`string`?e.toLowerCase():e));let a=new Set(r),o=new Set(i),s=e.Codec??fi,c=e.Boolean??pr,l=new s({type:`pipe`,in:new(e.String??In)({type:`string`,error:n.error}),out:new c({type:`boolean`,error:n.error}),transform:((e,t)=>{let r=e;return n.case!==`sensitive`&&(r=r.toLowerCase()),a.has(r)?!0:o.has(r)?!1:(t.issues.push({code:`invalid_value`,expected:`stringbool`,values:[...a,...o],input:t.value,inst:l,continue:!1}),{})}),reverseTransform:((e,t)=>e===!0?r[0]||`true`:i[0]||`false`),error:n.error});return l}function oo(e,t,n,r={}){let i=v(r),a={...v(r),check:`string_format`,type:`string`,format:t,fn:typeof n==`function`?n:e=>n.test(e),...i};return n instanceof RegExp&&(a.pattern=n),new e(a)}function so(e){let t=e?.target??`draft-2020-12`;return t===`draft-4`&&(t=`draft-04`),t===`draft-7`&&(t=`draft-07`),{processors:e.processors??{},metadataRegistry:e?.metadata??Di,target:t,unrepresentable:e?.unrepresentable??`throw`,override:e?.override??(()=>{}),io:e?.io??`output`,counter:0,seen:new Map,cycles:e?.cycles??`ref`,reused:e?.reused??`inline`,external:e?.external??void 0}}function T(e,t,n={path:[],schemaPath:[]}){var r;let i=e._zod.def,a=t.seen.get(e);if(a)return a.count++,n.schemaPath.includes(e)&&(a.cycle=n.path),a.schema;let o={schema:{},count:1,cycle:void 0,path:n.path};t.seen.set(e,o);let s=e._zod.toJSONSchema?.();if(s)o.schema=s;else{let r={...n,schemaPath:[...n.schemaPath,e],path:n.path};if(e._zod.processJSONSchema)e._zod.processJSONSchema(t,o.schema,r);else{let n=o.schema,a=t.processors[i.type];if(!a)throw Error(`[toJSONSchema]: Non-representable type encountered: ${i.type}`);a(e,t,n,r)}let a=e._zod.parent;a&&(o.ref||=a,T(a,t,r),t.seen.get(a).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Object.assign(o.schema,c),t.io===`input`&&uo(e)&&(delete o.schema.examples,delete o.schema.default),t.io===`input`&&`_prefault`in o.schema&&((r=o.schema).default??(r.default=o.schema._prefault)),delete o.schema._prefault,t.seen.get(e).schema}function co(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=new Map;for(let t of e.seen.entries()){let n=e.metadataRegistry.get(t[0])?.id;if(n){let e=r.get(n);if(e&&e!==t[0])throw Error(`Duplicate schema id "${n}" detected during JSON Schema conversion. Two different schemas cannot share the same id when converted together.`);r.set(n,t[0])}}let i=t=>{let r=e.target===`draft-2020-12`?`$defs`:`definitions`;if(e.external){let n=e.external.registry.get(t[0])?.id,i=e.external.uri??(e=>e);if(n)return{ref:i(n)};let a=t[1].defId??t[1].schema.id??`schema${e.counter++}`;return t[1].defId=a,{defId:a,ref:`${i(`__shared`)}#/${r}/${a}`}}if(t[1]===n)return{ref:`#`};let i=`#/${r}/`,a=t[1].schema.id??`__schema${e.counter++}`;return{defId:a,ref:i+a}},a=e=>{if(e[1].schema.$ref)return;let t=e[1],{ref:n,defId:r}=i(e);t.def={...t.schema},r&&(t.defId=r);let a=t.schema;for(let e in a)delete a[e];a.$ref=n};if(e.cycles===`throw`)for(let t of e.seen.entries()){let e=t[1];if(e.cycle)throw Error(`Cycle detected: #/${e.cycle?.join(`/`)}/<root>
70
70
 
71
- Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0]){a(n);continue}if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}if(e.metadataRegistry.get(n[0])?.id){a(n);continue}if(r.cycle){a(n);continue}if(r.count>1&&e.reused===`ref`){a(n);continue}}}function lo(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):Object.assign(i,s),Object.assign(i,a),t._zod.parent===o)for(let e in i)e===`$ref`||e===`allOf`||e in a||delete i[e];if(s.$ref&&n.def)for(let e in i)e===`$ref`||e===`allOf`||e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e===`$ref`||e===`allOf`||e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};for(let t of[...e.seen.entries()].reverse())r(t[0]);let i={};if(e.target===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:e.target===`draft-07`?i.$schema=`http://json-schema.org/draft-07/schema#`:e.target===`draft-04`?i.$schema=`http://json-schema.org/draft-04/schema#`:e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}Object.assign(i,n.def??n.schema);let a=e.metadataRegistry.get(t)?.id;a!==void 0&&i.id===a&&delete i.id;let o=e.external?.defs??{};for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(e.def.id===e.defId&&delete e.def.id,o[e.defId]=e.def)}e.external||Object.keys(o).length>0&&(e.target===`draft-2020-12`?i.$defs=o:i.definitions=o);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,"~standard",{value:{...t[`~standard`],jsonSchema:{input:po(t,`input`,e.processors),output:po(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function uo(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return!0;if(r.type===`array`)return uo(r.element,n);if(r.type===`set`)return uo(r.valueType,n);if(r.type===`lazy`)return uo(r.getter(),n);if(r.type===`promise`||r.type===`optional`||r.type===`nonoptional`||r.type===`nullable`||r.type===`readonly`||r.type==="default"||r.type===`prefault`)return uo(r.innerType,n);if(r.type===`intersection`)return uo(r.left,n)||uo(r.right,n);if(r.type===`record`||r.type===`map`)return uo(r.keyType,n)||uo(r.valueType,n);if(r.type===`pipe`)return e._zod.traits.has(`$ZodCodec`)?!0:uo(r.in,n)||uo(r.out,n);if(r.type===`object`){for(let e in r.shape)if(uo(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(uo(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(uo(e,n))return!0;return!!(r.rest&&uo(r.rest,n))}return!1}var fo=(e,t={})=>n=>{let r=so({...n,processors:t});return T(e,r),co(r,e),lo(r,e)},po=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=so({...i??{},target:a,io:t,processors:n});return T(e,o),co(o,e),lo(o,e)},mo={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},ho=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l}=e._zod.bag;if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=mo[s]??s,i.format===``&&delete i.format,s===`time`&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c];e.length===1?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({...t.target===`draft-07`||t.target===`draft-04`||t.target===`openapi-3.0`?{type:`string`}:{},pattern:e.source}))])}},go=(e,t,n,r)=>{let i=n,{minimum:a,maximum:o,format:s,multipleOf:c,exclusiveMaximum:l,exclusiveMinimum:u}=e._zod.bag;typeof s==`string`&&s.includes(`int`)?i.type=`integer`:i.type=`number`;let d=typeof u==`number`&&u>=(a??-1/0),f=typeof l==`number`&&l<=(o??1/0),p=t.target===`draft-04`||t.target===`openapi-3.0`;d?p?(i.minimum=u,i.exclusiveMinimum=!0):i.exclusiveMinimum=u:typeof a==`number`&&(i.minimum=a),f?p?(i.maximum=l,i.exclusiveMaximum=!0):i.exclusiveMaximum=l:typeof o==`number`&&(i.maximum=o),typeof c==`number`&&(i.multipleOf=c)},_o=(e,t,n,r)=>{n.type=`boolean`},vo=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`BigInt cannot be represented in JSON Schema`)},yo=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Symbols cannot be represented in JSON Schema`)},bo=(e,t,n,r)=>{t.target===`openapi-3.0`?(n.type=`string`,n.nullable=!0,n.enum=[null]):n.type=`null`},xo=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Undefined cannot be represented in JSON Schema`)},So=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Void cannot be represented in JSON Schema`)},Co=(e,t,n,r)=>{n.not={}},wo=(e,t,n,r)=>{},To=(e,t,n,r)=>{},Eo=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Date cannot be represented in JSON Schema`)},Do=(e,t,n,r)=>{let i=e._zod.def,a=m(i.entries);a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a},Oo=(e,t,n,r)=>{let i=e._zod.def,a=[];for(let e of i.values)if(e===void 0){if(t.unrepresentable===`throw`)throw Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof e==`bigint`){if(t.unrepresentable===`throw`)throw Error(`BigInt literals cannot be represented in JSON Schema`);a.push(Number(e))}else a.push(e);if(a.length!==0)if(a.length===1){let e=a[0];n.type=e===null?`null`:typeof e,t.target===`draft-04`||t.target===`openapi-3.0`?n.enum=[e]:n.const=e}else a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),a.every(e=>typeof e==`boolean`)&&(n.type=`boolean`),a.every(e=>e===null)&&(n.type=`null`),n.enum=a},ko=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`NaN cannot be represented in JSON Schema`)},Ao=(e,t,n,r)=>{let i=n,a=e._zod.pattern;if(!a)throw Error(`Pattern not found in template literal`);i.type=`string`,i.pattern=a.source},jo=(e,t,n,r)=>{let i=n,a={type:`string`,format:`binary`,contentEncoding:`binary`},{minimum:o,maximum:s,mime:c}=e._zod.bag;o!==void 0&&(a.minLength=o),s!==void 0&&(a.maxLength=s),c?c.length===1?(a.contentMediaType=c[0],Object.assign(i,a)):(Object.assign(i,a),i.anyOf=c.map(e=>({contentMediaType:e}))):Object.assign(i,a)},Mo=(e,t,n,r)=>{n.type=`boolean`},No=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Custom types cannot be represented in JSON Schema`)},Po=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Function types cannot be represented in JSON Schema`)},Fo=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Transforms cannot be represented in JSON Schema`)},Io=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Map cannot be represented in JSON Schema`)},Lo=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Set cannot be represented in JSON Schema`)},Ro=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=e._zod.bag;typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=T(a.element,t,{...r,path:[...r.path,`items`]})},zo=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`,i.properties={};let o=a.shape;for(let e in o)i.properties[e]=T(o[e],t,{...r,path:[...r.path,`properties`,e]});let s=new Set(Object.keys(o)),c=new Set([...s].filter(e=>{let n=a.shape[e]._zod;return t.io===`input`?n.optin===void 0:n.optout===void 0}));c.size>0&&(i.required=Array.from(c)),a.catchall?._zod.def.type===`never`?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=T(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},Bo=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>T(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},Vo=(e,t,n,r)=>{let i=e._zod.def,a=T(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=T(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1;n.allOf=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]]},Ho=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`array`;let o=t.target===`draft-2020-12`?`prefixItems`:`items`,s=t.target===`draft-2020-12`||t.target===`openapi-3.0`?`items`:`additionalItems`,c=a.items.map((e,n)=>T(e,t,{...r,path:[...r.path,o,n]})),l=a.rest?T(a.rest,t,{...r,path:[...r.path,s,...t.target===`openapi-3.0`?[a.items.length]:[]]}):null;t.target===`draft-2020-12`?(i.prefixItems=c,l&&(i.items=l)):t.target===`openapi-3.0`?(i.items={anyOf:c},l&&i.items.anyOf.push(l),i.minItems=c.length,l||(i.maxItems=c.length)):(i.items=c,l&&(i.additionalItems=l));let{minimum:u,maximum:d}=e._zod.bag;typeof u==`number`&&(i.minItems=u),typeof d==`number`&&(i.maxItems=d)},Uo=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`;let o=a.keyType,s=o._zod.bag?.patterns;if(a.mode===`loose`&&s&&s.size>0){let e=T(a.valueType,t,{...r,path:[...r.path,`patternProperties`,`*`]});i.patternProperties={};for(let t of s)i.patternProperties[t.source]=e}else(t.target===`draft-07`||t.target===`draft-2020-12`)&&(i.propertyNames=T(a.keyType,t,{...r,path:[...r.path,`propertyNames`]})),i.additionalProperties=T(a.valueType,t,{...r,path:[...r.path,`additionalProperties`]});let c=o._zod.values;if(c){let e=[...c].filter(e=>typeof e==`string`||typeof e==`number`);e.length>0&&(i.required=e)}},Wo=(e,t,n,r)=>{let i=e._zod.def,a=T(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:`null`}]},Go=(e,t,n,r)=>{let i=e._zod.def;T(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},Ko=(e,t,n,r)=>{let i=e._zod.def;T(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},qo=(e,t,n,r)=>{let i=e._zod.def;T(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,t.io===`input`&&(n._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},Jo=(e,t,n,r)=>{let i=e._zod.def;T(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{throw Error(`Dynamic catch values are not supported in JSON Schema`)}n.default=o},Yo=(e,t,n,r)=>{let i=e._zod.def,a=i.in._zod.traits.has(`$ZodTransform`),o=t.io===`input`?a?i.out:i.in:i.out;T(o,t,r);let s=t.seen.get(e);s.ref=o},Xo=(e,t,n,r)=>{let i=e._zod.def;T(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},Zo=(e,t,n,r)=>{let i=e._zod.def;T(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},Qo=(e,t,n,r)=>{let i=e._zod.def;T(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},$o=(e,t,n,r)=>{let i=e._zod.innerType;T(i,t,r);let a=t.seen.get(e);a.ref=i},es={string:ho,number:go,boolean:_o,bigint:vo,symbol:yo,null:bo,undefined:xo,void:So,never:Co,any:wo,unknown:To,date:Eo,enum:Do,literal:Oo,nan:ko,template_literal:Ao,file:jo,success:Mo,custom:No,function:Po,transform:Fo,map:Io,set:Lo,array:Ro,object:zo,union:Bo,intersection:Vo,tuple:Ho,record:Uo,nullable:Wo,nonoptional:Go,default:Ko,prefault:qo,catch:Jo,pipe:Yo,readonly:Xo,promise:Zo,optional:Qo,lazy:$o};function ts(e,t){if(`_idmap`in e){let n=e,r=so({...t,processors:es}),i={};for(let e of n._idmap.entries()){let[t,n]=e;T(n,r)}let a={};r.external={registry:n,uri:t?.uri,defs:i};for(let e of n._idmap.entries()){let[t,n]=e;co(r,n),a[t]=lo(r,n)}return Object.keys(i).length>0&&(a.__shared={[r.target===`draft-2020-12`?`$defs`:`definitions`]:i}),{schemas:a}}let n=so({...t,processors:es});return T(e,n),co(n,e),lo(n,e)}var ns=t({endsWith:()=>Ha,gt:()=>wa,gte:()=>Ta,includes:()=>Ba,length:()=>Ia,lowercase:()=>Ra,lt:()=>Sa,lte:()=>Ca,maxLength:()=>Pa,maxSize:()=>ja,mime:()=>Wa,minLength:()=>Fa,minSize:()=>Ma,multipleOf:()=>Aa,negative:()=>Da,nonnegative:()=>ka,nonpositive:()=>Oa,normalize:()=>Ka,overwrite:()=>Ga,positive:()=>Ea,property:()=>Ua,regex:()=>La,size:()=>Na,slugify:()=>Xa,startsWith:()=>Va,toLowerCase:()=>Ja,toUpperCase:()=>Ya,trim:()=>qa,uppercase:()=>za}),rs=t({ZodISODate:()=>os,ZodISODateTime:()=>is,ZodISODuration:()=>us,ZodISOTime:()=>cs,date:()=>ss,datetime:()=>as,duration:()=>ds,time:()=>ls}),is=l(`ZodISODateTime`,(e,t)=>{Jn.init(e,t),O.init(e,t)});function as(e){return Qi(is,e)}var os=l(`ZodISODate`,(e,t)=>{Yn.init(e,t),O.init(e,t)});function ss(e){return $i(os,e)}var cs=l(`ZodISOTime`,(e,t)=>{Xn.init(e,t),O.init(e,t)});function ls(e){return ea(cs,e)}var us=l(`ZodISODuration`,(e,t)=>{Zn.init(e,t),O.init(e,t)});function ds(e){return ta(us,e)}var fs=l(`ZodError`,(e,t)=>{Pe.init(e,t),e.name=`ZodError`,Object.defineProperties(e,{format:{value:t=>Le(e,t)},flatten:{value:t=>Ie(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,h,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,h,2)}},isEmpty:{get(){return e.issues.length===0}}})},{Parent:Error}),ps=Re(fs),ms=Be(fs),hs=He(fs),gs=We(fs),_s=Ke(fs),vs=qe(fs),ys=Je(fs),bs=Ye(fs),xs=Xe(fs),Ss=Ze(fs),Cs=Qe(fs),ws=$e(fs),Ts=t({ZodAny:()=>Wc,ZodArray:()=>$c,ZodBase64:()=>fc,ZodBase64URL:()=>mc,ZodBigInt:()=>Nc,ZodBigIntFormat:()=>Fc,ZodBoolean:()=>Mc,ZodCIDRv4:()=>cc,ZodCIDRv6:()=>uc,ZodCUID:()=>Ks,ZodCUID2:()=>Js,ZodCatch:()=>Bl,ZodCodec:()=>Kl,ZodCustom:()=>ou,ZodCustomStringFormat:()=>bc,ZodDate:()=>Zc,ZodDefault:()=>Ml,ZodDiscriminatedUnion:()=>ol,ZodE164:()=>gc,ZodEmail:()=>As,ZodEmoji:()=>Hs,ZodEnum:()=>yl,ZodExactOptional:()=>Dl,ZodFile:()=>Sl,ZodFunction:()=>iu,ZodGUID:()=>Ms,ZodIPv4:()=>nc,ZodIPv6:()=>oc,ZodIntersection:()=>cl,ZodJWT:()=>vc,ZodKSUID:()=>ec,ZodLazy:()=>eu,ZodLiteral:()=>xl,ZodMAC:()=>ic,ZodMap:()=>hl,ZodNaN:()=>Hl,ZodNanoID:()=>Ws,ZodNever:()=>qc,ZodNonOptional:()=>Il,ZodNull:()=>Hc,ZodNullable:()=>kl,ZodNumber:()=>Tc,ZodNumberFormat:()=>Ec,ZodObject:()=>tl,ZodOptional:()=>El,ZodPipe:()=>Wl,ZodPrefault:()=>Pl,ZodPreprocess:()=>Yl,ZodPromise:()=>nu,ZodReadonly:()=>Xl,ZodRecord:()=>fl,ZodSet:()=>_l,ZodString:()=>ks,ZodStringFormat:()=>O,ZodSuccess:()=>Rl,ZodSymbol:()=>Rc,ZodTemplateLiteral:()=>Ql,ZodTransform:()=>wl,ZodTuple:()=>ul,ZodType:()=>E,ZodULID:()=>Xs,ZodURL:()=>zs,ZodUUID:()=>Ps,ZodUndefined:()=>Bc,ZodUnion:()=>rl,ZodUnknown:()=>Kc,ZodVoid:()=>Yc,ZodXID:()=>Qs,ZodXor:()=>il,_ZodString:()=>Os,_default:()=>Nl,_function:()=>au,any:()=>Gc,array:()=>M,base64:()=>pc,base64url:()=>hc,bigint:()=>Pc,boolean:()=>A,catch:()=>Vl,check:()=>su,cidrv4:()=>lc,cidrv6:()=>dc,codec:()=>ql,cuid:()=>qs,cuid2:()=>Ys,custom:()=>cu,date:()=>Qc,describe:()=>du,discriminatedUnion:()=>sl,e164:()=>_c,email:()=>js,emoji:()=>Us,enum:()=>L,exactOptional:()=>Ol,file:()=>Cl,float32:()=>Oc,float64:()=>kc,function:()=>au,guid:()=>Ns,hash:()=>wc,hex:()=>Cc,hostname:()=>Sc,httpUrl:()=>Vs,instanceof:()=>pu,int:()=>Dc,int32:()=>Ac,int64:()=>Ic,intersection:()=>ll,invertCodec:()=>Jl,ipv4:()=>rc,ipv6:()=>sc,json:()=>hu,jwt:()=>yc,keyof:()=>el,ksuid:()=>tc,lazy:()=>tu,literal:()=>R,looseObject:()=>P,looseRecord:()=>ml,mac:()=>ac,map:()=>gl,meta:()=>fu,nan:()=>Ul,nanoid:()=>Gs,nativeEnum:()=>bl,never:()=>Jc,nonoptional:()=>Ll,null:()=>Uc,nullable:()=>Al,nullish:()=>jl,number:()=>k,object:()=>N,optional:()=>z,partialRecord:()=>pl,pipe:()=>Gl,prefault:()=>Fl,preprocess:()=>gu,promise:()=>ru,readonly:()=>Zl,record:()=>I,refine:()=>lu,set:()=>vl,strictObject:()=>nl,string:()=>D,stringFormat:()=>xc,stringbool:()=>mu,success:()=>zl,superRefine:()=>uu,symbol:()=>zc,templateLiteral:()=>$l,transform:()=>Tl,tuple:()=>dl,uint32:()=>jc,uint64:()=>Lc,ulid:()=>Zs,undefined:()=>Vc,union:()=>F,unknown:()=>j,url:()=>Bs,uuid:()=>Fs,uuidv4:()=>Is,uuidv6:()=>Ls,uuidv7:()=>Rs,void:()=>Xc,xid:()=>$s,xor:()=>al}),Es=new WeakMap;function Ds(e,t,n){let r=Object.getPrototypeOf(e),i=Es.get(r);if(i||(i=new Set,Es.set(r,i)),!i.has(t)){i.add(t);for(let e in n){let t=n[e];Object.defineProperty(r,e,{configurable:!0,enumerable:!1,get(){let n=t.bind(this);return Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:n}),n},set(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:t})}})}}}var E=l(`ZodType`,(e,t)=>(C.init(e,t),Object.assign(e[`~standard`],{jsonSchema:{input:po(e,`input`),output:po(e,`output`)}}),e.toJSONSchema=fo(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(t,n)=>ps(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>hs(e,t,n),e.parseAsync=async(t,n)=>ms(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>gs(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>_s(e,t,n),e.decode=(t,n)=>vs(e,t,n),e.encodeAsync=async(t,n)=>ys(e,t,n),e.decodeAsync=async(t,n)=>bs(e,t,n),e.safeEncode=(t,n)=>xs(e,t,n),e.safeDecode=(t,n)=>Ss(e,t,n),e.safeEncodeAsync=async(t,n)=>Cs(e,t,n),e.safeDecodeAsync=async(t,n)=>ws(e,t,n),Ds(e,`ZodType`,{check(...e){let t=this.def;return this.clone(ae(t,{checks:[...t.checks??[],...e.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return ge(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(lu(e,t))},superRefine(e,t){return this.check(uu(e,t))},overwrite(e){return this.check(Ga(e))},optional(){return z(this)},exactOptional(){return Ol(this)},nullable(){return Al(this)},nullish(){return z(Al(this))},nonoptional(e){return Ll(this,e)},array(){return M(this)},or(e){return F([this,e])},and(e){return ll(this,e)},transform(e){return Gl(this,Tl(e))},default(e){return Nl(this,e)},prefault(e){return Fl(this,e)},catch(e){return Vl(this,e)},pipe(e){return Gl(this,e)},readonly(){return Zl(this)},describe(e){let t=this.clone();return Di.add(t,{description:e}),t},meta(...e){if(e.length===0)return Di.get(this);let t=this.clone();return Di.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e){return e(this)}}),Object.defineProperty(e,"description",{get(){return Di.get(e)?.description},configurable:!0}),e)),Os=l(`_ZodString`,(e,t)=>{In.init(e,t),E.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ho(e,t,n,r);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,Ds(e,`_ZodString`,{regex(...e){return this.check(La(...e))},includes(...e){return this.check(Ba(...e))},startsWith(...e){return this.check(Va(...e))},endsWith(...e){return this.check(Ha(...e))},min(...e){return this.check(Fa(...e))},max(...e){return this.check(Pa(...e))},length(...e){return this.check(Ia(...e))},nonempty(...e){return this.check(Fa(1,...e))},lowercase(e){return this.check(Ra(e))},uppercase(e){return this.check(za(e))},trim(){return this.check(qa())},normalize(...e){return this.check(Ka(...e))},toLowerCase(){return this.check(Ja())},toUpperCase(){return this.check(Ya())},slugify(){return this.check(Xa())}})}),ks=l(`ZodString`,(e,t)=>{In.init(e,t),Os.init(e,t),e.email=t=>e.check(ki(As,t)),e.url=t=>e.check(Fi(zs,t)),e.jwt=t=>e.check(Zi(vc,t)),e.emoji=t=>e.check(Ii(Hs,t)),e.guid=t=>e.check(Ai(Ms,t)),e.uuid=t=>e.check(ji(Ps,t)),e.uuidv4=t=>e.check(Mi(Ps,t)),e.uuidv6=t=>e.check(Ni(Ps,t)),e.uuidv7=t=>e.check(Pi(Ps,t)),e.nanoid=t=>e.check(Li(Ws,t)),e.guid=t=>e.check(Ai(Ms,t)),e.cuid=t=>e.check(Ri(Ks,t)),e.cuid2=t=>e.check(zi(Js,t)),e.ulid=t=>e.check(Bi(Xs,t)),e.base64=t=>e.check(Ji(fc,t)),e.base64url=t=>e.check(Yi(mc,t)),e.xid=t=>e.check(Vi(Qs,t)),e.ksuid=t=>e.check(Hi(ec,t)),e.ipv4=t=>e.check(Ui(nc,t)),e.ipv6=t=>e.check(Wi(oc,t)),e.cidrv4=t=>e.check(Ki(cc,t)),e.cidrv6=t=>e.check(qi(uc,t)),e.e164=t=>e.check(Xi(gc,t)),e.datetime=t=>e.check(as(t)),e.date=t=>e.check(ss(t)),e.time=t=>e.check(ls(t)),e.duration=t=>e.check(ds(t))});function D(e){return Oi(ks,e)}var O=l(`ZodStringFormat`,(e,t)=>{w.init(e,t),Os.init(e,t)}),As=l(`ZodEmail`,(e,t)=>{zn.init(e,t),O.init(e,t)});function js(e){return ki(As,e)}var Ms=l(`ZodGUID`,(e,t)=>{Ln.init(e,t),O.init(e,t)});function Ns(e){return Ai(Ms,e)}var Ps=l(`ZodUUID`,(e,t)=>{Rn.init(e,t),O.init(e,t)});function Fs(e){return ji(Ps,e)}function Is(e){return Mi(Ps,e)}function Ls(e){return Ni(Ps,e)}function Rs(e){return Pi(Ps,e)}var zs=l(`ZodURL`,(e,t)=>{Bn.init(e,t),O.init(e,t)});function Bs(e){return Fi(zs,e)}function Vs(e){return Fi(zs,{protocol:At,hostname:kt,...v(e)})}var Hs=l(`ZodEmoji`,(e,t)=>{Vn.init(e,t),O.init(e,t)});function Us(e){return Ii(Hs,e)}var Ws=l(`ZodNanoID`,(e,t)=>{Hn.init(e,t),O.init(e,t)});function Gs(e){return Li(Ws,e)}var Ks=l(`ZodCUID`,(e,t)=>{Un.init(e,t),O.init(e,t)});function qs(e){return Ri(Ks,e)}var Js=l(`ZodCUID2`,(e,t)=>{Wn.init(e,t),O.init(e,t)});function Ys(e){return zi(Js,e)}var Xs=l(`ZodULID`,(e,t)=>{Gn.init(e,t),O.init(e,t)});function Zs(e){return Bi(Xs,e)}var Qs=l(`ZodXID`,(e,t)=>{Kn.init(e,t),O.init(e,t)});function $s(e){return Vi(Qs,e)}var ec=l(`ZodKSUID`,(e,t)=>{qn.init(e,t),O.init(e,t)});function tc(e){return Hi(ec,e)}var nc=l(`ZodIPv4`,(e,t)=>{Qn.init(e,t),O.init(e,t)});function rc(e){return Ui(nc,e)}var ic=l(`ZodMAC`,(e,t)=>{er.init(e,t),O.init(e,t)});function ac(e){return Gi(ic,e)}var oc=l(`ZodIPv6`,(e,t)=>{$n.init(e,t),O.init(e,t)});function sc(e){return Wi(oc,e)}var cc=l(`ZodCIDRv4`,(e,t)=>{tr.init(e,t),O.init(e,t)});function lc(e){return Ki(cc,e)}var uc=l(`ZodCIDRv6`,(e,t)=>{nr.init(e,t),O.init(e,t)});function dc(e){return qi(uc,e)}var fc=l(`ZodBase64`,(e,t)=>{ir.init(e,t),O.init(e,t)});function pc(e){return Ji(fc,e)}var mc=l(`ZodBase64URL`,(e,t)=>{or.init(e,t),O.init(e,t)});function hc(e){return Yi(mc,e)}var gc=l(`ZodE164`,(e,t)=>{sr.init(e,t),O.init(e,t)});function _c(e){return Xi(gc,e)}var vc=l(`ZodJWT`,(e,t)=>{lr.init(e,t),O.init(e,t)});function yc(e){return Zi(vc,e)}var bc=l(`ZodCustomStringFormat`,(e,t)=>{ur.init(e,t),O.init(e,t)});function xc(e,t,n={}){return oo(bc,e,t,n)}function Sc(e){return oo(bc,`hostname`,Ot,e)}function Cc(e){return oo(bc,`hex`,Kt,e)}function wc(e,t){let n=`${e}_${t?.enc??`hex`}`,r=et[n];if(!r)throw Error(`Unrecognized hash format: ${n}`);return oo(bc,n,r,t)}var Tc=l(`ZodNumber`,(e,t)=>{dr.init(e,t),E.init(e,t),e._zod.processJSONSchema=(t,n,r)=>go(e,t,n,r),Ds(e,`ZodNumber`,{gt(e,t){return this.check(wa(e,t))},gte(e,t){return this.check(Ta(e,t))},min(e,t){return this.check(Ta(e,t))},lt(e,t){return this.check(Sa(e,t))},lte(e,t){return this.check(Ca(e,t))},max(e,t){return this.check(Ca(e,t))},int(e){return this.check(Dc(e))},safe(e){return this.check(Dc(e))},positive(e){return this.check(wa(0,e))},nonnegative(e){return this.check(Ta(0,e))},negative(e){return this.check(Sa(0,e))},nonpositive(e){return this.check(Ca(0,e))},multipleOf(e,t){return this.check(Aa(e,t))},step(e,t){return this.check(Aa(e,t))},finite(){return this}});let n=e._zod.bag;e.minValue=Math.max(n.minimum??-1/0,n.exclusiveMinimum??-1/0)??null,e.maxValue=Math.min(n.maximum??1/0,n.exclusiveMaximum??1/0)??null,e.isInt=(n.format??``).includes(`int`)||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function k(e){return na(Tc,e)}var Ec=l(`ZodNumberFormat`,(e,t)=>{fr.init(e,t),Tc.init(e,t)});function Dc(e){return ia(Ec,e)}function Oc(e){return aa(Ec,e)}function kc(e){return oa(Ec,e)}function Ac(e){return sa(Ec,e)}function jc(e){return ca(Ec,e)}var Mc=l(`ZodBoolean`,(e,t)=>{pr.init(e,t),E.init(e,t),e._zod.processJSONSchema=(t,n,r)=>_o(e,t,n,r)});function A(e){return la(Mc,e)}var Nc=l(`ZodBigInt`,(e,t)=>{mr.init(e,t),E.init(e,t),e._zod.processJSONSchema=(t,n,r)=>vo(e,t,n,r),e.gte=(t,n)=>e.check(Ta(t,n)),e.min=(t,n)=>e.check(Ta(t,n)),e.gt=(t,n)=>e.check(wa(t,n)),e.gte=(t,n)=>e.check(Ta(t,n)),e.min=(t,n)=>e.check(Ta(t,n)),e.lt=(t,n)=>e.check(Sa(t,n)),e.lte=(t,n)=>e.check(Ca(t,n)),e.max=(t,n)=>e.check(Ca(t,n)),e.positive=t=>e.check(wa(BigInt(0),t)),e.negative=t=>e.check(Sa(BigInt(0),t)),e.nonpositive=t=>e.check(Ca(BigInt(0),t)),e.nonnegative=t=>e.check(Ta(BigInt(0),t)),e.multipleOf=(t,n)=>e.check(Aa(t,n));let n=e._zod.bag;e.minValue=n.minimum??null,e.maxValue=n.maximum??null,e.format=n.format??null});function Pc(e){return ua(Nc,e)}var Fc=l(`ZodBigIntFormat`,(e,t)=>{hr.init(e,t),Nc.init(e,t)});function Ic(e){return da(Fc,e)}function Lc(e){return fa(Fc,e)}var Rc=l(`ZodSymbol`,(e,t)=>{gr.init(e,t),E.init(e,t),e._zod.processJSONSchema=(t,n,r)=>yo(e,t,n,r)});function zc(e){return pa(Rc,e)}var Bc=l(`ZodUndefined`,(e,t)=>{_r.init(e,t),E.init(e,t),e._zod.processJSONSchema=(t,n,r)=>xo(e,t,n,r)});function Vc(e){return ma(Bc,e)}var Hc=l(`ZodNull`,(e,t)=>{vr.init(e,t),E.init(e,t),e._zod.processJSONSchema=(t,n,r)=>bo(e,t,n,r)});function Uc(e){return ha(Hc,e)}var Wc=l(`ZodAny`,(e,t)=>{yr.init(e,t),E.init(e,t),e._zod.processJSONSchema=(e,t,n)=>void 0});function Gc(){return ga(Wc)}var Kc=l(`ZodUnknown`,(e,t)=>{br.init(e,t),E.init(e,t),e._zod.processJSONSchema=(e,t,n)=>void 0});function j(){return _a(Kc)}var qc=l(`ZodNever`,(e,t)=>{xr.init(e,t),E.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Co(e,t,n,r)});function Jc(e){return va(qc,e)}var Yc=l(`ZodVoid`,(e,t)=>{Sr.init(e,t),E.init(e,t),e._zod.processJSONSchema=(t,n,r)=>So(e,t,n,r)});function Xc(e){return ya(Yc,e)}var Zc=l(`ZodDate`,(e,t)=>{Cr.init(e,t),E.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Eo(e,t,n,r),e.min=(t,n)=>e.check(Ta(t,n)),e.max=(t,n)=>e.check(Ca(t,n));let n=e._zod.bag;e.minDate=n.minimum?new Date(n.minimum):null,e.maxDate=n.maximum?new Date(n.maximum):null});function Qc(e){return ba(Zc,e)}var $c=l(`ZodArray`,(e,t)=>{Tr.init(e,t),E.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ro(e,t,n,r),e.element=t.element,Ds(e,`ZodArray`,{min(e,t){return this.check(Fa(e,t))},nonempty(e){return this.check(Fa(1,e))},max(e,t){return this.check(Pa(e,t))},length(e,t){return this.check(Ia(e,t))},unwrap(){return this.element}})});function M(e,t){return Za($c,e,t)}function el(e){let t=e._zod.def.shape;return L(Object.keys(t))}var tl=l(`ZodObject`,(e,t)=>{Ar.init(e,t),E.init(e,t),e._zod.processJSONSchema=(t,n,r)=>zo(e,t,n,r),_(e,`shape`,()=>t.shape),Ds(e,`ZodObject`,{keyof(){return L(Object.keys(this._zod.def.shape))},catchall(e){return this.clone({...this._zod.def,catchall:e})},passthrough(){return this.clone({...this._zod.def,catchall:j()})},loose(){return this.clone({...this._zod.def,catchall:j()})},strict(){return this.clone({...this._zod.def,catchall:Jc()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(e){return Se(this,e)},safeExtend(e){return Ce(this,e)},merge(e){return we(this,e)},pick(e){return be(this,e)},omit(e){return xe(this,e)},partial(...e){return Te(El,this,e[0])},required(...e){return Ee(Il,this,e[0])}})});function N(e,t){return new tl({type:`object`,shape:e??{},...v(t)})}function nl(e,t){return new tl({type:`object`,shape:e,catchall:Jc(),...v(t)})}function P(e,t){return new tl({type:`object`,shape:e,catchall:j(),...v(t)})}var rl=l(`ZodUnion`,(e,t)=>{Mr.init(e,t),E.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Bo(e,t,n,r),e.options=t.options});function F(e,t){return new rl({type:`union`,options:e,...v(t)})}var il=l(`ZodXor`,(e,t)=>{rl.init(e,t),Pr.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Bo(e,t,n,r),e.options=t.options});function al(e,t){return new il({type:`union`,options:e,inclusive:!1,...v(t)})}var ol=l(`ZodDiscriminatedUnion`,(e,t)=>{rl.init(e,t),Fr.init(e,t)});function sl(e,t,n){return new ol({type:`union`,options:t,discriminator:e,...v(n)})}var cl=l(`ZodIntersection`,(e,t)=>{Ir.init(e,t),E.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Vo(e,t,n,r)});function ll(e,t){return new cl({type:`intersection`,left:e,right:t})}var ul=l(`ZodTuple`,(e,t)=>{zr.init(e,t),E.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ho(e,t,n,r),e.rest=t=>e.clone({...e._zod.def,rest:t})});function dl(e,t,n){let r=t instanceof C;return new ul({type:`tuple`,items:e,rest:r?t:null,...v(r?n:t)})}var fl=l(`ZodRecord`,(e,t)=>{Ur.init(e,t),E.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Uo(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType});function I(e,t,n){return!t||!t._zod?new fl({type:`record`,keyType:D(),valueType:e,...v(t)}):new fl({type:`record`,keyType:e,valueType:t,...v(n)})}function pl(e,t,n){let r=ge(e);return r._zod.values=void 0,new fl({type:`record`,keyType:r,valueType:t,...v(n)})}function ml(e,t,n){return new fl({type:`record`,keyType:e,valueType:t,mode:`loose`,...v(n)})}var hl=l(`ZodMap`,(e,t)=>{Wr.init(e,t),E.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Io(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...t)=>e.check(Ma(...t)),e.nonempty=t=>e.check(Ma(1,t)),e.max=(...t)=>e.check(ja(...t)),e.size=(...t)=>e.check(Na(...t))});function gl(e,t,n){return new hl({type:`map`,keyType:e,valueType:t,...v(n)})}var _l=l(`ZodSet`,(e,t)=>{Kr.init(e,t),E.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Lo(e,t,n,r),e.min=(...t)=>e.check(Ma(...t)),e.nonempty=t=>e.check(Ma(1,t)),e.max=(...t)=>e.check(ja(...t)),e.size=(...t)=>e.check(Na(...t))});function vl(e,t){return new _l({type:`set`,valueType:e,...v(t)})}var yl=l(`ZodEnum`,(e,t)=>{Jr.init(e,t),E.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Do(e,t,n,r),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new yl({...t,checks:[],...v(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new yl({...t,checks:[],...v(r),entries:i})}});function L(e,t){return new yl({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...v(t)})}function bl(e,t){return new yl({type:`enum`,entries:e,...v(t)})}var xl=l(`ZodLiteral`,(e,t)=>{Yr.init(e,t),E.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Oo(e,t,n,r),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function R(e,t){return new xl({type:`literal`,values:Array.isArray(e)?e:[e],...v(t)})}var Sl=l(`ZodFile`,(e,t)=>{Xr.init(e,t),E.init(e,t),e._zod.processJSONSchema=(t,n,r)=>jo(e,t,n,r),e.min=(t,n)=>e.check(Ma(t,n)),e.max=(t,n)=>e.check(ja(t,n)),e.mime=(t,n)=>e.check(Wa(Array.isArray(t)?t:[t],n))});function Cl(e){return Qa(Sl,e)}var wl=l(`ZodTransform`,(e,t)=>{Zr.init(e,t),E.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Fo(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new d(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(Me(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,t.input??=n.value,t.inst??=e,n.issues.push(Me(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n.fallback=!0,n)):(n.value=i,n.fallback=!0,n)}});function Tl(e){return new wl({type:`transform`,transform:e})}var El=l(`ZodOptional`,(e,t)=>{$r.init(e,t),E.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Qo(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function z(e){return new El({type:`optional`,innerType:e})}var Dl=l(`ZodExactOptional`,(e,t)=>{ei.init(e,t),E.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Qo(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Ol(e){return new Dl({type:`optional`,innerType:e})}var kl=l(`ZodNullable`,(e,t)=>{ti.init(e,t),E.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Wo(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Al(e){return new kl({type:`nullable`,innerType:e})}function jl(e){return z(Al(e))}var Ml=l(`ZodDefault`,(e,t)=>{ni.init(e,t),E.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ko(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Nl(e,t){return new Ml({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():fe(t)}})}var Pl=l(`ZodPrefault`,(e,t)=>{ii.init(e,t),E.init(e,t),e._zod.processJSONSchema=(t,n,r)=>qo(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Fl(e,t){return new Pl({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():fe(t)}})}var Il=l(`ZodNonOptional`,(e,t)=>{ai.init(e,t),E.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Go(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Ll(e,t){return new Il({type:`nonoptional`,innerType:e,...v(t)})}var Rl=l(`ZodSuccess`,(e,t)=>{si.init(e,t),E.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Mo(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function zl(e){return new Rl({type:`success`,innerType:e})}var Bl=l(`ZodCatch`,(e,t)=>{ci.init(e,t),E.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Jo(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Vl(e,t){return new Bl({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:()=>t})}var Hl=l(`ZodNaN`,(e,t)=>{li.init(e,t),E.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ko(e,t,n,r)});function Ul(e){return xa(Hl,e)}var Wl=l(`ZodPipe`,(e,t)=>{ui.init(e,t),E.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Yo(e,t,n,r),e.in=t.in,e.out=t.out});function Gl(e,t){return new Wl({type:`pipe`,in:e,out:t})}var Kl=l(`ZodCodec`,(e,t)=>{Wl.init(e,t),fi.init(e,t)});function ql(e,t,n){return new Kl({type:`pipe`,in:e,out:t,transform:n.decode,reverseTransform:n.encode})}function Jl(e){let t=e._zod.def;return new Kl({type:`pipe`,in:t.out,out:t.in,transform:t.reverseTransform,reverseTransform:t.transform})}var Yl=l(`ZodPreprocess`,(e,t)=>{Wl.init(e,t),hi.init(e,t)}),Xl=l(`ZodReadonly`,(e,t)=>{gi.init(e,t),E.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Xo(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Zl(e){return new Xl({type:`readonly`,innerType:e})}var Ql=l(`ZodTemplateLiteral`,(e,t)=>{vi.init(e,t),E.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ao(e,t,n,r)});function $l(e,t){return new Ql({type:`template_literal`,parts:e,...v(t)})}var eu=l(`ZodLazy`,(e,t)=>{xi.init(e,t),E.init(e,t),e._zod.processJSONSchema=(t,n,r)=>$o(e,t,n,r),e.unwrap=()=>e._zod.def.getter()});function tu(e){return new eu({type:`lazy`,getter:e})}var nu=l(`ZodPromise`,(e,t)=>{bi.init(e,t),E.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Zo(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function ru(e){return new nu({type:`promise`,innerType:e})}var iu=l(`ZodFunction`,(e,t)=>{yi.init(e,t),E.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Po(e,t,n,r)});function au(e){return new iu({type:`function`,input:Array.isArray(e?.input)?dl(e?.input):e?.input??M(j()),output:e?.output??j()})}var ou=l(`ZodCustom`,(e,t)=>{Si.init(e,t),E.init(e,t),e._zod.processJSONSchema=(t,n,r)=>No(e,t,n,r)});function su(e){let t=new S({check:`custom`});return t._zod.check=e,t}function cu(e,t){return $a(ou,e??(()=>!0),t)}function lu(e,t={}){return eo(ou,e,t)}function uu(e,t){return to(e,t)}var du=ro,fu=io;function pu(e,t={}){let n=new ou({type:`custom`,check:`custom`,fn:t=>t instanceof e,abort:!0,...v(t)});return n._zod.bag.Class=e,n._zod.check=t=>{t.value instanceof e||t.issues.push({code:`invalid_type`,expected:e.name,input:t.value,inst:n,path:[...n._zod.def.path??[]]})},n}var mu=(...e)=>ao({Codec:Kl,Boolean:Mc,String:ks},...e);function hu(e){let t=tu(()=>F([D(e),k(),A(),Uc(),M(t),I(D(),t)]));return t}function gu(e,t){return new Yl({type:`pipe`,in:Tl(e),out:t})}var _u={invalid_type:`invalid_type`,too_big:`too_big`,too_small:`too_small`,invalid_format:`invalid_format`,not_multiple_of:`not_multiple_of`,unrecognized_keys:`unrecognized_keys`,invalid_union:`invalid_union`,invalid_key:`invalid_key`,invalid_element:`invalid_element`,invalid_value:`invalid_value`,custom:`custom`},vu;vu||={};var B={...Ts,...ns,iso:rs},yu=new Set(`$schema.$ref.$defs.definitions.$id.id.$comment.$anchor.$vocabulary.$dynamicRef.$dynamicAnchor.type.enum.const.anyOf.oneOf.allOf.not.properties.required.additionalProperties.patternProperties.propertyNames.minProperties.maxProperties.items.prefixItems.additionalItems.minItems.maxItems.uniqueItems.contains.minContains.maxContains.minLength.maxLength.pattern.format.minimum.maximum.exclusiveMinimum.exclusiveMaximum.multipleOf.description.default.contentEncoding.contentMediaType.contentSchema.unevaluatedItems.unevaluatedProperties.if.then.else.dependentSchemas.dependentRequired.nullable.readOnly`.split(`.`));function bu(e,t){let n=e.$schema;return n===`https://json-schema.org/draft/2020-12/schema`?`draft-2020-12`:n===`http://json-schema.org/draft-07/schema#`?`draft-7`:n===`http://json-schema.org/draft-04/schema#`?`draft-4`:t??`draft-2020-12`}function xu(e,t){if(!e.startsWith(`#`))throw Error(`External $ref is not supported, only local refs (#/...) are allowed`);let n=e.slice(1).split(`/`).filter(Boolean);if(n.length===0)return t.rootSchema;let r=t.version===`draft-2020-12`?`$defs`:`definitions`;if(n[0]===r){let r=n[1];if(!r||!t.defs[r])throw Error(`Reference not found: ${e}`);return t.defs[r]}throw Error(`Reference not found: ${e}`)}function Su(e,t){if(e.not!==void 0){if(typeof e.not==`object`&&Object.keys(e.not).length===0)return B.never();throw Error(`not is not supported in Zod (except { not: {} } for never)`)}if(e.unevaluatedItems!==void 0)throw Error(`unevaluatedItems is not supported`);if(e.unevaluatedProperties!==void 0)throw Error(`unevaluatedProperties is not supported`);if(e.if!==void 0||e.then!==void 0||e.else!==void 0)throw Error(`Conditional schemas (if/then/else) are not supported`);if(e.dependentSchemas!==void 0||e.dependentRequired!==void 0)throw Error(`dependentSchemas and dependentRequired are not supported`);if(e.$ref){let n=e.$ref;if(t.refs.has(n))return t.refs.get(n);if(t.processing.has(n))return B.lazy(()=>{if(!t.refs.has(n))throw Error(`Circular reference not resolved: ${n}`);return t.refs.get(n)});t.processing.add(n);let r=V(xu(n,t),t);return t.refs.set(n,r),t.processing.delete(n),r}if(e.enum!==void 0){let n=e.enum;if(t.version===`openapi-3.0`&&e.nullable===!0&&n.length===1&&n[0]===null)return B.null();if(n.length===0)return B.never();if(n.length===1)return B.literal(n[0]);if(n.every(e=>typeof e==`string`))return B.enum(n);let r=n.map(e=>B.literal(e));return r.length<2?r[0]:B.union([r[0],r[1],...r.slice(2)])}if(e.const!==void 0)return B.literal(e.const);let n=e.type;if(Array.isArray(n)){let r=n.map(n=>Su({...e,type:n},t));return r.length===0?B.never():r.length===1?r[0]:B.union(r)}if(!n)return B.any();let r;switch(n){case`string`:{let t=B.string();if(e.format){let n=e.format;n===`email`?t=t.check(B.email()):n===`uri`||n===`uri-reference`?t=t.check(B.url()):n===`uuid`||n===`guid`?t=t.check(B.uuid()):n===`date-time`?t=t.check(B.iso.datetime()):n===`date`?t=t.check(B.iso.date()):n===`time`?t=t.check(B.iso.time()):n===`duration`?t=t.check(B.iso.duration()):n===`ipv4`?t=t.check(B.ipv4()):n===`ipv6`?t=t.check(B.ipv6()):n===`mac`?t=t.check(B.mac()):n===`cidr`?t=t.check(B.cidrv4()):n===`cidr-v6`?t=t.check(B.cidrv6()):n===`base64`?t=t.check(B.base64()):n===`base64url`?t=t.check(B.base64url()):n===`e164`?t=t.check(B.e164()):n===`jwt`?t=t.check(B.jwt()):n===`emoji`?t=t.check(B.emoji()):n===`nanoid`?t=t.check(B.nanoid()):n===`cuid`?t=t.check(B.cuid()):n===`cuid2`?t=t.check(B.cuid2()):n===`ulid`?t=t.check(B.ulid()):n===`xid`?t=t.check(B.xid()):n===`ksuid`&&(t=t.check(B.ksuid()))}typeof e.minLength==`number`&&(t=t.min(e.minLength)),typeof e.maxLength==`number`&&(t=t.max(e.maxLength)),e.pattern&&(t=t.regex(new RegExp(e.pattern))),r=t;break}case`number`:case`integer`:{let t=n===`integer`?B.number().int():B.number();typeof e.minimum==`number`&&(t=t.min(e.minimum)),typeof e.maximum==`number`&&(t=t.max(e.maximum)),typeof e.exclusiveMinimum==`number`?t=t.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum==`number`&&(t=t.gt(e.minimum)),typeof e.exclusiveMaximum==`number`?t=t.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum==`number`&&(t=t.lt(e.maximum)),typeof e.multipleOf==`number`&&(t=t.multipleOf(e.multipleOf)),r=t;break}case`boolean`:r=B.boolean();break;case`null`:r=B.null();break;case`object`:{let n={},i=e.properties||{},a=new Set(e.required||[]);for(let[e,r]of Object.entries(i)){let i=V(r,t);n[e]=a.has(e)?i:i.optional()}if(e.propertyNames){let i=V(e.propertyNames,t),a=e.additionalProperties&&typeof e.additionalProperties==`object`?V(e.additionalProperties,t):B.any();if(Object.keys(n).length===0){r=B.record(i,a);break}let o=B.object(n).passthrough(),s=B.looseRecord(i,a);r=B.intersection(o,s);break}if(e.patternProperties){let i=e.patternProperties,a=Object.keys(i),o=[];for(let e of a){let n=V(i[e],t),r=B.string().regex(new RegExp(e));o.push(B.looseRecord(r,n))}let s=[];if(Object.keys(n).length>0&&s.push(B.object(n).passthrough()),s.push(...o),s.length===0)r=B.object({}).passthrough();else if(s.length===1)r=s[0];else{let e=B.intersection(s[0],s[1]);for(let t=2;t<s.length;t++)e=B.intersection(e,s[t]);r=e}break}let o=B.object(n);r=e.additionalProperties===!1?o.strict():typeof e.additionalProperties==`object`?o.catchall(V(e.additionalProperties,t)):o.passthrough();break}case`array`:{let n=e.prefixItems,i=e.items;if(n&&Array.isArray(n)){let a=n.map(e=>V(e,t)),o=i&&typeof i==`object`&&!Array.isArray(i)?V(i,t):void 0;r=o?B.tuple(a).rest(o):B.tuple(a),typeof e.minItems==`number`&&(r=r.check(B.minLength(e.minItems))),typeof e.maxItems==`number`&&(r=r.check(B.maxLength(e.maxItems)))}else if(Array.isArray(i)){let n=i.map(e=>V(e,t)),a=e.additionalItems&&typeof e.additionalItems==`object`?V(e.additionalItems,t):void 0;r=a?B.tuple(n).rest(a):B.tuple(n),typeof e.minItems==`number`&&(r=r.check(B.minLength(e.minItems))),typeof e.maxItems==`number`&&(r=r.check(B.maxLength(e.maxItems)))}else if(i!==void 0){let n=V(i,t),a=B.array(n);typeof e.minItems==`number`&&(a=a.min(e.minItems)),typeof e.maxItems==`number`&&(a=a.max(e.maxItems)),r=a}else r=B.array(B.any());break}default:throw Error(`Unsupported type: ${n}`)}return r}function V(e,t){if(typeof e==`boolean`)return e?B.any():B.never();let n=Su(e,t),r=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let i=e.anyOf.map(e=>V(e,t)),a=B.union(i);n=r?B.intersection(n,a):a}if(e.oneOf&&Array.isArray(e.oneOf)){let i=e.oneOf.map(e=>V(e,t)),a=B.xor(i);n=r?B.intersection(n,a):a}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)n=r?n:B.any();else{let i=r?n:V(e.allOf[0],t),a=+!r;for(let n=a;n<e.allOf.length;n++)i=B.intersection(i,V(e.allOf[n],t));n=i}e.nullable===!0&&t.version===`openapi-3.0`&&(n=B.nullable(n)),e.readOnly===!0&&(n=B.readonly(n)),e.default!==void 0&&(n=n.default(e.default));let i={};for(let t of[`$id`,`id`,`$comment`,`$anchor`,`$vocabulary`,`$dynamicRef`,`$dynamicAnchor`])t in e&&(i[t]=e[t]);for(let t of[`contentEncoding`,`contentMediaType`,`contentSchema`])t in e&&(i[t]=e[t]);for(let t of Object.keys(e))yu.has(t)||(i[t]=e[t]);return Object.keys(i).length>0&&t.registry.add(n,i),e.description&&(n=n.describe(e.description)),n}function Cu(e,t){if(typeof e==`boolean`)return e?B.any():B.never();let n;try{n=JSON.parse(JSON.stringify(e))}catch{throw Error(`fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas`)}let r={version:bu(n,t?.defaultTarget),defs:n.$defs||n.definitions||{},refs:new Map,processing:new Set,rootSchema:n,registry:t?.registry??Di};return V(n,r)}function wu(e){return ra(Tc,e)}var Tu=[`2025-11-25`,`2025-06-18`,`2025-03-26`,`2024-11-05`,`2024-10-07`],Eu=`io.modelcontextprotocol/related-task`,Du=`io.modelcontextprotocol/protocolVersion`,Ou=`io.modelcontextprotocol/clientInfo`,ku=`io.modelcontextprotocol/serverInfo`,Au=`io.modelcontextprotocol/clientCapabilities`,ju=`io.modelcontextprotocol/subscriptionId`,Mu=`io.modelcontextprotocol/logLevel`,Nu=tu(()=>F([D(),k(),A(),Uc(),I(D(),Nu),M(Nu)])),H=I(D(),Nu),Pu=M(Nu),Fu=F([D(),k().int()]),Iu=D(),Lu=N({ttl:k().optional()}),Ru=N({taskId:D()}),zu=P({progressToken:Fu.optional(),[Eu]:Ru.optional()}),U=N({_meta:zu.optional()}),Bu=U.extend({task:Lu.optional()}),W=N({method:D(),params:U.loose().optional()}),Vu=N({_meta:zu.optional()}),Hu=N({method:D(),params:Vu.loose().optional()}),Uu=P({get[ku](){return rd.optional().catch(void 0)}}),G=P({_meta:Uu.optional()}),Wu=F([D(),k().int()]),Gu=N({jsonrpc:R(`2.0`),id:Wu,...W.shape}).strict(),Ku=N({jsonrpc:R(`2.0`),...Hu.shape}).strict(),qu=N({jsonrpc:R(`2.0`),id:Wu,result:G}).strict(),Ju=N({jsonrpc:R(`2.0`),id:Wu.optional(),error:N({code:k().int(),message:D(),data:j().optional()})}).strict(),Yu=F([Gu,Ku,qu,Ju]),Xu=F([qu,Ju]),Zu=G.strict(),Qu=Vu.extend({requestId:Wu.optional(),reason:D().optional()}),$u=Hu.extend({method:R(`notifications/cancelled`),params:Qu}),ed=N({src:D(),mimeType:D().optional(),sizes:M(D()).optional(),theme:L([`light`,`dark`]).optional()}),td=N({icons:M(ed).optional()}),nd=N({name:D(),title:D().optional()}),rd=nd.extend({...nd.shape,...td.shape,version:D(),websiteUrl:D().optional(),description:D().optional()}),id=gu(e=>e&&typeof e==`object`&&!Array.isArray(e)&&Object.keys(e).length===0?{form:{}}:e,ll(N({form:ll(N({applyDefaults:A().optional()}),H).optional(),url:H.optional()}),H.optional())),ad=P({list:H.optional(),cancel:H.optional(),requests:P({sampling:P({createMessage:H.optional()}).optional(),elicitation:P({create:H.optional()}).optional()}).optional()}),od=P({list:H.optional(),cancel:H.optional(),requests:P({tools:P({call:H.optional()}).optional()}).optional()}),sd=N({experimental:I(D(),H).optional(),sampling:N({context:H.optional(),tools:H.optional()}).optional(),elicitation:id.optional(),roots:N({listChanged:A().optional()}).optional(),tasks:ad.optional(),extensions:I(D(),H).optional()}),cd=U.extend({protocolVersion:D(),capabilities:sd,clientInfo:rd}),ld=W.extend({method:R(`initialize`),params:cd}),ud=N({experimental:I(D(),H).optional(),logging:H.optional(),completions:H.optional(),prompts:N({listChanged:A().optional()}).optional(),resources:N({subscribe:A().optional(),listChanged:A().optional()}).optional(),tools:N({listChanged:A().optional()}).optional(),tasks:od.optional(),extensions:I(D(),H).optional()}),dd=G.extend({protocolVersion:D(),capabilities:ud,serverInfo:rd,instructions:D().optional()}),fd=Hu.extend({method:R(`notifications/initialized`),params:Vu.optional()}),pd=W.extend({method:R(`server/discover`),params:U.optional()}),md=G.extend({supportedVersions:M(D()),capabilities:ud,instructions:D().optional()}),hd=W.extend({method:R(`ping`),params:U.optional()}),gd=N({progress:k(),total:z(k()),message:z(D())}),_d=N({...Vu.shape,...gd.shape,progressToken:Fu}),vd=Hu.extend({method:R(`notifications/progress`),params:_d}),yd=U.extend({cursor:Iu.optional()}),bd=W.extend({params:yd.optional()}),xd=G.extend({nextCursor:Iu.optional()}),Sd=N({uri:D(),mimeType:z(D()),_meta:I(D(),j()).optional()}),Cd=Sd.extend({text:D()}),wd=D().refine(e=>{try{return atob(e),!0}catch{return!1}},{message:`Invalid Base64 string`}),Td=Sd.extend({blob:wd}),Ed=L([`user`,`assistant`]),Dd=N({audience:M(Ed).optional(),priority:k().min(0).max(1).optional(),lastModified:as({offset:!0}).optional()}),Od=N({...nd.shape,...td.shape,uri:D(),description:z(D()),mimeType:z(D()),size:z(k()),annotations:Dd.optional(),_meta:z(P({}))}),kd=N({...nd.shape,...td.shape,uriTemplate:D(),description:z(D()),mimeType:z(D()),annotations:Dd.optional(),_meta:z(P({}))}),Ad=bd.extend({method:R(`resources/list`)}),jd=xd.extend({resources:M(Od)}),Md=bd.extend({method:R(`resources/templates/list`)}),Nd=xd.extend({resourceTemplates:M(kd)}),Pd=U.extend({uri:D()}),Fd=Pd,Id=W.extend({method:R(`resources/read`),params:Fd}),Ld=G.extend({contents:M(F([Cd,Td]))}),Rd=Hu.extend({method:R(`notifications/resources/list_changed`),params:Vu.optional()}),zd=Pd,Bd=W.extend({method:R(`resources/subscribe`),params:zd}),Vd=Pd,Hd=W.extend({method:R(`resources/unsubscribe`),params:Vd}),Ud=N({toolsListChanged:A().optional(),promptsListChanged:A().optional(),resourcesListChanged:A().optional(),resourceSubscriptions:M(D()).optional()}),Wd=U.extend({notifications:Ud}),Gd=W.extend({method:R(`subscriptions/listen`),params:Wd}),Kd=Vu.extend({notifications:Ud}),qd=Hu.extend({method:R(`notifications/subscriptions/acknowledged`),params:Kd}),Jd=Uu.extend({[ju]:Wu}),Yd=G.extend({_meta:Jd}),Xd=Vu.extend({uri:D()}),Zd=Hu.extend({method:R(`notifications/resources/updated`),params:Xd}),Qd=N({name:D(),description:z(D()),required:z(A())}),$d=N({...nd.shape,...td.shape,description:z(D()),arguments:z(M(Qd)),_meta:z(P({}))}),ef=bd.extend({method:R(`prompts/list`)}),tf=xd.extend({prompts:M($d)}),nf=U.extend({name:D(),arguments:I(D(),D()).optional()}),rf=W.extend({method:R(`prompts/get`),params:nf}),af=N({type:R(`text`),text:D(),annotations:Dd.optional(),_meta:I(D(),j()).optional()}),of=N({type:R(`image`),data:wd,mimeType:D(),annotations:Dd.optional(),_meta:I(D(),j()).optional()}),sf=N({type:R(`audio`),data:wd,mimeType:D(),annotations:Dd.optional(),_meta:I(D(),j()).optional()}),cf=N({type:R(`tool_use`),name:D(),id:D(),input:I(D(),j()),_meta:I(D(),j()).optional()}),lf=N({type:R(`resource`),resource:F([Cd,Td]),annotations:Dd.optional(),_meta:I(D(),j()).optional()}),uf=Od.extend({type:R(`resource_link`)}),df=F([af,of,sf,uf,lf]),ff=N({role:Ed,content:df}),pf=G.extend({description:D().optional(),messages:M(ff)}),mf=Hu.extend({method:R(`notifications/prompts/list_changed`),params:Vu.optional()}),hf=N({title:D().optional(),readOnlyHint:A().optional(),destructiveHint:A().optional(),idempotentHint:A().optional(),openWorldHint:A().optional()}),gf=N({taskSupport:L([`required`,`optional`,`forbidden`]).optional()}),_f=N({...nd.shape,...td.shape,description:D().optional(),inputSchema:N({type:R(`object`),properties:I(D(),Nu).optional(),required:M(D()).optional()}).catchall(j()),outputSchema:P({$schema:D().optional()}).optional(),annotations:hf.optional(),execution:gf.optional(),_meta:I(D(),j()).optional()}),vf=bd.extend({method:R(`tools/list`)}),yf=xd.extend({tools:M(_f)}),bf=G.extend({content:M(df).default([]),structuredContent:j().optional(),isError:A().optional()}),xf=bf.or(G.extend({toolResult:j()})),Sf=Bu.extend({name:D(),arguments:I(D(),j()).optional()}),Cf=W.extend({method:R(`tools/call`),params:Sf}),wf=Hu.extend({method:R(`notifications/tools/list_changed`),params:Vu.optional()}),Tf=N({autoRefresh:A().default(!0),debounceMs:k().int().nonnegative().default(300)}),Ef=L([`debug`,`info`,`notice`,`warning`,`error`,`critical`,`alert`,`emergency`]),Df=U.extend({level:Ef}),Of=W.extend({method:R(`logging/setLevel`),params:Df}),kf=Vu.extend({level:Ef,logger:D().optional(),data:j()}),Af=Hu.extend({method:R(`notifications/message`),params:kf}),jf=N({name:D().optional()}),Mf=N({hints:M(jf).optional(),costPriority:k().min(0).max(1).optional(),speedPriority:k().min(0).max(1).optional(),intelligencePriority:k().min(0).max(1).optional()}),Nf=N({mode:L([`auto`,`required`,`none`]).optional()}),Pf=N({type:R(`tool_result`),toolUseId:D().describe(`The unique identifier for the corresponding tool call.`),content:M(df),structuredContent:j().optional(),isError:A().optional(),_meta:I(D(),j()).optional()}),Ff=sl(`type`,[af,of,sf]),If=sl(`type`,[af,of,sf,cf,Pf]),Lf=N({role:Ed,content:F([If,M(If)]),_meta:I(D(),j()).optional()}),Rf=Bu.extend({messages:M(Lf),modelPreferences:Mf.optional(),systemPrompt:D().optional(),includeContext:L([`none`,`thisServer`,`allServers`]).optional(),temperature:k().optional(),maxTokens:k().int(),stopSequences:M(D()).optional(),metadata:H.optional(),tools:M(_f).optional(),toolChoice:Nf.optional()}),zf=W.extend({method:R(`sampling/createMessage`),params:Rf}),Bf=G.extend({model:D(),stopReason:z(L([`endTurn`,`stopSequence`,`maxTokens`]).or(D())),role:Ed,content:Ff}),Vf=G.extend({model:D(),stopReason:z(L([`endTurn`,`stopSequence`,`maxTokens`,`toolUse`]).or(D())),role:Ed,content:F([If,M(If)])}),Hf=N({type:R(`boolean`),title:D().optional(),description:D().optional(),default:A().optional()}),Uf=N({type:R(`string`),title:D().optional(),description:D().optional(),minLength:k().optional(),maxLength:k().optional(),format:L([`email`,`uri`,`date`,`date-time`]).optional(),default:D().optional()}),Wf=N({type:L([`number`,`integer`]),title:D().optional(),description:D().optional(),minimum:k().optional(),maximum:k().optional(),default:k().optional()}),Gf=N({type:R(`string`),title:D().optional(),description:D().optional(),enum:M(D()),default:D().optional()}),Kf=N({type:R(`string`),title:D().optional(),description:D().optional(),oneOf:M(N({const:D(),title:D()})),default:D().optional()}),qf=N({type:R(`string`),title:D().optional(),description:D().optional(),enum:M(D()),enumNames:M(D()).optional(),default:D().optional()}),Jf=F([Gf,Kf]),Yf=N({type:R(`array`),title:D().optional(),description:D().optional(),minItems:k().optional(),maxItems:k().optional(),items:N({type:R(`string`),enum:M(D())}),default:M(D()).optional()}),Xf=N({type:R(`array`),title:D().optional(),description:D().optional(),minItems:k().optional(),maxItems:k().optional(),items:N({anyOf:M(N({const:D(),title:D()}))}),default:M(D()).optional()}),Zf=F([Yf,Xf]),Qf=F([qf,Jf,Zf]),$f=F([Qf,Hf,Uf,Wf]),ep=Bu.extend({mode:R(`form`).optional(),message:D(),requestedSchema:N({type:R(`object`),properties:I(D(),$f),required:M(D()).optional()}).catchall(j())}),tp=Bu.extend({mode:R(`url`),message:D(),elicitationId:D(),url:D().url()}),np=F([ep,tp]),rp=W.extend({method:R(`elicitation/create`),params:np}),ip=Vu.extend({elicitationId:D()}),ap=Hu.extend({method:R(`notifications/elicitation/complete`),params:ip}),op=G.extend({action:L([`accept`,`decline`,`cancel`]),content:gu(e=>e===null?void 0:e,I(D(),F([D(),k(),A(),M(D())])).optional())}),sp=N({type:R(`ref/resource`),uri:D()}),cp=N({type:R(`ref/prompt`),name:D()}),lp=U.extend({ref:F([cp,sp]),argument:N({name:D(),value:D()}),context:N({arguments:I(D(),D()).optional()}).optional()}),up=W.extend({method:R(`completion/complete`),params:lp}),dp=G.extend({completion:P({values:M(D()).max(100),total:z(k().int()),hasMore:z(A())})}),fp=N({uri:D().startsWith(`file://`),name:D().optional(),_meta:I(D(),j()).optional()}),pp=W.extend({method:R(`roots/list`),params:U.optional()}),mp=G.extend({roots:M(fp)}),hp=Hu.extend({method:R(`notifications/roots/list_changed`),params:Vu.optional()}),gp=P({ttl:k().optional(),pollInterval:k().optional()}),_p=L([`working`,`input_required`,`completed`,`failed`,`cancelled`]),vp=N({taskId:D(),status:_p,ttl:F([k(),Uc()]),createdAt:D(),lastUpdatedAt:D(),pollInterval:z(k()),statusMessage:z(D())}),yp=G.extend({task:vp}),bp=Vu.merge(vp),xp=Hu.extend({method:R(`notifications/tasks/status`),params:bp}),Sp=W.extend({method:R(`tasks/get`),params:U.extend({taskId:D()})}),Cp=G.merge(vp),wp=W.extend({method:R(`tasks/result`),params:U.extend({taskId:D()})}),Tp=G.loose(),Ep=bd.extend({method:R(`tasks/list`)}),Dp=xd.extend({tasks:M(vp)}),Op=W.extend({method:R(`tasks/cancel`),params:U.extend({taskId:D()})}),kp=G.merge(vp),Ap=F([hd,ld,pd,up,Of,rf,ef,Ad,Md,Id,Bd,Hd,Gd,Cf,vf]),jp=F([$u,vd,fd,hp]),Mp=F([Zu,Bf,Vf,op,mp]),Np=F([hd,zf,rp,pp]),Pp=F([$u,vd,Af,Zd,Rd,wf,mf,qd,ap]),Fp=F([Zu,dd,md,dp,pf,tf,jd,Nd,Ld,bf,yf,Yd]),K=Bs().superRefine((e,t)=>{if(!URL.canParse(e))return t.addIssue({code:_u.custom,message:`URL must be parseable`,fatal:!0}),c}).refine(e=>{let t=new URL(e);return t.protocol!==`javascript:`&&t.protocol!==`data:`&&t.protocol!==`vbscript:`},{message:`URL cannot use javascript:, data:, or vbscript: scheme`}),Ip=P({resource:D().url(),authorization_servers:M(K).optional(),jwks_uri:D().url().optional(),scopes_supported:M(D()).optional(),bearer_methods_supported:M(D()).optional(),resource_signing_alg_values_supported:M(D()).optional(),resource_name:D().optional(),resource_documentation:D().optional(),resource_policy_uri:D().url().optional(),resource_tos_uri:D().url().optional(),tls_client_certificate_bound_access_tokens:A().optional(),authorization_details_types_supported:M(D()).optional(),dpop_signing_alg_values_supported:M(D()).optional(),dpop_bound_access_tokens_required:A().optional()}),Lp=P({issuer:D(),authorization_endpoint:K,token_endpoint:K,registration_endpoint:K.optional(),scopes_supported:M(D()).optional(),response_types_supported:M(D()),response_modes_supported:M(D()).optional(),grant_types_supported:M(D()).optional(),token_endpoint_auth_methods_supported:M(D()).optional(),token_endpoint_auth_signing_alg_values_supported:M(D()).optional(),service_documentation:K.optional(),revocation_endpoint:K.optional(),revocation_endpoint_auth_methods_supported:M(D()).optional(),revocation_endpoint_auth_signing_alg_values_supported:M(D()).optional(),introspection_endpoint:D().optional(),introspection_endpoint_auth_methods_supported:M(D()).optional(),introspection_endpoint_auth_signing_alg_values_supported:M(D()).optional(),code_challenge_methods_supported:M(D()).optional(),client_id_metadata_document_supported:A().optional(),authorization_response_iss_parameter_supported:A().optional().catch(void 0)}),Rp=P({issuer:D(),authorization_endpoint:K,token_endpoint:K,userinfo_endpoint:K.optional(),jwks_uri:K,registration_endpoint:K.optional(),scopes_supported:M(D()).optional(),response_types_supported:M(D()),response_modes_supported:M(D()).optional(),grant_types_supported:M(D()).optional(),acr_values_supported:M(D()).optional(),subject_types_supported:M(D()),id_token_signing_alg_values_supported:M(D()),id_token_encryption_alg_values_supported:M(D()).optional(),id_token_encryption_enc_values_supported:M(D()).optional(),userinfo_signing_alg_values_supported:M(D()).optional(),userinfo_encryption_alg_values_supported:M(D()).optional(),userinfo_encryption_enc_values_supported:M(D()).optional(),request_object_signing_alg_values_supported:M(D()).optional(),request_object_encryption_alg_values_supported:M(D()).optional(),request_object_encryption_enc_values_supported:M(D()).optional(),token_endpoint_auth_methods_supported:M(D()).optional(),token_endpoint_auth_signing_alg_values_supported:M(D()).optional(),display_values_supported:M(D()).optional(),claim_types_supported:M(D()).optional(),claims_supported:M(D()).optional(),service_documentation:D().optional(),claims_locales_supported:M(D()).optional(),ui_locales_supported:M(D()).optional(),claims_parameter_supported:A().optional(),request_parameter_supported:A().optional(),request_uri_parameter_supported:A().optional(),require_request_uri_registration:A().optional(),op_policy_uri:K.optional(),op_tos_uri:K.optional(),client_id_metadata_document_supported:A().optional(),authorization_response_iss_parameter_supported:A().optional().catch(void 0)}),zp=N({...Rp.shape,...Lp.pick({code_challenge_methods_supported:!0}).shape}),Bp=N({access_token:D(),id_token:D().optional(),token_type:D(),expires_in:wu().optional(),scope:D().optional(),refresh_token:D().optional()}).strip(),Vp=N({issued_token_type:R(`urn:ietf:params:oauth:token-type:id-jag`),access_token:D(),token_type:D().optional(),expires_in:k().optional(),scope:D().optional()}).strip(),Hp=N({error:D(),error_description:D().optional(),error_uri:D().optional()}),Up=K.optional().or(R(``).transform(()=>void 0)),Wp=N({redirect_uris:M(K),token_endpoint_auth_method:D().optional(),grant_types:M(D()).optional(),response_types:M(D()).optional(),application_type:D().optional(),client_name:D().optional(),client_uri:K.optional(),logo_uri:Up,scope:D().optional(),contacts:M(D()).optional(),tos_uri:Up,policy_uri:D().optional(),jwks_uri:K.optional(),jwks:Gc().optional(),software_id:D().optional(),software_version:D().optional(),software_statement:D().optional()}).strip(),Gp=N({client_id:D(),client_secret:D().optional(),client_id_issued_at:k().optional(),client_secret_expires_at:k().optional()}).strip(),Kp=Wp.merge(Gp),qp=N({error:D(),error_description:D().optional()}).strip(),Jp=N({token:D(),token_type_hint:D().optional()}).strip(),Yp=Symbol.for(`mcp.sdk.errorBrands`);function Xp(e,t){let n=new Set,r=t;for(;typeof r==`function`;){let e=r.mcpBrand;Object.prototype.hasOwnProperty.call(r,`mcpBrand`)&&typeof e==`string`&&n.add(e),r=Object.getPrototypeOf(r)}n.size!==0&&Object.defineProperty(e,Yp,{value:n,enumerable:!1,configurable:!0})}function Zp(e,t){try{if(typeof t==`object`&&t&&Object.prototype.hasOwnProperty.call(e,`mcpBrand`)&&typeof e.mcpBrand==`string`&&Object.prototype.hasOwnProperty.call(t,Yp)){let n=t[Yp];if(n&&typeof n.has==`function`&&n.has(e.mcpBrand))return!0}}catch{}return Function.prototype[Symbol.hasInstance].call(e,t)}(class e extends Error{static{Object.defineProperty(this,"mcpBrand",{value:`mcp.OAuthError`})}static[Symbol.hasInstance](e){return Zp(this,e)}static isInstance(e){if(typeof this!=`function`)throw TypeError("isInstance must be called on the class (e.g. `SdkError.isInstance(value)`); for callbacks use `v => SdkError.isInstance(v)`");return Zp(this,e)}constructor(e,t,n){super(t),this.code=e,this.errorUri=n,this.name=`OAuthError`,Xp(this,new.target)}toResponseObject(){let e={error:this.code,error_description:this.message};return this.errorUri&&(e.error_uri=this.errorUri),e}static fromResponse(t){return new e(t.error,t.error_description??t.error,t.error_uri)}});var q=function(e){return e.NotConnected=`NOT_CONNECTED`,e.AlreadyConnected=`ALREADY_CONNECTED`,e.NotInitialized=`NOT_INITIALIZED`,e.CapabilityNotSupported=`CAPABILITY_NOT_SUPPORTED`,e.RequestTimeout=`REQUEST_TIMEOUT`,e.ConnectionClosed=`CONNECTION_CLOSED`,e.SendFailed=`SEND_FAILED`,e.InvalidResult=`INVALID_RESULT`,e.UnsupportedResultType=`UNSUPPORTED_RESULT_TYPE`,e.InputRequiredRoundsExceeded=`INPUT_REQUIRED_ROUNDS_EXCEEDED`,e.ListPaginationExceeded=`LIST_PAGINATION_EXCEEDED`,e.MethodNotSupportedByProtocolVersion=`METHOD_NOT_SUPPORTED_BY_PROTOCOL_VERSION`,e.EraNegotiationFailed=`ERA_NEGOTIATION_FAILED`,e.ClientHttpNotImplemented=`CLIENT_HTTP_NOT_IMPLEMENTED`,e.ClientHttpAuthentication=`CLIENT_HTTP_AUTHENTICATION`,e.ClientHttpForbidden=`CLIENT_HTTP_FORBIDDEN`,e.ClientHttpUnexpectedContent=`CLIENT_HTTP_UNEXPECTED_CONTENT`,e.ClientHttpFailedToOpenStream=`CLIENT_HTTP_FAILED_TO_OPEN_STREAM`,e.ClientHttpFailedToTerminateSession=`CLIENT_HTTP_FAILED_TO_TERMINATE_SESSION`,e}({}),J=class extends Error{static{Object.defineProperty(this,"mcpBrand",{value:`mcp.SdkError`})}static[Symbol.hasInstance](e){return Zp(this,e)}static isInstance(e){if(typeof this!=`function`)throw TypeError("isInstance must be called on the class (e.g. `SdkError.isInstance(value)`); for callbacks use `v => SdkError.isInstance(v)`");return Zp(this,e)}constructor(e,t,n){super(t),this.code=e,this.data=n,this.name=`SdkError`,Xp(this,new.target)}};(class extends J{static{Object.defineProperty(this,"mcpBrand",{value:`mcp.SdkHttpError`})}constructor(e,t,n){super(e,t,n),this.name=`SdkHttpError`}get status(){return this.data.status}get statusText(){return this.data.statusText}});var Qp=`2026-07-28`;function $p(e){return e>=Qp}function em(e){let t=e.structuredContent;return t===void 0||!(typeof t!=`object`||!t||Array.isArray(t))||(e.content?.some(e=>e.type===`text`)??!1)?e:{...e,content:[...e.content??[],{type:`text`,text:JSON.stringify(t)}]}}var tm=[`task`,`inputRequests`,`requestState`];function nm(e){return typeof e!=`object`||!e||Array.isArray(e)||e.content!==void 0||tm.some(t=>t in e)?e:{...e,content:[]}}function rm(){let e=tu(()=>F([D(),k(),A(),Uc(),I(D(),e),M(e)])),t=I(D(),e),n=F([D(),k().int()]),r=D(),i=N({ttl:k().optional()}),a=N({taskId:D()}),o=P({progressToken:n.optional(),"io.modelcontextprotocol/related-task":a.optional()}),s=N({_meta:o.optional()}),c=s.extend({task:i.optional()}),l=N({method:D(),params:s.loose().optional()}),u=N({_meta:o.optional()}),d=N({method:D(),params:u.loose().optional()}),f=P({_meta:o.optional()}),p=F([D(),k().int()]),m=f.strict(),h=u.extend({requestId:p.optional(),reason:D().optional()}),ee=d.extend({method:R(`notifications/cancelled`),params:h}),g=N({src:D(),mimeType:D().optional(),sizes:M(D()).optional(),theme:L([`light`,`dark`]).optional()}),te=N({icons:M(g).optional()}),ne=N({name:D(),title:D().optional()}),re=ne.extend({...ne.shape,...te.shape,version:D(),websiteUrl:D().optional(),description:D().optional()}),_=gu(e=>e&&typeof e==`object`&&!Array.isArray(e)&&Object.keys(e).length===0?{form:{}}:e,ll(N({form:ll(N({applyDefaults:A().optional()}),t).optional(),url:t.optional()}),t.optional())),ie=P({list:t.optional(),cancel:t.optional(),requests:P({sampling:P({createMessage:t.optional()}).optional(),elicitation:P({create:t.optional()}).optional()}).optional()}),ae=P({list:t.optional(),cancel:t.optional(),requests:P({tools:P({call:t.optional()}).optional()}).optional()}),oe=N({experimental:I(D(),t).optional(),sampling:N({context:t.optional(),tools:t.optional()}).optional(),elicitation:_.optional(),roots:N({listChanged:A().optional()}).optional(),tasks:ie.optional(),extensions:I(D(),t).optional()}),se=s.extend({protocolVersion:D(),capabilities:oe,clientInfo:re}),ce=l.extend({method:R(`initialize`),params:se}),le=N({experimental:I(D(),t).optional(),logging:t.optional(),completions:t.optional(),prompts:N({listChanged:A().optional()}).optional(),resources:N({subscribe:A().optional(),listChanged:A().optional()}).optional(),tools:N({listChanged:A().optional()}).optional(),tasks:ae.optional(),extensions:I(D(),t).optional()}),ue=f.extend({protocolVersion:D(),capabilities:le,serverInfo:re,instructions:D().optional()}),de=d.extend({method:R(`notifications/initialized`),params:u.optional()}),fe=l.extend({method:R(`ping`),params:s.optional()}),pe=N({progress:k(),total:z(k()),message:z(D())}),me=N({...u.shape,...pe.shape,progressToken:n}),he=d.extend({method:R(`notifications/progress`),params:me}),ge=s.extend({cursor:r.optional()}),v=l.extend({params:ge.optional()}),_e=f.extend({nextCursor:r.optional()}),ve=N({uri:D(),mimeType:z(D()),_meta:I(D(),j()).optional()}),ye=ve.extend({text:D()}),be=D().refine(e=>{try{return atob(e),!0}catch{return!1}},{message:`Invalid Base64 string`}),xe=ve.extend({blob:be}),Se=L([`user`,`assistant`]),Ce=N({audience:M(Se).optional(),priority:k().min(0).max(1).optional(),lastModified:as({offset:!0}).optional()}),we=N({...ne.shape,...te.shape,uri:D(),description:z(D()),mimeType:z(D()),size:z(k()),annotations:Ce.optional(),_meta:z(P({}))}),Te=N({...ne.shape,...te.shape,uriTemplate:D(),description:z(D()),mimeType:z(D()),annotations:Ce.optional(),_meta:z(P({}))}),Ee=v.extend({method:R(`resources/list`)}),De=_e.extend({resources:M(we)}),Oe=v.extend({method:R(`resources/templates/list`)}),y=_e.extend({resourceTemplates:M(Te)}),ke=s.extend({uri:D()}),b=ke,Ae=l.extend({method:R(`resources/read`),params:b}),je=f.extend({contents:M(F([ye,xe]))}),Me=d.extend({method:R(`notifications/resources/list_changed`),params:u.optional()}),Ne=ke,Pe=l.extend({method:R(`resources/subscribe`),params:Ne}),Fe=ke,Ie=l.extend({method:R(`resources/unsubscribe`),params:Fe}),Le=u.extend({uri:D()}),Re=d.extend({method:R(`notifications/resources/updated`),params:Le}),ze=N({name:D(),description:z(D()),required:z(A())}),Be=N({...ne.shape,...te.shape,description:z(D()),arguments:z(M(ze)),_meta:z(P({}))}),Ve=v.extend({method:R(`prompts/list`)}),He=_e.extend({prompts:M(Be)}),Ue=s.extend({name:D(),arguments:I(D(),D()).optional()}),We=l.extend({method:R(`prompts/get`),params:Ue}),Ge=N({type:R(`text`),text:D(),annotations:Ce.optional(),_meta:I(D(),j()).optional()}),Ke=N({type:R(`image`),data:be,mimeType:D(),annotations:Ce.optional(),_meta:I(D(),j()).optional()}),qe=N({type:R(`audio`),data:be,mimeType:D(),annotations:Ce.optional(),_meta:I(D(),j()).optional()}),Je=N({type:R(`tool_use`),name:D(),id:D(),input:I(D(),j()),_meta:I(D(),j()).optional()}),Ye=N({type:R(`resource`),resource:F([ye,xe]),annotations:Ce.optional(),_meta:I(D(),j()).optional()}),Xe=we.extend({type:R(`resource_link`)}),Ze=F([Ge,Ke,qe,Xe,Ye]),Qe=N({role:Se,content:Ze}),$e=f.extend({description:D().optional(),messages:M(Qe)}),et=d.extend({method:R(`notifications/prompts/list_changed`),params:u.optional()}),tt=N({title:D().optional(),readOnlyHint:A().optional(),destructiveHint:A().optional(),idempotentHint:A().optional(),openWorldHint:A().optional()}),nt=N({taskSupport:L([`required`,`optional`,`forbidden`]).optional()}),rt=N({...ne.shape,...te.shape,description:D().optional(),inputSchema:N({type:R(`object`),properties:I(D(),e).optional(),required:M(D()).optional()}).catchall(j()),outputSchema:N({type:R(`object`),properties:I(D(),e).optional(),required:M(D()).optional()}).catchall(j()).optional(),annotations:tt.optional(),execution:nt.optional(),_meta:I(D(),j()).optional()}),it=v.extend({method:R(`tools/list`)}),at=_e.extend({tools:M(rt)}),ot=f.extend({content:M(Ze),structuredContent:I(D(),j()).optional(),isError:A().optional()}),x=c.extend({name:D(),arguments:I(D(),j()).optional()}),st=l.extend({method:R(`tools/call`),params:x}),ct=d.extend({method:R(`notifications/tools/list_changed`),params:u.optional()}),lt=L([`debug`,`info`,`notice`,`warning`,`error`,`critical`,`alert`,`emergency`]),ut=s.extend({level:lt}),dt=l.extend({method:R(`logging/setLevel`),params:ut}),ft=u.extend({level:lt,logger:D().optional(),data:j()}),pt=d.extend({method:R(`notifications/message`),params:ft}),mt=N({name:D().optional()}),ht=N({hints:M(mt).optional(),costPriority:k().min(0).max(1).optional(),speedPriority:k().min(0).max(1).optional(),intelligencePriority:k().min(0).max(1).optional()}),gt=N({mode:L([`auto`,`required`,`none`]).optional()}),_t=N({type:R(`tool_result`),toolUseId:D().describe(`The unique identifier for the corresponding tool call.`),content:M(Ze),structuredContent:N({}).loose().optional(),isError:A().optional(),_meta:I(D(),j()).optional()}),vt=sl(`type`,[Ge,Ke,qe]),yt=sl(`type`,[Ge,Ke,qe,Je,_t]),bt=N({role:Se,content:F([yt,M(yt)]),_meta:I(D(),j()).optional()}),xt=c.extend({messages:M(bt),modelPreferences:ht.optional(),systemPrompt:D().optional(),includeContext:L([`none`,`thisServer`,`allServers`]).optional(),temperature:k().optional(),maxTokens:k().int(),stopSequences:M(D()).optional(),metadata:t.optional(),tools:M(rt).optional(),toolChoice:gt.optional()}),St=l.extend({method:R(`sampling/createMessage`),params:xt}),Ct=f.extend({model:D(),stopReason:z(L([`endTurn`,`stopSequence`,`maxTokens`]).or(D())),role:Se,content:vt}),wt=f.extend({model:D(),stopReason:z(L([`endTurn`,`stopSequence`,`maxTokens`,`toolUse`]).or(D())),role:Se,content:F([yt,M(yt)])}),Tt=N({type:R(`boolean`),title:D().optional(),description:D().optional(),default:A().optional()}),Et=N({type:R(`string`),title:D().optional(),description:D().optional(),minLength:k().optional(),maxLength:k().optional(),format:L([`email`,`uri`,`date`,`date-time`]).optional(),default:D().optional()}),Dt=N({type:L([`number`,`integer`]),title:D().optional(),description:D().optional(),minimum:k().optional(),maximum:k().optional(),default:k().optional()}),Ot=N({type:R(`string`),title:D().optional(),description:D().optional(),enum:M(D()),default:D().optional()}),kt=N({type:R(`string`),title:D().optional(),description:D().optional(),oneOf:M(N({const:D(),title:D()})),default:D().optional()}),At=N({type:R(`string`),title:D().optional(),description:D().optional(),enum:M(D()),enumNames:M(D()).optional(),default:D().optional()}),jt=F([Ot,kt]),Mt=N({type:R(`array`),title:D().optional(),description:D().optional(),minItems:k().optional(),maxItems:k().optional(),items:N({type:R(`string`),enum:M(D())}),default:M(D()).optional()}),Nt=N({type:R(`array`),title:D().optional(),description:D().optional(),minItems:k().optional(),maxItems:k().optional(),items:N({anyOf:M(N({const:D(),title:D()}))}),default:M(D()).optional()}),Pt=F([Mt,Nt]),Ft=F([At,jt,Pt]),It=F([Ft,Tt,Et,Dt]),Lt=c.extend({mode:R(`form`).optional(),message:D(),requestedSchema:N({type:R(`object`),properties:I(D(),It),required:M(D()).optional()}).catchall(j())}),Rt=c.extend({mode:R(`url`),message:D(),elicitationId:D(),url:D().url()}),zt=F([Lt,Rt]),Bt=l.extend({method:R(`elicitation/create`),params:zt}),Vt=u.extend({elicitationId:D()}),Ht=d.extend({method:R(`notifications/elicitation/complete`),params:Vt}),Ut=f.extend({action:L([`accept`,`decline`,`cancel`]),content:gu(e=>e===null?void 0:e,I(D(),F([D(),k(),A(),M(D())])).optional())}),Wt=N({type:R(`ref/resource`),uri:D()}),Gt=N({type:R(`ref/prompt`),name:D()}),Kt=s.extend({ref:F([Gt,Wt]),argument:N({name:D(),value:D()}),context:N({arguments:I(D(),D()).optional()}).optional()}),qt=l.extend({method:R(`completion/complete`),params:Kt}),Jt=f.extend({completion:P({values:M(D()).max(100),total:z(k().int()),hasMore:z(A())})}),Yt=N({uri:D().startsWith(`file://`),name:D().optional(),_meta:I(D(),j()).optional()}),Xt=l.extend({method:R(`roots/list`),params:s.optional()}),Zt=f.extend({roots:M(Yt)}),Qt=d.extend({method:R(`notifications/roots/list_changed`),params:u.optional()}),$t=P({ttl:k().optional(),pollInterval:k().optional()}),en=L([`working`,`input_required`,`completed`,`failed`,`cancelled`]),tn=N({taskId:D(),status:en,ttl:F([k(),Uc()]),createdAt:D(),lastUpdatedAt:D(),pollInterval:z(k()),statusMessage:z(D())}),nn=f.extend({task:tn}),rn=u.merge(tn),an=d.extend({method:R(`notifications/tasks/status`),params:rn}),on=l.extend({method:R(`tasks/get`),params:s.extend({taskId:D()})}),sn=f.merge(tn),cn=l.extend({method:R(`tasks/result`),params:s.extend({taskId:D()})}),ln=f.loose(),un=v.extend({method:R(`tasks/list`)}),S=_e.extend({tasks:M(tn)}),dn=l.extend({method:R(`tasks/cancel`),params:s.extend({taskId:D()})});return{JSONValueSchema:e,JSONObjectSchema:t,ProgressTokenSchema:n,CursorSchema:r,TaskMetadataSchema:i,RelatedTaskMetadataSchema:a,RequestMetaSchema:o,BaseRequestParamsSchema:s,TaskAugmentedRequestParamsSchema:c,RequestSchema:l,NotificationsParamsSchema:u,NotificationSchema:d,ResultSchema:f,RequestIdSchema:p,EmptyResultSchema:m,CancelledNotificationParamsSchema:h,CancelledNotificationSchema:ee,IconSchema:g,IconsSchema:te,BaseMetadataSchema:ne,ImplementationSchema:re,ClientTasksCapabilitySchema:ie,ServerTasksCapabilitySchema:ae,ClientCapabilitiesSchema:oe,InitializeRequestParamsSchema:se,InitializeRequestSchema:ce,ServerCapabilitiesSchema:le,InitializeResultSchema:ue,InitializedNotificationSchema:de,PingRequestSchema:fe,ProgressSchema:pe,ProgressNotificationParamsSchema:me,ProgressNotificationSchema:he,PaginatedRequestParamsSchema:ge,PaginatedRequestSchema:v,PaginatedResultSchema:_e,ResourceContentsSchema:ve,TextResourceContentsSchema:ye,BlobResourceContentsSchema:xe,RoleSchema:Se,AnnotationsSchema:Ce,ResourceSchema:we,ResourceTemplateSchema:Te,ListResourcesRequestSchema:Ee,ListResourcesResultSchema:De,ListResourceTemplatesRequestSchema:Oe,ListResourceTemplatesResultSchema:y,ResourceRequestParamsSchema:ke,ReadResourceRequestParamsSchema:b,ReadResourceRequestSchema:Ae,ReadResourceResultSchema:je,ResourceListChangedNotificationSchema:Me,SubscribeRequestParamsSchema:Ne,SubscribeRequestSchema:Pe,UnsubscribeRequestParamsSchema:Fe,UnsubscribeRequestSchema:Ie,ResourceUpdatedNotificationParamsSchema:Le,ResourceUpdatedNotificationSchema:Re,PromptArgumentSchema:ze,PromptSchema:Be,ListPromptsRequestSchema:Ve,ListPromptsResultSchema:He,GetPromptRequestParamsSchema:Ue,GetPromptRequestSchema:We,TextContentSchema:Ge,ImageContentSchema:Ke,AudioContentSchema:qe,ToolUseContentSchema:Je,EmbeddedResourceSchema:Ye,ResourceLinkSchema:Xe,ContentBlockSchema:Ze,PromptMessageSchema:Qe,GetPromptResultSchema:$e,PromptListChangedNotificationSchema:et,ToolAnnotationsSchema:tt,ToolExecutionSchema:nt,ToolSchema:rt,ListToolsRequestSchema:it,ListToolsResultSchema:at,CallToolResultSchema:ot,CallToolRequestParamsSchema:x,CallToolRequestSchema:st,ToolListChangedNotificationSchema:ct,LoggingLevelSchema:lt,SetLevelRequestParamsSchema:ut,SetLevelRequestSchema:dt,LoggingMessageNotificationParamsSchema:ft,LoggingMessageNotificationSchema:pt,ModelHintSchema:mt,ModelPreferencesSchema:ht,ToolChoiceSchema:gt,ToolResultContentSchema:_t,SamplingContentSchema:vt,SamplingMessageContentBlockSchema:yt,SamplingMessageSchema:bt,CreateMessageRequestParamsSchema:xt,CreateMessageRequestSchema:St,CreateMessageResultSchema:Ct,CreateMessageResultWithToolsSchema:wt,BooleanSchemaSchema:Tt,StringSchemaSchema:Et,NumberSchemaSchema:Dt,UntitledSingleSelectEnumSchemaSchema:Ot,TitledSingleSelectEnumSchemaSchema:kt,LegacyTitledEnumSchemaSchema:At,SingleSelectEnumSchemaSchema:jt,UntitledMultiSelectEnumSchemaSchema:Mt,TitledMultiSelectEnumSchemaSchema:Nt,MultiSelectEnumSchemaSchema:Pt,EnumSchemaSchema:Ft,PrimitiveSchemaDefinitionSchema:It,ElicitRequestFormParamsSchema:Lt,ElicitRequestURLParamsSchema:Rt,ElicitRequestParamsSchema:zt,ElicitRequestSchema:Bt,ElicitationCompleteNotificationParamsSchema:Vt,ElicitationCompleteNotificationSchema:Ht,ElicitResultSchema:Ut,ResourceTemplateReferenceSchema:Wt,PromptReferenceSchema:Gt,CompleteRequestParamsSchema:Kt,CompleteRequestSchema:qt,CompleteResultSchema:Jt,RootSchema:Yt,ListRootsRequestSchema:Xt,ListRootsResultSchema:Zt,RootsListChangedNotificationSchema:Qt,TaskCreationParamsSchema:$t,TaskStatusSchema:en,TaskSchema:tn,CreateTaskResultSchema:nn,TaskStatusNotificationParamsSchema:rn,TaskStatusNotificationSchema:an,GetTaskRequestSchema:on,GetTaskResultSchema:sn,GetTaskPayloadRequestSchema:cn,GetTaskPayloadResultSchema:ln,ListTasksRequestSchema:un,ListTasksResultSchema:S,CancelTaskRequestSchema:dn,CancelTaskResultSchema:f.merge(tn),ClientRequestSchema:F([fe,ce,qt,dt,We,Ve,Ee,Oe,Ae,Pe,Ie,st,it,on,cn,un,dn]),ClientNotificationSchema:F([ee,he,de,Qt,an]),ClientResultSchema:F([m,Ct,wt,Ut,Zt,sn,S,nn]),ServerRequestSchema:F([fe,St,Bt,Xt,on,cn,un,dn]),ServerNotificationSchema:F([ee,he,pt,Re,Me,ct,et,an,Ht]),ServerResultSchema:F([m,ue,Jt,$e,He,De,y,je,ot,at,sn,S,nn]),CallToolResultWireSchema:j().superRefine((e,t)=>{if(!(typeof e!=`object`||!e||Array.isArray(e)||e.content!==void 0)){for(let n of tm)if(n in e){t.addIssue({code:`custom`,message:`content is required when the body carries '${n}' — another result family cannot default into an empty tools/call success`});return}}}).transform(nm).pipe(ot)}}var im;function am(){return im??=rm()}function om(e){return e.type!==`object`}var sm=new Set([`const`,`enum`,`default`,`examples`]),cm=new Set([`properties`,`patternProperties`,`$defs`,`definitions`,`dependentSchemas`,`dependencies`]);function lm(e){return e!==void 0&&!(typeof e==`string`&&e.startsWith(`#`))}function um(e){let t=typeof e.$schema==`string`?e.$schema:void 0;if(lm(e.$id))return{...t!==void 0&&{$schema:t},type:`object`,properties:{result:e},required:[`result`]};let n=o(e.$schema)&&e.$recursiveAnchor!==!0,r=(e,t)=>{if(Array.isArray(e))return e.map(e=>r(e,!1));if(typeof e!=`object`||!e||!t&&lm(e.$id))return e;let i={},a=!1;for(let[o,s]of Object.entries(e))t?i[o]=r(s,!1):(o===`$ref`||o===`$dynamicRef`)&&typeof s==`string`?i[o]=s===`#`?`#/properties/result`:s.startsWith(`#/`)?`#/properties/result${s.slice(1)}`:s:o===`$recursiveRef`&&s===`#`&&n?a=!0:sm.has(o)?i[o]=s:cm.has(o)?i[o]=r(s,!0):i[o]=r(s,!1);return a&&(`$ref`in i?i.allOf=[...Array.isArray(i.allOf)?i.allOf:[],{$ref:`#/properties/result`}]:i.$ref=`#/properties/result`),i};return{...t!==void 0&&{$schema:t},type:`object`,properties:{result:r(e,!1)},required:[`result`]}}var dm={ping:null,initialize:null,"completion/complete":null,"logging/setLevel":null,"prompts/get":null,"prompts/list":null,"resources/list":null,"resources/templates/list":null,"resources/read":null,"resources/subscribe":null,"resources/unsubscribe":null,"tools/call":null,"tools/list":null,"tasks/get":null,"tasks/result":null,"tasks/list":null,"tasks/cancel":null,"sampling/createMessage":null,"elicitation/create":null,"roots/list":null},fm={"notifications/cancelled":null,"notifications/progress":null,"notifications/initialized":null,"notifications/roots/list_changed":null,"notifications/tasks/status":null,"notifications/message":null,"notifications/resources/updated":null,"notifications/resources/list_changed":null,"notifications/tools/list_changed":null,"notifications/prompts/list_changed":null,"notifications/elicitation/complete":null},pm={ping:null,initialize:null,"completion/complete":null,"logging/setLevel":null,"prompts/get":null,"prompts/list":null,"resources/list":null,"resources/templates/list":null,"resources/read":null,"resources/subscribe":null,"resources/unsubscribe":null,"tools/call":null,"tools/list":null,"sampling/createMessage":null,"elicitation/create":null,"roots/list":null},mm;function hm(){if(mm)return mm;let e=am();return mm={requestSchemas:{ping:e.PingRequestSchema,initialize:e.InitializeRequestSchema,"completion/complete":e.CompleteRequestSchema,"logging/setLevel":e.SetLevelRequestSchema,"prompts/get":e.GetPromptRequestSchema,"prompts/list":e.ListPromptsRequestSchema,"resources/list":e.ListResourcesRequestSchema,"resources/templates/list":e.ListResourceTemplatesRequestSchema,"resources/read":e.ReadResourceRequestSchema,"resources/subscribe":e.SubscribeRequestSchema,"resources/unsubscribe":e.UnsubscribeRequestSchema,"tools/call":e.CallToolRequestSchema,"tools/list":e.ListToolsRequestSchema,"tasks/get":e.GetTaskRequestSchema,"tasks/result":e.GetTaskPayloadRequestSchema,"tasks/list":e.ListTasksRequestSchema,"tasks/cancel":e.CancelTaskRequestSchema,"sampling/createMessage":e.CreateMessageRequestSchema,"elicitation/create":e.ElicitRequestSchema,"roots/list":e.ListRootsRequestSchema},notificationSchemas:{"notifications/cancelled":e.CancelledNotificationSchema,"notifications/progress":e.ProgressNotificationSchema,"notifications/initialized":e.InitializedNotificationSchema,"notifications/roots/list_changed":e.RootsListChangedNotificationSchema,"notifications/tasks/status":e.TaskStatusNotificationSchema,"notifications/message":e.LoggingMessageNotificationSchema,"notifications/resources/updated":e.ResourceUpdatedNotificationSchema,"notifications/resources/list_changed":e.ResourceListChangedNotificationSchema,"notifications/tools/list_changed":e.ToolListChangedNotificationSchema,"notifications/prompts/list_changed":e.PromptListChangedNotificationSchema,"notifications/elicitation/complete":e.ElicitationCompleteNotificationSchema},resultSchemas:{ping:e.EmptyResultSchema,initialize:e.InitializeResultSchema,"completion/complete":e.CompleteResultSchema,"logging/setLevel":e.EmptyResultSchema,"prompts/get":e.GetPromptResultSchema,"prompts/list":e.ListPromptsResultSchema,"resources/list":e.ListResourcesResultSchema,"resources/templates/list":e.ListResourceTemplatesResultSchema,"resources/read":e.ReadResourceResultSchema,"resources/subscribe":e.EmptyResultSchema,"resources/unsubscribe":e.EmptyResultSchema,"tools/call":e.CallToolResultWireSchema,"tools/list":e.ListToolsResultSchema,"sampling/createMessage":e.CreateMessageResultWithToolsSchema,"elicitation/create":e.ElicitResultSchema,"roots/list":e.ListRootsResultSchema}},mm}function gm(e){return Object.prototype.hasOwnProperty.call(dm,e)}function _m(e){return Object.prototype.hasOwnProperty.call(fm,e)}function vm(e){return Object.prototype.hasOwnProperty.call(pm,e)}function ym(e){return vm(e)?hm().resultSchemas[e]:void 0}function bm(e){return gm(e)?hm().requestSchemas[e]:void 0}function xm(e){return _m(e)?hm().notificationSchemas[e]:void 0}Object.keys(dm),Object.keys(fm);function Sm(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function Cm(e,t){if(e===void 0)return{ok:!1,reason:`not-in-era`};let n=e.safeParse(t);return n.success?{ok:!0,value:n.data}:{ok:!1,reason:`invalid`,message:String(n.error)}}var wm={ok:!1,reason:`not-in-era`};function Tm(e){return Sm(e)&&Sm(e.outputSchema)&&om(e.outputSchema)}function Em(e){return e}var Dm={era:`2025-11-25`,hasRequestMethod:gm,hasNotificationMethod:_m,validateRequest:(e,t)=>Cm(bm(e),t),validateResult:(e,t)=>Cm(ym(e),t),validateNotification:(e,t)=>Cm(xm(e),t),hasInputRequestMethod:()=>!1,validateInputRequest:()=>wm,validateInputResponse:()=>wm,samplingResultVariant:((e,t)=>{let n=am();return Cm(e?n.CreateMessageResultWithToolsSchema:n.CreateMessageResultSchema,t)}),outboundEnvelope:e=>void 0,validateEnvelopeMeta:e=>[],projectCallToolResult(e,t){let n=em(e),r=n.structuredContent;if(r===void 0)return n;let i=typeof r!=`object`||!r||Array.isArray(r),a=t!==void 0&&om(t);return!i&&!a?n:{...n,structuredContent:{result:r}}},decodeResult(e,t){if(Sm(t)&&`resultType`in t){let e={...t};return delete e.resultType,{kind:`complete`,result:Em(e)}}return{kind:`complete`,result:Em(t)}},encodeResult(e,t){if(e!==`tools/list`)return t;let n=t.tools;return!Array.isArray(n)||!n.some(e=>Tm(e))?t:{...t,tools:n.map(e=>Tm(e)?{...e,outputSchema:um(e.outputSchema)}:e)}},encodeErrorCode:e=>e===-32002?-32602:e,checkInboundEnvelope:e=>void 0};function Om(){let e=tu(()=>F([D(),k(),A(),Uc(),I(D(),e),M(e)])),t=I(D(),e),n=F([D(),k().int()]),r=D(),i=F([D(),k().int()]),a=L([`user`,`assistant`]),o=L([`debug`,`info`,`notice`,`warning`,`error`,`critical`,`alert`,`emergency`]),s=D().refine(e=>{try{return atob(e),!0}catch{return!1}},{message:`Invalid Base64 string`}),c=N({ttl:k().optional()}),l=N({taskId:D()}),u=P({progressToken:n.optional(),"io.modelcontextprotocol/related-task":l.optional()}),d=N({_meta:u.optional()}),f=d.extend({task:c.optional()}),p=N({_meta:u.optional()}),m=N({method:D(),params:p.loose().optional()}),h=N({src:D(),mimeType:D().optional(),sizes:M(D()).optional(),theme:L([`light`,`dark`]).optional()}),ee=N({icons:M(h).optional()}),g=N({name:D(),title:D().optional()}),te=g.extend({...g.shape,...ee.shape,version:D(),websiteUrl:D().optional(),description:D().optional()}),ne=gu(e=>e&&typeof e==`object`&&!Array.isArray(e)&&Object.keys(e).length===0?{form:{}}:e,ll(N({form:ll(N({applyDefaults:A().optional()}),t).optional(),url:t.optional()}),t.optional())),re=P({list:t.optional(),cancel:t.optional(),requests:P({sampling:P({createMessage:t.optional()}).optional(),elicitation:P({create:t.optional()}).optional()}).optional()}),_=P({list:t.optional(),cancel:t.optional(),requests:P({tools:P({call:t.optional()}).optional()}).optional()}),ie=N({experimental:I(D(),t).optional(),sampling:N({context:t.optional(),tools:t.optional()}).optional(),elicitation:ne.optional(),roots:N({listChanged:A().optional()}).optional(),tasks:re.optional(),extensions:I(D(),t).optional()}),ae=N({experimental:I(D(),t).optional(),logging:t.optional(),completions:t.optional(),prompts:N({listChanged:A().optional()}).optional(),resources:N({subscribe:A().optional(),listChanged:A().optional()}).optional(),tools:N({listChanged:A().optional()}).optional(),tasks:_.optional(),extensions:I(D(),t).optional()}),oe=N({progress:k(),total:z(k()),message:z(D())}),se=N({...p.shape,...oe.shape,progressToken:n}),ce=m.extend({method:R(`notifications/progress`),params:se}),le=p.extend({level:o,logger:D().optional(),data:j()}),ue=m.extend({method:R(`notifications/message`),params:le}),de=N({uri:D(),mimeType:z(D()),_meta:I(D(),j()).optional()}),fe=de.extend({text:D()}),pe=de.extend({blob:s}),me=N({audience:M(a).optional(),priority:k().min(0).max(1).optional(),lastModified:as({offset:!0}).optional()}),he=N({...g.shape,...ee.shape,uri:D(),description:z(D()),mimeType:z(D()),size:z(k()),annotations:me.optional(),_meta:z(P({}))}),ge=N({...g.shape,...ee.shape,uriTemplate:D(),description:z(D()),mimeType:z(D()),annotations:me.optional(),_meta:z(P({}))}),v=m.extend({method:R(`notifications/resources/list_changed`),params:p.optional()}),_e=p.extend({uri:D()}),ve=m.extend({method:R(`notifications/resources/updated`),params:_e}),ye=N({name:D(),description:z(D()),required:z(A())}),be=N({...g.shape,...ee.shape,description:z(D()),arguments:z(M(ye)),_meta:z(P({}))}),xe=m.extend({method:R(`notifications/prompts/list_changed`),params:p.optional()}),Se=N({type:R(`text`),text:D(),annotations:me.optional(),_meta:I(D(),j()).optional()}),Ce=N({type:R(`image`),data:s,mimeType:D(),annotations:me.optional(),_meta:I(D(),j()).optional()}),we=N({type:R(`audio`),data:s,mimeType:D(),annotations:me.optional(),_meta:I(D(),j()).optional()}),Te=N({type:R(`tool_use`),name:D(),id:D(),input:I(D(),j()),_meta:I(D(),j()).optional()}),Ee=N({type:R(`resource`),resource:F([fe,pe]),annotations:me.optional(),_meta:I(D(),j()).optional()}),De=he.extend({type:R(`resource_link`)}),Oe=F([Se,Ce,we,De,Ee]),y=N({role:a,content:Oe}),ke=N({title:D().optional(),readOnlyHint:A().optional(),destructiveHint:A().optional(),idempotentHint:A().optional(),openWorldHint:A().optional()}),b=m.extend({method:R(`notifications/tools/list_changed`),params:p.optional()}),Ae=N({name:D().optional()}),je=N({hints:M(Ae).optional(),costPriority:k().min(0).max(1).optional(),speedPriority:k().min(0).max(1).optional(),intelligencePriority:k().min(0).max(1).optional()}),Me=N({mode:L([`auto`,`required`,`none`]).optional()}),Ne=N({type:R(`boolean`),title:D().optional(),description:D().optional(),default:A().optional()}),Pe=N({type:R(`string`),title:D().optional(),description:D().optional(),minLength:k().optional(),maxLength:k().optional(),format:L([`email`,`uri`,`date`,`date-time`]).optional(),default:D().optional()}),Fe=N({type:L([`number`,`integer`]),title:D().optional(),description:D().optional(),minimum:k().optional(),maximum:k().optional(),default:k().optional()}),Ie=N({type:R(`string`),title:D().optional(),description:D().optional(),enum:M(D()),default:D().optional()}),Le=N({type:R(`string`),title:D().optional(),description:D().optional(),oneOf:M(N({const:D(),title:D()})),default:D().optional()}),Re=N({type:R(`string`),title:D().optional(),description:D().optional(),enum:M(D()),enumNames:M(D()).optional(),default:D().optional()}),ze=F([Ie,Le]),Be=N({type:R(`array`),title:D().optional(),description:D().optional(),minItems:k().optional(),maxItems:k().optional(),items:N({type:R(`string`),enum:M(D())}),default:M(D()).optional()}),Ve=N({type:R(`array`),title:D().optional(),description:D().optional(),minItems:k().optional(),maxItems:k().optional(),items:N({anyOf:M(N({const:D(),title:D()}))}),default:M(D()).optional()}),He=F([Be,Ve]),Ue=F([Re,ze,He]),We=F([Ue,Ne,Pe,Fe]),Ge=f.extend({mode:R(`form`).optional(),message:D(),requestedSchema:N({type:R(`object`),properties:I(D(),We),required:M(D()).optional()}).catchall(j())}),Ke=N({type:R(`ref/resource`),uri:D()}),qe=N({type:R(`ref/prompt`),name:D()}),Je=N({uri:D().startsWith(`file://`),name:D().optional(),_meta:I(D(),j()).optional()}),Ye=ie.shape,Xe=N({experimental:Ye.experimental,sampling:Ye.sampling,elicitation:Ye.elicitation,roots:Ye.roots,extensions:Ye.extensions}),Ze=ae.shape,Qe=N({experimental:Ze.experimental,logging:Ze.logging,completions:Ze.completions,prompts:Ze.prompts,resources:Ze.resources,tools:Ze.tools,extensions:Ze.extensions}),$e=P({progressToken:n.optional(),[Du]:D(),[Ou]:te.optional(),[Au]:Xe,[Mu]:o.optional()}),et=N({...g.shape,...ee.shape,description:D().optional(),inputSchema:P({$schema:D().optional(),type:R(`object`)}),outputSchema:P({$schema:D().optional()}).optional(),annotations:ke.optional(),_meta:I(D(),j()).optional()}),tt=N({type:R(`tool_result`),toolUseId:D(),content:M(Oe),structuredContent:j().optional(),isError:A().optional(),_meta:I(D(),j()).optional()}),nt=F([Se,Ce,we,Te,tt]),rt=N({role:a,content:F([nt,M(nt)]),_meta:I(D(),j()).optional()}),it=D(),at=P({[ku]:te.optional().catch(void 0)}),ot=at.optional();function x(e){return P({_meta:ot,resultType:it.default(`complete`),...e})}let st=x({}),ct=x({nextCursor:r.optional()}),lt=x({content:M(Oe),structuredContent:j().optional(),isError:A().optional()}),ut=x({ttlMs:k().int().min(0),cacheScope:L([`public`,`private`]),tools:M(et),nextCursor:r.optional()}),dt=x({ttlMs:k().int().min(0),cacheScope:L([`public`,`private`]),prompts:M(be),nextCursor:r.optional()}),ft=x({description:D().optional(),messages:M(y)}),pt=x({ttlMs:k().int().min(0),cacheScope:L([`public`,`private`]),resources:M(he),nextCursor:r.optional()}),mt=x({ttlMs:k().int().min(0),cacheScope:L([`public`,`private`]),resourceTemplates:M(ge),nextCursor:r.optional()}),ht=x({ttlMs:k().int().min(0),cacheScope:L([`public`,`private`]),contents:M(F([fe,pe]))}),gt=x({completion:N({values:M(D()).max(100),total:k().int().optional(),hasMore:A().optional()}).loose()}),_t=x({ttlMs:k().int().min(0),cacheScope:L([`public`,`private`])}),vt=x({ttlMs:k().int().min(0).catch(0),cacheScope:L([`public`,`private`]).catch(`private`),supportedVersions:M(D()),capabilities:Qe,instructions:D().optional()}),yt=N({messages:M(rt),modelPreferences:je.optional(),systemPrompt:D().optional(),includeContext:L([`none`,`thisServer`,`allServers`]).optional(),temperature:k().optional(),maxTokens:k().int(),stopSequences:M(D()).optional(),metadata:t.optional(),tools:M(et).optional(),toolChoice:Me.optional()}),bt=N({method:R(`sampling/createMessage`),params:yt}),xt=N({method:R(`roots/list`),params:N({_meta:I(D(),j()).optional()}).optional()}),St=N({...rt.shape,model:D(),stopReason:D().optional()}),Ct=N({roots:M(Je)}),wt=N({action:L([`accept`,`decline`,`cancel`]),content:I(D(),F([D(),k(),A(),M(D())])).optional()}),Tt=N({mode:R(`url`),message:D(),url:D().url()}),Et=F([Ge,Tt]),Dt=N({method:R(`elicitation/create`),params:Et}),Ot=F([bt,xt,Dt]),kt=F([St,Ct,wt]),At=I(D(),Ot),jt=I(D(),kt),Mt=x({inputRequests:At.optional(),requestState:D().optional()}),Nt={inputResponses:jt.optional(),requestState:D().optional()},Pt=N({_meta:$e,...Nt}),Ft=P({progressToken:n.optional()});function It(e,t){return N({method:R(e),params:N({_meta:$e,...t})})}function Lt(e,t){return N({method:R(e),params:N({_meta:Ft.optional(),...t}).optional()})}let Rt={name:D(),arguments:I(D(),j()).optional(),...Nt},zt={cursor:r.optional()},Bt=It(`tools/call`,Rt),Vt=It(`tools/list`,zt),Ht=It(`prompts/list`,zt),Ut=It(`prompts/get`,{name:D(),arguments:I(D(),D()).optional(),...Nt}),Wt=It(`resources/list`,zt),Gt=It(`resources/templates/list`,zt),Kt=It(`resources/read`,{uri:D(),...Nt}),qt={ref:F([qe,Ke]),argument:N({name:D(),value:D()}),context:N({arguments:I(D(),D()).optional()}).optional()},Jt=It(`completion/complete`,qt),Yt=It(`server/discover`,{}),Xt=N({toolsListChanged:A().optional(),promptsListChanged:A().optional(),resourcesListChanged:A().optional(),resourceSubscriptions:M(D()).optional()}),Zt={notifications:Xt},Qt=It(`subscriptions/listen`,Zt),$t=at.extend({"io.modelcontextprotocol/subscriptionId":i}),en=P({_meta:$t,resultType:it.default(`complete`)}),tn={"tools/call":Lt(`tools/call`,Rt),"tools/list":Lt(`tools/list`,zt),"prompts/get":Lt(`prompts/get`,{name:D(),arguments:I(D(),D()).optional()}),"prompts/list":Lt(`prompts/list`,zt),"resources/list":Lt(`resources/list`,zt),"resources/templates/list":Lt(`resources/templates/list`,zt),"resources/read":Lt(`resources/read`,{uri:D()}),"completion/complete":Lt(`completion/complete`,qt),"server/discover":Lt(`server/discover`,{}),"subscriptions/listen":Lt(`subscriptions/listen`,Zt)};function nn(e){return P({_meta:ot,...e})}let rn={"tools/call":nn({content:M(Oe),structuredContent:j().optional(),isError:A().optional()}),"tools/list":nn({ttlMs:k().int().min(0),cacheScope:L([`public`,`private`]),tools:M(et),nextCursor:r.optional()}),"prompts/get":nn({description:D().optional(),messages:M(y)}),"prompts/list":nn({ttlMs:k().int().min(0),cacheScope:L([`public`,`private`]),prompts:M(be),nextCursor:r.optional()}),"resources/list":nn({ttlMs:k().int().min(0),cacheScope:L([`public`,`private`]),resources:M(he),nextCursor:r.optional()}),"resources/templates/list":nn({ttlMs:k().int().min(0),cacheScope:L([`public`,`private`]),resourceTemplates:M(ge),nextCursor:r.optional()}),"resources/read":nn({ttlMs:k().int().min(0),cacheScope:L([`public`,`private`]),contents:M(F([fe,pe]))}),"completion/complete":nn({completion:N({values:M(D()).max(100),total:k().int().optional(),hasMore:A().optional()}).loose()}),"server/discover":nn({ttlMs:k().int().min(0).catch(0),cacheScope:L([`public`,`private`]).catch(`private`),supportedVersions:M(D()),capabilities:Qe,instructions:D().optional()}),"subscriptions/listen":nn({})},an=P({"io.modelcontextprotocol/subscriptionId":i.optional()}),on=N({method:R(`notifications/subscriptions/acknowledged`),params:N({_meta:an.optional(),notifications:Xt})}),sn=N({_meta:an.optional(),requestId:i,reason:D().optional()}),cn=N({method:R(`notifications/cancelled`),params:sn}),ln={"notifications/cancelled":cn,"notifications/progress":ce,"notifications/message":ue,"notifications/resources/updated":ve,"notifications/resources/list_changed":v,"notifications/tools/list_changed":b,"notifications/prompts/list_changed":xe,"notifications/subscriptions/acknowledged":on},un=e=>N({jsonrpc:R(`2.0`),id:F([D(),k().int()]),result:e}).strict();return{JSONValueSchema:e,JSONObjectSchema:t,ProgressTokenSchema:n,CursorSchema:r,RequestIdSchema:i,RoleSchema:a,LoggingLevelSchema:o,TaskMetadataSchema:c,RelatedTaskMetadataSchema:l,RequestMetaSchema:u,BaseRequestParamsSchema:d,TaskAugmentedRequestParamsSchema:f,NotificationsParamsSchema:p,NotificationSchema:m,IconSchema:h,IconsSchema:ee,BaseMetadataSchema:g,ImplementationSchema:te,ClientTasksCapabilitySchema:re,ServerTasksCapabilitySchema:_,ClientCapabilitiesSchema:ie,ServerCapabilitiesSchema:ae,ProgressSchema:oe,ProgressNotificationParamsSchema:se,ProgressNotificationSchema:ce,LoggingMessageNotificationParamsSchema:le,LoggingMessageNotificationSchema:ue,ResourceContentsSchema:de,TextResourceContentsSchema:fe,BlobResourceContentsSchema:pe,AnnotationsSchema:me,ResourceSchema:he,ResourceTemplateSchema:ge,ResourceListChangedNotificationSchema:v,ResourceUpdatedNotificationParamsSchema:_e,ResourceUpdatedNotificationSchema:ve,PromptArgumentSchema:ye,PromptSchema:be,PromptListChangedNotificationSchema:xe,TextContentSchema:Se,ImageContentSchema:Ce,AudioContentSchema:we,ToolUseContentSchema:Te,EmbeddedResourceSchema:Ee,ResourceLinkSchema:De,ContentBlockSchema:Oe,PromptMessageSchema:y,ToolAnnotationsSchema:ke,ToolListChangedNotificationSchema:b,ModelHintSchema:Ae,ModelPreferencesSchema:je,ToolChoiceSchema:Me,BooleanSchemaSchema:Ne,StringSchemaSchema:Pe,NumberSchemaSchema:Fe,UntitledSingleSelectEnumSchemaSchema:Ie,TitledSingleSelectEnumSchemaSchema:Le,LegacyTitledEnumSchemaSchema:Re,SingleSelectEnumSchemaSchema:ze,UntitledMultiSelectEnumSchemaSchema:Be,TitledMultiSelectEnumSchemaSchema:Ve,MultiSelectEnumSchemaSchema:He,EnumSchemaSchema:Ue,PrimitiveSchemaDefinitionSchema:We,ElicitRequestFormParamsSchema:Ge,ResourceTemplateReferenceSchema:Ke,PromptReferenceSchema:qe,RootSchema:Je,ClientCapabilities2026Schema:Xe,ServerCapabilities2026Schema:Qe,RequestMetaEnvelopeSchema:$e,ToolSchema:et,ToolResultContentSchema:tt,SamplingMessageContentBlockSchema:nt,SamplingMessageSchema:rt,ResultTypeSchema:it,ResultMetaSchema:at,ResultSchema:st,PaginatedResultSchema:ct,CallToolResultSchema:lt,ListToolsResultSchema:ut,ListPromptsResultSchema:dt,GetPromptResultSchema:ft,ListResourcesResultSchema:pt,ListResourceTemplatesResultSchema:mt,ReadResourceResultSchema:ht,CompleteResultSchema:gt,CacheableResultSchema:_t,DiscoverResultSchema:vt,CreateMessageRequestParamsSchema:yt,CreateMessageRequestSchema:bt,ListRootsRequestSchema:xt,CreateMessageResultSchema:St,ListRootsResultSchema:Ct,ElicitResultSchema:wt,ElicitRequestURLParamsSchema:Tt,ElicitRequestParamsSchema:Et,ElicitRequestSchema:Dt,InputRequestSchema:Ot,InputResponseSchema:kt,InputRequestsSchema:At,InputResponsesSchema:jt,InputRequiredResultSchema:Mt,InputResponseRequestParamsSchema:Pt,CallToolRequestSchema:Bt,ListToolsRequestSchema:Vt,ListPromptsRequestSchema:Ht,GetPromptRequestSchema:Ut,ListResourcesRequestSchema:Wt,ListResourceTemplatesRequestSchema:Gt,ReadResourceRequestSchema:Kt,CompleteRequestSchema:Jt,DiscoverRequestSchema:Yt,SubscriptionFilterSchema:Xt,SubscriptionsListenRequestSchema:Qt,SubscriptionsListenResultMetaSchema:$t,SubscriptionsListenResultSchema:en,dispatchRequestSchemas:tn,dispatchResultSchemas:rn,NotificationMetaSchema:an,SubscriptionsAcknowledgedNotificationSchema:on,CancelledNotificationParamsSchema:sn,CancelledNotificationSchema:cn,notificationSchemas2026:ln,JSONRPCResultResponseSchema:un(st),CallToolResultResponseSchema:un(F([lt,Mt])),ListToolsResultResponseSchema:un(ut),ListPromptsResultResponseSchema:un(dt),GetPromptResultResponseSchema:un(F([ft,Mt])),ListResourcesResultResponseSchema:un(pt),ListResourceTemplatesResultResponseSchema:un(mt),ReadResourceResultResponseSchema:un(F([ht,Mt])),CompleteResultResponseSchema:un(gt),DiscoverResultResponseSchema:un(vt)}}var km;function Am(){return km??=Om()}var jm=[`tools/list`,`prompts/list`,`resources/list`,`resources/templates/list`,`resources/read`,`server/discover`];function Mm(e){return jm.includes(e)}var Nm=Symbol(`modelcontextprotocol.resultCacheHintFallback`);function Pm(e){return e[Nm]}function Fm(e){return typeof e==`number`&&Number.isSafeInteger(e)&&e>=0}function Im(e){return e===`public`||e===`private`}var Y=function(e){return e[e.ParseError=-32700]=`ParseError`,e[e.InvalidRequest=-32600]=`InvalidRequest`,e[e.MethodNotFound=-32601]=`MethodNotFound`,e[e.InvalidParams=-32602]=`InvalidParams`,e[e.InternalError=-32603]=`InternalError`,e[e.ResourceNotFound=-32002]=`ResourceNotFound`,e[e.MissingRequiredClientCapability=-32021]=`MissingRequiredClientCapability`,e[e.UnsupportedProtocolVersion=-32022]=`UnsupportedProtocolVersion`,e[e.UrlElicitationRequired=-32042]=`UrlElicitationRequired`,e}({}),X=class e extends Error{static{Object.defineProperty(this,"mcpBrand",{value:`mcp.ProtocolError`})}static[Symbol.hasInstance](e){return Zp(this,e)}static isInstance(e){if(typeof this!=`function`)throw TypeError("isInstance must be called on the class (e.g. `SdkError.isInstance(value)`); for callbacks use `v => SdkError.isInstance(v)`");return Zp(this,e)}constructor(e,t,n){super(t),this.code=e,this.data=n,this.name=`ProtocolError`,Xp(this,new.target)}static fromError(t,n,r){if(t===Y.UrlElicitationRequired&&r){let e=r;if(e.elicitations)return new Rm(e.elicitations,n)}if(t===Y.UnsupportedProtocolVersion&&r){let e=r;if(Array.isArray(e.supported)&&typeof e.requested==`string`)return new zm({supported:e.supported,requested:e.requested},n)}if(t===Y.InvalidParams||t===Y.ResourceNotFound){let e=r;if(typeof e?.uri==`string`&&(t===Y.ResourceNotFound||Object.keys(e).length===1))return new Lm(e.uri,n)}if(t===Y.MissingRequiredClientCapability&&r){let e=r;if(e.requiredCapabilities!==null&&typeof e.requiredCapabilities==`object`&&!Array.isArray(e.requiredCapabilities))return new Bm({requiredCapabilities:e.requiredCapabilities},n)}return new e(t,n,r)}},Lm=class extends X{static{Object.defineProperty(this,"mcpBrand",{value:`mcp.ResourceNotFoundError`})}constructor(e,t=`Resource not found: ${e}`){super(Y.InvalidParams,t,{uri:e})}get uri(){return this.data.uri}},Rm=class extends X{static{Object.defineProperty(this,"mcpBrand",{value:`mcp.UrlElicitationRequiredError`})}constructor(e,t=`URL elicitation${e.length>1?`s`:``} required`){super(Y.UrlElicitationRequired,t,{elicitations:e})}get elicitations(){return this.data?.elicitations??[]}},zm=class extends X{static{Object.defineProperty(this,"mcpBrand",{value:`mcp.UnsupportedProtocolVersionError`})}constructor(e,t=`Unsupported protocol version: ${e.requested}`){super(Y.UnsupportedProtocolVersion,t,e)}get supported(){return this.data.supported}get requested(){return this.data.requested}},Bm=class extends X{static{Object.defineProperty(this,"mcpBrand",{value:`mcp.MissingRequiredClientCapabilityError`})}constructor(e,t=`Missing required client capabilities: ${Object.keys(e.requiredCapabilities).join(`, `)}`){super(Y.MissingRequiredClientCapability,t,e)}get requiredCapabilities(){return this.data.requiredCapabilities}},Vm=0,Hm=`private`,Um=[`tools/call`,`prompts/get`,`resources/read`];function Wm(e,t){let n=t.resultType;if(n===void 0)return{...t,resultType:`complete`};if(n===`complete`||Um.includes(e))return t;throw new X(Y.InternalError,`Handler for ${e} returned resultType '${String(n)}', but results of ${e} only support 'complete' on protocol revision 2026-07-28`)}function Gm(e,t){let n=Pm(t);if(t.resultType!==`complete`||!Mm(e))return n===void 0?t:Xm(t);let r=t,i=Fm(r.ttlMs)?r.ttlMs:Jm(n),a=Im(r.cacheScope)?r.cacheScope:Ym(n),o={...r,ttlMs:i,cacheScope:a};return delete o[Nm],o}function Km(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function qm(e,t){if(t===void 0)return e;let n=e._meta;return n===void 0?{...e,_meta:{[ku]:t}}:!Km(n)||n[`io.modelcontextprotocol/serverInfo`]!==void 0?e:{...e,_meta:{...n,[ku]:t}}}function Jm(e){return e!==void 0&&Fm(e.ttlMs)?e.ttlMs:Vm}function Ym(e){return e!==void 0&&Im(e.cacheScope)?e.cacheScope:Hm}function Xm(e){let t={...e};return delete t[Nm],t}var Zm=[`elicitation/create`,`sampling/createMessage`,`roots/list`],Qm;function $m(){if(Qm)return Qm;let e=Am();return Qm={request:{"elicitation/create":N({method:R(`elicitation/create`),params:e.ElicitRequestParamsSchema}),"sampling/createMessage":N({method:R(`sampling/createMessage`),params:e.CreateMessageRequestParamsSchema}),"roots/list":N({method:R(`roots/list`),params:P({}).optional()})},response:{"elicitation/create":e.ElicitResultSchema,"sampling/createMessage":e.CreateMessageResultSchema,"roots/list":e.ListRootsResultSchema}},Qm}function eh(e){return Zm.includes(e)}function th(e){return eh(e)?$m().request[e]:void 0}function nh(e){return eh(e)?$m().response[e]:void 0}var rh={"tools/call":null,"tools/list":null,"prompts/get":null,"prompts/list":null,"resources/list":null,"resources/templates/list":null,"resources/read":null,"completion/complete":null,"server/discover":null,"subscriptions/listen":null},ih={"notifications/cancelled":null,"notifications/progress":null,"notifications/message":null,"notifications/resources/updated":null,"notifications/resources/list_changed":null,"notifications/tools/list_changed":null,"notifications/prompts/list_changed":null,"notifications/subscriptions/acknowledged":null};function ah(e){return Object.prototype.hasOwnProperty.call(rh,e)}function oh(e){return Object.prototype.hasOwnProperty.call(ih,e)}function sh(e){return Object.prototype.hasOwnProperty.call(rh,e)}function ch(e){return ah(e)?Am().dispatchRequestSchemas[e]:void 0}function lh(e){return sh(e)?Am().dispatchResultSchemas[e]:void 0}function uh(e){return oh(e)?Am().notificationSchemas2026[e]:void 0}Object.keys(rh),Object.keys(ih);function dh(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function fh(e,t){if(e===void 0)return{ok:!1,reason:`not-in-era`};let n=e.safeParse(t);return n.success?{ok:!0,value:n.data}:{ok:!1,reason:`invalid`,message:String(n.error)}}var ph={ok:!1,reason:`not-in-era`},mh=[Du,Au];function hh(e,t){let n=t,r=!1,i=()=>(r||=(n={...n},!0),n),a=t.tools;e===`tools/list`&&Array.isArray(a)&&a.some(e=>dh(e)&&`execution`in e)&&(i().tools=a.map(e=>{if(!dh(e)||!(`execution`in e))return e;let t={...e};return delete t.execution,t}));let o=t.capabilities;if(dh(o)&&`tasks`in o){let e={...o};delete e.tasks,i().capabilities=e}return n}var gh={era:`2026-07-28`,hasRequestMethod:ah,hasNotificationMethod:oh,hasInputRequestMethod:e=>th(e)!==void 0,validateRequest:(e,t)=>fh(ch(e),t),validateResult:(e,t)=>fh(lh(e),t),validateNotification:(e,t)=>fh(uh(e),t),validateInputRequest:(e,t)=>fh(th(e),t),validateInputResponse:(e,t)=>fh(nh(e),t),samplingResultVariant:()=>ph,outboundEnvelope(e){return{[Du]:e.protocolVersion,[Ou]:e.clientInfo,[Au]:e.clientCapabilities,...e.logLevel!==void 0&&{"io.modelcontextprotocol/logLevel":e.logLevel}}},validateEnvelopeMeta(e){let t=[];for(let n of mh)n in e||t.push({key:n,problem:`missing`});let n=Am().RequestMetaEnvelopeSchema.safeParse(e);if(!n.success)for(let e of n.error.issues){let n=e.path.map(String),r=n.length>0?n.join(`.`):`_meta`;n.length===1&&t.some(e=>e.key===r&&e.problem===`missing`)||t.push({key:r,problem:e.message})}return t},projectCallToolResult:e=>em(e),inputRequestSchema:th,decodeResult(e,t){if(!dh(t))return{kind:`invalid`,error:new J(q.InvalidResult,`Invalid result for ${e}: not an object`,{method:e})};let n=t.resultType;if(n===void 0)return{kind:`invalid`,error:new J(q.InvalidResult,`Invalid result for ${e}: missing required resultType — servers implementing protocol revision 2026-07-28 MUST include it (the absent-means-complete bridge applies only to earlier-revision servers)`,{method:e,violation:`missing-resultType`})};if(typeof n!=`string`)return{kind:`invalid`,error:new J(q.InvalidResult,`Invalid result for ${e}: non-string resultType`,{method:e,resultType:n})};if(n===`input_required`){let n=t.inputRequests,r=dh(n)?n:{},i=t.requestState;return Object.keys(r).length===0&&typeof i!=`string`?{kind:`invalid`,error:new J(q.InvalidResult,`Invalid result for ${e}: input_required carries neither inputRequests nor requestState (every input_required result must include at least one of the two)`,{method:e,violation:`input-required-missing-both`})}:{kind:`input_required`,inputRequests:r,...typeof i==`string`&&{requestState:i}}}if(n!==`complete`)return{kind:`invalid`,error:new J(q.UnsupportedResultType,`Unsupported result type '${n}' for ${e}`,{resultType:n,method:e})};let r=vh(),i=Object.hasOwn(r,e)?r[e]:void 0;if(i!==void 0){let n=i.safeParse(t);if(!n.success)return{kind:`invalid`,error:new J(q.InvalidResult,`Invalid result for ${e}: ${n.error}`,{method:e})}}let a={...t};return delete a.resultType,{kind:`complete`,result:a}},encodeResult(e,t,n){return qm(Gm(e,Wm(e,hh(e,t))),n)},encodeErrorCode:e=>e===-32002?-32602:e,checkInboundEnvelope(e){if(e.envelope===void 0)return`Request is missing the required _meta envelope for protocol revision 2026-07-28 (io.modelcontextprotocol/protocolVersion, io.modelcontextprotocol/clientCapabilities)`;let t=Am().RequestMetaEnvelopeSchema.safeParse(e.envelope);if(!t.success)return`Invalid _meta envelope for protocol revision 2026-07-28: ${t.error.issues.map(e=>e.message).join(`; `)}`}},_h;function vh(){if(_h)return _h;let e=Am();return _h={"tools/call":e.CallToolResultSchema,"tools/list":e.ListToolsResultSchema,"prompts/get":e.GetPromptResultSchema,"prompts/list":e.ListPromptsResultSchema,"resources/list":e.ListResourcesResultSchema,"resources/templates/list":e.ListResourceTemplatesResultSchema,"resources/read":e.ReadResourceResultSchema,"completion/complete":e.CompleteResultSchema,"server/discover":e.DiscoverResultSchema},_h}var yh=`2026-07-28`;function bh(e){return e!==void 0&&$p(e)?gh:Dm}function xh(e){return e.revision===void 0?e.era===`modern`?gh.era:Dm.era:bh(e.revision).era}function Sh(e){return wh.some(t=>t.hasRequestMethod(e))}function Ch(e){return wh.some(t=>t.hasNotificationMethod(e))}var wh=[Dm,gh],Th=i({AnnotationsSchema:()=>Dd,AudioContentSchema:()=>sf,BaseMetadataSchema:()=>nd,BaseRequestParamsSchema:()=>U,BlobResourceContentsSchema:()=>Td,BooleanSchemaSchema:()=>Hf,CallToolRequestParamsSchema:()=>Sf,CallToolRequestSchema:()=>Cf,CallToolResultSchema:()=>bf,CancelTaskRequestSchema:()=>Op,CancelTaskResultSchema:()=>kp,CancelledNotificationParamsSchema:()=>Qu,CancelledNotificationSchema:()=>$u,ClientCapabilitiesSchema:()=>sd,ClientNotificationSchema:()=>jp,ClientRequestSchema:()=>Ap,ClientResultSchema:()=>Mp,ClientTasksCapabilitySchema:()=>ad,CompatibilityCallToolResultSchema:()=>xf,CompleteRequestParamsSchema:()=>lp,CompleteRequestSchema:()=>up,CompleteResultSchema:()=>dp,ContentBlockSchema:()=>df,CreateMessageRequestParamsSchema:()=>Rf,CreateMessageRequestSchema:()=>zf,CreateMessageResultSchema:()=>Bf,CreateMessageResultWithToolsSchema:()=>Vf,CreateTaskResultSchema:()=>yp,CursorSchema:()=>Iu,DiscoverRequestSchema:()=>pd,DiscoverResultSchema:()=>md,ElicitRequestFormParamsSchema:()=>ep,ElicitRequestParamsSchema:()=>np,ElicitRequestSchema:()=>rp,ElicitRequestURLParamsSchema:()=>tp,ElicitResultSchema:()=>op,ElicitationCompleteNotificationParamsSchema:()=>ip,ElicitationCompleteNotificationSchema:()=>ap,EmbeddedResourceSchema:()=>lf,EmptyResultSchema:()=>Zu,EnumSchemaSchema:()=>Qf,GetPromptRequestParamsSchema:()=>nf,GetPromptRequestSchema:()=>rf,GetPromptResultSchema:()=>pf,GetTaskPayloadRequestSchema:()=>wp,GetTaskPayloadResultSchema:()=>Tp,GetTaskRequestSchema:()=>Sp,GetTaskResultSchema:()=>Cp,IconSchema:()=>ed,IconsSchema:()=>td,ImageContentSchema:()=>of,ImplementationSchema:()=>rd,InitializeRequestParamsSchema:()=>cd,InitializeRequestSchema:()=>ld,InitializeResultSchema:()=>dd,InitializedNotificationSchema:()=>fd,JSONArraySchema:()=>Pu,JSONObjectSchema:()=>H,JSONRPCErrorResponseSchema:()=>Ju,JSONRPCMessageSchema:()=>Yu,JSONRPCNotificationSchema:()=>Ku,JSONRPCRequestSchema:()=>Gu,JSONRPCResponseSchema:()=>Xu,JSONRPCResultResponseSchema:()=>qu,JSONValueSchema:()=>Nu,LegacyTitledEnumSchemaSchema:()=>qf,ListChangedOptionsBaseSchema:()=>Tf,ListPromptsRequestSchema:()=>ef,ListPromptsResultSchema:()=>tf,ListResourceTemplatesRequestSchema:()=>Md,ListResourceTemplatesResultSchema:()=>Nd,ListResourcesRequestSchema:()=>Ad,ListResourcesResultSchema:()=>jd,ListRootsRequestSchema:()=>pp,ListRootsResultSchema:()=>mp,ListTasksRequestSchema:()=>Ep,ListTasksResultSchema:()=>Dp,ListToolsRequestSchema:()=>vf,ListToolsResultSchema:()=>yf,LoggingLevelSchema:()=>Ef,LoggingMessageNotificationParamsSchema:()=>kf,LoggingMessageNotificationSchema:()=>Af,ModelHintSchema:()=>jf,ModelPreferencesSchema:()=>Mf,MultiSelectEnumSchemaSchema:()=>Zf,NotificationSchema:()=>Hu,NotificationsParamsSchema:()=>Vu,NumberSchemaSchema:()=>Wf,PaginatedRequestParamsSchema:()=>yd,PaginatedRequestSchema:()=>bd,PaginatedResultSchema:()=>xd,PingRequestSchema:()=>hd,PrimitiveSchemaDefinitionSchema:()=>$f,ProgressNotificationParamsSchema:()=>_d,ProgressNotificationSchema:()=>vd,ProgressSchema:()=>gd,ProgressTokenSchema:()=>Fu,PromptArgumentSchema:()=>Qd,PromptListChangedNotificationSchema:()=>mf,PromptMessageSchema:()=>ff,PromptReferenceSchema:()=>cp,PromptSchema:()=>$d,ReadResourceRequestParamsSchema:()=>Fd,ReadResourceRequestSchema:()=>Id,ReadResourceResultSchema:()=>Ld,RelatedTaskMetadataSchema:()=>Ru,RequestIdSchema:()=>Wu,RequestMetaSchema:()=>zu,RequestSchema:()=>W,ResourceContentsSchema:()=>Sd,ResourceLinkSchema:()=>uf,ResourceListChangedNotificationSchema:()=>Rd,ResourceRequestParamsSchema:()=>Pd,ResourceSchema:()=>Od,ResourceTemplateReferenceSchema:()=>sp,ResourceTemplateSchema:()=>kd,ResourceUpdatedNotificationParamsSchema:()=>Xd,ResourceUpdatedNotificationSchema:()=>Zd,ResultMetaObjectSchema:()=>Uu,ResultSchema:()=>G,RoleSchema:()=>Ed,RootSchema:()=>fp,RootsListChangedNotificationSchema:()=>hp,SamplingContentSchema:()=>Ff,SamplingMessageContentBlockSchema:()=>If,SamplingMessageSchema:()=>Lf,ServerCapabilitiesSchema:()=>ud,ServerNotificationSchema:()=>Pp,ServerRequestSchema:()=>Np,ServerResultSchema:()=>Fp,ServerTasksCapabilitySchema:()=>od,SetLevelRequestParamsSchema:()=>Df,SetLevelRequestSchema:()=>Of,SingleSelectEnumSchemaSchema:()=>Jf,StringSchemaSchema:()=>Uf,SubscribeRequestParamsSchema:()=>zd,SubscribeRequestSchema:()=>Bd,SubscriptionFilterSchema:()=>Ud,SubscriptionsAcknowledgedNotificationParamsSchema:()=>Kd,SubscriptionsAcknowledgedNotificationSchema:()=>qd,SubscriptionsListenRequestParamsSchema:()=>Wd,SubscriptionsListenRequestSchema:()=>Gd,SubscriptionsListenResultMetaSchema:()=>Jd,SubscriptionsListenResultSchema:()=>Yd,TaskAugmentedRequestParamsSchema:()=>Bu,TaskCreationParamsSchema:()=>gp,TaskMetadataSchema:()=>Lu,TaskSchema:()=>vp,TaskStatusNotificationParamsSchema:()=>bp,TaskStatusNotificationSchema:()=>xp,TaskStatusSchema:()=>_p,TextContentSchema:()=>af,TextResourceContentsSchema:()=>Cd,TitledMultiSelectEnumSchemaSchema:()=>Xf,TitledSingleSelectEnumSchemaSchema:()=>Kf,ToolAnnotationsSchema:()=>hf,ToolChoiceSchema:()=>Nf,ToolExecutionSchema:()=>gf,ToolListChangedNotificationSchema:()=>wf,ToolResultContentSchema:()=>Pf,ToolSchema:()=>_f,ToolUseContentSchema:()=>cf,UnsubscribeRequestParamsSchema:()=>Vd,UnsubscribeRequestSchema:()=>Hd,UntitledMultiSelectEnumSchemaSchema:()=>Yf,UntitledSingleSelectEnumSchemaSchema:()=>Gf}),Eh=e=>Gu.safeParse(e).success,Dh=e=>Ku.safeParse(e).success,Oh=e=>qu.safeParse(e).success,kh=e=>Ju.safeParse(e).success;Y.InvalidRequest,Y.UnsupportedProtocolVersion,Y.InvalidParams,Y.MethodNotFound,Y.InvalidParams,Y.MissingRequiredClientCapability,Y.ParseError,Y.InvalidRequest,Y.MethodNotFound,Y.UnsupportedProtocolVersion,Y.MissingRequiredClientCapability;function Ah(e,t){return hs(e,t)}function jh(e){return new Set(e.flatMap(e=>Object.keys(e.shape)))}function Mh(e){if(e==null)return!1;let t=typeof e;return t!==`object`&&t!==`function`||!(`~standard`in e)?!1:typeof e[`~standard`]?.validate==`function`}var Nh=!1,Ph=`draft-2020-12`;function Fh(e,t=`input`){let n=e[`~standard`],r;if(n.jsonSchema)r=n.jsonSchema[t]({target:Ph});else if(n.vendor===`zod`){if(!(`_zod`in e))throw Error(`Schema appears to be from zod 3, which the SDK cannot convert to JSON Schema. Upgrade to zod >=4.2.0, or wrap your JSON Schema with fromJsonSchema().`);Nh||(Nh=!0,console.warn("[mcp-sdk] Your zod version does not implement `~standard.jsonSchema` (added in zod 4.2.0). Falling back to z.toJSONSchema(). Upgrade to zod >=4.2.0 to silence this warning.")),r=ts(e,{target:Ph,io:t})}else throw Error(`Schema library "${n.vendor}" does not implement StandardJSONSchemaV1 (\`~standard.jsonSchema\`). Upgrade to a version that does, or wrap your JSON Schema with fromJsonSchema().`);if(t===`output`)return r.type===void 0&&Ih(r)?{type:`object`,...r}:r;if(r.type!==void 0&&r.type!==`object`)throw Error(`MCP tool and prompt schemas must describe objects (got type: ${JSON.stringify(r.type)}). Wrap your schema in z.object({...}) or equivalent.`);return{type:`object`,...r}}function Ih(e){if(`properties`in e||`patternProperties`in e||`additionalProperties`in e||`required`in e)return!0;for(let t of[`oneOf`,`anyOf`,`allOf`]){let n=e[t];if(Array.isArray(n)&&n.length>0)return n.every(e=>typeof e==`object`&&!!e&&(e.type===`object`||Ih(e)))}return!1}function Lh(e){return e.path?.length?`${e.path.map(e=>String(typeof e==`object`?e.key:e)).join(`.`)}: ${e.message}`:e.message}async function Rh(e,t){let n=await e[`~standard`].validate(t);return n.issues&&n.issues.length>0?{success:!1,error:n.issues.map(e=>Lh(e)).join(`, `)}:{success:!0,data:n.value}}function zh(e){let t=ts(e,{target:Ph,io:`input`});return typeof t.pattern==`string`?t.pattern:void 0}var Bh=/\\\.\\d\{(\d+)\}/;function Vh(e){let t=Bh.exec(e),n=[void 0,-1,0];return t&&n.push(Number(t[1])),[!1,!0].flatMap(e=>[!1,!0].flatMap(t=>n.map(n=>as({local:e,offset:t,precision:n}))))}function Hh(e,t){let n;switch(e){case`email`:n=[js()];break;case`uri`:n=[Bs()];break;case`date`:n=[ss()];break;case`date-time`:n=Vh(t);break}return new Set(n.map(e=>zh(e)).filter(e=>e!==void 0))}function Uh(e,t,n){return n!==`zod`||Hh(e,t).has(t)}function Wh(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function Gh(e){try{return Fh(e,`input`)}catch(e){let t=e instanceof Error?e.message:String(e);throw new X(Y.InvalidParams,`Elicitation requestedSchema must describe an object with flat primitive properties: ${t}`)}}var Kh=new Set([`$comment`,`deprecated`,`description`,`examples`,`readOnly`,`title`,`writeOnly`]);function qh(e){return Kh.has(e)||e.startsWith(`x-`)}var Jh=new Set([`$schema`,...Object.keys(ep.shape.requestedSchema.shape)]),Yh={string:jh([Uf,Gf,Kf,qf]),number:jh([Wf]),integer:jh([Wf]),boolean:jh([Hf]),array:jh([Yf,Xf])},Xh=new Set(Uf.shape.format.unwrap().options);function Zh(e,t,n,r){if(!Wh(e))return e;let i=typeof e.type==`string`&&Object.hasOwn(Yh,e.type)?Yh[e.type]:void 0;if(i===void 0)return e;let a={};for(let[o,s]of Object.entries(e))i.has(o)||qh(o)?a[o]=s:o===`pattern`&&e.type===`string`&&typeof e.format==`string`?Xh.has(e.format)?(typeof s!=`string`||!Uh(e.format,s,n))&&r.push(`${t}.${o}`):a[o]=s:r.push(`${t}.${o}`);return a}function Qh(e,t){let n={},r=[];for(let[i,a]of Object.entries(e))i===`properties`&&Wh(a)?n[i]=Object.fromEntries(Object.entries(a).map(([e,n])=>[e,Zh(n,`properties.${e}`,t,r)])):Jh.has(i)?n[i]=a:qh(i)||r.push(i);if(r.length>0)throw new X(Y.InvalidParams,`Elicitation requestedSchema contains unsupported JSON Schema constraint(s) after Standard Schema conversion: ${r.join(`, `)}`);return n}function $h(e,t){if(!Wh(e.properties))return t;let n=Object.entries(e.properties).filter(([,e])=>!Ah($f,e).success).map(([e])=>`properties.${e}`);return n.length>0?n.join(`, `):t}function eg(e,t,n=``){return Array.isArray(e)&&Array.isArray(t)?e.flatMap((e,r)=>eg(e,t[r],`${n}[${r}]`)):!Wh(e)||!Wh(t)?[]:Object.entries(e).flatMap(([e,r])=>{let i=n?`${n}.${e}`:e;return Object.prototype.hasOwnProperty.call(t,e)?eg(r,t[e],i):qh(e)?[]:[i]})}function tg(e){if(!Mh(e.requestedSchema))return{...e,mode:`form`,requestedSchema:e.requestedSchema};let t=e.requestedSchema[`~standard`].vendor,n=Qh(Gh(e.requestedSchema),t),r=Ah(ep.shape.requestedSchema,n);if(!r.success)throw new X(Y.InvalidParams,`Elicitation requestedSchema only supports flat primitive properties (string, number, integer, boolean, and string enums): ${$h(n,r.error.message)}`);let i=eg(n,r.data);if(i.length>0)throw new X(Y.InvalidParams,`Elicitation requestedSchema contains unsupported JSON Schema constraint(s) after Standard Schema conversion: ${i.join(`, `)}`);let a=(r.data.required??[]).filter(e=>!Object.prototype.hasOwnProperty.call(r.data.properties,e));if(a.length>0)throw new X(Y.InvalidParams,`Elicitation requestedSchema lists required properties that are not defined in properties: ${a.join(`, `)}`);return{...e,mode:`form`,requestedSchema:r.data}}function ng(e){let t=e.inputRequests!==void 0&&Object.keys(e.inputRequests).length>0,n=typeof e.requestState==`string`;if(!t&&!n)throw TypeError(`inputRequired() requires at least one of inputRequests (with at least one entry) or requestState (spec: every InputRequiredResult MUST include at least one of the two)`);return{resultType:`input_required`,...e.inputRequests!==void 0&&{inputRequests:e.inputRequests},...e.requestState!==void 0&&{requestState:e.requestState}}}Object.assign(ng,{elicit(e){try{return{method:`elicitation/create`,params:tg(e)}}catch(e){throw e instanceof X?TypeError(e.message,{cause:e}):e}},elicitUrl(e){return{method:`elicitation/create`,params:{...e,mode:`url`}}},createMessage(e){return{method:`sampling/createMessage`,params:e}},listRoots(){return{method:`roots/list`}}});var rg=`AnnotationsSchema.AudioContentSchema.BaseMetadataSchema.BlobResourceContentsSchema.BooleanSchemaSchema.CallToolRequestSchema.CallToolRequestParamsSchema.CallToolResultSchema.CancelledNotificationSchema.CancelledNotificationParamsSchema.CancelTaskRequestSchema.CancelTaskResultSchema.ClientCapabilitiesSchema.ClientNotificationSchema.ClientRequestSchema.ClientResultSchema.CompatibilityCallToolResultSchema.CompleteRequestSchema.CompleteRequestParamsSchema.CompleteResultSchema.ContentBlockSchema.CreateMessageRequestSchema.CreateMessageRequestParamsSchema.CreateMessageResultSchema.CreateMessageResultWithToolsSchema.CreateTaskResultSchema.CursorSchema.DiscoverRequestSchema.DiscoverResultSchema.ElicitationCompleteNotificationSchema.ElicitationCompleteNotificationParamsSchema.ElicitRequestSchema.ElicitRequestFormParamsSchema.ElicitRequestParamsSchema.ElicitRequestURLParamsSchema.ElicitResultSchema.EmbeddedResourceSchema.EmptyResultSchema.EnumSchemaSchema.GetPromptRequestSchema.GetPromptRequestParamsSchema.GetPromptResultSchema.GetTaskPayloadRequestSchema.GetTaskPayloadResultSchema.GetTaskRequestSchema.GetTaskResultSchema.IconSchema.IconsSchema.ImageContentSchema.ImplementationSchema.InitializedNotificationSchema.InitializeRequestSchema.InitializeRequestParamsSchema.InitializeResultSchema.JSONArraySchema.JSONObjectSchema.JSONRPCErrorResponseSchema.JSONRPCMessageSchema.JSONRPCNotificationSchema.JSONRPCRequestSchema.JSONRPCResponseSchema.JSONRPCResultResponseSchema.JSONValueSchema.LegacyTitledEnumSchemaSchema.ListPromptsRequestSchema.ListPromptsResultSchema.ListResourcesRequestSchema.ListResourcesResultSchema.ListResourceTemplatesRequestSchema.ListResourceTemplatesResultSchema.ListRootsRequestSchema.ListRootsResultSchema.ListTasksRequestSchema.ListTasksResultSchema.ListToolsRequestSchema.ListToolsResultSchema.LoggingLevelSchema.LoggingMessageNotificationSchema.LoggingMessageNotificationParamsSchema.ModelHintSchema.ModelPreferencesSchema.MultiSelectEnumSchemaSchema.NotificationSchema.NumberSchemaSchema.PaginatedRequestSchema.PaginatedRequestParamsSchema.PaginatedResultSchema.PingRequestSchema.PrimitiveSchemaDefinitionSchema.ProgressSchema.ProgressNotificationSchema.ProgressNotificationParamsSchema.ProgressTokenSchema.PromptSchema.PromptArgumentSchema.PromptListChangedNotificationSchema.PromptMessageSchema.PromptReferenceSchema.ReadResourceRequestSchema.ReadResourceRequestParamsSchema.ReadResourceResultSchema.RelatedTaskMetadataSchema.RequestSchema.RequestIdSchema.RequestMetaSchema.ResourceSchema.ResourceContentsSchema.ResourceLinkSchema.ResourceListChangedNotificationSchema.ResourceRequestParamsSchema.ResourceTemplateSchema.ResourceTemplateReferenceSchema.ResourceUpdatedNotificationSchema.ResourceUpdatedNotificationParamsSchema.ResultMetaObjectSchema.ResultSchema.RoleSchema.RootSchema.RootsListChangedNotificationSchema.SamplingContentSchema.SamplingMessageSchema.SamplingMessageContentBlockSchema.ServerCapabilitiesSchema.ServerNotificationSchema.ServerRequestSchema.ServerResultSchema.SetLevelRequestSchema.SetLevelRequestParamsSchema.SingleSelectEnumSchemaSchema.StringSchemaSchema.SubscribeRequestSchema.SubscribeRequestParamsSchema.SubscriptionFilterSchema.SubscriptionsAcknowledgedNotificationSchema.SubscriptionsAcknowledgedNotificationParamsSchema.SubscriptionsListenRequestSchema.SubscriptionsListenRequestParamsSchema.SubscriptionsListenResultSchema.SubscriptionsListenResultMetaSchema.TaskAugmentedRequestParamsSchema.TaskCreationParamsSchema.TaskMetadataSchema.TaskSchema.TaskStatusSchema.TaskStatusNotificationSchema.TaskStatusNotificationParamsSchema.TextContentSchema.TextResourceContentsSchema.TitledMultiSelectEnumSchemaSchema.TitledSingleSelectEnumSchemaSchema.ToolSchema.ToolAnnotationsSchema.ToolChoiceSchema.ToolExecutionSchema.ToolListChangedNotificationSchema.ToolResultContentSchema.ToolUseContentSchema.UnsubscribeRequestSchema.UnsubscribeRequestParamsSchema.UntitledMultiSelectEnumSchemaSchema.UntitledSingleSelectEnumSchemaSchema`.split(`.`),ig={IdJagTokenExchangeResponseSchema:Vp,OAuthClientInformationFullSchema:Kp,OAuthClientInformationSchema:Gp,OAuthClientMetadataSchema:Wp,OAuthClientRegistrationErrorSchema:qp,OAuthErrorResponseSchema:Hp,OAuthMetadataSchema:Lp,OAuthProtectedResourceMetadataSchema:Ip,OAuthTokenRevocationRequestSchema:Jp,OAuthTokensSchema:Bp,OpenIdProviderDiscoveryMetadataSchema:zp,OpenIdProviderMetadataSchema:Rp},ag={},og={};function sg(e,t){let n=e.slice(0,-6);ag[n]=t,og[n]=e=>t.safeParse(e).success}for(let e of rg)sg(e,Th[e]);for(let[e,t]of Object.entries(ig))sg(e,t);Object.freeze(ag),Object.freeze(og);function cg(e){switch(e){case`initialize`:case`notifications/initialized`:return bh(void 0);case`server/discover`:return bh(yh);default:return}}var lg=[Du,Ou,Au,Mu],ug=[`inputResponses`,`requestState`];function dg(e,t){let n=e.params;if(!gg(n))return{message:e,lifted:{}};let r=n._meta,i=gg(r)?lg.filter(e=>e in r):[],a=t===`request`?ug.filter(e=>e in n):[];if(i.length===0&&a.length===0)return{message:e,lifted:{}};let o={},s={...n};if(i.length>0&&gg(r)){let e={},t={...r};for(let n of i)e[n]=r[n],delete t[n];o.envelope=e,Object.keys(t).length>0?s._meta=t:delete s._meta}for(let e of a)e===`inputResponses`&&(o.inputResponses=s[e]),e===`requestState`&&(o.requestState=s[e]),delete s[e];return{message:{...e,params:s},lifted:o}}function fg(e,t){let n=e.validateResult(t,void 0);if(!(!n.ok&&n.reason===`not-in-era`))return{"~standard":{version:1,vendor:`mcp-wire-codec`,validate(n){let r=e.validateResult(t,n);return r.ok?{value:r.value}:{issues:[{message:r.reason===`invalid`?r.message:`not-in-era: ${t}`}]}}}}}function pg(e){return()=>e}var mg=pg(void 0),hg=class{_transport;_requestMessageId=0;_requestHandlers=new Map;_requestHandlerAbortControllers=new Map;_notificationHandlers=new Map;_responseHandlers=new Map;_progressHandlers=new Map;_timeoutInfo=new Map;_pendingDebouncedNotifications=new Set;_negotiatedProtocolVersion;_supportedProtocolVersions;onclose;onerror;fallbackRequestHandler;fallbackNotificationHandler;constructor(e){this._options=e,this._supportedProtocolVersions=e?.supportedProtocolVersions??Tu,this.setNotificationHandler(`notifications/cancelled`,e=>{this._oncancel(e)}),this.setNotificationHandler(`notifications/progress`,e=>{this._onprogress(e)}),this.setRequestHandler(`ping`,e=>({}))}_shouldDropInbound(e){}_outboundMetaEnvelope(){}_envelopeOutbound(e){let t=this._outboundMetaEnvelope();if(t===void 0)return e;let n=e.params??{};return{...e,params:{...n,_meta:{...t,...n._meta}}}}_resolveNonCompleteResult(e,t){return Promise.reject(new J(q.UnsupportedResultType,`Unsupported result type '${e.kind}' for ${t.request.method}`,{resultType:e.kind,method:t.request.method}))}_getRequestHandler(e){return this._requestHandlers.get(e)}async _oncancel(e){e.params.requestId&&this._requestHandlerAbortControllers.get(e.params.requestId)?.abort(e.params.reason)}_setupTimeout(e,t,n,r,i=!1){this._timeoutInfo.set(e,{timeoutId:setTimeout(r,t),startTime:Date.now(),timeout:t,maxTotalTimeout:n,resetTimeoutOnProgress:i,onTimeout:r})}_resetTimeout(e){let t=this._timeoutInfo.get(e);if(!t)return!1;let n=Date.now()-t.startTime;if(t.maxTotalTimeout&&n>=t.maxTotalTimeout)throw this._timeoutInfo.delete(e),new J(q.RequestTimeout,`Maximum total timeout exceeded`,{maxTotalTimeout:t.maxTotalTimeout,totalElapsed:n});return clearTimeout(t.timeoutId),t.timeoutId=setTimeout(t.onTimeout,t.timeout),!0}_cleanupTimeout(e){let t=this._timeoutInfo.get(e);t&&(clearTimeout(t.timeoutId),this._timeoutInfo.delete(e))}async connect(e){this._transport=e;let t=this.transport?.onclose;this._transport.onclose=()=>{try{t?.()}finally{this._onclose()}};let n=this.transport?.onerror;this._transport.onerror=e=>{n?.(e),this._onerror(e)};let r=this._transport?.onmessage;this._transport.onmessage=(e,t)=>{r?.(e,t),Oh(e)||kh(e)?this._onresponse(e):Eh(e)?this._onrequest(e,t):Dh(e)?this._onnotification(e,t):this._onerror(Error(`Unknown message type: ${JSON.stringify(e)}`))},e.setSupportedProtocolVersions?.(this._supportedProtocolVersions),await this._transport.start()}_onclose(){let e=this._responseHandlers;this._responseHandlers=new Map,this._progressHandlers.clear(),this._pendingDebouncedNotifications.clear();for(let e of this._timeoutInfo.values())clearTimeout(e.timeoutId);this._timeoutInfo.clear();let t=this._requestHandlerAbortControllers;this._requestHandlerAbortControllers=new Map;let n=new J(q.ConnectionClosed,`Connection closed`);this._transport=void 0;try{this.onclose?.()}finally{for(let t of e.values())t(n);for(let e of t.values())e.abort(n)}}_onerror(e){this.onerror?.(e)}_onnotification(e,t){let{message:n}=dg(e,`notification`),r=this._negotiatedWireCodec();if(t?.classification===void 0&&this._shouldDropInbound(e)===`drop`)return;if(t?.classification!==void 0){let e=xh(t.classification);if(e!==r.era){this._onerror(Error(`Era mismatch on inbound notification '${n.method}': classified as ${e} but this instance serves ${r.era}`));return}}if(Ch(n.method)&&!r.hasNotificationMethod(n.method))return;let i=this._notificationHandlers.get(n.method),a=this.fallbackNotificationHandler;i===void 0&&a===void 0||Promise.resolve().then(()=>i===void 0?a(n):i(n,r)).catch(e=>this._onerror(Error(`Uncaught error in notification handler: ${e}`)))}_onrequest(e,t){let{message:n,lifted:r}=dg(e,`request`),i=this._negotiatedWireCodec();if(t?.classification===void 0&&this._shouldDropInbound(e)===`drop`){this._onerror(Error(`Dropped inbound request '${e.method}': not servable on this connection's protocol era`));return}let a=this._transport,o=(e,t,r)=>{let i={jsonrpc:`2.0`,id:n.id,error:{code:e,message:t,...r!==void 0&&{data:r}}};a?.send(i).catch(e=>this._onerror(Error(`Failed to send an error response: ${e}`)))};if(t?.classification!==void 0){let e=xh(t.classification);if(e!==i.era){this._onerror(Error(`Era mismatch on inbound request '${n.method}': classified as ${e} but this instance serves ${i.era}`));let r=t.classification.revision??e;o(Y.UnsupportedProtocolVersion,`Unsupported protocol version: ${r}`,{supported:this._supportedProtocolVersions,requested:r});return}}if(Sh(n.method)&&!i.hasRequestMethod(n.method)){o(Y.MethodNotFound,`Method not found`);return}let s=this._requestHandlers.get(n.method)??this.fallbackRequestHandler;if(s===void 0){o(Y.MethodNotFound,`Method not found`);return}let c=i.checkInboundEnvelope(r);if(c!==void 0){o(Y.InvalidParams,c);return}let l=(e,t)=>this._notificationViaCodec(this._resolveOutboundCodec(e.method),e,{...t,relatedRequestId:n.id}),u=(e,t,r)=>this._requestWithSchemaViaCodec(this._resolveOutboundCodec(e.method),e,t,{...r,relatedRequestId:n.id}),d=new AbortController;this._requestHandlerAbortControllers.set(n.id,d);let f=r.inputResponses===void 0?void 0:vg(r.inputResponses),p={sessionId:a?.sessionId,mcpReq:{id:n.id,method:n.method,_meta:n.params?._meta,...r.envelope!==void 0&&{envelope:r.envelope},...f!==void 0&&{inputResponses:f.accepted},...f!==void 0&&f.droppedKeys.length>0&&{droppedInputResponseKeys:f.droppedKeys},requestState:r.requestState===void 0?mg:pg(r.requestState),signal:d.signal,send:((e,t,n)=>{let r=this._resolveOutboundCodec(e.method);if(this._assertOutboundRequestInEra(r,e.method),Mh(t))return u(e,t,n);let i=fg(r,e.method);if(i===void 0)throw TypeError(`'${e.method}' is not a spec method; pass a result schema as the second argument to ctx.mcpReq.send().`);return u(e,i,t)}),notify:l},http:t?.authInfo?{authInfo:t.authInfo}:void 0},m=this.buildContext(p,t);Promise.resolve().then(()=>s(n,m)).then(async e=>{if(d.signal.aborted)return;let t;try{t=i.encodeResult(n.method,e,this._outboundServerInfo())}catch(e){this._onerror(Error(`Failed to encode result for ${n.method}: ${e}`)),o(Y.InternalError,`Internal error`);return}let r={result:t,jsonrpc:`2.0`,id:n.id};await a?.send(r)},async e=>{if(d.signal.aborted)return;let t=Number.isSafeInteger(e.code)?e.code:Y.InternalError,r={jsonrpc:`2.0`,id:n.id,error:{code:i.encodeErrorCode(t),message:e.message??`Internal error`,...e.data!==void 0&&{data:e.data}}};await a?.send(r)}).catch(e=>this._onerror(Error(`Failed to send response: ${e}`))).finally(()=>{this._requestHandlerAbortControllers.get(n.id)===d&&this._requestHandlerAbortControllers.delete(n.id)})}_onprogress(e){let{progressToken:t,...n}=e.params,r=Number(t),i=this._progressHandlers.get(r);if(!i){this._onerror(Error(`Received a progress notification for an unknown token: ${JSON.stringify(e)}`));return}let a=this._responseHandlers.get(r),o=this._timeoutInfo.get(r);if(o&&a&&o.resetTimeoutOnProgress)try{this._resetTimeout(r)}catch(e){this._responseHandlers.delete(r),this._progressHandlers.delete(r),this._cleanupTimeout(r),a(e);return}i(n)}_onresponse(e){let t=Number(e.id),n=this._responseHandlers.get(t);if(n===void 0){this._onerror(Error(`Received a response for an unknown message ID: ${JSON.stringify(e)}`));return}this._responseHandlers.delete(t),this._cleanupTimeout(t),this._progressHandlers.delete(t),Oh(e)?n(e):n(X.fromError(e.error.code,e.error.message,e.error.data))}get transport(){return this._transport}async close(){await this._transport?.close()}request(e,t,n){let r=this._resolveOutboundCodec(e.method);if(this._assertOutboundRequestInEra(r,e.method),Mh(t))return this._requestWithSchemaViaCodec(r,e,t,n);let i=fg(r,e.method);if(i===void 0)throw TypeError(`'${e.method}' is not a spec method; pass a result schema as the second argument to request().`);return this._requestWithSchemaViaCodec(r,e,i,t)}_negotiatedWireCodec(){return bh(this._negotiatedProtocolVersion)}_wireCodec(){return this._negotiatedWireCodec()}_resolveOutboundCodec(e){if(this._negotiatedProtocolVersion===void 0){let t=cg(e);if(t)return t}return this._negotiatedWireCodec()}_assertOutboundRequestInEra(e,t){if(Sh(t)&&!e.hasRequestMethod(t))throw new J(q.MethodNotSupportedByProtocolVersion,`Method '${t}' is not supported by the negotiated protocol version (wire era ${e.era})`,{method:t,era:e.era})}_requestWithSchema(e,t,n){let r=this._resolveOutboundCodec(e.method);return this._assertOutboundRequestInEra(r,e.method),this._requestWithSchemaViaCodec(r,e,t,n)}_requestWithSchemaViaCodec(e,t,n,r){let{relatedRequestId:i,resumptionToken:a,onresumptiontoken:o,headers:s}=r??{},c=Date.now(),l,u;return new Promise((d,f)=>{let p=e=>{f(e)};if(!this._transport){p(Error(`Not connected`));return}if(this._options?.enforceStrictCapabilities===!0)try{this.assertCapabilityForMethod(t.method)}catch(e){p(e);return}if(r?.signal?.aborted){let e=r.signal.reason;throw e instanceof J?e:new J(q.RequestTimeout,String(e))}let m=e.era===`2026-07-28`&&this._transport.hasPerRequestStream===!0?new AbortController:void 0,h=this._requestMessageId++;u=h;let ee={...t,jsonrpc:`2.0`,id:h};r?.onprogress&&(this._progressHandlers.set(h,r.onprogress),ee.params={...t.params,_meta:{...t.params?._meta,progressToken:h}});let g=this._envelopeOutbound(ee),te=!1,ne=e=>{te||(this._progressHandlers.delete(h),m===void 0?this._transport?.send(this._envelopeOutbound({jsonrpc:`2.0`,method:`notifications/cancelled`,params:{requestId:h,reason:String(e)}}),{relatedRequestId:i,resumptionToken:a,onresumptiontoken:o}).catch(e=>this._onerror(Error(`Failed to send cancellation: ${e}`))):m.abort(),f(e instanceof J?e:new J(q.RequestTimeout,String(e))))};this._responseHandlers.set(h,i=>{if(r?.signal?.aborted)return;if(te=!0,i instanceof Error)return f(i);let a;try{a=e.decodeResult(t.method,i.result)}catch(e){return f(e instanceof Error?e:Error(String(e)))}if(a.kind===`invalid`)return f(a.error);if(a.kind===`input_required`){if(r?.allowInputRequired===!0)return d(yg(a));let i={codec:e,request:t,resultSchema:n,options:r,flowStartedAt:c,retry:(r,i)=>this._requestWithSchemaViaCodec(e,r===void 0?{method:t.method}:{method:t.method,params:r},n,i)};return d(this._resolveNonCompleteResult(a,i))}let o=a.result;Rh(n,o).then(e=>{e.success?d(e.data):f(new J(q.InvalidResult,`Invalid result for ${t.method}: ${e.error}`))},f)}),l=()=>ne(r?.signal?.reason),r?.signal?.addEventListener(`abort`,l,{once:!0});let re=r?.timeout??6e4;this._setupTimeout(h,re,r?.maxTotalTimeout,()=>ne(new J(q.RequestTimeout,`Request timed out`,{timeout:re})),r?.resetTimeoutOnProgress??!1),this._transport.send(g,{relatedRequestId:i,resumptionToken:a,onresumptiontoken:o,headers:s,requestSignal:m?.signal}).catch(e=>{this._progressHandlers.delete(h),f(e)})}).finally(()=>{l&&r?.signal?.removeEventListener(`abort`,l),u!==void 0&&(this._responseHandlers.delete(u),this._cleanupTimeout(u))})}async notification(e,t){return this._notificationViaCodec(this._resolveOutboundCodec(e.method),e,t)}async _notificationViaCodec(e,t,n){if(!this._transport)throw new J(q.NotConnected,`Not connected`);if(Ch(t.method)&&!e.hasNotificationMethod(t.method))throw new J(q.MethodNotSupportedByProtocolVersion,`Notification '${t.method}' is not supported by the negotiated protocol version (wire era ${e.era})`,{method:t.method,era:e.era});this.assertNotificationCapability(t.method);let r=this._envelopeOutbound({jsonrpc:`2.0`,...t});if((this._options?.debouncedNotificationMethods??[]).includes(t.method)&&!t.params&&!n?.relatedRequestId){if(this._pendingDebouncedNotifications.has(t.method))return;this._pendingDebouncedNotifications.add(t.method),Promise.resolve().then(()=>{this._pendingDebouncedNotifications.delete(t.method),this._transport&&this._transport?.send(r,n).catch(e=>this._onerror(e))});return}await this._transport.send(r,n)}setRequestHandler(e,t,n){this.assertRequestHandlerCapability(e);let r;if(typeof t==`function`){if(!Sh(e))throw TypeError(`'${e}' is not a spec request method; pass schemas as the second argument to setRequestHandler().`);r=(n,r)=>{let i=this._negotiatedWireCodec(),a=i.validateRequest(e,n);if(!a.ok&&a.reason===`not-in-era`&&(a=i.validateInputRequest(e,n)),!a.ok)throw a.reason===`not-in-era`?new X(Y.InternalError,`No wire schema for ${e} in the resolved era`):Error(a.message);return Promise.resolve(t(a.value,r))}}else if(n)r=async(r,i)=>{let a=await Rh(t.params,{...r.params});if(!a.success)throw new X(Y.InvalidParams,`Invalid params for ${e}: ${a.error}`);return n(a.data,i)};else throw TypeError(`setRequestHandler: handler is required`);this._requestHandlers.set(e,this._wrapHandler(e,r))}_wrapHandler(e,t){return t}_outboundServerInfo(){}removeRequestHandler(e){this._requestHandlers.delete(e)}assertCanSetRequestHandler(e){if(this._requestHandlers.has(e))throw Error(`A request handler for ${e} already exists, which would be overridden`)}setNotificationHandler(e,t,n){if(typeof t==`function`){if(!Ch(e))throw TypeError(`'${e}' is not a spec notification method; pass schemas as the second argument to setNotificationHandler().`);this._notificationHandlers.set(e,(n,r)=>{let i=r.validateNotification(e,n);if(!i.ok)throw i.reason===`not-in-era`?new X(Y.InternalError,`No wire schema for ${e} in the resolved era`):Error(i.message);return Promise.resolve(t(i.value))});return}if(!n)throw TypeError(`setNotificationHandler: handler is required`);this._notificationHandlers.set(e,async r=>{let i=await Rh(t.params,{...r.params});if(!i.success)throw new X(Y.InvalidParams,`Invalid params for notification ${e}: ${i.error}`);await n(i.data,r)})}removeNotificationHandler(e){this._notificationHandlers.delete(e)}};function gg(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function _g(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function vg(e){let t={},n=[];if(!_g(e))return{accepted:t,droppedKeys:n};for(let[r,i]of Object.entries(e)){if(!_g(i)||`method`in i||`result`in i){n.push(r);continue}t[r]=i}return{accepted:t,droppedKeys:n}}function yg(e){return{resultType:`input_required`,inputRequests:e.inputRequests,...e.requestState!==void 0&&{requestState:e.requestState}}}r((e=>{var t=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,n=/\\([\u000b\u0020-\u00ff])/g,r=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;e.parse=i;function i(e){if(!e)throw TypeError(`argument string is required`);var i=typeof e==`object`?a(e):e;if(typeof i!=`string`)throw TypeError(`argument string is required to be a string`);var s=i.indexOf(`;`),c=s===-1?i.trim():i.slice(0,s).trim();if(!r.test(c))throw TypeError(`invalid media type`);var l=new o(c.toLowerCase());if(s!==-1){var u,d,f;for(t.lastIndex=s;d=t.exec(i);){if(d.index!==s)throw TypeError(`invalid parameter format`);s+=d[0].length,u=d[1].toLowerCase(),f=d[2],f.charCodeAt(0)===34&&(f=f.slice(1,-1),f.indexOf(`\\`)!==-1&&(f=f.replace(n,`$1`))),l.parameters[u]=f}if(s!==i.length)throw TypeError(`invalid parameter format`)}return l}function a(e){var t;if(typeof e.getHeader==`function`?t=e.getHeader(`content-type`):typeof e.headers==`object`&&(t=e.headers&&e.headers[`content-type`]),typeof t!=`string`)throw TypeError(`content-type header is missing from object`);return t}function o(e){this.parameters=Object.create(null),this.type=e}}))(),typeof self<`u`&&self.location&&self.location.origin!==`null`?new URL(self.location.origin+self.location.pathname+location.search):new URL(`https://github.com/cfworker`);var bg=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i,xg=/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,Sg=/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,Cg=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,wg=/^(?:(?:https?|ftp):\/\/)(?:\S+(?::\S*)?@)?(?:(?!10(?:\.\d{1,3}){3})(?!127(?:\.\d{1,3}){3})(?!169\.254(?:\.\d{1,3}){2})(?!192\.168(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u{00a1}-\u{ffff}0-9]+-?)*[a-z\u{00a1}-\u{ffff}0-9]+)(?:\.(?:[a-z\u{00a1}-\u{ffff}0-9]+-?)*[a-z\u{00a1}-\u{ffff}0-9]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,Tg=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,Eg=/^(?:\/(?:[^~/]|~0|~1)*)*$/,Dg=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,Og=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,kg=/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,Ag=/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i;function jg(e){return e.test.bind(e)}Mg.bind(void 0,!1),jg(Sg),jg(Cg),jg(wg),jg(xg),jg(kg),jg(Ag),jg(Tg),jg(Eg),jg(Dg),jg(Og);function Mg(e,t){let n=t.match(bg);if(!n)return!1;let r=+n[1],i=+n[2],a=+n[3],o=!!n[5];return(r<=23&&i<=59&&a<=59||r==23&&i==59&&a==60)&&(!e||o)}globalThis.crypto;var Ng=class extends Error{static{Object.defineProperty(this,"mcpBrand",{value:`mcp.OAuthClientFlowError`})}static[Symbol.hasInstance](e){return Zp(this,e)}static isInstance(e){if(typeof this!=`function`)throw TypeError("isInstance must be called on the class (e.g. `SdkError.isInstance(value)`); for callbacks use `v => SdkError.isInstance(v)`");return Zp(this,e)}constructor(e){super(e),this.name=new.target.name,Xp(this,new.target)}};(class extends Ng{static{Object.defineProperty(this,"mcpBrand",{value:`mcp.IssuerMismatchError`})}kind;expected;received;constructor(e,t,n){super(`Issuer mismatch in ${e===`metadata`?`authorization server metadata (RFC 8414 §3.3)`:`authorization response (RFC 9207)`}: expected ${JSON.stringify(t)}, received ${JSON.stringify(n)}`),this.kind=e,this.expected=t,this.received=n}}),class extends Ng{static{Object.defineProperty(this,"mcpBrand",{value:`mcp.RegistrationRejectedError`})}status;body;submittedMetadata;constructor(e){super(`Dynamic Client Registration rejected (HTTP ${e.status}): ${e.body}`),this.status=e.status,this.body=e.body,this.submittedMetadata=e.submittedMetadata}},class extends Ng{static{Object.defineProperty(this,"mcpBrand",{value:`mcp.InsecureTokenEndpointError`})}tokenEndpoint;constructor(e){super(`Refusing to send credentials to non-https token endpoint '${e}'. OAuth token requests MUST use TLS (localhost / 127.0.0.1 / ::1 are exempt).`),this.tokenEndpoint=e}},class extends Ng{static{Object.defineProperty(this,"mcpBrand",{value:`mcp.AuthorizationServerMismatchError`})}constructor(e,t){super(`Authorization server changed between redirect and callback (redirected to ${JSON.stringify(e)}, callback resolved ${JSON.stringify(t)}); refusing to send authorization_code/code_verifier to a different token endpoint`),this.recordedIssuer=e,this.currentIssuer=t}},class extends Ng{static{Object.defineProperty(this,"mcpBrand",{value:`mcp.InsufficientScopeError`})}requiredScope;resourceMetadataUrl;errorDescription;constructor(e){super(`Insufficient scope${e.requiredScope?`: required "${e.requiredScope}"`:``}`),this.requiredScope=e.requiredScope,this.resourceMetadataUrl=e.resourceMetadataUrl,this.errorDescription=e.errorDescription}},class extends Error{static{Object.defineProperty(this,"mcpBrand",{value:`mcp.UnauthorizedError`})}static[Symbol.hasInstance](e){return Zp(this,e)}static isInstance(e){if(typeof this!=`function`)throw TypeError("isInstance must be called on the class (e.g. `SdkError.isInstance(value)`); for callbacks use `v => SdkError.isInstance(v)`");return Zp(this,e)}constructor(e){super(e??`Unauthorized`),this.name=`UnauthorizedError`,Xp(this,new.target)}},class extends Error{static{Object.defineProperty(this,"mcpBrand",{value:`mcp.SseError`})}static[Symbol.hasInstance](e){return Zp(this,e)}static isInstance(e){if(typeof this!=`function`)throw TypeError("isInstance must be called on the class (e.g. `SdkError.isInstance(value)`); for callbacks use `v => SdkError.isInstance(v)`");return Zp(this,e)}constructor(e,t,n){super(`SSE error: ${t}`),this.code=e,this.event=n,Xp(this,new.target)}};var Pg=`2026-01-26`,Fg=N({}).passthrough(),Ig=N({arguments:I(D(),j()).optional()}).passthrough(),Lg=N({reason:D().optional()}).passthrough(),Rg=N({theme:L([`light`,`dark`]).optional(),displayMode:L([`inline`,`fullscreen`,`pip`]).optional(),availableDisplayModes:M(L([`inline`,`fullscreen`,`pip`])).optional(),styles:N({variables:I(D(),F([D(),Vc()])).optional(),css:N({fonts:D().optional()}).passthrough().optional()}).passthrough().optional(),safeAreaInsets:N({top:k(),right:k(),bottom:k(),left:k()}).optional()}).passthrough(),zg=N({protocolVersion:D(),hostInfo:N({name:D(),version:D()}).passthrough(),hostCapabilities:I(D(),j()),hostContext:Rg}).passthrough(),Bg=N({mode:L([`inline`,`fullscreen`,`pip`])}).passthrough(),Vg=N({}).passthrough(),Hg=class{eventTarget;eventSource;onclose;onerror;onmessage;sessionId;setProtocolVersion;setSupportedProtocolVersions;started=!1;messageListener=e=>{if(e.source!==this.eventSource)return;let t=Yu.safeParse(e.data);if(t.success){this.onmessage?.(t.data);return}e.data?.jsonrpc===`2.0`&&this.onerror?.(Error(`Invalid JSON-RPC message received from the MCP App host.`))};constructor(e=window.parent,t=window.parent){this.eventTarget=e,this.eventSource=t}async start(){if(this.started)throw Error(`PostMessageTransport is already started.`);this.started=!0,window.addEventListener(`message`,this.messageListener)}async send(e,t){this.eventTarget.postMessage(e,`*`)}async close(){this.started&&(this.started=!1,window.removeEventListener(`message`,this.messageListener),this.onclose?.())}},Ug=class extends hg{appInfo;capabilities;ontoolinput;ontoolresult;ontoolcancelled;onhostcontextchanged;onteardown;hostContext;hostCapabilities;resizeObserver;resizeFrame;lastWidth=0;lastHeight=0;constructor(e,t={}){super(),this.appInfo=e,this.capabilities=t,this.setRequestHandler(`ping`,{params:Fg,result:Vg},()=>({})),this.setNotificationHandler(`ui/notifications/tool-input`,{params:Ig},e=>this.ontoolinput?.(e)),this.setNotificationHandler(`ui/notifications/tool-result`,{params:bf},e=>this.ontoolresult?.(e)),this.setNotificationHandler(`ui/notifications/tool-cancelled`,{params:Lg},e=>this.ontoolcancelled?.(e)),this.setNotificationHandler(`ui/notifications/host-context-changed`,{params:Rg},e=>{this.hostContext={...this.hostContext,...e},this.onhostcontextchanged?.(e)}),this.setRequestHandler(`ui/resource-teardown`,{params:Fg,result:Vg},(e,t)=>this.onteardown?.(e,t)??{})}buildContext(e){return e}assertCapabilityForMethod(e){}assertNotificationCapability(e){}assertRequestHandlerCapability(e){}getHostContext(){return this.hostContext}getHostCapabilities(){return this.hostCapabilities}async callServerTool(e,t){return this.request({method:`tools/call`,params:e},bf,{onprogress:()=>{},resetTimeoutOnProgress:!0,...t})}async requestDisplayMode(e,t){return this.request({method:`ui/request-display-mode`,params:e},Bg,t)}async connect(e=new Hg,t){await super.connect(e);try{let e=await this.request({method:`ui/initialize`,params:{appCapabilities:this.capabilities,appInfo:this.appInfo,protocolVersion:Pg}},zg,t);this.hostCapabilities=e.hostCapabilities,this.hostContext=e.hostContext,await this.notification({method:`ui/notifications/initialized`}),this.startAutoResize()}catch(e){try{await this.close()}catch(t){throw AggregateError([e,t],`MCP App initialization and cleanup failed.`)}throw e}}async close(){this.resizeObserver?.disconnect(),this.resizeObserver=void 0,this.resizeFrame!==void 0&&cancelAnimationFrame(this.resizeFrame),this.resizeFrame=void 0,this.lastWidth=0,this.lastHeight=0,await super.close()}startAutoResize(){if(typeof ResizeObserver>`u`)return;let e=()=>{this.resizeFrame===void 0&&(this.resizeFrame=requestAnimationFrame(()=>{this.resizeFrame=void 0;let e=document.documentElement,t=e.style.height;e.style.height=`max-content`;let n=Math.ceil(window.innerWidth),r=Math.ceil(e.getBoundingClientRect().height);e.style.height=t,!(n===this.lastWidth&&r===this.lastHeight)&&(this.lastWidth=n,this.lastHeight=r,this.notification({method:`ui/notifications/size-changed`,params:{width:n,height:r}}).catch(e=>{this.onerror?.(e instanceof Error?e:Error(String(e)))}))}))};this.resizeObserver=new ResizeObserver(e),this.resizeObserver.observe(document.documentElement),this.resizeObserver.observe(document.body),e()}};function Wg(e){document.documentElement.dataset.theme=e,document.documentElement.style.colorScheme=e}function Gg(e,t=document.documentElement){for(let[n,r]of Object.entries(e))n.startsWith(`--`)&&r!==void 0&&t.style.setProperty(n,r)}function Kg(e){if(document.getElementById(`__mcp-host-fonts`))return;let t=document.createElement(`style`);t.id=`__mcp-host-fonts`,t.textContent=e,document.head.appendChild(t)}var qg={name:`qyl-mcp-server`,version:`1.1.2`,type:`module`,description:`qyl telemetry MCP Apps server: trace explorer and MCP dashboard for a live collector or explicit demo mode`,repository:{type:`git`,url:`https://github.com/ANcpLua/qyl.mcp`,directory:`server`},license:`MIT`,main:`dist/server.js`,types:`dist/server.d.ts`,exports:{".":{types:`./dist/server.d.ts`,default:`./dist/server.js`},"./contract-validation":{types:`./dist/contract-validation.d.ts`,default:`./dist/contract-validation.js`},"./secret-redactor":{types:`./dist/secret-redactor.d.ts`,default:`./dist/secret-redactor.js`},"./atomic-json-store":{types:`./dist/atomic-json-store.d.ts`,default:`./dist/atomic-json-store.js`},"./execution-evidence":{types:`./dist/execution-evidence.d.ts`,default:`./dist/execution-evidence.js`},"./execution-result":{types:`./dist/execution-result.d.ts`,default:`./dist/execution-result.js`},"./mcp-semconv":{types:`./dist/mcp-semconv.d.ts`,default:`./dist/mcp-semconv.js`},"./observability-suppression":{types:`./dist/observability-suppression.d.ts`,default:`./dist/observability-suppression.js`},"./telemetry":{types:`./dist/telemetry.d.ts`,default:`./dist/telemetry.js`}},bin:{"qyl-mcp-server":`dist/main.js`},files:[`dist`],scripts:{clean:`node -e "require('node:fs').rmSync('dist', { recursive: true, force: true }); require('node:fs').rmSync('dist-test', { recursive: true, force: true })"`,build:`npm run clean && tsc --noEmit && vite build --mode mcp-home && vite build --mode mcp-app && vite build --mode mcp-dashboard && vite build --mode observe-graph && tsc -p tsconfig.server.json && node -e "require('node:fs').chmodSync('dist/main.js', 0o755)"`,"verify:shapes":`node verify-generated-shapes.mjs`,"verify:readme":`node verify-package-readme.mjs`,"snapshot:tools":`npm run build && tsc -p tsconfig.test.json && node update-tool-manifest-snapshot.mjs`,test:`npm run verify:shapes && npm run verify:readme && npm run build && tsc -p tsconfig.test.json && node -e "const fs=require('node:fs'); for (const name of ['mcp-app.html','mcp-dashboard.html','observe-graph.html']) fs.copyFileSync('dist/'+name,'dist-test/'+name)" && node --test dist-test/*.test.js`,smoke:`node smoke-test.mjs`,prepack:`npm run build`},dependencies:{"@ancplua/qyl-api-schema":`5.1.0`,"@modelcontextprotocol/core":`2.0.0`,"@modelcontextprotocol/express":`2.0.0`,"@modelcontextprotocol/node":`2.0.0`,"@modelcontextprotocol/server":`2.0.0`,"@opentelemetry/api":`^1.9.1`,"@opentelemetry/api-logs":`^0.221.0`,"@opentelemetry/core":`^2.10.0`,"@opentelemetry/exporter-logs-otlp-proto":`^0.221.0`,"@opentelemetry/exporter-metrics-otlp-proto":`^0.221.0`,"@opentelemetry/exporter-trace-otlp-proto":`^0.221.0`,"@opentelemetry/resources":`^2.10.0`,"@opentelemetry/sdk-logs":`^0.221.0`,"@opentelemetry/sdk-metrics":`^2.10.0`,"@opentelemetry/sdk-trace-base":`^2.10.0`,"@opentelemetry/sdk-trace-node":`^2.10.0`,"@opentelemetry/semantic-conventions":`^1.43.0`,express:`^5.2.1`,jose:`^6.2.3`,zod:`^4.4.3`},devDependencies:{"@modelcontextprotocol/client":`2.0.0`,"@types/express":`5.0.6`,"@types/node":`26.1.1`,typescript:`7.0.2`,vite:`8.1.5`,"vite-plugin-singlefile":`2.3.3`},engines:{node:`24.x`}},Jg={$schema:`https://json-schema.org/draft/2020-12/schema`,$id:`https://qyl.dev/schema/qyl-api-schema.json`,$defs:JSON.parse(`{"Common.Attribute":{"type":"object","required":["key","value"],"properties":{"key":{"type":"string","minLength":1,"maxLength":256,"description":"Attribute key (dot-separated namespace)"},"value":{"$ref":"#/$defs/Common.AttributeValue","description":"Attribute value"}},"unevaluatedProperties":{"not":{}},"description":"Key-value attribute pair following OTel conventions"},"Common.AttributeBytesValue":{"type":"object","required":["type","base64"],"properties":{"type":{"type":"string","enum":["bytes"]},"base64":{"type":"string","contentEncoding":"base64"}},"unevaluatedProperties":{"not":{}},"description":"Base64 bytes projected by qyl without colliding with an ordinary string attribute."},"Common.AttributeDouble":{"anyOf":[{"type":"number","format":"double"},{"type":"string","enum":["NaN","Infinity","-Infinity"]}],"description":"An OTLP attribute double encoded as a JSON number when finite or a canonical named string when non-finite."},"Common.AttributeDoubleValue":{"type":"object","required":["type","value"],"properties":{"type":{"type":"string","enum":["double"]},"value":{"$ref":"#/$defs/Common.AttributeDouble"}},"unevaluatedProperties":{"not":{}},"description":"Tagged OTLP double attribute."},"Common.AttributeInt64":{"type":"string","format":"int64","description":"An OTLP signed 64-bit attribute integer encoded without JavaScript precision loss.","x-csharp-type":"long","pattern":"^(0|-?[1-9][0-9]*)$","maxLength":20},"Common.AttributeIntValue":{"type":"object","required":["type","value"],"properties":{"type":{"type":"string","enum":["int"]},"value":{"$ref":"#/$defs/Common.AttributeInt64"}},"unevaluatedProperties":{"not":{}},"description":"Tagged OTLP signed 64-bit integer attribute."},"Common.AttributeKeyValueListValue":{"type":"object","required":["type","values"],"properties":{"type":{"type":"string","enum":["kvlist"]},"values":{"type":"object","unevaluatedProperties":{"$ref":"#/$defs/Common.AttributeValue"}}},"unevaluatedProperties":{"not":{}},"description":"Tagged recursive OTLP key-value-list, distinct from other object-shaped attribute variants."},"Common.AttributeValue":{"anyOf":[{"type":"null"},{"type":"string"},{"type":"boolean"},{"$ref":"#/$defs/Common.AttributeIntValue"},{"$ref":"#/$defs/Common.AttributeDoubleValue"},{"$ref":"#/$defs/Common.AttributeBytesValue"},{"type":"array","items":{"$ref":"#/$defs/Common.AttributeValue"}},{"$ref":"#/$defs/Common.AttributeKeyValueListValue"}],"description":"Lossless JSON projection of an OpenTelemetry AnyValue attribute."},"Common.Attributes":{"type":"object","required":["items"],"properties":{"items":{"type":"array","items":{"$ref":"#/$defs/Common.Attribute"},"description":"List of key-value attributes"}},"unevaluatedProperties":{"not":{}},"description":"Collection of attributes"},"Common.ByteSize":{"type":"integer","format":"int64","minimum":0,"description":"Size in bytes","x-csharp-type":"long"},"Common.ContentType":{"type":"string","description":"MIME content type","examples":["application/json"]},"Common.ContractRevision":{"type":"string","minLength":23,"maxLength":23,"pattern":"^sha256:[a-f0-9]{16}$","description":"Deterministic revision of the generated API contract: 'sha256:' followed by the first 16 hex characters of its canonical semantic digest.","examples":["sha256:0f1e2d3c4b5a6978"]},"Common.CostUsd":{"type":"number","format":"double","minimum":0,"description":"Cost in USD (floating point)","x-csharp-type":"double"},"Common.Count":{"type":"integer","format":"int64","minimum":0,"description":"Generic non-negative counter","x-csharp-type":"long"},"Common.DurationMs":{"type":"number","format":"double","minimum":0,"description":"Duration in milliseconds","x-csharp-type":"double"},"Common.DurationNs":{"type":"string","format":"uint64","description":"Duration in nanoseconds, encoded as a decimal string","x-csharp-type":"ulong","pattern":"^(0|[1-9][0-9]*)$","maxLength":20},"Common.DurationS":{"type":"number","format":"double","minimum":0,"description":"Duration in seconds"},"Common.EntityAttributeKey":{"type":"string","minLength":1,"description":"A non-empty Resource attribute key referenced by an OpenTelemetry entity."},"Common.EntityRef":{"type":"object","required":["type","id_keys"],"properties":{"schema_url":{"type":"string","description":"Schema URL applying to the entity and its referenced Resource attributes, when known."},"type":{"type":"string","minLength":1,"description":"Stable non-empty entity type, such as service or host."},"id_keys":{"type":"array","items":{"$ref":"#/$defs/Common.EntityAttributeKey"},"minItems":1,"description":"Non-empty set of Resource attribute keys that identify the entity."},"description_keys":{"type":"array","items":{"$ref":"#/$defs/Common.EntityAttributeKey"},"description":"Resource attribute keys that describe but do not identify the entity."}},"unevaluatedProperties":{"not":{}},"description":"A reference to an OpenTelemetry entity described by attributes on the containing Resource."},"Common.Errors.ApiError":{"anyOf":[{"$ref":"#/$defs/Common.Errors.NotFoundError"},{"$ref":"#/$defs/Common.Errors.ValidationError"},{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},{"$ref":"#/$defs/Common.Errors.ForbiddenError"},{"$ref":"#/$defs/Common.Errors.ConflictError"},{"$ref":"#/$defs/Common.Errors.RateLimitError"},{"$ref":"#/$defs/Common.Errors.InternalServerError"},{"$ref":"#/$defs/Common.Errors.BadGatewayError"},{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"}],"description":"Standard error response types"},"Common.Errors.BadGatewayError":{"type":"object","required":["title"],"properties":{"title":{"type":"string","enum":["Bad Gateway"]},"dependency":{"type":"string","description":"Stable dependency category; never contains raw exception text"}},"unevaluatedProperties":{"not":{}},"allOf":[{"$ref":"#/$defs/Common.Errors.ProblemDetails"}],"description":"Upstream dependency failed while fulfilling the request (502)"},"Common.Errors.ConflictError":{"type":"object","required":["title"],"properties":{"title":{"type":"string","enum":["Conflict"]},"conflicting_resource":{"type":"string","description":"The conflicting resource ID"}},"unevaluatedProperties":{"not":{}},"allOf":[{"$ref":"#/$defs/Common.Errors.ProblemDetails"}],"description":"Conflict - resource state conflict (409)"},"Common.Errors.ForbiddenError":{"type":"object","required":["title"],"properties":{"title":{"type":"string","enum":["Forbidden"]},"required_permission":{"type":"string","description":"Required permission that is missing"}},"unevaluatedProperties":{"not":{}},"allOf":[{"$ref":"#/$defs/Common.Errors.ProblemDetails"}],"description":"Forbidden - insufficient permissions (403)"},"Common.Errors.InternalServerError":{"type":"object","required":["title"],"properties":{"title":{"type":"string","enum":["Internal Server Error"]},"error_code":{"type":"string","description":"Error code for support reference"}},"unevaluatedProperties":{"not":{}},"allOf":[{"$ref":"#/$defs/Common.Errors.ProblemDetails"}],"description":"Internal server error (500)"},"Common.Errors.NotFoundError":{"type":"object","required":["title"],"properties":{"title":{"type":"string","enum":["Not Found"]},"resource_type":{"type":"string","description":"The type of resource that was not found"},"resource_id":{"type":"string","description":"The identifier that was not found"}},"unevaluatedProperties":{"not":{}},"allOf":[{"$ref":"#/$defs/Common.Errors.ProblemDetails"}],"description":"Resource not found (404)"},"Common.Errors.ProblemDetails":{"type":"object","required":["type","title","status"],"properties":{"type":{"type":"string","format":"uri","description":"A URI reference identifying the problem type","default":"about:blank"},"title":{"type":"string","description":"A short, human-readable summary of the problem type"},"status":{"type":"integer","format":"int32","description":"The HTTP status code (informational only, actual code set by subtype)"},"detail":{"type":"string","description":"A human-readable explanation specific to this occurrence"},"instance":{"type":"string","format":"uri","description":"A URI reference identifying the specific occurrence"},"timestamp":{"type":"string","format":"date-time","description":"Timestamp of the error"}},"description":"RFC 7807 Problem Details for HTTP APIs"},"Common.Errors.RateLimitError":{"type":"object","required":["title"],"properties":{"title":{"type":"string","enum":["Too Many Requests"]}},"unevaluatedProperties":{"not":{}},"allOf":[{"$ref":"#/$defs/Common.Errors.ProblemDetails"}],"description":"Rate limited - too many requests (429)"},"Common.Errors.ServiceUnavailableError":{"type":"object","required":["title"],"properties":{"title":{"type":"string","enum":["Service Unavailable"]},"reason":{"type":"string","enum":["maintenance","overloaded","dependency_failure"],"description":"Reason for unavailability"}},"unevaluatedProperties":{"not":{}},"allOf":[{"$ref":"#/$defs/Common.Errors.ProblemDetails"}],"description":"Service unavailable (503)"},"Common.Errors.UnauthorizedError":{"type":"object","required":["title"],"properties":{"title":{"type":"string","enum":["Unauthorized"]}},"unevaluatedProperties":{"not":{}},"allOf":[{"$ref":"#/$defs/Common.Errors.ProblemDetails"}],"description":"Unauthorized - authentication required (401)"},"Common.Errors.ValidationError":{"type":"object","required":["title","errors"],"properties":{"title":{"type":"string","enum":["Validation Failed"]},"errors":{"type":"array","items":{"$ref":"#/$defs/Common.Errors.ValidationErrorDetail"},"description":"List of validation errors"}},"unevaluatedProperties":{"not":{}},"allOf":[{"$ref":"#/$defs/Common.Errors.ProblemDetails"}],"description":"Bad request - validation failed (400)"},"Common.Errors.ValidationErrorDetail":{"type":"object","required":["field","message","code"],"properties":{"field":{"type":"string","description":"The field/property that failed validation"},"message":{"type":"string","description":"The error message"},"code":{"type":"string","description":"The validation rule that failed"},"rejected_value":{"type":"string","description":"The rejected value (if safe to include)"}},"unevaluatedProperties":{"not":{}},"description":"Individual validation error detail"},"Common.HttpMethod":{"type":"string","description":"HTTP method name (uppercase)","examples":["GET"]},"Common.IPv4Address":{"type":"string","pattern":"^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$","description":"IPv4 address in dotted-decimal notation","examples":["192.168.1.1"]},"Common.IPv6Address":{"type":"string","description":"IPv6 address in standard notation","examples":["2001:0db8:85a3:0000:0000:8a2e:0370:7334"]},"Common.InstrumentationScope":{"type":"object","required":["name"],"properties":{"name":{"type":"string","description":"Name of the instrumentation scope (library name)"},"version":{"$ref":"#/$defs/Common.SemVer","description":"Version of the instrumentation scope"},"attributes":{"type":"array","items":{"$ref":"#/$defs/Common.Attribute"},"description":"Additional attributes for the scope"},"dropped_attributes_count":{"$ref":"#/$defs/Common.Count","description":"Dropped attributes count"}},"unevaluatedProperties":{"not":{}},"description":"Instrumentation scope identifying the library/component emitting telemetry"},"Common.IpAddress":{"type":"string","description":"IP address (IPv4 or IPv6)"},"Common.IsoDuration":{"type":"string","format":"duration","description":"ISO 8601 duration format (e.g., PT1H30M)"},"Common.LanguageCode":{"type":"string","pattern":"^[a-z]{2,3}(-[A-Z]{2})?$","description":"Language/locale code (BCP 47)","examples":["en-US"]},"Common.MacAddress":{"type":"string","pattern":"^([0-9A-Fa-f]{2}:){5}[0-9A-Fa-f]{2}$","description":"MAC address in colon-separated hex notation","examples":["00:1A:2B:3C:4D:5E"]},"Common.Pagination.AggregationParams":{"type":"object","properties":{"bucket":{"$ref":"#/$defs/Common.Pagination.TimeBucket","description":"Time bucket size","default":"auto"},"group_by":{"type":"array","items":{"type":"string"},"description":"Group by these dimensions"},"filter":{"type":"string","description":"Filter expression"}},"unevaluatedProperties":{"not":{}},"description":"Aggregation query parameters"},"Common.Pagination.CursorPaginationParams":{"type":"object","properties":{"cursor":{"type":"string","description":"Opaque cursor for fetching the next page"},"limit":{"type":"integer","format":"int32","minimum":1,"maximum":1000,"description":"Maximum number of items to return (1-1000)","default":100},"order":{"$ref":"#/$defs/Common.Pagination.SortOrder","description":"Sort direction","default":"desc"}},"unevaluatedProperties":{"not":{}},"description":"Cursor-based pagination parameters"},"Common.Pagination.OffsetPaginationParams":{"type":"object","properties":{"page":{"type":"integer","format":"int32","minimum":1,"description":"Page number (1-indexed)","default":1},"page_size":{"type":"integer","format":"int32","minimum":1,"maximum":1000,"description":"Items per page (1-1000)","default":100}},"unevaluatedProperties":{"not":{}},"description":"Offset-based pagination parameters"},"Common.Pagination.SortOrder":{"type":"string","enum":["asc","desc"],"description":"Sort order"},"Common.Pagination.StreamParams":{"type":"object","properties":{"since":{"type":"string","format":"date-time","description":"Include historical data from this timestamp"},"trace_id":{"$ref":"#/$defs/Common.TraceId","description":"Filter by trace ID"},"service_name":{"type":"string","description":"Filter by service name"},"max_events_per_second":{"type":"integer","format":"int32","minimum":1,"maximum":1000,"description":"Maximum events per second (rate limiting)","default":100}},"unevaluatedProperties":{"not":{}},"description":"Streaming parameters for SSE endpoints"},"Common.Pagination.TimeBucket":{"type":"string","enum":["1m","5m","15m","1h","1d","1w","auto"],"description":"Time bucket size for aggregations"},"Common.Pagination.TimeRangeParams":{"type":"object","properties":{"start_time":{"type":"string","format":"date-time","description":"Start of time range (inclusive)"},"end_time":{"type":"string","format":"date-time","description":"End of time range (exclusive)"},"limit":{"type":"integer","format":"int32","minimum":1,"maximum":10000,"description":"Maximum number of items to return","default":1000}},"unevaluatedProperties":{"not":{}},"description":"Time-range based query parameters"},"Common.Percentage":{"type":"number","format":"double","minimum":0,"maximum":100,"description":"Percentage value (0.0 to 100.0)","x-csharp-type":"double"},"Common.Port":{"type":"integer","format":"int32","minimum":1,"maximum":65535,"description":"Network port number (1-65535)","x-csharp-type":"int"},"Common.Ratio":{"type":"number","format":"double","minimum":0,"maximum":1,"description":"Ratio value (0.0 to 1.0)","x-csharp-type":"double"},"Common.SemVer":{"type":"string","pattern":"^(0|[1-9]\\\\d*)\\\\.(0|[1-9]\\\\d*)\\\\.(0|[1-9]\\\\d*)(?:-((?:0|[1-9]\\\\d*|\\\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\\\.(?:0|[1-9]\\\\d*|\\\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\\\+([0-9a-zA-Z-]+(?:\\\\.[0-9a-zA-Z-]+)*))?$","description":"Semantic version string (e.g., 1.2.3)","examples":["2.1.0"]},"Common.SessionId":{"type":"string","minLength":1,"maxLength":128,"description":"Unique session identifier","x-csharp-type":"SessionId","x-csharp-struct":true},"Common.Sha256Hash":{"type":"string","minLength":64,"maxLength":64,"pattern":"^[a-f0-9]{64}$","description":"SHA-256 hash in lowercase hex"},"Common.SpanId":{"type":"string","minLength":16,"maxLength":16,"pattern":"^[a-f0-9]{16}$","description":"Unique span identifier (16 lowercase hex characters)","examples":["b7ad6b7169203331"],"x-csharp-type":"SpanId","x-csharp-struct":true},"Common.Temperature":{"type":"number","format":"double","minimum":0,"maximum":2,"description":"Temperature setting for LLM requests (0.0-2.0)","x-csharp-type":"double"},"Common.Timestamp":{"type":"string","format":"date-time","description":"ISO 8601 timestamp with nanosecond precision (RFC 3339)"},"Common.TokenCount":{"type":"integer","format":"int64","minimum":0,"description":"Token count (for LLM operations)","x-csharp-type":"long"},"Common.TraceId":{"type":"string","minLength":32,"maxLength":32,"pattern":"^[a-f0-9]{32}$","description":"Unique trace identifier (32 lowercase hex characters)","examples":["0af7651916cd43dd8448eb211c80319c"],"x-csharp-type":"TraceId","x-csharp-struct":true},"Common.TraceParent":{"type":"string","pattern":"^[0-9a-f]{2}-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","description":"W3C Trace Context traceparent header format","examples":["00-0af7651916cd43dd8448eb211c80319c-b7ad6b7169203331-01"]},"Common.TraceState":{"type":"string","description":"W3C Trace Context tracestate header (vendor-specific key-value pairs)","examples":["rojo=00f067aa0ba902b7,congo=t61rcWkgMzE"]},"Common.UnixNanos":{"type":"string","format":"uint64","description":"Unsigned Unix timestamp in nanoseconds since epoch, encoded as a decimal string","x-csharp-type":"ulong","pattern":"^(0|[1-9][0-9]*)$","maxLength":20},"Common.UrlPath":{"type":"string","description":"URL path component","examples":["/api/v1/users"]},"Common.UrlQuery":{"type":"string","description":"URL query string (without leading ?)","examples":["page=1&limit=100"]},"Common.UrlString":{"type":"string","format":"uri","description":"URL string (absolute)"},"Common.UserAgent":{"type":"string","description":"User agent string","examples":["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36"]},"Common.UserId":{"type":"string","minLength":1,"maxLength":256,"description":"User identifier (pseudonymized for privacy)"},"Domains.Observe.Session.DeviceType":{"type":"string","enum":["desktop","mobile","tablet","tv","console","wearable","iot","bot","unknown"],"description":"Device types"},"Domains.Observe.Session.SessionAttributes":{"type":"object","required":["session_id"],"properties":{"session_id":{"$ref":"#/$defs/Common.SessionId","description":"Session ID"},"previous_session_id":{"$ref":"#/$defs/Common.SessionId","description":"Previous session ID (for session continuity)"}},"unevaluatedProperties":{"not":{}},"description":"Session span/event attributes"},"Domains.Observe.Session.SessionClientInfo":{"type":"object","properties":{"ip":{"$ref":"#/$defs/Common.IpAddress","description":"Client IP address"},"user_agent":{"$ref":"#/$defs/Common.UserAgent","description":"User agent string"},"device_type":{"$ref":"#/$defs/Domains.Observe.Session.DeviceType","description":"Device type"},"os":{"type":"string","description":"Operating system"},"browser":{"type":"string","description":"Browser name"},"browser_version":{"type":"string","description":"Browser version"}},"unevaluatedProperties":{"not":{}},"description":"Session client information"},"Domains.Observe.Session.SessionEntity":{"type":"object","required":["session_id","start_time","trace_count","span_count","error_count","services","state"],"properties":{"session_id":{"$ref":"#/$defs/Common.SessionId","description":"Session ID"},"user_id":{"$ref":"#/$defs/Common.UserId","description":"User ID (if authenticated)"},"start_time":{"type":"string","format":"date-time","description":"Session start time"},"end_time":{"type":"string","format":"date-time","description":"Session end time"},"duration_ms":{"$ref":"#/$defs/Common.DurationMs","description":"Session duration in milliseconds"},"trace_count":{"type":"integer","format":"int32","minimum":0,"description":"Total trace count in session"},"span_count":{"type":"integer","format":"int32","minimum":0,"description":"Total span count in session"},"error_count":{"type":"integer","format":"int32","minimum":0,"description":"Total error count in session"},"services":{"type":"array","items":{"type":"string"},"description":"Service names observed in this session"},"state":{"$ref":"#/$defs/Domains.Observe.Session.SessionState","description":"Session state"},"client":{"$ref":"#/$defs/Domains.Observe.Session.SessionClientInfo","description":"Client information"},"geo":{"$ref":"#/$defs/Domains.Observe.Session.SessionGeoInfo","description":"Location information"},"genai_usage":{"$ref":"#/$defs/Domains.Observe.Session.SessionGenAiUsage","description":"GenAI usage summary"}},"unevaluatedProperties":{"not":{}},"description":"Complete session entity with aggregated data","x-csharp-type":"SessionEntity"},"Domains.Observe.Session.SessionEvent":{"type":"object","required":["event_name","session_id","timestamp","event_domain"],"properties":{"event_name":{"$ref":"#/$defs/Domains.Observe.Session.SessionEventName","description":"Event name"},"session_id":{"$ref":"#/$defs/Common.SessionId","description":"Session ID"},"timestamp":{"type":"string","format":"date-time","description":"Event timestamp"},"event_domain":{"type":"string","enum":["session"],"description":"Event domain"}},"unevaluatedProperties":{"not":{}},"description":"Session lifecycle event"},"Domains.Observe.Session.SessionEventName":{"type":"string","enum":["session.start","session.end"],"description":"Session event names"},"Domains.Observe.Session.SessionGenAiUsage":{"type":"object","required":["request_count","total_input_tokens","total_output_tokens","models_used","providers_used"],"properties":{"request_count":{"type":"integer","format":"int32","minimum":0,"description":"Total GenAI requests in session"},"total_input_tokens":{"$ref":"#/$defs/Common.TokenCount","description":"Total input tokens consumed"},"total_output_tokens":{"$ref":"#/$defs/Common.TokenCount","description":"Total output tokens generated"},"models_used":{"type":"array","items":{"type":"string"},"description":"Models used in session"},"providers_used":{"type":"array","items":{"type":"string"},"description":"Providers used in session"}},"unevaluatedProperties":{"not":{}},"description":"Session GenAI usage summary"},"Domains.Observe.Session.SessionGeoInfo":{"type":"object","properties":{"country_code":{"type":"string","description":"Country code (ISO 3166-1 alpha-2)"},"country_name":{"type":"string","description":"Country name"},"region":{"type":"string","description":"Region/state"},"city":{"type":"string","description":"City"},"postal_code":{"type":"string","description":"Postal code"},"timezone":{"type":"string","description":"Timezone"}},"unevaluatedProperties":{"not":{}},"description":"Session geographic information"},"Domains.Observe.Session.SessionState":{"type":"string","enum":["active","idle","ended","timed_out","invalidated"],"description":"Session states"},"Domains.Observe.Session.SessionStats":{"type":"object","required":["active_sessions","total_sessions","avg_duration_ms","sessions_with_errors","sessions_with_genai","bounce_rate"],"properties":{"active_sessions":{"$ref":"#/$defs/Common.Count","description":"Active sessions count"},"total_sessions":{"$ref":"#/$defs/Common.Count","description":"Total sessions in time range"},"avg_duration_ms":{"type":"number","format":"double","description":"Average session duration in milliseconds"},"sessions_with_errors":{"$ref":"#/$defs/Common.Count","description":"Sessions with errors"},"sessions_with_genai":{"$ref":"#/$defs/Common.Count","description":"Sessions with GenAI usage"},"bounce_rate":{"$ref":"#/$defs/Common.Ratio","description":"Bounce rate (single-page sessions)"}},"unevaluatedProperties":{"not":{}},"description":"Aggregated session statistics"},"Health.HealthCheckEntry":{"type":"object","required":["status","duration_ms"],"properties":{"status":{"$ref":"#/$defs/Health.HealthStatus"},"description":{"type":"string"},"duration_ms":{"type":"number","format":"double"}},"unevaluatedProperties":{"not":{}},"description":"One named health-check result."},"Health.HealthReport":{"type":"object","required":["status","total_duration_ms","entries","contract_revision"],"properties":{"status":{"$ref":"#/$defs/Health.HealthStatus"},"total_duration_ms":{"type":"number","format":"double"},"entries":{"type":"object","unevaluatedProperties":{"$ref":"#/$defs/Health.HealthCheckEntry"}},"contract_revision":{"$ref":"#/$defs/Common.ContractRevision","description":"Revision of the API contract this process serves, for the client-side startup handshake."}},"unevaluatedProperties":{"not":{}},"description":"Readiness or liveness report returned by /health and /alive."},"Health.HealthStatus":{"type":"string","enum":["healthy","degraded","unhealthy"],"description":"Health state reported by a qyl-managed process."},"Mcp.Tools.CiLogInput":{"type":"object","properties":{"run_id":{"$ref":"#/$defs/Common.SessionId","description":"Session id of one CI run for a per-leg phase breakdown; omit to list recent runs."},"limit":{"type":"integer","format":"int32","minimum":1,"maximum":50,"description":"Maximum CI runs to list.","default":10}},"unevaluatedProperties":{"not":{}},"description":"Input for ci_log."},"Mcp.Tools.CiLogOutput":{"type":"object","required":["mode"],"properties":{"runs":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.CiRunSummary"}},"run_id":{"$ref":"#/$defs/Common.SessionId"},"phases":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.CiPhase"}},"mode":{"$ref":"#/$defs/Mcp.Tools.McpDataMode"}},"unevaluatedProperties":{"not":{}},"description":"Structured output for ci_log: recent runs, or one run's phases."},"Mcp.Tools.CiPhase":{"type":"object","required":["leg","phase","status","duration_ms"],"properties":{"leg":{"type":"string","description":"Value of the span's ci.leg attribute, falling back to its service name."},"phase":{"type":"string","description":"Span name, which the CI emitter convention sets to the phase name."},"status":{"$ref":"#/$defs/Mcp.Tools.CiPhaseStatus"},"duration_ms":{"$ref":"#/$defs/Common.DurationMs"},"message":{"type":"string","description":"Span status message, present on a failed phase."}},"unevaluatedProperties":{"not":{}},"description":"One phase span of a CI run, attributed to the leg that executed it."},"Mcp.Tools.CiPhaseStatus":{"type":"string","enum":["ok","error","unset"],"description":"Outcome of one CI phase span, projected from its OpenTelemetry span status."},"Mcp.Tools.CiRunSummary":{"type":"object","required":["run_id","state","start_time","error_count","services"],"properties":{"run_id":{"$ref":"#/$defs/Common.SessionId"},"state":{"$ref":"#/$defs/Domains.Observe.Session.SessionState"},"start_time":{"type":"string","format":"date-time"},"duration_ms":{"$ref":"#/$defs/Common.DurationMs"},"error_count":{"type":"integer","format":"int32","minimum":0,"description":"Spans in the run that ended with an error status."},"services":{"type":"array","items":{"type":"string"},"description":"Service names observed in the run, at least one of which is CI-emitted."}},"unevaluatedProperties":{"not":{}},"description":"One CI run, summarized from the session its telemetry is grouped under."},"Mcp.Tools.ControlWorkflowRunInput":{"type":"object","required":["run_id","action","idempotency_key"],"properties":{"run_id":{"$ref":"#/$defs/Workflow.WorkflowRunId"},"action":{"$ref":"#/$defs/Workflow.WorkflowControlAction"},"idempotency_key":{"type":"string","minLength":1,"maxLength":160},"input":{"type":"string","maxLength":32768}},"unevaluatedProperties":{"not":{}},"description":"Input for control_workflow_run."},"Mcp.Tools.ControlWorkflowRunOutput":{"type":"object","required":["command"],"properties":{"command":{"$ref":"#/$defs/Workflow.WorkflowControlCommand"}},"unevaluatedProperties":{"not":{}},"description":"Structured output for control_workflow_run."},"Mcp.Tools.DisplayMcpDashboardInput":{"type":"object","properties":{"hours":{"type":"number","format":"double","minimum":1,"maximum":168,"default":24}},"unevaluatedProperties":{"not":{}},"description":"Input for display_mcp_dashboard."},"Mcp.Tools.DisplayMcpDashboardOutput":{"type":"object","required":["stats"],"properties":{"stats":{"$ref":"#/$defs/Mcp.Tools.McpDashboardStats"}},"unevaluatedProperties":{"not":{}},"description":"Structured output for display_mcp_dashboard."},"Mcp.Tools.DisplayTracesInput":{"type":"object","properties":{"trace_id":{"$ref":"#/$defs/Common.TraceId"},"session_id":{"$ref":"#/$defs/Common.SessionId"},"limit":{"type":"integer","format":"int32","minimum":1,"maximum":100,"default":20}},"unevaluatedProperties":{"not":{}},"description":"Input for display_traces."},"Mcp.Tools.DisplayTracesOutput":{"type":"object","required":["traces","mode"],"properties":{"traces":{"type":"array","items":{"$ref":"#/$defs/OTel.Traces.Trace"}},"selected_trace_id":{"$ref":"#/$defs/Common.TraceId"},"mode":{"$ref":"#/$defs/Mcp.Tools.McpDataMode"}},"unevaluatedProperties":{"not":{}},"description":"Structured output for display_traces."},"Mcp.Tools.DisplayWorkflowGraphInput":{"type":"object","properties":{"run_id":{"$ref":"#/$defs/Workflow.WorkflowRunId"},"node_cursor":{"type":"string"},"node_limit":{"type":"integer","format":"int32","minimum":1,"maximum":1000,"default":250},"edge_cursor":{"type":"string"},"edge_limit":{"type":"integer","format":"int32","minimum":1,"maximum":2000,"default":500}},"unevaluatedProperties":{"not":{}},"description":"Input for display_workflow_graph. Omit run_id to select the most recent run."},"Mcp.Tools.DisplayWorkflowGraphOutput":{"type":"object","required":["graph","live_controls_available","mode"],"properties":{"graph":{"$ref":"#/$defs/Workflow.WorkflowGraphSnapshot"},"live_controls_available":{"type":"boolean"},"mode":{"$ref":"#/$defs/Mcp.Tools.McpDataMode"}},"unevaluatedProperties":{"not":{}},"description":"Structured output for display_workflow_graph."},"Mcp.Tools.FetchTelemetryInput":{"type":"object","required":["view"],"properties":{"view":{"$ref":"#/$defs/Mcp.Tools.FetchTelemetryView"},"trace_id":{"$ref":"#/$defs/Common.TraceId"},"service_name":{"type":"string"},"severity_min":{"type":"integer","format":"int32","minimum":1,"maximum":24},"query":{"type":"string"},"limit":{"type":"integer","format":"int32","minimum":1,"maximum":200},"hours":{"type":"number","format":"double","minimum":1,"maximum":168}},"unevaluatedProperties":{"not":{}},"description":"Input for the app-only fetch_telemetry tool."},"Mcp.Tools.FetchTelemetryOutput":{"type":"object","required":["mode"],"properties":{"traces":{"type":"array","items":{"$ref":"#/$defs/OTel.Traces.Trace"}},"trace":{"$ref":"#/$defs/OTel.Traces.Trace"},"logs":{"type":"array","items":{"$ref":"#/$defs/OTel.Logs.LogRecord"}},"stats":{"$ref":"#/$defs/Mcp.Tools.McpDashboardStats"},"mode":{"$ref":"#/$defs/Mcp.Tools.McpDataMode"}},"unevaluatedProperties":{"not":{}},"description":"Structured output for the app-only fetch_telemetry tool."},"Mcp.Tools.FetchTelemetryView":{"type":"string","enum":["traces","trace","logs","mcp_stats"],"description":"Data projection requested by the app-only fetch_telemetry tool."},"Mcp.Tools.FetchWorkflowGraphUpdatesInput":{"type":"object","required":["run_id","after_sequence"],"properties":{"run_id":{"$ref":"#/$defs/Workflow.WorkflowRunId"},"after_sequence":{"$ref":"#/$defs/Workflow.WorkflowSequence"},"limit":{"type":"integer","format":"int32","minimum":1,"maximum":1000,"default":250},"wait_ms":{"type":"integer","format":"int32","minimum":0,"maximum":30000,"default":20000},"node_cursor":{"type":"string"},"node_limit":{"type":"integer","format":"int32","minimum":1,"maximum":1000,"default":250},"edge_cursor":{"type":"string"},"edge_limit":{"type":"integer","format":"int32","minimum":1,"maximum":2000,"default":500},"content_ref":{"$ref":"#/$defs/Workflow.WorkflowContentRef","description":"Optional captured payload to retrieve lazily for the selected run."}},"unevaluatedProperties":{"not":{}},"description":"Input for the app-only fetch_workflow_graph_updates tool."},"Mcp.Tools.FetchWorkflowGraphUpdatesOutput":{"type":"object","required":["page","mode"],"properties":{"page":{"$ref":"#/$defs/Workflow.WorkflowEventPage"},"graph":{"$ref":"#/$defs/Workflow.WorkflowGraphSnapshot"},"content":{"$ref":"#/$defs/Workflow.WorkflowContent"},"mode":{"$ref":"#/$defs/Mcp.Tools.McpDataMode"}},"unevaluatedProperties":{"not":{}},"description":"Structured output for the app-only fetch_workflow_graph_updates tool."},"Mcp.Tools.GetTraceInput":{"type":"object","required":["trace_id"],"properties":{"trace_id":{"$ref":"#/$defs/Common.TraceId"}},"unevaluatedProperties":{"not":{}},"description":"Input for get_trace."},"Mcp.Tools.GetTraceOutput":{"type":"object","required":["trace","mode"],"properties":{"trace":{"$ref":"#/$defs/OTel.Traces.Trace"},"mode":{"$ref":"#/$defs/Mcp.Tools.McpDataMode"}},"unevaluatedProperties":{"not":{}},"description":"Structured output for get_trace."},"Mcp.Tools.GetWorkflowGraphInput":{"type":"object","required":["run_id"],"properties":{"run_id":{"$ref":"#/$defs/Workflow.WorkflowRunId"},"node_cursor":{"type":"string"},"node_limit":{"type":"integer","format":"int32","minimum":1,"maximum":1000,"default":250},"edge_cursor":{"type":"string"},"edge_limit":{"type":"integer","format":"int32","minimum":1,"maximum":2000,"default":500}},"unevaluatedProperties":{"not":{}},"description":"Input for get_workflow_graph."},"Mcp.Tools.GetWorkflowGraphOutput":{"type":"object","required":["graph","mode"],"properties":{"graph":{"$ref":"#/$defs/Workflow.WorkflowGraphSnapshot"},"mode":{"$ref":"#/$defs/Mcp.Tools.McpDataMode"}},"unevaluatedProperties":{"not":{}},"description":"Structured output for get_workflow_graph."},"Mcp.Tools.ListSessionsInput":{"type":"object","properties":{"limit":{"type":"integer","format":"int32","minimum":1,"maximum":100,"default":20},"active_only":{"type":"boolean"}},"unevaluatedProperties":{"not":{}},"description":"Input for list_sessions."},"Mcp.Tools.ListSessionsOutput":{"type":"object","required":["sessions","mode"],"properties":{"sessions":{"type":"array","items":{"$ref":"#/$defs/Domains.Observe.Session.SessionEntity"}},"mode":{"$ref":"#/$defs/Mcp.Tools.McpDataMode"}},"unevaluatedProperties":{"not":{}},"description":"Structured output for list_sessions."},"Mcp.Tools.ListTracesInput":{"type":"object","properties":{"limit":{"type":"integer","format":"int32","minimum":1,"maximum":100,"default":20}},"unevaluatedProperties":{"not":{}},"description":"Input for list_traces."},"Mcp.Tools.ListTracesOutput":{"type":"object","required":["traces","mode"],"properties":{"traces":{"type":"array","items":{"$ref":"#/$defs/OTel.Traces.TraceSummary"}},"mode":{"$ref":"#/$defs/Mcp.Tools.McpDataMode"}},"unevaluatedProperties":{"not":{}},"description":"Structured output for list_traces."},"Mcp.Tools.ListWorkflowRunsInput":{"type":"object","properties":{"status":{"$ref":"#/$defs/Workflow.WorkflowRunStatus"},"cursor":{"type":"string"},"limit":{"type":"integer","format":"int32","minimum":1,"maximum":100,"default":20}},"unevaluatedProperties":{"not":{}},"description":"Input for list_workflow_runs."},"Mcp.Tools.ListWorkflowRunsOutput":{"type":"object","required":["runs","has_more","mode"],"properties":{"runs":{"type":"array","items":{"$ref":"#/$defs/Workflow.WorkflowRun"}},"next_cursor":{"type":"string"},"has_more":{"type":"boolean"},"mode":{"$ref":"#/$defs/Mcp.Tools.McpDataMode"}},"unevaluatedProperties":{"not":{}},"description":"Structured output for list_workflow_runs."},"Mcp.Tools.McpDashboardBucket":{"type":"object","required":["start","requests","errors"],"properties":{"start":{"type":"string","format":"date-time"},"requests":{"type":"integer","format":"int32","minimum":0},"errors":{"type":"integer","format":"int32","minimum":0}},"unevaluatedProperties":{"not":{}}},"Mcp.Tools.McpDashboardStats":{"type":"object","required":["window","buckets","totals","by_server","by_transport","by_method","tools","span_count_analyzed","truncated","mode"],"properties":{"window":{"$ref":"#/$defs/Mcp.Tools.McpDashboardWindow"},"buckets":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.McpDashboardBucket"}},"totals":{"$ref":"#/$defs/Mcp.Tools.McpDashboardTotals"},"by_server":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.McpNameRequestCount"}},"by_transport":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.McpNameRequestCount"}},"by_method":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.McpNameRequestCount"}},"tools":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.McpToolStats"}},"span_count_analyzed":{"type":"integer","format":"int32","minimum":0},"truncated":{"type":"boolean"},"mode":{"$ref":"#/$defs/Mcp.Tools.McpDataMode"}},"unevaluatedProperties":{"not":{}},"description":"Aggregate MCP traffic statistics shown by qyl.mcp."},"Mcp.Tools.McpDashboardTotals":{"type":"object","required":["requests","errors","error_rate"],"properties":{"requests":{"type":"integer","format":"int32","minimum":0},"errors":{"type":"integer","format":"int32","minimum":0},"error_rate":{"type":"number","format":"double","minimum":0,"maximum":1}},"unevaluatedProperties":{"not":{}}},"Mcp.Tools.McpDashboardWindow":{"type":"object","required":["start","end","bucket_ms"],"properties":{"start":{"type":"string","format":"date-time"},"end":{"type":"string","format":"date-time"},"bucket_ms":{"type":"number","format":"double","minimum":0}},"unevaluatedProperties":{"not":{}}},"Mcp.Tools.McpDataMode":{"type":"string","enum":["live","demo"],"description":"Whether a qyl MCP tool read live collector data or the explicit demo dataset."},"Mcp.Tools.McpNameRequestCount":{"type":"object","required":["name","requests"],"properties":{"name":{"type":"string"},"requests":{"type":"integer","format":"int32","minimum":0}},"unevaluatedProperties":{"not":{}}},"Mcp.Tools.McpToolStats":{"type":"object","required":["name","requests","errors","error_rate","avg_ms","p95_ms"],"properties":{"name":{"type":"string"},"requests":{"type":"integer","format":"int32","minimum":0},"errors":{"type":"integer","format":"int32","minimum":0},"error_rate":{"type":"number","format":"double","minimum":0,"maximum":1},"avg_ms":{"type":"number","format":"double","minimum":0},"p95_ms":{"type":"number","format":"double","minimum":0}},"unevaluatedProperties":{"not":{}}},"Mcp.Tools.SearchLogsInput":{"type":"object","properties":{"trace_id":{"$ref":"#/$defs/Common.TraceId"},"service_name":{"type":"string"},"severity_min":{"type":"integer","format":"int32","minimum":1,"maximum":24},"query":{"type":"string"},"limit":{"type":"integer","format":"int32","minimum":1,"maximum":200,"default":50}},"unevaluatedProperties":{"not":{}},"description":"Input for search_logs."},"Mcp.Tools.SearchLogsOutput":{"type":"object","required":["logs","mode"],"properties":{"logs":{"type":"array","items":{"$ref":"#/$defs/OTel.Logs.LogRecord"}},"mode":{"$ref":"#/$defs/Mcp.Tools.McpDataMode"}},"unevaluatedProperties":{"not":{}},"description":"Structured output for search_logs."},"OTel.Enums.ErrorType":{"type":"string","enum":["_OTHER","TIMEOUT","CONNECTION_REFUSED","DNS_ERROR","TLS_ERROR","AUTH_ERROR","PERMISSION_DENIED","NOT_FOUND","RESOURCE_EXHAUSTED","INVALID_ARGUMENT","CANCELLED"],"description":"Standardized error types"},"OTel.Enums.EventDomain":{"type":"string","enum":["browser","device","k8s","session","gen_ai","exception","log"],"description":"Event domain (namespace for event types)"},"OTel.Enums.SeverityNumber":{"type":"number","enum":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24],"description":"Log severity number following OTel specification (1-24)"},"OTel.Enums.SeverityText":{"type":"string","enum":["TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"description":"Log severity text (human-readable)"},"OTel.Enums.SpanFlags":{"type":"number","enum":[0,1,2],"description":"Span flags as defined in W3C Trace Context"},"OTel.Enums.SpanKind":{"type":"number","enum":[0,1,2,3,4,5],"description":"Span kind describing the relationship between spans"},"OTel.Enums.SpanStatusCode":{"type":"number","enum":[0,1,2],"description":"Span status code"},"OTel.Enums.TelemetrySdkLanguage":{"type":"string","enum":["cpp","dotnet","erlang","go","java","nodejs","php","python","ruby","rust","swift","webjs"],"description":"Telemetry SDK language"},"OTel.Logs.LogBody":{"type":"object","oneOf":[{"$ref":"#/$defs/OTel.Logs.LogBodyString"},{"$ref":"#/$defs/OTel.Logs.LogBodyKvList"},{"$ref":"#/$defs/OTel.Logs.LogBodyArray"},{"$ref":"#/$defs/OTel.Logs.LogBodyBytes"}],"discriminator":{"propertyName":"kind","mapping":{"stringBody":"#/components/schemas/OTel.Logs.LogBodyString","kvListBody":"#/components/schemas/OTel.Logs.LogBodyKvList","arrayBody":"#/components/schemas/OTel.Logs.LogBodyArray","bytesBody":"#/components/schemas/OTel.Logs.LogBodyBytes"}},"description":"Log body content - can be string, structured, or bytes"},"OTel.Logs.LogBodyArray":{"type":"object","required":["array_value"],"properties":{"array_value":{"type":"array","items":{"$ref":"#/$defs/Common.AttributeValue"},"description":"Array of values"}},"unevaluatedProperties":{"not":{}},"description":"Array log body"},"OTel.Logs.LogBodyBytes":{"type":"object","required":["bytes_value"],"properties":{"bytes_value":{"type":"string","contentEncoding":"base64","description":"Binary value (base64 encoded)"}},"unevaluatedProperties":{"not":{}},"description":"Binary log body"},"OTel.Logs.LogBodyKvList":{"type":"object","required":["kv_list_value"],"properties":{"kv_list_value":{"type":"array","items":{"$ref":"#/$defs/Common.Attribute"},"description":"Key-value pairs"}},"unevaluatedProperties":{"not":{}},"description":"Structured key-value log body"},"OTel.Logs.LogBodyString":{"type":"object","required":["string_value"],"properties":{"string_value":{"type":"string","description":"String value"}},"unevaluatedProperties":{"not":{}},"description":"String log body"},"OTel.Logs.LogRecord":{"type":"object","required":["time_unix_nano","observed_time_unix_nano","severity_number","body","resource"],"properties":{"time_unix_nano":{"$ref":"#/$defs/Common.UnixNanos","description":"Timestamp when the event occurred (nanoseconds since epoch)"},"observed_time_unix_nano":{"$ref":"#/$defs/Common.UnixNanos","description":"Timestamp when the log was observed/collected (nanoseconds since epoch)"},"severity_number":{"$ref":"#/$defs/OTel.Enums.SeverityNumber","description":"Severity number (1-24)"},"severity_text":{"$ref":"#/$defs/OTel.Enums.SeverityText","description":"Severity text (DEBUG, INFO, WARN, ERROR, etc.)"},"body":{"$ref":"#/$defs/OTel.Logs.LogBody","description":"Log body - the main content"},"attributes":{"type":"array","items":{"$ref":"#/$defs/Common.Attribute"},"description":"Log attributes"},"dropped_attributes_count":{"$ref":"#/$defs/Common.Count","description":"Dropped attributes count"},"flags":{"type":"integer","format":"int32","description":"Flags (trace flags)"},"trace_id":{"$ref":"#/$defs/Common.TraceId","description":"Associated trace ID"},"span_id":{"$ref":"#/$defs/Common.SpanId","description":"Associated span ID"},"event_name":{"type":"string","description":"Optional event category whose presence identifies this log record as an event; records with the same name are expected to share one body and attribute schema."},"resource":{"$ref":"#/$defs/OTel.Resource.Resource","description":"Resource describing the entity that produced this log"},"instrumentation_scope":{"$ref":"#/$defs/Common.InstrumentationScope","description":"Instrumentation scope"}},"unevaluatedProperties":{"not":{}},"description":"OpenTelemetry Log Record"},"OTel.Logs.LogTemplate":{"type":"object","required":["template","parameters"],"properties":{"template":{"type":"string","description":"Template string with {placeholder} syntax"},"parameters":{"type":"array","items":{"$ref":"#/$defs/Common.Attribute"},"description":"Template parameters"},"rendered_message":{"type":"string","description":"Rendered message"}},"unevaluatedProperties":{"not":{}},"description":"Log message template with placeholders"},"OTel.Resource.CloudProvider":{"type":"string","enum":["alibaba_cloud","aws","azure","gcp","heroku","ibm_cloud","tencent_cloud"],"description":"Cloud provider types"},"OTel.Resource.HostArch":{"type":"string","enum":["amd64","arm32","arm64","ia64","ppc32","ppc64","s390x","x86"],"description":"Host architecture types"},"OTel.Resource.OsType":{"type":"string","enum":["windows","linux","darwin","freebsd","netbsd","openbsd","dragonflybsd","hpux","aix","solaris","z_os"],"description":"Operating system types"},"OTel.Resource.Resource":{"type":"object","required":["service_name"],"properties":{"service_name":{"type":"string","description":"Service name (required)"},"service_namespace":{"type":"string","description":"Service namespace for grouping"},"service_instance_id":{"type":"string","description":"Service instance ID (unique per instance)"},"service_version":{"$ref":"#/$defs/Common.SemVer","description":"Service version"},"telemetry_sdk_name":{"type":"string","description":"Telemetry SDK name"},"telemetry_sdk_language":{"$ref":"#/$defs/OTel.Enums.TelemetrySdkLanguage","description":"Telemetry SDK language"},"telemetry_sdk_version":{"$ref":"#/$defs/Common.SemVer","description":"Telemetry SDK version"},"telemetry_distro_version":{"$ref":"#/$defs/Common.SemVer","description":"Telemetry distribution version"},"deployment_environment":{"type":"string","description":"Deployment environment (e.g., production, staging)"},"cloud_provider":{"$ref":"#/$defs/OTel.Resource.CloudProvider","description":"Cloud provider"},"cloud_region":{"type":"string","description":"Cloud region"},"cloud_availability_zone":{"type":"string","description":"Cloud availability zone"},"cloud_account_id":{"type":"string","description":"Cloud account ID"},"cloud_platform":{"type":"string","description":"Cloud platform (e.g., aws_ecs, gcp_cloud_run)"},"host_name":{"type":"string","description":"Host name"},"host_id":{"type":"string","description":"Host ID"},"host_type":{"type":"string","description":"Host type (e.g., n1-standard-1)"},"host_arch":{"$ref":"#/$defs/OTel.Resource.HostArch","description":"Host architecture (e.g., amd64, arm64)"},"os_type":{"$ref":"#/$defs/OTel.Resource.OsType","description":"Operating system type"},"os_description":{"type":"string","description":"Operating system description"},"os_version":{"type":"string","description":"Operating system version"},"process_pid":{"type":"integer","format":"int64","description":"Process ID"},"process_executable_name":{"type":"string","description":"Process executable name"},"process_command_line":{"type":"string","description":"Process command line"},"process_runtime_name":{"type":"string","description":"Process runtime name"},"process_runtime_version":{"type":"string","description":"Process runtime version"},"container_id":{"type":"string","description":"Container ID"},"container_name":{"type":"string","description":"Container name"},"container_image_name":{"type":"string","description":"Container image name"},"container_image_tags":{"type":"array","items":{"type":"string"},"description":"Container image tags"},"k8s_cluster_name":{"type":"string","description":"Kubernetes cluster name"},"k8s_namespace_name":{"type":"string","description":"Kubernetes namespace"},"k8s_pod_name":{"type":"string","description":"Kubernetes pod name"},"k8s_pod_uid":{"type":"string","description":"Kubernetes pod UID"},"k8s_deployment_name":{"type":"string","description":"Kubernetes deployment name"},"attributes":{"type":"array","items":{"$ref":"#/$defs/Common.Attribute"},"description":"Additional resource attributes"},"dropped_attributes_count":{"$ref":"#/$defs/Common.Count","description":"Dropped attributes count"},"entity_refs":{"type":"array","items":{"$ref":"#/$defs/Common.EntityRef"},"description":"Entities participating in this Resource, keyed by attributes on the Resource."}},"unevaluatedProperties":{"not":{}},"description":"Resource describes the entity producing telemetry"},"OTel.Traces.Span":{"type":"object","required":["span_id","trace_id","name","kind","start_time_unix_nano","end_time_unix_nano","status","resource"],"properties":{"span_id":{"$ref":"#/$defs/Common.SpanId","description":"Unique span identifier (16 hex chars)"},"trace_id":{"$ref":"#/$defs/Common.TraceId","description":"Trace identifier (32 hex chars)"},"parent_span_id":{"$ref":"#/$defs/Common.SpanId","description":"Parent span identifier (null for root spans)"},"trace_state":{"$ref":"#/$defs/Common.TraceState","description":"W3C trace state"},"name":{"type":"string","minLength":1,"description":"Human-readable span name"},"kind":{"$ref":"#/$defs/OTel.Enums.SpanKind","description":"Span kind"},"start_time_unix_nano":{"$ref":"#/$defs/Common.UnixNanos","description":"Start timestamp in nanoseconds since epoch"},"end_time_unix_nano":{"$ref":"#/$defs/Common.UnixNanos","description":"End timestamp in nanoseconds since epoch"},"attributes":{"type":"array","items":{"$ref":"#/$defs/Common.Attribute"},"description":"Span attributes"},"dropped_attributes_count":{"$ref":"#/$defs/Common.Count","description":"Dropped attributes count"},"events":{"type":"array","items":{"$ref":"#/$defs/OTel.Traces.SpanEvent"},"description":"Span events (logs attached to span)"},"dropped_events_count":{"$ref":"#/$defs/Common.Count","description":"Dropped events count"},"links":{"type":"array","items":{"$ref":"#/$defs/OTel.Traces.SpanLink"},"description":"Links to other spans"},"dropped_links_count":{"$ref":"#/$defs/Common.Count","description":"Dropped links count"},"status":{"$ref":"#/$defs/OTel.Traces.SpanStatus","description":"Span status"},"flags":{"type":"integer","format":"int32","description":"Span flags"},"resource":{"$ref":"#/$defs/OTel.Resource.Resource","description":"Resource describing the entity that produced this span"},"instrumentation_scope":{"$ref":"#/$defs/Common.InstrumentationScope","description":"Instrumentation scope"}},"unevaluatedProperties":{"not":{}},"description":"OpenTelemetry Span representing a single operation in a distributed trace"},"OTel.Traces.SpanEvent":{"type":"object","required":["name","time_unix_nano"],"properties":{"name":{"type":"string","minLength":1,"description":"Event name"},"time_unix_nano":{"$ref":"#/$defs/Common.UnixNanos","description":"Event timestamp in nanoseconds since epoch"},"attributes":{"type":"array","items":{"$ref":"#/$defs/Common.Attribute"},"description":"Event attributes"},"dropped_attributes_count":{"$ref":"#/$defs/Common.Count","description":"Dropped attributes count"}},"unevaluatedProperties":{"not":{}},"description":"Event occurring during a span's lifetime"},"OTel.Traces.SpanLink":{"type":"object","required":["trace_id","span_id"],"properties":{"trace_id":{"$ref":"#/$defs/Common.TraceId","description":"Linked trace ID"},"span_id":{"$ref":"#/$defs/Common.SpanId","description":"Linked span ID"},"trace_state":{"$ref":"#/$defs/Common.TraceState","description":"Trace state of the linked span"},"attributes":{"type":"array","items":{"$ref":"#/$defs/Common.Attribute"},"description":"Link attributes"},"dropped_attributes_count":{"$ref":"#/$defs/Common.Count","description":"Dropped attributes count"},"flags":{"type":"integer","format":"int32","description":"Link flags"}},"unevaluatedProperties":{"not":{}},"description":"Link to another span (e.g., batch processing)"},"OTel.Traces.SpanQueryFilters":{"type":"object","properties":{"trace_id":{"$ref":"#/$defs/Common.TraceId","description":"Filter by trace ID"},"parent_span_id":{"$ref":"#/$defs/Common.SpanId","description":"Filter by parent span ID"},"name":{"type":"string","description":"Filter by span name (supports wildcards)"},"kind":{"$ref":"#/$defs/OTel.Enums.SpanKind","description":"Filter by span kind"},"service_name":{"type":"string","description":"Filter by service name"},"status_code":{"$ref":"#/$defs/OTel.Enums.SpanStatusCode","description":"Filter by status code"},"min_duration_ns":{"$ref":"#/$defs/Common.DurationNs","description":"Minimum duration in nanoseconds"},"max_duration_ns":{"$ref":"#/$defs/Common.DurationNs","description":"Maximum duration in nanoseconds"},"attribute":{"type":"string","description":"Filter by attribute key-value pair"}},"unevaluatedProperties":{"not":{}},"description":"Filter parameters for querying spans"},"OTel.Traces.SpanStats":{"type":"object","required":["total_count","error_count","error_rate","avg_duration_ns","p50_duration_ns","p90_duration_ns","p99_duration_ns","min_duration_ns","max_duration_ns","throughput_per_second"],"properties":{"total_count":{"$ref":"#/$defs/Common.Count","description":"Total span count"},"error_count":{"$ref":"#/$defs/Common.Count","description":"Error count"},"error_rate":{"$ref":"#/$defs/Common.Ratio","description":"Error rate (0.0 - 1.0)"},"avg_duration_ns":{"type":"number","format":"double","description":"Average duration in nanoseconds"},"p50_duration_ns":{"$ref":"#/$defs/Common.DurationNs","description":"P50 duration in nanoseconds"},"p90_duration_ns":{"$ref":"#/$defs/Common.DurationNs","description":"P90 duration in nanoseconds"},"p99_duration_ns":{"$ref":"#/$defs/Common.DurationNs","description":"P99 duration in nanoseconds"},"min_duration_ns":{"$ref":"#/$defs/Common.DurationNs","description":"Minimum duration in nanoseconds"},"max_duration_ns":{"$ref":"#/$defs/Common.DurationNs","description":"Maximum duration in nanoseconds"},"throughput_per_second":{"type":"number","format":"double","description":"Throughput (spans per second)"},"by_service":{"type":"array","items":{"$ref":"#/$defs/OTel.Traces.SpanStatsByDimension"},"description":"Stats grouped by service"},"by_operation":{"type":"array","items":{"$ref":"#/$defs/OTel.Traces.SpanStatsByDimension"},"description":"Stats grouped by operation name"}},"unevaluatedProperties":{"not":{}},"description":"Aggregated span statistics"},"OTel.Traces.SpanStatsByDimension":{"type":"object","required":["dimension","count","avg_duration_ns","error_rate"],"properties":{"dimension":{"type":"string","description":"Dimension value (e.g., service name)"},"count":{"$ref":"#/$defs/Common.Count","description":"Span count for this dimension"},"avg_duration_ns":{"type":"number","format":"double","description":"Average duration in nanoseconds"},"error_rate":{"$ref":"#/$defs/Common.Ratio","description":"Error rate for this dimension"}},"unevaluatedProperties":{"not":{}},"description":"Span statistics for a specific dimension value"},"OTel.Traces.SpanStatus":{"type":"object","required":["code"],"properties":{"code":{"$ref":"#/$defs/OTel.Enums.SpanStatusCode","description":"Status code"},"message":{"type":"string","description":"Status message (only for ERROR status)"}},"unevaluatedProperties":{"not":{}},"description":"Span status"},"OTel.Traces.Trace":{"type":"object","required":["spans"],"properties":{"spans":{"type":"array","items":{"$ref":"#/$defs/OTel.Traces.Span"},"description":"All spans in this trace"}},"unevaluatedProperties":{"not":{}},"allOf":[{"$ref":"#/$defs/OTel.Traces.TraceSummary"}],"description":"Complete trace containing all related spans"},"OTel.Traces.TraceSummary":{"type":"object","required":["trace_id","span_count","duration_ns","start_time","end_time","services","has_error"],"properties":{"trace_id":{"$ref":"#/$defs/Common.TraceId","description":"Trace identifier"},"root_span":{"$ref":"#/$defs/OTel.Traces.Span","description":"Root span of the trace"},"span_count":{"type":"integer","format":"int32","description":"Total span count"},"duration_ns":{"$ref":"#/$defs/Common.DurationNs","description":"Trace duration in nanoseconds"},"start_time":{"type":"string","format":"date-time","description":"Trace start time"},"end_time":{"type":"string","format":"date-time","description":"Trace end time"},"services":{"type":"array","items":{"type":"string"},"description":"Services involved in this trace"},"has_error":{"type":"boolean","description":"Whether trace contains errors"}},"description":"Trace summary without the full span collection"},"Runner.RunnerLogEvents":{"$ref":"#/$defs/Runner.RunnerLogLine"},"Runner.RunnerLogLine":{"type":"object","required":["resource","stream","line"],"properties":{"resource":{"type":"string"},"stream":{"$ref":"#/$defs/Runner.RunnerLogStream"},"line":{"type":"string"}},"unevaluatedProperties":{"not":{}},"description":"One bounded child-process log line exposed by the runner."},"Runner.RunnerLogStream":{"type":"string","enum":["out","err"],"description":"Origin stream for one captured child-process log line."},"Runner.RunnerResourceEvents":{"$ref":"#/$defs/Runner.RunnerResourceState"},"Runner.RunnerResourceKind":{"type":"string","enum":["collector","project","command","stdio","http","inproc"],"description":"Kind of process or connection supervised by the local qyl runner."},"Runner.RunnerResourceLifecycle":{"type":"string","enum":["pending","starting","ready","stopping","stopped","failed"],"description":"Lifecycle state of a resource supervised by the local qyl runner."},"Runner.RunnerResourceState":{"type":"object","required":["name","lifecycle","timestamp"],"properties":{"name":{"type":"string"},"lifecycle":{"$ref":"#/$defs/Runner.RunnerResourceLifecycle"},"timestamp":{"type":"string","format":"date-time"},"kind":{"$ref":"#/$defs/Runner.RunnerResourceKind"},"allocated_port":{"type":"integer","format":"int32","minimum":1,"maximum":65535},"endpoint":{"type":"string","format":"uri"},"last_error":{"type":"string"},"server_identity":{"description":"Opaque SDK server-info entity when this resource is an initialized MCP connection."},"tool_count":{"type":"integer","format":"int32","minimum":0},"restarts":{"type":"integer","format":"int32","minimum":0}},"unevaluatedProperties":{"not":{}},"description":"Current client-visible state of one runner resource."},"Streaming.HeartbeatEvent":{"type":"object","required":["type","timestamp"],"properties":{"type":{"type":"string","enum":["heartbeat"]},"timestamp":{"type":"string","format":"date-time"}},"unevaluatedProperties":{"not":{}},"description":"Keep-alive event emitted while no new log is available."},"Streaming.LogEvents":{"anyOf":[{"$ref":"#/$defs/Streaming.LogStreamEvent"},{"$ref":"#/$defs/Streaming.HeartbeatEvent"}]},"Streaming.LogStreamEvent":{"type":"object","required":["type","data","timestamp"],"properties":{"type":{"type":"string","enum":["log"]},"data":{"$ref":"#/$defs/OTel.Logs.LogRecord"},"timestamp":{"type":"string","format":"date-time"}},"unevaluatedProperties":{"not":{}},"description":"One log delivered by the collector's live stream."},"Workbench.WorkbenchAssertionResult":{"type":"object","required":["assertion_id","kind","status"],"properties":{"assertion_id":{"type":"string"},"kind":{"type":"string"},"status":{"$ref":"#/$defs/Workbench.WorkbenchAssertionStatus"},"message":{"type":"string"},"actual":{}},"unevaluatedProperties":{"not":{}},"description":"Outcome of one assertion with sanitized actual evidence when useful."},"Workbench.WorkbenchAssertionStatus":{"type":"string","enum":["passed","failed","error","skipped"],"description":"Assertion outcome reported by an evaluation."},"Workbench.WorkbenchBuiltinServerConfiguration":{"type":"object","required":["transport","name"],"properties":{"transport":{"type":"string","enum":["builtin"]},"name":{"type":"string","minLength":1}},"unevaluatedProperties":{"not":{}},"description":"Sanitized built-in MCP server configuration."},"Workbench.WorkbenchConnectionSnapshot":{"type":"object","required":["status","changed_at"],"properties":{"status":{"$ref":"#/$defs/Workbench.WorkbenchConnectionStatus"},"changed_at":{"type":"string","format":"date-time"},"connected_at":{"type":"string","format":"date-time"},"disconnected_at":{"type":"string","format":"date-time"},"initialization":{"$ref":"#/$defs/Workbench.WorkbenchInitializationSnapshot"},"recent_error":{"$ref":"#/$defs/Workbench.WorkbenchError"}},"unevaluatedProperties":{"not":{}},"description":"Current connection state and most recent initialization evidence for one MCP server."},"Workbench.WorkbenchConnectionStatus":{"type":"string","enum":["disconnected","connecting","connected","disconnecting","reconnecting","failed"],"description":"Connection lifecycle for one configured MCP server."},"Workbench.WorkbenchDiscoveryCollection":{"type":"object","required":["items","count","complete","discovered_at"],"properties":{"items":{"type":"array","items":{}},"count":{"type":"integer","format":"int32","minimum":0},"complete":{"type":"boolean"},"cursor":{"type":"string"},"next_cursor":{"type":"string"},"discovered_at":{"type":"string","format":"date-time"}},"unevaluatedProperties":{"not":{}},"description":"One discovered MCP entity collection. Every item remains the SDK-validated opaque entity."},"Workbench.WorkbenchDiscoverySnapshot":{"type":"object","required":["server_id","started_at","completed_at","tools","resources","resource_templates","prompts"],"properties":{"server_id":{"$ref":"#/$defs/Workbench.WorkbenchServerId"},"started_at":{"type":"string","format":"date-time"},"completed_at":{"type":"string","format":"date-time"},"tools":{"$ref":"#/$defs/Workbench.WorkbenchDiscoveryCollection"},"resources":{"$ref":"#/$defs/Workbench.WorkbenchDiscoveryCollection"},"resource_templates":{"$ref":"#/$defs/Workbench.WorkbenchDiscoveryCollection"},"prompts":{"$ref":"#/$defs/Workbench.WorkbenchDiscoveryCollection"}},"unevaluatedProperties":{"not":{}},"description":"Complete MCP capability discovery evidence for one server."},"Workbench.WorkbenchEnvironmentSecretReference":{"type":"object","required":["name","secret"],"properties":{"name":{"type":"string","pattern":"^[A-Za-z_][A-Za-z0-9_]*$"},"secret":{"$ref":"#/$defs/Workbench.WorkbenchSecretReference"}},"unevaluatedProperties":{"not":{}},"description":"Environment variable whose value is resolved from a secret reference at connection time."},"Workbench.WorkbenchError":{"type":"object","required":["category","code","message","occurred_at","retryable"],"properties":{"category":{"$ref":"#/$defs/Workbench.WorkbenchErrorCategory"},"code":{"type":"string"},"message":{"type":"string"},"occurred_at":{"type":"string","format":"date-time"},"retryable":{"type":"boolean"},"details":{"description":"Sanitized implementation details with credentials and secret values removed."}},"unevaluatedProperties":{"not":{}},"description":"Typed, sanitized failure captured by the MCP workbench."},"Workbench.WorkbenchErrorCategory":{"type":"string","enum":["authentication","transport","protocol","serialization","schema_validation","tool_error","timeout","cancelled","internal"],"description":"Stable category for a workbench, transport, protocol, or tool execution error."},"Workbench.WorkbenchEvaluationComparisonRequest":{"type":"object","required":["baseline_run_id","candidate_run_id"],"properties":{"baseline_run_id":{"$ref":"#/$defs/Workbench.WorkbenchEvaluationRunId"},"candidate_run_id":{"$ref":"#/$defs/Workbench.WorkbenchEvaluationRunId"}},"unevaluatedProperties":{"not":{}},"description":"Request to compare a baseline MCP evaluation run with a candidate run."},"Workbench.WorkbenchEvaluationExport":{"type":"object","required":["id","run_id","format","status","requested_at"],"properties":{"id":{"$ref":"#/$defs/Workbench.WorkbenchEvaluationExportId"},"run_id":{"$ref":"#/$defs/Workbench.WorkbenchEvaluationRunId"},"format":{"$ref":"#/$defs/Workbench.WorkbenchEvaluationExportFormat"},"status":{"$ref":"#/$defs/Workbench.WorkbenchEvaluationExportStatus"},"requested_at":{"type":"string","format":"date-time"},"completed_at":{"type":"string","format":"date-time"},"media_type":{"type":"string"},"file_name":{"type":"string"},"byte_size":{"$ref":"#/$defs/Common.ByteSize"},"sha256":{"$ref":"#/$defs/Common.Sha256Hash"},"error":{"$ref":"#/$defs/Workbench.WorkbenchError"}},"unevaluatedProperties":{"not":{}},"description":"Metadata for one generated evaluation JSON or readable report artifact."},"Workbench.WorkbenchEvaluationExportAccepted":{"type":"object","required":["export"],"properties":{"export":{"$ref":"#/$defs/Workbench.WorkbenchEvaluationExport"}},"unevaluatedProperties":{"not":{}},"description":"An evaluation export was accepted and continues asynchronously."},"Workbench.WorkbenchEvaluationExportArtifact":{"type":"object","required":["export","payload"],"properties":{"export":{"$ref":"#/$defs/Workbench.WorkbenchEvaluationExport"},"payload":{"$ref":"#/$defs/Workbench.WorkbenchEvaluationExportPayload"}},"unevaluatedProperties":{"not":{}},"description":"Ready evaluation export metadata and its TypeSpec-owned content."},"Workbench.WorkbenchEvaluationExportFormat":{"type":"string","enum":["json","report"],"description":"Supported evaluation export representation."},"Workbench.WorkbenchEvaluationExportId":{"type":"string","minLength":1,"maxLength":128,"description":"Opaque identifier for one generated evaluation export."},"Workbench.WorkbenchEvaluationExportPayload":{"oneOf":[{"$ref":"#/$defs/Workbench.WorkbenchEvaluationJsonExportPayload"},{"$ref":"#/$defs/Workbench.WorkbenchEvaluationReportExportPayload"}],"description":"Exactly one generated evaluation export representation."},"Workbench.WorkbenchEvaluationExportRequest":{"type":"object","required":["format","idempotency_key"],"properties":{"format":{"$ref":"#/$defs/Workbench.WorkbenchEvaluationExportFormat"},"include_protocol_events":{"type":"boolean","default":true},"include_telemetry":{"type":"boolean","default":true},"idempotency_key":{"type":"string","minLength":8,"maxLength":256}},"unevaluatedProperties":{"not":{}},"description":"Request to generate a machine-readable or readable evaluation export."},"Workbench.WorkbenchEvaluationExportStatus":{"type":"string","enum":["pending","ready","failed"],"description":"Lifecycle for generation of an evaluation export artifact."},"Workbench.WorkbenchEvaluationJsonExportPayload":{"type":"object","required":["format","run","protocol_events","telemetry","exported_at"],"properties":{"format":{"type":"string","enum":["json"]},"run":{"$ref":"#/$defs/Workbench.WorkbenchEvaluationRun"},"protocol_events":{"type":"array","items":{"$ref":"#/$defs/Workbench.WorkbenchProtocolEvent"}},"telemetry":{"type":"array","items":{"$ref":"#/$defs/Workbench.WorkbenchExecutionTelemetryResponse"}},"exported_at":{"type":"string","format":"date-time"}},"unevaluatedProperties":{"not":{}},"description":"Machine-readable evaluation export with retained execution, protocol, and optional telemetry evidence."},"Workbench.WorkbenchEvaluationReportExportPayload":{"type":"object","required":["format","markdown","exported_at"],"properties":{"format":{"type":"string","enum":["report"]},"markdown":{"type":"string"},"exported_at":{"type":"string","format":"date-time"}},"unevaluatedProperties":{"not":{}},"description":"Human-readable Markdown evaluation report."},"Workbench.WorkbenchEvaluationResultStatus":{"type":"string","enum":["passed","failed","error","skipped"],"description":"Outcome for one test case within an evaluation run."},"Workbench.WorkbenchEvaluationRun":{"type":"object","required":["id","workspace_id","test_cases","status","created_at","results"],"properties":{"id":{"$ref":"#/$defs/Workbench.WorkbenchEvaluationRunId"},"workspace_id":{"$ref":"#/$defs/Workbench.WorkbenchWorkspaceId"},"suite":{"$ref":"#/$defs/Workbench.WorkbenchEvaluationSuiteSnapshot"},"test_cases":{"type":"array","items":{"$ref":"#/$defs/Workbench.WorkbenchEvaluationTestCaseSnapshot"}},"status":{"$ref":"#/$defs/Workbench.WorkbenchEvaluationRunStatus"},"created_at":{"type":"string","format":"date-time"},"started_at":{"type":"string","format":"date-time"},"completed_at":{"type":"string","format":"date-time"},"results":{"type":"array","items":{"$ref":"#/$defs/Workbench.WorkbenchEvaluationTestResult"}},"summary":{"$ref":"#/$defs/Workbench.WorkbenchEvaluationSummary"},"confirmation":{"$ref":"#/$defs/Workbench.WorkbenchExecutionConfirmationEvidence"},"telemetry":{"$ref":"#/$defs/Workbench.WorkbenchTelemetryCorrelation"},"error":{"$ref":"#/$defs/Workbench.WorkbenchError"}},"unevaluatedProperties":{"not":{}},"description":"Asynchronous MCP evaluation run with retained per-test evidence."},"Workbench.WorkbenchEvaluationRunAccepted":{"type":"object","required":["run"],"properties":{"run":{"$ref":"#/$defs/Workbench.WorkbenchEvaluationRun"}},"unevaluatedProperties":{"not":{}},"description":"An MCP evaluation run was accepted and continues asynchronously."},"Workbench.WorkbenchEvaluationRunComparison":{"type":"object","required":["baseline_run_id","candidate_run_id","baseline","candidate","success_rate_delta","reliability_delta","tests","compared_at"],"properties":{"baseline_run_id":{"$ref":"#/$defs/Workbench.WorkbenchEvaluationRunId"},"candidate_run_id":{"$ref":"#/$defs/Workbench.WorkbenchEvaluationRunId"},"baseline":{"$ref":"#/$defs/Workbench.WorkbenchEvaluationSummary"},"candidate":{"$ref":"#/$defs/Workbench.WorkbenchEvaluationSummary"},"success_rate_delta":{"type":"number","format":"double"},"reliability_delta":{"type":"number","format":"double"},"p95_duration_delta_ms":{"type":"number","format":"double"},"token_delta":{"type":"integer","format":"int64"},"cost_delta_usd":{"type":"number","format":"double"},"tests":{"type":"array","items":{"$ref":"#/$defs/Workbench.WorkbenchEvaluationTestComparison"}},"compared_at":{"type":"string","format":"date-time"}},"unevaluatedProperties":{"not":{}},"description":"Aggregate comparison of two completed MCP evaluation runs."},"Workbench.WorkbenchEvaluationRunId":{"type":"string","minLength":1,"maxLength":128,"description":"Opaque identifier for one MCP evaluation run."},"Workbench.WorkbenchEvaluationRunPage":{"type":"object","required":["runs"],"properties":{"runs":{"type":"array","items":{"$ref":"#/$defs/Workbench.WorkbenchEvaluationRun"}},"next_cursor":{"type":"string"}},"unevaluatedProperties":{"not":{}},"description":"Cursor page of MCP evaluation runs."},"Workbench.WorkbenchEvaluationRunRequest":{"type":"object","required":["idempotency_key"],"properties":{"idempotency_key":{"type":"string","minLength":8,"maxLength":256},"confirmation":{"$ref":"#/$defs/Workbench.WorkbenchExecutionConfirmationRequest"},"concurrency":{"type":"integer","format":"int32","minimum":1,"maximum":50,"default":1},"fail_fast":{"type":"boolean","default":false}},"description":"Request to execute one test case or suite asynchronously."},"Workbench.WorkbenchEvaluationRunStatus":{"type":"string","enum":["queued","running","completed","failed","cancelled"],"description":"Lifecycle for an MCP evaluation run."},"Workbench.WorkbenchEvaluationSuiteSnapshot":{"type":"object","required":["id","name","test_case_ids","tags"],"properties":{"id":{"$ref":"#/$defs/Workbench.WorkbenchSuiteId"},"name":{"type":"string"},"description":{"type":"string"},"test_case_ids":{"type":"array","items":{"$ref":"#/$defs/Workbench.WorkbenchTestCaseId"}},"tags":{"type":"array","items":{"type":"string"}}},"unevaluatedProperties":{"not":{}},"description":"Immutable suite definition captured when an evaluation run starts."},"Workbench.WorkbenchEvaluationSummary":{"type":"object","required":["total","passed","failed","errors","skipped","success_rate","reliability"],"properties":{"total":{"type":"integer","format":"int32","minimum":0},"passed":{"type":"integer","format":"int32","minimum":0},"failed":{"type":"integer","format":"int32","minimum":0},"errors":{"type":"integer","format":"int32","minimum":0},"skipped":{"type":"integer","format":"int32","minimum":0},"success_rate":{"$ref":"#/$defs/Common.Ratio"},"reliability":{"$ref":"#/$defs/Common.Ratio"},"mean_duration_ms":{"$ref":"#/$defs/Common.DurationMs"},"p50_duration_ms":{"$ref":"#/$defs/Common.DurationMs"},"p95_duration_ms":{"$ref":"#/$defs/Common.DurationMs"},"p99_duration_ms":{"$ref":"#/$defs/Common.DurationMs"},"token_usage":{"$ref":"#/$defs/Workbench.WorkbenchExecutionTokenUsage"},"cost":{"$ref":"#/$defs/Workbench.WorkbenchExecutionCost"}},"unevaluatedProperties":{"not":{}},"description":"Aggregate correctness, reliability, latency, usage, and cost for an MCP evaluation run."},"Workbench.WorkbenchEvaluationTestCaseSnapshot":{"type":"object","required":["id","server_id","name","tool_name","timeout_ms","assertions","tags"],"properties":{"id":{"$ref":"#/$defs/Workbench.WorkbenchTestCaseId"},"server_id":{"$ref":"#/$defs/Workbench.WorkbenchServerId"},"name":{"type":"string"},"description":{"type":"string"},"tool_name":{"type":"string"},"arguments":{},"timeout_ms":{"type":"integer","format":"int32"},"assertions":{"type":"array","items":{"$ref":"#/$defs/Workbench.WorkbenchTestAssertion"}},"tags":{"type":"array","items":{"type":"string"}}},"unevaluatedProperties":{"not":{}},"description":"Immutable reusable-test definition captured when an evaluation run starts."},"Workbench.WorkbenchEvaluationTestComparison":{"type":"object","required":["test_case_id","status"],"properties":{"test_case_id":{"$ref":"#/$defs/Workbench.WorkbenchTestCaseId"},"status":{"$ref":"#/$defs/Workbench.WorkbenchRegressionStatus"},"baseline_status":{"$ref":"#/$defs/Workbench.WorkbenchEvaluationResultStatus"},"candidate_status":{"$ref":"#/$defs/Workbench.WorkbenchEvaluationResultStatus"},"duration_delta_ms":{"type":"number","format":"double"}},"unevaluatedProperties":{"not":{}},"description":"Per-test comparison across a baseline and candidate MCP evaluation run."},"Workbench.WorkbenchEvaluationTestResult":{"type":"object","required":["test_case","status","assertions"],"properties":{"test_case":{"$ref":"#/$defs/Workbench.WorkbenchEvaluationTestCaseSnapshot"},"execution_id":{"$ref":"#/$defs/Workbench.WorkbenchExecutionId"},"status":{"$ref":"#/$defs/Workbench.WorkbenchEvaluationResultStatus"},"started_at":{"type":"string","format":"date-time"},"completed_at":{"type":"string","format":"date-time"},"duration_ms":{"$ref":"#/$defs/Common.DurationMs"},"assertions":{"type":"array","items":{"$ref":"#/$defs/Workbench.WorkbenchAssertionResult"}},"error":{"$ref":"#/$defs/Workbench.WorkbenchError"}},"unevaluatedProperties":{"not":{}},"description":"One test-case result retained by an MCP evaluation run."},"Workbench.WorkbenchExactAssertion":{"type":"object","required":["id","kind","expected"],"properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["exact"]},"path":{"type":"string"},"expected":{}},"unevaluatedProperties":{"not":{}},"description":"Exact JSON value assertion at an optional JSON Pointer path."},"Workbench.WorkbenchExecutionAccepted":{"type":"object","required":["execution"],"properties":{"execution":{"$ref":"#/$defs/Workbench.WorkbenchExecutionRecord"}},"unevaluatedProperties":{"not":{}},"description":"An MCP execution was accepted and continues asynchronously."},"Workbench.WorkbenchExecutionCancelRequest":{"type":"object","required":["idempotency_key"],"properties":{"reason":{"type":"string","maxLength":1000},"idempotency_key":{"type":"string","minLength":8,"maxLength":256}},"unevaluatedProperties":{"not":{}},"description":"Request to cancel an asynchronous MCP execution where the transport permits cancellation."},"Workbench.WorkbenchExecutionConfirmationEvidence":{"type":"object","required":["acknowledged","acknowledgement","confirmed_at"],"properties":{"acknowledged":{"type":"boolean","enum":[true]},"acknowledgement":{"type":"string"},"confirmed_at":{"type":"string","format":"date-time"}},"unevaluatedProperties":{"not":{}},"description":"Server-timestamped confirmation evidence persisted for a consequential MCP tool invocation."},"Workbench.WorkbenchExecutionConfirmationRequest":{"type":"object","required":["acknowledged","acknowledgement"],"properties":{"acknowledged":{"type":"boolean","enum":[true]},"acknowledgement":{"type":"string"}},"unevaluatedProperties":{"not":{}},"description":"Client acknowledgement supplied when requesting a consequential MCP tool invocation."},"Workbench.WorkbenchExecutionCost":{"type":"object","required":["amount_usd","estimated"],"properties":{"amount_usd":{"$ref":"#/$defs/Common.CostUsd"},"estimated":{"type":"boolean"},"source":{"type":"string"}},"unevaluatedProperties":{"not":{}},"description":"USD cost reported or estimated for one MCP execution when available."},"Workbench.WorkbenchExecutionEffect":{"type":"string","enum":["read_only","consequential","unknown"],"description":"How consequential the workbench considers an MCP tool invocation."},"Workbench.WorkbenchExecutionId":{"type":"string","minLength":1,"maxLength":128,"description":"Opaque identifier for one asynchronous MCP tool execution."},"Workbench.WorkbenchExecutionPage":{"type":"object","required":["executions"],"properties":{"executions":{"type":"array","items":{"$ref":"#/$defs/Workbench.WorkbenchExecutionRecord"}},"next_cursor":{"type":"string"}},"unevaluatedProperties":{"not":{}},"description":"Cursor page of MCP execution records."},"Workbench.WorkbenchExecutionRecord":{"type":"object","required":["id","workspace_id","server_id","request","effect","status","created_at","attempt_count","retry_count"],"properties":{"id":{"$ref":"#/$defs/Workbench.WorkbenchExecutionId"},"workspace_id":{"$ref":"#/$defs/Workbench.WorkbenchWorkspaceId"},"server_id":{"$ref":"#/$defs/Workbench.WorkbenchServerId"},"request":{"$ref":"#/$defs/Workbench.WorkbenchExecutionRequest"},"effect":{"$ref":"#/$defs/Workbench.WorkbenchExecutionEffect","description":"Server-derived effect from the SDK-validated discovered Tool and its annotations."},"confirmation":{"$ref":"#/$defs/Workbench.WorkbenchExecutionConfirmationEvidence"},"status":{"$ref":"#/$defs/Workbench.WorkbenchExecutionStatus"},"created_at":{"type":"string","format":"date-time"},"started_at":{"type":"string","format":"date-time"},"completed_at":{"type":"string","format":"date-time"},"duration_ms":{"$ref":"#/$defs/Common.DurationMs"},"attempt_count":{"type":"integer","format":"int32","minimum":0},"retry_count":{"type":"integer","format":"int32","minimum":0},"cancel_requested_at":{"type":"string","format":"date-time"},"cancelled_at":{"type":"string","format":"date-time"},"result":{"description":"Complete opaque SDK tool-call result after output sanitization."},"error":{"$ref":"#/$defs/Workbench.WorkbenchError"},"token_usage":{"$ref":"#/$defs/Workbench.WorkbenchExecutionTokenUsage"},"cost":{"$ref":"#/$defs/Workbench.WorkbenchExecutionCost"},"telemetry":{"$ref":"#/$defs/Workbench.WorkbenchTelemetryCorrelation"}},"unevaluatedProperties":{"not":{}},"description":"Persisted asynchronous execution evidence. SDK tool results remain opaque."},"Workbench.WorkbenchExecutionRequest":{"type":"object","required":["tool_name","timeout_ms","idempotency_key"],"properties":{"tool_name":{"type":"string","minLength":1},"arguments":{"description":"Opaque tool arguments validated against the SDK tool schema before execution."},"timeout_ms":{"type":"integer","format":"int32","minimum":1,"maximum":3600000,"default":30000},"confirmation":{"$ref":"#/$defs/Workbench.WorkbenchExecutionConfirmationRequest"},"idempotency_key":{"type":"string","minLength":8,"maxLength":256}},"unevaluatedProperties":{"not":{}},"description":"Request to asynchronously invoke one discovered MCP tool."},"Workbench.WorkbenchExecutionStatus":{"type":"string","enum":["queued","running","cancelling","succeeded","failed","cancelled","timed_out"],"description":"Asynchronous MCP execution lifecycle."},"Workbench.WorkbenchExecutionTelemetryResponse":{"type":"object","required":["signals","correlation","traces","logs","queried_at","self_export_suppressed"],"properties":{"signals":{"$ref":"#/$defs/Workbench.WorkbenchTelemetrySignalSummary"},"correlation":{"$ref":"#/$defs/Workbench.WorkbenchTelemetryCorrelation"},"traces":{"type":"array","items":{"$ref":"#/$defs/OTel.Traces.Trace"}},"logs":{"type":"array","items":{"$ref":"#/$defs/OTel.Logs.LogRecord"}},"queried_at":{"type":"string","format":"date-time"},"self_export_suppressed":{"type":"boolean","enum":[true],"description":"Confirms that workbench telemetry querying is excluded from workbench export instrumentation."}},"unevaluatedProperties":{"not":{}},"description":"Correlated Qyl observability evidence for one MCP execution. Signals unsupported by the connected Qyl read API are explicitly unavailable."},"Workbench.WorkbenchExecutionTokenUsage":{"type":"object","required":["estimated"],"properties":{"input_tokens":{"$ref":"#/$defs/Common.TokenCount"},"output_tokens":{"$ref":"#/$defs/Common.TokenCount"},"total_tokens":{"$ref":"#/$defs/Common.TokenCount"},"estimated":{"type":"boolean"}},"unevaluatedProperties":{"not":{}},"description":"Token usage reported or derived for one MCP execution when available."},"Workbench.WorkbenchExecutionUpdateEvents":{"$ref":"#/$defs/Workbench.WorkbenchExecutionRecord"},"Workbench.WorkbenchHeaderSecretReference":{"type":"object","required":["name","secret"],"properties":{"name":{"type":"string","minLength":1},"secret":{"$ref":"#/$defs/Workbench.WorkbenchSecretReference"},"scheme":{"$ref":"#/$defs/Workbench.WorkbenchHeaderSecretScheme","description":"Optional HTTP authentication scheme applied to the resolved secret. Omit for a raw header value."}},"unevaluatedProperties":{"not":{}},"description":"HTTP header whose value is resolved from a secret reference at connection time."},"Workbench.WorkbenchHeaderSecretScheme":{"type":"string","enum":["bearer","basic"],"description":"HTTP authentication scheme applied to an environment-resolved header secret."},"Workbench.WorkbenchInitializationSnapshot":{"type":"object","required":["initialized_at","protocol_version","server_identity","capabilities","result"],"properties":{"initialized_at":{"type":"string","format":"date-time"},"protocol_version":{"type":"string"},"server_identity":{"description":"Opaque SDK server-info entity."},"capabilities":{"description":"Opaque SDK server-capabilities entity."},"instructions":{"type":"string"},"session_info":{"description":"Opaque SDK session information when the transport exposes it."},"result":{"description":"Complete opaque SDK initialize result."}},"unevaluatedProperties":{"not":{}},"description":"SDK-validated MCP initialize result projected through a Qyl-owned connection snapshot."},"Workbench.WorkbenchLatencyAssertion":{"type":"object","required":["id","kind","max_duration_ms"],"properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["latency"]},"max_duration_ms":{"type":"number","format":"double","minimum":0}},"unevaluatedProperties":{"not":{}},"description":"Maximum execution latency assertion."},"Workbench.WorkbenchPartialAssertion":{"type":"object","required":["id","kind","expected"],"properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["partial"]},"path":{"type":"string"},"expected":{}},"unevaluatedProperties":{"not":{}},"description":"Partial JSON object or array containment assertion at an optional JSON Pointer path."},"Workbench.WorkbenchPatternAssertion":{"type":"object","required":["id","kind","pattern"],"properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["pattern"]},"path":{"type":"string"},"pattern":{"type":"string"},"flags":{"type":"string"}},"unevaluatedProperties":{"not":{}},"description":"Regular-expression assertion at an optional JSON Pointer path."},"Workbench.WorkbenchPrincipalIdentity":{"type":"object","required":["id","local"],"properties":{"id":{"type":"string"},"display_name":{"type":"string"},"local":{"type":"boolean","enum":[true]}},"unevaluatedProperties":{"not":{}},"description":"Authenticated local principal metadata. No credential or session token is represented here."},"Workbench.WorkbenchProtocolDirection":{"type":"string","enum":["client_to_server","server_to_client","local"],"description":"Direction of a captured MCP protocol or transport event."},"Workbench.WorkbenchProtocolEvent":{"type":"object","required":["id","server_id","direction","kind","timestamp","redaction_applied"],"properties":{"id":{"type":"string"},"server_id":{"$ref":"#/$defs/Workbench.WorkbenchServerId"},"direction":{"$ref":"#/$defs/Workbench.WorkbenchProtocolDirection"},"kind":{"$ref":"#/$defs/Workbench.WorkbenchProtocolEventKind"},"method":{"type":"string"},"request_id":{"description":"Opaque JSON-RPC request identifier, which may be a string or number."},"timestamp":{"type":"string","format":"date-time"},"duration_ms":{"$ref":"#/$defs/Common.DurationMs"},"payload":{"description":"Opaque SDK message or transport payload after credential and secret redaction."},"redaction_applied":{"type":"boolean","enum":[true]},"execution_id":{"$ref":"#/$defs/Workbench.WorkbenchExecutionId"},"trace_id":{"$ref":"#/$defs/Common.TraceId"}},"unevaluatedProperties":{"not":{}},"description":"Chronological diagnostic event carrying only a redacted opaque SDK message or local transport payload."},"Workbench.WorkbenchProtocolEventKind":{"type":"string","enum":["request","response","notification","error","transport"],"description":"Kind of captured MCP protocol or transport event."},"Workbench.WorkbenchProtocolEventPage":{"type":"object","required":["events"],"properties":{"events":{"type":"array","items":{"$ref":"#/$defs/Workbench.WorkbenchProtocolEvent"}},"next_cursor":{"type":"string"}},"unevaluatedProperties":{"not":{}},"description":"Cursor page of chronological MCP protocol diagnostic events."},"Workbench.WorkbenchProtocolEvents":{"$ref":"#/$defs/Workbench.WorkbenchProtocolEvent"},"Workbench.WorkbenchRegressionStatus":{"type":"string","enum":["improved","regressed","unchanged","added","removed"],"description":"Regression classification for one test case across two evaluation runs."},"Workbench.WorkbenchSchemaAssertion":{"type":"object","required":["id","kind","schema"],"properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["schema"]},"path":{"type":"string"},"schema":{}},"unevaluatedProperties":{"not":{}},"description":"JSON Schema assertion at an optional JSON Pointer path."},"Workbench.WorkbenchSecretReference":{"type":"object","required":["source","environment_variable"],"properties":{"source":{"type":"string","enum":["environment"]},"environment_variable":{"type":"string","pattern":"^[A-Za-z_][A-Za-z0-9_]*$"}},"unevaluatedProperties":{"not":{}},"description":"Reference to a secret resolved from the workbench environment. The environment value is never part of this contract."},"Workbench.WorkbenchServer":{"type":"object","required":["id","workspace_id","name","configuration","connection","created_at","updated_at"],"properties":{"id":{"$ref":"#/$defs/Workbench.WorkbenchServerId"},"workspace_id":{"$ref":"#/$defs/Workbench.WorkbenchWorkspaceId"},"name":{"type":"string"},"description":{"type":"string"},"configuration":{"$ref":"#/$defs/Workbench.WorkbenchServerConfiguration"},"connection":{"$ref":"#/$defs/Workbench.WorkbenchConnectionSnapshot"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}},"unevaluatedProperties":{"not":{}},"description":"Persisted sanitized MCP server configuration and current runtime connection state."},"Workbench.WorkbenchServerActionAccepted":{"type":"object","required":["server"],"properties":{"server":{"$ref":"#/$defs/Workbench.WorkbenchServer"}},"unevaluatedProperties":{"not":{}},"description":"An MCP server connection action was accepted and continues asynchronously."},"Workbench.WorkbenchServerConfiguration":{"oneOf":[{"$ref":"#/$defs/Workbench.WorkbenchStdioServerConfiguration"},{"$ref":"#/$defs/Workbench.WorkbenchStreamableHttpServerConfiguration"},{"$ref":"#/$defs/Workbench.WorkbenchBuiltinServerConfiguration"}],"description":"Exactly one sanitized MCP server transport configuration."},"Workbench.WorkbenchServerCreateRequest":{"type":"object","required":["name","configuration"],"properties":{"name":{"type":"string","minLength":1,"maxLength":120},"description":{"type":"string","maxLength":2000},"configuration":{"$ref":"#/$defs/Workbench.WorkbenchServerConfiguration"},"auto_connect":{"type":"boolean","default":false}},"unevaluatedProperties":{"not":{}},"description":"Request to add an MCP server configuration to a workspace."},"Workbench.WorkbenchServerId":{"type":"string","minLength":1,"maxLength":128,"description":"Opaque identifier for one configured MCP server."},"Workbench.WorkbenchServerListResponse":{"type":"object","required":["servers"],"properties":{"servers":{"type":"array","items":{"$ref":"#/$defs/Workbench.WorkbenchServer"}}},"unevaluatedProperties":{"not":{}},"description":"Configured MCP servers in one authenticated workspace."},"Workbench.WorkbenchServerUpdateRequest":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"description":{"type":"string","maxLength":2000},"configuration":{"$ref":"#/$defs/Workbench.WorkbenchServerConfiguration"}},"unevaluatedProperties":{"not":{}},"description":"Request to replace mutable MCP server metadata or its complete sanitized transport configuration."},"Workbench.WorkbenchSession":{"type":"object","required":["id","principal","workspace_ids","created_at"],"properties":{"id":{"$ref":"#/$defs/Workbench.WorkbenchSessionId"},"principal":{"$ref":"#/$defs/Workbench.WorkbenchPrincipalIdentity"},"workspace_ids":{"type":"array","items":{"$ref":"#/$defs/Workbench.WorkbenchWorkspaceId"}},"active_workspace_id":{"$ref":"#/$defs/Workbench.WorkbenchWorkspaceId"},"created_at":{"type":"string","format":"date-time"},"expires_at":{"type":"string","format":"date-time"}},"description":"Metadata for the authenticated local workbench session. The HttpOnly session cookie is never returned in this model."},"Workbench.WorkbenchSessionBootstrapResponse":{"type":"object","unevaluatedProperties":{"not":{}},"allOf":[{"$ref":"#/$defs/Workbench.WorkbenchSession"}],"description":"Loopback session bootstrap response. The cookie value is carried only in Set-Cookie and never in the JSON body."},"Workbench.WorkbenchSessionId":{"type":"string","minLength":1,"maxLength":128,"description":"Opaque identifier for one authenticated local workbench session.\\n\\nDeliberately not Qyl.Api.Contracts.Common.SessionId, and not joinable with it.\\nA workbench session is a loopback browser session owned by the local runner: it\\nbegins at cookie bootstrap, ends at logout or expiry, and never leaves the\\nmachine. A Common.SessionId is an OTel telemetry session observed in ingested\\nspans, owned by the instrumented application, with its own lifetime and its own\\ncontinuity chain. The two have no common issuer, so equal values would be\\ncoincidence. Correlate a workbench execution to telemetry through\\nWorkbenchTelemetryCorrelation.traceIds, never by comparing session identifiers."},"Workbench.WorkbenchStatusAssertion":{"type":"object","required":["id","kind","expected"],"properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["status"]},"expected":{"type":"array","items":{"$ref":"#/$defs/Workbench.WorkbenchExecutionStatus"},"minItems":1}},"unevaluatedProperties":{"not":{}},"description":"Execution-status assertion for an MCP test case."},"Workbench.WorkbenchStdioServerConfiguration":{"type":"object","required":["transport","command"],"properties":{"transport":{"type":"string","enum":["stdio"]},"command":{"type":"string","minLength":1},"arguments":{"type":"array","items":{"type":"string"}},"working_directory":{"type":"string"},"environment":{"type":"array","items":{"$ref":"#/$defs/Workbench.WorkbenchEnvironmentSecretReference"}}},"unevaluatedProperties":{"not":{}},"description":"Sanitized local stdio transport configuration. Arguments must not contain secrets."},"Workbench.WorkbenchStreamableHttpServerConfiguration":{"type":"object","required":["transport","endpoint"],"properties":{"transport":{"type":"string","enum":["streamable_http"]},"endpoint":{"type":"string","format":"uri"},"headers":{"type":"array","items":{"$ref":"#/$defs/Workbench.WorkbenchHeaderSecretReference"}}},"unevaluatedProperties":{"not":{}},"description":"Sanitized MCP Streamable HTTP transport configuration."},"Workbench.WorkbenchSuiteId":{"type":"string","minLength":1,"maxLength":128,"description":"Opaque identifier for one reusable MCP test suite."},"Workbench.WorkbenchSuiteRunRequest":{"type":"object","properties":{"selected_test_case_ids":{"type":"array","items":{"$ref":"#/$defs/Workbench.WorkbenchTestCaseId"},"minItems":1}},"unevaluatedProperties":{"not":{}},"allOf":[{"$ref":"#/$defs/Workbench.WorkbenchEvaluationRunRequest"}],"description":"Request to run a complete suite or an explicit subset of its persisted test cases asynchronously."},"Workbench.WorkbenchTelemetryAvailability":{"type":"string","enum":["available","partial","unavailable"],"description":"Whether correlated Qyl observability evidence was available."},"Workbench.WorkbenchTelemetryCorrelation":{"type":"object","required":["trace_ids","span_ids"],"properties":{"execution_id":{"$ref":"#/$defs/Workbench.WorkbenchExecutionId"},"evaluation_run_id":{"$ref":"#/$defs/Workbench.WorkbenchEvaluationRunId"},"test_case_id":{"$ref":"#/$defs/Workbench.WorkbenchTestCaseId"},"trace_ids":{"type":"array","items":{"$ref":"#/$defs/Common.TraceId"}},"span_ids":{"type":"array","items":{"$ref":"#/$defs/Common.SpanId"}}},"unevaluatedProperties":{"not":{}},"description":"Qyl observability identifiers correlating workbench, MCP, and downstream activity."},"Workbench.WorkbenchTelemetrySignalAvailability":{"type":"object","required":["status","item_count"],"properties":{"status":{"$ref":"#/$defs/Workbench.WorkbenchTelemetryAvailability"},"unavailable_reason":{"type":"string"},"item_count":{"type":"integer","format":"int32","minimum":0}},"unevaluatedProperties":{"not":{}},"description":"Availability and retained item count for one correlated Qyl telemetry signal."},"Workbench.WorkbenchTelemetrySignalSummary":{"type":"object","required":["traces","logs","exceptions","tool_call_events"],"properties":{"traces":{"$ref":"#/$defs/Workbench.WorkbenchTelemetrySignalAvailability"},"logs":{"$ref":"#/$defs/Workbench.WorkbenchTelemetrySignalAvailability"},"exceptions":{"$ref":"#/$defs/Workbench.WorkbenchTelemetrySignalAvailability"},"tool_call_events":{"$ref":"#/$defs/Workbench.WorkbenchTelemetrySignalAvailability"}},"unevaluatedProperties":{"not":{}},"description":"Per-signal availability for correlated workbench observability evidence."},"Workbench.WorkbenchTestAssertion":{"oneOf":[{"$ref":"#/$defs/Workbench.WorkbenchStatusAssertion"},{"$ref":"#/$defs/Workbench.WorkbenchExactAssertion"},{"$ref":"#/$defs/Workbench.WorkbenchPartialAssertion"},{"$ref":"#/$defs/Workbench.WorkbenchSchemaAssertion"},{"$ref":"#/$defs/Workbench.WorkbenchPatternAssertion"},{"$ref":"#/$defs/Workbench.WorkbenchLatencyAssertion"}],"description":"Exactly one supported MCP evaluation assertion."},"Workbench.WorkbenchTestCase":{"type":"object","required":["id","workspace_id","server_id","name","tool_name","timeout_ms","assertions","tags","created_at","updated_at"],"properties":{"id":{"$ref":"#/$defs/Workbench.WorkbenchTestCaseId"},"workspace_id":{"$ref":"#/$defs/Workbench.WorkbenchWorkspaceId"},"server_id":{"$ref":"#/$defs/Workbench.WorkbenchServerId"},"name":{"type":"string"},"description":{"type":"string"},"tool_name":{"type":"string"},"arguments":{},"timeout_ms":{"type":"integer","format":"int32","minimum":1,"maximum":3600000},"assertions":{"type":"array","items":{"$ref":"#/$defs/Workbench.WorkbenchTestAssertion"}},"tags":{"type":"array","items":{"type":"string"}},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}},"unevaluatedProperties":{"not":{}},"description":"Reusable tool invocation and assertions persisted in one workspace."},"Workbench.WorkbenchTestCaseCreateRequest":{"type":"object","required":["server_id","name","tool_name","timeout_ms","assertions"],"properties":{"server_id":{"$ref":"#/$defs/Workbench.WorkbenchServerId"},"name":{"type":"string","minLength":1,"maxLength":160},"description":{"type":"string","maxLength":4000},"tool_name":{"type":"string","minLength":1},"arguments":{},"timeout_ms":{"type":"integer","format":"int32","minimum":1,"maximum":3600000,"default":30000},"assertions":{"type":"array","items":{"$ref":"#/$defs/Workbench.WorkbenchTestAssertion"},"minItems":1},"tags":{"type":"array","items":{"type":"string"}}},"unevaluatedProperties":{"not":{}},"description":"Request to create a reusable MCP test case."},"Workbench.WorkbenchTestCaseId":{"type":"string","minLength":1,"maxLength":128,"description":"Opaque identifier for one reusable MCP test case."},"Workbench.WorkbenchTestCasePage":{"type":"object","required":["test_cases"],"properties":{"test_cases":{"type":"array","items":{"$ref":"#/$defs/Workbench.WorkbenchTestCase"}},"next_cursor":{"type":"string"}},"unevaluatedProperties":{"not":{}},"description":"Cursor page of reusable MCP test cases."},"Workbench.WorkbenchTestCaseRunRequest":{"type":"object","unevaluatedProperties":{"not":{}},"allOf":[{"$ref":"#/$defs/Workbench.WorkbenchEvaluationRunRequest"}],"description":"Request to run one persisted MCP test case asynchronously."},"Workbench.WorkbenchTestCaseUpdateRequest":{"type":"object","properties":{"server_id":{"$ref":"#/$defs/Workbench.WorkbenchServerId"},"name":{"type":"string","minLength":1,"maxLength":160},"description":{"type":"string","maxLength":4000},"tool_name":{"type":"string","minLength":1},"arguments":{},"timeout_ms":{"type":"integer","format":"int32","minimum":1,"maximum":3600000},"assertions":{"type":"array","items":{"$ref":"#/$defs/Workbench.WorkbenchTestAssertion"},"minItems":1},"tags":{"type":"array","items":{"type":"string"}}},"unevaluatedProperties":{"not":{}},"description":"Request to update mutable MCP test-case fields."},"Workbench.WorkbenchTestSuite":{"type":"object","required":["id","workspace_id","name","test_case_ids","tags","created_at","updated_at"],"properties":{"id":{"$ref":"#/$defs/Workbench.WorkbenchSuiteId"},"workspace_id":{"$ref":"#/$defs/Workbench.WorkbenchWorkspaceId"},"name":{"type":"string"},"description":{"type":"string"},"test_case_ids":{"type":"array","items":{"$ref":"#/$defs/Workbench.WorkbenchTestCaseId"},"minItems":1},"tags":{"type":"array","items":{"type":"string"}},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}},"unevaluatedProperties":{"not":{}},"description":"Reusable ordered group of MCP test cases."},"Workbench.WorkbenchTestSuiteCreateRequest":{"type":"object","required":["name","test_case_ids"],"properties":{"name":{"type":"string","minLength":1,"maxLength":160},"description":{"type":"string","maxLength":4000},"test_case_ids":{"type":"array","items":{"$ref":"#/$defs/Workbench.WorkbenchTestCaseId"},"minItems":1},"tags":{"type":"array","items":{"type":"string"}}},"unevaluatedProperties":{"not":{}},"description":"Request to create a reusable MCP test suite."},"Workbench.WorkbenchTestSuitePage":{"type":"object","required":["suites"],"properties":{"suites":{"type":"array","items":{"$ref":"#/$defs/Workbench.WorkbenchTestSuite"}},"next_cursor":{"type":"string"}},"unevaluatedProperties":{"not":{}},"description":"Cursor page of reusable MCP test suites."},"Workbench.WorkbenchTestSuiteUpdateRequest":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":160},"description":{"type":"string","maxLength":4000},"test_case_ids":{"type":"array","items":{"$ref":"#/$defs/Workbench.WorkbenchTestCaseId"},"minItems":1},"tags":{"type":"array","items":{"type":"string"}}},"unevaluatedProperties":{"not":{}},"description":"Request to update mutable MCP test-suite fields."},"Workbench.WorkbenchToolInputMode":{"type":"string","enum":["form","json"],"description":"Preferred tool-argument editor for one authenticated workspace."},"Workbench.WorkbenchTransportKind":{"type":"string","enum":["stdio","streamable_http","builtin"],"description":"Supported MCP server transport owned by the local workbench."},"Workbench.WorkbenchWorkspace":{"type":"object","required":["id","owner_id","name","created_at","updated_at"],"properties":{"id":{"$ref":"#/$defs/Workbench.WorkbenchWorkspaceId"},"owner_id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}},"unevaluatedProperties":{"not":{}},"description":"One isolated MCP workbench workspace owned by the authenticated local principal."},"Workbench.WorkbenchWorkspaceCreateRequest":{"type":"object","required":["name"],"properties":{"name":{"type":"string","minLength":1,"maxLength":120},"description":{"type":"string","maxLength":2000}},"unevaluatedProperties":{"not":{}},"description":"Request to create an isolated MCP workbench workspace."},"Workbench.WorkbenchWorkspaceId":{"type":"string","minLength":1,"maxLength":128,"description":"Opaque identifier for one MCP workbench workspace."},"Workbench.WorkbenchWorkspaceListResponse":{"type":"object","required":["workspaces"],"properties":{"workspaces":{"type":"array","items":{"$ref":"#/$defs/Workbench.WorkbenchWorkspace"}}},"unevaluatedProperties":{"not":{}},"description":"Workspaces visible to the authenticated local session."},"Workbench.WorkbenchWorkspacePreferences":{"type":"object","required":["workspace_id","input_mode","compact_mode","updated_at"],"properties":{"workspace_id":{"$ref":"#/$defs/Workbench.WorkbenchWorkspaceId"},"selected_server_id":{"$ref":"#/$defs/Workbench.WorkbenchServerId"},"selected_tool_name":{"type":"string","maxLength":1024},"input_mode":{"$ref":"#/$defs/Workbench.WorkbenchToolInputMode"},"active_panel":{"type":"string","maxLength":128},"compact_mode":{"type":"boolean"},"updated_at":{"type":"string","format":"date-time"}},"unevaluatedProperties":{"not":{}},"description":"Saved presentation preferences isolated to one authenticated MCP workspace."},"Workbench.WorkbenchWorkspacePreferencesUpdateRequest":{"type":"object","properties":{"selected_server_id":{"$ref":"#/$defs/Workbench.WorkbenchServerId"},"selected_tool_name":{"type":"string","maxLength":1024},"input_mode":{"$ref":"#/$defs/Workbench.WorkbenchToolInputMode"},"active_panel":{"type":"string","maxLength":128},"compact_mode":{"type":"boolean"}},"unevaluatedProperties":{"not":{}},"description":"Request to replace saved presentation preferences for one authenticated MCP workspace."},"Workbench.WorkbenchWorkspaceUpdateRequest":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"description":{"type":"string","maxLength":2000}},"unevaluatedProperties":{"not":{}},"description":"Request to update mutable MCP workbench workspace metadata."},"Workflow.DerivedWorkflowEdgeProvenance":{"type":"object","required":["type","event_ids","evidence","confidence"],"properties":{"type":{"type":"string","enum":["derived"]},"event_ids":{"type":"array","items":{"$ref":"#/$defs/Workflow.WorkflowEventId"},"minItems":1},"evidence":{"type":"string"},"confidence":{"$ref":"#/$defs/Common.Ratio"}},"unevaluatedProperties":{"not":{}},"description":"Derived edge provenance with explicit evidence and confidence."},"Workflow.RecordedWorkflowEdgeProvenance":{"type":"object","required":["type","event_ids"],"properties":{"type":{"type":"string","enum":["recorded"]},"event_ids":{"type":"array","items":{"$ref":"#/$defs/Workflow.WorkflowEventId"},"minItems":1}},"unevaluatedProperties":{"not":{}},"description":"Recorded edge provenance directly observed from Codex."},"Workflow.WorkflowAgentId":{"type":"string","minLength":1,"maxLength":128,"description":"Stable identifier of one agent within a workflow run."},"Workflow.WorkflowAgentStatus":{"type":"string","enum":["pending","running","waiting","succeeded","failed","interrupted"],"description":"Current lifecycle of an observed workflow agent."},"Workflow.WorkflowAttemptId":{"type":"string","minLength":1,"maxLength":128,"description":"Stable identifier of one workflow attempt."},"Workflow.WorkflowAttemptStatus":{"type":"string","enum":["pending","running","succeeded","failed","interrupted"],"description":"Current lifecycle of one workflow attempt."},"Workflow.WorkflowCommandId":{"type":"string","minLength":1,"maxLength":128,"description":"Stable identifier of one run-level control command."},"Workflow.WorkflowContent":{"type":"object","required":["content_ref","content_type","encoding","content","size_bytes"],"properties":{"content_ref":{"$ref":"#/$defs/Workflow.WorkflowContentRef"},"content_type":{"$ref":"#/$defs/Common.ContentType"},"encoding":{"$ref":"#/$defs/Workflow.WorkflowContentEncoding"},"content":{"type":"string"},"size_bytes":{"$ref":"#/$defs/Common.ByteSize"}},"unevaluatedProperties":{"not":{}},"description":"Lazily retrieved captured workflow content."},"Workflow.WorkflowContentChunk":{"type":"object","required":["content_ref","content_type","encoding","content"],"properties":{"content_ref":{"$ref":"#/$defs/Workflow.WorkflowContentRef"},"content_type":{"$ref":"#/$defs/Common.ContentType"},"encoding":{"$ref":"#/$defs/Workflow.WorkflowContentEncoding"},"content":{"type":"string","maxLength":1398104,"description":"UTF-8 text or base64 bytes, according to encoding."}},"unevaluatedProperties":{"not":{}},"description":"One captured payload supplied with an append batch."},"Workflow.WorkflowContentEncoding":{"type":"string","enum":["utf8","base64"],"description":"Encoding used when lazily returning captured workflow content."},"Workflow.WorkflowContentRef":{"type":"string","minLength":71,"maxLength":71,"pattern":"^sha256:[a-f0-9]{64}$","description":"Content-addressed reference to a captured workflow payload."},"Workflow.WorkflowControlAction":{"type":"string","enum":["steer","interrupt","resume"],"description":"Control operation supported by the Codex app-server boundary."},"Workflow.WorkflowControlCommand":{"type":"object","required":["command_id","run_id","action","status","idempotency_key","requested_at","updated_at","command_sequence"],"properties":{"command_id":{"$ref":"#/$defs/Workflow.WorkflowCommandId"},"run_id":{"$ref":"#/$defs/Workflow.WorkflowRunId"},"action":{"$ref":"#/$defs/Workflow.WorkflowControlAction"},"status":{"$ref":"#/$defs/Workflow.WorkflowControlStatus"},"idempotency_key":{"type":"string"},"input":{"type":"string"},"requested_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"command_sequence":{"$ref":"#/$defs/Workflow.WorkflowSequence"},"error":{"type":"string"}},"unevaluatedProperties":{"not":{}},"description":"Durable run-level control command."},"Workflow.WorkflowControlCommandPage":{"type":"object","required":["commands","next_sequence"],"properties":{"commands":{"type":"array","items":{"$ref":"#/$defs/Workflow.WorkflowControlCommand"}},"next_sequence":{"$ref":"#/$defs/Workflow.WorkflowSequence"}},"unevaluatedProperties":{"not":{}},"description":"Page of control commands polled by the launcher-owned outbound adapter."},"Workflow.WorkflowControlRequest":{"type":"object","required":["action","idempotency_key"],"properties":{"action":{"$ref":"#/$defs/Workflow.WorkflowControlAction"},"idempotency_key":{"type":"string","minLength":1,"maxLength":160},"input":{"type":"string","maxLength":32768,"description":"Text appended by steer or resume. Omit for interrupt."}},"unevaluatedProperties":{"not":{}},"description":"Request to enqueue one idempotent run-level control command."},"Workflow.WorkflowControlStatus":{"type":"string","enum":["requested","accepted","applied","rejected","failed"],"description":"Durable lifecycle of a workflow control command."},"Workflow.WorkflowControlStatusUpdateRequest":{"type":"object","required":["status"],"properties":{"status":{"$ref":"#/$defs/Workflow.WorkflowControlStatus"},"error":{"type":"string"},"occurred_at":{"type":"string","format":"date-time","description":"When the reported transition actually occurred at the adapter that executed\\nit. The journal event minted for this transition carries this clock — the\\noriginating agent's — so control events order and measure consistently with\\nthe agent-clocked events around them; omitted, the collector's receipt time\\nis the fallback."}},"unevaluatedProperties":{"not":{}},"description":"Adapter acknowledgement or terminal result for one control command."},"Workflow.WorkflowCursorGapEvent":{"type":"object","required":["type","oldest_available_sequence","high_water_mark","timestamp"],"properties":{"type":{"type":"string","enum":["cursor_gap"]},"oldest_available_sequence":{"$ref":"#/$defs/Workflow.WorkflowSequence"},"high_water_mark":{"$ref":"#/$defs/Workflow.WorkflowSequence"},"timestamp":{"type":"string","format":"date-time"}},"unevaluatedProperties":{"not":{}},"description":"Signals that the requested cursor predates retained workflow history."},"Workflow.WorkflowEdgeKind":{"type":"string","enum":["data","control","conflict","resource","gate","temporal"],"description":"Semantic relationship represented by a workflow graph edge."},"Workflow.WorkflowEdgeProvenance":{"anyOf":[{"$ref":"#/$defs/Workflow.RecordedWorkflowEdgeProvenance"},{"$ref":"#/$defs/Workflow.DerivedWorkflowEdgeProvenance"}],"description":"Provenance for one workflow graph edge."},"Workflow.WorkflowEventAppend":{"type":"object","required":["event_id","source_sequence","timestamp","kind"],"properties":{"event_id":{"$ref":"#/$defs/Workflow.WorkflowEventId"},"source_sequence":{"$ref":"#/$defs/Workflow.WorkflowSequence"},"timestamp":{"type":"string","format":"date-time"},"kind":{"$ref":"#/$defs/Workflow.WorkflowJournalEventKind"},"thread_id":{"type":"string"},"turn_id":{"type":"string"},"attempt_id":{"$ref":"#/$defs/Workflow.WorkflowAttemptId"},"agent_id":{"$ref":"#/$defs/Workflow.WorkflowAgentId"},"parent_agent_id":{"$ref":"#/$defs/Workflow.WorkflowAgentId"},"receiver_agent_id":{"$ref":"#/$defs/Workflow.WorkflowAgentId"},"tool_call_id":{"$ref":"#/$defs/Workflow.WorkflowToolCallId"},"content_refs":{"type":"array","items":{"$ref":"#/$defs/Workflow.WorkflowContentRef"},"maxItems":64},"data":{"type":"object","unevaluatedProperties":{}}},"description":"One source-ordered immutable journal event awaiting collector sequence assignment."},"Workflow.WorkflowEventBatchAppendRequest":{"type":"object","required":["client_id","events"],"properties":{"client_id":{"type":"string","minLength":1,"maxLength":128},"events":{"type":"array","items":{"$ref":"#/$defs/Workflow.WorkflowEventAppend"},"minItems":1,"maxItems":500},"content":{"type":"array","items":{"$ref":"#/$defs/Workflow.WorkflowContentChunk"},"maxItems":500}},"unevaluatedProperties":{"not":{}},"description":"Idempotent append batch from one observer client."},"Workflow.WorkflowEventBatchAppendResponse":{"type":"object","required":["accepted_count","duplicate_count","acknowledged_source_sequence"],"properties":{"accepted_count":{"type":"integer","format":"int32","minimum":0},"duplicate_count":{"type":"integer","format":"int32","minimum":0},"acknowledged_source_sequence":{"$ref":"#/$defs/Workflow.WorkflowSequence"},"first_journal_sequence":{"$ref":"#/$defs/Workflow.WorkflowSequence"},"last_journal_sequence":{"$ref":"#/$defs/Workflow.WorkflowSequence"}},"unevaluatedProperties":{"not":{}},"description":"Collector acknowledgement for an idempotent workflow-event append."},"Workflow.WorkflowEventId":{"type":"string","minLength":1,"maxLength":160,"description":"Stable identifier of one immutable journal event."},"Workflow.WorkflowEventPage":{"type":"object","required":["events","next_sequence","high_water_mark","cursor_gap"],"properties":{"events":{"type":"array","items":{"$ref":"#/$defs/Workflow.WorkflowJournalEvent"}},"next_sequence":{"$ref":"#/$defs/Workflow.WorkflowSequence"},"high_water_mark":{"$ref":"#/$defs/Workflow.WorkflowSequence"},"cursor_gap":{"type":"boolean"}},"unevaluatedProperties":{"not":{}},"description":"A bounded page of workflow journal events."},"Workflow.WorkflowGraphEdge":{"type":"object","required":["edge_id","source_node_id","target_node_id","kind","provenance"],"properties":{"edge_id":{"type":"string"},"source_node_id":{"$ref":"#/$defs/Workflow.WorkflowNodeId"},"target_node_id":{"$ref":"#/$defs/Workflow.WorkflowNodeId"},"kind":{"$ref":"#/$defs/Workflow.WorkflowEdgeKind"},"provenance":{"$ref":"#/$defs/Workflow.WorkflowEdgeProvenance"}},"unevaluatedProperties":{"not":{}},"description":"One typed edge in the deterministic workflow graph projection."},"Workflow.WorkflowGraphNode":{"type":"object","required":["node_id","kind","label","status"],"properties":{"node_id":{"$ref":"#/$defs/Workflow.WorkflowNodeId"},"kind":{"$ref":"#/$defs/Workflow.WorkflowNodeKind"},"label":{"type":"string"},"status":{"type":"string"},"attempt_id":{"$ref":"#/$defs/Workflow.WorkflowAttemptId"},"agent_id":{"$ref":"#/$defs/Workflow.WorkflowAgentId"},"parent_node_id":{"$ref":"#/$defs/Workflow.WorkflowNodeId"},"started_at":{"type":"string","format":"date-time"},"ended_at":{"type":"string","format":"date-time"},"duration_ms":{"$ref":"#/$defs/Common.DurationMs"},"content_refs":{"type":"array","items":{"$ref":"#/$defs/Workflow.WorkflowContentRef"}},"attributes":{"type":"object","unevaluatedProperties":{}}},"unevaluatedProperties":{"not":{}},"description":"One node in the deterministic workflow graph projection."},"Workflow.WorkflowGraphSnapshot":{"type":"object","required":["run","nodes","edges","statistics","journal_sequence","has_more_nodes","has_more_edges","total_node_count","total_edge_count"],"properties":{"run":{"$ref":"#/$defs/Workflow.WorkflowRun"},"nodes":{"type":"array","items":{"$ref":"#/$defs/Workflow.WorkflowGraphNode"}},"edges":{"type":"array","items":{"$ref":"#/$defs/Workflow.WorkflowGraphEdge"}},"statistics":{"$ref":"#/$defs/Workflow.WorkflowGraphStatistics"},"journal_sequence":{"$ref":"#/$defs/Workflow.WorkflowSequence"},"next_node_cursor":{"type":"string"},"next_edge_cursor":{"type":"string"},"has_more_nodes":{"type":"boolean"},"has_more_edges":{"type":"boolean"},"total_node_count":{"type":"integer","format":"int32","minimum":0},"total_edge_count":{"type":"integer","format":"int32","minimum":0}},"unevaluatedProperties":{"not":{}},"description":"Deterministic graph projection at one journal cursor."},"Workflow.WorkflowGraphStatistics":{"type":"object","required":["t1_ms","t_infinity_ms","wall_time_ms","peak_concurrency","worker_count","parallel_lower_bound_ms","critical_path_node_ids"],"properties":{"t1_ms":{"$ref":"#/$defs/Common.DurationMs"},"t_infinity_ms":{"$ref":"#/$defs/Common.DurationMs"},"wall_time_ms":{"$ref":"#/$defs/Common.DurationMs"},"peak_concurrency":{"type":"integer","format":"int32","minimum":0},"worker_count":{"type":"integer","format":"int32","minimum":1},"parallel_lower_bound_ms":{"$ref":"#/$defs/Common.DurationMs"},"critical_path_node_ids":{"type":"array","items":{"$ref":"#/$defs/Workflow.WorkflowNodeId"}}},"unevaluatedProperties":{"not":{}},"description":"Work and critical-path statistics for a workflow graph."},"Workflow.WorkflowHeartbeatEvent":{"type":"object","required":["type","high_water_mark","timestamp"],"properties":{"type":{"type":"string","enum":["heartbeat"]},"high_water_mark":{"$ref":"#/$defs/Workflow.WorkflowSequence"},"timestamp":{"type":"string","format":"date-time"}},"unevaluatedProperties":{"not":{}},"description":"Keep-alive emitted while a workflow event stream has no new event."},"Workflow.WorkflowJournalEvent":{"type":"object","required":["run_id","client_id","journal_sequence"],"properties":{"run_id":{"$ref":"#/$defs/Workflow.WorkflowRunId"},"client_id":{"type":"string"},"journal_sequence":{"$ref":"#/$defs/Workflow.WorkflowSequence"}},"unevaluatedProperties":{"not":{}},"allOf":[{"$ref":"#/$defs/Workflow.WorkflowEventAppend"}],"description":"One immutable event after collector journal sequence assignment."},"Workflow.WorkflowJournalEventKind":{"type":"string","enum":["run_created","run_completed","thread_started","thread_resumed","turn_started","turn_completed","turn_interrupted","attempt_started","attempt_completed","agent_spawned","agent_started","agent_completed","message_sent","message_received","wait_started","wait_completed","joined","item_started","item_completed","tool_started","tool_completed","approval_requested","approval_resolved","content_captured","file_written","control_requested","control_accepted","control_applied","control_rejected","control_failed"],"description":"Immutable journal event kinds accepted from a Codex observer."},"Workflow.WorkflowNodeId":{"type":"string","minLength":1,"maxLength":192,"description":"Stable identifier of one graph node."},"Workflow.WorkflowNodeKind":{"type":"string","enum":["run","attempt","turn","agent","tool_call","message","wait","gate","resource"],"description":"Kinds of execution node in the deterministic workflow graph."},"Workflow.WorkflowRun":{"type":"object","required":["run_id","status","started_at","latest_journal_sequence"],"properties":{"run_id":{"$ref":"#/$defs/Workflow.WorkflowRunId"},"thread_id":{"type":"string"},"title":{"type":"string"},"status":{"$ref":"#/$defs/Workflow.WorkflowRunStatus"},"started_at":{"type":"string","format":"date-time"},"ended_at":{"type":"string","format":"date-time"},"latest_journal_sequence":{"$ref":"#/$defs/Workflow.WorkflowSequence"},"active_attempt_id":{"$ref":"#/$defs/Workflow.WorkflowAttemptId"},"metadata":{"type":"object","unevaluatedProperties":{}}},"unevaluatedProperties":{"not":{}},"description":"One immutable workflow run."},"Workflow.WorkflowRunCreateRequest":{"type":"object","required":["run_id","started_at"],"properties":{"run_id":{"$ref":"#/$defs/Workflow.WorkflowRunId"},"thread_id":{"type":"string"},"title":{"type":"string"},"started_at":{"type":"string","format":"date-time"},"metadata":{"type":"object","unevaluatedProperties":{}}},"unevaluatedProperties":{"not":{}},"description":"Request to create an observed workflow run before appending journal events."},"Workflow.WorkflowRunId":{"type":"string","minLength":1,"maxLength":128,"description":"Stable identifier of one observed Codex workflow run."},"Workflow.WorkflowRunPage":{"type":"object","required":["items","has_more"],"properties":{"items":{"type":"array","items":{"$ref":"#/$defs/Workflow.WorkflowRun"}},"next_cursor":{"type":"string"},"has_more":{"type":"boolean"}},"unevaluatedProperties":{"not":{}},"description":"Cursor page of workflow runs."},"Workflow.WorkflowRunStatus":{"type":"string","enum":["active","completed","failed","interrupted"],"description":"Current lifecycle of a workflow run."},"Workflow.WorkflowSequence":{"type":"string","format":"uint64","description":"Unsigned source or collector journal sequence encoded without JavaScript precision loss.","pattern":"^(0|[1-9][0-9]*)$","maxLength":20},"Workflow.WorkflowStreamEvents":{"anyOf":[{"$ref":"#/$defs/Workflow.WorkflowJournalEvent"},{"$ref":"#/$defs/Workflow.WorkflowHeartbeatEvent"},{"$ref":"#/$defs/Workflow.WorkflowCursorGapEvent"}]},"Workflow.WorkflowToolCallId":{"type":"string","minLength":1,"maxLength":128,"description":"Stable identifier of one tool call within a workflow run."},"Workflow.WorkflowToolCallStatus":{"type":"string","enum":["requested","running","succeeded","failed","rejected"],"description":"Current lifecycle of an observed tool call."},"Operations.LogsApi_list.Response.200":{"type":"object","required":["items","has_more"],"properties":{"items":{"type":"array","items":{"$ref":"#/$defs/OTel.Logs.LogRecord"},"description":"List of items in this page"},"next_cursor":{"type":"string","description":"Cursor for the next page (null if no more pages)"},"prev_cursor":{"type":"string","description":"Cursor for the previous page (null if first page)"},"has_more":{"type":"boolean","description":"Whether there are more items available"}},"unevaluatedProperties":{"not":{}},"description":"Cursor-based paginated response wrapper"},"Operations.LogsApi_list.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.LogsApi_list.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.LogsApi_list.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.RunnerResourcesApi_logs.Response.200":{"type":"array","items":{"$ref":"#/$defs/Runner.RunnerLogLine"}},"Operations.RunnerResourcesApi_logs.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.RunnerResourcesApi_logs.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.RunnerResourcesApi_logs.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.RunnerResourcesApi_logs.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.RunnerResourcesApi_restart.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.RunnerResourcesApi_restart.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.RunnerResourcesApi_restart.Response.409":{"$ref":"#/$defs/Common.Errors.ConflictError"},"Operations.RunnerResourcesApi_restart.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.RunnerResourcesApi_restart.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.RunnerResourcesApi_snapshot.Response.200":{"type":"array","items":{"$ref":"#/$defs/Runner.RunnerResourceState"}},"Operations.RunnerResourcesApi_snapshot.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.RunnerResourcesApi_snapshot.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.RunnerResourcesApi_snapshot.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.RunnerResourcesApi_stop.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.RunnerResourcesApi_stop.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.RunnerResourcesApi_stop.Response.409":{"$ref":"#/$defs/Common.Errors.ConflictError"},"Operations.RunnerResourcesApi_stop.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.RunnerResourcesApi_stop.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.RunnerResourcesApi_stream.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.RunnerResourcesApi_stream.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.RunnerResourcesApi_stream.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.RunnerResourcesApi_streamLogs.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.RunnerResourcesApi_streamLogs.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.RunnerResourcesApi_streamLogs.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.RunnerResourcesApi_streamLogs.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.SessionsApi_get.Response.200":{"$ref":"#/$defs/Domains.Observe.Session.SessionEntity"},"Operations.SessionsApi_get.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.SessionsApi_get.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.SessionsApi_get.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.SessionsApi_getStats.Response.200":{"$ref":"#/$defs/Domains.Observe.Session.SessionStats"},"Operations.SessionsApi_getStats.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.SessionsApi_getStats.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.SessionsApi_getStats.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.SessionsApi_getTraces.Response.200":{"type":"object","required":["items","has_more"],"properties":{"items":{"type":"array","items":{"$ref":"#/$defs/OTel.Traces.Trace"},"description":"List of items in this page"},"next_cursor":{"type":"string","description":"Cursor for the next page (null if no more pages)"},"prev_cursor":{"type":"string","description":"Cursor for the previous page (null if first page)"},"has_more":{"type":"boolean","description":"Whether there are more items available"}},"unevaluatedProperties":{"not":{}},"description":"Cursor-based paginated response wrapper"},"Operations.SessionsApi_getTraces.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.SessionsApi_getTraces.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.SessionsApi_getTraces.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.SessionsApi_list.Response.200":{"type":"object","required":["items","has_more"],"properties":{"items":{"type":"array","items":{"$ref":"#/$defs/Domains.Observe.Session.SessionEntity"},"description":"List of items in this page"},"next_cursor":{"type":"string","description":"Cursor for the next page (null if no more pages)"},"prev_cursor":{"type":"string","description":"Cursor for the previous page (null if first page)"},"has_more":{"type":"boolean","description":"Whether there are more items available"}},"unevaluatedProperties":{"not":{}},"description":"Cursor-based paginated response wrapper"},"Operations.SessionsApi_list.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.SessionsApi_list.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.SessionsApi_list.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.StreamingApi_streamLogs.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.StreamingApi_streamLogs.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.StreamingApi_streamLogs.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.StreamingApi_streamLogs.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.TracesApi_get.Response.200":{"$ref":"#/$defs/OTel.Traces.Trace"},"Operations.TracesApi_get.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.TracesApi_get.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.TracesApi_get.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.TracesApi_getSpans.Response.200":{"type":"object","required":["items","has_more"],"properties":{"items":{"type":"array","items":{"$ref":"#/$defs/OTel.Traces.Span"},"description":"List of items in this page"},"next_cursor":{"type":"string","description":"Cursor for the next page (null if no more pages)"},"prev_cursor":{"type":"string","description":"Cursor for the previous page (null if first page)"},"has_more":{"type":"boolean","description":"Whether there are more items available"}},"unevaluatedProperties":{"not":{}},"description":"Cursor-based paginated response wrapper"},"Operations.TracesApi_getSpans.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.TracesApi_getSpans.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.TracesApi_getSpans.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.TracesApi_list.Response.200":{"type":"object","required":["items","has_more"],"properties":{"items":{"type":"array","items":{"$ref":"#/$defs/OTel.Traces.Trace"},"description":"List of items in this page"},"next_cursor":{"type":"string","description":"Cursor for the next page (null if no more pages)"},"prev_cursor":{"type":"string","description":"Cursor for the previous page (null if first page)"},"has_more":{"type":"boolean","description":"Whether there are more items available"}},"unevaluatedProperties":{"not":{}},"description":"Cursor-based paginated response wrapper"},"Operations.TracesApi_list.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.TracesApi_list.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.TracesApi_list.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkbenchEvaluationRunsApi_compare.Request":{"$ref":"#/$defs/Workbench.WorkbenchEvaluationComparisonRequest"},"Operations.WorkbenchEvaluationRunsApi_compare.Response.200":{"$ref":"#/$defs/Workbench.WorkbenchEvaluationRunComparison"},"Operations.WorkbenchEvaluationRunsApi_compare.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.WorkbenchEvaluationRunsApi_compare.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkbenchEvaluationRunsApi_compare.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.WorkbenchEvaluationRunsApi_compare.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.WorkbenchEvaluationRunsApi_compare.Response.409":{"$ref":"#/$defs/Common.Errors.ConflictError"},"Operations.WorkbenchEvaluationRunsApi_compare.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkbenchEvaluationRunsApi_compare.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkbenchEvaluationRunsApi_export.Request":{"$ref":"#/$defs/Workbench.WorkbenchEvaluationExportRequest"},"Operations.WorkbenchEvaluationRunsApi_export.Response.202":{"$ref":"#/$defs/Workbench.WorkbenchEvaluationExportAccepted"},"Operations.WorkbenchEvaluationRunsApi_export.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.WorkbenchEvaluationRunsApi_export.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkbenchEvaluationRunsApi_export.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.WorkbenchEvaluationRunsApi_export.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.WorkbenchEvaluationRunsApi_export.Response.409":{"$ref":"#/$defs/Common.Errors.ConflictError"},"Operations.WorkbenchEvaluationRunsApi_export.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkbenchEvaluationRunsApi_export.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkbenchEvaluationRunsApi_get.Response.200":{"$ref":"#/$defs/Workbench.WorkbenchEvaluationRun"},"Operations.WorkbenchEvaluationRunsApi_get.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkbenchEvaluationRunsApi_get.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.WorkbenchEvaluationRunsApi_get.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.WorkbenchEvaluationRunsApi_get.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkbenchEvaluationRunsApi_get.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkbenchEvaluationRunsApi_getExport.Response.200":{"$ref":"#/$defs/Workbench.WorkbenchEvaluationExport"},"Operations.WorkbenchEvaluationRunsApi_getExport.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkbenchEvaluationRunsApi_getExport.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.WorkbenchEvaluationRunsApi_getExport.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.WorkbenchEvaluationRunsApi_getExport.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkbenchEvaluationRunsApi_getExport.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkbenchEvaluationRunsApi_getExportContent.Response.200":{"$ref":"#/$defs/Workbench.WorkbenchEvaluationExportArtifact"},"Operations.WorkbenchEvaluationRunsApi_getExportContent.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkbenchEvaluationRunsApi_getExportContent.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.WorkbenchEvaluationRunsApi_getExportContent.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.WorkbenchEvaluationRunsApi_getExportContent.Response.409":{"$ref":"#/$defs/Common.Errors.ConflictError"},"Operations.WorkbenchEvaluationRunsApi_getExportContent.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkbenchEvaluationRunsApi_getExportContent.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkbenchEvaluationRunsApi_list.Response.200":{"$ref":"#/$defs/Workbench.WorkbenchEvaluationRunPage"},"Operations.WorkbenchEvaluationRunsApi_list.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.WorkbenchEvaluationRunsApi_list.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkbenchEvaluationRunsApi_list.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.WorkbenchEvaluationRunsApi_list.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.WorkbenchEvaluationRunsApi_list.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkbenchEvaluationRunsApi_list.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkbenchExecutionsApi_cancel.Request":{"$ref":"#/$defs/Workbench.WorkbenchExecutionCancelRequest"},"Operations.WorkbenchExecutionsApi_cancel.Response.202":{"$ref":"#/$defs/Workbench.WorkbenchExecutionAccepted"},"Operations.WorkbenchExecutionsApi_cancel.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.WorkbenchExecutionsApi_cancel.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkbenchExecutionsApi_cancel.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.WorkbenchExecutionsApi_cancel.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.WorkbenchExecutionsApi_cancel.Response.409":{"$ref":"#/$defs/Common.Errors.ConflictError"},"Operations.WorkbenchExecutionsApi_cancel.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkbenchExecutionsApi_cancel.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkbenchExecutionsApi_get.Response.200":{"$ref":"#/$defs/Workbench.WorkbenchExecutionRecord"},"Operations.WorkbenchExecutionsApi_get.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkbenchExecutionsApi_get.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.WorkbenchExecutionsApi_get.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.WorkbenchExecutionsApi_get.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkbenchExecutionsApi_get.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkbenchExecutionsApi_list.Response.200":{"$ref":"#/$defs/Workbench.WorkbenchExecutionPage"},"Operations.WorkbenchExecutionsApi_list.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.WorkbenchExecutionsApi_list.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkbenchExecutionsApi_list.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.WorkbenchExecutionsApi_list.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.WorkbenchExecutionsApi_list.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkbenchExecutionsApi_list.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkbenchExecutionsApi_start.Request":{"$ref":"#/$defs/Workbench.WorkbenchExecutionRequest"},"Operations.WorkbenchExecutionsApi_start.Response.202":{"$ref":"#/$defs/Workbench.WorkbenchExecutionAccepted"},"Operations.WorkbenchExecutionsApi_start.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.WorkbenchExecutionsApi_start.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkbenchExecutionsApi_start.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.WorkbenchExecutionsApi_start.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.WorkbenchExecutionsApi_start.Response.409":{"$ref":"#/$defs/Common.Errors.ConflictError"},"Operations.WorkbenchExecutionsApi_start.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkbenchExecutionsApi_start.Response.502":{"$ref":"#/$defs/Common.Errors.BadGatewayError"},"Operations.WorkbenchExecutionsApi_start.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkbenchExecutionsApi_streamUpdates.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkbenchExecutionsApi_streamUpdates.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.WorkbenchExecutionsApi_streamUpdates.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.WorkbenchExecutionsApi_streamUpdates.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkbenchExecutionsApi_streamUpdates.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkbenchExecutionsApi_telemetry.Response.200":{"$ref":"#/$defs/Workbench.WorkbenchExecutionTelemetryResponse"},"Operations.WorkbenchExecutionsApi_telemetry.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkbenchExecutionsApi_telemetry.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.WorkbenchExecutionsApi_telemetry.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.WorkbenchExecutionsApi_telemetry.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkbenchExecutionsApi_telemetry.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkbenchServersApi_connect.Response.202":{"$ref":"#/$defs/Workbench.WorkbenchServerActionAccepted"},"Operations.WorkbenchServersApi_connect.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkbenchServersApi_connect.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.WorkbenchServersApi_connect.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.WorkbenchServersApi_connect.Response.409":{"$ref":"#/$defs/Common.Errors.ConflictError"},"Operations.WorkbenchServersApi_connect.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkbenchServersApi_connect.Response.502":{"$ref":"#/$defs/Common.Errors.BadGatewayError"},"Operations.WorkbenchServersApi_connect.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkbenchServersApi_create.Request":{"$ref":"#/$defs/Workbench.WorkbenchServerCreateRequest"},"Operations.WorkbenchServersApi_create.Response.200":{"$ref":"#/$defs/Workbench.WorkbenchServer"},"Operations.WorkbenchServersApi_create.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.WorkbenchServersApi_create.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkbenchServersApi_create.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.WorkbenchServersApi_create.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.WorkbenchServersApi_create.Response.409":{"$ref":"#/$defs/Common.Errors.ConflictError"},"Operations.WorkbenchServersApi_create.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkbenchServersApi_create.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkbenchServersApi_delete.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkbenchServersApi_delete.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.WorkbenchServersApi_delete.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.WorkbenchServersApi_delete.Response.409":{"$ref":"#/$defs/Common.Errors.ConflictError"},"Operations.WorkbenchServersApi_delete.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkbenchServersApi_delete.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkbenchServersApi_disconnect.Response.202":{"$ref":"#/$defs/Workbench.WorkbenchServerActionAccepted"},"Operations.WorkbenchServersApi_disconnect.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkbenchServersApi_disconnect.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.WorkbenchServersApi_disconnect.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.WorkbenchServersApi_disconnect.Response.409":{"$ref":"#/$defs/Common.Errors.ConflictError"},"Operations.WorkbenchServersApi_disconnect.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkbenchServersApi_disconnect.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkbenchServersApi_discovery.Response.200":{"$ref":"#/$defs/Workbench.WorkbenchDiscoverySnapshot"},"Operations.WorkbenchServersApi_discovery.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkbenchServersApi_discovery.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.WorkbenchServersApi_discovery.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.WorkbenchServersApi_discovery.Response.409":{"$ref":"#/$defs/Common.Errors.ConflictError"},"Operations.WorkbenchServersApi_discovery.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkbenchServersApi_discovery.Response.502":{"$ref":"#/$defs/Common.Errors.BadGatewayError"},"Operations.WorkbenchServersApi_discovery.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkbenchServersApi_get.Response.200":{"$ref":"#/$defs/Workbench.WorkbenchServer"},"Operations.WorkbenchServersApi_get.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkbenchServersApi_get.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.WorkbenchServersApi_get.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.WorkbenchServersApi_get.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkbenchServersApi_get.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkbenchServersApi_list.Response.200":{"$ref":"#/$defs/Workbench.WorkbenchServerListResponse"},"Operations.WorkbenchServersApi_list.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkbenchServersApi_list.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.WorkbenchServersApi_list.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.WorkbenchServersApi_list.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkbenchServersApi_list.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkbenchServersApi_protocolEvents.Response.200":{"$ref":"#/$defs/Workbench.WorkbenchProtocolEventPage"},"Operations.WorkbenchServersApi_protocolEvents.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.WorkbenchServersApi_protocolEvents.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkbenchServersApi_protocolEvents.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.WorkbenchServersApi_protocolEvents.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.WorkbenchServersApi_protocolEvents.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkbenchServersApi_protocolEvents.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkbenchServersApi_reconnect.Response.202":{"$ref":"#/$defs/Workbench.WorkbenchServerActionAccepted"},"Operations.WorkbenchServersApi_reconnect.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkbenchServersApi_reconnect.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.WorkbenchServersApi_reconnect.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.WorkbenchServersApi_reconnect.Response.409":{"$ref":"#/$defs/Common.Errors.ConflictError"},"Operations.WorkbenchServersApi_reconnect.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkbenchServersApi_reconnect.Response.502":{"$ref":"#/$defs/Common.Errors.BadGatewayError"},"Operations.WorkbenchServersApi_reconnect.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkbenchServersApi_refreshDiscovery.Response.200":{"$ref":"#/$defs/Workbench.WorkbenchDiscoverySnapshot"},"Operations.WorkbenchServersApi_refreshDiscovery.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkbenchServersApi_refreshDiscovery.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.WorkbenchServersApi_refreshDiscovery.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.WorkbenchServersApi_refreshDiscovery.Response.409":{"$ref":"#/$defs/Common.Errors.ConflictError"},"Operations.WorkbenchServersApi_refreshDiscovery.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkbenchServersApi_refreshDiscovery.Response.502":{"$ref":"#/$defs/Common.Errors.BadGatewayError"},"Operations.WorkbenchServersApi_refreshDiscovery.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkbenchServersApi_streamProtocolEvents.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkbenchServersApi_streamProtocolEvents.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.WorkbenchServersApi_streamProtocolEvents.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.WorkbenchServersApi_streamProtocolEvents.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkbenchServersApi_streamProtocolEvents.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkbenchServersApi_update.Request":{"$ref":"#/$defs/Workbench.WorkbenchServerUpdateRequest"},"Operations.WorkbenchServersApi_update.Response.200":{"$ref":"#/$defs/Workbench.WorkbenchServer"},"Operations.WorkbenchServersApi_update.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.WorkbenchServersApi_update.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkbenchServersApi_update.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.WorkbenchServersApi_update.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.WorkbenchServersApi_update.Response.409":{"$ref":"#/$defs/Common.Errors.ConflictError"},"Operations.WorkbenchServersApi_update.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkbenchServersApi_update.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkbenchSessionApi_bootstrap.Response.200":{"$ref":"#/$defs/Workbench.WorkbenchSessionBootstrapResponse"},"Operations.WorkbenchSessionApi_bootstrap.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkbenchSessionApi_bootstrap.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.WorkbenchSessionApi_bootstrap.Response.409":{"$ref":"#/$defs/Common.Errors.ConflictError"},"Operations.WorkbenchSessionApi_bootstrap.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkbenchSessionApi_bootstrap.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkbenchSessionApi_get.Response.200":{"$ref":"#/$defs/Workbench.WorkbenchSession"},"Operations.WorkbenchSessionApi_get.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkbenchSessionApi_get.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.WorkbenchSessionApi_get.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkbenchSessionApi_get.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkbenchSuitesApi_create.Request":{"$ref":"#/$defs/Workbench.WorkbenchTestSuiteCreateRequest"},"Operations.WorkbenchSuitesApi_create.Response.200":{"$ref":"#/$defs/Workbench.WorkbenchTestSuite"},"Operations.WorkbenchSuitesApi_create.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.WorkbenchSuitesApi_create.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkbenchSuitesApi_create.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.WorkbenchSuitesApi_create.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.WorkbenchSuitesApi_create.Response.409":{"$ref":"#/$defs/Common.Errors.ConflictError"},"Operations.WorkbenchSuitesApi_create.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkbenchSuitesApi_create.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkbenchSuitesApi_delete.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkbenchSuitesApi_delete.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.WorkbenchSuitesApi_delete.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.WorkbenchSuitesApi_delete.Response.409":{"$ref":"#/$defs/Common.Errors.ConflictError"},"Operations.WorkbenchSuitesApi_delete.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkbenchSuitesApi_delete.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkbenchSuitesApi_get.Response.200":{"$ref":"#/$defs/Workbench.WorkbenchTestSuite"},"Operations.WorkbenchSuitesApi_get.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkbenchSuitesApi_get.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.WorkbenchSuitesApi_get.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.WorkbenchSuitesApi_get.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkbenchSuitesApi_get.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkbenchSuitesApi_list.Response.200":{"$ref":"#/$defs/Workbench.WorkbenchTestSuitePage"},"Operations.WorkbenchSuitesApi_list.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.WorkbenchSuitesApi_list.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkbenchSuitesApi_list.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.WorkbenchSuitesApi_list.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.WorkbenchSuitesApi_list.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkbenchSuitesApi_list.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkbenchSuitesApi_run.Request":{"$ref":"#/$defs/Workbench.WorkbenchSuiteRunRequest"},"Operations.WorkbenchSuitesApi_run.Response.202":{"$ref":"#/$defs/Workbench.WorkbenchEvaluationRunAccepted"},"Operations.WorkbenchSuitesApi_run.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.WorkbenchSuitesApi_run.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkbenchSuitesApi_run.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.WorkbenchSuitesApi_run.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.WorkbenchSuitesApi_run.Response.409":{"$ref":"#/$defs/Common.Errors.ConflictError"},"Operations.WorkbenchSuitesApi_run.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkbenchSuitesApi_run.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkbenchSuitesApi_update.Request":{"$ref":"#/$defs/Workbench.WorkbenchTestSuiteUpdateRequest"},"Operations.WorkbenchSuitesApi_update.Response.200":{"$ref":"#/$defs/Workbench.WorkbenchTestSuite"},"Operations.WorkbenchSuitesApi_update.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.WorkbenchSuitesApi_update.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkbenchSuitesApi_update.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.WorkbenchSuitesApi_update.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.WorkbenchSuitesApi_update.Response.409":{"$ref":"#/$defs/Common.Errors.ConflictError"},"Operations.WorkbenchSuitesApi_update.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkbenchSuitesApi_update.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkbenchTestCasesApi_create.Request":{"$ref":"#/$defs/Workbench.WorkbenchTestCaseCreateRequest"},"Operations.WorkbenchTestCasesApi_create.Response.200":{"$ref":"#/$defs/Workbench.WorkbenchTestCase"},"Operations.WorkbenchTestCasesApi_create.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.WorkbenchTestCasesApi_create.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkbenchTestCasesApi_create.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.WorkbenchTestCasesApi_create.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.WorkbenchTestCasesApi_create.Response.409":{"$ref":"#/$defs/Common.Errors.ConflictError"},"Operations.WorkbenchTestCasesApi_create.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkbenchTestCasesApi_create.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkbenchTestCasesApi_delete.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkbenchTestCasesApi_delete.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.WorkbenchTestCasesApi_delete.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.WorkbenchTestCasesApi_delete.Response.409":{"$ref":"#/$defs/Common.Errors.ConflictError"},"Operations.WorkbenchTestCasesApi_delete.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkbenchTestCasesApi_delete.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkbenchTestCasesApi_get.Response.200":{"$ref":"#/$defs/Workbench.WorkbenchTestCase"},"Operations.WorkbenchTestCasesApi_get.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkbenchTestCasesApi_get.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.WorkbenchTestCasesApi_get.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.WorkbenchTestCasesApi_get.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkbenchTestCasesApi_get.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkbenchTestCasesApi_list.Response.200":{"$ref":"#/$defs/Workbench.WorkbenchTestCasePage"},"Operations.WorkbenchTestCasesApi_list.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.WorkbenchTestCasesApi_list.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkbenchTestCasesApi_list.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.WorkbenchTestCasesApi_list.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.WorkbenchTestCasesApi_list.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkbenchTestCasesApi_list.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkbenchTestCasesApi_run.Request":{"$ref":"#/$defs/Workbench.WorkbenchTestCaseRunRequest"},"Operations.WorkbenchTestCasesApi_run.Response.202":{"$ref":"#/$defs/Workbench.WorkbenchEvaluationRunAccepted"},"Operations.WorkbenchTestCasesApi_run.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.WorkbenchTestCasesApi_run.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkbenchTestCasesApi_run.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.WorkbenchTestCasesApi_run.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.WorkbenchTestCasesApi_run.Response.409":{"$ref":"#/$defs/Common.Errors.ConflictError"},"Operations.WorkbenchTestCasesApi_run.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkbenchTestCasesApi_run.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkbenchTestCasesApi_update.Request":{"$ref":"#/$defs/Workbench.WorkbenchTestCaseUpdateRequest"},"Operations.WorkbenchTestCasesApi_update.Response.200":{"$ref":"#/$defs/Workbench.WorkbenchTestCase"},"Operations.WorkbenchTestCasesApi_update.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.WorkbenchTestCasesApi_update.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkbenchTestCasesApi_update.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.WorkbenchTestCasesApi_update.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.WorkbenchTestCasesApi_update.Response.409":{"$ref":"#/$defs/Common.Errors.ConflictError"},"Operations.WorkbenchTestCasesApi_update.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkbenchTestCasesApi_update.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkbenchWorkspacesApi_create.Request":{"$ref":"#/$defs/Workbench.WorkbenchWorkspaceCreateRequest"},"Operations.WorkbenchWorkspacesApi_create.Response.200":{"$ref":"#/$defs/Workbench.WorkbenchWorkspace"},"Operations.WorkbenchWorkspacesApi_create.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.WorkbenchWorkspacesApi_create.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkbenchWorkspacesApi_create.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.WorkbenchWorkspacesApi_create.Response.409":{"$ref":"#/$defs/Common.Errors.ConflictError"},"Operations.WorkbenchWorkspacesApi_create.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkbenchWorkspacesApi_create.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkbenchWorkspacesApi_delete.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkbenchWorkspacesApi_delete.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.WorkbenchWorkspacesApi_delete.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.WorkbenchWorkspacesApi_delete.Response.409":{"$ref":"#/$defs/Common.Errors.ConflictError"},"Operations.WorkbenchWorkspacesApi_delete.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkbenchWorkspacesApi_delete.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkbenchWorkspacesApi_get.Response.200":{"$ref":"#/$defs/Workbench.WorkbenchWorkspace"},"Operations.WorkbenchWorkspacesApi_get.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkbenchWorkspacesApi_get.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.WorkbenchWorkspacesApi_get.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.WorkbenchWorkspacesApi_get.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkbenchWorkspacesApi_get.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkbenchWorkspacesApi_getPreferences.Response.200":{"$ref":"#/$defs/Workbench.WorkbenchWorkspacePreferences"},"Operations.WorkbenchWorkspacesApi_getPreferences.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkbenchWorkspacesApi_getPreferences.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.WorkbenchWorkspacesApi_getPreferences.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.WorkbenchWorkspacesApi_getPreferences.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkbenchWorkspacesApi_getPreferences.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkbenchWorkspacesApi_list.Response.200":{"$ref":"#/$defs/Workbench.WorkbenchWorkspaceListResponse"},"Operations.WorkbenchWorkspacesApi_list.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkbenchWorkspacesApi_list.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.WorkbenchWorkspacesApi_list.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkbenchWorkspacesApi_list.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkbenchWorkspacesApi_update.Request":{"$ref":"#/$defs/Workbench.WorkbenchWorkspaceUpdateRequest"},"Operations.WorkbenchWorkspacesApi_update.Response.200":{"$ref":"#/$defs/Workbench.WorkbenchWorkspace"},"Operations.WorkbenchWorkspacesApi_update.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.WorkbenchWorkspacesApi_update.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkbenchWorkspacesApi_update.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.WorkbenchWorkspacesApi_update.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.WorkbenchWorkspacesApi_update.Response.409":{"$ref":"#/$defs/Common.Errors.ConflictError"},"Operations.WorkbenchWorkspacesApi_update.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkbenchWorkspacesApi_update.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkbenchWorkspacesApi_updatePreferences.Request":{"$ref":"#/$defs/Workbench.WorkbenchWorkspacePreferencesUpdateRequest"},"Operations.WorkbenchWorkspacesApi_updatePreferences.Response.200":{"$ref":"#/$defs/Workbench.WorkbenchWorkspacePreferences"},"Operations.WorkbenchWorkspacesApi_updatePreferences.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.WorkbenchWorkspacesApi_updatePreferences.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkbenchWorkspacesApi_updatePreferences.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.WorkbenchWorkspacesApi_updatePreferences.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.WorkbenchWorkspacesApi_updatePreferences.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkbenchWorkspacesApi_updatePreferences.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkflowRunsApi_appendEvents.Request":{"$ref":"#/$defs/Workflow.WorkflowEventBatchAppendRequest"},"Operations.WorkflowRunsApi_appendEvents.Response.200":{"$ref":"#/$defs/Workflow.WorkflowEventBatchAppendResponse"},"Operations.WorkflowRunsApi_appendEvents.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.WorkflowRunsApi_appendEvents.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkflowRunsApi_appendEvents.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.WorkflowRunsApi_appendEvents.Response.409":{"$ref":"#/$defs/Common.Errors.ConflictError"},"Operations.WorkflowRunsApi_appendEvents.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkflowRunsApi_appendEvents.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkflowRunsApi_create.Request":{"$ref":"#/$defs/Workflow.WorkflowRunCreateRequest"},"Operations.WorkflowRunsApi_create.Response.200":{"$ref":"#/$defs/Workflow.WorkflowRun"},"Operations.WorkflowRunsApi_create.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.WorkflowRunsApi_create.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkflowRunsApi_create.Response.409":{"$ref":"#/$defs/Common.Errors.ConflictError"},"Operations.WorkflowRunsApi_create.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkflowRunsApi_create.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkflowRunsApi_get.Response.200":{"$ref":"#/$defs/Workflow.WorkflowRun"},"Operations.WorkflowRunsApi_get.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkflowRunsApi_get.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.WorkflowRunsApi_get.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkflowRunsApi_get.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkflowRunsApi_getContent.Response.200":{"$ref":"#/$defs/Workflow.WorkflowContent"},"Operations.WorkflowRunsApi_getContent.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkflowRunsApi_getContent.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.WorkflowRunsApi_getContent.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkflowRunsApi_getContent.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkflowRunsApi_getGraph.Response.200":{"$ref":"#/$defs/Workflow.WorkflowGraphSnapshot"},"Operations.WorkflowRunsApi_getGraph.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.WorkflowRunsApi_getGraph.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkflowRunsApi_getGraph.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.WorkflowRunsApi_getGraph.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkflowRunsApi_getGraph.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkflowRunsApi_list.Response.200":{"$ref":"#/$defs/Workflow.WorkflowRunPage"},"Operations.WorkflowRunsApi_list.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.WorkflowRunsApi_list.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkflowRunsApi_list.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkflowRunsApi_list.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkflowRunsApi_pollControls.Response.200":{"$ref":"#/$defs/Workflow.WorkflowControlCommandPage"},"Operations.WorkflowRunsApi_pollControls.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.WorkflowRunsApi_pollControls.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkflowRunsApi_pollControls.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.WorkflowRunsApi_pollControls.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkflowRunsApi_pollControls.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkflowRunsApi_readEvents.Response.200":{"$ref":"#/$defs/Workflow.WorkflowEventPage"},"Operations.WorkflowRunsApi_readEvents.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.WorkflowRunsApi_readEvents.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkflowRunsApi_readEvents.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.WorkflowRunsApi_readEvents.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkflowRunsApi_readEvents.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkflowRunsApi_stream.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.WorkflowRunsApi_stream.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkflowRunsApi_stream.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.WorkflowRunsApi_stream.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkflowRunsApi_stream.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkflowRunsApi_submitControl.Request":{"$ref":"#/$defs/Workflow.WorkflowControlRequest"},"Operations.WorkflowRunsApi_submitControl.Response.200":{"$ref":"#/$defs/Workflow.WorkflowControlCommand"},"Operations.WorkflowRunsApi_submitControl.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.WorkflowRunsApi_submitControl.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkflowRunsApi_submitControl.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.WorkflowRunsApi_submitControl.Response.409":{"$ref":"#/$defs/Common.Errors.ConflictError"},"Operations.WorkflowRunsApi_submitControl.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkflowRunsApi_submitControl.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkflowRunsApi_updateControl.Request":{"$ref":"#/$defs/Workflow.WorkflowControlStatusUpdateRequest"},"Operations.WorkflowRunsApi_updateControl.Response.200":{"$ref":"#/$defs/Workflow.WorkflowControlCommand"},"Operations.WorkflowRunsApi_updateControl.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.WorkflowRunsApi_updateControl.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkflowRunsApi_updateControl.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.WorkflowRunsApi_updateControl.Response.409":{"$ref":"#/$defs/Common.Errors.ConflictError"},"Operations.WorkflowRunsApi_updateControl.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkflowRunsApi_updateControl.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.health_alive.Response.200":{"$ref":"#/$defs/Health.HealthReport"},"Operations.health_alive.Response.503":{"$ref":"#/$defs/Health.HealthReport"},"Operations.health_ready.Response.200":{"$ref":"#/$defs/Health.HealthReport"},"Operations.health_ready.Response.503":{"$ref":"#/$defs/Health.HealthReport"}}`)},Yg=(()=>{let e=as({offset:!0}).def.pattern;if(!(e instanceof RegExp))throw Error(`Zod offset-aware date-time validator did not expose a pattern`);return e.source})();function Xg(e){if(typeof e!=`object`||!e||Array.isArray(e))throw Error(`Published Qyl JSON Schema root must be an object`);let t=e,n=$g(t.$defs,`$defs`),r=new Map,i=new Set,a=e=>{let t=r.get(e);if(t)return t;if(i.has(e))throw Error(`Published Qyl JSON Schema has an inheritance cycle at '${e}'`);let a=n[e];if(a===void 0)throw Error(`Published Qyl JSON Schema is missing definition '${e}'`);i.add(e);let s=o(a);return i.delete(e),r.set(e,s),s},o=e=>{if(typeof e!=`object`||!e||Array.isArray(e))throw Error(`Expected a JSON Schema object node`);let t=e,n=Zg(t,a),r={};if(n.length>0){let e;for(let t of n){let n=e_(r.properties),i=e_(t.properties),a=t_(r.required),o=t_(t.required);Object.assign(r,t),r.properties={...n,...i},r.required=[...new Set([...a,...o])],e=t.additionalProperties}delete r.description,delete r.additionalProperties;for(let[e,n]of Object.entries(t))e===`allOf`||e===`properties`||e===`required`||e===`unevaluatedProperties`||(r[e]=s(n));r.properties={...e_(r.properties),...c(t.properties)};let i=[...new Set([...t_(r.required),...t_(t.required)])];i.length>0?r.required=i:delete r.required,`unevaluatedProperties`in t?r.additionalProperties=l(t.unevaluatedProperties):e!==void 0&&(r.additionalProperties=e)}else{for(let[e,n]of Object.entries(t))e!==`unevaluatedProperties`&&(r[e]=s(n));`unevaluatedProperties`in t&&(r.additionalProperties=l(t.unevaluatedProperties))}return t.type===`integer`&&(t.format===`int64`||t.format===`uint64`)&&(r.type=`number`,r.multipleOf=1,delete r.format),t.type===`string`&&t.format===`date-time`&&(r.pattern=Yg,delete r.format),r},s=e=>Array.isArray(e)?e.map(s):typeof e==`object`&&e?o(e):e,c=e=>{let t=e_(e);return Object.fromEntries(Object.entries(t).map(([e,t])=>[e,s(t)]))},l=e=>!n_(e)&&s(e),u={...t};delete u.$defs;let d=o(u);return d.$defs=Object.fromEntries(Object.keys(n).map(e=>[e,a(e)])),d}function Zg(e,t){if(e.type!==`object`||!Array.isArray(e.allOf))return[];let n=e.allOf.map(e=>Qg(e));if(n.some(e=>e===void 0))return[];let r=n.map(e=>t(e));return r.every(e=>e.type===`object`)?r:[]}function Qg(e){if(typeof e!=`object`||!e||Array.isArray(e))return;let t=e;if(!(Object.keys(t).length!==1||typeof t.$ref!=`string`))return t.$ref.startsWith(`#/$defs/`)?t.$ref.slice(8):void 0}function $g(e,t){if(typeof e!=`object`||!e||Array.isArray(e))throw Error(`Published Qyl JSON Schema ${t} must be an object`);return e}function e_(e){return typeof e==`object`&&e&&!Array.isArray(e)?e:{}}function t_(e){return Array.isArray(e)&&e.every(e=>typeof e==`string`)?e:[]}function n_(e){if(typeof e!=`object`||!e||Array.isArray(e))return!1;let t=e,n=t.not;return Object.keys(t).length===1&&typeof n==`object`&&!!n&&!Array.isArray(n)&&Object.keys(n).length===0}var r_=Xg(Jg),i_=new Map;function Z(e){let t=i_.get(e);if(t)return t;if(!(e in r_.$defs))throw Error(`Published Qyl JSON Schema has no '${e}' definition`);let n=Cu({$schema:r_.$schema,$defs:r_.$defs,$ref:`#/$defs/${e}`});return i_.set(e,n),n}function Q(e){return Z(`Workbench.${e}`)}Z(`OTel.Traces.Span`),Z(`OTel.Traces.TraceSummary`),Z(`OTel.Traces.Trace`),Z(`OTel.Logs.LogRecord`),Z(`Domains.Observe.Session.SessionEntity`),Z(`Operations.TracesApi_list.Response.200`),Z(`Operations.TracesApi_getSpans.Response.200`),Z(`Operations.SessionsApi_getTraces.Response.200`),Z(`Operations.LogsApi_list.Response.200`),Z(`Operations.SessionsApi_list.Response.200`),Z(`Common.Errors.ProblemDetails`),Z(`Mcp.Tools.McpDataMode`),Z(`Mcp.Tools.McpDashboardStats`),Z(`Mcp.Tools.DisplayTracesInput`);var a_=Z(`Mcp.Tools.DisplayTracesOutput`);Z(`Mcp.Tools.DisplayMcpDashboardInput`),Z(`Mcp.Tools.DisplayMcpDashboardOutput`),Z(`Mcp.Tools.ListTracesInput`),Z(`Mcp.Tools.ListTracesOutput`),Z(`Mcp.Tools.GetTraceInput`),Z(`Mcp.Tools.GetTraceOutput`),Z(`Mcp.Tools.ListSessionsInput`),Z(`Mcp.Tools.ListSessionsOutput`),Z(`Mcp.Tools.SearchLogsInput`),Z(`Mcp.Tools.SearchLogsOutput`),Z(`Mcp.Tools.FetchTelemetryInput`);var o_=Z(`Mcp.Tools.FetchTelemetryOutput`);Z(`Mcp.Tools.CiLogInput`),Z(`Mcp.Tools.CiRunSummary`),Z(`Mcp.Tools.CiPhase`),Z(`Mcp.Tools.CiLogOutput`),Z(`Workflow.WorkflowRun`),Z(`Operations.WorkflowRunsApi_list.Response.200`),Z(`Operations.WorkflowRunsApi_readEvents.Response.200`),Z(`Operations.WorkflowRunsApi_getGraph.Response.200`),Z(`Operations.WorkflowRunsApi_getContent.Response.200`),Z(`Operations.WorkflowRunsApi_submitControl.Response.200`),Z(`Mcp.Tools.ListWorkflowRunsInput`),Z(`Mcp.Tools.ListWorkflowRunsOutput`),Z(`Mcp.Tools.GetWorkflowGraphInput`),Z(`Mcp.Tools.GetWorkflowGraphOutput`),Z(`Mcp.Tools.DisplayWorkflowGraphInput`),Z(`Mcp.Tools.DisplayWorkflowGraphOutput`),Z(`Mcp.Tools.FetchWorkflowGraphUpdatesInput`),Z(`Mcp.Tools.FetchWorkflowGraphUpdatesOutput`),Z(`Mcp.Tools.ControlWorkflowRunInput`),Z(`Mcp.Tools.ControlWorkflowRunOutput`),Z(`Runner.RunnerResourceState`),Z(`Runner.RunnerLogLine`),Q(`WorkbenchSessionId`),Q(`WorkbenchWorkspaceId`),Q(`WorkbenchServerId`),Q(`WorkbenchExecutionId`),Q(`WorkbenchEvaluationRunId`),Q(`WorkbenchTestCaseId`),Q(`WorkbenchSuiteId`),Q(`WorkbenchEvaluationExportId`),Q(`WorkbenchPrincipalIdentity`),Q(`WorkbenchSession`),Q(`WorkbenchSessionBootstrapResponse`),Q(`WorkbenchWorkspace`),Q(`WorkbenchWorkspaceCreateRequest`),Q(`WorkbenchWorkspaceUpdateRequest`),Q(`WorkbenchWorkspaceListResponse`),Q(`WorkbenchToolInputMode`),Q(`WorkbenchWorkspacePreferences`),Q(`WorkbenchWorkspacePreferencesUpdateRequest`),Q(`WorkbenchTransportKind`),Q(`WorkbenchHeaderSecretScheme`),Q(`WorkbenchSecretReference`),Q(`WorkbenchEnvironmentSecretReference`),Q(`WorkbenchHeaderSecretReference`),Q(`WorkbenchStdioServerConfiguration`),Q(`WorkbenchStreamableHttpServerConfiguration`),Q(`WorkbenchBuiltinServerConfiguration`),Q(`WorkbenchServerConfiguration`),Q(`WorkbenchErrorCategory`),Q(`WorkbenchError`),Q(`WorkbenchInitializationSnapshot`),Q(`WorkbenchConnectionStatus`),Q(`WorkbenchConnectionSnapshot`),Q(`WorkbenchServer`),Q(`WorkbenchServerCreateRequest`),Q(`WorkbenchServerUpdateRequest`),Q(`WorkbenchServerListResponse`),Q(`WorkbenchServerActionAccepted`),Q(`WorkbenchDiscoveryCollection`),Q(`WorkbenchDiscoverySnapshot`),Q(`WorkbenchProtocolDirection`),Q(`WorkbenchProtocolEventKind`),Q(`WorkbenchProtocolEvent`),Q(`WorkbenchProtocolEventPage`),Q(`WorkbenchProtocolEvents`),Q(`WorkbenchExecutionEffect`),Q(`WorkbenchExecutionStatus`),Q(`WorkbenchExecutionConfirmationRequest`),Q(`WorkbenchExecutionConfirmationEvidence`),Q(`WorkbenchExecutionRequest`),Q(`WorkbenchExecutionTokenUsage`),Q(`WorkbenchExecutionCost`),Q(`WorkbenchTelemetryCorrelation`),Q(`WorkbenchExecutionUpdateEvents`),Q(`WorkbenchExecutionRecord`),Q(`WorkbenchExecutionAccepted`),Q(`WorkbenchExecutionCancelRequest`),Q(`WorkbenchExecutionPage`),Q(`WorkbenchTelemetryAvailability`),Q(`WorkbenchTelemetrySignalAvailability`),Q(`WorkbenchTelemetrySignalSummary`),Q(`WorkbenchExecutionTelemetryResponse`),Q(`WorkbenchAssertionStatus`),Q(`WorkbenchStatusAssertion`),Q(`WorkbenchExactAssertion`),Q(`WorkbenchPartialAssertion`),Q(`WorkbenchSchemaAssertion`),Q(`WorkbenchPatternAssertion`),Q(`WorkbenchLatencyAssertion`),Q(`WorkbenchTestAssertion`),Q(`WorkbenchTestCase`),Q(`WorkbenchTestCaseCreateRequest`),Q(`WorkbenchTestCaseUpdateRequest`),Q(`WorkbenchTestCasePage`),Q(`WorkbenchTestSuite`),Q(`WorkbenchTestSuiteCreateRequest`),Q(`WorkbenchTestSuiteUpdateRequest`),Q(`WorkbenchTestSuitePage`),Q(`WorkbenchEvaluationResultStatus`),Q(`WorkbenchEvaluationRunStatus`),Q(`WorkbenchRegressionStatus`),Q(`WorkbenchEvaluationRunRequest`),Q(`WorkbenchTestCaseRunRequest`),Q(`WorkbenchSuiteRunRequest`),Q(`WorkbenchAssertionResult`),Q(`WorkbenchEvaluationTestCaseSnapshot`),Q(`WorkbenchEvaluationSuiteSnapshot`),Q(`WorkbenchEvaluationTestResult`),Q(`WorkbenchEvaluationSummary`),Q(`WorkbenchEvaluationRun`),Q(`WorkbenchEvaluationRunAccepted`),Q(`WorkbenchEvaluationRunPage`),Q(`WorkbenchEvaluationComparisonRequest`),Q(`WorkbenchEvaluationTestComparison`),Q(`WorkbenchEvaluationRunComparison`),Q(`WorkbenchEvaluationExportFormat`),Q(`WorkbenchEvaluationExportStatus`),Q(`WorkbenchEvaluationExportRequest`),Q(`WorkbenchEvaluationExport`),Q(`WorkbenchEvaluationJsonExportPayload`),Q(`WorkbenchEvaluationReportExportPayload`),Q(`WorkbenchEvaluationExportPayload`),Q(`WorkbenchEvaluationExportArtifact`),Q(`WorkbenchEvaluationExportAccepted`),Z(`Common.Errors.UnauthorizedError`),Z(`Common.Errors.ForbiddenError`),Z(`Common.Errors.NotFoundError`),Z(`Common.Errors.ValidationError`),Z(`Common.Errors.ConflictError`),Z(`Common.Errors.BadGatewayError`),Z(`Common.Errors.ServiceUnavailableError`),Z(`Common.Errors.InternalServerError`);function s_(e){return`string_value`in e?e.string_value:`kv_list_value`in e?JSON.stringify(Object.fromEntries(e.kv_list_value.map(({key:e,value:t})=>[e,t]))):`array_value`in e?JSON.stringify(e.array_value):`[base64 bytes: ${e.bytes_value.length} characters]`}function c_(e){let[t]=e;if(!t)return{rows:[],traceStartNs:`0`,totalNs:0};let n=new Map;for(let t of e)n.set(t.span_id,t);let r=new Map,i=[];for(let t of e){let e=t.parent_span_id;if(e&&e!==t.span_id&&n.has(e)){let n=r.get(e);n?n.push(t):r.set(e,[t])}else i.push(t)}let a=(e,t)=>{let n=BigInt(e.start_time_unix_nano),r=BigInt(t.start_time_unix_nano);return n<r?-1:+(n>r)};i.sort(a);for(let e of r.values())e.sort(a);let o=BigInt(t.start_time_unix_nano),s=BigInt(t.end_time_unix_nano);for(let t of e){let e=BigInt(t.start_time_unix_nano),n=BigInt(t.end_time_unix_nano);e<o&&(o=e),n>s&&(s=n)}let c=Math.max(0,Number(s-o)),l=[],u=new Set,d=(e,t)=>{let n=Number(BigInt(e.start_time_unix_nano)-o),r=Math.max(0,Number(BigInt(e.end_time_unix_nano)-BigInt(e.start_time_unix_nano))),i=c>0?Math.min(100,Math.max(0,n/c*100)):0,a=c>0?Math.min(100-i,r/c*100):100;l.push({span:e,depth:t,leftPct:i,widthPct:a})},f=(e,t)=>{if(!u.has(e.span_id)){u.add(e.span_id),d(e,t);for(let n of r.get(e.span_id)??[])f(n,t+1)}};for(let e of i)f(e,0);let p=e.filter(e=>!u.has(e.span_id)).sort(a);for(let e of p)f(e,0);return{rows:l,traceStartNs:o.toString(),totalNs:c}}var $={mode:void 0,traces:[],selectedTraceId:void 0,selectedSpanId:void 0,activeTab:`waterfall`,logsCache:new Map,busy:!1,logsRequestSeq:0},l_=document.querySelector(`.main`),u_=document.getElementById(`demo-badge`),d_=document.getElementById(`trace-count-label`),f_=document.getElementById(`refresh-btn`),p_=document.getElementById(`empty-refresh-btn`),m_=document.getElementById(`retry-btn`),h_=document.getElementById(`banner`),g_=document.getElementById(`state-loading`),__=document.getElementById(`loading-text`),v_=document.getElementById(`state-empty`),y_=document.getElementById(`state-error`),b_=document.getElementById(`error-message`),x_=document.getElementById(`explorer`),S_=document.getElementById(`trace-list`),C_=document.getElementById(`trace-view-empty`),w_=document.getElementById(`trace-view-body`),T_=document.getElementById(`trace-title`),E_=document.getElementById(`trace-status-badge`),D_=document.getElementById(`trace-id-label`),O_=document.getElementById(`trace-duration-label`),k_=document.getElementById(`trace-span-count-label`),A_=document.getElementById(`trace-services`),j_=document.getElementById(`tab-waterfall`),M_=document.getElementById(`tab-logs`),N_=document.getElementById(`waterfall-panel`),P_=document.getElementById(`time-ruler`),F_=document.getElementById(`span-rows`),I_=document.getElementById(`logs-panel`),L_=document.getElementById(`logs-state`),R_=document.getElementById(`logs-list`),z_=document.getElementById(`detail-panel`),B_=document.getElementById(`detail-title`),V_=document.getElementById(`detail-body`),H_=document.getElementById(`detail-close-btn`),U_={0:`Unspecified`,1:`Internal`,2:`Server`,3:`Client`,4:`Producer`,5:`Consumer`};function W_(e){let t;for(let n of e.attributes??[]){let e=n?.key;if(typeof e==`string`){if(e.startsWith(`gen_ai.`))return`genai`;!t&&e.startsWith(`http.`)&&(t=`http`),!t&&e.startsWith(`db.`)&&(t=`db`),!t&&e.startsWith(`messaging.`)&&(t=`messaging`)}}return t||(e.kind===4||e.kind===5?`messaging`:`neutral`)}function G_(e){let t=e.resource?.service_name;return typeof t==`string`&&t?t:`unknown`}function K_(e){let t=e.severity_number,n;return n=t>=21?{label:`FATAL`,cls:`fatal`}:t>=17?{label:`ERROR`,cls:`error`}:t>=13?{label:`WARN`,cls:`warn`}:t>=9?{label:`INFO`,cls:`info`}:t>=5?{label:`DEBUG`,cls:`debug`}:{label:`TRACE`,cls:`trace`},typeof e.severity_text==`string`&&e.severity_text&&(n={...n,label:e.severity_text.toUpperCase()}),n}function q_(e){return e>=100?String(Math.round(e)):(e>=10?e.toFixed(1):e.toFixed(2)).replace(/\.?0+$/,``)}function J_(e,t){return Number(BigInt(t)-BigInt(e))}function Y_(e){return!Number.isFinite(e)||e<0?`—`:e<1e3?`${Math.round(e)} ns`:e<1e6?`${q_(e/1e3)} µs`:e<1e9?`${q_(e/1e6)} ms`:`${q_(e/1e9)} s`}function X_(e){return e.length>8?e.slice(0,8):e}function Z_(e){let t=BigInt(e);if(t<=0n)return`—`;let n=new Date(Number(t/1000000n));return`${String(n.getHours()).padStart(2,`0`)}:${String(n.getMinutes()).padStart(2,`0`)}:${String(n.getSeconds()).padStart(2,`0`)}.${String(n.getMilliseconds()).padStart(3,`0`)}`}function Q_(e){if(!Number.isFinite(e))return`—`;if(e<1e3)return String(e);for(let[t,n]of[[1e9,`B`],[1e6,`M`],[1e3,`K`]])if(e>=t){let r=e/t;return`${r>=100?Math.round(r).toString():r.toFixed(1).replace(/\.0$/,``)}${n}`}return String(e)}function $_(e){if(typeof e==`string`)return e;if(e==null)return``;if(typeof e==`number`||typeof e==`boolean`)return String(e);try{return JSON.stringify(e)}catch{return String(e)}}function ev(e){e.theme&&Wg(e.theme),e.styles?.variables&&Gg(e.styles.variables),e.styles?.css?.fonts&&Kg(e.styles.css.fonts),e.safeAreaInsets&&(l_.style.paddingTop=`${e.safeAreaInsets.top}px`,l_.style.paddingRight=`${e.safeAreaInsets.right}px`,l_.style.paddingBottom=`${e.safeAreaInsets.bottom}px`,l_.style.paddingLeft=`${e.safeAreaInsets.left}px`)}var tv=new Ug({name:`qyl Trace Explorer`,version:qg.version});tv.onteardown=async()=>(console.info(`App is being torn down`),{}),tv.ontoolinput=e=>{let t=e.arguments??{};typeof t.trace_id==`string`&&t.trace_id?__.textContent=`Loading trace ${X_(t.trace_id)}…`:typeof t.session_id==`string`&&t.session_id?__.textContent=`Loading session ${t.session_id}…`:__.textContent=`Loading traces…`,av(`loading`)},tv.ontoolresult=e=>{let t=rv(e);if(!t){ov(nv(e)??`Received an invalid tool result.`);return}fv(t)},tv.ontoolcancelled=()=>{av($.traces.length>0?`explorer`:`empty`)},tv.onerror=console.error,tv.onhostcontextchanged=ev;function nv(e){return e.content?.map(e=>`text`in e?e.text:``).filter(Boolean).join(` `)||void 0}function rv(e){let t=a_.safeParse(e.structuredContent);return t.success?t.data:null}function iv(e){let t=o_.safeParse(e.structuredContent);return t.success&&t.data.logs!==void 0?{logs:t.data.logs,mode:t.data.mode}:null}function av(e){g_.hidden=e!==`loading`,v_.hidden=e!==`empty`,y_.hidden=e!==`error`,x_.hidden=e!==`explorer`}function ov(e){b_.textContent=e,av(`error`)}var sv;function cv(e){h_.textContent=e,h_.hidden=!1,sv&&clearTimeout(sv),sv=setTimeout(()=>{h_.hidden=!0},6e3)}function lv(){u_.hidden=$.mode!==`demo`;let e=$.traces.length;d_.textContent=e===0?``:`${e} trace${e===1?``:`s`}`}function uv(){return $.traces.find(e=>e.trace_id===$.selectedTraceId)}function dv(e){if(e.root_span?.name)return e.root_span.name;let t;for(let n of e.spans)(!t||n.start_time_unix_nano<t.start_time_unix_nano)&&(t=n);return t?.name??`(unnamed trace)`}function fv(e){$.traces=e.traces,$.mode=e.mode,$.logsCache.clear(),$.selectedSpanId=void 0,kv();let t=e.selected_trace_id??$.selectedTraceId;$.selectedTraceId=$.traces.some(e=>e.trace_id===t)?t:$.traces[0]?.trace_id,$.activeTab=`waterfall`,lv(),_v(),vv(),av($.traces.length===0?`empty`:`explorer`)}function pv(e){$.selectedTraceId!==e&&($.selectedTraceId=e,$.selectedSpanId=void 0,$.activeTab=`waterfall`,kv(),_v(),vv())}function mv(e){if($.traces.length===0)return;let t=$.traces.findIndex(e=>e.trace_id===$.selectedTraceId),n=t===-1?0:Math.min($.traces.length-1,Math.max(0,t+e)),r=$.traces[n];!r||r.trace_id===$.selectedTraceId||(pv(r.trace_id),S_.querySelector(`[data-trace-id="${CSS.escape(r.trace_id)}"]`)?.scrollIntoView({block:`nearest`}))}function hv(e){let t=document.createElement(`span`);return t.className=`service-chip`,t.textContent=e,t}function gv(e){let t=document.createElement(`li`);t.className=`trace-row`,t.dataset.traceId=e.trace_id,t.setAttribute(`role`,`option`),t.tabIndex=-1,e.trace_id===$.selectedTraceId&&(t.classList.add(`selected`),t.setAttribute(`aria-selected`,`true`)),e.has_error&&t.classList.add(`has-error`);let n=document.createElement(`div`);if(n.className=`trace-row-top`,e.has_error){let e=document.createElement(`span`);e.className=`trace-warn`,e.textContent=`⚠`,e.title=`Trace contains error spans`,n.appendChild(e)}let r=document.createElement(`span`);r.className=`trace-row-name`,r.textContent=dv(e),r.title=dv(e),n.appendChild(r);let i=document.createElement(`span`);i.className=`trace-row-duration mono`,i.textContent=Y_(Number(e.duration_ns)),n.appendChild(i),t.appendChild(n);let a=document.createElement(`div`);a.className=`trace-row-meta`;let o=document.createElement(`span`);o.className=`mono dim`,o.textContent=X_(e.trace_id),a.appendChild(o);let s=document.createElement(`span`);if(s.className=`dim`,s.textContent=`${e.span_count} span${e.span_count===1?``:`s`}`,a.appendChild(s),t.appendChild(a),e.services.length>0){let n=document.createElement(`div`);n.className=`trace-row-chips`;for(let t of e.services.slice(0,4))n.appendChild(hv(t));if(e.services.length>4){let t=document.createElement(`span`);t.className=`dim`,t.textContent=`+${e.services.length-4}`,n.appendChild(t)}t.appendChild(n)}return t.addEventListener(`click`,()=>pv(e.trace_id)),t}function _v(){let e=document.createDocumentFragment();for(let t of $.traces)e.appendChild(gv(t));S_.replaceChildren(e)}function vv(){let e=uv();if(C_.hidden=!!e,w_.hidden=!e,!e)return;T_.textContent=dv(e),E_.textContent=e.has_error?`Error`:`OK`,E_.className=`trace-status-badge ${e.has_error?`error`:`ok`}`,D_.textContent=e.trace_id,O_.textContent=Y_(Number(e.duration_ns)),k_.textContent=`${e.span_count} span${e.span_count===1?``:`s`}`;let t=document.createDocumentFragment();for(let n of e.services)t.appendChild(hv(n));A_.replaceChildren(t),yv(),Cv(e),$.activeTab===`logs`&&jv(e)}function yv(){let e=$.activeTab===`logs`;j_.classList.toggle(`active`,!e),j_.setAttribute(`aria-selected`,String(!e)),M_.classList.toggle(`active`,e),M_.setAttribute(`aria-selected`,String(e)),N_.hidden=e,I_.hidden=!e}function bv(e){if($.activeTab===e)return;$.activeTab=e,yv();let t=uv();e===`logs`&&t&&jv(t)}function xv(e){P_.replaceChildren();for(let t=0;t<=4;t++){let n=t/4*100,r=document.createElement(`span`);r.className=`ruler-tick`,t===0&&r.classList.add(`first`),t===4&&r.classList.add(`last`),r.style.left=`${n}%`,r.textContent=e>0?Y_(t/4*e):`0 ns`,P_.appendChild(r)}}function Sv(e,t){let{span:n,depth:r}=e,i=W_(n),a=n.status?.code===2,o=document.createElement(`div`);o.className=`span-row flavor-${i}`,a&&o.classList.add(`has-error`),n.span_id===$.selectedSpanId&&o.classList.add(`selected`),o.dataset.spanId=n.span_id,o.tabIndex=0,o.setAttribute(`role`,`button`),o.setAttribute(`aria-label`,`Span ${n.name}, ${Y_(J_(n.start_time_unix_nano,n.end_time_unix_nano))}`);let s=document.createElement(`div`);s.className=`span-name-col`,s.style.paddingLeft=`${8+Math.min(r,24)*14}px`;let c=document.createElement(`span`);c.className=`span-dot`,s.appendChild(c);let l=document.createElement(`span`);l.className=`span-name`,l.textContent=n.name,l.title=n.name,s.appendChild(l);let u=document.createElement(`span`);u.className=`span-service dim`,u.textContent=G_(n),s.appendChild(u),o.appendChild(s);let d=document.createElement(`div`);d.className=`span-bar-col`;let f=document.createElement(`span`);f.className=`span-bar`,f.style.left=`${e.leftPct}%`,f.style.width=`${e.widthPct}%`,d.appendChild(f);let p=document.createElement(`span`);p.className=`span-duration mono`;let m=e.leftPct+e.widthPct;m<=82?p.style.left=`${m+.6}%`:e.leftPct>=12?p.style.right=`${100-e.leftPct+.6}%`:(p.classList.add(`inside`),p.style.right=`${Math.max(.6,100-m+.6)}%`),p.textContent=Y_(J_(n.start_time_unix_nano,n.end_time_unix_nano)),d.appendChild(p),o.appendChild(d);let h=()=>Ov(n,t);return o.addEventListener(`click`,h),o.addEventListener(`keydown`,e=>{e.key===`Enter`&&e.target===o&&h()}),o}function Cv(e){let t=c_(e.spans);xv(t.totalNs);let n=document.createDocumentFragment();for(let e of t.rows)n.appendChild(Sv(e,t.traceStartNs));if(F_.replaceChildren(n),t.rows.length===0){let e=document.createElement(`div`);e.className=`logs-state`,e.textContent=`This trace has no spans.`,F_.appendChild(e)}}function wv(e){let t=document.createElement(`section`);t.className=`detail-section`;let n=document.createElement(`div`);n.className=`detail-label`,n.textContent=e,t.appendChild(n);let r=document.createElement(`div`);return t.appendChild(r),{section:t,body:r}}function Tv(e,t,n){let r=document.createElement(`div`);r.className=`detail-stat`;let i=document.createElement(`div`);i.className=`detail-label`,i.textContent=e,r.appendChild(i);let a=document.createElement(`div`);return a.className=`detail-stat-value${n?` ${n}`:``}`,a.textContent=t,r.appendChild(a),r}function Ev(e,t){let n=document.createElement(`div`);n.className=`attr-table`;for(let e of t){if(typeof e?.key!=`string`)continue;let t=document.createElement(`span`);t.className=`attr-key mono`,(e.key.startsWith(`error.`)||e.key.startsWith(`exception.`))&&t.classList.add(`error`),t.textContent=e.key;let r=document.createElement(`span`);r.className=`attr-value mono`,r.textContent=$_(e.value),n.append(t,r)}e.appendChild(n)}function Dv(e,t){let n=document.createElement(`div`);n.className=`event-card`,e.name===`exception`&&n.classList.add(`exception`);let r=document.createElement(`div`);r.className=`event-head`;let i=document.createElement(`span`);i.className=`event-name`,i.textContent=e.name,r.appendChild(i);let a=document.createElement(`span`);a.className=`mono dim`,a.textContent=`+${Y_(Math.max(0,J_(t,e.time_unix_nano)))}`,r.appendChild(a),n.appendChild(r);for(let t of e.attributes??[]){let e=t,r=e&&typeof e.key==`string`?e.key:void 0,i=r===void 0?t:e?.value,a=document.createElement(`div`);if(a.className=`event-attr`,r!==void 0){let e=document.createElement(`span`);e.className=`attr-key mono`,e.textContent=r,a.appendChild(e)}if(r===`exception.stacktrace`){let e=document.createElement(`pre`);e.className=`stacktrace mono`,e.textContent=$_(i),a.appendChild(e)}else{let e=document.createElement(`span`);e.className=`attr-value mono`,e.textContent=$_(i),a.appendChild(e)}n.appendChild(a)}return n}function Ov(e,t){$.selectedSpanId=e.span_id;for(let t of F_.querySelectorAll(`.span-row`))t.classList.toggle(`selected`,t.dataset.spanId===e.span_id);B_.textContent=e.name;let n=document.createDocumentFragment(),r=document.createElement(`div`);r.className=`detail-stats`,r.appendChild(Tv(`Service`,G_(e))),r.appendChild(Tv(`Kind`,U_[e.kind]??String(e.kind))),r.appendChild(Tv(`Duration`,Y_(J_(e.start_time_unix_nano,e.end_time_unix_nano)))),r.appendChild(Tv(`Offset`,`+${Y_(Math.max(0,J_(t,e.start_time_unix_nano)))}`));let i=e.status?.code??0,a=i===2?`Error`:i===1?`OK`:`Unset`;r.appendChild(Tv(`Status`,a,i===2?`status-error`:i===1?`status-ok`:`status-unset`)),r.appendChild(Tv(`Start`,Z_(e.start_time_unix_nano)));let o=t=>{let n=(e.attributes??[]).find(e=>e?.key===t)?.value;return typeof n==`number`?n:void 0},s=o(`gen_ai.usage.input_tokens`),c=o(`gen_ai.usage.output_tokens`);if((s!==void 0||c!==void 0)&&r.appendChild(Tv(`Tokens`,`${s===void 0?`—`:Q_(s)} in · ${c===void 0?`—`:Q_(c)} out`)),n.appendChild(r),e.status?.message){let{section:t,body:r}=wv(`Status message`),i=document.createElement(`div`);i.className=`status-message mono`,i.textContent=e.status.message,r.appendChild(i),n.appendChild(t)}let{section:l,body:u}=wv(`Identifiers`),d=document.createElement(`div`);d.className=`attr-table`;let f=[[`trace`,e.trace_id],[`span`,e.span_id],[`parent`,e.parent_span_id]];for(let[e,t]of f){if(!t)continue;let n=document.createElement(`span`);n.className=`attr-key mono`,n.textContent=e;let r=document.createElement(`span`);r.className=`attr-value mono`,r.textContent=t,d.append(n,r)}u.appendChild(d),n.appendChild(l);let p=e.attributes??[];if(p.length>0){let{section:e,body:t}=wv(`Attributes (${p.length})`);Ev(t,p),n.appendChild(e)}let m=e.events??[];if(m.length>0){let{section:t,body:r}=wv(`Events (${m.length})`);for(let t of m)r.appendChild(Dv(t,e.start_time_unix_nano));n.appendChild(t)}V_.replaceChildren(n),z_.hidden=!1,V_.scrollTop=0}function kv(){if(!z_.hidden){z_.hidden=!0,$.selectedSpanId=void 0;for(let e of F_.querySelectorAll(`.span-row.selected`))e.classList.remove(`selected`)}}function Av(e){L_.hidden=e.length>0,e.length===0&&(L_.textContent=`No logs recorded for this trace.`);let t=document.createDocumentFragment(),n=[...e].sort((e,t)=>J_(t.time_unix_nano,e.time_unix_nano));for(let e of n){let{label:n,cls:r}=K_(e),i=document.createElement(`div`);i.className=`log-row severity-${r}`;let a=document.createElement(`span`);a.className=`log-time mono dim`,a.textContent=Z_(e.time_unix_nano),i.appendChild(a);let o=document.createElement(`span`);o.className=`log-severity`,o.textContent=n,i.appendChild(o);let s=document.createElement(`span`);s.className=`log-body mono`,s.textContent=s_(e.body),i.appendChild(s),t.appendChild(i)}R_.replaceChildren(t)}async function jv(e){let t=$.logsCache.get(e.trace_id);if(t){Av(t);return}let n=++$.logsRequestSeq;R_.replaceChildren(),L_.hidden=!1,L_.textContent=`Loading logs…`;try{let t=await tv.callServerTool({name:`fetch_telemetry`,arguments:{view:`logs`,trace_id:e.trace_id,limit:100}});if(t.isError)throw Error(nv(t)??`fetch_telemetry failed`);let r=iv(t);if(!r)throw Error(`fetch_telemetry returned an invalid logs payload`);if($.logsCache.set(e.trace_id,r.logs),n!==$.logsRequestSeq||$.selectedTraceId!==e.trace_id)return;$.activeTab===`logs`&&Av(r.logs)}catch(t){if(n!==$.logsRequestSeq||$.selectedTraceId!==e.trace_id)return;L_.hidden=!1,L_.textContent=`Couldn't load logs: ${t instanceof Error?t.message:String(t)}`}}async function Mv(){if($.busy)return;$.busy=!0,f_.disabled=!0,f_.classList.add(`spinning`);let e=$.traces.length>0;e||(__.textContent=`Loading traces…`,av(`loading`));try{let e=await tv.callServerTool({name:`fetch_telemetry`,arguments:{view:`traces`,limit:20}});if(e.isError)throw Error(nv(e)??`fetch_telemetry failed`);let t=rv(e);if(!t)throw Error(`fetch_telemetry returned an invalid payload`);fv(t)}catch(t){e?(av(`explorer`),cv(`Refresh failed: ${t instanceof Error?t.message:String(t)}`)):ov(t instanceof Error?t.message:String(t))}finally{$.busy=!1,f_.disabled=!1,f_.classList.remove(`spinning`)}}f_.addEventListener(`click`,()=>void Mv()),p_.addEventListener(`click`,()=>void Mv()),m_.addEventListener(`click`,()=>void Mv()),H_.addEventListener(`click`,kv),j_.addEventListener(`click`,()=>bv(`waterfall`)),M_.addEventListener(`click`,()=>bv(`logs`)),window.addEventListener(`keydown`,e=>{if(e.key===`Escape`){kv();return}if(e.key===`ArrowDown`||e.key===`ArrowUp`){if(x_.hidden)return;e.preventDefault(),mv(e.key===`ArrowDown`?1:-1)}}),tv.connect().then(()=>{let e=tv.getHostContext();e&&ev(e)}).catch(e=>{ov(e instanceof Error?e.message:String(e))});</script>
71
+ Set the \`cycles\` parameter to \`"ref"\` to resolve cyclical schemas with defs.`)}for(let n of e.seen.entries()){let r=n[1];if(t===n[0]){a(n);continue}if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}if(e.metadataRegistry.get(n[0])?.id){a(n);continue}if(r.cycle){a(n);continue}if(r.count>1&&e.reused===`ref`){a(n);continue}}}function lo(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);let r=t=>{let n=e.seen.get(t);if(n.ref===null)return;let i=n.def??n.schema,a={...i},o=n.ref;if(n.ref=null,o){r(o);let n=e.seen.get(o),s=n.schema;if(s.$ref&&(e.target===`draft-07`||e.target===`draft-04`||e.target===`openapi-3.0`)?(i.allOf=i.allOf??[],i.allOf.push(s)):Object.assign(i,s),Object.assign(i,a),t._zod.parent===o)for(let e in i)e===`$ref`||e===`allOf`||e in a||delete i[e];if(s.$ref&&n.def)for(let e in i)e===`$ref`||e===`allOf`||e in n.def&&JSON.stringify(i[e])===JSON.stringify(n.def[e])&&delete i[e]}let s=t._zod.parent;if(s&&s!==o){r(s);let t=e.seen.get(s);if(t?.schema.$ref&&(i.$ref=t.schema.$ref,t.def))for(let e in i)e===`$ref`||e===`allOf`||e in t.def&&JSON.stringify(i[e])===JSON.stringify(t.def[e])&&delete i[e]}e.override({zodSchema:t,jsonSchema:i,path:n.path??[]})};for(let t of[...e.seen.entries()].reverse())r(t[0]);let i={};if(e.target===`draft-2020-12`?i.$schema=`https://json-schema.org/draft/2020-12/schema`:e.target===`draft-07`?i.$schema=`http://json-schema.org/draft-07/schema#`:e.target===`draft-04`?i.$schema=`http://json-schema.org/draft-04/schema#`:e.target,e.external?.uri){let n=e.external.registry.get(t)?.id;if(!n)throw Error("Schema is missing an `id` property");i.$id=e.external.uri(n)}Object.assign(i,n.def??n.schema);let a=e.metadataRegistry.get(t)?.id;a!==void 0&&i.id===a&&delete i.id;let o=e.external?.defs??{};for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(e.def.id===e.defId&&delete e.def.id,o[e.defId]=e.def)}e.external||Object.keys(o).length>0&&(e.target===`draft-2020-12`?i.$defs=o:i.definitions=o);try{let n=JSON.parse(JSON.stringify(i));return Object.defineProperty(n,"~standard",{value:{...t[`~standard`],jsonSchema:{input:po(t,`input`,e.processors),output:po(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function uo(e,t){let n=t??{seen:new Set};if(n.seen.has(e))return!1;n.seen.add(e);let r=e._zod.def;if(r.type===`transform`)return!0;if(r.type===`array`)return uo(r.element,n);if(r.type===`set`)return uo(r.valueType,n);if(r.type===`lazy`)return uo(r.getter(),n);if(r.type===`promise`||r.type===`optional`||r.type===`nonoptional`||r.type===`nullable`||r.type===`readonly`||r.type==="default"||r.type===`prefault`)return uo(r.innerType,n);if(r.type===`intersection`)return uo(r.left,n)||uo(r.right,n);if(r.type===`record`||r.type===`map`)return uo(r.keyType,n)||uo(r.valueType,n);if(r.type===`pipe`)return e._zod.traits.has(`$ZodCodec`)?!0:uo(r.in,n)||uo(r.out,n);if(r.type===`object`){for(let e in r.shape)if(uo(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(uo(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(uo(e,n))return!0;return!!(r.rest&&uo(r.rest,n))}return!1}var fo=(e,t={})=>n=>{let r=so({...n,processors:t});return T(e,r),co(r,e),lo(r,e)},po=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=so({...i??{},target:a,io:t,processors:n});return T(e,o),co(o,e),lo(o,e)},mo={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},ho=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l}=e._zod.bag;if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=mo[s]??s,i.format===``&&delete i.format,s===`time`&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c];e.length===1?i.pattern=e[0].source:e.length>1&&(i.allOf=[...e.map(e=>({...t.target===`draft-07`||t.target===`draft-04`||t.target===`openapi-3.0`?{type:`string`}:{},pattern:e.source}))])}},go=(e,t,n,r)=>{let i=n,{minimum:a,maximum:o,format:s,multipleOf:c,exclusiveMaximum:l,exclusiveMinimum:u}=e._zod.bag;typeof s==`string`&&s.includes(`int`)?i.type=`integer`:i.type=`number`;let d=typeof u==`number`&&u>=(a??-1/0),f=typeof l==`number`&&l<=(o??1/0),p=t.target===`draft-04`||t.target===`openapi-3.0`;d?p?(i.minimum=u,i.exclusiveMinimum=!0):i.exclusiveMinimum=u:typeof a==`number`&&(i.minimum=a),f?p?(i.maximum=l,i.exclusiveMaximum=!0):i.exclusiveMaximum=l:typeof o==`number`&&(i.maximum=o),typeof c==`number`&&(i.multipleOf=c)},_o=(e,t,n,r)=>{n.type=`boolean`},vo=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`BigInt cannot be represented in JSON Schema`)},yo=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Symbols cannot be represented in JSON Schema`)},bo=(e,t,n,r)=>{t.target===`openapi-3.0`?(n.type=`string`,n.nullable=!0,n.enum=[null]):n.type=`null`},xo=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Undefined cannot be represented in JSON Schema`)},So=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Void cannot be represented in JSON Schema`)},Co=(e,t,n,r)=>{n.not={}},wo=(e,t,n,r)=>{},To=(e,t,n,r)=>{},Eo=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Date cannot be represented in JSON Schema`)},Do=(e,t,n,r)=>{let i=e._zod.def,a=m(i.entries);a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a},Oo=(e,t,n,r)=>{let i=e._zod.def,a=[];for(let e of i.values)if(e===void 0){if(t.unrepresentable===`throw`)throw Error("Literal `undefined` cannot be represented in JSON Schema")}else if(typeof e==`bigint`){if(t.unrepresentable===`throw`)throw Error(`BigInt literals cannot be represented in JSON Schema`);a.push(Number(e))}else a.push(e);if(a.length!==0)if(a.length===1){let e=a[0];n.type=e===null?`null`:typeof e,t.target===`draft-04`||t.target===`openapi-3.0`?n.enum=[e]:n.const=e}else a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),a.every(e=>typeof e==`boolean`)&&(n.type=`boolean`),a.every(e=>e===null)&&(n.type=`null`),n.enum=a},ko=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`NaN cannot be represented in JSON Schema`)},Ao=(e,t,n,r)=>{let i=n,a=e._zod.pattern;if(!a)throw Error(`Pattern not found in template literal`);i.type=`string`,i.pattern=a.source},jo=(e,t,n,r)=>{let i=n,a={type:`string`,format:`binary`,contentEncoding:`binary`},{minimum:o,maximum:s,mime:c}=e._zod.bag;o!==void 0&&(a.minLength=o),s!==void 0&&(a.maxLength=s),c?c.length===1?(a.contentMediaType=c[0],Object.assign(i,a)):(Object.assign(i,a),i.anyOf=c.map(e=>({contentMediaType:e}))):Object.assign(i,a)},Mo=(e,t,n,r)=>{n.type=`boolean`},No=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Custom types cannot be represented in JSON Schema`)},Po=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Function types cannot be represented in JSON Schema`)},Fo=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Transforms cannot be represented in JSON Schema`)},Io=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Map cannot be represented in JSON Schema`)},Lo=(e,t,n,r)=>{if(t.unrepresentable===`throw`)throw Error(`Set cannot be represented in JSON Schema`)},Ro=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=e._zod.bag;typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=T(a.element,t,{...r,path:[...r.path,`items`]})},zo=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`,i.properties={};let o=a.shape;for(let e in o)i.properties[e]=T(o[e],t,{...r,path:[...r.path,`properties`,e]});let s=new Set(Object.keys(o)),c=new Set([...s].filter(e=>{let n=a.shape[e]._zod;return t.io===`input`?n.optin===void 0:n.optout===void 0}));c.size>0&&(i.required=Array.from(c)),a.catchall?._zod.def.type===`never`?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=T(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},Bo=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>T(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},Vo=(e,t,n,r)=>{let i=e._zod.def,a=T(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=T(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1;n.allOf=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]]},Ho=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`array`;let o=t.target===`draft-2020-12`?`prefixItems`:`items`,s=t.target===`draft-2020-12`||t.target===`openapi-3.0`?`items`:`additionalItems`,c=a.items.map((e,n)=>T(e,t,{...r,path:[...r.path,o,n]})),l=a.rest?T(a.rest,t,{...r,path:[...r.path,s,...t.target===`openapi-3.0`?[a.items.length]:[]]}):null;t.target===`draft-2020-12`?(i.prefixItems=c,l&&(i.items=l)):t.target===`openapi-3.0`?(i.items={anyOf:c},l&&i.items.anyOf.push(l),i.minItems=c.length,l||(i.maxItems=c.length)):(i.items=c,l&&(i.additionalItems=l));let{minimum:u,maximum:d}=e._zod.bag;typeof u==`number`&&(i.minItems=u),typeof d==`number`&&(i.maxItems=d)},Uo=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`;let o=a.keyType,s=o._zod.bag?.patterns;if(a.mode===`loose`&&s&&s.size>0){let e=T(a.valueType,t,{...r,path:[...r.path,`patternProperties`,`*`]});i.patternProperties={};for(let t of s)i.patternProperties[t.source]=e}else(t.target===`draft-07`||t.target===`draft-2020-12`)&&(i.propertyNames=T(a.keyType,t,{...r,path:[...r.path,`propertyNames`]})),i.additionalProperties=T(a.valueType,t,{...r,path:[...r.path,`additionalProperties`]});let c=o._zod.values;if(c){let e=[...c].filter(e=>typeof e==`string`||typeof e==`number`);e.length>0&&(i.required=e)}},Wo=(e,t,n,r)=>{let i=e._zod.def,a=T(i.innerType,t,r),o=t.seen.get(e);t.target===`openapi-3.0`?(o.ref=i.innerType,n.nullable=!0):n.anyOf=[a,{type:`null`}]},Go=(e,t,n,r)=>{let i=e._zod.def;T(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},Ko=(e,t,n,r)=>{let i=e._zod.def;T(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.default=JSON.parse(JSON.stringify(i.defaultValue))},qo=(e,t,n,r)=>{let i=e._zod.def;T(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,t.io===`input`&&(n._prefault=JSON.parse(JSON.stringify(i.defaultValue)))},Jo=(e,t,n,r)=>{let i=e._zod.def;T(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{throw Error(`Dynamic catch values are not supported in JSON Schema`)}n.default=o},Yo=(e,t,n,r)=>{let i=e._zod.def,a=i.in._zod.traits.has(`$ZodTransform`),o=t.io===`input`?a?i.out:i.in:i.out;T(o,t,r);let s=t.seen.get(e);s.ref=o},Xo=(e,t,n,r)=>{let i=e._zod.def;T(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},Zo=(e,t,n,r)=>{let i=e._zod.def;T(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},Qo=(e,t,n,r)=>{let i=e._zod.def;T(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},$o=(e,t,n,r)=>{let i=e._zod.innerType;T(i,t,r);let a=t.seen.get(e);a.ref=i},es={string:ho,number:go,boolean:_o,bigint:vo,symbol:yo,null:bo,undefined:xo,void:So,never:Co,any:wo,unknown:To,date:Eo,enum:Do,literal:Oo,nan:ko,template_literal:Ao,file:jo,success:Mo,custom:No,function:Po,transform:Fo,map:Io,set:Lo,array:Ro,object:zo,union:Bo,intersection:Vo,tuple:Ho,record:Uo,nullable:Wo,nonoptional:Go,default:Ko,prefault:qo,catch:Jo,pipe:Yo,readonly:Xo,promise:Zo,optional:Qo,lazy:$o};function ts(e,t){if(`_idmap`in e){let n=e,r=so({...t,processors:es}),i={};for(let e of n._idmap.entries()){let[t,n]=e;T(n,r)}let a={};r.external={registry:n,uri:t?.uri,defs:i};for(let e of n._idmap.entries()){let[t,n]=e;co(r,n),a[t]=lo(r,n)}return Object.keys(i).length>0&&(a.__shared={[r.target===`draft-2020-12`?`$defs`:`definitions`]:i}),{schemas:a}}let n=so({...t,processors:es});return T(e,n),co(n,e),lo(n,e)}var ns=t({endsWith:()=>Ha,gt:()=>wa,gte:()=>Ta,includes:()=>Ba,length:()=>Ia,lowercase:()=>Ra,lt:()=>Sa,lte:()=>Ca,maxLength:()=>Pa,maxSize:()=>ja,mime:()=>Wa,minLength:()=>Fa,minSize:()=>Ma,multipleOf:()=>Aa,negative:()=>Da,nonnegative:()=>ka,nonpositive:()=>Oa,normalize:()=>Ka,overwrite:()=>Ga,positive:()=>Ea,property:()=>Ua,regex:()=>La,size:()=>Na,slugify:()=>Xa,startsWith:()=>Va,toLowerCase:()=>Ja,toUpperCase:()=>Ya,trim:()=>qa,uppercase:()=>za}),rs=t({ZodISODate:()=>os,ZodISODateTime:()=>is,ZodISODuration:()=>us,ZodISOTime:()=>cs,date:()=>ss,datetime:()=>as,duration:()=>ds,time:()=>ls}),is=l(`ZodISODateTime`,(e,t)=>{Jn.init(e,t),O.init(e,t)});function as(e){return Qi(is,e)}var os=l(`ZodISODate`,(e,t)=>{Yn.init(e,t),O.init(e,t)});function ss(e){return $i(os,e)}var cs=l(`ZodISOTime`,(e,t)=>{Xn.init(e,t),O.init(e,t)});function ls(e){return ea(cs,e)}var us=l(`ZodISODuration`,(e,t)=>{Zn.init(e,t),O.init(e,t)});function ds(e){return ta(us,e)}var fs=l(`ZodError`,(e,t)=>{Pe.init(e,t),e.name=`ZodError`,Object.defineProperties(e,{format:{value:t=>Le(e,t)},flatten:{value:t=>Ie(e,t)},addIssue:{value:t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,h,2)}},addIssues:{value:t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,h,2)}},isEmpty:{get(){return e.issues.length===0}}})},{Parent:Error}),ps=Re(fs),ms=Be(fs),hs=He(fs),gs=We(fs),_s=Ke(fs),vs=qe(fs),ys=Je(fs),bs=Ye(fs),xs=Xe(fs),Ss=Ze(fs),Cs=Qe(fs),ws=$e(fs),Ts=t({ZodAny:()=>Wc,ZodArray:()=>$c,ZodBase64:()=>fc,ZodBase64URL:()=>mc,ZodBigInt:()=>Nc,ZodBigIntFormat:()=>Fc,ZodBoolean:()=>Mc,ZodCIDRv4:()=>cc,ZodCIDRv6:()=>uc,ZodCUID:()=>Ks,ZodCUID2:()=>Js,ZodCatch:()=>Bl,ZodCodec:()=>Kl,ZodCustom:()=>ou,ZodCustomStringFormat:()=>bc,ZodDate:()=>Zc,ZodDefault:()=>Ml,ZodDiscriminatedUnion:()=>ol,ZodE164:()=>gc,ZodEmail:()=>As,ZodEmoji:()=>Hs,ZodEnum:()=>yl,ZodExactOptional:()=>Dl,ZodFile:()=>Sl,ZodFunction:()=>iu,ZodGUID:()=>Ms,ZodIPv4:()=>nc,ZodIPv6:()=>oc,ZodIntersection:()=>cl,ZodJWT:()=>vc,ZodKSUID:()=>ec,ZodLazy:()=>eu,ZodLiteral:()=>xl,ZodMAC:()=>ic,ZodMap:()=>hl,ZodNaN:()=>Hl,ZodNanoID:()=>Ws,ZodNever:()=>qc,ZodNonOptional:()=>Il,ZodNull:()=>Hc,ZodNullable:()=>kl,ZodNumber:()=>Tc,ZodNumberFormat:()=>Ec,ZodObject:()=>tl,ZodOptional:()=>El,ZodPipe:()=>Wl,ZodPrefault:()=>Pl,ZodPreprocess:()=>Yl,ZodPromise:()=>nu,ZodReadonly:()=>Xl,ZodRecord:()=>fl,ZodSet:()=>_l,ZodString:()=>ks,ZodStringFormat:()=>O,ZodSuccess:()=>Rl,ZodSymbol:()=>Rc,ZodTemplateLiteral:()=>Ql,ZodTransform:()=>wl,ZodTuple:()=>ul,ZodType:()=>E,ZodULID:()=>Xs,ZodURL:()=>zs,ZodUUID:()=>Ps,ZodUndefined:()=>Bc,ZodUnion:()=>rl,ZodUnknown:()=>Kc,ZodVoid:()=>Yc,ZodXID:()=>Qs,ZodXor:()=>il,_ZodString:()=>Os,_default:()=>Nl,_function:()=>au,any:()=>Gc,array:()=>M,base64:()=>pc,base64url:()=>hc,bigint:()=>Pc,boolean:()=>A,catch:()=>Vl,check:()=>su,cidrv4:()=>lc,cidrv6:()=>dc,codec:()=>ql,cuid:()=>qs,cuid2:()=>Ys,custom:()=>cu,date:()=>Qc,describe:()=>du,discriminatedUnion:()=>sl,e164:()=>_c,email:()=>js,emoji:()=>Us,enum:()=>L,exactOptional:()=>Ol,file:()=>Cl,float32:()=>Oc,float64:()=>kc,function:()=>au,guid:()=>Ns,hash:()=>wc,hex:()=>Cc,hostname:()=>Sc,httpUrl:()=>Vs,instanceof:()=>pu,int:()=>Dc,int32:()=>Ac,int64:()=>Ic,intersection:()=>ll,invertCodec:()=>Jl,ipv4:()=>rc,ipv6:()=>sc,json:()=>hu,jwt:()=>yc,keyof:()=>el,ksuid:()=>tc,lazy:()=>tu,literal:()=>R,looseObject:()=>P,looseRecord:()=>ml,mac:()=>ac,map:()=>gl,meta:()=>fu,nan:()=>Ul,nanoid:()=>Gs,nativeEnum:()=>bl,never:()=>Jc,nonoptional:()=>Ll,null:()=>Uc,nullable:()=>Al,nullish:()=>jl,number:()=>k,object:()=>N,optional:()=>z,partialRecord:()=>pl,pipe:()=>Gl,prefault:()=>Fl,preprocess:()=>gu,promise:()=>ru,readonly:()=>Zl,record:()=>I,refine:()=>lu,set:()=>vl,strictObject:()=>nl,string:()=>D,stringFormat:()=>xc,stringbool:()=>mu,success:()=>zl,superRefine:()=>uu,symbol:()=>zc,templateLiteral:()=>$l,transform:()=>Tl,tuple:()=>dl,uint32:()=>jc,uint64:()=>Lc,ulid:()=>Zs,undefined:()=>Vc,union:()=>F,unknown:()=>j,url:()=>Bs,uuid:()=>Fs,uuidv4:()=>Is,uuidv6:()=>Ls,uuidv7:()=>Rs,void:()=>Xc,xid:()=>$s,xor:()=>al}),Es=new WeakMap;function Ds(e,t,n){let r=Object.getPrototypeOf(e),i=Es.get(r);if(i||(i=new Set,Es.set(r,i)),!i.has(t)){i.add(t);for(let e in n){let t=n[e];Object.defineProperty(r,e,{configurable:!0,enumerable:!1,get(){let n=t.bind(this);return Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:n}),n},set(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,enumerable:!0,value:t})}})}}}var E=l(`ZodType`,(e,t)=>(C.init(e,t),Object.assign(e[`~standard`],{jsonSchema:{input:po(e,`input`),output:po(e,`output`)}}),e.toJSONSchema=fo(e,{}),e.def=t,e.type=t.type,Object.defineProperty(e,"_def",{value:t}),e.parse=(t,n)=>ps(e,t,n,{callee:e.parse}),e.safeParse=(t,n)=>hs(e,t,n),e.parseAsync=async(t,n)=>ms(e,t,n,{callee:e.parseAsync}),e.safeParseAsync=async(t,n)=>gs(e,t,n),e.spa=e.safeParseAsync,e.encode=(t,n)=>_s(e,t,n),e.decode=(t,n)=>vs(e,t,n),e.encodeAsync=async(t,n)=>ys(e,t,n),e.decodeAsync=async(t,n)=>bs(e,t,n),e.safeEncode=(t,n)=>xs(e,t,n),e.safeDecode=(t,n)=>Ss(e,t,n),e.safeEncodeAsync=async(t,n)=>Cs(e,t,n),e.safeDecodeAsync=async(t,n)=>ws(e,t,n),Ds(e,`ZodType`,{check(...e){let t=this.def;return this.clone(ae(t,{checks:[...t.checks??[],...e.map(e=>typeof e==`function`?{_zod:{check:e,def:{check:`custom`},onattach:[]}}:e)]}),{parent:!0})},with(...e){return this.check(...e)},clone(e,t){return ge(this,e,t)},brand(){return this},register(e,t){return e.add(this,t),this},refine(e,t){return this.check(lu(e,t))},superRefine(e,t){return this.check(uu(e,t))},overwrite(e){return this.check(Ga(e))},optional(){return z(this)},exactOptional(){return Ol(this)},nullable(){return Al(this)},nullish(){return z(Al(this))},nonoptional(e){return Ll(this,e)},array(){return M(this)},or(e){return F([this,e])},and(e){return ll(this,e)},transform(e){return Gl(this,Tl(e))},default(e){return Nl(this,e)},prefault(e){return Fl(this,e)},catch(e){return Vl(this,e)},pipe(e){return Gl(this,e)},readonly(){return Zl(this)},describe(e){let t=this.clone();return Di.add(t,{description:e}),t},meta(...e){if(e.length===0)return Di.get(this);let t=this.clone();return Di.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e){return e(this)}}),Object.defineProperty(e,"description",{get(){return Di.get(e)?.description},configurable:!0}),e)),Os=l(`_ZodString`,(e,t)=>{In.init(e,t),E.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ho(e,t,n,r);let n=e._zod.bag;e.format=n.format??null,e.minLength=n.minimum??null,e.maxLength=n.maximum??null,Ds(e,`_ZodString`,{regex(...e){return this.check(La(...e))},includes(...e){return this.check(Ba(...e))},startsWith(...e){return this.check(Va(...e))},endsWith(...e){return this.check(Ha(...e))},min(...e){return this.check(Fa(...e))},max(...e){return this.check(Pa(...e))},length(...e){return this.check(Ia(...e))},nonempty(...e){return this.check(Fa(1,...e))},lowercase(e){return this.check(Ra(e))},uppercase(e){return this.check(za(e))},trim(){return this.check(qa())},normalize(...e){return this.check(Ka(...e))},toLowerCase(){return this.check(Ja())},toUpperCase(){return this.check(Ya())},slugify(){return this.check(Xa())}})}),ks=l(`ZodString`,(e,t)=>{In.init(e,t),Os.init(e,t),e.email=t=>e.check(ki(As,t)),e.url=t=>e.check(Fi(zs,t)),e.jwt=t=>e.check(Zi(vc,t)),e.emoji=t=>e.check(Ii(Hs,t)),e.guid=t=>e.check(Ai(Ms,t)),e.uuid=t=>e.check(ji(Ps,t)),e.uuidv4=t=>e.check(Mi(Ps,t)),e.uuidv6=t=>e.check(Ni(Ps,t)),e.uuidv7=t=>e.check(Pi(Ps,t)),e.nanoid=t=>e.check(Li(Ws,t)),e.guid=t=>e.check(Ai(Ms,t)),e.cuid=t=>e.check(Ri(Ks,t)),e.cuid2=t=>e.check(zi(Js,t)),e.ulid=t=>e.check(Bi(Xs,t)),e.base64=t=>e.check(Ji(fc,t)),e.base64url=t=>e.check(Yi(mc,t)),e.xid=t=>e.check(Vi(Qs,t)),e.ksuid=t=>e.check(Hi(ec,t)),e.ipv4=t=>e.check(Ui(nc,t)),e.ipv6=t=>e.check(Wi(oc,t)),e.cidrv4=t=>e.check(Ki(cc,t)),e.cidrv6=t=>e.check(qi(uc,t)),e.e164=t=>e.check(Xi(gc,t)),e.datetime=t=>e.check(as(t)),e.date=t=>e.check(ss(t)),e.time=t=>e.check(ls(t)),e.duration=t=>e.check(ds(t))});function D(e){return Oi(ks,e)}var O=l(`ZodStringFormat`,(e,t)=>{w.init(e,t),Os.init(e,t)}),As=l(`ZodEmail`,(e,t)=>{zn.init(e,t),O.init(e,t)});function js(e){return ki(As,e)}var Ms=l(`ZodGUID`,(e,t)=>{Ln.init(e,t),O.init(e,t)});function Ns(e){return Ai(Ms,e)}var Ps=l(`ZodUUID`,(e,t)=>{Rn.init(e,t),O.init(e,t)});function Fs(e){return ji(Ps,e)}function Is(e){return Mi(Ps,e)}function Ls(e){return Ni(Ps,e)}function Rs(e){return Pi(Ps,e)}var zs=l(`ZodURL`,(e,t)=>{Bn.init(e,t),O.init(e,t)});function Bs(e){return Fi(zs,e)}function Vs(e){return Fi(zs,{protocol:At,hostname:kt,...v(e)})}var Hs=l(`ZodEmoji`,(e,t)=>{Vn.init(e,t),O.init(e,t)});function Us(e){return Ii(Hs,e)}var Ws=l(`ZodNanoID`,(e,t)=>{Hn.init(e,t),O.init(e,t)});function Gs(e){return Li(Ws,e)}var Ks=l(`ZodCUID`,(e,t)=>{Un.init(e,t),O.init(e,t)});function qs(e){return Ri(Ks,e)}var Js=l(`ZodCUID2`,(e,t)=>{Wn.init(e,t),O.init(e,t)});function Ys(e){return zi(Js,e)}var Xs=l(`ZodULID`,(e,t)=>{Gn.init(e,t),O.init(e,t)});function Zs(e){return Bi(Xs,e)}var Qs=l(`ZodXID`,(e,t)=>{Kn.init(e,t),O.init(e,t)});function $s(e){return Vi(Qs,e)}var ec=l(`ZodKSUID`,(e,t)=>{qn.init(e,t),O.init(e,t)});function tc(e){return Hi(ec,e)}var nc=l(`ZodIPv4`,(e,t)=>{Qn.init(e,t),O.init(e,t)});function rc(e){return Ui(nc,e)}var ic=l(`ZodMAC`,(e,t)=>{er.init(e,t),O.init(e,t)});function ac(e){return Gi(ic,e)}var oc=l(`ZodIPv6`,(e,t)=>{$n.init(e,t),O.init(e,t)});function sc(e){return Wi(oc,e)}var cc=l(`ZodCIDRv4`,(e,t)=>{tr.init(e,t),O.init(e,t)});function lc(e){return Ki(cc,e)}var uc=l(`ZodCIDRv6`,(e,t)=>{nr.init(e,t),O.init(e,t)});function dc(e){return qi(uc,e)}var fc=l(`ZodBase64`,(e,t)=>{ir.init(e,t),O.init(e,t)});function pc(e){return Ji(fc,e)}var mc=l(`ZodBase64URL`,(e,t)=>{or.init(e,t),O.init(e,t)});function hc(e){return Yi(mc,e)}var gc=l(`ZodE164`,(e,t)=>{sr.init(e,t),O.init(e,t)});function _c(e){return Xi(gc,e)}var vc=l(`ZodJWT`,(e,t)=>{lr.init(e,t),O.init(e,t)});function yc(e){return Zi(vc,e)}var bc=l(`ZodCustomStringFormat`,(e,t)=>{ur.init(e,t),O.init(e,t)});function xc(e,t,n={}){return oo(bc,e,t,n)}function Sc(e){return oo(bc,`hostname`,Ot,e)}function Cc(e){return oo(bc,`hex`,Kt,e)}function wc(e,t){let n=`${e}_${t?.enc??`hex`}`,r=et[n];if(!r)throw Error(`Unrecognized hash format: ${n}`);return oo(bc,n,r,t)}var Tc=l(`ZodNumber`,(e,t)=>{dr.init(e,t),E.init(e,t),e._zod.processJSONSchema=(t,n,r)=>go(e,t,n,r),Ds(e,`ZodNumber`,{gt(e,t){return this.check(wa(e,t))},gte(e,t){return this.check(Ta(e,t))},min(e,t){return this.check(Ta(e,t))},lt(e,t){return this.check(Sa(e,t))},lte(e,t){return this.check(Ca(e,t))},max(e,t){return this.check(Ca(e,t))},int(e){return this.check(Dc(e))},safe(e){return this.check(Dc(e))},positive(e){return this.check(wa(0,e))},nonnegative(e){return this.check(Ta(0,e))},negative(e){return this.check(Sa(0,e))},nonpositive(e){return this.check(Ca(0,e))},multipleOf(e,t){return this.check(Aa(e,t))},step(e,t){return this.check(Aa(e,t))},finite(){return this}});let n=e._zod.bag;e.minValue=Math.max(n.minimum??-1/0,n.exclusiveMinimum??-1/0)??null,e.maxValue=Math.min(n.maximum??1/0,n.exclusiveMaximum??1/0)??null,e.isInt=(n.format??``).includes(`int`)||Number.isSafeInteger(n.multipleOf??.5),e.isFinite=!0,e.format=n.format??null});function k(e){return na(Tc,e)}var Ec=l(`ZodNumberFormat`,(e,t)=>{fr.init(e,t),Tc.init(e,t)});function Dc(e){return ia(Ec,e)}function Oc(e){return aa(Ec,e)}function kc(e){return oa(Ec,e)}function Ac(e){return sa(Ec,e)}function jc(e){return ca(Ec,e)}var Mc=l(`ZodBoolean`,(e,t)=>{pr.init(e,t),E.init(e,t),e._zod.processJSONSchema=(t,n,r)=>_o(e,t,n,r)});function A(e){return la(Mc,e)}var Nc=l(`ZodBigInt`,(e,t)=>{mr.init(e,t),E.init(e,t),e._zod.processJSONSchema=(t,n,r)=>vo(e,t,n,r),e.gte=(t,n)=>e.check(Ta(t,n)),e.min=(t,n)=>e.check(Ta(t,n)),e.gt=(t,n)=>e.check(wa(t,n)),e.gte=(t,n)=>e.check(Ta(t,n)),e.min=(t,n)=>e.check(Ta(t,n)),e.lt=(t,n)=>e.check(Sa(t,n)),e.lte=(t,n)=>e.check(Ca(t,n)),e.max=(t,n)=>e.check(Ca(t,n)),e.positive=t=>e.check(wa(BigInt(0),t)),e.negative=t=>e.check(Sa(BigInt(0),t)),e.nonpositive=t=>e.check(Ca(BigInt(0),t)),e.nonnegative=t=>e.check(Ta(BigInt(0),t)),e.multipleOf=(t,n)=>e.check(Aa(t,n));let n=e._zod.bag;e.minValue=n.minimum??null,e.maxValue=n.maximum??null,e.format=n.format??null});function Pc(e){return ua(Nc,e)}var Fc=l(`ZodBigIntFormat`,(e,t)=>{hr.init(e,t),Nc.init(e,t)});function Ic(e){return da(Fc,e)}function Lc(e){return fa(Fc,e)}var Rc=l(`ZodSymbol`,(e,t)=>{gr.init(e,t),E.init(e,t),e._zod.processJSONSchema=(t,n,r)=>yo(e,t,n,r)});function zc(e){return pa(Rc,e)}var Bc=l(`ZodUndefined`,(e,t)=>{_r.init(e,t),E.init(e,t),e._zod.processJSONSchema=(t,n,r)=>xo(e,t,n,r)});function Vc(e){return ma(Bc,e)}var Hc=l(`ZodNull`,(e,t)=>{vr.init(e,t),E.init(e,t),e._zod.processJSONSchema=(t,n,r)=>bo(e,t,n,r)});function Uc(e){return ha(Hc,e)}var Wc=l(`ZodAny`,(e,t)=>{yr.init(e,t),E.init(e,t),e._zod.processJSONSchema=(e,t,n)=>void 0});function Gc(){return ga(Wc)}var Kc=l(`ZodUnknown`,(e,t)=>{br.init(e,t),E.init(e,t),e._zod.processJSONSchema=(e,t,n)=>void 0});function j(){return _a(Kc)}var qc=l(`ZodNever`,(e,t)=>{xr.init(e,t),E.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Co(e,t,n,r)});function Jc(e){return va(qc,e)}var Yc=l(`ZodVoid`,(e,t)=>{Sr.init(e,t),E.init(e,t),e._zod.processJSONSchema=(t,n,r)=>So(e,t,n,r)});function Xc(e){return ya(Yc,e)}var Zc=l(`ZodDate`,(e,t)=>{Cr.init(e,t),E.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Eo(e,t,n,r),e.min=(t,n)=>e.check(Ta(t,n)),e.max=(t,n)=>e.check(Ca(t,n));let n=e._zod.bag;e.minDate=n.minimum?new Date(n.minimum):null,e.maxDate=n.maximum?new Date(n.maximum):null});function Qc(e){return ba(Zc,e)}var $c=l(`ZodArray`,(e,t)=>{Tr.init(e,t),E.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ro(e,t,n,r),e.element=t.element,Ds(e,`ZodArray`,{min(e,t){return this.check(Fa(e,t))},nonempty(e){return this.check(Fa(1,e))},max(e,t){return this.check(Pa(e,t))},length(e,t){return this.check(Ia(e,t))},unwrap(){return this.element}})});function M(e,t){return Za($c,e,t)}function el(e){let t=e._zod.def.shape;return L(Object.keys(t))}var tl=l(`ZodObject`,(e,t)=>{Ar.init(e,t),E.init(e,t),e._zod.processJSONSchema=(t,n,r)=>zo(e,t,n,r),_(e,`shape`,()=>t.shape),Ds(e,`ZodObject`,{keyof(){return L(Object.keys(this._zod.def.shape))},catchall(e){return this.clone({...this._zod.def,catchall:e})},passthrough(){return this.clone({...this._zod.def,catchall:j()})},loose(){return this.clone({...this._zod.def,catchall:j()})},strict(){return this.clone({...this._zod.def,catchall:Jc()})},strip(){return this.clone({...this._zod.def,catchall:void 0})},extend(e){return Se(this,e)},safeExtend(e){return Ce(this,e)},merge(e){return we(this,e)},pick(e){return be(this,e)},omit(e){return xe(this,e)},partial(...e){return Te(El,this,e[0])},required(...e){return Ee(Il,this,e[0])}})});function N(e,t){return new tl({type:`object`,shape:e??{},...v(t)})}function nl(e,t){return new tl({type:`object`,shape:e,catchall:Jc(),...v(t)})}function P(e,t){return new tl({type:`object`,shape:e,catchall:j(),...v(t)})}var rl=l(`ZodUnion`,(e,t)=>{Mr.init(e,t),E.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Bo(e,t,n,r),e.options=t.options});function F(e,t){return new rl({type:`union`,options:e,...v(t)})}var il=l(`ZodXor`,(e,t)=>{rl.init(e,t),Pr.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Bo(e,t,n,r),e.options=t.options});function al(e,t){return new il({type:`union`,options:e,inclusive:!1,...v(t)})}var ol=l(`ZodDiscriminatedUnion`,(e,t)=>{rl.init(e,t),Fr.init(e,t)});function sl(e,t,n){return new ol({type:`union`,options:t,discriminator:e,...v(n)})}var cl=l(`ZodIntersection`,(e,t)=>{Ir.init(e,t),E.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Vo(e,t,n,r)});function ll(e,t){return new cl({type:`intersection`,left:e,right:t})}var ul=l(`ZodTuple`,(e,t)=>{zr.init(e,t),E.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ho(e,t,n,r),e.rest=t=>e.clone({...e._zod.def,rest:t})});function dl(e,t,n){let r=t instanceof C;return new ul({type:`tuple`,items:e,rest:r?t:null,...v(r?n:t)})}var fl=l(`ZodRecord`,(e,t)=>{Ur.init(e,t),E.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Uo(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType});function I(e,t,n){return!t||!t._zod?new fl({type:`record`,keyType:D(),valueType:e,...v(t)}):new fl({type:`record`,keyType:e,valueType:t,...v(n)})}function pl(e,t,n){let r=ge(e);return r._zod.values=void 0,new fl({type:`record`,keyType:r,valueType:t,...v(n)})}function ml(e,t,n){return new fl({type:`record`,keyType:e,valueType:t,mode:`loose`,...v(n)})}var hl=l(`ZodMap`,(e,t)=>{Wr.init(e,t),E.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Io(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...t)=>e.check(Ma(...t)),e.nonempty=t=>e.check(Ma(1,t)),e.max=(...t)=>e.check(ja(...t)),e.size=(...t)=>e.check(Na(...t))});function gl(e,t,n){return new hl({type:`map`,keyType:e,valueType:t,...v(n)})}var _l=l(`ZodSet`,(e,t)=>{Kr.init(e,t),E.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Lo(e,t,n,r),e.min=(...t)=>e.check(Ma(...t)),e.nonempty=t=>e.check(Ma(1,t)),e.max=(...t)=>e.check(ja(...t)),e.size=(...t)=>e.check(Na(...t))});function vl(e,t){return new _l({type:`set`,valueType:e,...v(t)})}var yl=l(`ZodEnum`,(e,t)=>{Jr.init(e,t),E.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Do(e,t,n,r),e.enum=t.entries,e.options=Object.values(t.entries);let n=new Set(Object.keys(t.entries));e.extract=(e,r)=>{let i={};for(let r of e)if(n.has(r))i[r]=t.entries[r];else throw Error(`Key ${r} not found in enum`);return new yl({...t,checks:[],...v(r),entries:i})},e.exclude=(e,r)=>{let i={...t.entries};for(let t of e)if(n.has(t))delete i[t];else throw Error(`Key ${t} not found in enum`);return new yl({...t,checks:[],...v(r),entries:i})}});function L(e,t){return new yl({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...v(t)})}function bl(e,t){return new yl({type:`enum`,entries:e,...v(t)})}var xl=l(`ZodLiteral`,(e,t)=>{Yr.init(e,t),E.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Oo(e,t,n,r),e.values=new Set(t.values),Object.defineProperty(e,"value",{get(){if(t.values.length>1)throw Error("This schema contains multiple valid literal values. Use `.values` instead.");return t.values[0]}})});function R(e,t){return new xl({type:`literal`,values:Array.isArray(e)?e:[e],...v(t)})}var Sl=l(`ZodFile`,(e,t)=>{Xr.init(e,t),E.init(e,t),e._zod.processJSONSchema=(t,n,r)=>jo(e,t,n,r),e.min=(t,n)=>e.check(Ma(t,n)),e.max=(t,n)=>e.check(ja(t,n)),e.mime=(t,n)=>e.check(Wa(Array.isArray(t)?t:[t],n))});function Cl(e){return Qa(Sl,e)}var wl=l(`ZodTransform`,(e,t)=>{Zr.init(e,t),E.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Fo(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new d(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(Me(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,t.input??=n.value,t.inst??=e,n.issues.push(Me(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n.fallback=!0,n)):(n.value=i,n.fallback=!0,n)}});function Tl(e){return new wl({type:`transform`,transform:e})}var El=l(`ZodOptional`,(e,t)=>{$r.init(e,t),E.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Qo(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function z(e){return new El({type:`optional`,innerType:e})}var Dl=l(`ZodExactOptional`,(e,t)=>{ei.init(e,t),E.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Qo(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Ol(e){return new Dl({type:`optional`,innerType:e})}var kl=l(`ZodNullable`,(e,t)=>{ti.init(e,t),E.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Wo(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Al(e){return new kl({type:`nullable`,innerType:e})}function jl(e){return z(Al(e))}var Ml=l(`ZodDefault`,(e,t)=>{ni.init(e,t),E.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ko(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Nl(e,t){return new Ml({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():fe(t)}})}var Pl=l(`ZodPrefault`,(e,t)=>{ii.init(e,t),E.init(e,t),e._zod.processJSONSchema=(t,n,r)=>qo(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Fl(e,t){return new Pl({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():fe(t)}})}var Il=l(`ZodNonOptional`,(e,t)=>{ai.init(e,t),E.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Go(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Ll(e,t){return new Il({type:`nonoptional`,innerType:e,...v(t)})}var Rl=l(`ZodSuccess`,(e,t)=>{si.init(e,t),E.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Mo(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function zl(e){return new Rl({type:`success`,innerType:e})}var Bl=l(`ZodCatch`,(e,t)=>{ci.init(e,t),E.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Jo(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function Vl(e,t){return new Bl({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:()=>t})}var Hl=l(`ZodNaN`,(e,t)=>{li.init(e,t),E.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ko(e,t,n,r)});function Ul(e){return xa(Hl,e)}var Wl=l(`ZodPipe`,(e,t)=>{ui.init(e,t),E.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Yo(e,t,n,r),e.in=t.in,e.out=t.out});function Gl(e,t){return new Wl({type:`pipe`,in:e,out:t})}var Kl=l(`ZodCodec`,(e,t)=>{Wl.init(e,t),fi.init(e,t)});function ql(e,t,n){return new Kl({type:`pipe`,in:e,out:t,transform:n.decode,reverseTransform:n.encode})}function Jl(e){let t=e._zod.def;return new Kl({type:`pipe`,in:t.out,out:t.in,transform:t.reverseTransform,reverseTransform:t.transform})}var Yl=l(`ZodPreprocess`,(e,t)=>{Wl.init(e,t),hi.init(e,t)}),Xl=l(`ZodReadonly`,(e,t)=>{gi.init(e,t),E.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Xo(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Zl(e){return new Xl({type:`readonly`,innerType:e})}var Ql=l(`ZodTemplateLiteral`,(e,t)=>{vi.init(e,t),E.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ao(e,t,n,r)});function $l(e,t){return new Ql({type:`template_literal`,parts:e,...v(t)})}var eu=l(`ZodLazy`,(e,t)=>{xi.init(e,t),E.init(e,t),e._zod.processJSONSchema=(t,n,r)=>$o(e,t,n,r),e.unwrap=()=>e._zod.def.getter()});function tu(e){return new eu({type:`lazy`,getter:e})}var nu=l(`ZodPromise`,(e,t)=>{bi.init(e,t),E.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Zo(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function ru(e){return new nu({type:`promise`,innerType:e})}var iu=l(`ZodFunction`,(e,t)=>{yi.init(e,t),E.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Po(e,t,n,r)});function au(e){return new iu({type:`function`,input:Array.isArray(e?.input)?dl(e?.input):e?.input??M(j()),output:e?.output??j()})}var ou=l(`ZodCustom`,(e,t)=>{Si.init(e,t),E.init(e,t),e._zod.processJSONSchema=(t,n,r)=>No(e,t,n,r)});function su(e){let t=new S({check:`custom`});return t._zod.check=e,t}function cu(e,t){return $a(ou,e??(()=>!0),t)}function lu(e,t={}){return eo(ou,e,t)}function uu(e,t){return to(e,t)}var du=ro,fu=io;function pu(e,t={}){let n=new ou({type:`custom`,check:`custom`,fn:t=>t instanceof e,abort:!0,...v(t)});return n._zod.bag.Class=e,n._zod.check=t=>{t.value instanceof e||t.issues.push({code:`invalid_type`,expected:e.name,input:t.value,inst:n,path:[...n._zod.def.path??[]]})},n}var mu=(...e)=>ao({Codec:Kl,Boolean:Mc,String:ks},...e);function hu(e){let t=tu(()=>F([D(e),k(),A(),Uc(),M(t),I(D(),t)]));return t}function gu(e,t){return new Yl({type:`pipe`,in:Tl(e),out:t})}var _u={invalid_type:`invalid_type`,too_big:`too_big`,too_small:`too_small`,invalid_format:`invalid_format`,not_multiple_of:`not_multiple_of`,unrecognized_keys:`unrecognized_keys`,invalid_union:`invalid_union`,invalid_key:`invalid_key`,invalid_element:`invalid_element`,invalid_value:`invalid_value`,custom:`custom`},vu;vu||={};var B={...Ts,...ns,iso:rs},yu=new Set(`$schema.$ref.$defs.definitions.$id.id.$comment.$anchor.$vocabulary.$dynamicRef.$dynamicAnchor.type.enum.const.anyOf.oneOf.allOf.not.properties.required.additionalProperties.patternProperties.propertyNames.minProperties.maxProperties.items.prefixItems.additionalItems.minItems.maxItems.uniqueItems.contains.minContains.maxContains.minLength.maxLength.pattern.format.minimum.maximum.exclusiveMinimum.exclusiveMaximum.multipleOf.description.default.contentEncoding.contentMediaType.contentSchema.unevaluatedItems.unevaluatedProperties.if.then.else.dependentSchemas.dependentRequired.nullable.readOnly`.split(`.`));function bu(e,t){let n=e.$schema;return n===`https://json-schema.org/draft/2020-12/schema`?`draft-2020-12`:n===`http://json-schema.org/draft-07/schema#`?`draft-7`:n===`http://json-schema.org/draft-04/schema#`?`draft-4`:t??`draft-2020-12`}function xu(e,t){if(!e.startsWith(`#`))throw Error(`External $ref is not supported, only local refs (#/...) are allowed`);let n=e.slice(1).split(`/`).filter(Boolean);if(n.length===0)return t.rootSchema;let r=t.version===`draft-2020-12`?`$defs`:`definitions`;if(n[0]===r){let r=n[1];if(!r||!t.defs[r])throw Error(`Reference not found: ${e}`);return t.defs[r]}throw Error(`Reference not found: ${e}`)}function Su(e,t){if(e.not!==void 0){if(typeof e.not==`object`&&Object.keys(e.not).length===0)return B.never();throw Error(`not is not supported in Zod (except { not: {} } for never)`)}if(e.unevaluatedItems!==void 0)throw Error(`unevaluatedItems is not supported`);if(e.unevaluatedProperties!==void 0)throw Error(`unevaluatedProperties is not supported`);if(e.if!==void 0||e.then!==void 0||e.else!==void 0)throw Error(`Conditional schemas (if/then/else) are not supported`);if(e.dependentSchemas!==void 0||e.dependentRequired!==void 0)throw Error(`dependentSchemas and dependentRequired are not supported`);if(e.$ref){let n=e.$ref;if(t.refs.has(n))return t.refs.get(n);if(t.processing.has(n))return B.lazy(()=>{if(!t.refs.has(n))throw Error(`Circular reference not resolved: ${n}`);return t.refs.get(n)});t.processing.add(n);let r=V(xu(n,t),t);return t.refs.set(n,r),t.processing.delete(n),r}if(e.enum!==void 0){let n=e.enum;if(t.version===`openapi-3.0`&&e.nullable===!0&&n.length===1&&n[0]===null)return B.null();if(n.length===0)return B.never();if(n.length===1)return B.literal(n[0]);if(n.every(e=>typeof e==`string`))return B.enum(n);let r=n.map(e=>B.literal(e));return r.length<2?r[0]:B.union([r[0],r[1],...r.slice(2)])}if(e.const!==void 0)return B.literal(e.const);let n=e.type;if(Array.isArray(n)){let r=n.map(n=>Su({...e,type:n},t));return r.length===0?B.never():r.length===1?r[0]:B.union(r)}if(!n)return B.any();let r;switch(n){case`string`:{let t=B.string();if(e.format){let n=e.format;n===`email`?t=t.check(B.email()):n===`uri`||n===`uri-reference`?t=t.check(B.url()):n===`uuid`||n===`guid`?t=t.check(B.uuid()):n===`date-time`?t=t.check(B.iso.datetime()):n===`date`?t=t.check(B.iso.date()):n===`time`?t=t.check(B.iso.time()):n===`duration`?t=t.check(B.iso.duration()):n===`ipv4`?t=t.check(B.ipv4()):n===`ipv6`?t=t.check(B.ipv6()):n===`mac`?t=t.check(B.mac()):n===`cidr`?t=t.check(B.cidrv4()):n===`cidr-v6`?t=t.check(B.cidrv6()):n===`base64`?t=t.check(B.base64()):n===`base64url`?t=t.check(B.base64url()):n===`e164`?t=t.check(B.e164()):n===`jwt`?t=t.check(B.jwt()):n===`emoji`?t=t.check(B.emoji()):n===`nanoid`?t=t.check(B.nanoid()):n===`cuid`?t=t.check(B.cuid()):n===`cuid2`?t=t.check(B.cuid2()):n===`ulid`?t=t.check(B.ulid()):n===`xid`?t=t.check(B.xid()):n===`ksuid`&&(t=t.check(B.ksuid()))}typeof e.minLength==`number`&&(t=t.min(e.minLength)),typeof e.maxLength==`number`&&(t=t.max(e.maxLength)),e.pattern&&(t=t.regex(new RegExp(e.pattern))),r=t;break}case`number`:case`integer`:{let t=n===`integer`?B.number().int():B.number();typeof e.minimum==`number`&&(t=t.min(e.minimum)),typeof e.maximum==`number`&&(t=t.max(e.maximum)),typeof e.exclusiveMinimum==`number`?t=t.gt(e.exclusiveMinimum):e.exclusiveMinimum===!0&&typeof e.minimum==`number`&&(t=t.gt(e.minimum)),typeof e.exclusiveMaximum==`number`?t=t.lt(e.exclusiveMaximum):e.exclusiveMaximum===!0&&typeof e.maximum==`number`&&(t=t.lt(e.maximum)),typeof e.multipleOf==`number`&&(t=t.multipleOf(e.multipleOf)),r=t;break}case`boolean`:r=B.boolean();break;case`null`:r=B.null();break;case`object`:{let n={},i=e.properties||{},a=new Set(e.required||[]);for(let[e,r]of Object.entries(i)){let i=V(r,t);n[e]=a.has(e)?i:i.optional()}if(e.propertyNames){let i=V(e.propertyNames,t),a=e.additionalProperties&&typeof e.additionalProperties==`object`?V(e.additionalProperties,t):B.any();if(Object.keys(n).length===0){r=B.record(i,a);break}let o=B.object(n).passthrough(),s=B.looseRecord(i,a);r=B.intersection(o,s);break}if(e.patternProperties){let i=e.patternProperties,a=Object.keys(i),o=[];for(let e of a){let n=V(i[e],t),r=B.string().regex(new RegExp(e));o.push(B.looseRecord(r,n))}let s=[];if(Object.keys(n).length>0&&s.push(B.object(n).passthrough()),s.push(...o),s.length===0)r=B.object({}).passthrough();else if(s.length===1)r=s[0];else{let e=B.intersection(s[0],s[1]);for(let t=2;t<s.length;t++)e=B.intersection(e,s[t]);r=e}break}let o=B.object(n);r=e.additionalProperties===!1?o.strict():typeof e.additionalProperties==`object`?o.catchall(V(e.additionalProperties,t)):o.passthrough();break}case`array`:{let n=e.prefixItems,i=e.items;if(n&&Array.isArray(n)){let a=n.map(e=>V(e,t)),o=i&&typeof i==`object`&&!Array.isArray(i)?V(i,t):void 0;r=o?B.tuple(a).rest(o):B.tuple(a),typeof e.minItems==`number`&&(r=r.check(B.minLength(e.minItems))),typeof e.maxItems==`number`&&(r=r.check(B.maxLength(e.maxItems)))}else if(Array.isArray(i)){let n=i.map(e=>V(e,t)),a=e.additionalItems&&typeof e.additionalItems==`object`?V(e.additionalItems,t):void 0;r=a?B.tuple(n).rest(a):B.tuple(n),typeof e.minItems==`number`&&(r=r.check(B.minLength(e.minItems))),typeof e.maxItems==`number`&&(r=r.check(B.maxLength(e.maxItems)))}else if(i!==void 0){let n=V(i,t),a=B.array(n);typeof e.minItems==`number`&&(a=a.min(e.minItems)),typeof e.maxItems==`number`&&(a=a.max(e.maxItems)),r=a}else r=B.array(B.any());break}default:throw Error(`Unsupported type: ${n}`)}return r}function V(e,t){if(typeof e==`boolean`)return e?B.any():B.never();let n=Su(e,t),r=e.type||e.enum!==void 0||e.const!==void 0;if(e.anyOf&&Array.isArray(e.anyOf)){let i=e.anyOf.map(e=>V(e,t)),a=B.union(i);n=r?B.intersection(n,a):a}if(e.oneOf&&Array.isArray(e.oneOf)){let i=e.oneOf.map(e=>V(e,t)),a=B.xor(i);n=r?B.intersection(n,a):a}if(e.allOf&&Array.isArray(e.allOf))if(e.allOf.length===0)n=r?n:B.any();else{let i=r?n:V(e.allOf[0],t),a=+!r;for(let n=a;n<e.allOf.length;n++)i=B.intersection(i,V(e.allOf[n],t));n=i}e.nullable===!0&&t.version===`openapi-3.0`&&(n=B.nullable(n)),e.readOnly===!0&&(n=B.readonly(n)),e.default!==void 0&&(n=n.default(e.default));let i={};for(let t of[`$id`,`id`,`$comment`,`$anchor`,`$vocabulary`,`$dynamicRef`,`$dynamicAnchor`])t in e&&(i[t]=e[t]);for(let t of[`contentEncoding`,`contentMediaType`,`contentSchema`])t in e&&(i[t]=e[t]);for(let t of Object.keys(e))yu.has(t)||(i[t]=e[t]);return Object.keys(i).length>0&&t.registry.add(n,i),e.description&&(n=n.describe(e.description)),n}function Cu(e,t){if(typeof e==`boolean`)return e?B.any():B.never();let n;try{n=JSON.parse(JSON.stringify(e))}catch{throw Error(`fromJSONSchema input is not valid JSON (possibly cyclic); use $defs/$ref for recursive schemas`)}let r={version:bu(n,t?.defaultTarget),defs:n.$defs||n.definitions||{},refs:new Map,processing:new Set,rootSchema:n,registry:t?.registry??Di};return V(n,r)}function wu(e){return ra(Tc,e)}var Tu=[`2025-11-25`,`2025-06-18`,`2025-03-26`,`2024-11-05`,`2024-10-07`],Eu=`io.modelcontextprotocol/related-task`,Du=`io.modelcontextprotocol/protocolVersion`,Ou=`io.modelcontextprotocol/clientInfo`,ku=`io.modelcontextprotocol/serverInfo`,Au=`io.modelcontextprotocol/clientCapabilities`,ju=`io.modelcontextprotocol/subscriptionId`,Mu=`io.modelcontextprotocol/logLevel`,Nu=tu(()=>F([D(),k(),A(),Uc(),I(D(),Nu),M(Nu)])),H=I(D(),Nu),Pu=M(Nu),Fu=F([D(),k().int()]),Iu=D(),Lu=N({ttl:k().optional()}),Ru=N({taskId:D()}),zu=P({progressToken:Fu.optional(),[Eu]:Ru.optional()}),U=N({_meta:zu.optional()}),Bu=U.extend({task:Lu.optional()}),W=N({method:D(),params:U.loose().optional()}),Vu=N({_meta:zu.optional()}),Hu=N({method:D(),params:Vu.loose().optional()}),Uu=P({get[ku](){return rd.optional().catch(void 0)}}),G=P({_meta:Uu.optional()}),Wu=F([D(),k().int()]),Gu=N({jsonrpc:R(`2.0`),id:Wu,...W.shape}).strict(),Ku=N({jsonrpc:R(`2.0`),...Hu.shape}).strict(),qu=N({jsonrpc:R(`2.0`),id:Wu,result:G}).strict(),Ju=N({jsonrpc:R(`2.0`),id:Wu.optional(),error:N({code:k().int(),message:D(),data:j().optional()})}).strict(),Yu=F([Gu,Ku,qu,Ju]),Xu=F([qu,Ju]),Zu=G.strict(),Qu=Vu.extend({requestId:Wu.optional(),reason:D().optional()}),$u=Hu.extend({method:R(`notifications/cancelled`),params:Qu}),ed=N({src:D(),mimeType:D().optional(),sizes:M(D()).optional(),theme:L([`light`,`dark`]).optional()}),td=N({icons:M(ed).optional()}),nd=N({name:D(),title:D().optional()}),rd=nd.extend({...nd.shape,...td.shape,version:D(),websiteUrl:D().optional(),description:D().optional()}),id=gu(e=>e&&typeof e==`object`&&!Array.isArray(e)&&Object.keys(e).length===0?{form:{}}:e,ll(N({form:ll(N({applyDefaults:A().optional()}),H).optional(),url:H.optional()}),H.optional())),ad=P({list:H.optional(),cancel:H.optional(),requests:P({sampling:P({createMessage:H.optional()}).optional(),elicitation:P({create:H.optional()}).optional()}).optional()}),od=P({list:H.optional(),cancel:H.optional(),requests:P({tools:P({call:H.optional()}).optional()}).optional()}),sd=N({experimental:I(D(),H).optional(),sampling:N({context:H.optional(),tools:H.optional()}).optional(),elicitation:id.optional(),roots:N({listChanged:A().optional()}).optional(),tasks:ad.optional(),extensions:I(D(),H).optional()}),cd=U.extend({protocolVersion:D(),capabilities:sd,clientInfo:rd}),ld=W.extend({method:R(`initialize`),params:cd}),ud=N({experimental:I(D(),H).optional(),logging:H.optional(),completions:H.optional(),prompts:N({listChanged:A().optional()}).optional(),resources:N({subscribe:A().optional(),listChanged:A().optional()}).optional(),tools:N({listChanged:A().optional()}).optional(),tasks:od.optional(),extensions:I(D(),H).optional()}),dd=G.extend({protocolVersion:D(),capabilities:ud,serverInfo:rd,instructions:D().optional()}),fd=Hu.extend({method:R(`notifications/initialized`),params:Vu.optional()}),pd=W.extend({method:R(`server/discover`),params:U.optional()}),md=G.extend({supportedVersions:M(D()),capabilities:ud,instructions:D().optional()}),hd=W.extend({method:R(`ping`),params:U.optional()}),gd=N({progress:k(),total:z(k()),message:z(D())}),_d=N({...Vu.shape,...gd.shape,progressToken:Fu}),vd=Hu.extend({method:R(`notifications/progress`),params:_d}),yd=U.extend({cursor:Iu.optional()}),bd=W.extend({params:yd.optional()}),xd=G.extend({nextCursor:Iu.optional()}),Sd=N({uri:D(),mimeType:z(D()),_meta:I(D(),j()).optional()}),Cd=Sd.extend({text:D()}),wd=D().refine(e=>{try{return atob(e),!0}catch{return!1}},{message:`Invalid Base64 string`}),Td=Sd.extend({blob:wd}),Ed=L([`user`,`assistant`]),Dd=N({audience:M(Ed).optional(),priority:k().min(0).max(1).optional(),lastModified:as({offset:!0}).optional()}),Od=N({...nd.shape,...td.shape,uri:D(),description:z(D()),mimeType:z(D()),size:z(k()),annotations:Dd.optional(),_meta:z(P({}))}),kd=N({...nd.shape,...td.shape,uriTemplate:D(),description:z(D()),mimeType:z(D()),annotations:Dd.optional(),_meta:z(P({}))}),Ad=bd.extend({method:R(`resources/list`)}),jd=xd.extend({resources:M(Od)}),Md=bd.extend({method:R(`resources/templates/list`)}),Nd=xd.extend({resourceTemplates:M(kd)}),Pd=U.extend({uri:D()}),Fd=Pd,Id=W.extend({method:R(`resources/read`),params:Fd}),Ld=G.extend({contents:M(F([Cd,Td]))}),Rd=Hu.extend({method:R(`notifications/resources/list_changed`),params:Vu.optional()}),zd=Pd,Bd=W.extend({method:R(`resources/subscribe`),params:zd}),Vd=Pd,Hd=W.extend({method:R(`resources/unsubscribe`),params:Vd}),Ud=N({toolsListChanged:A().optional(),promptsListChanged:A().optional(),resourcesListChanged:A().optional(),resourceSubscriptions:M(D()).optional()}),Wd=U.extend({notifications:Ud}),Gd=W.extend({method:R(`subscriptions/listen`),params:Wd}),Kd=Vu.extend({notifications:Ud}),qd=Hu.extend({method:R(`notifications/subscriptions/acknowledged`),params:Kd}),Jd=Uu.extend({[ju]:Wu}),Yd=G.extend({_meta:Jd}),Xd=Vu.extend({uri:D()}),Zd=Hu.extend({method:R(`notifications/resources/updated`),params:Xd}),Qd=N({name:D(),description:z(D()),required:z(A())}),$d=N({...nd.shape,...td.shape,description:z(D()),arguments:z(M(Qd)),_meta:z(P({}))}),ef=bd.extend({method:R(`prompts/list`)}),tf=xd.extend({prompts:M($d)}),nf=U.extend({name:D(),arguments:I(D(),D()).optional()}),rf=W.extend({method:R(`prompts/get`),params:nf}),af=N({type:R(`text`),text:D(),annotations:Dd.optional(),_meta:I(D(),j()).optional()}),of=N({type:R(`image`),data:wd,mimeType:D(),annotations:Dd.optional(),_meta:I(D(),j()).optional()}),sf=N({type:R(`audio`),data:wd,mimeType:D(),annotations:Dd.optional(),_meta:I(D(),j()).optional()}),cf=N({type:R(`tool_use`),name:D(),id:D(),input:I(D(),j()),_meta:I(D(),j()).optional()}),lf=N({type:R(`resource`),resource:F([Cd,Td]),annotations:Dd.optional(),_meta:I(D(),j()).optional()}),uf=Od.extend({type:R(`resource_link`)}),df=F([af,of,sf,uf,lf]),ff=N({role:Ed,content:df}),pf=G.extend({description:D().optional(),messages:M(ff)}),mf=Hu.extend({method:R(`notifications/prompts/list_changed`),params:Vu.optional()}),hf=N({title:D().optional(),readOnlyHint:A().optional(),destructiveHint:A().optional(),idempotentHint:A().optional(),openWorldHint:A().optional()}),gf=N({taskSupport:L([`required`,`optional`,`forbidden`]).optional()}),_f=N({...nd.shape,...td.shape,description:D().optional(),inputSchema:N({type:R(`object`),properties:I(D(),Nu).optional(),required:M(D()).optional()}).catchall(j()),outputSchema:P({$schema:D().optional()}).optional(),annotations:hf.optional(),execution:gf.optional(),_meta:I(D(),j()).optional()}),vf=bd.extend({method:R(`tools/list`)}),yf=xd.extend({tools:M(_f)}),bf=G.extend({content:M(df).default([]),structuredContent:j().optional(),isError:A().optional()}),xf=bf.or(G.extend({toolResult:j()})),Sf=Bu.extend({name:D(),arguments:I(D(),j()).optional()}),Cf=W.extend({method:R(`tools/call`),params:Sf}),wf=Hu.extend({method:R(`notifications/tools/list_changed`),params:Vu.optional()}),Tf=N({autoRefresh:A().default(!0),debounceMs:k().int().nonnegative().default(300)}),Ef=L([`debug`,`info`,`notice`,`warning`,`error`,`critical`,`alert`,`emergency`]),Df=U.extend({level:Ef}),Of=W.extend({method:R(`logging/setLevel`),params:Df}),kf=Vu.extend({level:Ef,logger:D().optional(),data:j()}),Af=Hu.extend({method:R(`notifications/message`),params:kf}),jf=N({name:D().optional()}),Mf=N({hints:M(jf).optional(),costPriority:k().min(0).max(1).optional(),speedPriority:k().min(0).max(1).optional(),intelligencePriority:k().min(0).max(1).optional()}),Nf=N({mode:L([`auto`,`required`,`none`]).optional()}),Pf=N({type:R(`tool_result`),toolUseId:D().describe(`The unique identifier for the corresponding tool call.`),content:M(df),structuredContent:j().optional(),isError:A().optional(),_meta:I(D(),j()).optional()}),Ff=sl(`type`,[af,of,sf]),If=sl(`type`,[af,of,sf,cf,Pf]),Lf=N({role:Ed,content:F([If,M(If)]),_meta:I(D(),j()).optional()}),Rf=Bu.extend({messages:M(Lf),modelPreferences:Mf.optional(),systemPrompt:D().optional(),includeContext:L([`none`,`thisServer`,`allServers`]).optional(),temperature:k().optional(),maxTokens:k().int(),stopSequences:M(D()).optional(),metadata:H.optional(),tools:M(_f).optional(),toolChoice:Nf.optional()}),zf=W.extend({method:R(`sampling/createMessage`),params:Rf}),Bf=G.extend({model:D(),stopReason:z(L([`endTurn`,`stopSequence`,`maxTokens`]).or(D())),role:Ed,content:Ff}),Vf=G.extend({model:D(),stopReason:z(L([`endTurn`,`stopSequence`,`maxTokens`,`toolUse`]).or(D())),role:Ed,content:F([If,M(If)])}),Hf=N({type:R(`boolean`),title:D().optional(),description:D().optional(),default:A().optional()}),Uf=N({type:R(`string`),title:D().optional(),description:D().optional(),minLength:k().optional(),maxLength:k().optional(),format:L([`email`,`uri`,`date`,`date-time`]).optional(),default:D().optional()}),Wf=N({type:L([`number`,`integer`]),title:D().optional(),description:D().optional(),minimum:k().optional(),maximum:k().optional(),default:k().optional()}),Gf=N({type:R(`string`),title:D().optional(),description:D().optional(),enum:M(D()),default:D().optional()}),Kf=N({type:R(`string`),title:D().optional(),description:D().optional(),oneOf:M(N({const:D(),title:D()})),default:D().optional()}),qf=N({type:R(`string`),title:D().optional(),description:D().optional(),enum:M(D()),enumNames:M(D()).optional(),default:D().optional()}),Jf=F([Gf,Kf]),Yf=N({type:R(`array`),title:D().optional(),description:D().optional(),minItems:k().optional(),maxItems:k().optional(),items:N({type:R(`string`),enum:M(D())}),default:M(D()).optional()}),Xf=N({type:R(`array`),title:D().optional(),description:D().optional(),minItems:k().optional(),maxItems:k().optional(),items:N({anyOf:M(N({const:D(),title:D()}))}),default:M(D()).optional()}),Zf=F([Yf,Xf]),Qf=F([qf,Jf,Zf]),$f=F([Qf,Hf,Uf,Wf]),ep=Bu.extend({mode:R(`form`).optional(),message:D(),requestedSchema:N({type:R(`object`),properties:I(D(),$f),required:M(D()).optional()}).catchall(j())}),tp=Bu.extend({mode:R(`url`),message:D(),elicitationId:D(),url:D().url()}),np=F([ep,tp]),rp=W.extend({method:R(`elicitation/create`),params:np}),ip=Vu.extend({elicitationId:D()}),ap=Hu.extend({method:R(`notifications/elicitation/complete`),params:ip}),op=G.extend({action:L([`accept`,`decline`,`cancel`]),content:gu(e=>e===null?void 0:e,I(D(),F([D(),k(),A(),M(D())])).optional())}),sp=N({type:R(`ref/resource`),uri:D()}),cp=N({type:R(`ref/prompt`),name:D()}),lp=U.extend({ref:F([cp,sp]),argument:N({name:D(),value:D()}),context:N({arguments:I(D(),D()).optional()}).optional()}),up=W.extend({method:R(`completion/complete`),params:lp}),dp=G.extend({completion:P({values:M(D()).max(100),total:z(k().int()),hasMore:z(A())})}),fp=N({uri:D().startsWith(`file://`),name:D().optional(),_meta:I(D(),j()).optional()}),pp=W.extend({method:R(`roots/list`),params:U.optional()}),mp=G.extend({roots:M(fp)}),hp=Hu.extend({method:R(`notifications/roots/list_changed`),params:Vu.optional()}),gp=P({ttl:k().optional(),pollInterval:k().optional()}),_p=L([`working`,`input_required`,`completed`,`failed`,`cancelled`]),vp=N({taskId:D(),status:_p,ttl:F([k(),Uc()]),createdAt:D(),lastUpdatedAt:D(),pollInterval:z(k()),statusMessage:z(D())}),yp=G.extend({task:vp}),bp=Vu.merge(vp),xp=Hu.extend({method:R(`notifications/tasks/status`),params:bp}),Sp=W.extend({method:R(`tasks/get`),params:U.extend({taskId:D()})}),Cp=G.merge(vp),wp=W.extend({method:R(`tasks/result`),params:U.extend({taskId:D()})}),Tp=G.loose(),Ep=bd.extend({method:R(`tasks/list`)}),Dp=xd.extend({tasks:M(vp)}),Op=W.extend({method:R(`tasks/cancel`),params:U.extend({taskId:D()})}),kp=G.merge(vp),Ap=F([hd,ld,pd,up,Of,rf,ef,Ad,Md,Id,Bd,Hd,Gd,Cf,vf]),jp=F([$u,vd,fd,hp]),Mp=F([Zu,Bf,Vf,op,mp]),Np=F([hd,zf,rp,pp]),Pp=F([$u,vd,Af,Zd,Rd,wf,mf,qd,ap]),Fp=F([Zu,dd,md,dp,pf,tf,jd,Nd,Ld,bf,yf,Yd]),K=Bs().superRefine((e,t)=>{if(!URL.canParse(e))return t.addIssue({code:_u.custom,message:`URL must be parseable`,fatal:!0}),c}).refine(e=>{let t=new URL(e);return t.protocol!==`javascript:`&&t.protocol!==`data:`&&t.protocol!==`vbscript:`},{message:`URL cannot use javascript:, data:, or vbscript: scheme`}),Ip=P({resource:D().url(),authorization_servers:M(K).optional(),jwks_uri:D().url().optional(),scopes_supported:M(D()).optional(),bearer_methods_supported:M(D()).optional(),resource_signing_alg_values_supported:M(D()).optional(),resource_name:D().optional(),resource_documentation:D().optional(),resource_policy_uri:D().url().optional(),resource_tos_uri:D().url().optional(),tls_client_certificate_bound_access_tokens:A().optional(),authorization_details_types_supported:M(D()).optional(),dpop_signing_alg_values_supported:M(D()).optional(),dpop_bound_access_tokens_required:A().optional()}),Lp=P({issuer:D(),authorization_endpoint:K,token_endpoint:K,registration_endpoint:K.optional(),scopes_supported:M(D()).optional(),response_types_supported:M(D()),response_modes_supported:M(D()).optional(),grant_types_supported:M(D()).optional(),token_endpoint_auth_methods_supported:M(D()).optional(),token_endpoint_auth_signing_alg_values_supported:M(D()).optional(),service_documentation:K.optional(),revocation_endpoint:K.optional(),revocation_endpoint_auth_methods_supported:M(D()).optional(),revocation_endpoint_auth_signing_alg_values_supported:M(D()).optional(),introspection_endpoint:D().optional(),introspection_endpoint_auth_methods_supported:M(D()).optional(),introspection_endpoint_auth_signing_alg_values_supported:M(D()).optional(),code_challenge_methods_supported:M(D()).optional(),client_id_metadata_document_supported:A().optional(),authorization_response_iss_parameter_supported:A().optional().catch(void 0)}),Rp=P({issuer:D(),authorization_endpoint:K,token_endpoint:K,userinfo_endpoint:K.optional(),jwks_uri:K,registration_endpoint:K.optional(),scopes_supported:M(D()).optional(),response_types_supported:M(D()),response_modes_supported:M(D()).optional(),grant_types_supported:M(D()).optional(),acr_values_supported:M(D()).optional(),subject_types_supported:M(D()),id_token_signing_alg_values_supported:M(D()),id_token_encryption_alg_values_supported:M(D()).optional(),id_token_encryption_enc_values_supported:M(D()).optional(),userinfo_signing_alg_values_supported:M(D()).optional(),userinfo_encryption_alg_values_supported:M(D()).optional(),userinfo_encryption_enc_values_supported:M(D()).optional(),request_object_signing_alg_values_supported:M(D()).optional(),request_object_encryption_alg_values_supported:M(D()).optional(),request_object_encryption_enc_values_supported:M(D()).optional(),token_endpoint_auth_methods_supported:M(D()).optional(),token_endpoint_auth_signing_alg_values_supported:M(D()).optional(),display_values_supported:M(D()).optional(),claim_types_supported:M(D()).optional(),claims_supported:M(D()).optional(),service_documentation:D().optional(),claims_locales_supported:M(D()).optional(),ui_locales_supported:M(D()).optional(),claims_parameter_supported:A().optional(),request_parameter_supported:A().optional(),request_uri_parameter_supported:A().optional(),require_request_uri_registration:A().optional(),op_policy_uri:K.optional(),op_tos_uri:K.optional(),client_id_metadata_document_supported:A().optional(),authorization_response_iss_parameter_supported:A().optional().catch(void 0)}),zp=N({...Rp.shape,...Lp.pick({code_challenge_methods_supported:!0}).shape}),Bp=N({access_token:D(),id_token:D().optional(),token_type:D(),expires_in:wu().optional(),scope:D().optional(),refresh_token:D().optional()}).strip(),Vp=N({issued_token_type:R(`urn:ietf:params:oauth:token-type:id-jag`),access_token:D(),token_type:D().optional(),expires_in:k().optional(),scope:D().optional()}).strip(),Hp=N({error:D(),error_description:D().optional(),error_uri:D().optional()}),Up=K.optional().or(R(``).transform(()=>void 0)),Wp=N({redirect_uris:M(K),token_endpoint_auth_method:D().optional(),grant_types:M(D()).optional(),response_types:M(D()).optional(),application_type:D().optional(),client_name:D().optional(),client_uri:K.optional(),logo_uri:Up,scope:D().optional(),contacts:M(D()).optional(),tos_uri:Up,policy_uri:D().optional(),jwks_uri:K.optional(),jwks:Gc().optional(),software_id:D().optional(),software_version:D().optional(),software_statement:D().optional()}).strip(),Gp=N({client_id:D(),client_secret:D().optional(),client_id_issued_at:k().optional(),client_secret_expires_at:k().optional()}).strip(),Kp=Wp.merge(Gp),qp=N({error:D(),error_description:D().optional()}).strip(),Jp=N({token:D(),token_type_hint:D().optional()}).strip(),Yp=Symbol.for(`mcp.sdk.errorBrands`);function Xp(e,t){let n=new Set,r=t;for(;typeof r==`function`;){let e=r.mcpBrand;Object.prototype.hasOwnProperty.call(r,`mcpBrand`)&&typeof e==`string`&&n.add(e),r=Object.getPrototypeOf(r)}n.size!==0&&Object.defineProperty(e,Yp,{value:n,enumerable:!1,configurable:!0})}function Zp(e,t){try{if(typeof t==`object`&&t&&Object.prototype.hasOwnProperty.call(e,`mcpBrand`)&&typeof e.mcpBrand==`string`&&Object.prototype.hasOwnProperty.call(t,Yp)){let n=t[Yp];if(n&&typeof n.has==`function`&&n.has(e.mcpBrand))return!0}}catch{}return Function.prototype[Symbol.hasInstance].call(e,t)}(class e extends Error{static{Object.defineProperty(this,"mcpBrand",{value:`mcp.OAuthError`})}static[Symbol.hasInstance](e){return Zp(this,e)}static isInstance(e){if(typeof this!=`function`)throw TypeError("isInstance must be called on the class (e.g. `SdkError.isInstance(value)`); for callbacks use `v => SdkError.isInstance(v)`");return Zp(this,e)}constructor(e,t,n){super(t),this.code=e,this.errorUri=n,this.name=`OAuthError`,Xp(this,new.target)}toResponseObject(){let e={error:this.code,error_description:this.message};return this.errorUri&&(e.error_uri=this.errorUri),e}static fromResponse(t){return new e(t.error,t.error_description??t.error,t.error_uri)}});var q=function(e){return e.NotConnected=`NOT_CONNECTED`,e.AlreadyConnected=`ALREADY_CONNECTED`,e.NotInitialized=`NOT_INITIALIZED`,e.CapabilityNotSupported=`CAPABILITY_NOT_SUPPORTED`,e.RequestTimeout=`REQUEST_TIMEOUT`,e.ConnectionClosed=`CONNECTION_CLOSED`,e.SendFailed=`SEND_FAILED`,e.InvalidResult=`INVALID_RESULT`,e.UnsupportedResultType=`UNSUPPORTED_RESULT_TYPE`,e.InputRequiredRoundsExceeded=`INPUT_REQUIRED_ROUNDS_EXCEEDED`,e.ListPaginationExceeded=`LIST_PAGINATION_EXCEEDED`,e.MethodNotSupportedByProtocolVersion=`METHOD_NOT_SUPPORTED_BY_PROTOCOL_VERSION`,e.EraNegotiationFailed=`ERA_NEGOTIATION_FAILED`,e.ClientHttpNotImplemented=`CLIENT_HTTP_NOT_IMPLEMENTED`,e.ClientHttpAuthentication=`CLIENT_HTTP_AUTHENTICATION`,e.ClientHttpForbidden=`CLIENT_HTTP_FORBIDDEN`,e.ClientHttpUnexpectedContent=`CLIENT_HTTP_UNEXPECTED_CONTENT`,e.ClientHttpFailedToOpenStream=`CLIENT_HTTP_FAILED_TO_OPEN_STREAM`,e.ClientHttpFailedToTerminateSession=`CLIENT_HTTP_FAILED_TO_TERMINATE_SESSION`,e}({}),J=class extends Error{static{Object.defineProperty(this,"mcpBrand",{value:`mcp.SdkError`})}static[Symbol.hasInstance](e){return Zp(this,e)}static isInstance(e){if(typeof this!=`function`)throw TypeError("isInstance must be called on the class (e.g. `SdkError.isInstance(value)`); for callbacks use `v => SdkError.isInstance(v)`");return Zp(this,e)}constructor(e,t,n){super(t),this.code=e,this.data=n,this.name=`SdkError`,Xp(this,new.target)}};(class extends J{static{Object.defineProperty(this,"mcpBrand",{value:`mcp.SdkHttpError`})}constructor(e,t,n){super(e,t,n),this.name=`SdkHttpError`}get status(){return this.data.status}get statusText(){return this.data.statusText}});var Qp=`2026-07-28`;function $p(e){return e>=Qp}function em(e){let t=e.structuredContent;return t===void 0||!(typeof t!=`object`||!t||Array.isArray(t))||(e.content?.some(e=>e.type===`text`)??!1)?e:{...e,content:[...e.content??[],{type:`text`,text:JSON.stringify(t)}]}}var tm=[`task`,`inputRequests`,`requestState`];function nm(e){return typeof e!=`object`||!e||Array.isArray(e)||e.content!==void 0||tm.some(t=>t in e)?e:{...e,content:[]}}function rm(){let e=tu(()=>F([D(),k(),A(),Uc(),I(D(),e),M(e)])),t=I(D(),e),n=F([D(),k().int()]),r=D(),i=N({ttl:k().optional()}),a=N({taskId:D()}),o=P({progressToken:n.optional(),"io.modelcontextprotocol/related-task":a.optional()}),s=N({_meta:o.optional()}),c=s.extend({task:i.optional()}),l=N({method:D(),params:s.loose().optional()}),u=N({_meta:o.optional()}),d=N({method:D(),params:u.loose().optional()}),f=P({_meta:o.optional()}),p=F([D(),k().int()]),m=f.strict(),h=u.extend({requestId:p.optional(),reason:D().optional()}),ee=d.extend({method:R(`notifications/cancelled`),params:h}),g=N({src:D(),mimeType:D().optional(),sizes:M(D()).optional(),theme:L([`light`,`dark`]).optional()}),te=N({icons:M(g).optional()}),ne=N({name:D(),title:D().optional()}),re=ne.extend({...ne.shape,...te.shape,version:D(),websiteUrl:D().optional(),description:D().optional()}),_=gu(e=>e&&typeof e==`object`&&!Array.isArray(e)&&Object.keys(e).length===0?{form:{}}:e,ll(N({form:ll(N({applyDefaults:A().optional()}),t).optional(),url:t.optional()}),t.optional())),ie=P({list:t.optional(),cancel:t.optional(),requests:P({sampling:P({createMessage:t.optional()}).optional(),elicitation:P({create:t.optional()}).optional()}).optional()}),ae=P({list:t.optional(),cancel:t.optional(),requests:P({tools:P({call:t.optional()}).optional()}).optional()}),oe=N({experimental:I(D(),t).optional(),sampling:N({context:t.optional(),tools:t.optional()}).optional(),elicitation:_.optional(),roots:N({listChanged:A().optional()}).optional(),tasks:ie.optional(),extensions:I(D(),t).optional()}),se=s.extend({protocolVersion:D(),capabilities:oe,clientInfo:re}),ce=l.extend({method:R(`initialize`),params:se}),le=N({experimental:I(D(),t).optional(),logging:t.optional(),completions:t.optional(),prompts:N({listChanged:A().optional()}).optional(),resources:N({subscribe:A().optional(),listChanged:A().optional()}).optional(),tools:N({listChanged:A().optional()}).optional(),tasks:ae.optional(),extensions:I(D(),t).optional()}),ue=f.extend({protocolVersion:D(),capabilities:le,serverInfo:re,instructions:D().optional()}),de=d.extend({method:R(`notifications/initialized`),params:u.optional()}),fe=l.extend({method:R(`ping`),params:s.optional()}),pe=N({progress:k(),total:z(k()),message:z(D())}),me=N({...u.shape,...pe.shape,progressToken:n}),he=d.extend({method:R(`notifications/progress`),params:me}),ge=s.extend({cursor:r.optional()}),v=l.extend({params:ge.optional()}),_e=f.extend({nextCursor:r.optional()}),ve=N({uri:D(),mimeType:z(D()),_meta:I(D(),j()).optional()}),ye=ve.extend({text:D()}),be=D().refine(e=>{try{return atob(e),!0}catch{return!1}},{message:`Invalid Base64 string`}),xe=ve.extend({blob:be}),Se=L([`user`,`assistant`]),Ce=N({audience:M(Se).optional(),priority:k().min(0).max(1).optional(),lastModified:as({offset:!0}).optional()}),we=N({...ne.shape,...te.shape,uri:D(),description:z(D()),mimeType:z(D()),size:z(k()),annotations:Ce.optional(),_meta:z(P({}))}),Te=N({...ne.shape,...te.shape,uriTemplate:D(),description:z(D()),mimeType:z(D()),annotations:Ce.optional(),_meta:z(P({}))}),Ee=v.extend({method:R(`resources/list`)}),De=_e.extend({resources:M(we)}),Oe=v.extend({method:R(`resources/templates/list`)}),y=_e.extend({resourceTemplates:M(Te)}),ke=s.extend({uri:D()}),b=ke,Ae=l.extend({method:R(`resources/read`),params:b}),je=f.extend({contents:M(F([ye,xe]))}),Me=d.extend({method:R(`notifications/resources/list_changed`),params:u.optional()}),Ne=ke,Pe=l.extend({method:R(`resources/subscribe`),params:Ne}),Fe=ke,Ie=l.extend({method:R(`resources/unsubscribe`),params:Fe}),Le=u.extend({uri:D()}),Re=d.extend({method:R(`notifications/resources/updated`),params:Le}),ze=N({name:D(),description:z(D()),required:z(A())}),Be=N({...ne.shape,...te.shape,description:z(D()),arguments:z(M(ze)),_meta:z(P({}))}),Ve=v.extend({method:R(`prompts/list`)}),He=_e.extend({prompts:M(Be)}),Ue=s.extend({name:D(),arguments:I(D(),D()).optional()}),We=l.extend({method:R(`prompts/get`),params:Ue}),Ge=N({type:R(`text`),text:D(),annotations:Ce.optional(),_meta:I(D(),j()).optional()}),Ke=N({type:R(`image`),data:be,mimeType:D(),annotations:Ce.optional(),_meta:I(D(),j()).optional()}),qe=N({type:R(`audio`),data:be,mimeType:D(),annotations:Ce.optional(),_meta:I(D(),j()).optional()}),Je=N({type:R(`tool_use`),name:D(),id:D(),input:I(D(),j()),_meta:I(D(),j()).optional()}),Ye=N({type:R(`resource`),resource:F([ye,xe]),annotations:Ce.optional(),_meta:I(D(),j()).optional()}),Xe=we.extend({type:R(`resource_link`)}),Ze=F([Ge,Ke,qe,Xe,Ye]),Qe=N({role:Se,content:Ze}),$e=f.extend({description:D().optional(),messages:M(Qe)}),et=d.extend({method:R(`notifications/prompts/list_changed`),params:u.optional()}),tt=N({title:D().optional(),readOnlyHint:A().optional(),destructiveHint:A().optional(),idempotentHint:A().optional(),openWorldHint:A().optional()}),nt=N({taskSupport:L([`required`,`optional`,`forbidden`]).optional()}),rt=N({...ne.shape,...te.shape,description:D().optional(),inputSchema:N({type:R(`object`),properties:I(D(),e).optional(),required:M(D()).optional()}).catchall(j()),outputSchema:N({type:R(`object`),properties:I(D(),e).optional(),required:M(D()).optional()}).catchall(j()).optional(),annotations:tt.optional(),execution:nt.optional(),_meta:I(D(),j()).optional()}),it=v.extend({method:R(`tools/list`)}),at=_e.extend({tools:M(rt)}),ot=f.extend({content:M(Ze),structuredContent:I(D(),j()).optional(),isError:A().optional()}),x=c.extend({name:D(),arguments:I(D(),j()).optional()}),st=l.extend({method:R(`tools/call`),params:x}),ct=d.extend({method:R(`notifications/tools/list_changed`),params:u.optional()}),lt=L([`debug`,`info`,`notice`,`warning`,`error`,`critical`,`alert`,`emergency`]),ut=s.extend({level:lt}),dt=l.extend({method:R(`logging/setLevel`),params:ut}),ft=u.extend({level:lt,logger:D().optional(),data:j()}),pt=d.extend({method:R(`notifications/message`),params:ft}),mt=N({name:D().optional()}),ht=N({hints:M(mt).optional(),costPriority:k().min(0).max(1).optional(),speedPriority:k().min(0).max(1).optional(),intelligencePriority:k().min(0).max(1).optional()}),gt=N({mode:L([`auto`,`required`,`none`]).optional()}),_t=N({type:R(`tool_result`),toolUseId:D().describe(`The unique identifier for the corresponding tool call.`),content:M(Ze),structuredContent:N({}).loose().optional(),isError:A().optional(),_meta:I(D(),j()).optional()}),vt=sl(`type`,[Ge,Ke,qe]),yt=sl(`type`,[Ge,Ke,qe,Je,_t]),bt=N({role:Se,content:F([yt,M(yt)]),_meta:I(D(),j()).optional()}),xt=c.extend({messages:M(bt),modelPreferences:ht.optional(),systemPrompt:D().optional(),includeContext:L([`none`,`thisServer`,`allServers`]).optional(),temperature:k().optional(),maxTokens:k().int(),stopSequences:M(D()).optional(),metadata:t.optional(),tools:M(rt).optional(),toolChoice:gt.optional()}),St=l.extend({method:R(`sampling/createMessage`),params:xt}),Ct=f.extend({model:D(),stopReason:z(L([`endTurn`,`stopSequence`,`maxTokens`]).or(D())),role:Se,content:vt}),wt=f.extend({model:D(),stopReason:z(L([`endTurn`,`stopSequence`,`maxTokens`,`toolUse`]).or(D())),role:Se,content:F([yt,M(yt)])}),Tt=N({type:R(`boolean`),title:D().optional(),description:D().optional(),default:A().optional()}),Et=N({type:R(`string`),title:D().optional(),description:D().optional(),minLength:k().optional(),maxLength:k().optional(),format:L([`email`,`uri`,`date`,`date-time`]).optional(),default:D().optional()}),Dt=N({type:L([`number`,`integer`]),title:D().optional(),description:D().optional(),minimum:k().optional(),maximum:k().optional(),default:k().optional()}),Ot=N({type:R(`string`),title:D().optional(),description:D().optional(),enum:M(D()),default:D().optional()}),kt=N({type:R(`string`),title:D().optional(),description:D().optional(),oneOf:M(N({const:D(),title:D()})),default:D().optional()}),At=N({type:R(`string`),title:D().optional(),description:D().optional(),enum:M(D()),enumNames:M(D()).optional(),default:D().optional()}),jt=F([Ot,kt]),Mt=N({type:R(`array`),title:D().optional(),description:D().optional(),minItems:k().optional(),maxItems:k().optional(),items:N({type:R(`string`),enum:M(D())}),default:M(D()).optional()}),Nt=N({type:R(`array`),title:D().optional(),description:D().optional(),minItems:k().optional(),maxItems:k().optional(),items:N({anyOf:M(N({const:D(),title:D()}))}),default:M(D()).optional()}),Pt=F([Mt,Nt]),Ft=F([At,jt,Pt]),It=F([Ft,Tt,Et,Dt]),Lt=c.extend({mode:R(`form`).optional(),message:D(),requestedSchema:N({type:R(`object`),properties:I(D(),It),required:M(D()).optional()}).catchall(j())}),Rt=c.extend({mode:R(`url`),message:D(),elicitationId:D(),url:D().url()}),zt=F([Lt,Rt]),Bt=l.extend({method:R(`elicitation/create`),params:zt}),Vt=u.extend({elicitationId:D()}),Ht=d.extend({method:R(`notifications/elicitation/complete`),params:Vt}),Ut=f.extend({action:L([`accept`,`decline`,`cancel`]),content:gu(e=>e===null?void 0:e,I(D(),F([D(),k(),A(),M(D())])).optional())}),Wt=N({type:R(`ref/resource`),uri:D()}),Gt=N({type:R(`ref/prompt`),name:D()}),Kt=s.extend({ref:F([Gt,Wt]),argument:N({name:D(),value:D()}),context:N({arguments:I(D(),D()).optional()}).optional()}),qt=l.extend({method:R(`completion/complete`),params:Kt}),Jt=f.extend({completion:P({values:M(D()).max(100),total:z(k().int()),hasMore:z(A())})}),Yt=N({uri:D().startsWith(`file://`),name:D().optional(),_meta:I(D(),j()).optional()}),Xt=l.extend({method:R(`roots/list`),params:s.optional()}),Zt=f.extend({roots:M(Yt)}),Qt=d.extend({method:R(`notifications/roots/list_changed`),params:u.optional()}),$t=P({ttl:k().optional(),pollInterval:k().optional()}),en=L([`working`,`input_required`,`completed`,`failed`,`cancelled`]),tn=N({taskId:D(),status:en,ttl:F([k(),Uc()]),createdAt:D(),lastUpdatedAt:D(),pollInterval:z(k()),statusMessage:z(D())}),nn=f.extend({task:tn}),rn=u.merge(tn),an=d.extend({method:R(`notifications/tasks/status`),params:rn}),on=l.extend({method:R(`tasks/get`),params:s.extend({taskId:D()})}),sn=f.merge(tn),cn=l.extend({method:R(`tasks/result`),params:s.extend({taskId:D()})}),ln=f.loose(),un=v.extend({method:R(`tasks/list`)}),S=_e.extend({tasks:M(tn)}),dn=l.extend({method:R(`tasks/cancel`),params:s.extend({taskId:D()})});return{JSONValueSchema:e,JSONObjectSchema:t,ProgressTokenSchema:n,CursorSchema:r,TaskMetadataSchema:i,RelatedTaskMetadataSchema:a,RequestMetaSchema:o,BaseRequestParamsSchema:s,TaskAugmentedRequestParamsSchema:c,RequestSchema:l,NotificationsParamsSchema:u,NotificationSchema:d,ResultSchema:f,RequestIdSchema:p,EmptyResultSchema:m,CancelledNotificationParamsSchema:h,CancelledNotificationSchema:ee,IconSchema:g,IconsSchema:te,BaseMetadataSchema:ne,ImplementationSchema:re,ClientTasksCapabilitySchema:ie,ServerTasksCapabilitySchema:ae,ClientCapabilitiesSchema:oe,InitializeRequestParamsSchema:se,InitializeRequestSchema:ce,ServerCapabilitiesSchema:le,InitializeResultSchema:ue,InitializedNotificationSchema:de,PingRequestSchema:fe,ProgressSchema:pe,ProgressNotificationParamsSchema:me,ProgressNotificationSchema:he,PaginatedRequestParamsSchema:ge,PaginatedRequestSchema:v,PaginatedResultSchema:_e,ResourceContentsSchema:ve,TextResourceContentsSchema:ye,BlobResourceContentsSchema:xe,RoleSchema:Se,AnnotationsSchema:Ce,ResourceSchema:we,ResourceTemplateSchema:Te,ListResourcesRequestSchema:Ee,ListResourcesResultSchema:De,ListResourceTemplatesRequestSchema:Oe,ListResourceTemplatesResultSchema:y,ResourceRequestParamsSchema:ke,ReadResourceRequestParamsSchema:b,ReadResourceRequestSchema:Ae,ReadResourceResultSchema:je,ResourceListChangedNotificationSchema:Me,SubscribeRequestParamsSchema:Ne,SubscribeRequestSchema:Pe,UnsubscribeRequestParamsSchema:Fe,UnsubscribeRequestSchema:Ie,ResourceUpdatedNotificationParamsSchema:Le,ResourceUpdatedNotificationSchema:Re,PromptArgumentSchema:ze,PromptSchema:Be,ListPromptsRequestSchema:Ve,ListPromptsResultSchema:He,GetPromptRequestParamsSchema:Ue,GetPromptRequestSchema:We,TextContentSchema:Ge,ImageContentSchema:Ke,AudioContentSchema:qe,ToolUseContentSchema:Je,EmbeddedResourceSchema:Ye,ResourceLinkSchema:Xe,ContentBlockSchema:Ze,PromptMessageSchema:Qe,GetPromptResultSchema:$e,PromptListChangedNotificationSchema:et,ToolAnnotationsSchema:tt,ToolExecutionSchema:nt,ToolSchema:rt,ListToolsRequestSchema:it,ListToolsResultSchema:at,CallToolResultSchema:ot,CallToolRequestParamsSchema:x,CallToolRequestSchema:st,ToolListChangedNotificationSchema:ct,LoggingLevelSchema:lt,SetLevelRequestParamsSchema:ut,SetLevelRequestSchema:dt,LoggingMessageNotificationParamsSchema:ft,LoggingMessageNotificationSchema:pt,ModelHintSchema:mt,ModelPreferencesSchema:ht,ToolChoiceSchema:gt,ToolResultContentSchema:_t,SamplingContentSchema:vt,SamplingMessageContentBlockSchema:yt,SamplingMessageSchema:bt,CreateMessageRequestParamsSchema:xt,CreateMessageRequestSchema:St,CreateMessageResultSchema:Ct,CreateMessageResultWithToolsSchema:wt,BooleanSchemaSchema:Tt,StringSchemaSchema:Et,NumberSchemaSchema:Dt,UntitledSingleSelectEnumSchemaSchema:Ot,TitledSingleSelectEnumSchemaSchema:kt,LegacyTitledEnumSchemaSchema:At,SingleSelectEnumSchemaSchema:jt,UntitledMultiSelectEnumSchemaSchema:Mt,TitledMultiSelectEnumSchemaSchema:Nt,MultiSelectEnumSchemaSchema:Pt,EnumSchemaSchema:Ft,PrimitiveSchemaDefinitionSchema:It,ElicitRequestFormParamsSchema:Lt,ElicitRequestURLParamsSchema:Rt,ElicitRequestParamsSchema:zt,ElicitRequestSchema:Bt,ElicitationCompleteNotificationParamsSchema:Vt,ElicitationCompleteNotificationSchema:Ht,ElicitResultSchema:Ut,ResourceTemplateReferenceSchema:Wt,PromptReferenceSchema:Gt,CompleteRequestParamsSchema:Kt,CompleteRequestSchema:qt,CompleteResultSchema:Jt,RootSchema:Yt,ListRootsRequestSchema:Xt,ListRootsResultSchema:Zt,RootsListChangedNotificationSchema:Qt,TaskCreationParamsSchema:$t,TaskStatusSchema:en,TaskSchema:tn,CreateTaskResultSchema:nn,TaskStatusNotificationParamsSchema:rn,TaskStatusNotificationSchema:an,GetTaskRequestSchema:on,GetTaskResultSchema:sn,GetTaskPayloadRequestSchema:cn,GetTaskPayloadResultSchema:ln,ListTasksRequestSchema:un,ListTasksResultSchema:S,CancelTaskRequestSchema:dn,CancelTaskResultSchema:f.merge(tn),ClientRequestSchema:F([fe,ce,qt,dt,We,Ve,Ee,Oe,Ae,Pe,Ie,st,it,on,cn,un,dn]),ClientNotificationSchema:F([ee,he,de,Qt,an]),ClientResultSchema:F([m,Ct,wt,Ut,Zt,sn,S,nn]),ServerRequestSchema:F([fe,St,Bt,Xt,on,cn,un,dn]),ServerNotificationSchema:F([ee,he,pt,Re,Me,ct,et,an,Ht]),ServerResultSchema:F([m,ue,Jt,$e,He,De,y,je,ot,at,sn,S,nn]),CallToolResultWireSchema:j().superRefine((e,t)=>{if(!(typeof e!=`object`||!e||Array.isArray(e)||e.content!==void 0)){for(let n of tm)if(n in e){t.addIssue({code:`custom`,message:`content is required when the body carries '${n}' — another result family cannot default into an empty tools/call success`});return}}}).transform(nm).pipe(ot)}}var im;function am(){return im??=rm()}function om(e){return e.type!==`object`}var sm=new Set([`const`,`enum`,`default`,`examples`]),cm=new Set([`properties`,`patternProperties`,`$defs`,`definitions`,`dependentSchemas`,`dependencies`]);function lm(e){return e!==void 0&&!(typeof e==`string`&&e.startsWith(`#`))}function um(e){let t=typeof e.$schema==`string`?e.$schema:void 0;if(lm(e.$id))return{...t!==void 0&&{$schema:t},type:`object`,properties:{result:e},required:[`result`]};let n=o(e.$schema)&&e.$recursiveAnchor!==!0,r=(e,t)=>{if(Array.isArray(e))return e.map(e=>r(e,!1));if(typeof e!=`object`||!e||!t&&lm(e.$id))return e;let i={},a=!1;for(let[o,s]of Object.entries(e))t?i[o]=r(s,!1):(o===`$ref`||o===`$dynamicRef`)&&typeof s==`string`?i[o]=s===`#`?`#/properties/result`:s.startsWith(`#/`)?`#/properties/result${s.slice(1)}`:s:o===`$recursiveRef`&&s===`#`&&n?a=!0:sm.has(o)?i[o]=s:cm.has(o)?i[o]=r(s,!0):i[o]=r(s,!1);return a&&(`$ref`in i?i.allOf=[...Array.isArray(i.allOf)?i.allOf:[],{$ref:`#/properties/result`}]:i.$ref=`#/properties/result`),i};return{...t!==void 0&&{$schema:t},type:`object`,properties:{result:r(e,!1)},required:[`result`]}}var dm={ping:null,initialize:null,"completion/complete":null,"logging/setLevel":null,"prompts/get":null,"prompts/list":null,"resources/list":null,"resources/templates/list":null,"resources/read":null,"resources/subscribe":null,"resources/unsubscribe":null,"tools/call":null,"tools/list":null,"tasks/get":null,"tasks/result":null,"tasks/list":null,"tasks/cancel":null,"sampling/createMessage":null,"elicitation/create":null,"roots/list":null},fm={"notifications/cancelled":null,"notifications/progress":null,"notifications/initialized":null,"notifications/roots/list_changed":null,"notifications/tasks/status":null,"notifications/message":null,"notifications/resources/updated":null,"notifications/resources/list_changed":null,"notifications/tools/list_changed":null,"notifications/prompts/list_changed":null,"notifications/elicitation/complete":null},pm={ping:null,initialize:null,"completion/complete":null,"logging/setLevel":null,"prompts/get":null,"prompts/list":null,"resources/list":null,"resources/templates/list":null,"resources/read":null,"resources/subscribe":null,"resources/unsubscribe":null,"tools/call":null,"tools/list":null,"sampling/createMessage":null,"elicitation/create":null,"roots/list":null},mm;function hm(){if(mm)return mm;let e=am();return mm={requestSchemas:{ping:e.PingRequestSchema,initialize:e.InitializeRequestSchema,"completion/complete":e.CompleteRequestSchema,"logging/setLevel":e.SetLevelRequestSchema,"prompts/get":e.GetPromptRequestSchema,"prompts/list":e.ListPromptsRequestSchema,"resources/list":e.ListResourcesRequestSchema,"resources/templates/list":e.ListResourceTemplatesRequestSchema,"resources/read":e.ReadResourceRequestSchema,"resources/subscribe":e.SubscribeRequestSchema,"resources/unsubscribe":e.UnsubscribeRequestSchema,"tools/call":e.CallToolRequestSchema,"tools/list":e.ListToolsRequestSchema,"tasks/get":e.GetTaskRequestSchema,"tasks/result":e.GetTaskPayloadRequestSchema,"tasks/list":e.ListTasksRequestSchema,"tasks/cancel":e.CancelTaskRequestSchema,"sampling/createMessage":e.CreateMessageRequestSchema,"elicitation/create":e.ElicitRequestSchema,"roots/list":e.ListRootsRequestSchema},notificationSchemas:{"notifications/cancelled":e.CancelledNotificationSchema,"notifications/progress":e.ProgressNotificationSchema,"notifications/initialized":e.InitializedNotificationSchema,"notifications/roots/list_changed":e.RootsListChangedNotificationSchema,"notifications/tasks/status":e.TaskStatusNotificationSchema,"notifications/message":e.LoggingMessageNotificationSchema,"notifications/resources/updated":e.ResourceUpdatedNotificationSchema,"notifications/resources/list_changed":e.ResourceListChangedNotificationSchema,"notifications/tools/list_changed":e.ToolListChangedNotificationSchema,"notifications/prompts/list_changed":e.PromptListChangedNotificationSchema,"notifications/elicitation/complete":e.ElicitationCompleteNotificationSchema},resultSchemas:{ping:e.EmptyResultSchema,initialize:e.InitializeResultSchema,"completion/complete":e.CompleteResultSchema,"logging/setLevel":e.EmptyResultSchema,"prompts/get":e.GetPromptResultSchema,"prompts/list":e.ListPromptsResultSchema,"resources/list":e.ListResourcesResultSchema,"resources/templates/list":e.ListResourceTemplatesResultSchema,"resources/read":e.ReadResourceResultSchema,"resources/subscribe":e.EmptyResultSchema,"resources/unsubscribe":e.EmptyResultSchema,"tools/call":e.CallToolResultWireSchema,"tools/list":e.ListToolsResultSchema,"sampling/createMessage":e.CreateMessageResultWithToolsSchema,"elicitation/create":e.ElicitResultSchema,"roots/list":e.ListRootsResultSchema}},mm}function gm(e){return Object.prototype.hasOwnProperty.call(dm,e)}function _m(e){return Object.prototype.hasOwnProperty.call(fm,e)}function vm(e){return Object.prototype.hasOwnProperty.call(pm,e)}function ym(e){return vm(e)?hm().resultSchemas[e]:void 0}function bm(e){return gm(e)?hm().requestSchemas[e]:void 0}function xm(e){return _m(e)?hm().notificationSchemas[e]:void 0}Object.keys(dm),Object.keys(fm);function Sm(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function Cm(e,t){if(e===void 0)return{ok:!1,reason:`not-in-era`};let n=e.safeParse(t);return n.success?{ok:!0,value:n.data}:{ok:!1,reason:`invalid`,message:String(n.error)}}var wm={ok:!1,reason:`not-in-era`};function Tm(e){return Sm(e)&&Sm(e.outputSchema)&&om(e.outputSchema)}function Em(e){return e}var Dm={era:`2025-11-25`,hasRequestMethod:gm,hasNotificationMethod:_m,validateRequest:(e,t)=>Cm(bm(e),t),validateResult:(e,t)=>Cm(ym(e),t),validateNotification:(e,t)=>Cm(xm(e),t),hasInputRequestMethod:()=>!1,validateInputRequest:()=>wm,validateInputResponse:()=>wm,samplingResultVariant:((e,t)=>{let n=am();return Cm(e?n.CreateMessageResultWithToolsSchema:n.CreateMessageResultSchema,t)}),outboundEnvelope:e=>void 0,validateEnvelopeMeta:e=>[],projectCallToolResult(e,t){let n=em(e),r=n.structuredContent;if(r===void 0)return n;let i=typeof r!=`object`||!r||Array.isArray(r),a=t!==void 0&&om(t);return!i&&!a?n:{...n,structuredContent:{result:r}}},decodeResult(e,t){if(Sm(t)&&`resultType`in t){let e={...t};return delete e.resultType,{kind:`complete`,result:Em(e)}}return{kind:`complete`,result:Em(t)}},encodeResult(e,t){if(e!==`tools/list`)return t;let n=t.tools;return!Array.isArray(n)||!n.some(e=>Tm(e))?t:{...t,tools:n.map(e=>Tm(e)?{...e,outputSchema:um(e.outputSchema)}:e)}},encodeErrorCode:e=>e===-32002?-32602:e,checkInboundEnvelope:e=>void 0};function Om(){let e=tu(()=>F([D(),k(),A(),Uc(),I(D(),e),M(e)])),t=I(D(),e),n=F([D(),k().int()]),r=D(),i=F([D(),k().int()]),a=L([`user`,`assistant`]),o=L([`debug`,`info`,`notice`,`warning`,`error`,`critical`,`alert`,`emergency`]),s=D().refine(e=>{try{return atob(e),!0}catch{return!1}},{message:`Invalid Base64 string`}),c=N({ttl:k().optional()}),l=N({taskId:D()}),u=P({progressToken:n.optional(),"io.modelcontextprotocol/related-task":l.optional()}),d=N({_meta:u.optional()}),f=d.extend({task:c.optional()}),p=N({_meta:u.optional()}),m=N({method:D(),params:p.loose().optional()}),h=N({src:D(),mimeType:D().optional(),sizes:M(D()).optional(),theme:L([`light`,`dark`]).optional()}),ee=N({icons:M(h).optional()}),g=N({name:D(),title:D().optional()}),te=g.extend({...g.shape,...ee.shape,version:D(),websiteUrl:D().optional(),description:D().optional()}),ne=gu(e=>e&&typeof e==`object`&&!Array.isArray(e)&&Object.keys(e).length===0?{form:{}}:e,ll(N({form:ll(N({applyDefaults:A().optional()}),t).optional(),url:t.optional()}),t.optional())),re=P({list:t.optional(),cancel:t.optional(),requests:P({sampling:P({createMessage:t.optional()}).optional(),elicitation:P({create:t.optional()}).optional()}).optional()}),_=P({list:t.optional(),cancel:t.optional(),requests:P({tools:P({call:t.optional()}).optional()}).optional()}),ie=N({experimental:I(D(),t).optional(),sampling:N({context:t.optional(),tools:t.optional()}).optional(),elicitation:ne.optional(),roots:N({listChanged:A().optional()}).optional(),tasks:re.optional(),extensions:I(D(),t).optional()}),ae=N({experimental:I(D(),t).optional(),logging:t.optional(),completions:t.optional(),prompts:N({listChanged:A().optional()}).optional(),resources:N({subscribe:A().optional(),listChanged:A().optional()}).optional(),tools:N({listChanged:A().optional()}).optional(),tasks:_.optional(),extensions:I(D(),t).optional()}),oe=N({progress:k(),total:z(k()),message:z(D())}),se=N({...p.shape,...oe.shape,progressToken:n}),ce=m.extend({method:R(`notifications/progress`),params:se}),le=p.extend({level:o,logger:D().optional(),data:j()}),ue=m.extend({method:R(`notifications/message`),params:le}),de=N({uri:D(),mimeType:z(D()),_meta:I(D(),j()).optional()}),fe=de.extend({text:D()}),pe=de.extend({blob:s}),me=N({audience:M(a).optional(),priority:k().min(0).max(1).optional(),lastModified:as({offset:!0}).optional()}),he=N({...g.shape,...ee.shape,uri:D(),description:z(D()),mimeType:z(D()),size:z(k()),annotations:me.optional(),_meta:z(P({}))}),ge=N({...g.shape,...ee.shape,uriTemplate:D(),description:z(D()),mimeType:z(D()),annotations:me.optional(),_meta:z(P({}))}),v=m.extend({method:R(`notifications/resources/list_changed`),params:p.optional()}),_e=p.extend({uri:D()}),ve=m.extend({method:R(`notifications/resources/updated`),params:_e}),ye=N({name:D(),description:z(D()),required:z(A())}),be=N({...g.shape,...ee.shape,description:z(D()),arguments:z(M(ye)),_meta:z(P({}))}),xe=m.extend({method:R(`notifications/prompts/list_changed`),params:p.optional()}),Se=N({type:R(`text`),text:D(),annotations:me.optional(),_meta:I(D(),j()).optional()}),Ce=N({type:R(`image`),data:s,mimeType:D(),annotations:me.optional(),_meta:I(D(),j()).optional()}),we=N({type:R(`audio`),data:s,mimeType:D(),annotations:me.optional(),_meta:I(D(),j()).optional()}),Te=N({type:R(`tool_use`),name:D(),id:D(),input:I(D(),j()),_meta:I(D(),j()).optional()}),Ee=N({type:R(`resource`),resource:F([fe,pe]),annotations:me.optional(),_meta:I(D(),j()).optional()}),De=he.extend({type:R(`resource_link`)}),Oe=F([Se,Ce,we,De,Ee]),y=N({role:a,content:Oe}),ke=N({title:D().optional(),readOnlyHint:A().optional(),destructiveHint:A().optional(),idempotentHint:A().optional(),openWorldHint:A().optional()}),b=m.extend({method:R(`notifications/tools/list_changed`),params:p.optional()}),Ae=N({name:D().optional()}),je=N({hints:M(Ae).optional(),costPriority:k().min(0).max(1).optional(),speedPriority:k().min(0).max(1).optional(),intelligencePriority:k().min(0).max(1).optional()}),Me=N({mode:L([`auto`,`required`,`none`]).optional()}),Ne=N({type:R(`boolean`),title:D().optional(),description:D().optional(),default:A().optional()}),Pe=N({type:R(`string`),title:D().optional(),description:D().optional(),minLength:k().optional(),maxLength:k().optional(),format:L([`email`,`uri`,`date`,`date-time`]).optional(),default:D().optional()}),Fe=N({type:L([`number`,`integer`]),title:D().optional(),description:D().optional(),minimum:k().optional(),maximum:k().optional(),default:k().optional()}),Ie=N({type:R(`string`),title:D().optional(),description:D().optional(),enum:M(D()),default:D().optional()}),Le=N({type:R(`string`),title:D().optional(),description:D().optional(),oneOf:M(N({const:D(),title:D()})),default:D().optional()}),Re=N({type:R(`string`),title:D().optional(),description:D().optional(),enum:M(D()),enumNames:M(D()).optional(),default:D().optional()}),ze=F([Ie,Le]),Be=N({type:R(`array`),title:D().optional(),description:D().optional(),minItems:k().optional(),maxItems:k().optional(),items:N({type:R(`string`),enum:M(D())}),default:M(D()).optional()}),Ve=N({type:R(`array`),title:D().optional(),description:D().optional(),minItems:k().optional(),maxItems:k().optional(),items:N({anyOf:M(N({const:D(),title:D()}))}),default:M(D()).optional()}),He=F([Be,Ve]),Ue=F([Re,ze,He]),We=F([Ue,Ne,Pe,Fe]),Ge=f.extend({mode:R(`form`).optional(),message:D(),requestedSchema:N({type:R(`object`),properties:I(D(),We),required:M(D()).optional()}).catchall(j())}),Ke=N({type:R(`ref/resource`),uri:D()}),qe=N({type:R(`ref/prompt`),name:D()}),Je=N({uri:D().startsWith(`file://`),name:D().optional(),_meta:I(D(),j()).optional()}),Ye=ie.shape,Xe=N({experimental:Ye.experimental,sampling:Ye.sampling,elicitation:Ye.elicitation,roots:Ye.roots,extensions:Ye.extensions}),Ze=ae.shape,Qe=N({experimental:Ze.experimental,logging:Ze.logging,completions:Ze.completions,prompts:Ze.prompts,resources:Ze.resources,tools:Ze.tools,extensions:Ze.extensions}),$e=P({progressToken:n.optional(),[Du]:D(),[Ou]:te.optional(),[Au]:Xe,[Mu]:o.optional()}),et=N({...g.shape,...ee.shape,description:D().optional(),inputSchema:P({$schema:D().optional(),type:R(`object`)}),outputSchema:P({$schema:D().optional()}).optional(),annotations:ke.optional(),_meta:I(D(),j()).optional()}),tt=N({type:R(`tool_result`),toolUseId:D(),content:M(Oe),structuredContent:j().optional(),isError:A().optional(),_meta:I(D(),j()).optional()}),nt=F([Se,Ce,we,Te,tt]),rt=N({role:a,content:F([nt,M(nt)]),_meta:I(D(),j()).optional()}),it=D(),at=P({[ku]:te.optional().catch(void 0)}),ot=at.optional();function x(e){return P({_meta:ot,resultType:it.default(`complete`),...e})}let st=x({}),ct=x({nextCursor:r.optional()}),lt=x({content:M(Oe),structuredContent:j().optional(),isError:A().optional()}),ut=x({ttlMs:k().int().min(0),cacheScope:L([`public`,`private`]),tools:M(et),nextCursor:r.optional()}),dt=x({ttlMs:k().int().min(0),cacheScope:L([`public`,`private`]),prompts:M(be),nextCursor:r.optional()}),ft=x({description:D().optional(),messages:M(y)}),pt=x({ttlMs:k().int().min(0),cacheScope:L([`public`,`private`]),resources:M(he),nextCursor:r.optional()}),mt=x({ttlMs:k().int().min(0),cacheScope:L([`public`,`private`]),resourceTemplates:M(ge),nextCursor:r.optional()}),ht=x({ttlMs:k().int().min(0),cacheScope:L([`public`,`private`]),contents:M(F([fe,pe]))}),gt=x({completion:N({values:M(D()).max(100),total:k().int().optional(),hasMore:A().optional()}).loose()}),_t=x({ttlMs:k().int().min(0),cacheScope:L([`public`,`private`])}),vt=x({ttlMs:k().int().min(0).catch(0),cacheScope:L([`public`,`private`]).catch(`private`),supportedVersions:M(D()),capabilities:Qe,instructions:D().optional()}),yt=N({messages:M(rt),modelPreferences:je.optional(),systemPrompt:D().optional(),includeContext:L([`none`,`thisServer`,`allServers`]).optional(),temperature:k().optional(),maxTokens:k().int(),stopSequences:M(D()).optional(),metadata:t.optional(),tools:M(et).optional(),toolChoice:Me.optional()}),bt=N({method:R(`sampling/createMessage`),params:yt}),xt=N({method:R(`roots/list`),params:N({_meta:I(D(),j()).optional()}).optional()}),St=N({...rt.shape,model:D(),stopReason:D().optional()}),Ct=N({roots:M(Je)}),wt=N({action:L([`accept`,`decline`,`cancel`]),content:I(D(),F([D(),k(),A(),M(D())])).optional()}),Tt=N({mode:R(`url`),message:D(),url:D().url()}),Et=F([Ge,Tt]),Dt=N({method:R(`elicitation/create`),params:Et}),Ot=F([bt,xt,Dt]),kt=F([St,Ct,wt]),At=I(D(),Ot),jt=I(D(),kt),Mt=x({inputRequests:At.optional(),requestState:D().optional()}),Nt={inputResponses:jt.optional(),requestState:D().optional()},Pt=N({_meta:$e,...Nt}),Ft=P({progressToken:n.optional()});function It(e,t){return N({method:R(e),params:N({_meta:$e,...t})})}function Lt(e,t){return N({method:R(e),params:N({_meta:Ft.optional(),...t}).optional()})}let Rt={name:D(),arguments:I(D(),j()).optional(),...Nt},zt={cursor:r.optional()},Bt=It(`tools/call`,Rt),Vt=It(`tools/list`,zt),Ht=It(`prompts/list`,zt),Ut=It(`prompts/get`,{name:D(),arguments:I(D(),D()).optional(),...Nt}),Wt=It(`resources/list`,zt),Gt=It(`resources/templates/list`,zt),Kt=It(`resources/read`,{uri:D(),...Nt}),qt={ref:F([qe,Ke]),argument:N({name:D(),value:D()}),context:N({arguments:I(D(),D()).optional()}).optional()},Jt=It(`completion/complete`,qt),Yt=It(`server/discover`,{}),Xt=N({toolsListChanged:A().optional(),promptsListChanged:A().optional(),resourcesListChanged:A().optional(),resourceSubscriptions:M(D()).optional()}),Zt={notifications:Xt},Qt=It(`subscriptions/listen`,Zt),$t=at.extend({"io.modelcontextprotocol/subscriptionId":i}),en=P({_meta:$t,resultType:it.default(`complete`)}),tn={"tools/call":Lt(`tools/call`,Rt),"tools/list":Lt(`tools/list`,zt),"prompts/get":Lt(`prompts/get`,{name:D(),arguments:I(D(),D()).optional()}),"prompts/list":Lt(`prompts/list`,zt),"resources/list":Lt(`resources/list`,zt),"resources/templates/list":Lt(`resources/templates/list`,zt),"resources/read":Lt(`resources/read`,{uri:D()}),"completion/complete":Lt(`completion/complete`,qt),"server/discover":Lt(`server/discover`,{}),"subscriptions/listen":Lt(`subscriptions/listen`,Zt)};function nn(e){return P({_meta:ot,...e})}let rn={"tools/call":nn({content:M(Oe),structuredContent:j().optional(),isError:A().optional()}),"tools/list":nn({ttlMs:k().int().min(0),cacheScope:L([`public`,`private`]),tools:M(et),nextCursor:r.optional()}),"prompts/get":nn({description:D().optional(),messages:M(y)}),"prompts/list":nn({ttlMs:k().int().min(0),cacheScope:L([`public`,`private`]),prompts:M(be),nextCursor:r.optional()}),"resources/list":nn({ttlMs:k().int().min(0),cacheScope:L([`public`,`private`]),resources:M(he),nextCursor:r.optional()}),"resources/templates/list":nn({ttlMs:k().int().min(0),cacheScope:L([`public`,`private`]),resourceTemplates:M(ge),nextCursor:r.optional()}),"resources/read":nn({ttlMs:k().int().min(0),cacheScope:L([`public`,`private`]),contents:M(F([fe,pe]))}),"completion/complete":nn({completion:N({values:M(D()).max(100),total:k().int().optional(),hasMore:A().optional()}).loose()}),"server/discover":nn({ttlMs:k().int().min(0).catch(0),cacheScope:L([`public`,`private`]).catch(`private`),supportedVersions:M(D()),capabilities:Qe,instructions:D().optional()}),"subscriptions/listen":nn({})},an=P({"io.modelcontextprotocol/subscriptionId":i.optional()}),on=N({method:R(`notifications/subscriptions/acknowledged`),params:N({_meta:an.optional(),notifications:Xt})}),sn=N({_meta:an.optional(),requestId:i,reason:D().optional()}),cn=N({method:R(`notifications/cancelled`),params:sn}),ln={"notifications/cancelled":cn,"notifications/progress":ce,"notifications/message":ue,"notifications/resources/updated":ve,"notifications/resources/list_changed":v,"notifications/tools/list_changed":b,"notifications/prompts/list_changed":xe,"notifications/subscriptions/acknowledged":on},un=e=>N({jsonrpc:R(`2.0`),id:F([D(),k().int()]),result:e}).strict();return{JSONValueSchema:e,JSONObjectSchema:t,ProgressTokenSchema:n,CursorSchema:r,RequestIdSchema:i,RoleSchema:a,LoggingLevelSchema:o,TaskMetadataSchema:c,RelatedTaskMetadataSchema:l,RequestMetaSchema:u,BaseRequestParamsSchema:d,TaskAugmentedRequestParamsSchema:f,NotificationsParamsSchema:p,NotificationSchema:m,IconSchema:h,IconsSchema:ee,BaseMetadataSchema:g,ImplementationSchema:te,ClientTasksCapabilitySchema:re,ServerTasksCapabilitySchema:_,ClientCapabilitiesSchema:ie,ServerCapabilitiesSchema:ae,ProgressSchema:oe,ProgressNotificationParamsSchema:se,ProgressNotificationSchema:ce,LoggingMessageNotificationParamsSchema:le,LoggingMessageNotificationSchema:ue,ResourceContentsSchema:de,TextResourceContentsSchema:fe,BlobResourceContentsSchema:pe,AnnotationsSchema:me,ResourceSchema:he,ResourceTemplateSchema:ge,ResourceListChangedNotificationSchema:v,ResourceUpdatedNotificationParamsSchema:_e,ResourceUpdatedNotificationSchema:ve,PromptArgumentSchema:ye,PromptSchema:be,PromptListChangedNotificationSchema:xe,TextContentSchema:Se,ImageContentSchema:Ce,AudioContentSchema:we,ToolUseContentSchema:Te,EmbeddedResourceSchema:Ee,ResourceLinkSchema:De,ContentBlockSchema:Oe,PromptMessageSchema:y,ToolAnnotationsSchema:ke,ToolListChangedNotificationSchema:b,ModelHintSchema:Ae,ModelPreferencesSchema:je,ToolChoiceSchema:Me,BooleanSchemaSchema:Ne,StringSchemaSchema:Pe,NumberSchemaSchema:Fe,UntitledSingleSelectEnumSchemaSchema:Ie,TitledSingleSelectEnumSchemaSchema:Le,LegacyTitledEnumSchemaSchema:Re,SingleSelectEnumSchemaSchema:ze,UntitledMultiSelectEnumSchemaSchema:Be,TitledMultiSelectEnumSchemaSchema:Ve,MultiSelectEnumSchemaSchema:He,EnumSchemaSchema:Ue,PrimitiveSchemaDefinitionSchema:We,ElicitRequestFormParamsSchema:Ge,ResourceTemplateReferenceSchema:Ke,PromptReferenceSchema:qe,RootSchema:Je,ClientCapabilities2026Schema:Xe,ServerCapabilities2026Schema:Qe,RequestMetaEnvelopeSchema:$e,ToolSchema:et,ToolResultContentSchema:tt,SamplingMessageContentBlockSchema:nt,SamplingMessageSchema:rt,ResultTypeSchema:it,ResultMetaSchema:at,ResultSchema:st,PaginatedResultSchema:ct,CallToolResultSchema:lt,ListToolsResultSchema:ut,ListPromptsResultSchema:dt,GetPromptResultSchema:ft,ListResourcesResultSchema:pt,ListResourceTemplatesResultSchema:mt,ReadResourceResultSchema:ht,CompleteResultSchema:gt,CacheableResultSchema:_t,DiscoverResultSchema:vt,CreateMessageRequestParamsSchema:yt,CreateMessageRequestSchema:bt,ListRootsRequestSchema:xt,CreateMessageResultSchema:St,ListRootsResultSchema:Ct,ElicitResultSchema:wt,ElicitRequestURLParamsSchema:Tt,ElicitRequestParamsSchema:Et,ElicitRequestSchema:Dt,InputRequestSchema:Ot,InputResponseSchema:kt,InputRequestsSchema:At,InputResponsesSchema:jt,InputRequiredResultSchema:Mt,InputResponseRequestParamsSchema:Pt,CallToolRequestSchema:Bt,ListToolsRequestSchema:Vt,ListPromptsRequestSchema:Ht,GetPromptRequestSchema:Ut,ListResourcesRequestSchema:Wt,ListResourceTemplatesRequestSchema:Gt,ReadResourceRequestSchema:Kt,CompleteRequestSchema:Jt,DiscoverRequestSchema:Yt,SubscriptionFilterSchema:Xt,SubscriptionsListenRequestSchema:Qt,SubscriptionsListenResultMetaSchema:$t,SubscriptionsListenResultSchema:en,dispatchRequestSchemas:tn,dispatchResultSchemas:rn,NotificationMetaSchema:an,SubscriptionsAcknowledgedNotificationSchema:on,CancelledNotificationParamsSchema:sn,CancelledNotificationSchema:cn,notificationSchemas2026:ln,JSONRPCResultResponseSchema:un(st),CallToolResultResponseSchema:un(F([lt,Mt])),ListToolsResultResponseSchema:un(ut),ListPromptsResultResponseSchema:un(dt),GetPromptResultResponseSchema:un(F([ft,Mt])),ListResourcesResultResponseSchema:un(pt),ListResourceTemplatesResultResponseSchema:un(mt),ReadResourceResultResponseSchema:un(F([ht,Mt])),CompleteResultResponseSchema:un(gt),DiscoverResultResponseSchema:un(vt)}}var km;function Am(){return km??=Om()}var jm=[`tools/list`,`prompts/list`,`resources/list`,`resources/templates/list`,`resources/read`,`server/discover`];function Mm(e){return jm.includes(e)}var Nm=Symbol(`modelcontextprotocol.resultCacheHintFallback`);function Pm(e){return e[Nm]}function Fm(e){return typeof e==`number`&&Number.isSafeInteger(e)&&e>=0}function Im(e){return e===`public`||e===`private`}var Y=function(e){return e[e.ParseError=-32700]=`ParseError`,e[e.InvalidRequest=-32600]=`InvalidRequest`,e[e.MethodNotFound=-32601]=`MethodNotFound`,e[e.InvalidParams=-32602]=`InvalidParams`,e[e.InternalError=-32603]=`InternalError`,e[e.ResourceNotFound=-32002]=`ResourceNotFound`,e[e.MissingRequiredClientCapability=-32021]=`MissingRequiredClientCapability`,e[e.UnsupportedProtocolVersion=-32022]=`UnsupportedProtocolVersion`,e[e.UrlElicitationRequired=-32042]=`UrlElicitationRequired`,e}({}),X=class e extends Error{static{Object.defineProperty(this,"mcpBrand",{value:`mcp.ProtocolError`})}static[Symbol.hasInstance](e){return Zp(this,e)}static isInstance(e){if(typeof this!=`function`)throw TypeError("isInstance must be called on the class (e.g. `SdkError.isInstance(value)`); for callbacks use `v => SdkError.isInstance(v)`");return Zp(this,e)}constructor(e,t,n){super(t),this.code=e,this.data=n,this.name=`ProtocolError`,Xp(this,new.target)}static fromError(t,n,r){if(t===Y.UrlElicitationRequired&&r){let e=r;if(e.elicitations)return new Rm(e.elicitations,n)}if(t===Y.UnsupportedProtocolVersion&&r){let e=r;if(Array.isArray(e.supported)&&typeof e.requested==`string`)return new zm({supported:e.supported,requested:e.requested},n)}if(t===Y.InvalidParams||t===Y.ResourceNotFound){let e=r;if(typeof e?.uri==`string`&&(t===Y.ResourceNotFound||Object.keys(e).length===1))return new Lm(e.uri,n)}if(t===Y.MissingRequiredClientCapability&&r){let e=r;if(e.requiredCapabilities!==null&&typeof e.requiredCapabilities==`object`&&!Array.isArray(e.requiredCapabilities))return new Bm({requiredCapabilities:e.requiredCapabilities},n)}return new e(t,n,r)}},Lm=class extends X{static{Object.defineProperty(this,"mcpBrand",{value:`mcp.ResourceNotFoundError`})}constructor(e,t=`Resource not found: ${e}`){super(Y.InvalidParams,t,{uri:e})}get uri(){return this.data.uri}},Rm=class extends X{static{Object.defineProperty(this,"mcpBrand",{value:`mcp.UrlElicitationRequiredError`})}constructor(e,t=`URL elicitation${e.length>1?`s`:``} required`){super(Y.UrlElicitationRequired,t,{elicitations:e})}get elicitations(){return this.data?.elicitations??[]}},zm=class extends X{static{Object.defineProperty(this,"mcpBrand",{value:`mcp.UnsupportedProtocolVersionError`})}constructor(e,t=`Unsupported protocol version: ${e.requested}`){super(Y.UnsupportedProtocolVersion,t,e)}get supported(){return this.data.supported}get requested(){return this.data.requested}},Bm=class extends X{static{Object.defineProperty(this,"mcpBrand",{value:`mcp.MissingRequiredClientCapabilityError`})}constructor(e,t=`Missing required client capabilities: ${Object.keys(e.requiredCapabilities).join(`, `)}`){super(Y.MissingRequiredClientCapability,t,e)}get requiredCapabilities(){return this.data.requiredCapabilities}},Vm=0,Hm=`private`,Um=[`tools/call`,`prompts/get`,`resources/read`];function Wm(e,t){let n=t.resultType;if(n===void 0)return{...t,resultType:`complete`};if(n===`complete`||Um.includes(e))return t;throw new X(Y.InternalError,`Handler for ${e} returned resultType '${String(n)}', but results of ${e} only support 'complete' on protocol revision 2026-07-28`)}function Gm(e,t){let n=Pm(t);if(t.resultType!==`complete`||!Mm(e))return n===void 0?t:Xm(t);let r=t,i=Fm(r.ttlMs)?r.ttlMs:Jm(n),a=Im(r.cacheScope)?r.cacheScope:Ym(n),o={...r,ttlMs:i,cacheScope:a};return delete o[Nm],o}function Km(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function qm(e,t){if(t===void 0)return e;let n=e._meta;return n===void 0?{...e,_meta:{[ku]:t}}:!Km(n)||n[`io.modelcontextprotocol/serverInfo`]!==void 0?e:{...e,_meta:{...n,[ku]:t}}}function Jm(e){return e!==void 0&&Fm(e.ttlMs)?e.ttlMs:Vm}function Ym(e){return e!==void 0&&Im(e.cacheScope)?e.cacheScope:Hm}function Xm(e){let t={...e};return delete t[Nm],t}var Zm=[`elicitation/create`,`sampling/createMessage`,`roots/list`],Qm;function $m(){if(Qm)return Qm;let e=Am();return Qm={request:{"elicitation/create":N({method:R(`elicitation/create`),params:e.ElicitRequestParamsSchema}),"sampling/createMessage":N({method:R(`sampling/createMessage`),params:e.CreateMessageRequestParamsSchema}),"roots/list":N({method:R(`roots/list`),params:P({}).optional()})},response:{"elicitation/create":e.ElicitResultSchema,"sampling/createMessage":e.CreateMessageResultSchema,"roots/list":e.ListRootsResultSchema}},Qm}function eh(e){return Zm.includes(e)}function th(e){return eh(e)?$m().request[e]:void 0}function nh(e){return eh(e)?$m().response[e]:void 0}var rh={"tools/call":null,"tools/list":null,"prompts/get":null,"prompts/list":null,"resources/list":null,"resources/templates/list":null,"resources/read":null,"completion/complete":null,"server/discover":null,"subscriptions/listen":null},ih={"notifications/cancelled":null,"notifications/progress":null,"notifications/message":null,"notifications/resources/updated":null,"notifications/resources/list_changed":null,"notifications/tools/list_changed":null,"notifications/prompts/list_changed":null,"notifications/subscriptions/acknowledged":null};function ah(e){return Object.prototype.hasOwnProperty.call(rh,e)}function oh(e){return Object.prototype.hasOwnProperty.call(ih,e)}function sh(e){return Object.prototype.hasOwnProperty.call(rh,e)}function ch(e){return ah(e)?Am().dispatchRequestSchemas[e]:void 0}function lh(e){return sh(e)?Am().dispatchResultSchemas[e]:void 0}function uh(e){return oh(e)?Am().notificationSchemas2026[e]:void 0}Object.keys(rh),Object.keys(ih);function dh(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function fh(e,t){if(e===void 0)return{ok:!1,reason:`not-in-era`};let n=e.safeParse(t);return n.success?{ok:!0,value:n.data}:{ok:!1,reason:`invalid`,message:String(n.error)}}var ph={ok:!1,reason:`not-in-era`},mh=[Du,Au];function hh(e,t){let n=t,r=!1,i=()=>(r||=(n={...n},!0),n),a=t.tools;e===`tools/list`&&Array.isArray(a)&&a.some(e=>dh(e)&&`execution`in e)&&(i().tools=a.map(e=>{if(!dh(e)||!(`execution`in e))return e;let t={...e};return delete t.execution,t}));let o=t.capabilities;if(dh(o)&&`tasks`in o){let e={...o};delete e.tasks,i().capabilities=e}return n}var gh={era:`2026-07-28`,hasRequestMethod:ah,hasNotificationMethod:oh,hasInputRequestMethod:e=>th(e)!==void 0,validateRequest:(e,t)=>fh(ch(e),t),validateResult:(e,t)=>fh(lh(e),t),validateNotification:(e,t)=>fh(uh(e),t),validateInputRequest:(e,t)=>fh(th(e),t),validateInputResponse:(e,t)=>fh(nh(e),t),samplingResultVariant:()=>ph,outboundEnvelope(e){return{[Du]:e.protocolVersion,[Ou]:e.clientInfo,[Au]:e.clientCapabilities,...e.logLevel!==void 0&&{"io.modelcontextprotocol/logLevel":e.logLevel}}},validateEnvelopeMeta(e){let t=[];for(let n of mh)n in e||t.push({key:n,problem:`missing`});let n=Am().RequestMetaEnvelopeSchema.safeParse(e);if(!n.success)for(let e of n.error.issues){let n=e.path.map(String),r=n.length>0?n.join(`.`):`_meta`;n.length===1&&t.some(e=>e.key===r&&e.problem===`missing`)||t.push({key:r,problem:e.message})}return t},projectCallToolResult:e=>em(e),inputRequestSchema:th,decodeResult(e,t){if(!dh(t))return{kind:`invalid`,error:new J(q.InvalidResult,`Invalid result for ${e}: not an object`,{method:e})};let n=t.resultType;if(n===void 0)return{kind:`invalid`,error:new J(q.InvalidResult,`Invalid result for ${e}: missing required resultType — servers implementing protocol revision 2026-07-28 MUST include it (the absent-means-complete bridge applies only to earlier-revision servers)`,{method:e,violation:`missing-resultType`})};if(typeof n!=`string`)return{kind:`invalid`,error:new J(q.InvalidResult,`Invalid result for ${e}: non-string resultType`,{method:e,resultType:n})};if(n===`input_required`){let n=t.inputRequests,r=dh(n)?n:{},i=t.requestState;return Object.keys(r).length===0&&typeof i!=`string`?{kind:`invalid`,error:new J(q.InvalidResult,`Invalid result for ${e}: input_required carries neither inputRequests nor requestState (every input_required result must include at least one of the two)`,{method:e,violation:`input-required-missing-both`})}:{kind:`input_required`,inputRequests:r,...typeof i==`string`&&{requestState:i}}}if(n!==`complete`)return{kind:`invalid`,error:new J(q.UnsupportedResultType,`Unsupported result type '${n}' for ${e}`,{resultType:n,method:e})};let r=vh(),i=Object.hasOwn(r,e)?r[e]:void 0;if(i!==void 0){let n=i.safeParse(t);if(!n.success)return{kind:`invalid`,error:new J(q.InvalidResult,`Invalid result for ${e}: ${n.error}`,{method:e})}}let a={...t};return delete a.resultType,{kind:`complete`,result:a}},encodeResult(e,t,n){return qm(Gm(e,Wm(e,hh(e,t))),n)},encodeErrorCode:e=>e===-32002?-32602:e,checkInboundEnvelope(e){if(e.envelope===void 0)return`Request is missing the required _meta envelope for protocol revision 2026-07-28 (io.modelcontextprotocol/protocolVersion, io.modelcontextprotocol/clientCapabilities)`;let t=Am().RequestMetaEnvelopeSchema.safeParse(e.envelope);if(!t.success)return`Invalid _meta envelope for protocol revision 2026-07-28: ${t.error.issues.map(e=>e.message).join(`; `)}`}},_h;function vh(){if(_h)return _h;let e=Am();return _h={"tools/call":e.CallToolResultSchema,"tools/list":e.ListToolsResultSchema,"prompts/get":e.GetPromptResultSchema,"prompts/list":e.ListPromptsResultSchema,"resources/list":e.ListResourcesResultSchema,"resources/templates/list":e.ListResourceTemplatesResultSchema,"resources/read":e.ReadResourceResultSchema,"completion/complete":e.CompleteResultSchema,"server/discover":e.DiscoverResultSchema},_h}var yh=`2026-07-28`;function bh(e){return e!==void 0&&$p(e)?gh:Dm}function xh(e){return e.revision===void 0?e.era===`modern`?gh.era:Dm.era:bh(e.revision).era}function Sh(e){return wh.some(t=>t.hasRequestMethod(e))}function Ch(e){return wh.some(t=>t.hasNotificationMethod(e))}var wh=[Dm,gh],Th=i({AnnotationsSchema:()=>Dd,AudioContentSchema:()=>sf,BaseMetadataSchema:()=>nd,BaseRequestParamsSchema:()=>U,BlobResourceContentsSchema:()=>Td,BooleanSchemaSchema:()=>Hf,CallToolRequestParamsSchema:()=>Sf,CallToolRequestSchema:()=>Cf,CallToolResultSchema:()=>bf,CancelTaskRequestSchema:()=>Op,CancelTaskResultSchema:()=>kp,CancelledNotificationParamsSchema:()=>Qu,CancelledNotificationSchema:()=>$u,ClientCapabilitiesSchema:()=>sd,ClientNotificationSchema:()=>jp,ClientRequestSchema:()=>Ap,ClientResultSchema:()=>Mp,ClientTasksCapabilitySchema:()=>ad,CompatibilityCallToolResultSchema:()=>xf,CompleteRequestParamsSchema:()=>lp,CompleteRequestSchema:()=>up,CompleteResultSchema:()=>dp,ContentBlockSchema:()=>df,CreateMessageRequestParamsSchema:()=>Rf,CreateMessageRequestSchema:()=>zf,CreateMessageResultSchema:()=>Bf,CreateMessageResultWithToolsSchema:()=>Vf,CreateTaskResultSchema:()=>yp,CursorSchema:()=>Iu,DiscoverRequestSchema:()=>pd,DiscoverResultSchema:()=>md,ElicitRequestFormParamsSchema:()=>ep,ElicitRequestParamsSchema:()=>np,ElicitRequestSchema:()=>rp,ElicitRequestURLParamsSchema:()=>tp,ElicitResultSchema:()=>op,ElicitationCompleteNotificationParamsSchema:()=>ip,ElicitationCompleteNotificationSchema:()=>ap,EmbeddedResourceSchema:()=>lf,EmptyResultSchema:()=>Zu,EnumSchemaSchema:()=>Qf,GetPromptRequestParamsSchema:()=>nf,GetPromptRequestSchema:()=>rf,GetPromptResultSchema:()=>pf,GetTaskPayloadRequestSchema:()=>wp,GetTaskPayloadResultSchema:()=>Tp,GetTaskRequestSchema:()=>Sp,GetTaskResultSchema:()=>Cp,IconSchema:()=>ed,IconsSchema:()=>td,ImageContentSchema:()=>of,ImplementationSchema:()=>rd,InitializeRequestParamsSchema:()=>cd,InitializeRequestSchema:()=>ld,InitializeResultSchema:()=>dd,InitializedNotificationSchema:()=>fd,JSONArraySchema:()=>Pu,JSONObjectSchema:()=>H,JSONRPCErrorResponseSchema:()=>Ju,JSONRPCMessageSchema:()=>Yu,JSONRPCNotificationSchema:()=>Ku,JSONRPCRequestSchema:()=>Gu,JSONRPCResponseSchema:()=>Xu,JSONRPCResultResponseSchema:()=>qu,JSONValueSchema:()=>Nu,LegacyTitledEnumSchemaSchema:()=>qf,ListChangedOptionsBaseSchema:()=>Tf,ListPromptsRequestSchema:()=>ef,ListPromptsResultSchema:()=>tf,ListResourceTemplatesRequestSchema:()=>Md,ListResourceTemplatesResultSchema:()=>Nd,ListResourcesRequestSchema:()=>Ad,ListResourcesResultSchema:()=>jd,ListRootsRequestSchema:()=>pp,ListRootsResultSchema:()=>mp,ListTasksRequestSchema:()=>Ep,ListTasksResultSchema:()=>Dp,ListToolsRequestSchema:()=>vf,ListToolsResultSchema:()=>yf,LoggingLevelSchema:()=>Ef,LoggingMessageNotificationParamsSchema:()=>kf,LoggingMessageNotificationSchema:()=>Af,ModelHintSchema:()=>jf,ModelPreferencesSchema:()=>Mf,MultiSelectEnumSchemaSchema:()=>Zf,NotificationSchema:()=>Hu,NotificationsParamsSchema:()=>Vu,NumberSchemaSchema:()=>Wf,PaginatedRequestParamsSchema:()=>yd,PaginatedRequestSchema:()=>bd,PaginatedResultSchema:()=>xd,PingRequestSchema:()=>hd,PrimitiveSchemaDefinitionSchema:()=>$f,ProgressNotificationParamsSchema:()=>_d,ProgressNotificationSchema:()=>vd,ProgressSchema:()=>gd,ProgressTokenSchema:()=>Fu,PromptArgumentSchema:()=>Qd,PromptListChangedNotificationSchema:()=>mf,PromptMessageSchema:()=>ff,PromptReferenceSchema:()=>cp,PromptSchema:()=>$d,ReadResourceRequestParamsSchema:()=>Fd,ReadResourceRequestSchema:()=>Id,ReadResourceResultSchema:()=>Ld,RelatedTaskMetadataSchema:()=>Ru,RequestIdSchema:()=>Wu,RequestMetaSchema:()=>zu,RequestSchema:()=>W,ResourceContentsSchema:()=>Sd,ResourceLinkSchema:()=>uf,ResourceListChangedNotificationSchema:()=>Rd,ResourceRequestParamsSchema:()=>Pd,ResourceSchema:()=>Od,ResourceTemplateReferenceSchema:()=>sp,ResourceTemplateSchema:()=>kd,ResourceUpdatedNotificationParamsSchema:()=>Xd,ResourceUpdatedNotificationSchema:()=>Zd,ResultMetaObjectSchema:()=>Uu,ResultSchema:()=>G,RoleSchema:()=>Ed,RootSchema:()=>fp,RootsListChangedNotificationSchema:()=>hp,SamplingContentSchema:()=>Ff,SamplingMessageContentBlockSchema:()=>If,SamplingMessageSchema:()=>Lf,ServerCapabilitiesSchema:()=>ud,ServerNotificationSchema:()=>Pp,ServerRequestSchema:()=>Np,ServerResultSchema:()=>Fp,ServerTasksCapabilitySchema:()=>od,SetLevelRequestParamsSchema:()=>Df,SetLevelRequestSchema:()=>Of,SingleSelectEnumSchemaSchema:()=>Jf,StringSchemaSchema:()=>Uf,SubscribeRequestParamsSchema:()=>zd,SubscribeRequestSchema:()=>Bd,SubscriptionFilterSchema:()=>Ud,SubscriptionsAcknowledgedNotificationParamsSchema:()=>Kd,SubscriptionsAcknowledgedNotificationSchema:()=>qd,SubscriptionsListenRequestParamsSchema:()=>Wd,SubscriptionsListenRequestSchema:()=>Gd,SubscriptionsListenResultMetaSchema:()=>Jd,SubscriptionsListenResultSchema:()=>Yd,TaskAugmentedRequestParamsSchema:()=>Bu,TaskCreationParamsSchema:()=>gp,TaskMetadataSchema:()=>Lu,TaskSchema:()=>vp,TaskStatusNotificationParamsSchema:()=>bp,TaskStatusNotificationSchema:()=>xp,TaskStatusSchema:()=>_p,TextContentSchema:()=>af,TextResourceContentsSchema:()=>Cd,TitledMultiSelectEnumSchemaSchema:()=>Xf,TitledSingleSelectEnumSchemaSchema:()=>Kf,ToolAnnotationsSchema:()=>hf,ToolChoiceSchema:()=>Nf,ToolExecutionSchema:()=>gf,ToolListChangedNotificationSchema:()=>wf,ToolResultContentSchema:()=>Pf,ToolSchema:()=>_f,ToolUseContentSchema:()=>cf,UnsubscribeRequestParamsSchema:()=>Vd,UnsubscribeRequestSchema:()=>Hd,UntitledMultiSelectEnumSchemaSchema:()=>Yf,UntitledSingleSelectEnumSchemaSchema:()=>Gf}),Eh=e=>Gu.safeParse(e).success,Dh=e=>Ku.safeParse(e).success,Oh=e=>qu.safeParse(e).success,kh=e=>Ju.safeParse(e).success;Y.InvalidRequest,Y.UnsupportedProtocolVersion,Y.InvalidParams,Y.MethodNotFound,Y.InvalidParams,Y.MissingRequiredClientCapability,Y.ParseError,Y.InvalidRequest,Y.MethodNotFound,Y.UnsupportedProtocolVersion,Y.MissingRequiredClientCapability;function Ah(e,t){return hs(e,t)}function jh(e){return new Set(e.flatMap(e=>Object.keys(e.shape)))}function Mh(e){if(e==null)return!1;let t=typeof e;return t!==`object`&&t!==`function`||!(`~standard`in e)?!1:typeof e[`~standard`]?.validate==`function`}var Nh=!1,Ph=`draft-2020-12`;function Fh(e,t=`input`){let n=e[`~standard`],r;if(n.jsonSchema)r=n.jsonSchema[t]({target:Ph});else if(n.vendor===`zod`){if(!(`_zod`in e))throw Error(`Schema appears to be from zod 3, which the SDK cannot convert to JSON Schema. Upgrade to zod >=4.2.0, or wrap your JSON Schema with fromJsonSchema().`);Nh||(Nh=!0,console.warn("[mcp-sdk] Your zod version does not implement `~standard.jsonSchema` (added in zod 4.2.0). Falling back to z.toJSONSchema(). Upgrade to zod >=4.2.0 to silence this warning.")),r=ts(e,{target:Ph,io:t})}else throw Error(`Schema library "${n.vendor}" does not implement StandardJSONSchemaV1 (\`~standard.jsonSchema\`). Upgrade to a version that does, or wrap your JSON Schema with fromJsonSchema().`);if(t===`output`)return r.type===void 0&&Ih(r)?{type:`object`,...r}:r;if(r.type!==void 0&&r.type!==`object`)throw Error(`MCP tool and prompt schemas must describe objects (got type: ${JSON.stringify(r.type)}). Wrap your schema in z.object({...}) or equivalent.`);return{type:`object`,...r}}function Ih(e){if(`properties`in e||`patternProperties`in e||`additionalProperties`in e||`required`in e)return!0;for(let t of[`oneOf`,`anyOf`,`allOf`]){let n=e[t];if(Array.isArray(n)&&n.length>0)return n.every(e=>typeof e==`object`&&!!e&&(e.type===`object`||Ih(e)))}return!1}function Lh(e){return e.path?.length?`${e.path.map(e=>String(typeof e==`object`?e.key:e)).join(`.`)}: ${e.message}`:e.message}async function Rh(e,t){let n=await e[`~standard`].validate(t);return n.issues&&n.issues.length>0?{success:!1,error:n.issues.map(e=>Lh(e)).join(`, `)}:{success:!0,data:n.value}}function zh(e){let t=ts(e,{target:Ph,io:`input`});return typeof t.pattern==`string`?t.pattern:void 0}var Bh=/\\\.\\d\{(\d+)\}/;function Vh(e){let t=Bh.exec(e),n=[void 0,-1,0];return t&&n.push(Number(t[1])),[!1,!0].flatMap(e=>[!1,!0].flatMap(t=>n.map(n=>as({local:e,offset:t,precision:n}))))}function Hh(e,t){let n;switch(e){case`email`:n=[js()];break;case`uri`:n=[Bs()];break;case`date`:n=[ss()];break;case`date-time`:n=Vh(t);break}return new Set(n.map(e=>zh(e)).filter(e=>e!==void 0))}function Uh(e,t,n){return n!==`zod`||Hh(e,t).has(t)}function Wh(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function Gh(e){try{return Fh(e,`input`)}catch(e){let t=e instanceof Error?e.message:String(e);throw new X(Y.InvalidParams,`Elicitation requestedSchema must describe an object with flat primitive properties: ${t}`)}}var Kh=new Set([`$comment`,`deprecated`,`description`,`examples`,`readOnly`,`title`,`writeOnly`]);function qh(e){return Kh.has(e)||e.startsWith(`x-`)}var Jh=new Set([`$schema`,...Object.keys(ep.shape.requestedSchema.shape)]),Yh={string:jh([Uf,Gf,Kf,qf]),number:jh([Wf]),integer:jh([Wf]),boolean:jh([Hf]),array:jh([Yf,Xf])},Xh=new Set(Uf.shape.format.unwrap().options);function Zh(e,t,n,r){if(!Wh(e))return e;let i=typeof e.type==`string`&&Object.hasOwn(Yh,e.type)?Yh[e.type]:void 0;if(i===void 0)return e;let a={};for(let[o,s]of Object.entries(e))i.has(o)||qh(o)?a[o]=s:o===`pattern`&&e.type===`string`&&typeof e.format==`string`?Xh.has(e.format)?(typeof s!=`string`||!Uh(e.format,s,n))&&r.push(`${t}.${o}`):a[o]=s:r.push(`${t}.${o}`);return a}function Qh(e,t){let n={},r=[];for(let[i,a]of Object.entries(e))i===`properties`&&Wh(a)?n[i]=Object.fromEntries(Object.entries(a).map(([e,n])=>[e,Zh(n,`properties.${e}`,t,r)])):Jh.has(i)?n[i]=a:qh(i)||r.push(i);if(r.length>0)throw new X(Y.InvalidParams,`Elicitation requestedSchema contains unsupported JSON Schema constraint(s) after Standard Schema conversion: ${r.join(`, `)}`);return n}function $h(e,t){if(!Wh(e.properties))return t;let n=Object.entries(e.properties).filter(([,e])=>!Ah($f,e).success).map(([e])=>`properties.${e}`);return n.length>0?n.join(`, `):t}function eg(e,t,n=``){return Array.isArray(e)&&Array.isArray(t)?e.flatMap((e,r)=>eg(e,t[r],`${n}[${r}]`)):!Wh(e)||!Wh(t)?[]:Object.entries(e).flatMap(([e,r])=>{let i=n?`${n}.${e}`:e;return Object.prototype.hasOwnProperty.call(t,e)?eg(r,t[e],i):qh(e)?[]:[i]})}function tg(e){if(!Mh(e.requestedSchema))return{...e,mode:`form`,requestedSchema:e.requestedSchema};let t=e.requestedSchema[`~standard`].vendor,n=Qh(Gh(e.requestedSchema),t),r=Ah(ep.shape.requestedSchema,n);if(!r.success)throw new X(Y.InvalidParams,`Elicitation requestedSchema only supports flat primitive properties (string, number, integer, boolean, and string enums): ${$h(n,r.error.message)}`);let i=eg(n,r.data);if(i.length>0)throw new X(Y.InvalidParams,`Elicitation requestedSchema contains unsupported JSON Schema constraint(s) after Standard Schema conversion: ${i.join(`, `)}`);let a=(r.data.required??[]).filter(e=>!Object.prototype.hasOwnProperty.call(r.data.properties,e));if(a.length>0)throw new X(Y.InvalidParams,`Elicitation requestedSchema lists required properties that are not defined in properties: ${a.join(`, `)}`);return{...e,mode:`form`,requestedSchema:r.data}}function ng(e){let t=e.inputRequests!==void 0&&Object.keys(e.inputRequests).length>0,n=typeof e.requestState==`string`;if(!t&&!n)throw TypeError(`inputRequired() requires at least one of inputRequests (with at least one entry) or requestState (spec: every InputRequiredResult MUST include at least one of the two)`);return{resultType:`input_required`,...e.inputRequests!==void 0&&{inputRequests:e.inputRequests},...e.requestState!==void 0&&{requestState:e.requestState}}}Object.assign(ng,{elicit(e){try{return{method:`elicitation/create`,params:tg(e)}}catch(e){throw e instanceof X?TypeError(e.message,{cause:e}):e}},elicitUrl(e){return{method:`elicitation/create`,params:{...e,mode:`url`}}},createMessage(e){return{method:`sampling/createMessage`,params:e}},listRoots(){return{method:`roots/list`}}});var rg=`AnnotationsSchema.AudioContentSchema.BaseMetadataSchema.BlobResourceContentsSchema.BooleanSchemaSchema.CallToolRequestSchema.CallToolRequestParamsSchema.CallToolResultSchema.CancelledNotificationSchema.CancelledNotificationParamsSchema.CancelTaskRequestSchema.CancelTaskResultSchema.ClientCapabilitiesSchema.ClientNotificationSchema.ClientRequestSchema.ClientResultSchema.CompatibilityCallToolResultSchema.CompleteRequestSchema.CompleteRequestParamsSchema.CompleteResultSchema.ContentBlockSchema.CreateMessageRequestSchema.CreateMessageRequestParamsSchema.CreateMessageResultSchema.CreateMessageResultWithToolsSchema.CreateTaskResultSchema.CursorSchema.DiscoverRequestSchema.DiscoverResultSchema.ElicitationCompleteNotificationSchema.ElicitationCompleteNotificationParamsSchema.ElicitRequestSchema.ElicitRequestFormParamsSchema.ElicitRequestParamsSchema.ElicitRequestURLParamsSchema.ElicitResultSchema.EmbeddedResourceSchema.EmptyResultSchema.EnumSchemaSchema.GetPromptRequestSchema.GetPromptRequestParamsSchema.GetPromptResultSchema.GetTaskPayloadRequestSchema.GetTaskPayloadResultSchema.GetTaskRequestSchema.GetTaskResultSchema.IconSchema.IconsSchema.ImageContentSchema.ImplementationSchema.InitializedNotificationSchema.InitializeRequestSchema.InitializeRequestParamsSchema.InitializeResultSchema.JSONArraySchema.JSONObjectSchema.JSONRPCErrorResponseSchema.JSONRPCMessageSchema.JSONRPCNotificationSchema.JSONRPCRequestSchema.JSONRPCResponseSchema.JSONRPCResultResponseSchema.JSONValueSchema.LegacyTitledEnumSchemaSchema.ListPromptsRequestSchema.ListPromptsResultSchema.ListResourcesRequestSchema.ListResourcesResultSchema.ListResourceTemplatesRequestSchema.ListResourceTemplatesResultSchema.ListRootsRequestSchema.ListRootsResultSchema.ListTasksRequestSchema.ListTasksResultSchema.ListToolsRequestSchema.ListToolsResultSchema.LoggingLevelSchema.LoggingMessageNotificationSchema.LoggingMessageNotificationParamsSchema.ModelHintSchema.ModelPreferencesSchema.MultiSelectEnumSchemaSchema.NotificationSchema.NumberSchemaSchema.PaginatedRequestSchema.PaginatedRequestParamsSchema.PaginatedResultSchema.PingRequestSchema.PrimitiveSchemaDefinitionSchema.ProgressSchema.ProgressNotificationSchema.ProgressNotificationParamsSchema.ProgressTokenSchema.PromptSchema.PromptArgumentSchema.PromptListChangedNotificationSchema.PromptMessageSchema.PromptReferenceSchema.ReadResourceRequestSchema.ReadResourceRequestParamsSchema.ReadResourceResultSchema.RelatedTaskMetadataSchema.RequestSchema.RequestIdSchema.RequestMetaSchema.ResourceSchema.ResourceContentsSchema.ResourceLinkSchema.ResourceListChangedNotificationSchema.ResourceRequestParamsSchema.ResourceTemplateSchema.ResourceTemplateReferenceSchema.ResourceUpdatedNotificationSchema.ResourceUpdatedNotificationParamsSchema.ResultMetaObjectSchema.ResultSchema.RoleSchema.RootSchema.RootsListChangedNotificationSchema.SamplingContentSchema.SamplingMessageSchema.SamplingMessageContentBlockSchema.ServerCapabilitiesSchema.ServerNotificationSchema.ServerRequestSchema.ServerResultSchema.SetLevelRequestSchema.SetLevelRequestParamsSchema.SingleSelectEnumSchemaSchema.StringSchemaSchema.SubscribeRequestSchema.SubscribeRequestParamsSchema.SubscriptionFilterSchema.SubscriptionsAcknowledgedNotificationSchema.SubscriptionsAcknowledgedNotificationParamsSchema.SubscriptionsListenRequestSchema.SubscriptionsListenRequestParamsSchema.SubscriptionsListenResultSchema.SubscriptionsListenResultMetaSchema.TaskAugmentedRequestParamsSchema.TaskCreationParamsSchema.TaskMetadataSchema.TaskSchema.TaskStatusSchema.TaskStatusNotificationSchema.TaskStatusNotificationParamsSchema.TextContentSchema.TextResourceContentsSchema.TitledMultiSelectEnumSchemaSchema.TitledSingleSelectEnumSchemaSchema.ToolSchema.ToolAnnotationsSchema.ToolChoiceSchema.ToolExecutionSchema.ToolListChangedNotificationSchema.ToolResultContentSchema.ToolUseContentSchema.UnsubscribeRequestSchema.UnsubscribeRequestParamsSchema.UntitledMultiSelectEnumSchemaSchema.UntitledSingleSelectEnumSchemaSchema`.split(`.`),ig={IdJagTokenExchangeResponseSchema:Vp,OAuthClientInformationFullSchema:Kp,OAuthClientInformationSchema:Gp,OAuthClientMetadataSchema:Wp,OAuthClientRegistrationErrorSchema:qp,OAuthErrorResponseSchema:Hp,OAuthMetadataSchema:Lp,OAuthProtectedResourceMetadataSchema:Ip,OAuthTokenRevocationRequestSchema:Jp,OAuthTokensSchema:Bp,OpenIdProviderDiscoveryMetadataSchema:zp,OpenIdProviderMetadataSchema:Rp},ag={},og={};function sg(e,t){let n=e.slice(0,-6);ag[n]=t,og[n]=e=>t.safeParse(e).success}for(let e of rg)sg(e,Th[e]);for(let[e,t]of Object.entries(ig))sg(e,t);Object.freeze(ag),Object.freeze(og);function cg(e){switch(e){case`initialize`:case`notifications/initialized`:return bh(void 0);case`server/discover`:return bh(yh);default:return}}var lg=[Du,Ou,Au,Mu],ug=[`inputResponses`,`requestState`];function dg(e,t){let n=e.params;if(!gg(n))return{message:e,lifted:{}};let r=n._meta,i=gg(r)?lg.filter(e=>e in r):[],a=t===`request`?ug.filter(e=>e in n):[];if(i.length===0&&a.length===0)return{message:e,lifted:{}};let o={},s={...n};if(i.length>0&&gg(r)){let e={},t={...r};for(let n of i)e[n]=r[n],delete t[n];o.envelope=e,Object.keys(t).length>0?s._meta=t:delete s._meta}for(let e of a)e===`inputResponses`&&(o.inputResponses=s[e]),e===`requestState`&&(o.requestState=s[e]),delete s[e];return{message:{...e,params:s},lifted:o}}function fg(e,t){let n=e.validateResult(t,void 0);if(!(!n.ok&&n.reason===`not-in-era`))return{"~standard":{version:1,vendor:`mcp-wire-codec`,validate(n){let r=e.validateResult(t,n);return r.ok?{value:r.value}:{issues:[{message:r.reason===`invalid`?r.message:`not-in-era: ${t}`}]}}}}}function pg(e){return()=>e}var mg=pg(void 0),hg=class{_transport;_requestMessageId=0;_requestHandlers=new Map;_requestHandlerAbortControllers=new Map;_notificationHandlers=new Map;_responseHandlers=new Map;_progressHandlers=new Map;_timeoutInfo=new Map;_pendingDebouncedNotifications=new Set;_negotiatedProtocolVersion;_supportedProtocolVersions;onclose;onerror;fallbackRequestHandler;fallbackNotificationHandler;constructor(e){this._options=e,this._supportedProtocolVersions=e?.supportedProtocolVersions??Tu,this.setNotificationHandler(`notifications/cancelled`,e=>{this._oncancel(e)}),this.setNotificationHandler(`notifications/progress`,e=>{this._onprogress(e)}),this.setRequestHandler(`ping`,e=>({}))}_shouldDropInbound(e){}_outboundMetaEnvelope(){}_envelopeOutbound(e){let t=this._outboundMetaEnvelope();if(t===void 0)return e;let n=e.params??{};return{...e,params:{...n,_meta:{...t,...n._meta}}}}_resolveNonCompleteResult(e,t){return Promise.reject(new J(q.UnsupportedResultType,`Unsupported result type '${e.kind}' for ${t.request.method}`,{resultType:e.kind,method:t.request.method}))}_getRequestHandler(e){return this._requestHandlers.get(e)}async _oncancel(e){e.params.requestId&&this._requestHandlerAbortControllers.get(e.params.requestId)?.abort(e.params.reason)}_setupTimeout(e,t,n,r,i=!1){this._timeoutInfo.set(e,{timeoutId:setTimeout(r,t),startTime:Date.now(),timeout:t,maxTotalTimeout:n,resetTimeoutOnProgress:i,onTimeout:r})}_resetTimeout(e){let t=this._timeoutInfo.get(e);if(!t)return!1;let n=Date.now()-t.startTime;if(t.maxTotalTimeout&&n>=t.maxTotalTimeout)throw this._timeoutInfo.delete(e),new J(q.RequestTimeout,`Maximum total timeout exceeded`,{maxTotalTimeout:t.maxTotalTimeout,totalElapsed:n});return clearTimeout(t.timeoutId),t.timeoutId=setTimeout(t.onTimeout,t.timeout),!0}_cleanupTimeout(e){let t=this._timeoutInfo.get(e);t&&(clearTimeout(t.timeoutId),this._timeoutInfo.delete(e))}async connect(e){this._transport=e;let t=this.transport?.onclose;this._transport.onclose=()=>{try{t?.()}finally{this._onclose()}};let n=this.transport?.onerror;this._transport.onerror=e=>{n?.(e),this._onerror(e)};let r=this._transport?.onmessage;this._transport.onmessage=(e,t)=>{r?.(e,t),Oh(e)||kh(e)?this._onresponse(e):Eh(e)?this._onrequest(e,t):Dh(e)?this._onnotification(e,t):this._onerror(Error(`Unknown message type: ${JSON.stringify(e)}`))},e.setSupportedProtocolVersions?.(this._supportedProtocolVersions),await this._transport.start()}_onclose(){let e=this._responseHandlers;this._responseHandlers=new Map,this._progressHandlers.clear(),this._pendingDebouncedNotifications.clear();for(let e of this._timeoutInfo.values())clearTimeout(e.timeoutId);this._timeoutInfo.clear();let t=this._requestHandlerAbortControllers;this._requestHandlerAbortControllers=new Map;let n=new J(q.ConnectionClosed,`Connection closed`);this._transport=void 0;try{this.onclose?.()}finally{for(let t of e.values())t(n);for(let e of t.values())e.abort(n)}}_onerror(e){this.onerror?.(e)}_onnotification(e,t){let{message:n}=dg(e,`notification`),r=this._negotiatedWireCodec();if(t?.classification===void 0&&this._shouldDropInbound(e)===`drop`)return;if(t?.classification!==void 0){let e=xh(t.classification);if(e!==r.era){this._onerror(Error(`Era mismatch on inbound notification '${n.method}': classified as ${e} but this instance serves ${r.era}`));return}}if(Ch(n.method)&&!r.hasNotificationMethod(n.method))return;let i=this._notificationHandlers.get(n.method),a=this.fallbackNotificationHandler;i===void 0&&a===void 0||Promise.resolve().then(()=>i===void 0?a(n):i(n,r)).catch(e=>this._onerror(Error(`Uncaught error in notification handler: ${e}`)))}_onrequest(e,t){let{message:n,lifted:r}=dg(e,`request`),i=this._negotiatedWireCodec();if(t?.classification===void 0&&this._shouldDropInbound(e)===`drop`){this._onerror(Error(`Dropped inbound request '${e.method}': not servable on this connection's protocol era`));return}let a=this._transport,o=(e,t,r)=>{let i={jsonrpc:`2.0`,id:n.id,error:{code:e,message:t,...r!==void 0&&{data:r}}};a?.send(i).catch(e=>this._onerror(Error(`Failed to send an error response: ${e}`)))};if(t?.classification!==void 0){let e=xh(t.classification);if(e!==i.era){this._onerror(Error(`Era mismatch on inbound request '${n.method}': classified as ${e} but this instance serves ${i.era}`));let r=t.classification.revision??e;o(Y.UnsupportedProtocolVersion,`Unsupported protocol version: ${r}`,{supported:this._supportedProtocolVersions,requested:r});return}}if(Sh(n.method)&&!i.hasRequestMethod(n.method)){o(Y.MethodNotFound,`Method not found`);return}let s=this._requestHandlers.get(n.method)??this.fallbackRequestHandler;if(s===void 0){o(Y.MethodNotFound,`Method not found`);return}let c=i.checkInboundEnvelope(r);if(c!==void 0){o(Y.InvalidParams,c);return}let l=(e,t)=>this._notificationViaCodec(this._resolveOutboundCodec(e.method),e,{...t,relatedRequestId:n.id}),u=(e,t,r)=>this._requestWithSchemaViaCodec(this._resolveOutboundCodec(e.method),e,t,{...r,relatedRequestId:n.id}),d=new AbortController;this._requestHandlerAbortControllers.set(n.id,d);let f=r.inputResponses===void 0?void 0:vg(r.inputResponses),p={sessionId:a?.sessionId,mcpReq:{id:n.id,method:n.method,_meta:n.params?._meta,...r.envelope!==void 0&&{envelope:r.envelope},...f!==void 0&&{inputResponses:f.accepted},...f!==void 0&&f.droppedKeys.length>0&&{droppedInputResponseKeys:f.droppedKeys},requestState:r.requestState===void 0?mg:pg(r.requestState),signal:d.signal,send:((e,t,n)=>{let r=this._resolveOutboundCodec(e.method);if(this._assertOutboundRequestInEra(r,e.method),Mh(t))return u(e,t,n);let i=fg(r,e.method);if(i===void 0)throw TypeError(`'${e.method}' is not a spec method; pass a result schema as the second argument to ctx.mcpReq.send().`);return u(e,i,t)}),notify:l},http:t?.authInfo?{authInfo:t.authInfo}:void 0},m=this.buildContext(p,t);Promise.resolve().then(()=>s(n,m)).then(async e=>{if(d.signal.aborted)return;let t;try{t=i.encodeResult(n.method,e,this._outboundServerInfo())}catch(e){this._onerror(Error(`Failed to encode result for ${n.method}: ${e}`)),o(Y.InternalError,`Internal error`);return}let r={result:t,jsonrpc:`2.0`,id:n.id};await a?.send(r)},async e=>{if(d.signal.aborted)return;let t=Number.isSafeInteger(e.code)?e.code:Y.InternalError,r={jsonrpc:`2.0`,id:n.id,error:{code:i.encodeErrorCode(t),message:e.message??`Internal error`,...e.data!==void 0&&{data:e.data}}};await a?.send(r)}).catch(e=>this._onerror(Error(`Failed to send response: ${e}`))).finally(()=>{this._requestHandlerAbortControllers.get(n.id)===d&&this._requestHandlerAbortControllers.delete(n.id)})}_onprogress(e){let{progressToken:t,...n}=e.params,r=Number(t),i=this._progressHandlers.get(r);if(!i){this._onerror(Error(`Received a progress notification for an unknown token: ${JSON.stringify(e)}`));return}let a=this._responseHandlers.get(r),o=this._timeoutInfo.get(r);if(o&&a&&o.resetTimeoutOnProgress)try{this._resetTimeout(r)}catch(e){this._responseHandlers.delete(r),this._progressHandlers.delete(r),this._cleanupTimeout(r),a(e);return}i(n)}_onresponse(e){let t=Number(e.id),n=this._responseHandlers.get(t);if(n===void 0){this._onerror(Error(`Received a response for an unknown message ID: ${JSON.stringify(e)}`));return}this._responseHandlers.delete(t),this._cleanupTimeout(t),this._progressHandlers.delete(t),Oh(e)?n(e):n(X.fromError(e.error.code,e.error.message,e.error.data))}get transport(){return this._transport}async close(){await this._transport?.close()}request(e,t,n){let r=this._resolveOutboundCodec(e.method);if(this._assertOutboundRequestInEra(r,e.method),Mh(t))return this._requestWithSchemaViaCodec(r,e,t,n);let i=fg(r,e.method);if(i===void 0)throw TypeError(`'${e.method}' is not a spec method; pass a result schema as the second argument to request().`);return this._requestWithSchemaViaCodec(r,e,i,t)}_negotiatedWireCodec(){return bh(this._negotiatedProtocolVersion)}_wireCodec(){return this._negotiatedWireCodec()}_resolveOutboundCodec(e){if(this._negotiatedProtocolVersion===void 0){let t=cg(e);if(t)return t}return this._negotiatedWireCodec()}_assertOutboundRequestInEra(e,t){if(Sh(t)&&!e.hasRequestMethod(t))throw new J(q.MethodNotSupportedByProtocolVersion,`Method '${t}' is not supported by the negotiated protocol version (wire era ${e.era})`,{method:t,era:e.era})}_requestWithSchema(e,t,n){let r=this._resolveOutboundCodec(e.method);return this._assertOutboundRequestInEra(r,e.method),this._requestWithSchemaViaCodec(r,e,t,n)}_requestWithSchemaViaCodec(e,t,n,r){let{relatedRequestId:i,resumptionToken:a,onresumptiontoken:o,headers:s}=r??{},c=Date.now(),l,u;return new Promise((d,f)=>{let p=e=>{f(e)};if(!this._transport){p(Error(`Not connected`));return}if(this._options?.enforceStrictCapabilities===!0)try{this.assertCapabilityForMethod(t.method)}catch(e){p(e);return}if(r?.signal?.aborted){let e=r.signal.reason;throw e instanceof J?e:new J(q.RequestTimeout,String(e))}let m=e.era===`2026-07-28`&&this._transport.hasPerRequestStream===!0?new AbortController:void 0,h=this._requestMessageId++;u=h;let ee={...t,jsonrpc:`2.0`,id:h};r?.onprogress&&(this._progressHandlers.set(h,r.onprogress),ee.params={...t.params,_meta:{...t.params?._meta,progressToken:h}});let g=this._envelopeOutbound(ee),te=!1,ne=e=>{te||(this._progressHandlers.delete(h),m===void 0?this._transport?.send(this._envelopeOutbound({jsonrpc:`2.0`,method:`notifications/cancelled`,params:{requestId:h,reason:String(e)}}),{relatedRequestId:i,resumptionToken:a,onresumptiontoken:o}).catch(e=>this._onerror(Error(`Failed to send cancellation: ${e}`))):m.abort(),f(e instanceof J?e:new J(q.RequestTimeout,String(e))))};this._responseHandlers.set(h,i=>{if(r?.signal?.aborted)return;if(te=!0,i instanceof Error)return f(i);let a;try{a=e.decodeResult(t.method,i.result)}catch(e){return f(e instanceof Error?e:Error(String(e)))}if(a.kind===`invalid`)return f(a.error);if(a.kind===`input_required`){if(r?.allowInputRequired===!0)return d(yg(a));let i={codec:e,request:t,resultSchema:n,options:r,flowStartedAt:c,retry:(r,i)=>this._requestWithSchemaViaCodec(e,r===void 0?{method:t.method}:{method:t.method,params:r},n,i)};return d(this._resolveNonCompleteResult(a,i))}let o=a.result;Rh(n,o).then(e=>{e.success?d(e.data):f(new J(q.InvalidResult,`Invalid result for ${t.method}: ${e.error}`))},f)}),l=()=>ne(r?.signal?.reason),r?.signal?.addEventListener(`abort`,l,{once:!0});let re=r?.timeout??6e4;this._setupTimeout(h,re,r?.maxTotalTimeout,()=>ne(new J(q.RequestTimeout,`Request timed out`,{timeout:re})),r?.resetTimeoutOnProgress??!1),this._transport.send(g,{relatedRequestId:i,resumptionToken:a,onresumptiontoken:o,headers:s,requestSignal:m?.signal}).catch(e=>{this._progressHandlers.delete(h),f(e)})}).finally(()=>{l&&r?.signal?.removeEventListener(`abort`,l),u!==void 0&&(this._responseHandlers.delete(u),this._cleanupTimeout(u))})}async notification(e,t){return this._notificationViaCodec(this._resolveOutboundCodec(e.method),e,t)}async _notificationViaCodec(e,t,n){if(!this._transport)throw new J(q.NotConnected,`Not connected`);if(Ch(t.method)&&!e.hasNotificationMethod(t.method))throw new J(q.MethodNotSupportedByProtocolVersion,`Notification '${t.method}' is not supported by the negotiated protocol version (wire era ${e.era})`,{method:t.method,era:e.era});this.assertNotificationCapability(t.method);let r=this._envelopeOutbound({jsonrpc:`2.0`,...t});if((this._options?.debouncedNotificationMethods??[]).includes(t.method)&&!t.params&&!n?.relatedRequestId){if(this._pendingDebouncedNotifications.has(t.method))return;this._pendingDebouncedNotifications.add(t.method),Promise.resolve().then(()=>{this._pendingDebouncedNotifications.delete(t.method),this._transport&&this._transport?.send(r,n).catch(e=>this._onerror(e))});return}await this._transport.send(r,n)}setRequestHandler(e,t,n){this.assertRequestHandlerCapability(e);let r;if(typeof t==`function`){if(!Sh(e))throw TypeError(`'${e}' is not a spec request method; pass schemas as the second argument to setRequestHandler().`);r=(n,r)=>{let i=this._negotiatedWireCodec(),a=i.validateRequest(e,n);if(!a.ok&&a.reason===`not-in-era`&&(a=i.validateInputRequest(e,n)),!a.ok)throw a.reason===`not-in-era`?new X(Y.InternalError,`No wire schema for ${e} in the resolved era`):Error(a.message);return Promise.resolve(t(a.value,r))}}else if(n)r=async(r,i)=>{let a=await Rh(t.params,{...r.params});if(!a.success)throw new X(Y.InvalidParams,`Invalid params for ${e}: ${a.error}`);return n(a.data,i)};else throw TypeError(`setRequestHandler: handler is required`);this._requestHandlers.set(e,this._wrapHandler(e,r))}_wrapHandler(e,t){return t}_outboundServerInfo(){}removeRequestHandler(e){this._requestHandlers.delete(e)}assertCanSetRequestHandler(e){if(this._requestHandlers.has(e))throw Error(`A request handler for ${e} already exists, which would be overridden`)}setNotificationHandler(e,t,n){if(typeof t==`function`){if(!Ch(e))throw TypeError(`'${e}' is not a spec notification method; pass schemas as the second argument to setNotificationHandler().`);this._notificationHandlers.set(e,(n,r)=>{let i=r.validateNotification(e,n);if(!i.ok)throw i.reason===`not-in-era`?new X(Y.InternalError,`No wire schema for ${e} in the resolved era`):Error(i.message);return Promise.resolve(t(i.value))});return}if(!n)throw TypeError(`setNotificationHandler: handler is required`);this._notificationHandlers.set(e,async r=>{let i=await Rh(t.params,{...r.params});if(!i.success)throw new X(Y.InvalidParams,`Invalid params for notification ${e}: ${i.error}`);await n(i.data,r)})}removeNotificationHandler(e){this._notificationHandlers.delete(e)}};function gg(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function _g(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function vg(e){let t={},n=[];if(!_g(e))return{accepted:t,droppedKeys:n};for(let[r,i]of Object.entries(e)){if(!_g(i)||`method`in i||`result`in i){n.push(r);continue}t[r]=i}return{accepted:t,droppedKeys:n}}function yg(e){return{resultType:`input_required`,inputRequests:e.inputRequests,...e.requestState!==void 0&&{requestState:e.requestState}}}r((e=>{var t=/; *([!#$%&'*+.^_`|~0-9A-Za-z-]+) *= *("(?:[\u000b\u0020\u0021\u0023-\u005b\u005d-\u007e\u0080-\u00ff]|\\[\u000b\u0020-\u00ff])*"|[!#$%&'*+.^_`|~0-9A-Za-z-]+) */g,n=/\\([\u000b\u0020-\u00ff])/g,r=/^[!#$%&'*+.^_`|~0-9A-Za-z-]+\/[!#$%&'*+.^_`|~0-9A-Za-z-]+$/;e.parse=i;function i(e){if(!e)throw TypeError(`argument string is required`);var i=typeof e==`object`?a(e):e;if(typeof i!=`string`)throw TypeError(`argument string is required to be a string`);var s=i.indexOf(`;`),c=s===-1?i.trim():i.slice(0,s).trim();if(!r.test(c))throw TypeError(`invalid media type`);var l=new o(c.toLowerCase());if(s!==-1){var u,d,f;for(t.lastIndex=s;d=t.exec(i);){if(d.index!==s)throw TypeError(`invalid parameter format`);s+=d[0].length,u=d[1].toLowerCase(),f=d[2],f.charCodeAt(0)===34&&(f=f.slice(1,-1),f.indexOf(`\\`)!==-1&&(f=f.replace(n,`$1`))),l.parameters[u]=f}if(s!==i.length)throw TypeError(`invalid parameter format`)}return l}function a(e){var t;if(typeof e.getHeader==`function`?t=e.getHeader(`content-type`):typeof e.headers==`object`&&(t=e.headers&&e.headers[`content-type`]),typeof t!=`string`)throw TypeError(`content-type header is missing from object`);return t}function o(e){this.parameters=Object.create(null),this.type=e}}))(),typeof self<`u`&&self.location&&self.location.origin!==`null`?new URL(self.location.origin+self.location.pathname+location.search):new URL(`https://github.com/cfworker`);var bg=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i,xg=/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,Sg=/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,Cg=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,wg=/^(?:(?:https?|ftp):\/\/)(?:\S+(?::\S*)?@)?(?:(?!10(?:\.\d{1,3}){3})(?!127(?:\.\d{1,3}){3})(?!169\.254(?:\.\d{1,3}){2})(?!192\.168(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z\u{00a1}-\u{ffff}0-9]+-?)*[a-z\u{00a1}-\u{ffff}0-9]+)(?:\.(?:[a-z\u{00a1}-\u{ffff}0-9]+-?)*[a-z\u{00a1}-\u{ffff}0-9]+)*(?:\.(?:[a-z\u{00a1}-\u{ffff}]{2,})))(?::\d{2,5})?(?:\/[^\s]*)?$/iu,Tg=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,Eg=/^(?:\/(?:[^~/]|~0|~1)*)*$/,Dg=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,Og=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,kg=/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,Ag=/^((([0-9a-f]{1,4}:){7}([0-9a-f]{1,4}|:))|(([0-9a-f]{1,4}:){6}(:[0-9a-f]{1,4}|((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){5}(((:[0-9a-f]{1,4}){1,2})|:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(([0-9a-f]{1,4}:){4}(((:[0-9a-f]{1,4}){1,3})|((:[0-9a-f]{1,4})?:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){3}(((:[0-9a-f]{1,4}){1,4})|((:[0-9a-f]{1,4}){0,2}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){2}(((:[0-9a-f]{1,4}){1,5})|((:[0-9a-f]{1,4}){0,3}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(([0-9a-f]{1,4}:){1}(((:[0-9a-f]{1,4}){1,6})|((:[0-9a-f]{1,4}){0,4}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(:(((:[0-9a-f]{1,4}){1,7})|((:[0-9a-f]{1,4}){0,5}:((25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(\.(25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))$/i;function jg(e){return e.test.bind(e)}Mg.bind(void 0,!1),jg(Sg),jg(Cg),jg(wg),jg(xg),jg(kg),jg(Ag),jg(Tg),jg(Eg),jg(Dg),jg(Og);function Mg(e,t){let n=t.match(bg);if(!n)return!1;let r=+n[1],i=+n[2],a=+n[3],o=!!n[5];return(r<=23&&i<=59&&a<=59||r==23&&i==59&&a==60)&&(!e||o)}globalThis.crypto;var Ng=class extends Error{static{Object.defineProperty(this,"mcpBrand",{value:`mcp.OAuthClientFlowError`})}static[Symbol.hasInstance](e){return Zp(this,e)}static isInstance(e){if(typeof this!=`function`)throw TypeError("isInstance must be called on the class (e.g. `SdkError.isInstance(value)`); for callbacks use `v => SdkError.isInstance(v)`");return Zp(this,e)}constructor(e){super(e),this.name=new.target.name,Xp(this,new.target)}};(class extends Ng{static{Object.defineProperty(this,"mcpBrand",{value:`mcp.IssuerMismatchError`})}kind;expected;received;constructor(e,t,n){super(`Issuer mismatch in ${e===`metadata`?`authorization server metadata (RFC 8414 §3.3)`:`authorization response (RFC 9207)`}: expected ${JSON.stringify(t)}, received ${JSON.stringify(n)}`),this.kind=e,this.expected=t,this.received=n}}),class extends Ng{static{Object.defineProperty(this,"mcpBrand",{value:`mcp.RegistrationRejectedError`})}status;body;submittedMetadata;constructor(e){super(`Dynamic Client Registration rejected (HTTP ${e.status}): ${e.body}`),this.status=e.status,this.body=e.body,this.submittedMetadata=e.submittedMetadata}},class extends Ng{static{Object.defineProperty(this,"mcpBrand",{value:`mcp.InsecureTokenEndpointError`})}tokenEndpoint;constructor(e){super(`Refusing to send credentials to non-https token endpoint '${e}'. OAuth token requests MUST use TLS (localhost / 127.0.0.1 / ::1 are exempt).`),this.tokenEndpoint=e}},class extends Ng{static{Object.defineProperty(this,"mcpBrand",{value:`mcp.AuthorizationServerMismatchError`})}constructor(e,t){super(`Authorization server changed between redirect and callback (redirected to ${JSON.stringify(e)}, callback resolved ${JSON.stringify(t)}); refusing to send authorization_code/code_verifier to a different token endpoint`),this.recordedIssuer=e,this.currentIssuer=t}},class extends Ng{static{Object.defineProperty(this,"mcpBrand",{value:`mcp.InsufficientScopeError`})}requiredScope;resourceMetadataUrl;errorDescription;constructor(e){super(`Insufficient scope${e.requiredScope?`: required "${e.requiredScope}"`:``}`),this.requiredScope=e.requiredScope,this.resourceMetadataUrl=e.resourceMetadataUrl,this.errorDescription=e.errorDescription}},class extends Error{static{Object.defineProperty(this,"mcpBrand",{value:`mcp.UnauthorizedError`})}static[Symbol.hasInstance](e){return Zp(this,e)}static isInstance(e){if(typeof this!=`function`)throw TypeError("isInstance must be called on the class (e.g. `SdkError.isInstance(value)`); for callbacks use `v => SdkError.isInstance(v)`");return Zp(this,e)}constructor(e){super(e??`Unauthorized`),this.name=`UnauthorizedError`,Xp(this,new.target)}},class extends Error{static{Object.defineProperty(this,"mcpBrand",{value:`mcp.SseError`})}static[Symbol.hasInstance](e){return Zp(this,e)}static isInstance(e){if(typeof this!=`function`)throw TypeError("isInstance must be called on the class (e.g. `SdkError.isInstance(value)`); for callbacks use `v => SdkError.isInstance(v)`");return Zp(this,e)}constructor(e,t,n){super(`SSE error: ${t}`),this.code=e,this.event=n,Xp(this,new.target)}};var Pg=`2026-01-26`,Fg=N({}).passthrough(),Ig=N({arguments:I(D(),j()).optional()}).passthrough(),Lg=N({reason:D().optional()}).passthrough(),Rg=N({theme:L([`light`,`dark`]).optional(),displayMode:L([`inline`,`fullscreen`,`pip`]).optional(),availableDisplayModes:M(L([`inline`,`fullscreen`,`pip`])).optional(),styles:N({variables:I(D(),F([D(),Vc()])).optional(),css:N({fonts:D().optional()}).passthrough().optional()}).passthrough().optional(),safeAreaInsets:N({top:k(),right:k(),bottom:k(),left:k()}).optional()}).passthrough(),zg=N({protocolVersion:D(),hostInfo:N({name:D(),version:D()}).passthrough(),hostCapabilities:I(D(),j()),hostContext:Rg}).passthrough(),Bg=N({mode:L([`inline`,`fullscreen`,`pip`])}).passthrough(),Vg=N({}).passthrough(),Hg=class{eventTarget;eventSource;onclose;onerror;onmessage;sessionId;setProtocolVersion;setSupportedProtocolVersions;started=!1;messageListener=e=>{if(e.source!==this.eventSource)return;let t=Yu.safeParse(e.data);if(t.success){this.onmessage?.(t.data);return}e.data?.jsonrpc===`2.0`&&this.onerror?.(Error(`Invalid JSON-RPC message received from the MCP App host.`))};constructor(e=window.parent,t=window.parent){this.eventTarget=e,this.eventSource=t}async start(){if(this.started)throw Error(`PostMessageTransport is already started.`);this.started=!0,window.addEventListener(`message`,this.messageListener)}async send(e,t){this.eventTarget.postMessage(e,`*`)}async close(){this.started&&(this.started=!1,window.removeEventListener(`message`,this.messageListener),this.onclose?.())}},Ug=class extends hg{appInfo;capabilities;ontoolinput;ontoolresult;ontoolcancelled;onhostcontextchanged;onteardown;hostContext;hostCapabilities;resizeObserver;resizeFrame;lastWidth=0;lastHeight=0;constructor(e,t={}){super(),this.appInfo=e,this.capabilities=t,this.setRequestHandler(`ping`,{params:Fg,result:Vg},()=>({})),this.setNotificationHandler(`ui/notifications/tool-input`,{params:Ig},e=>this.ontoolinput?.(e)),this.setNotificationHandler(`ui/notifications/tool-result`,{params:bf},e=>this.ontoolresult?.(e)),this.setNotificationHandler(`ui/notifications/tool-cancelled`,{params:Lg},e=>this.ontoolcancelled?.(e)),this.setNotificationHandler(`ui/notifications/host-context-changed`,{params:Rg},e=>{this.hostContext={...this.hostContext,...e},this.onhostcontextchanged?.(e)}),this.setRequestHandler(`ui/resource-teardown`,{params:Fg,result:Vg},(e,t)=>this.onteardown?.(e,t)??{})}buildContext(e){return e}assertCapabilityForMethod(e){}assertNotificationCapability(e){}assertRequestHandlerCapability(e){}getHostContext(){return this.hostContext}getHostCapabilities(){return this.hostCapabilities}async callServerTool(e,t){return this.request({method:`tools/call`,params:e},bf,{onprogress:()=>{},resetTimeoutOnProgress:!0,...t})}async requestDisplayMode(e,t){return this.request({method:`ui/request-display-mode`,params:e},Bg,t)}async connect(e=new Hg,t){await super.connect(e);try{let e=await this.request({method:`ui/initialize`,params:{appCapabilities:this.capabilities,appInfo:this.appInfo,protocolVersion:Pg}},zg,t);this.hostCapabilities=e.hostCapabilities,this.hostContext=e.hostContext,await this.notification({method:`ui/notifications/initialized`}),this.startAutoResize()}catch(e){try{await this.close()}catch(t){throw AggregateError([e,t],`MCP App initialization and cleanup failed.`)}throw e}}async close(){this.resizeObserver?.disconnect(),this.resizeObserver=void 0,this.resizeFrame!==void 0&&cancelAnimationFrame(this.resizeFrame),this.resizeFrame=void 0,this.lastWidth=0,this.lastHeight=0,await super.close()}startAutoResize(){if(typeof ResizeObserver>`u`)return;let e=()=>{this.resizeFrame===void 0&&(this.resizeFrame=requestAnimationFrame(()=>{this.resizeFrame=void 0;let e=document.documentElement,t=e.style.height;e.style.height=`max-content`;let n=Math.ceil(window.innerWidth),r=Math.ceil(e.getBoundingClientRect().height);e.style.height=t,!(n===this.lastWidth&&r===this.lastHeight)&&(this.lastWidth=n,this.lastHeight=r,this.notification({method:`ui/notifications/size-changed`,params:{width:n,height:r}}).catch(e=>{this.onerror?.(e instanceof Error?e:Error(String(e)))}))}))};this.resizeObserver=new ResizeObserver(e),this.resizeObserver.observe(document.documentElement),this.resizeObserver.observe(document.body),e()}};function Wg(e){document.documentElement.dataset.theme=e,document.documentElement.style.colorScheme=e}function Gg(e,t=document.documentElement){for(let[n,r]of Object.entries(e))n.startsWith(`--`)&&r!==void 0&&t.style.setProperty(n,r)}function Kg(e){if(document.getElementById(`__mcp-host-fonts`))return;let t=document.createElement(`style`);t.id=`__mcp-host-fonts`,t.textContent=e,document.head.appendChild(t)}var qg={name:`qyl-mcp-server`,version:`1.1.3`,type:`module`,description:`qyl telemetry MCP Apps server: trace explorer and MCP dashboard for a live collector or explicit demo mode`,repository:{type:`git`,url:`https://github.com/ANcpLua/qyl.mcp`,directory:`server`},license:`MIT`,main:`dist/server.js`,types:`dist/server.d.ts`,exports:{".":{types:`./dist/server.d.ts`,default:`./dist/server.js`},"./contract-validation":{types:`./dist/contract-validation.d.ts`,default:`./dist/contract-validation.js`},"./secret-redactor":{types:`./dist/secret-redactor.d.ts`,default:`./dist/secret-redactor.js`},"./atomic-json-store":{types:`./dist/atomic-json-store.d.ts`,default:`./dist/atomic-json-store.js`},"./execution-evidence":{types:`./dist/execution-evidence.d.ts`,default:`./dist/execution-evidence.js`},"./execution-result":{types:`./dist/execution-result.d.ts`,default:`./dist/execution-result.js`},"./mcp-semconv":{types:`./dist/mcp-semconv.d.ts`,default:`./dist/mcp-semconv.js`},"./observability-suppression":{types:`./dist/observability-suppression.d.ts`,default:`./dist/observability-suppression.js`},"./telemetry":{types:`./dist/telemetry.d.ts`,default:`./dist/telemetry.js`}},bin:{"qyl-mcp-server":`dist/main.js`},files:[`dist`],scripts:{clean:`node -e "require('node:fs').rmSync('dist', { recursive: true, force: true }); require('node:fs').rmSync('dist-test', { recursive: true, force: true })"`,build:`npm run clean && tsc --noEmit && vite build --mode mcp-home && vite build --mode mcp-app && vite build --mode mcp-dashboard && vite build --mode observe-graph && tsc -p tsconfig.server.json && node -e "require('node:fs').chmodSync('dist/main.js', 0o755)"`,"verify:shapes":`node verify-generated-shapes.mjs`,"verify:readme":`node verify-package-readme.mjs`,"snapshot:tools":`npm run build && tsc -p tsconfig.test.json && node update-tool-manifest-snapshot.mjs`,test:`npm run verify:shapes && npm run verify:readme && npm run build && tsc -p tsconfig.test.json && node -e "const fs=require('node:fs'); for (const name of ['mcp-app.html','mcp-dashboard.html','observe-graph.html']) fs.copyFileSync('dist/'+name,'dist-test/'+name)" && node --test dist-test/*.test.js`,smoke:`node smoke-test.mjs`,prepack:`npm run build`},dependencies:{"@ancplua/qyl-api-schema":`6.0.0`,"@modelcontextprotocol/core":`2.0.0`,"@modelcontextprotocol/server":`2.0.0`,"@opentelemetry/api":`^1.9.1`,"@opentelemetry/api-logs":`^0.221.0`,"@opentelemetry/core":`^2.10.0`,"@opentelemetry/exporter-logs-otlp-proto":`^0.221.0`,"@opentelemetry/exporter-metrics-otlp-proto":`^0.221.0`,"@opentelemetry/exporter-trace-otlp-proto":`^0.221.0`,"@opentelemetry/resources":`^2.10.0`,"@opentelemetry/sdk-logs":`^0.221.0`,"@opentelemetry/sdk-metrics":`^2.10.0`,"@opentelemetry/sdk-trace-base":`^2.10.0`,"@opentelemetry/sdk-trace-node":`^2.10.0`,"@opentelemetry/semantic-conventions":`^1.43.0`,jose:`^6.2.3`,zod:`^4.4.3`},devDependencies:{"@modelcontextprotocol/client":`2.0.0`,"@types/node":`26.1.1`,typescript:`7.0.2`,vite:`8.1.5`,"vite-plugin-singlefile":`2.3.3`},engines:{node:`24.x`}},Jg={$schema:`https://json-schema.org/draft/2020-12/schema`,$id:`https://qyl.dev/schema/qyl-api-schema.json`,$defs:JSON.parse(`{"Common.Attribute":{"type":"object","required":["key","value"],"properties":{"key":{"type":"string","minLength":1,"maxLength":256,"description":"Attribute key (dot-separated namespace)"},"value":{"$ref":"#/$defs/Common.AttributeValue","description":"Attribute value"}},"unevaluatedProperties":{"not":{}},"description":"Key-value attribute pair following OTel conventions"},"Common.AttributeBytesValue":{"type":"object","required":["type","base64"],"properties":{"type":{"type":"string","enum":["bytes"]},"base64":{"type":"string","contentEncoding":"base64"}},"unevaluatedProperties":{"not":{}},"description":"Base64 bytes projected by qyl without colliding with an ordinary string attribute."},"Common.AttributeDouble":{"anyOf":[{"type":"number","format":"double"},{"type":"string","enum":["NaN","Infinity","-Infinity"]}],"description":"An OTLP attribute double encoded as a JSON number when finite or a canonical named string when non-finite."},"Common.AttributeDoubleValue":{"type":"object","required":["type","value"],"properties":{"type":{"type":"string","enum":["double"]},"value":{"$ref":"#/$defs/Common.AttributeDouble"}},"unevaluatedProperties":{"not":{}},"description":"Tagged OTLP double attribute."},"Common.AttributeInt64":{"type":"string","format":"int64","description":"An OTLP signed 64-bit attribute integer encoded without JavaScript precision loss.","x-csharp-type":"long","pattern":"^(0|-?[1-9][0-9]*)$","maxLength":20},"Common.AttributeIntValue":{"type":"object","required":["type","value"],"properties":{"type":{"type":"string","enum":["int"]},"value":{"$ref":"#/$defs/Common.AttributeInt64"}},"unevaluatedProperties":{"not":{}},"description":"Tagged OTLP signed 64-bit integer attribute."},"Common.AttributeKeyValueListValue":{"type":"object","required":["type","values"],"properties":{"type":{"type":"string","enum":["kvlist"]},"values":{"type":"object","unevaluatedProperties":{"$ref":"#/$defs/Common.AttributeValue"}}},"unevaluatedProperties":{"not":{}},"description":"Tagged recursive OTLP key-value-list, distinct from other object-shaped attribute variants."},"Common.AttributeValue":{"anyOf":[{"type":"null"},{"type":"string"},{"type":"boolean"},{"$ref":"#/$defs/Common.AttributeIntValue"},{"$ref":"#/$defs/Common.AttributeDoubleValue"},{"$ref":"#/$defs/Common.AttributeBytesValue"},{"type":"array","items":{"$ref":"#/$defs/Common.AttributeValue"}},{"$ref":"#/$defs/Common.AttributeKeyValueListValue"}],"description":"Lossless JSON projection of an OpenTelemetry AnyValue attribute."},"Common.Attributes":{"type":"object","required":["items"],"properties":{"items":{"type":"array","items":{"$ref":"#/$defs/Common.Attribute"},"description":"List of key-value attributes"}},"unevaluatedProperties":{"not":{}},"description":"Collection of attributes"},"Common.ByteSize":{"type":"integer","format":"int64","minimum":0,"description":"Size in bytes","x-csharp-type":"long"},"Common.ContentType":{"type":"string","description":"MIME content type","examples":["application/json"]},"Common.ContractRevision":{"type":"string","minLength":23,"maxLength":23,"pattern":"^sha256:[a-f0-9]{16}$","description":"Deterministic revision of the generated API contract: 'sha256:' followed by the first 16 hex characters of its canonical semantic digest.","examples":["sha256:0f1e2d3c4b5a6978"]},"Common.CostUsd":{"type":"number","format":"double","minimum":0,"description":"Cost in USD (floating point)","x-csharp-type":"double"},"Common.Count":{"type":"integer","format":"int64","minimum":0,"description":"Generic non-negative counter","x-csharp-type":"long"},"Common.DurationMs":{"type":"number","format":"double","minimum":0,"description":"Duration in milliseconds","x-csharp-type":"double"},"Common.DurationNs":{"type":"string","format":"uint64","description":"Duration in nanoseconds, encoded as a decimal string","x-csharp-type":"ulong","pattern":"^(0|[1-9][0-9]*)$","maxLength":20},"Common.DurationS":{"type":"number","format":"double","minimum":0,"description":"Duration in seconds"},"Common.EntityAttributeKey":{"type":"string","minLength":1,"description":"A non-empty Resource attribute key referenced by an OpenTelemetry entity."},"Common.EntityRef":{"type":"object","required":["type","id_keys"],"properties":{"schema_url":{"type":"string","description":"Schema URL applying to the entity and its referenced Resource attributes, when known."},"type":{"type":"string","minLength":1,"description":"Stable non-empty entity type, such as service or host."},"id_keys":{"type":"array","items":{"$ref":"#/$defs/Common.EntityAttributeKey"},"minItems":1,"description":"Non-empty set of Resource attribute keys that identify the entity."},"description_keys":{"type":"array","items":{"$ref":"#/$defs/Common.EntityAttributeKey"},"description":"Resource attribute keys that describe but do not identify the entity."}},"unevaluatedProperties":{"not":{}},"description":"A reference to an OpenTelemetry entity described by attributes on the containing Resource."},"Common.Errors.ApiError":{"anyOf":[{"$ref":"#/$defs/Common.Errors.NotFoundError"},{"$ref":"#/$defs/Common.Errors.ValidationError"},{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},{"$ref":"#/$defs/Common.Errors.ForbiddenError"},{"$ref":"#/$defs/Common.Errors.ConflictError"},{"$ref":"#/$defs/Common.Errors.RateLimitError"},{"$ref":"#/$defs/Common.Errors.InternalServerError"},{"$ref":"#/$defs/Common.Errors.BadGatewayError"},{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"}],"description":"Standard error response types"},"Common.Errors.BadGatewayError":{"type":"object","required":["title"],"properties":{"title":{"type":"string","enum":["Bad Gateway"]},"dependency":{"type":"string","description":"Stable dependency category; never contains raw exception text"}},"unevaluatedProperties":{"not":{}},"allOf":[{"$ref":"#/$defs/Common.Errors.ProblemDetails"}],"description":"Upstream dependency failed while fulfilling the request (502)"},"Common.Errors.ConflictError":{"type":"object","required":["title"],"properties":{"title":{"type":"string","enum":["Conflict"]},"conflicting_resource":{"type":"string","description":"The conflicting resource ID"}},"unevaluatedProperties":{"not":{}},"allOf":[{"$ref":"#/$defs/Common.Errors.ProblemDetails"}],"description":"Conflict - resource state conflict (409)"},"Common.Errors.ForbiddenError":{"type":"object","required":["title"],"properties":{"title":{"type":"string","enum":["Forbidden"]},"required_permission":{"type":"string","description":"Required permission that is missing"}},"unevaluatedProperties":{"not":{}},"allOf":[{"$ref":"#/$defs/Common.Errors.ProblemDetails"}],"description":"Forbidden - insufficient permissions (403)"},"Common.Errors.InternalServerError":{"type":"object","required":["title"],"properties":{"title":{"type":"string","enum":["Internal Server Error"]},"error_code":{"type":"string","description":"Error code for support reference"}},"unevaluatedProperties":{"not":{}},"allOf":[{"$ref":"#/$defs/Common.Errors.ProblemDetails"}],"description":"Internal server error (500)"},"Common.Errors.NotFoundError":{"type":"object","required":["title"],"properties":{"title":{"type":"string","enum":["Not Found"]},"resource_type":{"type":"string","description":"The type of resource that was not found"},"resource_id":{"type":"string","description":"The identifier that was not found"}},"unevaluatedProperties":{"not":{}},"allOf":[{"$ref":"#/$defs/Common.Errors.ProblemDetails"}],"description":"Resource not found (404)"},"Common.Errors.ProblemDetails":{"type":"object","required":["type","title","status"],"properties":{"type":{"type":"string","format":"uri","description":"A URI reference identifying the problem type","default":"about:blank"},"title":{"type":"string","description":"A short, human-readable summary of the problem type"},"status":{"type":"integer","format":"int32","description":"The HTTP status code (informational only, actual code set by subtype)"},"detail":{"type":"string","description":"A human-readable explanation specific to this occurrence"},"instance":{"type":"string","format":"uri","description":"A URI reference identifying the specific occurrence"},"timestamp":{"type":"string","format":"date-time","description":"Timestamp of the error"}},"description":"RFC 7807 Problem Details for HTTP APIs"},"Common.Errors.RateLimitError":{"type":"object","required":["title"],"properties":{"title":{"type":"string","enum":["Too Many Requests"]}},"unevaluatedProperties":{"not":{}},"allOf":[{"$ref":"#/$defs/Common.Errors.ProblemDetails"}],"description":"Rate limited - too many requests (429)"},"Common.Errors.ServiceUnavailableError":{"type":"object","required":["title"],"properties":{"title":{"type":"string","enum":["Service Unavailable"]},"reason":{"type":"string","enum":["maintenance","overloaded","dependency_failure"],"description":"Reason for unavailability"}},"unevaluatedProperties":{"not":{}},"allOf":[{"$ref":"#/$defs/Common.Errors.ProblemDetails"}],"description":"Service unavailable (503)"},"Common.Errors.UnauthorizedError":{"type":"object","required":["title"],"properties":{"title":{"type":"string","enum":["Unauthorized"]}},"unevaluatedProperties":{"not":{}},"allOf":[{"$ref":"#/$defs/Common.Errors.ProblemDetails"}],"description":"Unauthorized - authentication required (401)"},"Common.Errors.ValidationError":{"type":"object","required":["title","errors"],"properties":{"title":{"type":"string","enum":["Validation Failed"]},"errors":{"type":"array","items":{"$ref":"#/$defs/Common.Errors.ValidationErrorDetail"},"description":"List of validation errors"}},"unevaluatedProperties":{"not":{}},"allOf":[{"$ref":"#/$defs/Common.Errors.ProblemDetails"}],"description":"Bad request - validation failed (400)"},"Common.Errors.ValidationErrorDetail":{"type":"object","required":["field","message","code"],"properties":{"field":{"type":"string","description":"The field/property that failed validation"},"message":{"type":"string","description":"The error message"},"code":{"type":"string","description":"The validation rule that failed"},"rejected_value":{"type":"string","description":"The rejected value (if safe to include)"}},"unevaluatedProperties":{"not":{}},"description":"Individual validation error detail"},"Common.HttpMethod":{"type":"string","description":"HTTP method name (uppercase)","examples":["GET"]},"Common.IPv4Address":{"type":"string","pattern":"^(?:(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\\\.){3}(?:25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)$","description":"IPv4 address in dotted-decimal notation","examples":["192.168.1.1"]},"Common.IPv6Address":{"type":"string","description":"IPv6 address in standard notation","examples":["2001:0db8:85a3:0000:0000:8a2e:0370:7334"]},"Common.InstrumentationScope":{"type":"object","required":["name"],"properties":{"name":{"type":"string","description":"Name of the instrumentation scope (library name)"},"version":{"$ref":"#/$defs/Common.SemVer","description":"Version of the instrumentation scope"},"attributes":{"type":"array","items":{"$ref":"#/$defs/Common.Attribute"},"description":"Additional attributes for the scope"},"dropped_attributes_count":{"$ref":"#/$defs/Common.Count","description":"Dropped attributes count"}},"unevaluatedProperties":{"not":{}},"description":"Instrumentation scope identifying the library/component emitting telemetry"},"Common.IpAddress":{"type":"string","description":"IP address (IPv4 or IPv6)"},"Common.IsoDuration":{"type":"string","format":"duration","description":"ISO 8601 duration format (e.g., PT1H30M)"},"Common.LanguageCode":{"type":"string","pattern":"^[a-z]{2,3}(-[A-Z]{2})?$","description":"Language/locale code (BCP 47)","examples":["en-US"]},"Common.MacAddress":{"type":"string","pattern":"^([0-9A-Fa-f]{2}:){5}[0-9A-Fa-f]{2}$","description":"MAC address in colon-separated hex notation","examples":["00:1A:2B:3C:4D:5E"]},"Common.Pagination.AggregationParams":{"type":"object","properties":{"bucket":{"$ref":"#/$defs/Common.Pagination.TimeBucket","description":"Time bucket size","default":"auto"},"group_by":{"type":"array","items":{"type":"string"},"description":"Group by these dimensions"},"filter":{"type":"string","description":"Filter expression"}},"unevaluatedProperties":{"not":{}},"description":"Aggregation query parameters"},"Common.Pagination.CursorPaginationParams":{"type":"object","properties":{"cursor":{"type":"string","description":"Opaque cursor for fetching the next page"},"limit":{"type":"integer","format":"int32","minimum":1,"maximum":1000,"description":"Maximum number of items to return (1-1000)","default":100},"order":{"$ref":"#/$defs/Common.Pagination.SortOrder","description":"Sort direction","default":"desc"}},"unevaluatedProperties":{"not":{}},"description":"Cursor-based pagination parameters"},"Common.Pagination.OffsetPaginationParams":{"type":"object","properties":{"page":{"type":"integer","format":"int32","minimum":1,"description":"Page number (1-indexed)","default":1},"page_size":{"type":"integer","format":"int32","minimum":1,"maximum":1000,"description":"Items per page (1-1000)","default":100}},"unevaluatedProperties":{"not":{}},"description":"Offset-based pagination parameters"},"Common.Pagination.SortOrder":{"type":"string","enum":["asc","desc"],"description":"Sort order"},"Common.Pagination.StreamParams":{"type":"object","properties":{"since":{"type":"string","format":"date-time","description":"Include historical data from this timestamp"},"trace_id":{"$ref":"#/$defs/Common.TraceId","description":"Filter by trace ID"},"service_name":{"type":"string","description":"Filter by service name"},"max_events_per_second":{"type":"integer","format":"int32","minimum":1,"maximum":1000,"description":"Maximum events per second (rate limiting)","default":100}},"unevaluatedProperties":{"not":{}},"description":"Streaming parameters for SSE endpoints"},"Common.Pagination.TimeBucket":{"type":"string","enum":["1m","5m","15m","1h","1d","1w","auto"],"description":"Time bucket size for aggregations"},"Common.Pagination.TimeRangeParams":{"type":"object","properties":{"start_time":{"type":"string","format":"date-time","description":"Start of time range (inclusive)"},"end_time":{"type":"string","format":"date-time","description":"End of time range (exclusive)"},"limit":{"type":"integer","format":"int32","minimum":1,"maximum":10000,"description":"Maximum number of items to return","default":1000}},"unevaluatedProperties":{"not":{}},"description":"Time-range based query parameters"},"Common.Percentage":{"type":"number","format":"double","minimum":0,"maximum":100,"description":"Percentage value (0.0 to 100.0)","x-csharp-type":"double"},"Common.Port":{"type":"integer","format":"int32","minimum":1,"maximum":65535,"description":"Network port number (1-65535)","x-csharp-type":"int"},"Common.Ratio":{"type":"number","format":"double","minimum":0,"maximum":1,"description":"Ratio value (0.0 to 1.0)","x-csharp-type":"double"},"Common.SemVer":{"type":"string","pattern":"^(0|[1-9]\\\\d*)\\\\.(0|[1-9]\\\\d*)\\\\.(0|[1-9]\\\\d*)(?:-((?:0|[1-9]\\\\d*|\\\\d*[a-zA-Z-][0-9a-zA-Z-]*)(?:\\\\.(?:0|[1-9]\\\\d*|\\\\d*[a-zA-Z-][0-9a-zA-Z-]*))*))?(?:\\\\+([0-9a-zA-Z-]+(?:\\\\.[0-9a-zA-Z-]+)*))?$","description":"Semantic version string (e.g., 1.2.3)","examples":["2.1.0"]},"Common.SessionId":{"type":"string","minLength":1,"maxLength":128,"description":"Unique session identifier","x-csharp-type":"SessionId","x-csharp-struct":true},"Common.Sha256Hash":{"type":"string","minLength":64,"maxLength":64,"pattern":"^[a-f0-9]{64}$","description":"SHA-256 hash in lowercase hex"},"Common.SpanId":{"type":"string","minLength":16,"maxLength":16,"pattern":"^[a-f0-9]{16}$","description":"Unique span identifier (16 lowercase hex characters)","examples":["b7ad6b7169203331"],"x-csharp-type":"SpanId","x-csharp-struct":true},"Common.Temperature":{"type":"number","format":"double","minimum":0,"maximum":2,"description":"Temperature setting for LLM requests (0.0-2.0)","x-csharp-type":"double"},"Common.Timestamp":{"type":"string","format":"date-time","description":"ISO 8601 timestamp with nanosecond precision (RFC 3339)"},"Common.TokenCount":{"type":"integer","format":"int64","minimum":0,"description":"Token count (for LLM operations)","x-csharp-type":"long"},"Common.TraceId":{"type":"string","minLength":32,"maxLength":32,"pattern":"^[a-f0-9]{32}$","description":"Unique trace identifier (32 lowercase hex characters)","examples":["0af7651916cd43dd8448eb211c80319c"],"x-csharp-type":"TraceId","x-csharp-struct":true},"Common.TraceParent":{"type":"string","pattern":"^[0-9a-f]{2}-[0-9a-f]{32}-[0-9a-f]{16}-[0-9a-f]{2}$","description":"W3C Trace Context traceparent header format","examples":["00-0af7651916cd43dd8448eb211c80319c-b7ad6b7169203331-01"]},"Common.TraceState":{"type":"string","description":"W3C Trace Context tracestate header (vendor-specific key-value pairs)","examples":["rojo=00f067aa0ba902b7,congo=t61rcWkgMzE"]},"Common.UnixNanos":{"type":"string","format":"uint64","description":"Unsigned Unix timestamp in nanoseconds since epoch, encoded as a decimal string","x-csharp-type":"ulong","pattern":"^(0|[1-9][0-9]*)$","maxLength":20},"Common.UrlPath":{"type":"string","description":"URL path component","examples":["/api/v1/users"]},"Common.UrlQuery":{"type":"string","description":"URL query string (without leading ?)","examples":["page=1&limit=100"]},"Common.UrlString":{"type":"string","format":"uri","description":"URL string (absolute)"},"Common.UserAgent":{"type":"string","description":"User agent string","examples":["Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36"]},"Common.UserId":{"type":"string","minLength":1,"maxLength":256,"description":"User identifier (pseudonymized for privacy)"},"Domains.Observe.Session.DeviceType":{"type":"string","enum":["desktop","mobile","tablet","tv","console","wearable","iot","bot","unknown"],"description":"Device types"},"Domains.Observe.Session.SessionAttributes":{"type":"object","required":["session_id"],"properties":{"session_id":{"$ref":"#/$defs/Common.SessionId","description":"Session ID"},"previous_session_id":{"$ref":"#/$defs/Common.SessionId","description":"Previous session ID (for session continuity)"}},"unevaluatedProperties":{"not":{}},"description":"Session span/event attributes"},"Domains.Observe.Session.SessionClientInfo":{"type":"object","properties":{"ip":{"$ref":"#/$defs/Common.IpAddress","description":"Client IP address"},"user_agent":{"$ref":"#/$defs/Common.UserAgent","description":"User agent string"},"device_type":{"$ref":"#/$defs/Domains.Observe.Session.DeviceType","description":"Device type"},"os":{"type":"string","description":"Operating system"},"browser":{"type":"string","description":"Browser name"},"browser_version":{"type":"string","description":"Browser version"}},"unevaluatedProperties":{"not":{}},"description":"Session client information"},"Domains.Observe.Session.SessionEntity":{"type":"object","required":["session_id","start_time","trace_count","span_count","error_count","services","state"],"properties":{"session_id":{"$ref":"#/$defs/Common.SessionId","description":"Session ID"},"user_id":{"$ref":"#/$defs/Common.UserId","description":"User ID (if authenticated)"},"start_time":{"type":"string","format":"date-time","description":"Session start time"},"end_time":{"type":"string","format":"date-time","description":"Session end time"},"duration_ms":{"$ref":"#/$defs/Common.DurationMs","description":"Session duration in milliseconds"},"trace_count":{"type":"integer","format":"int32","minimum":0,"description":"Total trace count in session"},"span_count":{"type":"integer","format":"int32","minimum":0,"description":"Total span count in session"},"error_count":{"type":"integer","format":"int32","minimum":0,"description":"Total error count in session"},"services":{"type":"array","items":{"type":"string"},"description":"Service names observed in this session"},"state":{"$ref":"#/$defs/Domains.Observe.Session.SessionState","description":"Session state"},"client":{"$ref":"#/$defs/Domains.Observe.Session.SessionClientInfo","description":"Client information"},"geo":{"$ref":"#/$defs/Domains.Observe.Session.SessionGeoInfo","description":"Location information"},"genai_usage":{"$ref":"#/$defs/Domains.Observe.Session.SessionGenAiUsage","description":"GenAI usage summary"}},"unevaluatedProperties":{"not":{}},"description":"Complete session entity with aggregated data","x-csharp-type":"SessionEntity"},"Domains.Observe.Session.SessionEvent":{"type":"object","required":["event_name","session_id","timestamp","event_domain"],"properties":{"event_name":{"$ref":"#/$defs/Domains.Observe.Session.SessionEventName","description":"Event name"},"session_id":{"$ref":"#/$defs/Common.SessionId","description":"Session ID"},"timestamp":{"type":"string","format":"date-time","description":"Event timestamp"},"event_domain":{"type":"string","enum":["session"],"description":"Event domain"}},"unevaluatedProperties":{"not":{}},"description":"Session lifecycle event"},"Domains.Observe.Session.SessionEventName":{"type":"string","enum":["session.start","session.end"],"description":"Session event names"},"Domains.Observe.Session.SessionGenAiUsage":{"type":"object","required":["request_count","total_input_tokens","total_output_tokens","models_used","providers_used"],"properties":{"request_count":{"type":"integer","format":"int32","minimum":0,"description":"Total GenAI requests in session"},"total_input_tokens":{"$ref":"#/$defs/Common.TokenCount","description":"Total input tokens consumed"},"total_output_tokens":{"$ref":"#/$defs/Common.TokenCount","description":"Total output tokens generated"},"models_used":{"type":"array","items":{"type":"string"},"description":"Models used in session"},"providers_used":{"type":"array","items":{"type":"string"},"description":"Providers used in session"}},"unevaluatedProperties":{"not":{}},"description":"Session GenAI usage summary"},"Domains.Observe.Session.SessionGeoInfo":{"type":"object","properties":{"country_code":{"type":"string","description":"Country code (ISO 3166-1 alpha-2)"},"country_name":{"type":"string","description":"Country name"},"region":{"type":"string","description":"Region/state"},"city":{"type":"string","description":"City"},"postal_code":{"type":"string","description":"Postal code"},"timezone":{"type":"string","description":"Timezone"}},"unevaluatedProperties":{"not":{}},"description":"Session geographic information"},"Domains.Observe.Session.SessionState":{"type":"string","enum":["active","idle","ended","timed_out","invalidated"],"description":"Session states"},"Domains.Observe.Session.SessionStats":{"type":"object","required":["active_sessions","total_sessions","avg_duration_ms","sessions_with_errors","sessions_with_genai","bounce_rate"],"properties":{"active_sessions":{"$ref":"#/$defs/Common.Count","description":"Active sessions count"},"total_sessions":{"$ref":"#/$defs/Common.Count","description":"Total sessions in time range"},"avg_duration_ms":{"type":"number","format":"double","description":"Average session duration in milliseconds"},"sessions_with_errors":{"$ref":"#/$defs/Common.Count","description":"Sessions with errors"},"sessions_with_genai":{"$ref":"#/$defs/Common.Count","description":"Sessions with GenAI usage"},"bounce_rate":{"$ref":"#/$defs/Common.Ratio","description":"Bounce rate (single-page sessions)"}},"unevaluatedProperties":{"not":{}},"description":"Aggregated session statistics"},"Health.HealthCheckEntry":{"type":"object","required":["status","duration_ms"],"properties":{"status":{"$ref":"#/$defs/Health.HealthStatus"},"description":{"type":"string"},"duration_ms":{"type":"number","format":"double"}},"unevaluatedProperties":{"not":{}},"description":"One named health-check result."},"Health.HealthReport":{"type":"object","required":["status","total_duration_ms","entries","contract_revision"],"properties":{"status":{"$ref":"#/$defs/Health.HealthStatus"},"total_duration_ms":{"type":"number","format":"double"},"entries":{"type":"object","unevaluatedProperties":{"$ref":"#/$defs/Health.HealthCheckEntry"}},"contract_revision":{"$ref":"#/$defs/Common.ContractRevision","description":"Revision of the API contract this process serves, for the client-side startup handshake."}},"unevaluatedProperties":{"not":{}},"description":"Readiness or liveness report returned by /health and /alive."},"Health.HealthStatus":{"type":"string","enum":["healthy","degraded","unhealthy"],"description":"Health state reported by a qyl-managed process."},"Mcp.Tools.CiLogInput":{"type":"object","properties":{"run_id":{"$ref":"#/$defs/Common.SessionId","description":"Session id of one CI run for a per-leg phase breakdown; omit to list recent runs."},"limit":{"type":"integer","format":"int32","minimum":1,"maximum":50,"description":"Maximum CI runs to list.","default":10}},"unevaluatedProperties":{"not":{}},"description":"Input for ci_log."},"Mcp.Tools.CiLogOutput":{"type":"object","required":["mode"],"properties":{"runs":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.CiRunSummary"}},"run_id":{"$ref":"#/$defs/Common.SessionId"},"phases":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.CiPhase"}},"mode":{"$ref":"#/$defs/Mcp.Tools.McpDataMode"}},"unevaluatedProperties":{"not":{}},"description":"Structured output for ci_log: recent runs, or one run's phases."},"Mcp.Tools.CiPhase":{"type":"object","required":["leg","phase","status","duration_ms"],"properties":{"leg":{"type":"string","description":"Value of the span's ci.leg attribute, falling back to its service name."},"phase":{"type":"string","description":"Span name, which the CI emitter convention sets to the phase name."},"status":{"$ref":"#/$defs/Mcp.Tools.CiPhaseStatus"},"duration_ms":{"$ref":"#/$defs/Common.DurationMs"},"message":{"type":"string","description":"Span status message, present on a failed phase."}},"unevaluatedProperties":{"not":{}},"description":"One phase span of a CI run, attributed to the leg that executed it."},"Mcp.Tools.CiPhaseStatus":{"type":"string","enum":["ok","error","unset"],"description":"Outcome of one CI phase span, projected from its OpenTelemetry span status."},"Mcp.Tools.CiRunSummary":{"type":"object","required":["run_id","state","start_time","error_count","services"],"properties":{"run_id":{"$ref":"#/$defs/Common.SessionId"},"state":{"$ref":"#/$defs/Domains.Observe.Session.SessionState"},"start_time":{"type":"string","format":"date-time"},"duration_ms":{"$ref":"#/$defs/Common.DurationMs"},"error_count":{"type":"integer","format":"int32","minimum":0,"description":"Spans in the run that ended with an error status."},"services":{"type":"array","items":{"type":"string"},"description":"Service names observed in the run, at least one of which is CI-emitted."}},"unevaluatedProperties":{"not":{}},"description":"One CI run, summarized from the session its telemetry is grouped under."},"Mcp.Tools.ControlWorkflowRunInput":{"type":"object","required":["run_id","action","idempotency_key"],"properties":{"run_id":{"$ref":"#/$defs/Workflow.WorkflowRunId"},"action":{"$ref":"#/$defs/Workflow.WorkflowControlAction"},"idempotency_key":{"type":"string","minLength":1,"maxLength":160},"input":{"type":"string","maxLength":32768}},"unevaluatedProperties":{"not":{}},"description":"Input for control_workflow_run."},"Mcp.Tools.ControlWorkflowRunOutput":{"type":"object","required":["command"],"properties":{"command":{"$ref":"#/$defs/Workflow.WorkflowControlCommand"}},"unevaluatedProperties":{"not":{}},"description":"Structured output for control_workflow_run."},"Mcp.Tools.DisplayMcpDashboardInput":{"type":"object","properties":{"hours":{"type":"number","format":"double","minimum":1,"maximum":168,"default":24}},"unevaluatedProperties":{"not":{}},"description":"Input for display_mcp_dashboard."},"Mcp.Tools.DisplayMcpDashboardOutput":{"type":"object","required":["stats"],"properties":{"stats":{"$ref":"#/$defs/Mcp.Tools.McpDashboardStats"}},"unevaluatedProperties":{"not":{}},"description":"Structured output for display_mcp_dashboard."},"Mcp.Tools.DisplayTracesInput":{"type":"object","properties":{"trace_id":{"$ref":"#/$defs/Common.TraceId"},"session_id":{"$ref":"#/$defs/Common.SessionId"},"limit":{"type":"integer","format":"int32","minimum":1,"maximum":100,"default":20}},"unevaluatedProperties":{"not":{}},"description":"Input for display_traces."},"Mcp.Tools.DisplayTracesOutput":{"type":"object","required":["traces","mode"],"properties":{"traces":{"type":"array","items":{"$ref":"#/$defs/OTel.Traces.Trace"}},"selected_trace_id":{"$ref":"#/$defs/Common.TraceId"},"mode":{"$ref":"#/$defs/Mcp.Tools.McpDataMode"}},"unevaluatedProperties":{"not":{}},"description":"Structured output for display_traces."},"Mcp.Tools.DisplayWorkflowGraphInput":{"type":"object","properties":{"run_id":{"$ref":"#/$defs/Workflow.WorkflowRunId"},"node_cursor":{"type":"string"},"node_limit":{"type":"integer","format":"int32","minimum":1,"maximum":1000,"default":250},"edge_cursor":{"type":"string"},"edge_limit":{"type":"integer","format":"int32","minimum":1,"maximum":2000,"default":500}},"unevaluatedProperties":{"not":{}},"description":"Input for display_workflow_graph. Omit run_id to select the most recent run."},"Mcp.Tools.DisplayWorkflowGraphOutput":{"type":"object","required":["graph","live_controls_available","mode"],"properties":{"graph":{"$ref":"#/$defs/Workflow.WorkflowGraphSnapshot"},"live_controls_available":{"type":"boolean"},"mode":{"$ref":"#/$defs/Mcp.Tools.McpDataMode"}},"unevaluatedProperties":{"not":{}},"description":"Structured output for display_workflow_graph."},"Mcp.Tools.FetchTelemetryInput":{"type":"object","required":["view"],"properties":{"view":{"$ref":"#/$defs/Mcp.Tools.FetchTelemetryView"},"trace_id":{"$ref":"#/$defs/Common.TraceId"},"service_name":{"type":"string"},"severity_min":{"type":"integer","format":"int32","minimum":1,"maximum":24},"query":{"type":"string"},"limit":{"type":"integer","format":"int32","minimum":1,"maximum":200},"hours":{"type":"number","format":"double","minimum":1,"maximum":168}},"unevaluatedProperties":{"not":{}},"description":"Input for the app-only fetch_telemetry tool."},"Mcp.Tools.FetchTelemetryOutput":{"type":"object","required":["mode"],"properties":{"traces":{"type":"array","items":{"$ref":"#/$defs/OTel.Traces.Trace"}},"trace":{"$ref":"#/$defs/OTel.Traces.Trace"},"logs":{"type":"array","items":{"$ref":"#/$defs/OTel.Logs.LogRecord"}},"stats":{"$ref":"#/$defs/Mcp.Tools.McpDashboardStats"},"mode":{"$ref":"#/$defs/Mcp.Tools.McpDataMode"}},"unevaluatedProperties":{"not":{}},"description":"Structured output for the app-only fetch_telemetry tool."},"Mcp.Tools.FetchTelemetryView":{"type":"string","enum":["traces","trace","logs","mcp_stats"],"description":"Data projection requested by the app-only fetch_telemetry tool."},"Mcp.Tools.FetchWorkflowGraphUpdatesInput":{"type":"object","required":["run_id","after_sequence"],"properties":{"run_id":{"$ref":"#/$defs/Workflow.WorkflowRunId"},"after_sequence":{"$ref":"#/$defs/Workflow.WorkflowSequence"},"limit":{"type":"integer","format":"int32","minimum":1,"maximum":1000,"default":250},"wait_ms":{"type":"integer","format":"int32","minimum":0,"maximum":30000,"default":20000},"node_cursor":{"type":"string"},"node_limit":{"type":"integer","format":"int32","minimum":1,"maximum":1000,"default":250},"edge_cursor":{"type":"string"},"edge_limit":{"type":"integer","format":"int32","minimum":1,"maximum":2000,"default":500},"content_ref":{"$ref":"#/$defs/Workflow.WorkflowContentRef","description":"Optional captured payload to retrieve lazily for the selected run."}},"unevaluatedProperties":{"not":{}},"description":"Input for the app-only fetch_workflow_graph_updates tool."},"Mcp.Tools.FetchWorkflowGraphUpdatesOutput":{"type":"object","required":["page","mode"],"properties":{"page":{"$ref":"#/$defs/Workflow.WorkflowEventPage"},"graph":{"$ref":"#/$defs/Workflow.WorkflowGraphSnapshot"},"content":{"$ref":"#/$defs/Workflow.WorkflowContent"},"mode":{"$ref":"#/$defs/Mcp.Tools.McpDataMode"}},"unevaluatedProperties":{"not":{}},"description":"Structured output for the app-only fetch_workflow_graph_updates tool."},"Mcp.Tools.GetTraceInput":{"type":"object","required":["trace_id"],"properties":{"trace_id":{"$ref":"#/$defs/Common.TraceId"}},"unevaluatedProperties":{"not":{}},"description":"Input for get_trace."},"Mcp.Tools.GetTraceOutput":{"type":"object","required":["trace","mode"],"properties":{"trace":{"$ref":"#/$defs/OTel.Traces.Trace"},"mode":{"$ref":"#/$defs/Mcp.Tools.McpDataMode"}},"unevaluatedProperties":{"not":{}},"description":"Structured output for get_trace."},"Mcp.Tools.GetWorkflowGraphInput":{"type":"object","required":["run_id"],"properties":{"run_id":{"$ref":"#/$defs/Workflow.WorkflowRunId"},"node_cursor":{"type":"string"},"node_limit":{"type":"integer","format":"int32","minimum":1,"maximum":1000,"default":250},"edge_cursor":{"type":"string"},"edge_limit":{"type":"integer","format":"int32","minimum":1,"maximum":2000,"default":500}},"unevaluatedProperties":{"not":{}},"description":"Input for get_workflow_graph."},"Mcp.Tools.GetWorkflowGraphOutput":{"type":"object","required":["graph","mode"],"properties":{"graph":{"$ref":"#/$defs/Workflow.WorkflowGraphSnapshot"},"mode":{"$ref":"#/$defs/Mcp.Tools.McpDataMode"}},"unevaluatedProperties":{"not":{}},"description":"Structured output for get_workflow_graph."},"Mcp.Tools.ListSessionsInput":{"type":"object","properties":{"limit":{"type":"integer","format":"int32","minimum":1,"maximum":100,"default":20},"active_only":{"type":"boolean"}},"unevaluatedProperties":{"not":{}},"description":"Input for list_sessions."},"Mcp.Tools.ListSessionsOutput":{"type":"object","required":["sessions","mode"],"properties":{"sessions":{"type":"array","items":{"$ref":"#/$defs/Domains.Observe.Session.SessionEntity"}},"mode":{"$ref":"#/$defs/Mcp.Tools.McpDataMode"}},"unevaluatedProperties":{"not":{}},"description":"Structured output for list_sessions."},"Mcp.Tools.ListTracesInput":{"type":"object","properties":{"limit":{"type":"integer","format":"int32","minimum":1,"maximum":100,"default":20}},"unevaluatedProperties":{"not":{}},"description":"Input for list_traces."},"Mcp.Tools.ListTracesOutput":{"type":"object","required":["traces","mode"],"properties":{"traces":{"type":"array","items":{"$ref":"#/$defs/OTel.Traces.TraceSummary"}},"mode":{"$ref":"#/$defs/Mcp.Tools.McpDataMode"}},"unevaluatedProperties":{"not":{}},"description":"Structured output for list_traces."},"Mcp.Tools.ListWorkflowRunsInput":{"type":"object","properties":{"status":{"$ref":"#/$defs/Workflow.WorkflowRunStatus"},"cursor":{"type":"string"},"limit":{"type":"integer","format":"int32","minimum":1,"maximum":100,"default":20}},"unevaluatedProperties":{"not":{}},"description":"Input for list_workflow_runs."},"Mcp.Tools.ListWorkflowRunsOutput":{"type":"object","required":["runs","has_more","mode"],"properties":{"runs":{"type":"array","items":{"$ref":"#/$defs/Workflow.WorkflowRun"}},"next_cursor":{"type":"string"},"has_more":{"type":"boolean"},"mode":{"$ref":"#/$defs/Mcp.Tools.McpDataMode"}},"unevaluatedProperties":{"not":{}},"description":"Structured output for list_workflow_runs."},"Mcp.Tools.McpDashboardBucket":{"type":"object","required":["start","requests","errors"],"properties":{"start":{"type":"string","format":"date-time"},"requests":{"type":"integer","format":"int32","minimum":0},"errors":{"type":"integer","format":"int32","minimum":0}},"unevaluatedProperties":{"not":{}}},"Mcp.Tools.McpDashboardStats":{"type":"object","required":["window","buckets","totals","by_server","by_transport","by_method","tools","span_count_analyzed","truncated","mode"],"properties":{"window":{"$ref":"#/$defs/Mcp.Tools.McpDashboardWindow"},"buckets":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.McpDashboardBucket"}},"totals":{"$ref":"#/$defs/Mcp.Tools.McpDashboardTotals"},"by_server":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.McpNameRequestCount"}},"by_transport":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.McpNameRequestCount"}},"by_method":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.McpNameRequestCount"}},"tools":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.McpToolStats"}},"span_count_analyzed":{"type":"integer","format":"int32","minimum":0},"truncated":{"type":"boolean"},"mode":{"$ref":"#/$defs/Mcp.Tools.McpDataMode"}},"unevaluatedProperties":{"not":{}},"description":"Aggregate MCP traffic statistics shown by qyl.mcp."},"Mcp.Tools.McpDashboardTotals":{"type":"object","required":["requests","errors","error_rate"],"properties":{"requests":{"type":"integer","format":"int32","minimum":0},"errors":{"type":"integer","format":"int32","minimum":0},"error_rate":{"type":"number","format":"double","minimum":0,"maximum":1}},"unevaluatedProperties":{"not":{}}},"Mcp.Tools.McpDashboardWindow":{"type":"object","required":["start","end","bucket_ms"],"properties":{"start":{"type":"string","format":"date-time"},"end":{"type":"string","format":"date-time"},"bucket_ms":{"type":"number","format":"double","minimum":0}},"unevaluatedProperties":{"not":{}}},"Mcp.Tools.McpDataMode":{"type":"string","enum":["live","demo"],"description":"Whether a qyl MCP tool read live collector data or the explicit demo dataset."},"Mcp.Tools.McpNameRequestCount":{"type":"object","required":["name","requests"],"properties":{"name":{"type":"string"},"requests":{"type":"integer","format":"int32","minimum":0}},"unevaluatedProperties":{"not":{}}},"Mcp.Tools.McpToolStats":{"type":"object","required":["name","requests","errors","error_rate","avg_ms","p95_ms"],"properties":{"name":{"type":"string"},"requests":{"type":"integer","format":"int32","minimum":0},"errors":{"type":"integer","format":"int32","minimum":0},"error_rate":{"type":"number","format":"double","minimum":0,"maximum":1},"avg_ms":{"type":"number","format":"double","minimum":0},"p95_ms":{"type":"number","format":"double","minimum":0}},"unevaluatedProperties":{"not":{}}},"Mcp.Tools.SearchLogsInput":{"type":"object","properties":{"trace_id":{"$ref":"#/$defs/Common.TraceId"},"service_name":{"type":"string"},"severity_min":{"type":"integer","format":"int32","minimum":1,"maximum":24},"query":{"type":"string"},"limit":{"type":"integer","format":"int32","minimum":1,"maximum":200,"default":50}},"unevaluatedProperties":{"not":{}},"description":"Input for search_logs."},"Mcp.Tools.SearchLogsOutput":{"type":"object","required":["logs","mode"],"properties":{"logs":{"type":"array","items":{"$ref":"#/$defs/OTel.Logs.LogRecord"}},"mode":{"$ref":"#/$defs/Mcp.Tools.McpDataMode"}},"unevaluatedProperties":{"not":{}},"description":"Structured output for search_logs."},"OTel.Enums.ErrorType":{"type":"string","enum":["_OTHER","TIMEOUT","CONNECTION_REFUSED","DNS_ERROR","TLS_ERROR","AUTH_ERROR","PERMISSION_DENIED","NOT_FOUND","RESOURCE_EXHAUSTED","INVALID_ARGUMENT","CANCELLED"],"description":"Standardized error types"},"OTel.Enums.EventDomain":{"type":"string","enum":["browser","device","k8s","session","gen_ai","exception","log"],"description":"Event domain (namespace for event types)"},"OTel.Enums.SeverityNumber":{"type":"number","enum":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24],"description":"Log severity number following OTel specification (1-24)"},"OTel.Enums.SeverityText":{"type":"string","enum":["TRACE","DEBUG","INFO","WARN","ERROR","FATAL"],"description":"Log severity text (human-readable)"},"OTel.Enums.SpanFlags":{"type":"number","enum":[0,1,2],"description":"Span flags as defined in W3C Trace Context"},"OTel.Enums.SpanKind":{"type":"number","enum":[0,1,2,3,4,5],"description":"Span kind describing the relationship between spans"},"OTel.Enums.SpanStatusCode":{"type":"number","enum":[0,1,2],"description":"Span status code"},"OTel.Enums.TelemetrySdkLanguage":{"type":"string","enum":["cpp","dotnet","erlang","go","java","nodejs","php","python","ruby","rust","swift","webjs"],"description":"Telemetry SDK language"},"OTel.Logs.LogBody":{"type":"object","oneOf":[{"$ref":"#/$defs/OTel.Logs.LogBodyString"},{"$ref":"#/$defs/OTel.Logs.LogBodyKvList"},{"$ref":"#/$defs/OTel.Logs.LogBodyArray"},{"$ref":"#/$defs/OTel.Logs.LogBodyBytes"}],"discriminator":{"propertyName":"kind","mapping":{"stringBody":"#/components/schemas/OTel.Logs.LogBodyString","kvListBody":"#/components/schemas/OTel.Logs.LogBodyKvList","arrayBody":"#/components/schemas/OTel.Logs.LogBodyArray","bytesBody":"#/components/schemas/OTel.Logs.LogBodyBytes"}},"description":"Log body content - can be string, structured, or bytes"},"OTel.Logs.LogBodyArray":{"type":"object","required":["array_value"],"properties":{"array_value":{"type":"array","items":{"$ref":"#/$defs/Common.AttributeValue"},"description":"Array of values"}},"unevaluatedProperties":{"not":{}},"description":"Array log body"},"OTel.Logs.LogBodyBytes":{"type":"object","required":["bytes_value"],"properties":{"bytes_value":{"type":"string","contentEncoding":"base64","description":"Binary value (base64 encoded)"}},"unevaluatedProperties":{"not":{}},"description":"Binary log body"},"OTel.Logs.LogBodyKvList":{"type":"object","required":["kv_list_value"],"properties":{"kv_list_value":{"type":"array","items":{"$ref":"#/$defs/Common.Attribute"},"description":"Key-value pairs"}},"unevaluatedProperties":{"not":{}},"description":"Structured key-value log body"},"OTel.Logs.LogBodyString":{"type":"object","required":["string_value"],"properties":{"string_value":{"type":"string","description":"String value"}},"unevaluatedProperties":{"not":{}},"description":"String log body"},"OTel.Logs.LogRecord":{"type":"object","required":["time_unix_nano","observed_time_unix_nano","severity_number","body","resource"],"properties":{"time_unix_nano":{"$ref":"#/$defs/Common.UnixNanos","description":"Timestamp when the event occurred (nanoseconds since epoch)"},"observed_time_unix_nano":{"$ref":"#/$defs/Common.UnixNanos","description":"Timestamp when the log was observed/collected (nanoseconds since epoch)"},"severity_number":{"$ref":"#/$defs/OTel.Enums.SeverityNumber","description":"Severity number (1-24)"},"severity_text":{"$ref":"#/$defs/OTel.Enums.SeverityText","description":"Severity text (DEBUG, INFO, WARN, ERROR, etc.)"},"body":{"$ref":"#/$defs/OTel.Logs.LogBody","description":"Log body - the main content"},"attributes":{"type":"array","items":{"$ref":"#/$defs/Common.Attribute"},"description":"Log attributes"},"dropped_attributes_count":{"$ref":"#/$defs/Common.Count","description":"Dropped attributes count"},"flags":{"type":"integer","format":"int32","description":"Flags (trace flags)"},"trace_id":{"$ref":"#/$defs/Common.TraceId","description":"Associated trace ID"},"span_id":{"$ref":"#/$defs/Common.SpanId","description":"Associated span ID"},"event_name":{"type":"string","description":"Optional event category whose presence identifies this log record as an event; records with the same name are expected to share one body and attribute schema."},"resource":{"$ref":"#/$defs/OTel.Resource.Resource","description":"Resource describing the entity that produced this log"},"instrumentation_scope":{"$ref":"#/$defs/Common.InstrumentationScope","description":"Instrumentation scope"}},"unevaluatedProperties":{"not":{}},"description":"OpenTelemetry Log Record"},"OTel.Logs.LogTemplate":{"type":"object","required":["template","parameters"],"properties":{"template":{"type":"string","description":"Template string with {placeholder} syntax"},"parameters":{"type":"array","items":{"$ref":"#/$defs/Common.Attribute"},"description":"Template parameters"},"rendered_message":{"type":"string","description":"Rendered message"}},"unevaluatedProperties":{"not":{}},"description":"Log message template with placeholders"},"OTel.Resource.CloudProvider":{"type":"string","enum":["alibaba_cloud","aws","azure","gcp","heroku","ibm_cloud","tencent_cloud"],"description":"Cloud provider types"},"OTel.Resource.HostArch":{"type":"string","enum":["amd64","arm32","arm64","ia64","ppc32","ppc64","s390x","x86"],"description":"Host architecture types"},"OTel.Resource.OsType":{"type":"string","enum":["windows","linux","darwin","freebsd","netbsd","openbsd","dragonflybsd","hpux","aix","solaris","z_os"],"description":"Operating system types"},"OTel.Resource.Resource":{"type":"object","required":["service_name"],"properties":{"service_name":{"type":"string","description":"Service name (required)"},"service_namespace":{"type":"string","description":"Service namespace for grouping"},"service_instance_id":{"type":"string","description":"Service instance ID (unique per instance)"},"service_version":{"$ref":"#/$defs/Common.SemVer","description":"Service version"},"telemetry_sdk_name":{"type":"string","description":"Telemetry SDK name"},"telemetry_sdk_language":{"$ref":"#/$defs/OTel.Enums.TelemetrySdkLanguage","description":"Telemetry SDK language"},"telemetry_sdk_version":{"$ref":"#/$defs/Common.SemVer","description":"Telemetry SDK version"},"telemetry_distro_version":{"$ref":"#/$defs/Common.SemVer","description":"Telemetry distribution version"},"deployment_environment":{"type":"string","description":"Deployment environment (e.g., production, staging)"},"cloud_provider":{"$ref":"#/$defs/OTel.Resource.CloudProvider","description":"Cloud provider"},"cloud_region":{"type":"string","description":"Cloud region"},"cloud_availability_zone":{"type":"string","description":"Cloud availability zone"},"cloud_account_id":{"type":"string","description":"Cloud account ID"},"cloud_platform":{"type":"string","description":"Cloud platform (e.g., aws_ecs, gcp_cloud_run)"},"host_name":{"type":"string","description":"Host name"},"host_id":{"type":"string","description":"Host ID"},"host_type":{"type":"string","description":"Host type (e.g., n1-standard-1)"},"host_arch":{"$ref":"#/$defs/OTel.Resource.HostArch","description":"Host architecture (e.g., amd64, arm64)"},"os_type":{"$ref":"#/$defs/OTel.Resource.OsType","description":"Operating system type"},"os_description":{"type":"string","description":"Operating system description"},"os_version":{"type":"string","description":"Operating system version"},"process_pid":{"type":"integer","format":"int64","description":"Process ID"},"process_executable_name":{"type":"string","description":"Process executable name"},"process_command_line":{"type":"string","description":"Process command line"},"process_runtime_name":{"type":"string","description":"Process runtime name"},"process_runtime_version":{"type":"string","description":"Process runtime version"},"container_id":{"type":"string","description":"Container ID"},"container_name":{"type":"string","description":"Container name"},"container_image_name":{"type":"string","description":"Container image name"},"container_image_tags":{"type":"array","items":{"type":"string"},"description":"Container image tags"},"k8s_cluster_name":{"type":"string","description":"Kubernetes cluster name"},"k8s_namespace_name":{"type":"string","description":"Kubernetes namespace"},"k8s_pod_name":{"type":"string","description":"Kubernetes pod name"},"k8s_pod_uid":{"type":"string","description":"Kubernetes pod UID"},"k8s_deployment_name":{"type":"string","description":"Kubernetes deployment name"},"attributes":{"type":"array","items":{"$ref":"#/$defs/Common.Attribute"},"description":"Additional resource attributes"},"dropped_attributes_count":{"$ref":"#/$defs/Common.Count","description":"Dropped attributes count"},"entity_refs":{"type":"array","items":{"$ref":"#/$defs/Common.EntityRef"},"description":"Entities participating in this Resource, keyed by attributes on the Resource."}},"unevaluatedProperties":{"not":{}},"description":"Resource describes the entity producing telemetry"},"OTel.Traces.Span":{"type":"object","required":["span_id","trace_id","name","kind","start_time_unix_nano","end_time_unix_nano","status","resource"],"properties":{"span_id":{"$ref":"#/$defs/Common.SpanId","description":"Unique span identifier (16 hex chars)"},"trace_id":{"$ref":"#/$defs/Common.TraceId","description":"Trace identifier (32 hex chars)"},"parent_span_id":{"$ref":"#/$defs/Common.SpanId","description":"Parent span identifier (null for root spans)"},"trace_state":{"$ref":"#/$defs/Common.TraceState","description":"W3C trace state"},"name":{"type":"string","minLength":1,"description":"Human-readable span name"},"kind":{"$ref":"#/$defs/OTel.Enums.SpanKind","description":"Span kind"},"start_time_unix_nano":{"$ref":"#/$defs/Common.UnixNanos","description":"Start timestamp in nanoseconds since epoch"},"end_time_unix_nano":{"$ref":"#/$defs/Common.UnixNanos","description":"End timestamp in nanoseconds since epoch"},"attributes":{"type":"array","items":{"$ref":"#/$defs/Common.Attribute"},"description":"Span attributes"},"dropped_attributes_count":{"$ref":"#/$defs/Common.Count","description":"Dropped attributes count"},"events":{"type":"array","items":{"$ref":"#/$defs/OTel.Traces.SpanEvent"},"description":"Span events (logs attached to span)"},"dropped_events_count":{"$ref":"#/$defs/Common.Count","description":"Dropped events count"},"links":{"type":"array","items":{"$ref":"#/$defs/OTel.Traces.SpanLink"},"description":"Links to other spans"},"dropped_links_count":{"$ref":"#/$defs/Common.Count","description":"Dropped links count"},"status":{"$ref":"#/$defs/OTel.Traces.SpanStatus","description":"Span status"},"flags":{"type":"integer","format":"int32","description":"Span flags"},"resource":{"$ref":"#/$defs/OTel.Resource.Resource","description":"Resource describing the entity that produced this span"},"instrumentation_scope":{"$ref":"#/$defs/Common.InstrumentationScope","description":"Instrumentation scope"}},"unevaluatedProperties":{"not":{}},"description":"OpenTelemetry Span representing a single operation in a distributed trace"},"OTel.Traces.SpanEvent":{"type":"object","required":["name","time_unix_nano"],"properties":{"name":{"type":"string","minLength":1,"description":"Event name"},"time_unix_nano":{"$ref":"#/$defs/Common.UnixNanos","description":"Event timestamp in nanoseconds since epoch"},"attributes":{"type":"array","items":{"$ref":"#/$defs/Common.Attribute"},"description":"Event attributes"},"dropped_attributes_count":{"$ref":"#/$defs/Common.Count","description":"Dropped attributes count"}},"unevaluatedProperties":{"not":{}},"description":"Event occurring during a span's lifetime"},"OTel.Traces.SpanLink":{"type":"object","required":["trace_id","span_id"],"properties":{"trace_id":{"$ref":"#/$defs/Common.TraceId","description":"Linked trace ID"},"span_id":{"$ref":"#/$defs/Common.SpanId","description":"Linked span ID"},"trace_state":{"$ref":"#/$defs/Common.TraceState","description":"Trace state of the linked span"},"attributes":{"type":"array","items":{"$ref":"#/$defs/Common.Attribute"},"description":"Link attributes"},"dropped_attributes_count":{"$ref":"#/$defs/Common.Count","description":"Dropped attributes count"},"flags":{"type":"integer","format":"int32","description":"Link flags"}},"unevaluatedProperties":{"not":{}},"description":"Link to another span (e.g., batch processing)"},"OTel.Traces.SpanQueryFilters":{"type":"object","properties":{"trace_id":{"$ref":"#/$defs/Common.TraceId","description":"Filter by trace ID"},"parent_span_id":{"$ref":"#/$defs/Common.SpanId","description":"Filter by parent span ID"},"name":{"type":"string","description":"Filter by span name (supports wildcards)"},"kind":{"$ref":"#/$defs/OTel.Enums.SpanKind","description":"Filter by span kind"},"service_name":{"type":"string","description":"Filter by service name"},"status_code":{"$ref":"#/$defs/OTel.Enums.SpanStatusCode","description":"Filter by status code"},"min_duration_ns":{"$ref":"#/$defs/Common.DurationNs","description":"Minimum duration in nanoseconds"},"max_duration_ns":{"$ref":"#/$defs/Common.DurationNs","description":"Maximum duration in nanoseconds"},"attribute":{"type":"string","description":"Filter by attribute key-value pair"}},"unevaluatedProperties":{"not":{}},"description":"Filter parameters for querying spans"},"OTel.Traces.SpanStats":{"type":"object","required":["total_count","error_count","error_rate","avg_duration_ns","p50_duration_ns","p90_duration_ns","p99_duration_ns","min_duration_ns","max_duration_ns","throughput_per_second"],"properties":{"total_count":{"$ref":"#/$defs/Common.Count","description":"Total span count"},"error_count":{"$ref":"#/$defs/Common.Count","description":"Error count"},"error_rate":{"$ref":"#/$defs/Common.Ratio","description":"Error rate (0.0 - 1.0)"},"avg_duration_ns":{"type":"number","format":"double","description":"Average duration in nanoseconds"},"p50_duration_ns":{"$ref":"#/$defs/Common.DurationNs","description":"P50 duration in nanoseconds"},"p90_duration_ns":{"$ref":"#/$defs/Common.DurationNs","description":"P90 duration in nanoseconds"},"p99_duration_ns":{"$ref":"#/$defs/Common.DurationNs","description":"P99 duration in nanoseconds"},"min_duration_ns":{"$ref":"#/$defs/Common.DurationNs","description":"Minimum duration in nanoseconds"},"max_duration_ns":{"$ref":"#/$defs/Common.DurationNs","description":"Maximum duration in nanoseconds"},"throughput_per_second":{"type":"number","format":"double","description":"Throughput (spans per second)"},"by_service":{"type":"array","items":{"$ref":"#/$defs/OTel.Traces.SpanStatsByDimension"},"description":"Stats grouped by service"},"by_operation":{"type":"array","items":{"$ref":"#/$defs/OTel.Traces.SpanStatsByDimension"},"description":"Stats grouped by operation name"}},"unevaluatedProperties":{"not":{}},"description":"Aggregated span statistics"},"OTel.Traces.SpanStatsByDimension":{"type":"object","required":["dimension","count","avg_duration_ns","error_rate"],"properties":{"dimension":{"type":"string","description":"Dimension value (e.g., service name)"},"count":{"$ref":"#/$defs/Common.Count","description":"Span count for this dimension"},"avg_duration_ns":{"type":"number","format":"double","description":"Average duration in nanoseconds"},"error_rate":{"$ref":"#/$defs/Common.Ratio","description":"Error rate for this dimension"}},"unevaluatedProperties":{"not":{}},"description":"Span statistics for a specific dimension value"},"OTel.Traces.SpanStatus":{"type":"object","required":["code"],"properties":{"code":{"$ref":"#/$defs/OTel.Enums.SpanStatusCode","description":"Status code"},"message":{"type":"string","description":"Status message (only for ERROR status)"}},"unevaluatedProperties":{"not":{}},"description":"Span status"},"OTel.Traces.Trace":{"type":"object","required":["spans"],"properties":{"spans":{"type":"array","items":{"$ref":"#/$defs/OTel.Traces.Span"},"description":"All spans in this trace"}},"unevaluatedProperties":{"not":{}},"allOf":[{"$ref":"#/$defs/OTel.Traces.TraceSummary"}],"description":"Complete trace containing all related spans"},"OTel.Traces.TraceSummary":{"type":"object","required":["trace_id","span_count","duration_ns","start_time","end_time","services","has_error"],"properties":{"trace_id":{"$ref":"#/$defs/Common.TraceId","description":"Trace identifier"},"root_span":{"$ref":"#/$defs/OTel.Traces.Span","description":"Root span of the trace"},"span_count":{"type":"integer","format":"int32","description":"Total span count"},"duration_ns":{"$ref":"#/$defs/Common.DurationNs","description":"Trace duration in nanoseconds"},"start_time":{"type":"string","format":"date-time","description":"Trace start time"},"end_time":{"type":"string","format":"date-time","description":"Trace end time"},"services":{"type":"array","items":{"type":"string"},"description":"Services involved in this trace"},"has_error":{"type":"boolean","description":"Whether trace contains errors"}},"description":"Trace summary without the full span collection"},"Runner.RunnerLogEvents":{"$ref":"#/$defs/Runner.RunnerLogLine"},"Runner.RunnerLogLine":{"type":"object","required":["resource","stream","line"],"properties":{"resource":{"type":"string"},"stream":{"$ref":"#/$defs/Runner.RunnerLogStream"},"line":{"type":"string"}},"unevaluatedProperties":{"not":{}},"description":"One bounded child-process log line exposed by the runner."},"Runner.RunnerLogStream":{"type":"string","enum":["out","err"],"description":"Origin stream for one captured child-process log line."},"Runner.RunnerResourceEvents":{"$ref":"#/$defs/Runner.RunnerResourceState"},"Runner.RunnerResourceKind":{"type":"string","enum":["collector","project","command","stdio","http","inproc"],"description":"Kind of process or connection supervised by the local qyl runner."},"Runner.RunnerResourceLifecycle":{"type":"string","enum":["pending","starting","ready","stopping","stopped","failed"],"description":"Lifecycle state of a resource supervised by the local qyl runner."},"Runner.RunnerResourceState":{"type":"object","required":["name","lifecycle","timestamp"],"properties":{"name":{"type":"string"},"lifecycle":{"$ref":"#/$defs/Runner.RunnerResourceLifecycle"},"timestamp":{"type":"string","format":"date-time"},"kind":{"$ref":"#/$defs/Runner.RunnerResourceKind"},"allocated_port":{"type":"integer","format":"int32","minimum":1,"maximum":65535},"endpoint":{"type":"string","format":"uri"},"last_error":{"type":"string"},"server_identity":{"description":"Opaque SDK server-info entity when this resource is an initialized MCP connection."},"tool_count":{"type":"integer","format":"int32","minimum":0},"restarts":{"type":"integer","format":"int32","minimum":0}},"unevaluatedProperties":{"not":{}},"description":"Current client-visible state of one runner resource."},"Streaming.HeartbeatEvent":{"type":"object","required":["type","timestamp"],"properties":{"type":{"type":"string","enum":["heartbeat"]},"timestamp":{"type":"string","format":"date-time"}},"unevaluatedProperties":{"not":{}},"description":"Keep-alive event emitted while no new log is available."},"Streaming.LogEvents":{"anyOf":[{"$ref":"#/$defs/Streaming.LogStreamEvent"},{"$ref":"#/$defs/Streaming.HeartbeatEvent"}]},"Streaming.LogStreamEvent":{"type":"object","required":["type","data","timestamp"],"properties":{"type":{"type":"string","enum":["log"]},"data":{"$ref":"#/$defs/OTel.Logs.LogRecord"},"timestamp":{"type":"string","format":"date-time"}},"unevaluatedProperties":{"not":{}},"description":"One log delivered by the collector's live stream."},"Workbench.WorkbenchAssertionResult":{"type":"object","required":["assertion_id","kind","status"],"properties":{"assertion_id":{"type":"string"},"kind":{"type":"string"},"status":{"$ref":"#/$defs/Workbench.WorkbenchAssertionStatus"},"message":{"type":"string"},"actual":{}},"unevaluatedProperties":{"not":{}},"description":"Outcome of one assertion with sanitized actual evidence when useful."},"Workbench.WorkbenchAssertionStatus":{"type":"string","enum":["passed","failed","error","skipped"],"description":"Assertion outcome reported by an evaluation."},"Workbench.WorkbenchBuiltinServerConfiguration":{"type":"object","required":["transport","name"],"properties":{"transport":{"type":"string","enum":["builtin"]},"name":{"type":"string","minLength":1}},"unevaluatedProperties":{"not":{}},"description":"Sanitized built-in MCP server configuration."},"Workbench.WorkbenchConnectionSnapshot":{"type":"object","required":["status","changed_at"],"properties":{"status":{"$ref":"#/$defs/Workbench.WorkbenchConnectionStatus"},"changed_at":{"type":"string","format":"date-time"},"connected_at":{"type":"string","format":"date-time"},"disconnected_at":{"type":"string","format":"date-time"},"initialization":{"$ref":"#/$defs/Workbench.WorkbenchInitializationSnapshot"},"recent_error":{"$ref":"#/$defs/Workbench.WorkbenchError"}},"unevaluatedProperties":{"not":{}},"description":"Current connection state and most recent initialization evidence for one MCP server."},"Workbench.WorkbenchConnectionStatus":{"type":"string","enum":["disconnected","connecting","connected","disconnecting","reconnecting","failed"],"description":"Connection lifecycle for one configured MCP server."},"Workbench.WorkbenchDiscoveryCollection":{"type":"object","required":["items","count","complete","discovered_at"],"properties":{"items":{"type":"array","items":{}},"count":{"type":"integer","format":"int32","minimum":0},"complete":{"type":"boolean"},"cursor":{"type":"string"},"next_cursor":{"type":"string"},"discovered_at":{"type":"string","format":"date-time"}},"unevaluatedProperties":{"not":{}},"description":"One discovered MCP entity collection. Every item remains the SDK-validated opaque entity."},"Workbench.WorkbenchDiscoverySnapshot":{"type":"object","required":["server_id","started_at","completed_at","tools","resources","resource_templates","prompts"],"properties":{"server_id":{"$ref":"#/$defs/Workbench.WorkbenchServerId"},"started_at":{"type":"string","format":"date-time"},"completed_at":{"type":"string","format":"date-time"},"tools":{"$ref":"#/$defs/Workbench.WorkbenchDiscoveryCollection"},"resources":{"$ref":"#/$defs/Workbench.WorkbenchDiscoveryCollection"},"resource_templates":{"$ref":"#/$defs/Workbench.WorkbenchDiscoveryCollection"},"prompts":{"$ref":"#/$defs/Workbench.WorkbenchDiscoveryCollection"}},"unevaluatedProperties":{"not":{}},"description":"Complete MCP capability discovery evidence for one server."},"Workbench.WorkbenchEnvironmentSecretReference":{"type":"object","required":["name","secret"],"properties":{"name":{"type":"string","pattern":"^[A-Za-z_][A-Za-z0-9_]*$"},"secret":{"$ref":"#/$defs/Workbench.WorkbenchSecretReference"}},"unevaluatedProperties":{"not":{}},"description":"Environment variable whose value is resolved from a secret reference at connection time."},"Workbench.WorkbenchError":{"type":"object","required":["category","code","message","occurred_at","retryable"],"properties":{"category":{"$ref":"#/$defs/Workbench.WorkbenchErrorCategory"},"code":{"type":"string"},"message":{"type":"string"},"occurred_at":{"type":"string","format":"date-time"},"retryable":{"type":"boolean"},"details":{"description":"Sanitized implementation details with credentials and secret values removed."}},"unevaluatedProperties":{"not":{}},"description":"Typed, sanitized failure captured by the MCP workbench."},"Workbench.WorkbenchErrorCategory":{"type":"string","enum":["authentication","transport","protocol","serialization","schema_validation","tool_error","timeout","cancelled","internal"],"description":"Stable category for a workbench, transport, protocol, or tool execution error."},"Workbench.WorkbenchEvaluationComparisonRequest":{"type":"object","required":["baseline_run_id","candidate_run_id"],"properties":{"baseline_run_id":{"$ref":"#/$defs/Workbench.WorkbenchEvaluationRunId"},"candidate_run_id":{"$ref":"#/$defs/Workbench.WorkbenchEvaluationRunId"}},"unevaluatedProperties":{"not":{}},"description":"Request to compare a baseline MCP evaluation run with a candidate run."},"Workbench.WorkbenchEvaluationExport":{"type":"object","required":["id","run_id","format","status","requested_at"],"properties":{"id":{"$ref":"#/$defs/Workbench.WorkbenchEvaluationExportId"},"run_id":{"$ref":"#/$defs/Workbench.WorkbenchEvaluationRunId"},"format":{"$ref":"#/$defs/Workbench.WorkbenchEvaluationExportFormat"},"status":{"$ref":"#/$defs/Workbench.WorkbenchEvaluationExportStatus"},"requested_at":{"type":"string","format":"date-time"},"completed_at":{"type":"string","format":"date-time"},"media_type":{"type":"string"},"file_name":{"type":"string"},"byte_size":{"$ref":"#/$defs/Common.ByteSize"},"sha256":{"$ref":"#/$defs/Common.Sha256Hash"},"error":{"$ref":"#/$defs/Workbench.WorkbenchError"}},"unevaluatedProperties":{"not":{}},"description":"Metadata for one generated evaluation JSON or readable report artifact."},"Workbench.WorkbenchEvaluationExportAccepted":{"type":"object","required":["export"],"properties":{"export":{"$ref":"#/$defs/Workbench.WorkbenchEvaluationExport"}},"unevaluatedProperties":{"not":{}},"description":"An evaluation export was accepted and continues asynchronously."},"Workbench.WorkbenchEvaluationExportArtifact":{"type":"object","required":["export","payload"],"properties":{"export":{"$ref":"#/$defs/Workbench.WorkbenchEvaluationExport"},"payload":{"$ref":"#/$defs/Workbench.WorkbenchEvaluationExportPayload"}},"unevaluatedProperties":{"not":{}},"description":"Ready evaluation export metadata and its TypeSpec-owned content."},"Workbench.WorkbenchEvaluationExportFormat":{"type":"string","enum":["json","report"],"description":"Supported evaluation export representation."},"Workbench.WorkbenchEvaluationExportId":{"type":"string","minLength":1,"maxLength":128,"description":"Opaque identifier for one generated evaluation export."},"Workbench.WorkbenchEvaluationExportPayload":{"oneOf":[{"$ref":"#/$defs/Workbench.WorkbenchEvaluationJsonExportPayload"},{"$ref":"#/$defs/Workbench.WorkbenchEvaluationReportExportPayload"}],"description":"Exactly one generated evaluation export representation."},"Workbench.WorkbenchEvaluationExportRequest":{"type":"object","required":["format","idempotency_key"],"properties":{"format":{"$ref":"#/$defs/Workbench.WorkbenchEvaluationExportFormat"},"include_protocol_events":{"type":"boolean","default":true},"include_telemetry":{"type":"boolean","default":true},"idempotency_key":{"type":"string","minLength":8,"maxLength":256}},"unevaluatedProperties":{"not":{}},"description":"Request to generate a machine-readable or readable evaluation export."},"Workbench.WorkbenchEvaluationExportStatus":{"type":"string","enum":["pending","ready","failed"],"description":"Lifecycle for generation of an evaluation export artifact."},"Workbench.WorkbenchEvaluationJsonExportPayload":{"type":"object","required":["format","run","protocol_events","telemetry","exported_at"],"properties":{"format":{"type":"string","enum":["json"]},"run":{"$ref":"#/$defs/Workbench.WorkbenchEvaluationRun"},"protocol_events":{"type":"array","items":{"$ref":"#/$defs/Workbench.WorkbenchProtocolEvent"}},"telemetry":{"type":"array","items":{"$ref":"#/$defs/Workbench.WorkbenchExecutionTelemetryResponse"}},"exported_at":{"type":"string","format":"date-time"}},"unevaluatedProperties":{"not":{}},"description":"Machine-readable evaluation export with retained execution, protocol, and optional telemetry evidence."},"Workbench.WorkbenchEvaluationReportExportPayload":{"type":"object","required":["format","markdown","exported_at"],"properties":{"format":{"type":"string","enum":["report"]},"markdown":{"type":"string"},"exported_at":{"type":"string","format":"date-time"}},"unevaluatedProperties":{"not":{}},"description":"Human-readable Markdown evaluation report."},"Workbench.WorkbenchEvaluationResultStatus":{"type":"string","enum":["passed","failed","error","skipped"],"description":"Outcome for one test case within an evaluation run."},"Workbench.WorkbenchEvaluationRun":{"type":"object","required":["id","workspace_id","test_cases","status","created_at","results"],"properties":{"id":{"$ref":"#/$defs/Workbench.WorkbenchEvaluationRunId"},"workspace_id":{"$ref":"#/$defs/Workbench.WorkbenchWorkspaceId"},"suite":{"$ref":"#/$defs/Workbench.WorkbenchEvaluationSuiteSnapshot"},"test_cases":{"type":"array","items":{"$ref":"#/$defs/Workbench.WorkbenchEvaluationTestCaseSnapshot"}},"status":{"$ref":"#/$defs/Workbench.WorkbenchEvaluationRunStatus"},"created_at":{"type":"string","format":"date-time"},"started_at":{"type":"string","format":"date-time"},"completed_at":{"type":"string","format":"date-time"},"results":{"type":"array","items":{"$ref":"#/$defs/Workbench.WorkbenchEvaluationTestResult"}},"summary":{"$ref":"#/$defs/Workbench.WorkbenchEvaluationSummary"},"confirmation":{"$ref":"#/$defs/Workbench.WorkbenchExecutionConfirmationEvidence"},"telemetry":{"$ref":"#/$defs/Workbench.WorkbenchTelemetryCorrelation"},"error":{"$ref":"#/$defs/Workbench.WorkbenchError"}},"unevaluatedProperties":{"not":{}},"description":"Asynchronous MCP evaluation run with retained per-test evidence."},"Workbench.WorkbenchEvaluationRunAccepted":{"type":"object","required":["run"],"properties":{"run":{"$ref":"#/$defs/Workbench.WorkbenchEvaluationRun"}},"unevaluatedProperties":{"not":{}},"description":"An MCP evaluation run was accepted and continues asynchronously."},"Workbench.WorkbenchEvaluationRunComparison":{"type":"object","required":["baseline_run_id","candidate_run_id","baseline","candidate","success_rate_delta","reliability_delta","tests","compared_at"],"properties":{"baseline_run_id":{"$ref":"#/$defs/Workbench.WorkbenchEvaluationRunId"},"candidate_run_id":{"$ref":"#/$defs/Workbench.WorkbenchEvaluationRunId"},"baseline":{"$ref":"#/$defs/Workbench.WorkbenchEvaluationSummary"},"candidate":{"$ref":"#/$defs/Workbench.WorkbenchEvaluationSummary"},"success_rate_delta":{"type":"number","format":"double"},"reliability_delta":{"type":"number","format":"double"},"p95_duration_delta_ms":{"type":"number","format":"double"},"token_delta":{"type":"integer","format":"int64"},"cost_delta_usd":{"type":"number","format":"double"},"tests":{"type":"array","items":{"$ref":"#/$defs/Workbench.WorkbenchEvaluationTestComparison"}},"compared_at":{"type":"string","format":"date-time"}},"unevaluatedProperties":{"not":{}},"description":"Aggregate comparison of two completed MCP evaluation runs."},"Workbench.WorkbenchEvaluationRunId":{"type":"string","minLength":1,"maxLength":128,"description":"Opaque identifier for one MCP evaluation run."},"Workbench.WorkbenchEvaluationRunPage":{"type":"object","required":["runs"],"properties":{"runs":{"type":"array","items":{"$ref":"#/$defs/Workbench.WorkbenchEvaluationRun"}},"next_cursor":{"type":"string"}},"unevaluatedProperties":{"not":{}},"description":"Cursor page of MCP evaluation runs."},"Workbench.WorkbenchEvaluationRunRequest":{"type":"object","required":["idempotency_key"],"properties":{"idempotency_key":{"type":"string","minLength":8,"maxLength":256},"confirmation":{"$ref":"#/$defs/Workbench.WorkbenchExecutionConfirmationRequest"},"concurrency":{"type":"integer","format":"int32","minimum":1,"maximum":50,"default":1},"fail_fast":{"type":"boolean","default":false}},"description":"Request to execute one test case or suite asynchronously."},"Workbench.WorkbenchEvaluationRunStatus":{"type":"string","enum":["queued","running","completed","failed","cancelled"],"description":"Lifecycle for an MCP evaluation run."},"Workbench.WorkbenchEvaluationSuiteSnapshot":{"type":"object","required":["id","name","test_case_ids","tags"],"properties":{"id":{"$ref":"#/$defs/Workbench.WorkbenchSuiteId"},"name":{"type":"string"},"description":{"type":"string"},"test_case_ids":{"type":"array","items":{"$ref":"#/$defs/Workbench.WorkbenchTestCaseId"}},"tags":{"type":"array","items":{"type":"string"}}},"unevaluatedProperties":{"not":{}},"description":"Immutable suite definition captured when an evaluation run starts."},"Workbench.WorkbenchEvaluationSummary":{"type":"object","required":["total","passed","failed","errors","skipped","success_rate","reliability"],"properties":{"total":{"type":"integer","format":"int32","minimum":0},"passed":{"type":"integer","format":"int32","minimum":0},"failed":{"type":"integer","format":"int32","minimum":0},"errors":{"type":"integer","format":"int32","minimum":0},"skipped":{"type":"integer","format":"int32","minimum":0},"success_rate":{"$ref":"#/$defs/Common.Ratio"},"reliability":{"$ref":"#/$defs/Common.Ratio"},"mean_duration_ms":{"$ref":"#/$defs/Common.DurationMs"},"p50_duration_ms":{"$ref":"#/$defs/Common.DurationMs"},"p95_duration_ms":{"$ref":"#/$defs/Common.DurationMs"},"p99_duration_ms":{"$ref":"#/$defs/Common.DurationMs"},"token_usage":{"$ref":"#/$defs/Workbench.WorkbenchExecutionTokenUsage"},"cost":{"$ref":"#/$defs/Workbench.WorkbenchExecutionCost"}},"unevaluatedProperties":{"not":{}},"description":"Aggregate correctness, reliability, latency, usage, and cost for an MCP evaluation run."},"Workbench.WorkbenchEvaluationTestCaseSnapshot":{"type":"object","required":["id","server_id","name","tool_name","timeout_ms","assertions","tags"],"properties":{"id":{"$ref":"#/$defs/Workbench.WorkbenchTestCaseId"},"server_id":{"$ref":"#/$defs/Workbench.WorkbenchServerId"},"name":{"type":"string"},"description":{"type":"string"},"tool_name":{"type":"string"},"arguments":{},"timeout_ms":{"type":"integer","format":"int32"},"assertions":{"type":"array","items":{"$ref":"#/$defs/Workbench.WorkbenchTestAssertion"}},"tags":{"type":"array","items":{"type":"string"}}},"unevaluatedProperties":{"not":{}},"description":"Immutable reusable-test definition captured when an evaluation run starts."},"Workbench.WorkbenchEvaluationTestComparison":{"type":"object","required":["test_case_id","status"],"properties":{"test_case_id":{"$ref":"#/$defs/Workbench.WorkbenchTestCaseId"},"status":{"$ref":"#/$defs/Workbench.WorkbenchRegressionStatus"},"baseline_status":{"$ref":"#/$defs/Workbench.WorkbenchEvaluationResultStatus"},"candidate_status":{"$ref":"#/$defs/Workbench.WorkbenchEvaluationResultStatus"},"duration_delta_ms":{"type":"number","format":"double"}},"unevaluatedProperties":{"not":{}},"description":"Per-test comparison across a baseline and candidate MCP evaluation run."},"Workbench.WorkbenchEvaluationTestResult":{"type":"object","required":["test_case","status","assertions"],"properties":{"test_case":{"$ref":"#/$defs/Workbench.WorkbenchEvaluationTestCaseSnapshot"},"execution_id":{"$ref":"#/$defs/Workbench.WorkbenchExecutionId"},"status":{"$ref":"#/$defs/Workbench.WorkbenchEvaluationResultStatus"},"started_at":{"type":"string","format":"date-time"},"completed_at":{"type":"string","format":"date-time"},"duration_ms":{"$ref":"#/$defs/Common.DurationMs"},"assertions":{"type":"array","items":{"$ref":"#/$defs/Workbench.WorkbenchAssertionResult"}},"error":{"$ref":"#/$defs/Workbench.WorkbenchError"}},"unevaluatedProperties":{"not":{}},"description":"One test-case result retained by an MCP evaluation run."},"Workbench.WorkbenchExactAssertion":{"type":"object","required":["id","kind","expected"],"properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["exact"]},"path":{"type":"string"},"expected":{}},"unevaluatedProperties":{"not":{}},"description":"Exact JSON value assertion at an optional JSON Pointer path."},"Workbench.WorkbenchExecutionAccepted":{"type":"object","required":["execution"],"properties":{"execution":{"$ref":"#/$defs/Workbench.WorkbenchExecutionRecord"}},"unevaluatedProperties":{"not":{}},"description":"An MCP execution was accepted and continues asynchronously."},"Workbench.WorkbenchExecutionCancelRequest":{"type":"object","required":["idempotency_key"],"properties":{"reason":{"type":"string","maxLength":1000},"idempotency_key":{"type":"string","minLength":8,"maxLength":256}},"unevaluatedProperties":{"not":{}},"description":"Request to cancel an asynchronous MCP execution where the transport permits cancellation."},"Workbench.WorkbenchExecutionConfirmationEvidence":{"type":"object","required":["acknowledged","acknowledgement","confirmed_at"],"properties":{"acknowledged":{"type":"boolean","enum":[true]},"acknowledgement":{"type":"string"},"confirmed_at":{"type":"string","format":"date-time"}},"unevaluatedProperties":{"not":{}},"description":"Server-timestamped confirmation evidence persisted for a consequential MCP tool invocation."},"Workbench.WorkbenchExecutionConfirmationRequest":{"type":"object","required":["acknowledged","acknowledgement"],"properties":{"acknowledged":{"type":"boolean","enum":[true]},"acknowledgement":{"type":"string"}},"unevaluatedProperties":{"not":{}},"description":"Client acknowledgement supplied when requesting a consequential MCP tool invocation."},"Workbench.WorkbenchExecutionCost":{"type":"object","required":["amount_usd","estimated"],"properties":{"amount_usd":{"$ref":"#/$defs/Common.CostUsd"},"estimated":{"type":"boolean"},"source":{"type":"string"}},"unevaluatedProperties":{"not":{}},"description":"USD cost reported or estimated for one MCP execution when available."},"Workbench.WorkbenchExecutionEffect":{"type":"string","enum":["read_only","consequential","unknown"],"description":"How consequential the workbench considers an MCP tool invocation."},"Workbench.WorkbenchExecutionId":{"type":"string","minLength":1,"maxLength":128,"description":"Opaque identifier for one asynchronous MCP tool execution."},"Workbench.WorkbenchExecutionPage":{"type":"object","required":["executions"],"properties":{"executions":{"type":"array","items":{"$ref":"#/$defs/Workbench.WorkbenchExecutionRecord"}},"next_cursor":{"type":"string"}},"unevaluatedProperties":{"not":{}},"description":"Cursor page of MCP execution records."},"Workbench.WorkbenchExecutionRecord":{"type":"object","required":["id","workspace_id","server_id","request","effect","status","created_at","attempt_count","retry_count"],"properties":{"id":{"$ref":"#/$defs/Workbench.WorkbenchExecutionId"},"workspace_id":{"$ref":"#/$defs/Workbench.WorkbenchWorkspaceId"},"server_id":{"$ref":"#/$defs/Workbench.WorkbenchServerId"},"request":{"$ref":"#/$defs/Workbench.WorkbenchExecutionRequest"},"effect":{"$ref":"#/$defs/Workbench.WorkbenchExecutionEffect","description":"Server-derived effect from the SDK-validated discovered Tool and its annotations."},"confirmation":{"$ref":"#/$defs/Workbench.WorkbenchExecutionConfirmationEvidence"},"status":{"$ref":"#/$defs/Workbench.WorkbenchExecutionStatus"},"created_at":{"type":"string","format":"date-time"},"started_at":{"type":"string","format":"date-time"},"completed_at":{"type":"string","format":"date-time"},"duration_ms":{"$ref":"#/$defs/Common.DurationMs"},"attempt_count":{"type":"integer","format":"int32","minimum":0},"retry_count":{"type":"integer","format":"int32","minimum":0},"cancel_requested_at":{"type":"string","format":"date-time"},"cancelled_at":{"type":"string","format":"date-time"},"result":{"description":"Complete opaque SDK tool-call result after output sanitization."},"error":{"$ref":"#/$defs/Workbench.WorkbenchError"},"token_usage":{"$ref":"#/$defs/Workbench.WorkbenchExecutionTokenUsage"},"cost":{"$ref":"#/$defs/Workbench.WorkbenchExecutionCost"},"telemetry":{"$ref":"#/$defs/Workbench.WorkbenchTelemetryCorrelation"}},"unevaluatedProperties":{"not":{}},"description":"Persisted asynchronous execution evidence. SDK tool results remain opaque."},"Workbench.WorkbenchExecutionRequest":{"type":"object","required":["tool_name","timeout_ms","idempotency_key"],"properties":{"tool_name":{"type":"string","minLength":1},"arguments":{"description":"Opaque tool arguments validated against the SDK tool schema before execution."},"timeout_ms":{"type":"integer","format":"int32","minimum":1,"maximum":3600000,"default":30000},"confirmation":{"$ref":"#/$defs/Workbench.WorkbenchExecutionConfirmationRequest"},"idempotency_key":{"type":"string","minLength":8,"maxLength":256}},"unevaluatedProperties":{"not":{}},"description":"Request to asynchronously invoke one discovered MCP tool."},"Workbench.WorkbenchExecutionStatus":{"type":"string","enum":["queued","running","cancelling","succeeded","failed","cancelled","timed_out"],"description":"Asynchronous MCP execution lifecycle."},"Workbench.WorkbenchExecutionTelemetryResponse":{"type":"object","required":["signals","correlation","traces","logs","queried_at","self_export_suppressed"],"properties":{"signals":{"$ref":"#/$defs/Workbench.WorkbenchTelemetrySignalSummary"},"correlation":{"$ref":"#/$defs/Workbench.WorkbenchTelemetryCorrelation"},"traces":{"type":"array","items":{"$ref":"#/$defs/OTel.Traces.Trace"}},"logs":{"type":"array","items":{"$ref":"#/$defs/OTel.Logs.LogRecord"}},"queried_at":{"type":"string","format":"date-time"},"self_export_suppressed":{"type":"boolean","enum":[true],"description":"Confirms that workbench telemetry querying is excluded from workbench export instrumentation."}},"unevaluatedProperties":{"not":{}},"description":"Correlated Qyl observability evidence for one MCP execution. Signals unsupported by the connected Qyl read API are explicitly unavailable."},"Workbench.WorkbenchExecutionTokenUsage":{"type":"object","required":["estimated"],"properties":{"input_tokens":{"$ref":"#/$defs/Common.TokenCount"},"output_tokens":{"$ref":"#/$defs/Common.TokenCount"},"total_tokens":{"$ref":"#/$defs/Common.TokenCount"},"estimated":{"type":"boolean"}},"unevaluatedProperties":{"not":{}},"description":"Token usage reported or derived for one MCP execution when available."},"Workbench.WorkbenchExecutionUpdateEvents":{"$ref":"#/$defs/Workbench.WorkbenchExecutionRecord"},"Workbench.WorkbenchHeaderSecretReference":{"type":"object","required":["name","secret"],"properties":{"name":{"type":"string","minLength":1},"secret":{"$ref":"#/$defs/Workbench.WorkbenchSecretReference"},"scheme":{"$ref":"#/$defs/Workbench.WorkbenchHeaderSecretScheme","description":"Optional HTTP authentication scheme applied to the resolved secret. Omit for a raw header value."}},"unevaluatedProperties":{"not":{}},"description":"HTTP header whose value is resolved from a secret reference at connection time."},"Workbench.WorkbenchHeaderSecretScheme":{"type":"string","enum":["bearer","basic"],"description":"HTTP authentication scheme applied to an environment-resolved header secret."},"Workbench.WorkbenchInitializationSnapshot":{"type":"object","required":["initialized_at","protocol_version","server_identity","capabilities","result"],"properties":{"initialized_at":{"type":"string","format":"date-time"},"protocol_version":{"type":"string"},"server_identity":{"description":"Opaque SDK server-info entity."},"capabilities":{"description":"Opaque SDK server-capabilities entity."},"instructions":{"type":"string"},"session_info":{"description":"Opaque SDK session information when the transport exposes it."},"result":{"description":"Complete opaque SDK initialize result."}},"unevaluatedProperties":{"not":{}},"description":"SDK-validated MCP initialize result projected through a Qyl-owned connection snapshot."},"Workbench.WorkbenchLatencyAssertion":{"type":"object","required":["id","kind","max_duration_ms"],"properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["latency"]},"max_duration_ms":{"type":"number","format":"double","minimum":0}},"unevaluatedProperties":{"not":{}},"description":"Maximum execution latency assertion."},"Workbench.WorkbenchPartialAssertion":{"type":"object","required":["id","kind","expected"],"properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["partial"]},"path":{"type":"string"},"expected":{}},"unevaluatedProperties":{"not":{}},"description":"Partial JSON object or array containment assertion at an optional JSON Pointer path."},"Workbench.WorkbenchPatternAssertion":{"type":"object","required":["id","kind","pattern"],"properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["pattern"]},"path":{"type":"string"},"pattern":{"type":"string"},"flags":{"type":"string"}},"unevaluatedProperties":{"not":{}},"description":"Regular-expression assertion at an optional JSON Pointer path."},"Workbench.WorkbenchPrincipalIdentity":{"type":"object","required":["id","local"],"properties":{"id":{"type":"string"},"display_name":{"type":"string"},"local":{"type":"boolean","enum":[true]}},"unevaluatedProperties":{"not":{}},"description":"Authenticated local principal metadata. No credential or session token is represented here."},"Workbench.WorkbenchProtocolDirection":{"type":"string","enum":["client_to_server","server_to_client","local"],"description":"Direction of a captured MCP protocol or transport event."},"Workbench.WorkbenchProtocolEvent":{"type":"object","required":["id","server_id","direction","kind","timestamp","redaction_applied"],"properties":{"id":{"type":"string"},"server_id":{"$ref":"#/$defs/Workbench.WorkbenchServerId"},"direction":{"$ref":"#/$defs/Workbench.WorkbenchProtocolDirection"},"kind":{"$ref":"#/$defs/Workbench.WorkbenchProtocolEventKind"},"method":{"type":"string"},"request_id":{"description":"Opaque JSON-RPC request identifier, which may be a string or number."},"timestamp":{"type":"string","format":"date-time"},"duration_ms":{"$ref":"#/$defs/Common.DurationMs"},"payload":{"description":"Opaque SDK message or transport payload after credential and secret redaction."},"redaction_applied":{"type":"boolean","enum":[true]},"execution_id":{"$ref":"#/$defs/Workbench.WorkbenchExecutionId"},"trace_id":{"$ref":"#/$defs/Common.TraceId"}},"unevaluatedProperties":{"not":{}},"description":"Chronological diagnostic event carrying only a redacted opaque SDK message or local transport payload."},"Workbench.WorkbenchProtocolEventKind":{"type":"string","enum":["request","response","notification","error","transport"],"description":"Kind of captured MCP protocol or transport event."},"Workbench.WorkbenchProtocolEventPage":{"type":"object","required":["events"],"properties":{"events":{"type":"array","items":{"$ref":"#/$defs/Workbench.WorkbenchProtocolEvent"}},"next_cursor":{"type":"string"}},"unevaluatedProperties":{"not":{}},"description":"Cursor page of chronological MCP protocol diagnostic events."},"Workbench.WorkbenchProtocolEvents":{"$ref":"#/$defs/Workbench.WorkbenchProtocolEvent"},"Workbench.WorkbenchRegressionStatus":{"type":"string","enum":["improved","regressed","unchanged","added","removed"],"description":"Regression classification for one test case across two evaluation runs."},"Workbench.WorkbenchSchemaAssertion":{"type":"object","required":["id","kind","schema"],"properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["schema"]},"path":{"type":"string"},"schema":{}},"unevaluatedProperties":{"not":{}},"description":"JSON Schema assertion at an optional JSON Pointer path."},"Workbench.WorkbenchSecretReference":{"type":"object","required":["source","environment_variable"],"properties":{"source":{"type":"string","enum":["environment"]},"environment_variable":{"type":"string","pattern":"^[A-Za-z_][A-Za-z0-9_]*$"}},"unevaluatedProperties":{"not":{}},"description":"Reference to a secret resolved from the workbench environment. The environment value is never part of this contract."},"Workbench.WorkbenchServer":{"type":"object","required":["id","workspace_id","name","configuration","connection","created_at","updated_at"],"properties":{"id":{"$ref":"#/$defs/Workbench.WorkbenchServerId"},"workspace_id":{"$ref":"#/$defs/Workbench.WorkbenchWorkspaceId"},"name":{"type":"string"},"description":{"type":"string"},"configuration":{"$ref":"#/$defs/Workbench.WorkbenchServerConfiguration"},"connection":{"$ref":"#/$defs/Workbench.WorkbenchConnectionSnapshot"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}},"unevaluatedProperties":{"not":{}},"description":"Persisted sanitized MCP server configuration and current runtime connection state."},"Workbench.WorkbenchServerActionAccepted":{"type":"object","required":["server"],"properties":{"server":{"$ref":"#/$defs/Workbench.WorkbenchServer"}},"unevaluatedProperties":{"not":{}},"description":"An MCP server connection action was accepted and continues asynchronously."},"Workbench.WorkbenchServerConfiguration":{"oneOf":[{"$ref":"#/$defs/Workbench.WorkbenchStdioServerConfiguration"},{"$ref":"#/$defs/Workbench.WorkbenchStreamableHttpServerConfiguration"},{"$ref":"#/$defs/Workbench.WorkbenchBuiltinServerConfiguration"}],"description":"Exactly one sanitized MCP server transport configuration."},"Workbench.WorkbenchServerCreateRequest":{"type":"object","required":["name","configuration"],"properties":{"name":{"type":"string","minLength":1,"maxLength":120},"description":{"type":"string","maxLength":2000},"configuration":{"$ref":"#/$defs/Workbench.WorkbenchServerConfiguration"},"auto_connect":{"type":"boolean","default":false}},"unevaluatedProperties":{"not":{}},"description":"Request to add an MCP server configuration to a workspace."},"Workbench.WorkbenchServerId":{"type":"string","minLength":1,"maxLength":128,"description":"Opaque identifier for one configured MCP server."},"Workbench.WorkbenchServerListResponse":{"type":"object","required":["servers"],"properties":{"servers":{"type":"array","items":{"$ref":"#/$defs/Workbench.WorkbenchServer"}}},"unevaluatedProperties":{"not":{}},"description":"Configured MCP servers in one authenticated workspace."},"Workbench.WorkbenchServerUpdateRequest":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"description":{"type":"string","maxLength":2000},"configuration":{"$ref":"#/$defs/Workbench.WorkbenchServerConfiguration"}},"unevaluatedProperties":{"not":{}},"description":"Request to replace mutable MCP server metadata or its complete sanitized transport configuration."},"Workbench.WorkbenchSession":{"type":"object","required":["id","principal","workspace_ids","created_at"],"properties":{"id":{"$ref":"#/$defs/Workbench.WorkbenchSessionId"},"principal":{"$ref":"#/$defs/Workbench.WorkbenchPrincipalIdentity"},"workspace_ids":{"type":"array","items":{"$ref":"#/$defs/Workbench.WorkbenchWorkspaceId"}},"active_workspace_id":{"$ref":"#/$defs/Workbench.WorkbenchWorkspaceId"},"created_at":{"type":"string","format":"date-time"},"expires_at":{"type":"string","format":"date-time"}},"description":"Metadata for the authenticated local workbench session. The HttpOnly session cookie is never returned in this model."},"Workbench.WorkbenchSessionBootstrapResponse":{"type":"object","unevaluatedProperties":{"not":{}},"allOf":[{"$ref":"#/$defs/Workbench.WorkbenchSession"}],"description":"Loopback session bootstrap response. The cookie value is carried only in Set-Cookie and never in the JSON body."},"Workbench.WorkbenchSessionId":{"type":"string","minLength":1,"maxLength":128,"description":"Opaque identifier for one authenticated local workbench session.\\n\\nDeliberately not Qyl.Api.Contracts.Common.SessionId, and not joinable with it.\\nA workbench session is a loopback browser session owned by the local runner: it\\nbegins at cookie bootstrap, ends at logout or expiry, and never leaves the\\nmachine. A Common.SessionId is an OTel telemetry session observed in ingested\\nspans, owned by the instrumented application, with its own lifetime and its own\\ncontinuity chain. The two have no common issuer, so equal values would be\\ncoincidence. Correlate a workbench execution to telemetry through\\nWorkbenchTelemetryCorrelation.traceIds, never by comparing session identifiers."},"Workbench.WorkbenchStatusAssertion":{"type":"object","required":["id","kind","expected"],"properties":{"id":{"type":"string"},"kind":{"type":"string","enum":["status"]},"expected":{"type":"array","items":{"$ref":"#/$defs/Workbench.WorkbenchExecutionStatus"},"minItems":1}},"unevaluatedProperties":{"not":{}},"description":"Execution-status assertion for an MCP test case."},"Workbench.WorkbenchStdioServerConfiguration":{"type":"object","required":["transport","command"],"properties":{"transport":{"type":"string","enum":["stdio"]},"command":{"type":"string","minLength":1},"arguments":{"type":"array","items":{"type":"string"}},"working_directory":{"type":"string"},"environment":{"type":"array","items":{"$ref":"#/$defs/Workbench.WorkbenchEnvironmentSecretReference"}}},"unevaluatedProperties":{"not":{}},"description":"Sanitized local stdio transport configuration. Arguments must not contain secrets."},"Workbench.WorkbenchStreamableHttpServerConfiguration":{"type":"object","required":["transport","endpoint"],"properties":{"transport":{"type":"string","enum":["streamable_http"]},"endpoint":{"type":"string","format":"uri"},"headers":{"type":"array","items":{"$ref":"#/$defs/Workbench.WorkbenchHeaderSecretReference"}}},"unevaluatedProperties":{"not":{}},"description":"Sanitized MCP Streamable HTTP transport configuration."},"Workbench.WorkbenchSuiteId":{"type":"string","minLength":1,"maxLength":128,"description":"Opaque identifier for one reusable MCP test suite."},"Workbench.WorkbenchSuiteRunRequest":{"type":"object","properties":{"selected_test_case_ids":{"type":"array","items":{"$ref":"#/$defs/Workbench.WorkbenchTestCaseId"},"minItems":1}},"unevaluatedProperties":{"not":{}},"allOf":[{"$ref":"#/$defs/Workbench.WorkbenchEvaluationRunRequest"}],"description":"Request to run a complete suite or an explicit subset of its persisted test cases asynchronously."},"Workbench.WorkbenchTelemetryAvailability":{"type":"string","enum":["available","partial","unavailable"],"description":"Whether correlated Qyl observability evidence was available."},"Workbench.WorkbenchTelemetryCorrelation":{"type":"object","required":["trace_ids","span_ids"],"properties":{"execution_id":{"$ref":"#/$defs/Workbench.WorkbenchExecutionId"},"evaluation_run_id":{"$ref":"#/$defs/Workbench.WorkbenchEvaluationRunId"},"test_case_id":{"$ref":"#/$defs/Workbench.WorkbenchTestCaseId"},"trace_ids":{"type":"array","items":{"$ref":"#/$defs/Common.TraceId"}},"span_ids":{"type":"array","items":{"$ref":"#/$defs/Common.SpanId"}}},"unevaluatedProperties":{"not":{}},"description":"Qyl observability identifiers correlating workbench, MCP, and downstream activity."},"Workbench.WorkbenchTelemetrySignalAvailability":{"type":"object","required":["status","item_count"],"properties":{"status":{"$ref":"#/$defs/Workbench.WorkbenchTelemetryAvailability"},"unavailable_reason":{"type":"string"},"item_count":{"type":"integer","format":"int32","minimum":0}},"unevaluatedProperties":{"not":{}},"description":"Availability and retained item count for one correlated Qyl telemetry signal."},"Workbench.WorkbenchTelemetrySignalSummary":{"type":"object","required":["traces","logs","exceptions","tool_call_events"],"properties":{"traces":{"$ref":"#/$defs/Workbench.WorkbenchTelemetrySignalAvailability"},"logs":{"$ref":"#/$defs/Workbench.WorkbenchTelemetrySignalAvailability"},"exceptions":{"$ref":"#/$defs/Workbench.WorkbenchTelemetrySignalAvailability"},"tool_call_events":{"$ref":"#/$defs/Workbench.WorkbenchTelemetrySignalAvailability"}},"unevaluatedProperties":{"not":{}},"description":"Per-signal availability for correlated workbench observability evidence."},"Workbench.WorkbenchTestAssertion":{"oneOf":[{"$ref":"#/$defs/Workbench.WorkbenchStatusAssertion"},{"$ref":"#/$defs/Workbench.WorkbenchExactAssertion"},{"$ref":"#/$defs/Workbench.WorkbenchPartialAssertion"},{"$ref":"#/$defs/Workbench.WorkbenchSchemaAssertion"},{"$ref":"#/$defs/Workbench.WorkbenchPatternAssertion"},{"$ref":"#/$defs/Workbench.WorkbenchLatencyAssertion"}],"description":"Exactly one supported MCP evaluation assertion."},"Workbench.WorkbenchTestCase":{"type":"object","required":["id","workspace_id","server_id","name","tool_name","timeout_ms","assertions","tags","created_at","updated_at"],"properties":{"id":{"$ref":"#/$defs/Workbench.WorkbenchTestCaseId"},"workspace_id":{"$ref":"#/$defs/Workbench.WorkbenchWorkspaceId"},"server_id":{"$ref":"#/$defs/Workbench.WorkbenchServerId"},"name":{"type":"string"},"description":{"type":"string"},"tool_name":{"type":"string"},"arguments":{},"timeout_ms":{"type":"integer","format":"int32","minimum":1,"maximum":3600000},"assertions":{"type":"array","items":{"$ref":"#/$defs/Workbench.WorkbenchTestAssertion"}},"tags":{"type":"array","items":{"type":"string"}},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}},"unevaluatedProperties":{"not":{}},"description":"Reusable tool invocation and assertions persisted in one workspace."},"Workbench.WorkbenchTestCaseCreateRequest":{"type":"object","required":["server_id","name","tool_name","timeout_ms","assertions"],"properties":{"server_id":{"$ref":"#/$defs/Workbench.WorkbenchServerId"},"name":{"type":"string","minLength":1,"maxLength":160},"description":{"type":"string","maxLength":4000},"tool_name":{"type":"string","minLength":1},"arguments":{},"timeout_ms":{"type":"integer","format":"int32","minimum":1,"maximum":3600000,"default":30000},"assertions":{"type":"array","items":{"$ref":"#/$defs/Workbench.WorkbenchTestAssertion"},"minItems":1},"tags":{"type":"array","items":{"type":"string"}}},"unevaluatedProperties":{"not":{}},"description":"Request to create a reusable MCP test case."},"Workbench.WorkbenchTestCaseId":{"type":"string","minLength":1,"maxLength":128,"description":"Opaque identifier for one reusable MCP test case."},"Workbench.WorkbenchTestCasePage":{"type":"object","required":["test_cases"],"properties":{"test_cases":{"type":"array","items":{"$ref":"#/$defs/Workbench.WorkbenchTestCase"}},"next_cursor":{"type":"string"}},"unevaluatedProperties":{"not":{}},"description":"Cursor page of reusable MCP test cases."},"Workbench.WorkbenchTestCaseRunRequest":{"type":"object","unevaluatedProperties":{"not":{}},"allOf":[{"$ref":"#/$defs/Workbench.WorkbenchEvaluationRunRequest"}],"description":"Request to run one persisted MCP test case asynchronously."},"Workbench.WorkbenchTestCaseUpdateRequest":{"type":"object","properties":{"server_id":{"$ref":"#/$defs/Workbench.WorkbenchServerId"},"name":{"type":"string","minLength":1,"maxLength":160},"description":{"type":"string","maxLength":4000},"tool_name":{"type":"string","minLength":1},"arguments":{},"timeout_ms":{"type":"integer","format":"int32","minimum":1,"maximum":3600000},"assertions":{"type":"array","items":{"$ref":"#/$defs/Workbench.WorkbenchTestAssertion"},"minItems":1},"tags":{"type":"array","items":{"type":"string"}}},"unevaluatedProperties":{"not":{}},"description":"Request to update mutable MCP test-case fields."},"Workbench.WorkbenchTestSuite":{"type":"object","required":["id","workspace_id","name","test_case_ids","tags","created_at","updated_at"],"properties":{"id":{"$ref":"#/$defs/Workbench.WorkbenchSuiteId"},"workspace_id":{"$ref":"#/$defs/Workbench.WorkbenchWorkspaceId"},"name":{"type":"string"},"description":{"type":"string"},"test_case_ids":{"type":"array","items":{"$ref":"#/$defs/Workbench.WorkbenchTestCaseId"},"minItems":1},"tags":{"type":"array","items":{"type":"string"}},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}},"unevaluatedProperties":{"not":{}},"description":"Reusable ordered group of MCP test cases."},"Workbench.WorkbenchTestSuiteCreateRequest":{"type":"object","required":["name","test_case_ids"],"properties":{"name":{"type":"string","minLength":1,"maxLength":160},"description":{"type":"string","maxLength":4000},"test_case_ids":{"type":"array","items":{"$ref":"#/$defs/Workbench.WorkbenchTestCaseId"},"minItems":1},"tags":{"type":"array","items":{"type":"string"}}},"unevaluatedProperties":{"not":{}},"description":"Request to create a reusable MCP test suite."},"Workbench.WorkbenchTestSuitePage":{"type":"object","required":["suites"],"properties":{"suites":{"type":"array","items":{"$ref":"#/$defs/Workbench.WorkbenchTestSuite"}},"next_cursor":{"type":"string"}},"unevaluatedProperties":{"not":{}},"description":"Cursor page of reusable MCP test suites."},"Workbench.WorkbenchTestSuiteUpdateRequest":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":160},"description":{"type":"string","maxLength":4000},"test_case_ids":{"type":"array","items":{"$ref":"#/$defs/Workbench.WorkbenchTestCaseId"},"minItems":1},"tags":{"type":"array","items":{"type":"string"}}},"unevaluatedProperties":{"not":{}},"description":"Request to update mutable MCP test-suite fields."},"Workbench.WorkbenchToolInputMode":{"type":"string","enum":["form","json"],"description":"Preferred tool-argument editor for one authenticated workspace."},"Workbench.WorkbenchTransportKind":{"type":"string","enum":["stdio","streamable_http","builtin"],"description":"Supported MCP server transport owned by the local workbench."},"Workbench.WorkbenchWorkspace":{"type":"object","required":["id","owner_id","name","created_at","updated_at"],"properties":{"id":{"$ref":"#/$defs/Workbench.WorkbenchWorkspaceId"},"owner_id":{"type":"string"},"name":{"type":"string"},"description":{"type":"string"},"created_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"}},"unevaluatedProperties":{"not":{}},"description":"One isolated MCP workbench workspace owned by the authenticated local principal."},"Workbench.WorkbenchWorkspaceCreateRequest":{"type":"object","required":["name"],"properties":{"name":{"type":"string","minLength":1,"maxLength":120},"description":{"type":"string","maxLength":2000}},"unevaluatedProperties":{"not":{}},"description":"Request to create an isolated MCP workbench workspace."},"Workbench.WorkbenchWorkspaceId":{"type":"string","minLength":1,"maxLength":128,"description":"Opaque identifier for one MCP workbench workspace."},"Workbench.WorkbenchWorkspaceListResponse":{"type":"object","required":["workspaces"],"properties":{"workspaces":{"type":"array","items":{"$ref":"#/$defs/Workbench.WorkbenchWorkspace"}}},"unevaluatedProperties":{"not":{}},"description":"Workspaces visible to the authenticated local session."},"Workbench.WorkbenchWorkspacePreferences":{"type":"object","required":["workspace_id","input_mode","compact_mode","updated_at"],"properties":{"workspace_id":{"$ref":"#/$defs/Workbench.WorkbenchWorkspaceId"},"selected_server_id":{"$ref":"#/$defs/Workbench.WorkbenchServerId"},"selected_tool_name":{"type":"string","maxLength":1024},"input_mode":{"$ref":"#/$defs/Workbench.WorkbenchToolInputMode"},"active_panel":{"type":"string","maxLength":128},"compact_mode":{"type":"boolean"},"updated_at":{"type":"string","format":"date-time"}},"unevaluatedProperties":{"not":{}},"description":"Saved presentation preferences isolated to one authenticated MCP workspace."},"Workbench.WorkbenchWorkspacePreferencesUpdateRequest":{"type":"object","properties":{"selected_server_id":{"$ref":"#/$defs/Workbench.WorkbenchServerId"},"selected_tool_name":{"type":"string","maxLength":1024},"input_mode":{"$ref":"#/$defs/Workbench.WorkbenchToolInputMode"},"active_panel":{"type":"string","maxLength":128},"compact_mode":{"type":"boolean"}},"unevaluatedProperties":{"not":{}},"description":"Request to replace saved presentation preferences for one authenticated MCP workspace."},"Workbench.WorkbenchWorkspaceUpdateRequest":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":120},"description":{"type":"string","maxLength":2000}},"unevaluatedProperties":{"not":{}},"description":"Request to update mutable MCP workbench workspace metadata."},"Workflow.DerivedWorkflowEdgeProvenance":{"type":"object","required":["type","event_ids","evidence","confidence"],"properties":{"type":{"type":"string","enum":["derived"]},"event_ids":{"type":"array","items":{"$ref":"#/$defs/Workflow.WorkflowEventId"},"minItems":1},"evidence":{"type":"string"},"confidence":{"$ref":"#/$defs/Common.Ratio"}},"unevaluatedProperties":{"not":{}},"description":"Derived edge provenance with explicit evidence and confidence."},"Workflow.RecordedWorkflowEdgeProvenance":{"type":"object","required":["type","event_ids"],"properties":{"type":{"type":"string","enum":["recorded"]},"event_ids":{"type":"array","items":{"$ref":"#/$defs/Workflow.WorkflowEventId"},"minItems":1}},"unevaluatedProperties":{"not":{}},"description":"Recorded edge provenance directly observed from Codex."},"Workflow.WorkflowAgentId":{"type":"string","minLength":1,"maxLength":128,"description":"Stable identifier of one agent within a workflow run."},"Workflow.WorkflowAgentStatus":{"type":"string","enum":["pending","running","waiting","succeeded","failed","interrupted"],"description":"Current lifecycle of an observed workflow agent."},"Workflow.WorkflowAttemptId":{"type":"string","minLength":1,"maxLength":128,"description":"Stable identifier of one workflow attempt."},"Workflow.WorkflowAttemptStatus":{"type":"string","enum":["pending","running","succeeded","failed","interrupted"],"description":"Current lifecycle of one workflow attempt."},"Workflow.WorkflowCommandId":{"type":"string","minLength":1,"maxLength":128,"description":"Stable identifier of one run-level control command."},"Workflow.WorkflowContent":{"type":"object","required":["content_ref","content_type","encoding","content","size_bytes"],"properties":{"content_ref":{"$ref":"#/$defs/Workflow.WorkflowContentRef"},"content_type":{"$ref":"#/$defs/Common.ContentType"},"encoding":{"$ref":"#/$defs/Workflow.WorkflowContentEncoding"},"content":{"type":"string"},"size_bytes":{"$ref":"#/$defs/Common.ByteSize"}},"unevaluatedProperties":{"not":{}},"description":"Lazily retrieved captured workflow content."},"Workflow.WorkflowContentChunk":{"type":"object","required":["content_ref","content_type","encoding","content"],"properties":{"content_ref":{"$ref":"#/$defs/Workflow.WorkflowContentRef"},"content_type":{"$ref":"#/$defs/Common.ContentType"},"encoding":{"$ref":"#/$defs/Workflow.WorkflowContentEncoding"},"content":{"type":"string","maxLength":1398104,"description":"UTF-8 text or base64 bytes, according to encoding."}},"unevaluatedProperties":{"not":{}},"description":"One captured payload supplied with an append batch."},"Workflow.WorkflowContentEncoding":{"type":"string","enum":["utf8","base64"],"description":"Encoding used when lazily returning captured workflow content."},"Workflow.WorkflowContentRef":{"type":"string","minLength":71,"maxLength":71,"pattern":"^sha256:[a-f0-9]{64}$","description":"Content-addressed reference to a captured workflow payload."},"Workflow.WorkflowControlAction":{"type":"string","enum":["steer","interrupt","resume"],"description":"Control operation supported by the Codex app-server boundary."},"Workflow.WorkflowControlCommand":{"type":"object","required":["command_id","run_id","action","status","idempotency_key","requested_at","updated_at","command_sequence"],"properties":{"command_id":{"$ref":"#/$defs/Workflow.WorkflowCommandId"},"run_id":{"$ref":"#/$defs/Workflow.WorkflowRunId"},"action":{"$ref":"#/$defs/Workflow.WorkflowControlAction"},"status":{"$ref":"#/$defs/Workflow.WorkflowControlStatus"},"idempotency_key":{"type":"string"},"input":{"type":"string"},"requested_at":{"type":"string","format":"date-time"},"updated_at":{"type":"string","format":"date-time"},"command_sequence":{"$ref":"#/$defs/Workflow.WorkflowSequence"},"error":{"type":"string"}},"unevaluatedProperties":{"not":{}},"description":"Durable run-level control command."},"Workflow.WorkflowControlCommandPage":{"type":"object","required":["commands","next_sequence"],"properties":{"commands":{"type":"array","items":{"$ref":"#/$defs/Workflow.WorkflowControlCommand"}},"next_sequence":{"$ref":"#/$defs/Workflow.WorkflowSequence"}},"unevaluatedProperties":{"not":{}},"description":"Page of control commands polled by the launcher-owned outbound adapter."},"Workflow.WorkflowControlRequest":{"type":"object","required":["action","idempotency_key"],"properties":{"action":{"$ref":"#/$defs/Workflow.WorkflowControlAction"},"idempotency_key":{"type":"string","minLength":1,"maxLength":160},"input":{"type":"string","maxLength":32768,"description":"Text appended by steer or resume. Omit for interrupt."}},"unevaluatedProperties":{"not":{}},"description":"Request to enqueue one idempotent run-level control command."},"Workflow.WorkflowControlStatus":{"type":"string","enum":["requested","accepted","applied","rejected","failed"],"description":"Durable lifecycle of a workflow control command."},"Workflow.WorkflowControlStatusUpdateRequest":{"type":"object","required":["status"],"properties":{"status":{"$ref":"#/$defs/Workflow.WorkflowControlStatus"},"error":{"type":"string"},"occurred_at":{"type":"string","format":"date-time","description":"When the reported transition actually occurred at the adapter that executed\\nit. The journal event minted for this transition carries this clock — the\\noriginating agent's — so control events order and measure consistently with\\nthe agent-clocked events around them; omitted, the collector's receipt time\\nis the fallback."}},"unevaluatedProperties":{"not":{}},"description":"Adapter acknowledgement or terminal result for one control command."},"Workflow.WorkflowCursorGapEvent":{"type":"object","required":["type","oldest_available_sequence","high_water_mark","timestamp"],"properties":{"type":{"type":"string","enum":["cursor_gap"]},"oldest_available_sequence":{"$ref":"#/$defs/Workflow.WorkflowSequence"},"high_water_mark":{"$ref":"#/$defs/Workflow.WorkflowSequence"},"timestamp":{"type":"string","format":"date-time"}},"unevaluatedProperties":{"not":{}},"description":"Signals that the requested cursor predates retained workflow history."},"Workflow.WorkflowEdgeKind":{"type":"string","enum":["data","control","conflict","resource","gate","temporal"],"description":"Semantic relationship represented by a workflow graph edge."},"Workflow.WorkflowEdgeProvenance":{"anyOf":[{"$ref":"#/$defs/Workflow.RecordedWorkflowEdgeProvenance"},{"$ref":"#/$defs/Workflow.DerivedWorkflowEdgeProvenance"}],"description":"Provenance for one workflow graph edge."},"Workflow.WorkflowEventAppend":{"type":"object","required":["event_id","source_sequence","timestamp","kind"],"properties":{"event_id":{"$ref":"#/$defs/Workflow.WorkflowEventId"},"source_sequence":{"$ref":"#/$defs/Workflow.WorkflowSequence"},"timestamp":{"type":"string","format":"date-time"},"kind":{"$ref":"#/$defs/Workflow.WorkflowJournalEventKind"},"thread_id":{"type":"string"},"turn_id":{"type":"string"},"attempt_id":{"$ref":"#/$defs/Workflow.WorkflowAttemptId"},"agent_id":{"$ref":"#/$defs/Workflow.WorkflowAgentId"},"parent_agent_id":{"$ref":"#/$defs/Workflow.WorkflowAgentId"},"receiver_agent_id":{"$ref":"#/$defs/Workflow.WorkflowAgentId"},"tool_call_id":{"$ref":"#/$defs/Workflow.WorkflowToolCallId"},"content_refs":{"type":"array","items":{"$ref":"#/$defs/Workflow.WorkflowContentRef"},"maxItems":64},"data":{"type":"object","unevaluatedProperties":{}}},"description":"One source-ordered immutable journal event awaiting collector sequence assignment."},"Workflow.WorkflowEventBatchAppendRequest":{"type":"object","required":["client_id","events"],"properties":{"client_id":{"type":"string","minLength":1,"maxLength":128},"events":{"type":"array","items":{"$ref":"#/$defs/Workflow.WorkflowEventAppend"},"minItems":1,"maxItems":500},"content":{"type":"array","items":{"$ref":"#/$defs/Workflow.WorkflowContentChunk"},"maxItems":500}},"unevaluatedProperties":{"not":{}},"description":"Idempotent append batch from one observer client."},"Workflow.WorkflowEventBatchAppendResponse":{"type":"object","required":["accepted_count","duplicate_count","acknowledged_source_sequence"],"properties":{"accepted_count":{"type":"integer","format":"int32","minimum":0},"duplicate_count":{"type":"integer","format":"int32","minimum":0},"acknowledged_source_sequence":{"$ref":"#/$defs/Workflow.WorkflowSequence"},"first_journal_sequence":{"$ref":"#/$defs/Workflow.WorkflowSequence"},"last_journal_sequence":{"$ref":"#/$defs/Workflow.WorkflowSequence"}},"unevaluatedProperties":{"not":{}},"description":"Collector acknowledgement for an idempotent workflow-event append."},"Workflow.WorkflowEventId":{"type":"string","minLength":1,"maxLength":160,"description":"Stable identifier of one immutable journal event."},"Workflow.WorkflowEventPage":{"type":"object","required":["events","next_sequence","high_water_mark","cursor_gap"],"properties":{"events":{"type":"array","items":{"$ref":"#/$defs/Workflow.WorkflowJournalEvent"}},"next_sequence":{"$ref":"#/$defs/Workflow.WorkflowSequence"},"high_water_mark":{"$ref":"#/$defs/Workflow.WorkflowSequence"},"cursor_gap":{"type":"boolean"}},"unevaluatedProperties":{"not":{}},"description":"A bounded page of workflow journal events."},"Workflow.WorkflowGraphEdge":{"type":"object","required":["edge_id","source_node_id","target_node_id","kind","provenance"],"properties":{"edge_id":{"type":"string"},"source_node_id":{"$ref":"#/$defs/Workflow.WorkflowNodeId"},"target_node_id":{"$ref":"#/$defs/Workflow.WorkflowNodeId"},"kind":{"$ref":"#/$defs/Workflow.WorkflowEdgeKind"},"provenance":{"$ref":"#/$defs/Workflow.WorkflowEdgeProvenance"}},"unevaluatedProperties":{"not":{}},"description":"One typed edge in the deterministic workflow graph projection."},"Workflow.WorkflowGraphNode":{"type":"object","required":["node_id","kind","label","status"],"properties":{"node_id":{"$ref":"#/$defs/Workflow.WorkflowNodeId"},"kind":{"$ref":"#/$defs/Workflow.WorkflowNodeKind"},"label":{"type":"string"},"status":{"type":"string"},"attempt_id":{"$ref":"#/$defs/Workflow.WorkflowAttemptId"},"agent_id":{"$ref":"#/$defs/Workflow.WorkflowAgentId"},"started_at":{"type":"string","format":"date-time"},"ended_at":{"type":"string","format":"date-time"},"duration_ms":{"$ref":"#/$defs/Common.DurationMs"},"content_refs":{"type":"array","items":{"$ref":"#/$defs/Workflow.WorkflowContentRef"}},"attributes":{"type":"object","unevaluatedProperties":{}}},"unevaluatedProperties":{"not":{}},"description":"One node in the deterministic workflow graph projection."},"Workflow.WorkflowGraphSnapshot":{"type":"object","required":["run","nodes","edges","statistics","journal_sequence","has_more_nodes","has_more_edges","total_node_count","total_edge_count"],"properties":{"run":{"$ref":"#/$defs/Workflow.WorkflowRun"},"nodes":{"type":"array","items":{"$ref":"#/$defs/Workflow.WorkflowGraphNode"}},"edges":{"type":"array","items":{"$ref":"#/$defs/Workflow.WorkflowGraphEdge"}},"statistics":{"$ref":"#/$defs/Workflow.WorkflowGraphStatistics"},"journal_sequence":{"$ref":"#/$defs/Workflow.WorkflowSequence"},"next_node_cursor":{"type":"string"},"next_edge_cursor":{"type":"string"},"has_more_nodes":{"type":"boolean"},"has_more_edges":{"type":"boolean"},"total_node_count":{"type":"integer","format":"int32","minimum":0},"total_edge_count":{"type":"integer","format":"int32","minimum":0}},"unevaluatedProperties":{"not":{}},"description":"Deterministic graph projection at one journal cursor."},"Workflow.WorkflowGraphStatistics":{"type":"object","required":["t1_ms","t_infinity_ms","wall_time_ms","peak_concurrency","worker_count","parallel_lower_bound_ms","critical_path_node_ids"],"properties":{"t1_ms":{"$ref":"#/$defs/Common.DurationMs"},"t_infinity_ms":{"$ref":"#/$defs/Common.DurationMs"},"wall_time_ms":{"$ref":"#/$defs/Common.DurationMs"},"peak_concurrency":{"type":"integer","format":"int32","minimum":0},"worker_count":{"type":"integer","format":"int32","minimum":1},"parallel_lower_bound_ms":{"$ref":"#/$defs/Common.DurationMs"},"critical_path_node_ids":{"type":"array","items":{"$ref":"#/$defs/Workflow.WorkflowNodeId"}}},"unevaluatedProperties":{"not":{}},"description":"Work and critical-path statistics for a workflow graph."},"Workflow.WorkflowHeartbeatEvent":{"type":"object","required":["type","high_water_mark","timestamp"],"properties":{"type":{"type":"string","enum":["heartbeat"]},"high_water_mark":{"$ref":"#/$defs/Workflow.WorkflowSequence"},"timestamp":{"type":"string","format":"date-time"}},"unevaluatedProperties":{"not":{}},"description":"Keep-alive emitted while a workflow event stream has no new event."},"Workflow.WorkflowJournalEvent":{"type":"object","required":["run_id","client_id","journal_sequence"],"properties":{"run_id":{"$ref":"#/$defs/Workflow.WorkflowRunId"},"client_id":{"type":"string"},"journal_sequence":{"$ref":"#/$defs/Workflow.WorkflowSequence"}},"unevaluatedProperties":{"not":{}},"allOf":[{"$ref":"#/$defs/Workflow.WorkflowEventAppend"}],"description":"One immutable event after collector journal sequence assignment."},"Workflow.WorkflowJournalEventKind":{"type":"string","enum":["run_created","run_completed","thread_started","thread_resumed","turn_started","turn_completed","turn_interrupted","attempt_started","attempt_completed","agent_spawned","agent_started","agent_completed","message_sent","message_received","wait_started","wait_completed","joined","item_started","item_completed","tool_started","tool_completed","approval_requested","approval_resolved","content_captured","file_written","control_requested","control_accepted","control_applied","control_rejected","control_failed"],"description":"Immutable journal event kinds accepted from a Codex observer."},"Workflow.WorkflowNodeId":{"type":"string","minLength":1,"maxLength":192,"description":"Stable identifier of one graph node."},"Workflow.WorkflowNodeKind":{"type":"string","enum":["run","attempt","turn","agent","tool_call","message","wait","gate","resource"],"description":"Kinds of execution node in the deterministic workflow graph."},"Workflow.WorkflowRun":{"type":"object","required":["run_id","status","started_at","latest_journal_sequence"],"properties":{"run_id":{"$ref":"#/$defs/Workflow.WorkflowRunId"},"thread_id":{"type":"string"},"title":{"type":"string"},"status":{"$ref":"#/$defs/Workflow.WorkflowRunStatus"},"started_at":{"type":"string","format":"date-time"},"ended_at":{"type":"string","format":"date-time"},"latest_journal_sequence":{"$ref":"#/$defs/Workflow.WorkflowSequence"},"active_attempt_id":{"$ref":"#/$defs/Workflow.WorkflowAttemptId"},"metadata":{"type":"object","unevaluatedProperties":{}}},"unevaluatedProperties":{"not":{}},"description":"One immutable workflow run."},"Workflow.WorkflowRunCreateRequest":{"type":"object","required":["run_id","started_at"],"properties":{"run_id":{"$ref":"#/$defs/Workflow.WorkflowRunId"},"thread_id":{"type":"string"},"title":{"type":"string"},"started_at":{"type":"string","format":"date-time"},"metadata":{"type":"object","unevaluatedProperties":{}}},"unevaluatedProperties":{"not":{}},"description":"Request to create an observed workflow run before appending journal events."},"Workflow.WorkflowRunId":{"type":"string","minLength":1,"maxLength":128,"description":"Stable identifier of one observed Codex workflow run."},"Workflow.WorkflowRunPage":{"type":"object","required":["items","has_more"],"properties":{"items":{"type":"array","items":{"$ref":"#/$defs/Workflow.WorkflowRun"}},"next_cursor":{"type":"string"},"has_more":{"type":"boolean"}},"unevaluatedProperties":{"not":{}},"description":"Cursor page of workflow runs."},"Workflow.WorkflowRunStatus":{"type":"string","enum":["active","completed","failed","interrupted"],"description":"Current lifecycle of a workflow run."},"Workflow.WorkflowSequence":{"type":"string","format":"uint64","description":"Unsigned source or collector journal sequence encoded without JavaScript precision loss.","pattern":"^(0|[1-9][0-9]*)$","maxLength":20},"Workflow.WorkflowStreamEvents":{"anyOf":[{"$ref":"#/$defs/Workflow.WorkflowJournalEvent"},{"$ref":"#/$defs/Workflow.WorkflowHeartbeatEvent"},{"$ref":"#/$defs/Workflow.WorkflowCursorGapEvent"}]},"Workflow.WorkflowToolCallId":{"type":"string","minLength":1,"maxLength":128,"description":"Stable identifier of one tool call within a workflow run."},"Workflow.WorkflowToolCallStatus":{"type":"string","enum":["requested","running","succeeded","failed","rejected"],"description":"Current lifecycle of an observed tool call."},"Operations.LogsApi_list.Response.200":{"type":"object","required":["items","has_more"],"properties":{"items":{"type":"array","items":{"$ref":"#/$defs/OTel.Logs.LogRecord"},"description":"List of items in this page"},"next_cursor":{"type":"string","description":"Cursor for the next page (null if no more pages)"},"prev_cursor":{"type":"string","description":"Cursor for the previous page (null if first page)"},"has_more":{"type":"boolean","description":"Whether there are more items available"}},"unevaluatedProperties":{"not":{}},"description":"Cursor-based paginated response wrapper"},"Operations.LogsApi_list.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.LogsApi_list.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.LogsApi_list.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.RunnerResourcesApi_logs.Response.200":{"type":"array","items":{"$ref":"#/$defs/Runner.RunnerLogLine"}},"Operations.RunnerResourcesApi_logs.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.RunnerResourcesApi_logs.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.RunnerResourcesApi_logs.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.RunnerResourcesApi_logs.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.RunnerResourcesApi_restart.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.RunnerResourcesApi_restart.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.RunnerResourcesApi_restart.Response.409":{"$ref":"#/$defs/Common.Errors.ConflictError"},"Operations.RunnerResourcesApi_restart.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.RunnerResourcesApi_restart.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.RunnerResourcesApi_snapshot.Response.200":{"type":"array","items":{"$ref":"#/$defs/Runner.RunnerResourceState"}},"Operations.RunnerResourcesApi_snapshot.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.RunnerResourcesApi_snapshot.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.RunnerResourcesApi_snapshot.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.RunnerResourcesApi_stop.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.RunnerResourcesApi_stop.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.RunnerResourcesApi_stop.Response.409":{"$ref":"#/$defs/Common.Errors.ConflictError"},"Operations.RunnerResourcesApi_stop.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.RunnerResourcesApi_stop.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.RunnerResourcesApi_stream.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.RunnerResourcesApi_stream.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.RunnerResourcesApi_stream.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.RunnerResourcesApi_streamLogs.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.RunnerResourcesApi_streamLogs.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.RunnerResourcesApi_streamLogs.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.RunnerResourcesApi_streamLogs.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.SessionsApi_get.Response.200":{"$ref":"#/$defs/Domains.Observe.Session.SessionEntity"},"Operations.SessionsApi_get.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.SessionsApi_get.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.SessionsApi_get.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.SessionsApi_getStats.Response.200":{"$ref":"#/$defs/Domains.Observe.Session.SessionStats"},"Operations.SessionsApi_getStats.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.SessionsApi_getStats.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.SessionsApi_getStats.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.SessionsApi_getTraces.Response.200":{"type":"object","required":["items","has_more"],"properties":{"items":{"type":"array","items":{"$ref":"#/$defs/OTel.Traces.Trace"},"description":"List of items in this page"},"next_cursor":{"type":"string","description":"Cursor for the next page (null if no more pages)"},"prev_cursor":{"type":"string","description":"Cursor for the previous page (null if first page)"},"has_more":{"type":"boolean","description":"Whether there are more items available"}},"unevaluatedProperties":{"not":{}},"description":"Cursor-based paginated response wrapper"},"Operations.SessionsApi_getTraces.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.SessionsApi_getTraces.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.SessionsApi_getTraces.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.SessionsApi_list.Response.200":{"type":"object","required":["items","has_more"],"properties":{"items":{"type":"array","items":{"$ref":"#/$defs/Domains.Observe.Session.SessionEntity"},"description":"List of items in this page"},"next_cursor":{"type":"string","description":"Cursor for the next page (null if no more pages)"},"prev_cursor":{"type":"string","description":"Cursor for the previous page (null if first page)"},"has_more":{"type":"boolean","description":"Whether there are more items available"}},"unevaluatedProperties":{"not":{}},"description":"Cursor-based paginated response wrapper"},"Operations.SessionsApi_list.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.SessionsApi_list.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.SessionsApi_list.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.StreamingApi_streamLogs.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.StreamingApi_streamLogs.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.StreamingApi_streamLogs.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.StreamingApi_streamLogs.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.TracesApi_get.Response.200":{"$ref":"#/$defs/OTel.Traces.Trace"},"Operations.TracesApi_get.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.TracesApi_get.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.TracesApi_get.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.TracesApi_getSpans.Response.200":{"type":"object","required":["items","has_more"],"properties":{"items":{"type":"array","items":{"$ref":"#/$defs/OTel.Traces.Span"},"description":"List of items in this page"},"next_cursor":{"type":"string","description":"Cursor for the next page (null if no more pages)"},"prev_cursor":{"type":"string","description":"Cursor for the previous page (null if first page)"},"has_more":{"type":"boolean","description":"Whether there are more items available"}},"unevaluatedProperties":{"not":{}},"description":"Cursor-based paginated response wrapper"},"Operations.TracesApi_getSpans.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.TracesApi_getSpans.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.TracesApi_getSpans.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.TracesApi_list.Response.200":{"type":"object","required":["items","has_more"],"properties":{"items":{"type":"array","items":{"$ref":"#/$defs/OTel.Traces.Trace"},"description":"List of items in this page"},"next_cursor":{"type":"string","description":"Cursor for the next page (null if no more pages)"},"prev_cursor":{"type":"string","description":"Cursor for the previous page (null if first page)"},"has_more":{"type":"boolean","description":"Whether there are more items available"}},"unevaluatedProperties":{"not":{}},"description":"Cursor-based paginated response wrapper"},"Operations.TracesApi_list.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.TracesApi_list.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.TracesApi_list.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkbenchEvaluationRunsApi_compare.Request":{"$ref":"#/$defs/Workbench.WorkbenchEvaluationComparisonRequest"},"Operations.WorkbenchEvaluationRunsApi_compare.Response.200":{"$ref":"#/$defs/Workbench.WorkbenchEvaluationRunComparison"},"Operations.WorkbenchEvaluationRunsApi_compare.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.WorkbenchEvaluationRunsApi_compare.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkbenchEvaluationRunsApi_compare.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.WorkbenchEvaluationRunsApi_compare.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.WorkbenchEvaluationRunsApi_compare.Response.409":{"$ref":"#/$defs/Common.Errors.ConflictError"},"Operations.WorkbenchEvaluationRunsApi_compare.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkbenchEvaluationRunsApi_compare.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkbenchEvaluationRunsApi_export.Request":{"$ref":"#/$defs/Workbench.WorkbenchEvaluationExportRequest"},"Operations.WorkbenchEvaluationRunsApi_export.Response.202":{"$ref":"#/$defs/Workbench.WorkbenchEvaluationExportAccepted"},"Operations.WorkbenchEvaluationRunsApi_export.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.WorkbenchEvaluationRunsApi_export.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkbenchEvaluationRunsApi_export.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.WorkbenchEvaluationRunsApi_export.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.WorkbenchEvaluationRunsApi_export.Response.409":{"$ref":"#/$defs/Common.Errors.ConflictError"},"Operations.WorkbenchEvaluationRunsApi_export.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkbenchEvaluationRunsApi_export.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkbenchEvaluationRunsApi_get.Response.200":{"$ref":"#/$defs/Workbench.WorkbenchEvaluationRun"},"Operations.WorkbenchEvaluationRunsApi_get.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkbenchEvaluationRunsApi_get.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.WorkbenchEvaluationRunsApi_get.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.WorkbenchEvaluationRunsApi_get.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkbenchEvaluationRunsApi_get.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkbenchEvaluationRunsApi_getExport.Response.200":{"$ref":"#/$defs/Workbench.WorkbenchEvaluationExport"},"Operations.WorkbenchEvaluationRunsApi_getExport.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkbenchEvaluationRunsApi_getExport.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.WorkbenchEvaluationRunsApi_getExport.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.WorkbenchEvaluationRunsApi_getExport.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkbenchEvaluationRunsApi_getExport.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkbenchEvaluationRunsApi_getExportContent.Response.200":{"$ref":"#/$defs/Workbench.WorkbenchEvaluationExportArtifact"},"Operations.WorkbenchEvaluationRunsApi_getExportContent.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkbenchEvaluationRunsApi_getExportContent.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.WorkbenchEvaluationRunsApi_getExportContent.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.WorkbenchEvaluationRunsApi_getExportContent.Response.409":{"$ref":"#/$defs/Common.Errors.ConflictError"},"Operations.WorkbenchEvaluationRunsApi_getExportContent.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkbenchEvaluationRunsApi_getExportContent.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkbenchEvaluationRunsApi_list.Response.200":{"$ref":"#/$defs/Workbench.WorkbenchEvaluationRunPage"},"Operations.WorkbenchEvaluationRunsApi_list.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.WorkbenchEvaluationRunsApi_list.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkbenchEvaluationRunsApi_list.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.WorkbenchEvaluationRunsApi_list.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.WorkbenchEvaluationRunsApi_list.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkbenchEvaluationRunsApi_list.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkbenchExecutionsApi_cancel.Request":{"$ref":"#/$defs/Workbench.WorkbenchExecutionCancelRequest"},"Operations.WorkbenchExecutionsApi_cancel.Response.202":{"$ref":"#/$defs/Workbench.WorkbenchExecutionAccepted"},"Operations.WorkbenchExecutionsApi_cancel.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.WorkbenchExecutionsApi_cancel.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkbenchExecutionsApi_cancel.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.WorkbenchExecutionsApi_cancel.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.WorkbenchExecutionsApi_cancel.Response.409":{"$ref":"#/$defs/Common.Errors.ConflictError"},"Operations.WorkbenchExecutionsApi_cancel.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkbenchExecutionsApi_cancel.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkbenchExecutionsApi_get.Response.200":{"$ref":"#/$defs/Workbench.WorkbenchExecutionRecord"},"Operations.WorkbenchExecutionsApi_get.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkbenchExecutionsApi_get.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.WorkbenchExecutionsApi_get.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.WorkbenchExecutionsApi_get.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkbenchExecutionsApi_get.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkbenchExecutionsApi_list.Response.200":{"$ref":"#/$defs/Workbench.WorkbenchExecutionPage"},"Operations.WorkbenchExecutionsApi_list.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.WorkbenchExecutionsApi_list.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkbenchExecutionsApi_list.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.WorkbenchExecutionsApi_list.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.WorkbenchExecutionsApi_list.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkbenchExecutionsApi_list.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkbenchExecutionsApi_start.Request":{"$ref":"#/$defs/Workbench.WorkbenchExecutionRequest"},"Operations.WorkbenchExecutionsApi_start.Response.202":{"$ref":"#/$defs/Workbench.WorkbenchExecutionAccepted"},"Operations.WorkbenchExecutionsApi_start.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.WorkbenchExecutionsApi_start.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkbenchExecutionsApi_start.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.WorkbenchExecutionsApi_start.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.WorkbenchExecutionsApi_start.Response.409":{"$ref":"#/$defs/Common.Errors.ConflictError"},"Operations.WorkbenchExecutionsApi_start.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkbenchExecutionsApi_start.Response.502":{"$ref":"#/$defs/Common.Errors.BadGatewayError"},"Operations.WorkbenchExecutionsApi_start.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkbenchExecutionsApi_streamUpdates.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkbenchExecutionsApi_streamUpdates.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.WorkbenchExecutionsApi_streamUpdates.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.WorkbenchExecutionsApi_streamUpdates.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkbenchExecutionsApi_streamUpdates.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkbenchExecutionsApi_telemetry.Response.200":{"$ref":"#/$defs/Workbench.WorkbenchExecutionTelemetryResponse"},"Operations.WorkbenchExecutionsApi_telemetry.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkbenchExecutionsApi_telemetry.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.WorkbenchExecutionsApi_telemetry.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.WorkbenchExecutionsApi_telemetry.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkbenchExecutionsApi_telemetry.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkbenchServersApi_connect.Response.202":{"$ref":"#/$defs/Workbench.WorkbenchServerActionAccepted"},"Operations.WorkbenchServersApi_connect.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkbenchServersApi_connect.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.WorkbenchServersApi_connect.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.WorkbenchServersApi_connect.Response.409":{"$ref":"#/$defs/Common.Errors.ConflictError"},"Operations.WorkbenchServersApi_connect.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkbenchServersApi_connect.Response.502":{"$ref":"#/$defs/Common.Errors.BadGatewayError"},"Operations.WorkbenchServersApi_connect.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkbenchServersApi_create.Request":{"$ref":"#/$defs/Workbench.WorkbenchServerCreateRequest"},"Operations.WorkbenchServersApi_create.Response.200":{"$ref":"#/$defs/Workbench.WorkbenchServer"},"Operations.WorkbenchServersApi_create.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.WorkbenchServersApi_create.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkbenchServersApi_create.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.WorkbenchServersApi_create.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.WorkbenchServersApi_create.Response.409":{"$ref":"#/$defs/Common.Errors.ConflictError"},"Operations.WorkbenchServersApi_create.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkbenchServersApi_create.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkbenchServersApi_delete.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkbenchServersApi_delete.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.WorkbenchServersApi_delete.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.WorkbenchServersApi_delete.Response.409":{"$ref":"#/$defs/Common.Errors.ConflictError"},"Operations.WorkbenchServersApi_delete.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkbenchServersApi_delete.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkbenchServersApi_disconnect.Response.202":{"$ref":"#/$defs/Workbench.WorkbenchServerActionAccepted"},"Operations.WorkbenchServersApi_disconnect.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkbenchServersApi_disconnect.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.WorkbenchServersApi_disconnect.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.WorkbenchServersApi_disconnect.Response.409":{"$ref":"#/$defs/Common.Errors.ConflictError"},"Operations.WorkbenchServersApi_disconnect.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkbenchServersApi_disconnect.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkbenchServersApi_discovery.Response.200":{"$ref":"#/$defs/Workbench.WorkbenchDiscoverySnapshot"},"Operations.WorkbenchServersApi_discovery.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkbenchServersApi_discovery.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.WorkbenchServersApi_discovery.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.WorkbenchServersApi_discovery.Response.409":{"$ref":"#/$defs/Common.Errors.ConflictError"},"Operations.WorkbenchServersApi_discovery.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkbenchServersApi_discovery.Response.502":{"$ref":"#/$defs/Common.Errors.BadGatewayError"},"Operations.WorkbenchServersApi_discovery.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkbenchServersApi_get.Response.200":{"$ref":"#/$defs/Workbench.WorkbenchServer"},"Operations.WorkbenchServersApi_get.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkbenchServersApi_get.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.WorkbenchServersApi_get.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.WorkbenchServersApi_get.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkbenchServersApi_get.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkbenchServersApi_list.Response.200":{"$ref":"#/$defs/Workbench.WorkbenchServerListResponse"},"Operations.WorkbenchServersApi_list.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkbenchServersApi_list.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.WorkbenchServersApi_list.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.WorkbenchServersApi_list.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkbenchServersApi_list.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkbenchServersApi_protocolEvents.Response.200":{"$ref":"#/$defs/Workbench.WorkbenchProtocolEventPage"},"Operations.WorkbenchServersApi_protocolEvents.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.WorkbenchServersApi_protocolEvents.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkbenchServersApi_protocolEvents.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.WorkbenchServersApi_protocolEvents.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.WorkbenchServersApi_protocolEvents.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkbenchServersApi_protocolEvents.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkbenchServersApi_reconnect.Response.202":{"$ref":"#/$defs/Workbench.WorkbenchServerActionAccepted"},"Operations.WorkbenchServersApi_reconnect.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkbenchServersApi_reconnect.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.WorkbenchServersApi_reconnect.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.WorkbenchServersApi_reconnect.Response.409":{"$ref":"#/$defs/Common.Errors.ConflictError"},"Operations.WorkbenchServersApi_reconnect.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkbenchServersApi_reconnect.Response.502":{"$ref":"#/$defs/Common.Errors.BadGatewayError"},"Operations.WorkbenchServersApi_reconnect.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkbenchServersApi_refreshDiscovery.Response.200":{"$ref":"#/$defs/Workbench.WorkbenchDiscoverySnapshot"},"Operations.WorkbenchServersApi_refreshDiscovery.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkbenchServersApi_refreshDiscovery.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.WorkbenchServersApi_refreshDiscovery.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.WorkbenchServersApi_refreshDiscovery.Response.409":{"$ref":"#/$defs/Common.Errors.ConflictError"},"Operations.WorkbenchServersApi_refreshDiscovery.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkbenchServersApi_refreshDiscovery.Response.502":{"$ref":"#/$defs/Common.Errors.BadGatewayError"},"Operations.WorkbenchServersApi_refreshDiscovery.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkbenchServersApi_streamProtocolEvents.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkbenchServersApi_streamProtocolEvents.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.WorkbenchServersApi_streamProtocolEvents.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.WorkbenchServersApi_streamProtocolEvents.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkbenchServersApi_streamProtocolEvents.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkbenchServersApi_update.Request":{"$ref":"#/$defs/Workbench.WorkbenchServerUpdateRequest"},"Operations.WorkbenchServersApi_update.Response.200":{"$ref":"#/$defs/Workbench.WorkbenchServer"},"Operations.WorkbenchServersApi_update.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.WorkbenchServersApi_update.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkbenchServersApi_update.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.WorkbenchServersApi_update.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.WorkbenchServersApi_update.Response.409":{"$ref":"#/$defs/Common.Errors.ConflictError"},"Operations.WorkbenchServersApi_update.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkbenchServersApi_update.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkbenchSessionApi_bootstrap.Response.200":{"$ref":"#/$defs/Workbench.WorkbenchSessionBootstrapResponse"},"Operations.WorkbenchSessionApi_bootstrap.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkbenchSessionApi_bootstrap.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.WorkbenchSessionApi_bootstrap.Response.409":{"$ref":"#/$defs/Common.Errors.ConflictError"},"Operations.WorkbenchSessionApi_bootstrap.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkbenchSessionApi_bootstrap.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkbenchSessionApi_get.Response.200":{"$ref":"#/$defs/Workbench.WorkbenchSession"},"Operations.WorkbenchSessionApi_get.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkbenchSessionApi_get.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.WorkbenchSessionApi_get.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkbenchSessionApi_get.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkbenchSuitesApi_create.Request":{"$ref":"#/$defs/Workbench.WorkbenchTestSuiteCreateRequest"},"Operations.WorkbenchSuitesApi_create.Response.200":{"$ref":"#/$defs/Workbench.WorkbenchTestSuite"},"Operations.WorkbenchSuitesApi_create.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.WorkbenchSuitesApi_create.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkbenchSuitesApi_create.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.WorkbenchSuitesApi_create.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.WorkbenchSuitesApi_create.Response.409":{"$ref":"#/$defs/Common.Errors.ConflictError"},"Operations.WorkbenchSuitesApi_create.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkbenchSuitesApi_create.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkbenchSuitesApi_delete.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkbenchSuitesApi_delete.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.WorkbenchSuitesApi_delete.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.WorkbenchSuitesApi_delete.Response.409":{"$ref":"#/$defs/Common.Errors.ConflictError"},"Operations.WorkbenchSuitesApi_delete.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkbenchSuitesApi_delete.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkbenchSuitesApi_get.Response.200":{"$ref":"#/$defs/Workbench.WorkbenchTestSuite"},"Operations.WorkbenchSuitesApi_get.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkbenchSuitesApi_get.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.WorkbenchSuitesApi_get.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.WorkbenchSuitesApi_get.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkbenchSuitesApi_get.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkbenchSuitesApi_list.Response.200":{"$ref":"#/$defs/Workbench.WorkbenchTestSuitePage"},"Operations.WorkbenchSuitesApi_list.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.WorkbenchSuitesApi_list.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkbenchSuitesApi_list.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.WorkbenchSuitesApi_list.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.WorkbenchSuitesApi_list.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkbenchSuitesApi_list.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkbenchSuitesApi_run.Request":{"$ref":"#/$defs/Workbench.WorkbenchSuiteRunRequest"},"Operations.WorkbenchSuitesApi_run.Response.202":{"$ref":"#/$defs/Workbench.WorkbenchEvaluationRunAccepted"},"Operations.WorkbenchSuitesApi_run.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.WorkbenchSuitesApi_run.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkbenchSuitesApi_run.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.WorkbenchSuitesApi_run.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.WorkbenchSuitesApi_run.Response.409":{"$ref":"#/$defs/Common.Errors.ConflictError"},"Operations.WorkbenchSuitesApi_run.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkbenchSuitesApi_run.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkbenchSuitesApi_update.Request":{"$ref":"#/$defs/Workbench.WorkbenchTestSuiteUpdateRequest"},"Operations.WorkbenchSuitesApi_update.Response.200":{"$ref":"#/$defs/Workbench.WorkbenchTestSuite"},"Operations.WorkbenchSuitesApi_update.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.WorkbenchSuitesApi_update.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkbenchSuitesApi_update.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.WorkbenchSuitesApi_update.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.WorkbenchSuitesApi_update.Response.409":{"$ref":"#/$defs/Common.Errors.ConflictError"},"Operations.WorkbenchSuitesApi_update.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkbenchSuitesApi_update.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkbenchTestCasesApi_create.Request":{"$ref":"#/$defs/Workbench.WorkbenchTestCaseCreateRequest"},"Operations.WorkbenchTestCasesApi_create.Response.200":{"$ref":"#/$defs/Workbench.WorkbenchTestCase"},"Operations.WorkbenchTestCasesApi_create.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.WorkbenchTestCasesApi_create.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkbenchTestCasesApi_create.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.WorkbenchTestCasesApi_create.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.WorkbenchTestCasesApi_create.Response.409":{"$ref":"#/$defs/Common.Errors.ConflictError"},"Operations.WorkbenchTestCasesApi_create.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkbenchTestCasesApi_create.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkbenchTestCasesApi_delete.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkbenchTestCasesApi_delete.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.WorkbenchTestCasesApi_delete.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.WorkbenchTestCasesApi_delete.Response.409":{"$ref":"#/$defs/Common.Errors.ConflictError"},"Operations.WorkbenchTestCasesApi_delete.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkbenchTestCasesApi_delete.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkbenchTestCasesApi_get.Response.200":{"$ref":"#/$defs/Workbench.WorkbenchTestCase"},"Operations.WorkbenchTestCasesApi_get.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkbenchTestCasesApi_get.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.WorkbenchTestCasesApi_get.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.WorkbenchTestCasesApi_get.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkbenchTestCasesApi_get.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkbenchTestCasesApi_list.Response.200":{"$ref":"#/$defs/Workbench.WorkbenchTestCasePage"},"Operations.WorkbenchTestCasesApi_list.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.WorkbenchTestCasesApi_list.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkbenchTestCasesApi_list.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.WorkbenchTestCasesApi_list.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.WorkbenchTestCasesApi_list.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkbenchTestCasesApi_list.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkbenchTestCasesApi_run.Request":{"$ref":"#/$defs/Workbench.WorkbenchTestCaseRunRequest"},"Operations.WorkbenchTestCasesApi_run.Response.202":{"$ref":"#/$defs/Workbench.WorkbenchEvaluationRunAccepted"},"Operations.WorkbenchTestCasesApi_run.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.WorkbenchTestCasesApi_run.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkbenchTestCasesApi_run.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.WorkbenchTestCasesApi_run.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.WorkbenchTestCasesApi_run.Response.409":{"$ref":"#/$defs/Common.Errors.ConflictError"},"Operations.WorkbenchTestCasesApi_run.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkbenchTestCasesApi_run.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkbenchTestCasesApi_update.Request":{"$ref":"#/$defs/Workbench.WorkbenchTestCaseUpdateRequest"},"Operations.WorkbenchTestCasesApi_update.Response.200":{"$ref":"#/$defs/Workbench.WorkbenchTestCase"},"Operations.WorkbenchTestCasesApi_update.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.WorkbenchTestCasesApi_update.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkbenchTestCasesApi_update.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.WorkbenchTestCasesApi_update.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.WorkbenchTestCasesApi_update.Response.409":{"$ref":"#/$defs/Common.Errors.ConflictError"},"Operations.WorkbenchTestCasesApi_update.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkbenchTestCasesApi_update.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkbenchWorkspacesApi_create.Request":{"$ref":"#/$defs/Workbench.WorkbenchWorkspaceCreateRequest"},"Operations.WorkbenchWorkspacesApi_create.Response.200":{"$ref":"#/$defs/Workbench.WorkbenchWorkspace"},"Operations.WorkbenchWorkspacesApi_create.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.WorkbenchWorkspacesApi_create.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkbenchWorkspacesApi_create.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.WorkbenchWorkspacesApi_create.Response.409":{"$ref":"#/$defs/Common.Errors.ConflictError"},"Operations.WorkbenchWorkspacesApi_create.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkbenchWorkspacesApi_create.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkbenchWorkspacesApi_delete.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkbenchWorkspacesApi_delete.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.WorkbenchWorkspacesApi_delete.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.WorkbenchWorkspacesApi_delete.Response.409":{"$ref":"#/$defs/Common.Errors.ConflictError"},"Operations.WorkbenchWorkspacesApi_delete.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkbenchWorkspacesApi_delete.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkbenchWorkspacesApi_get.Response.200":{"$ref":"#/$defs/Workbench.WorkbenchWorkspace"},"Operations.WorkbenchWorkspacesApi_get.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkbenchWorkspacesApi_get.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.WorkbenchWorkspacesApi_get.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.WorkbenchWorkspacesApi_get.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkbenchWorkspacesApi_get.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkbenchWorkspacesApi_getPreferences.Response.200":{"$ref":"#/$defs/Workbench.WorkbenchWorkspacePreferences"},"Operations.WorkbenchWorkspacesApi_getPreferences.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkbenchWorkspacesApi_getPreferences.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.WorkbenchWorkspacesApi_getPreferences.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.WorkbenchWorkspacesApi_getPreferences.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkbenchWorkspacesApi_getPreferences.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkbenchWorkspacesApi_list.Response.200":{"$ref":"#/$defs/Workbench.WorkbenchWorkspaceListResponse"},"Operations.WorkbenchWorkspacesApi_list.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkbenchWorkspacesApi_list.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.WorkbenchWorkspacesApi_list.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkbenchWorkspacesApi_list.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkbenchWorkspacesApi_update.Request":{"$ref":"#/$defs/Workbench.WorkbenchWorkspaceUpdateRequest"},"Operations.WorkbenchWorkspacesApi_update.Response.200":{"$ref":"#/$defs/Workbench.WorkbenchWorkspace"},"Operations.WorkbenchWorkspacesApi_update.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.WorkbenchWorkspacesApi_update.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkbenchWorkspacesApi_update.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.WorkbenchWorkspacesApi_update.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.WorkbenchWorkspacesApi_update.Response.409":{"$ref":"#/$defs/Common.Errors.ConflictError"},"Operations.WorkbenchWorkspacesApi_update.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkbenchWorkspacesApi_update.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkbenchWorkspacesApi_updatePreferences.Request":{"$ref":"#/$defs/Workbench.WorkbenchWorkspacePreferencesUpdateRequest"},"Operations.WorkbenchWorkspacesApi_updatePreferences.Response.200":{"$ref":"#/$defs/Workbench.WorkbenchWorkspacePreferences"},"Operations.WorkbenchWorkspacesApi_updatePreferences.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.WorkbenchWorkspacesApi_updatePreferences.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkbenchWorkspacesApi_updatePreferences.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.WorkbenchWorkspacesApi_updatePreferences.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.WorkbenchWorkspacesApi_updatePreferences.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkbenchWorkspacesApi_updatePreferences.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkflowRunsApi_appendEvents.Request":{"$ref":"#/$defs/Workflow.WorkflowEventBatchAppendRequest"},"Operations.WorkflowRunsApi_appendEvents.Response.200":{"$ref":"#/$defs/Workflow.WorkflowEventBatchAppendResponse"},"Operations.WorkflowRunsApi_appendEvents.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.WorkflowRunsApi_appendEvents.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkflowRunsApi_appendEvents.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.WorkflowRunsApi_appendEvents.Response.409":{"$ref":"#/$defs/Common.Errors.ConflictError"},"Operations.WorkflowRunsApi_appendEvents.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkflowRunsApi_appendEvents.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkflowRunsApi_create.Request":{"$ref":"#/$defs/Workflow.WorkflowRunCreateRequest"},"Operations.WorkflowRunsApi_create.Response.200":{"$ref":"#/$defs/Workflow.WorkflowRun"},"Operations.WorkflowRunsApi_create.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.WorkflowRunsApi_create.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkflowRunsApi_create.Response.409":{"$ref":"#/$defs/Common.Errors.ConflictError"},"Operations.WorkflowRunsApi_create.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkflowRunsApi_create.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkflowRunsApi_get.Response.200":{"$ref":"#/$defs/Workflow.WorkflowRun"},"Operations.WorkflowRunsApi_get.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkflowRunsApi_get.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.WorkflowRunsApi_get.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkflowRunsApi_get.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkflowRunsApi_getContent.Response.200":{"$ref":"#/$defs/Workflow.WorkflowContent"},"Operations.WorkflowRunsApi_getContent.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkflowRunsApi_getContent.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.WorkflowRunsApi_getContent.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkflowRunsApi_getContent.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkflowRunsApi_getGraph.Response.200":{"$ref":"#/$defs/Workflow.WorkflowGraphSnapshot"},"Operations.WorkflowRunsApi_getGraph.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.WorkflowRunsApi_getGraph.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkflowRunsApi_getGraph.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.WorkflowRunsApi_getGraph.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkflowRunsApi_getGraph.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkflowRunsApi_list.Response.200":{"$ref":"#/$defs/Workflow.WorkflowRunPage"},"Operations.WorkflowRunsApi_list.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.WorkflowRunsApi_list.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkflowRunsApi_list.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkflowRunsApi_list.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkflowRunsApi_pollControls.Response.200":{"$ref":"#/$defs/Workflow.WorkflowControlCommandPage"},"Operations.WorkflowRunsApi_pollControls.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.WorkflowRunsApi_pollControls.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkflowRunsApi_pollControls.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.WorkflowRunsApi_pollControls.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkflowRunsApi_pollControls.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkflowRunsApi_readEvents.Response.200":{"$ref":"#/$defs/Workflow.WorkflowEventPage"},"Operations.WorkflowRunsApi_readEvents.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.WorkflowRunsApi_readEvents.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkflowRunsApi_readEvents.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.WorkflowRunsApi_readEvents.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkflowRunsApi_readEvents.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkflowRunsApi_stream.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.WorkflowRunsApi_stream.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkflowRunsApi_stream.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.WorkflowRunsApi_stream.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkflowRunsApi_stream.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkflowRunsApi_submitControl.Request":{"$ref":"#/$defs/Workflow.WorkflowControlRequest"},"Operations.WorkflowRunsApi_submitControl.Response.200":{"$ref":"#/$defs/Workflow.WorkflowControlCommand"},"Operations.WorkflowRunsApi_submitControl.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.WorkflowRunsApi_submitControl.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkflowRunsApi_submitControl.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.WorkflowRunsApi_submitControl.Response.409":{"$ref":"#/$defs/Common.Errors.ConflictError"},"Operations.WorkflowRunsApi_submitControl.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkflowRunsApi_submitControl.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.WorkflowRunsApi_updateControl.Request":{"$ref":"#/$defs/Workflow.WorkflowControlStatusUpdateRequest"},"Operations.WorkflowRunsApi_updateControl.Response.200":{"$ref":"#/$defs/Workflow.WorkflowControlCommand"},"Operations.WorkflowRunsApi_updateControl.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.WorkflowRunsApi_updateControl.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.WorkflowRunsApi_updateControl.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.WorkflowRunsApi_updateControl.Response.409":{"$ref":"#/$defs/Common.Errors.ConflictError"},"Operations.WorkflowRunsApi_updateControl.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.WorkflowRunsApi_updateControl.Response.503":{"$ref":"#/$defs/Common.Errors.ServiceUnavailableError"},"Operations.health_alive.Response.200":{"$ref":"#/$defs/Health.HealthReport"},"Operations.health_alive.Response.503":{"$ref":"#/$defs/Health.HealthReport"},"Operations.health_ready.Response.200":{"$ref":"#/$defs/Health.HealthReport"},"Operations.health_ready.Response.503":{"$ref":"#/$defs/Health.HealthReport"}}`)},Yg=(()=>{let e=as({offset:!0}).def.pattern;if(!(e instanceof RegExp))throw Error(`Zod offset-aware date-time validator did not expose a pattern`);return e.source})();function Xg(e){if(typeof e!=`object`||!e||Array.isArray(e))throw Error(`Published Qyl JSON Schema root must be an object`);let t=e,n=$g(t.$defs,`$defs`),r=new Map,i=new Set,a=e=>{let t=r.get(e);if(t)return t;if(i.has(e))throw Error(`Published Qyl JSON Schema has an inheritance cycle at '${e}'`);let a=n[e];if(a===void 0)throw Error(`Published Qyl JSON Schema is missing definition '${e}'`);i.add(e);let s=o(a);return i.delete(e),r.set(e,s),s},o=e=>{if(typeof e!=`object`||!e||Array.isArray(e))throw Error(`Expected a JSON Schema object node`);let t=e,n=Zg(t,a),r={};if(n.length>0){let e;for(let t of n){let n=e_(r.properties),i=e_(t.properties),a=t_(r.required),o=t_(t.required);Object.assign(r,t),r.properties={...n,...i},r.required=[...new Set([...a,...o])],e=t.additionalProperties}delete r.description,delete r.additionalProperties;for(let[e,n]of Object.entries(t))e===`allOf`||e===`properties`||e===`required`||e===`unevaluatedProperties`||(r[e]=s(n));r.properties={...e_(r.properties),...c(t.properties)};let i=[...new Set([...t_(r.required),...t_(t.required)])];i.length>0?r.required=i:delete r.required,`unevaluatedProperties`in t?r.additionalProperties=l(t.unevaluatedProperties):e!==void 0&&(r.additionalProperties=e)}else{for(let[e,n]of Object.entries(t))e!==`unevaluatedProperties`&&(r[e]=s(n));`unevaluatedProperties`in t&&(r.additionalProperties=l(t.unevaluatedProperties))}return t.type===`integer`&&(t.format===`int64`||t.format===`uint64`)&&(r.type=`number`,r.multipleOf=1,delete r.format),t.type===`string`&&t.format===`date-time`&&(r.pattern=Yg,delete r.format),r},s=e=>Array.isArray(e)?e.map(s):typeof e==`object`&&e?o(e):e,c=e=>{let t=e_(e);return Object.fromEntries(Object.entries(t).map(([e,t])=>[e,s(t)]))},l=e=>!n_(e)&&s(e),u={...t};delete u.$defs;let d=o(u);return d.$defs=Object.fromEntries(Object.keys(n).map(e=>[e,a(e)])),d}function Zg(e,t){if(e.type!==`object`||!Array.isArray(e.allOf))return[];let n=e.allOf.map(e=>Qg(e));if(n.some(e=>e===void 0))return[];let r=n.map(e=>t(e));return r.every(e=>e.type===`object`)?r:[]}function Qg(e){if(typeof e!=`object`||!e||Array.isArray(e))return;let t=e;if(!(Object.keys(t).length!==1||typeof t.$ref!=`string`))return t.$ref.startsWith(`#/$defs/`)?t.$ref.slice(8):void 0}function $g(e,t){if(typeof e!=`object`||!e||Array.isArray(e))throw Error(`Published Qyl JSON Schema ${t} must be an object`);return e}function e_(e){return typeof e==`object`&&e&&!Array.isArray(e)?e:{}}function t_(e){return Array.isArray(e)&&e.every(e=>typeof e==`string`)?e:[]}function n_(e){if(typeof e!=`object`||!e||Array.isArray(e))return!1;let t=e,n=t.not;return Object.keys(t).length===1&&typeof n==`object`&&!!n&&!Array.isArray(n)&&Object.keys(n).length===0}var r_=Xg(Jg),i_=new Map;function Z(e){let t=i_.get(e);if(t)return t;if(!(e in r_.$defs))throw Error(`Published Qyl JSON Schema has no '${e}' definition`);let n=Cu({$schema:r_.$schema,$defs:r_.$defs,$ref:`#/$defs/${e}`});return i_.set(e,n),n}function Q(e){return Z(`Workbench.${e}`)}Z(`OTel.Traces.Span`),Z(`OTel.Traces.TraceSummary`),Z(`OTel.Traces.Trace`),Z(`OTel.Logs.LogRecord`),Z(`Domains.Observe.Session.SessionEntity`),Z(`Operations.TracesApi_list.Response.200`),Z(`Operations.TracesApi_getSpans.Response.200`),Z(`Operations.SessionsApi_getTraces.Response.200`),Z(`Operations.LogsApi_list.Response.200`),Z(`Operations.SessionsApi_list.Response.200`),Z(`Common.Errors.ProblemDetails`),Z(`Mcp.Tools.McpDataMode`),Z(`Mcp.Tools.McpDashboardStats`),Z(`Mcp.Tools.DisplayTracesInput`);var a_=Z(`Mcp.Tools.DisplayTracesOutput`);Z(`Mcp.Tools.DisplayMcpDashboardInput`),Z(`Mcp.Tools.DisplayMcpDashboardOutput`),Z(`Mcp.Tools.ListTracesInput`),Z(`Mcp.Tools.ListTracesOutput`),Z(`Mcp.Tools.GetTraceInput`),Z(`Mcp.Tools.GetTraceOutput`),Z(`Mcp.Tools.ListSessionsInput`),Z(`Mcp.Tools.ListSessionsOutput`),Z(`Mcp.Tools.SearchLogsInput`),Z(`Mcp.Tools.SearchLogsOutput`),Z(`Mcp.Tools.FetchTelemetryInput`);var o_=Z(`Mcp.Tools.FetchTelemetryOutput`);Z(`Mcp.Tools.CiLogInput`),Z(`Mcp.Tools.CiRunSummary`),Z(`Mcp.Tools.CiPhase`),Z(`Mcp.Tools.CiLogOutput`),Z(`Workflow.WorkflowRun`),Z(`Operations.WorkflowRunsApi_list.Response.200`),Z(`Operations.WorkflowRunsApi_readEvents.Response.200`),Z(`Operations.WorkflowRunsApi_getGraph.Response.200`),Z(`Operations.WorkflowRunsApi_getContent.Response.200`),Z(`Operations.WorkflowRunsApi_submitControl.Response.200`),Z(`Mcp.Tools.ListWorkflowRunsInput`),Z(`Mcp.Tools.ListWorkflowRunsOutput`),Z(`Mcp.Tools.GetWorkflowGraphInput`),Z(`Mcp.Tools.GetWorkflowGraphOutput`),Z(`Mcp.Tools.DisplayWorkflowGraphInput`),Z(`Mcp.Tools.DisplayWorkflowGraphOutput`),Z(`Mcp.Tools.FetchWorkflowGraphUpdatesInput`),Z(`Mcp.Tools.FetchWorkflowGraphUpdatesOutput`),Z(`Mcp.Tools.ControlWorkflowRunInput`),Z(`Mcp.Tools.ControlWorkflowRunOutput`),Z(`Runner.RunnerResourceState`),Z(`Runner.RunnerLogLine`),Q(`WorkbenchSessionId`),Q(`WorkbenchWorkspaceId`),Q(`WorkbenchServerId`),Q(`WorkbenchExecutionId`),Q(`WorkbenchEvaluationRunId`),Q(`WorkbenchTestCaseId`),Q(`WorkbenchSuiteId`),Q(`WorkbenchEvaluationExportId`),Q(`WorkbenchPrincipalIdentity`),Q(`WorkbenchSession`),Q(`WorkbenchSessionBootstrapResponse`),Q(`WorkbenchWorkspace`),Q(`WorkbenchWorkspaceCreateRequest`),Q(`WorkbenchWorkspaceUpdateRequest`),Q(`WorkbenchWorkspaceListResponse`),Q(`WorkbenchToolInputMode`),Q(`WorkbenchWorkspacePreferences`),Q(`WorkbenchWorkspacePreferencesUpdateRequest`),Q(`WorkbenchTransportKind`),Q(`WorkbenchHeaderSecretScheme`),Q(`WorkbenchSecretReference`),Q(`WorkbenchEnvironmentSecretReference`),Q(`WorkbenchHeaderSecretReference`),Q(`WorkbenchStdioServerConfiguration`),Q(`WorkbenchStreamableHttpServerConfiguration`),Q(`WorkbenchBuiltinServerConfiguration`),Q(`WorkbenchServerConfiguration`),Q(`WorkbenchErrorCategory`),Q(`WorkbenchError`),Q(`WorkbenchInitializationSnapshot`),Q(`WorkbenchConnectionStatus`),Q(`WorkbenchConnectionSnapshot`),Q(`WorkbenchServer`),Q(`WorkbenchServerCreateRequest`),Q(`WorkbenchServerUpdateRequest`),Q(`WorkbenchServerListResponse`),Q(`WorkbenchServerActionAccepted`),Q(`WorkbenchDiscoveryCollection`),Q(`WorkbenchDiscoverySnapshot`),Q(`WorkbenchProtocolDirection`),Q(`WorkbenchProtocolEventKind`),Q(`WorkbenchProtocolEvent`),Q(`WorkbenchProtocolEventPage`),Q(`WorkbenchProtocolEvents`),Q(`WorkbenchExecutionEffect`),Q(`WorkbenchExecutionStatus`),Q(`WorkbenchExecutionConfirmationRequest`),Q(`WorkbenchExecutionConfirmationEvidence`),Q(`WorkbenchExecutionRequest`),Q(`WorkbenchExecutionTokenUsage`),Q(`WorkbenchExecutionCost`),Q(`WorkbenchTelemetryCorrelation`),Q(`WorkbenchExecutionUpdateEvents`),Q(`WorkbenchExecutionRecord`),Q(`WorkbenchExecutionAccepted`),Q(`WorkbenchExecutionCancelRequest`),Q(`WorkbenchExecutionPage`),Q(`WorkbenchTelemetryAvailability`),Q(`WorkbenchTelemetrySignalAvailability`),Q(`WorkbenchTelemetrySignalSummary`),Q(`WorkbenchExecutionTelemetryResponse`),Q(`WorkbenchAssertionStatus`),Q(`WorkbenchStatusAssertion`),Q(`WorkbenchExactAssertion`),Q(`WorkbenchPartialAssertion`),Q(`WorkbenchSchemaAssertion`),Q(`WorkbenchPatternAssertion`),Q(`WorkbenchLatencyAssertion`),Q(`WorkbenchTestAssertion`),Q(`WorkbenchTestCase`),Q(`WorkbenchTestCaseCreateRequest`),Q(`WorkbenchTestCaseUpdateRequest`),Q(`WorkbenchTestCasePage`),Q(`WorkbenchTestSuite`),Q(`WorkbenchTestSuiteCreateRequest`),Q(`WorkbenchTestSuiteUpdateRequest`),Q(`WorkbenchTestSuitePage`),Q(`WorkbenchEvaluationResultStatus`),Q(`WorkbenchEvaluationRunStatus`),Q(`WorkbenchRegressionStatus`),Q(`WorkbenchEvaluationRunRequest`),Q(`WorkbenchTestCaseRunRequest`),Q(`WorkbenchSuiteRunRequest`),Q(`WorkbenchAssertionResult`),Q(`WorkbenchEvaluationTestCaseSnapshot`),Q(`WorkbenchEvaluationSuiteSnapshot`),Q(`WorkbenchEvaluationTestResult`),Q(`WorkbenchEvaluationSummary`),Q(`WorkbenchEvaluationRun`),Q(`WorkbenchEvaluationRunAccepted`),Q(`WorkbenchEvaluationRunPage`),Q(`WorkbenchEvaluationComparisonRequest`),Q(`WorkbenchEvaluationTestComparison`),Q(`WorkbenchEvaluationRunComparison`),Q(`WorkbenchEvaluationExportFormat`),Q(`WorkbenchEvaluationExportStatus`),Q(`WorkbenchEvaluationExportRequest`),Q(`WorkbenchEvaluationExport`),Q(`WorkbenchEvaluationJsonExportPayload`),Q(`WorkbenchEvaluationReportExportPayload`),Q(`WorkbenchEvaluationExportPayload`),Q(`WorkbenchEvaluationExportArtifact`),Q(`WorkbenchEvaluationExportAccepted`),Z(`Common.Errors.UnauthorizedError`),Z(`Common.Errors.ForbiddenError`),Z(`Common.Errors.NotFoundError`),Z(`Common.Errors.ValidationError`),Z(`Common.Errors.ConflictError`),Z(`Common.Errors.BadGatewayError`),Z(`Common.Errors.ServiceUnavailableError`),Z(`Common.Errors.InternalServerError`);function s_(e){return`string_value`in e?e.string_value:`kv_list_value`in e?JSON.stringify(Object.fromEntries(e.kv_list_value.map(({key:e,value:t})=>[e,t]))):`array_value`in e?JSON.stringify(e.array_value):`[base64 bytes: ${e.bytes_value.length} characters]`}function c_(e){let[t]=e;if(!t)return{rows:[],traceStartNs:`0`,totalNs:0};let n=new Map;for(let t of e)n.set(t.span_id,t);let r=new Map,i=[];for(let t of e){let e=t.parent_span_id;if(e&&e!==t.span_id&&n.has(e)){let n=r.get(e);n?n.push(t):r.set(e,[t])}else i.push(t)}let a=(e,t)=>{let n=BigInt(e.start_time_unix_nano),r=BigInt(t.start_time_unix_nano);return n<r?-1:+(n>r)};i.sort(a);for(let e of r.values())e.sort(a);let o=BigInt(t.start_time_unix_nano),s=BigInt(t.end_time_unix_nano);for(let t of e){let e=BigInt(t.start_time_unix_nano),n=BigInt(t.end_time_unix_nano);e<o&&(o=e),n>s&&(s=n)}let c=Math.max(0,Number(s-o)),l=[],u=new Set,d=(e,t)=>{let n=Number(BigInt(e.start_time_unix_nano)-o),r=Math.max(0,Number(BigInt(e.end_time_unix_nano)-BigInt(e.start_time_unix_nano))),i=c>0?Math.min(100,Math.max(0,n/c*100)):0,a=c>0?Math.min(100-i,r/c*100):100;l.push({span:e,depth:t,leftPct:i,widthPct:a})},f=(e,t)=>{if(!u.has(e.span_id)){u.add(e.span_id),d(e,t);for(let n of r.get(e.span_id)??[])f(n,t+1)}};for(let e of i)f(e,0);let p=e.filter(e=>!u.has(e.span_id)).sort(a);for(let e of p)f(e,0);return{rows:l,traceStartNs:o.toString(),totalNs:c}}var $={mode:void 0,traces:[],selectedTraceId:void 0,selectedSpanId:void 0,activeTab:`waterfall`,logsCache:new Map,busy:!1,logsRequestSeq:0},l_=document.querySelector(`.main`),u_=document.getElementById(`demo-badge`),d_=document.getElementById(`trace-count-label`),f_=document.getElementById(`refresh-btn`),p_=document.getElementById(`empty-refresh-btn`),m_=document.getElementById(`retry-btn`),h_=document.getElementById(`banner`),g_=document.getElementById(`state-loading`),__=document.getElementById(`loading-text`),v_=document.getElementById(`state-empty`),y_=document.getElementById(`state-error`),b_=document.getElementById(`error-message`),x_=document.getElementById(`explorer`),S_=document.getElementById(`trace-list`),C_=document.getElementById(`trace-view-empty`),w_=document.getElementById(`trace-view-body`),T_=document.getElementById(`trace-title`),E_=document.getElementById(`trace-status-badge`),D_=document.getElementById(`trace-id-label`),O_=document.getElementById(`trace-duration-label`),k_=document.getElementById(`trace-span-count-label`),A_=document.getElementById(`trace-services`),j_=document.getElementById(`tab-waterfall`),M_=document.getElementById(`tab-logs`),N_=document.getElementById(`waterfall-panel`),P_=document.getElementById(`time-ruler`),F_=document.getElementById(`span-rows`),I_=document.getElementById(`logs-panel`),L_=document.getElementById(`logs-state`),R_=document.getElementById(`logs-list`),z_=document.getElementById(`detail-panel`),B_=document.getElementById(`detail-title`),V_=document.getElementById(`detail-body`),H_=document.getElementById(`detail-close-btn`),U_={0:`Unspecified`,1:`Internal`,2:`Server`,3:`Client`,4:`Producer`,5:`Consumer`};function W_(e){let t;for(let n of e.attributes??[]){let e=n?.key;if(typeof e==`string`){if(e.startsWith(`gen_ai.`))return`genai`;!t&&e.startsWith(`http.`)&&(t=`http`),!t&&e.startsWith(`db.`)&&(t=`db`),!t&&e.startsWith(`messaging.`)&&(t=`messaging`)}}return t||(e.kind===4||e.kind===5?`messaging`:`neutral`)}function G_(e){let t=e.resource?.service_name;return typeof t==`string`&&t?t:`unknown`}function K_(e){let t=e.severity_number,n;return n=t>=21?{label:`FATAL`,cls:`fatal`}:t>=17?{label:`ERROR`,cls:`error`}:t>=13?{label:`WARN`,cls:`warn`}:t>=9?{label:`INFO`,cls:`info`}:t>=5?{label:`DEBUG`,cls:`debug`}:{label:`TRACE`,cls:`trace`},typeof e.severity_text==`string`&&e.severity_text&&(n={...n,label:e.severity_text.toUpperCase()}),n}function q_(e){return e>=100?String(Math.round(e)):(e>=10?e.toFixed(1):e.toFixed(2)).replace(/\.?0+$/,``)}function J_(e,t){return Number(BigInt(t)-BigInt(e))}function Y_(e){return!Number.isFinite(e)||e<0?`—`:e<1e3?`${Math.round(e)} ns`:e<1e6?`${q_(e/1e3)} µs`:e<1e9?`${q_(e/1e6)} ms`:`${q_(e/1e9)} s`}function X_(e){return e.length>8?e.slice(0,8):e}function Z_(e){let t=BigInt(e);if(t<=0n)return`—`;let n=new Date(Number(t/1000000n));return`${String(n.getHours()).padStart(2,`0`)}:${String(n.getMinutes()).padStart(2,`0`)}:${String(n.getSeconds()).padStart(2,`0`)}.${String(n.getMilliseconds()).padStart(3,`0`)}`}function Q_(e){if(!Number.isFinite(e))return`—`;if(e<1e3)return String(e);for(let[t,n]of[[1e9,`B`],[1e6,`M`],[1e3,`K`]])if(e>=t){let r=e/t;return`${r>=100?Math.round(r).toString():r.toFixed(1).replace(/\.0$/,``)}${n}`}return String(e)}function $_(e){if(typeof e==`string`)return e;if(e==null)return``;if(typeof e==`number`||typeof e==`boolean`)return String(e);try{return JSON.stringify(e)}catch{return String(e)}}function ev(e){e.theme&&Wg(e.theme),e.styles?.variables&&Gg(e.styles.variables),e.styles?.css?.fonts&&Kg(e.styles.css.fonts),e.safeAreaInsets&&(l_.style.paddingTop=`${e.safeAreaInsets.top}px`,l_.style.paddingRight=`${e.safeAreaInsets.right}px`,l_.style.paddingBottom=`${e.safeAreaInsets.bottom}px`,l_.style.paddingLeft=`${e.safeAreaInsets.left}px`)}var tv=new Ug({name:`qyl Trace Explorer`,version:qg.version});tv.onteardown=async()=>(console.info(`App is being torn down`),{}),tv.ontoolinput=e=>{let t=e.arguments??{};typeof t.trace_id==`string`&&t.trace_id?__.textContent=`Loading trace ${X_(t.trace_id)}…`:typeof t.session_id==`string`&&t.session_id?__.textContent=`Loading session ${t.session_id}…`:__.textContent=`Loading traces…`,av(`loading`)},tv.ontoolresult=e=>{let t=rv(e);if(!t){ov(nv(e)??`Received an invalid tool result.`);return}fv(t)},tv.ontoolcancelled=()=>{av($.traces.length>0?`explorer`:`empty`)},tv.onerror=console.error,tv.onhostcontextchanged=ev;function nv(e){return e.content?.map(e=>`text`in e?e.text:``).filter(Boolean).join(` `)||void 0}function rv(e){let t=a_.safeParse(e.structuredContent);return t.success?t.data:null}function iv(e){let t=o_.safeParse(e.structuredContent);return t.success&&t.data.logs!==void 0?{logs:t.data.logs,mode:t.data.mode}:null}function av(e){g_.hidden=e!==`loading`,v_.hidden=e!==`empty`,y_.hidden=e!==`error`,x_.hidden=e!==`explorer`}function ov(e){b_.textContent=e,av(`error`)}var sv;function cv(e){h_.textContent=e,h_.hidden=!1,sv&&clearTimeout(sv),sv=setTimeout(()=>{h_.hidden=!0},6e3)}function lv(){u_.hidden=$.mode!==`demo`;let e=$.traces.length;d_.textContent=e===0?``:`${e} trace${e===1?``:`s`}`}function uv(){return $.traces.find(e=>e.trace_id===$.selectedTraceId)}function dv(e){if(e.root_span?.name)return e.root_span.name;let t;for(let n of e.spans)(!t||n.start_time_unix_nano<t.start_time_unix_nano)&&(t=n);return t?.name??`(unnamed trace)`}function fv(e){$.traces=e.traces,$.mode=e.mode,$.logsCache.clear(),$.selectedSpanId=void 0,kv();let t=e.selected_trace_id??$.selectedTraceId;$.selectedTraceId=$.traces.some(e=>e.trace_id===t)?t:$.traces[0]?.trace_id,$.activeTab=`waterfall`,lv(),_v(),vv(),av($.traces.length===0?`empty`:`explorer`)}function pv(e){$.selectedTraceId!==e&&($.selectedTraceId=e,$.selectedSpanId=void 0,$.activeTab=`waterfall`,kv(),_v(),vv())}function mv(e){if($.traces.length===0)return;let t=$.traces.findIndex(e=>e.trace_id===$.selectedTraceId),n=t===-1?0:Math.min($.traces.length-1,Math.max(0,t+e)),r=$.traces[n];!r||r.trace_id===$.selectedTraceId||(pv(r.trace_id),S_.querySelector(`[data-trace-id="${CSS.escape(r.trace_id)}"]`)?.scrollIntoView({block:`nearest`}))}function hv(e){let t=document.createElement(`span`);return t.className=`service-chip`,t.textContent=e,t}function gv(e){let t=document.createElement(`li`);t.className=`trace-row`,t.dataset.traceId=e.trace_id,t.setAttribute(`role`,`option`),t.tabIndex=-1,e.trace_id===$.selectedTraceId&&(t.classList.add(`selected`),t.setAttribute(`aria-selected`,`true`)),e.has_error&&t.classList.add(`has-error`);let n=document.createElement(`div`);if(n.className=`trace-row-top`,e.has_error){let e=document.createElement(`span`);e.className=`trace-warn`,e.textContent=`⚠`,e.title=`Trace contains error spans`,n.appendChild(e)}let r=document.createElement(`span`);r.className=`trace-row-name`,r.textContent=dv(e),r.title=dv(e),n.appendChild(r);let i=document.createElement(`span`);i.className=`trace-row-duration mono`,i.textContent=Y_(Number(e.duration_ns)),n.appendChild(i),t.appendChild(n);let a=document.createElement(`div`);a.className=`trace-row-meta`;let o=document.createElement(`span`);o.className=`mono dim`,o.textContent=X_(e.trace_id),a.appendChild(o);let s=document.createElement(`span`);if(s.className=`dim`,s.textContent=`${e.span_count} span${e.span_count===1?``:`s`}`,a.appendChild(s),t.appendChild(a),e.services.length>0){let n=document.createElement(`div`);n.className=`trace-row-chips`;for(let t of e.services.slice(0,4))n.appendChild(hv(t));if(e.services.length>4){let t=document.createElement(`span`);t.className=`dim`,t.textContent=`+${e.services.length-4}`,n.appendChild(t)}t.appendChild(n)}return t.addEventListener(`click`,()=>pv(e.trace_id)),t}function _v(){let e=document.createDocumentFragment();for(let t of $.traces)e.appendChild(gv(t));S_.replaceChildren(e)}function vv(){let e=uv();if(C_.hidden=!!e,w_.hidden=!e,!e)return;T_.textContent=dv(e),E_.textContent=e.has_error?`Error`:`OK`,E_.className=`trace-status-badge ${e.has_error?`error`:`ok`}`,D_.textContent=e.trace_id,O_.textContent=Y_(Number(e.duration_ns)),k_.textContent=`${e.span_count} span${e.span_count===1?``:`s`}`;let t=document.createDocumentFragment();for(let n of e.services)t.appendChild(hv(n));A_.replaceChildren(t),yv(),Cv(e),$.activeTab===`logs`&&jv(e)}function yv(){let e=$.activeTab===`logs`;j_.classList.toggle(`active`,!e),j_.setAttribute(`aria-selected`,String(!e)),M_.classList.toggle(`active`,e),M_.setAttribute(`aria-selected`,String(e)),N_.hidden=e,I_.hidden=!e}function bv(e){if($.activeTab===e)return;$.activeTab=e,yv();let t=uv();e===`logs`&&t&&jv(t)}function xv(e){P_.replaceChildren();for(let t=0;t<=4;t++){let n=t/4*100,r=document.createElement(`span`);r.className=`ruler-tick`,t===0&&r.classList.add(`first`),t===4&&r.classList.add(`last`),r.style.left=`${n}%`,r.textContent=e>0?Y_(t/4*e):`0 ns`,P_.appendChild(r)}}function Sv(e,t){let{span:n,depth:r}=e,i=W_(n),a=n.status?.code===2,o=document.createElement(`div`);o.className=`span-row flavor-${i}`,a&&o.classList.add(`has-error`),n.span_id===$.selectedSpanId&&o.classList.add(`selected`),o.dataset.spanId=n.span_id,o.tabIndex=0,o.setAttribute(`role`,`button`),o.setAttribute(`aria-label`,`Span ${n.name}, ${Y_(J_(n.start_time_unix_nano,n.end_time_unix_nano))}`);let s=document.createElement(`div`);s.className=`span-name-col`,s.style.paddingLeft=`${8+Math.min(r,24)*14}px`;let c=document.createElement(`span`);c.className=`span-dot`,s.appendChild(c);let l=document.createElement(`span`);l.className=`span-name`,l.textContent=n.name,l.title=n.name,s.appendChild(l);let u=document.createElement(`span`);u.className=`span-service dim`,u.textContent=G_(n),s.appendChild(u),o.appendChild(s);let d=document.createElement(`div`);d.className=`span-bar-col`;let f=document.createElement(`span`);f.className=`span-bar`,f.style.left=`${e.leftPct}%`,f.style.width=`${e.widthPct}%`,d.appendChild(f);let p=document.createElement(`span`);p.className=`span-duration mono`;let m=e.leftPct+e.widthPct;m<=82?p.style.left=`${m+.6}%`:e.leftPct>=12?p.style.right=`${100-e.leftPct+.6}%`:(p.classList.add(`inside`),p.style.right=`${Math.max(.6,100-m+.6)}%`),p.textContent=Y_(J_(n.start_time_unix_nano,n.end_time_unix_nano)),d.appendChild(p),o.appendChild(d);let h=()=>Ov(n,t);return o.addEventListener(`click`,h),o.addEventListener(`keydown`,e=>{e.key===`Enter`&&e.target===o&&h()}),o}function Cv(e){let t=c_(e.spans);xv(t.totalNs);let n=document.createDocumentFragment();for(let e of t.rows)n.appendChild(Sv(e,t.traceStartNs));if(F_.replaceChildren(n),t.rows.length===0){let e=document.createElement(`div`);e.className=`logs-state`,e.textContent=`This trace has no spans.`,F_.appendChild(e)}}function wv(e){let t=document.createElement(`section`);t.className=`detail-section`;let n=document.createElement(`div`);n.className=`detail-label`,n.textContent=e,t.appendChild(n);let r=document.createElement(`div`);return t.appendChild(r),{section:t,body:r}}function Tv(e,t,n){let r=document.createElement(`div`);r.className=`detail-stat`;let i=document.createElement(`div`);i.className=`detail-label`,i.textContent=e,r.appendChild(i);let a=document.createElement(`div`);return a.className=`detail-stat-value${n?` ${n}`:``}`,a.textContent=t,r.appendChild(a),r}function Ev(e,t){let n=document.createElement(`div`);n.className=`attr-table`;for(let e of t){if(typeof e?.key!=`string`)continue;let t=document.createElement(`span`);t.className=`attr-key mono`,(e.key.startsWith(`error.`)||e.key.startsWith(`exception.`))&&t.classList.add(`error`),t.textContent=e.key;let r=document.createElement(`span`);r.className=`attr-value mono`,r.textContent=$_(e.value),n.append(t,r)}e.appendChild(n)}function Dv(e,t){let n=document.createElement(`div`);n.className=`event-card`,e.name===`exception`&&n.classList.add(`exception`);let r=document.createElement(`div`);r.className=`event-head`;let i=document.createElement(`span`);i.className=`event-name`,i.textContent=e.name,r.appendChild(i);let a=document.createElement(`span`);a.className=`mono dim`,a.textContent=`+${Y_(Math.max(0,J_(t,e.time_unix_nano)))}`,r.appendChild(a),n.appendChild(r);for(let t of e.attributes??[]){let e=t,r=e&&typeof e.key==`string`?e.key:void 0,i=r===void 0?t:e?.value,a=document.createElement(`div`);if(a.className=`event-attr`,r!==void 0){let e=document.createElement(`span`);e.className=`attr-key mono`,e.textContent=r,a.appendChild(e)}if(r===`exception.stacktrace`){let e=document.createElement(`pre`);e.className=`stacktrace mono`,e.textContent=$_(i),a.appendChild(e)}else{let e=document.createElement(`span`);e.className=`attr-value mono`,e.textContent=$_(i),a.appendChild(e)}n.appendChild(a)}return n}function Ov(e,t){$.selectedSpanId=e.span_id;for(let t of F_.querySelectorAll(`.span-row`))t.classList.toggle(`selected`,t.dataset.spanId===e.span_id);B_.textContent=e.name;let n=document.createDocumentFragment(),r=document.createElement(`div`);r.className=`detail-stats`,r.appendChild(Tv(`Service`,G_(e))),r.appendChild(Tv(`Kind`,U_[e.kind]??String(e.kind))),r.appendChild(Tv(`Duration`,Y_(J_(e.start_time_unix_nano,e.end_time_unix_nano)))),r.appendChild(Tv(`Offset`,`+${Y_(Math.max(0,J_(t,e.start_time_unix_nano)))}`));let i=e.status?.code??0,a=i===2?`Error`:i===1?`OK`:`Unset`;r.appendChild(Tv(`Status`,a,i===2?`status-error`:i===1?`status-ok`:`status-unset`)),r.appendChild(Tv(`Start`,Z_(e.start_time_unix_nano)));let o=t=>{let n=(e.attributes??[]).find(e=>e?.key===t)?.value;return typeof n==`number`?n:void 0},s=o(`gen_ai.usage.input_tokens`),c=o(`gen_ai.usage.output_tokens`);if((s!==void 0||c!==void 0)&&r.appendChild(Tv(`Tokens`,`${s===void 0?`—`:Q_(s)} in · ${c===void 0?`—`:Q_(c)} out`)),n.appendChild(r),e.status?.message){let{section:t,body:r}=wv(`Status message`),i=document.createElement(`div`);i.className=`status-message mono`,i.textContent=e.status.message,r.appendChild(i),n.appendChild(t)}let{section:l,body:u}=wv(`Identifiers`),d=document.createElement(`div`);d.className=`attr-table`;let f=[[`trace`,e.trace_id],[`span`,e.span_id],[`parent`,e.parent_span_id]];for(let[e,t]of f){if(!t)continue;let n=document.createElement(`span`);n.className=`attr-key mono`,n.textContent=e;let r=document.createElement(`span`);r.className=`attr-value mono`,r.textContent=t,d.append(n,r)}u.appendChild(d),n.appendChild(l);let p=e.attributes??[];if(p.length>0){let{section:e,body:t}=wv(`Attributes (${p.length})`);Ev(t,p),n.appendChild(e)}let m=e.events??[];if(m.length>0){let{section:t,body:r}=wv(`Events (${m.length})`);for(let t of m)r.appendChild(Dv(t,e.start_time_unix_nano));n.appendChild(t)}V_.replaceChildren(n),z_.hidden=!1,V_.scrollTop=0}function kv(){if(!z_.hidden){z_.hidden=!0,$.selectedSpanId=void 0;for(let e of F_.querySelectorAll(`.span-row.selected`))e.classList.remove(`selected`)}}function Av(e){L_.hidden=e.length>0,e.length===0&&(L_.textContent=`No logs recorded for this trace.`);let t=document.createDocumentFragment(),n=[...e].sort((e,t)=>J_(t.time_unix_nano,e.time_unix_nano));for(let e of n){let{label:n,cls:r}=K_(e),i=document.createElement(`div`);i.className=`log-row severity-${r}`;let a=document.createElement(`span`);a.className=`log-time mono dim`,a.textContent=Z_(e.time_unix_nano),i.appendChild(a);let o=document.createElement(`span`);o.className=`log-severity`,o.textContent=n,i.appendChild(o);let s=document.createElement(`span`);s.className=`log-body mono`,s.textContent=s_(e.body),i.appendChild(s),t.appendChild(i)}R_.replaceChildren(t)}async function jv(e){let t=$.logsCache.get(e.trace_id);if(t){Av(t);return}let n=++$.logsRequestSeq;R_.replaceChildren(),L_.hidden=!1,L_.textContent=`Loading logs…`;try{let t=await tv.callServerTool({name:`fetch_telemetry`,arguments:{view:`logs`,trace_id:e.trace_id,limit:100}});if(t.isError)throw Error(nv(t)??`fetch_telemetry failed`);let r=iv(t);if(!r)throw Error(`fetch_telemetry returned an invalid logs payload`);if($.logsCache.set(e.trace_id,r.logs),n!==$.logsRequestSeq||$.selectedTraceId!==e.trace_id)return;$.activeTab===`logs`&&Av(r.logs)}catch(t){if(n!==$.logsRequestSeq||$.selectedTraceId!==e.trace_id)return;L_.hidden=!1,L_.textContent=`Couldn't load logs: ${t instanceof Error?t.message:String(t)}`}}async function Mv(){if($.busy)return;$.busy=!0,f_.disabled=!0,f_.classList.add(`spinning`);let e=$.traces.length>0;e||(__.textContent=`Loading traces…`,av(`loading`));try{let e=await tv.callServerTool({name:`fetch_telemetry`,arguments:{view:`traces`,limit:20}});if(e.isError)throw Error(nv(e)??`fetch_telemetry failed`);let t=rv(e);if(!t)throw Error(`fetch_telemetry returned an invalid payload`);fv(t)}catch(t){e?(av(`explorer`),cv(`Refresh failed: ${t instanceof Error?t.message:String(t)}`)):ov(t instanceof Error?t.message:String(t))}finally{$.busy=!1,f_.disabled=!1,f_.classList.remove(`spinning`)}}f_.addEventListener(`click`,()=>void Mv()),p_.addEventListener(`click`,()=>void Mv()),m_.addEventListener(`click`,()=>void Mv()),H_.addEventListener(`click`,kv),j_.addEventListener(`click`,()=>bv(`waterfall`)),M_.addEventListener(`click`,()=>bv(`logs`)),window.addEventListener(`keydown`,e=>{if(e.key===`Escape`){kv();return}if(e.key===`ArrowDown`||e.key===`ArrowUp`){if(x_.hidden)return;e.preventDefault(),mv(e.key===`ArrowDown`?1:-1)}}),tv.connect().then(()=>{let e=tv.getHostContext();e&&ev(e)}).catch(e=>{ov(e instanceof Error?e.message:String(e))});</script>
72
72
  <style rel="stylesheet" crossorigin>:root{--lightningcss-light:initial;--lightningcss-dark: ;color-scheme:light dark;--color-text-primary:var(--lightningcss-light,#1f2937)var(--lightningcss-dark,#f3f4f6);--color-text-inverse:var(--lightningcss-light,#f3f4f6)var(--lightningcss-dark,#1f2937);--color-text-info:var(--lightningcss-light,#1d4ed8)var(--lightningcss-dark,#60a5fa);--color-background-primary:var(--lightningcss-light,#fff)var(--lightningcss-dark,#1a1a1a);--color-background-inverse:var(--lightningcss-light,#1a1a1a)var(--lightningcss-dark,#fff);--color-background-info:var(--lightningcss-light,#eff6ff)var(--lightningcss-dark,#1e3a5f);--color-ring-primary:var(--lightningcss-light,#3b82f6)var(--lightningcss-dark,#60a5fa);--border-radius-md:6px;--border-width-regular:1px;--font-sans:ui-sans-serif, system-ui, sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";--font-mono:ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;--font-weight-normal:400;--font-weight-bold:700;--font-text-md-size:1rem;--font-text-md-line-height:1.5;--font-heading-3xl-size:2.25rem;--font-heading-3xl-line-height:1.1;--font-heading-2xl-size:1.875rem;--font-heading-2xl-line-height:1.2;--font-heading-xl-size:1.5rem;--font-heading-xl-line-height:1.25;--font-heading-lg-size:1.25rem;--font-heading-lg-line-height:1.3;--font-heading-md-size:1rem;--font-heading-md-line-height:1.4;--font-heading-sm-size:.875rem;--font-heading-sm-line-height:1.4;--spacing-unit:var(--font-text-md-size);--spacing-xs:calc(var(--spacing-unit) * .25);--spacing-sm:calc(var(--spacing-unit) * .5);--spacing-md:var(--spacing-unit);--spacing-lg:calc(var(--spacing-unit) * 1.5);--color-accent:#2563eb;--color-text-on-accent:#fff}@media (prefers-color-scheme:dark){:root{--lightningcss-light: ;--lightningcss-dark:initial}}*{box-sizing:border-box}html,body{font-family:var(--font-sans);font-size:var(--font-text-md-size);font-weight:var(--font-weight-normal);line-height:var(--font-text-md-line-height);color:var(--color-text-primary)}h1{font-size:var(--font-heading-3xl-size);line-height:var(--font-heading-3xl-line-height)}h2{font-size:var(--font-heading-2xl-size);line-height:var(--font-heading-2xl-line-height)}h3{font-size:var(--font-heading-xl-size);line-height:var(--font-heading-xl-line-height)}h4{font-size:var(--font-heading-lg-size);line-height:var(--font-heading-lg-line-height)}h5{font-size:var(--font-heading-md-size);line-height:var(--font-heading-md-line-height)}h6{font-size:var(--font-heading-sm-size);line-height:var(--font-heading-sm-line-height)}code,pre,kbd{font-family:var(--font-mono);font-size:1em}b,strong{font-weight:var(--font-weight-bold)}[hidden]{display:none!important}.main{--q-border:color-mix(in srgb, var(--color-text-primary) 13%, transparent);--q-border-soft:color-mix(in srgb, var(--color-text-primary) 8%, transparent);--q-muted:color-mix(in srgb, var(--color-text-primary) 55%, transparent);--q-faint:color-mix(in srgb, var(--color-text-primary) 40%, transparent);--q-hover:color-mix(in srgb, var(--color-text-primary) 5%, transparent);--q-chip:color-mix(in srgb, var(--color-text-primary) 8%, transparent);--q-surface:color-mix(in srgb, var(--color-text-primary) 3.5%, var(--color-background-primary));--q-surface-2:color-mix(in srgb, var(--color-text-primary) 6.5%, var(--color-background-primary));--q-accent:var(--lightningcss-light,#6d28d9)var(--lightningcss-dark,#a78bfa);--q-genai:var(--lightningcss-light,#7c3aed)var(--lightningcss-dark,#a78bfa);--q-http:var(--lightningcss-light,#2563eb)var(--lightningcss-dark,#60a5fa);--q-db:var(--lightningcss-light,#059669)var(--lightningcss-dark,#34d399);--q-messaging:var(--lightningcss-light,#d97706)var(--lightningcss-dark,#fbbf24);--q-neutral:color-mix(in srgb, var(--color-text-primary) 42%, transparent);--q-error:var(--lightningcss-light,#dc2626)var(--lightningcss-dark,#f87171);--q-ok:var(--lightningcss-light,#059669)var(--lightningcss-dark,#34d399);--q-warn:var(--lightningcss-light,#b45309)var(--lightningcss-dark,#fbbf24);--q-error-tint:color-mix(in srgb, var(--q-error) 9%, transparent);--q-warn-tint:color-mix(in srgb, var(--q-warn) 10%, transparent);box-sizing:border-box;background-color:var(--color-background-primary);border:var(--border-width-regular) solid var(--q-border);border-radius:calc(var(--border-radius-md) * 2);flex-direction:column;width:100%;max-width:980px;margin:0 auto;font-size:.8125rem;line-height:1.45;display:flex;overflow:clip}.mono{font-family:var(--font-mono);font-size:.9em}.dim{color:var(--q-muted)}.header{justify-content:space-between;align-items:center;gap:var(--spacing-sm);padding:var(--spacing-sm) var(--spacing-md);border-bottom:var(--border-width-regular) solid var(--q-border);background-color:var(--q-surface);display:flex}.header-brand{align-items:center;gap:var(--spacing-sm);min-width:0;display:flex}.header-logo{width:16px;height:16px;fill:var(--q-accent);flex:none}.header-title{font-size:.875rem;line-height:1.3;font-weight:var(--font-weight-bold);letter-spacing:.01em;white-space:nowrap;margin:0}.header-title-dim{color:var(--q-muted);font-weight:var(--font-weight-normal)}.demo-badge{border:1px solid color-mix(in srgb, var(--q-warn) 45%, transparent);background-color:var(--q-warn-tint);color:var(--q-warn);font-size:.625rem;font-weight:var(--font-weight-bold);letter-spacing:.08em;border-radius:999px;flex:none;padding:1px 7px}.header-actions{align-items:center;gap:var(--spacing-sm);display:flex}.header-count{color:var(--q-muted);white-space:nowrap;font-size:.75rem}.refresh-btn{border:var(--border-width-regular) solid var(--q-border);border-radius:var(--border-radius-md);width:26px;height:26px;color:var(--q-muted);cursor:pointer;background-color:#0000;justify-content:center;align-items:center;padding:0;display:inline-flex}.refresh-btn:hover{background-color:var(--q-hover);color:var(--color-text-primary)}.refresh-btn:disabled{opacity:.55;cursor:default}.refresh-btn svg{fill:currentColor;width:14px;height:14px}.refresh-btn.spinning svg{animation:.9s linear infinite spin}@keyframes spin{to{transform:rotate(360deg)}}.banner{padding:var(--spacing-xs) var(--spacing-md);background-color:var(--q-error-tint);border-bottom:var(--border-width-regular) solid color-mix(in srgb, var(--q-error) 35%, transparent);color:var(--q-error);font-size:.75rem}.state{justify-content:center;align-items:center;gap:var(--spacing-sm);min-height:220px;padding:var(--spacing-lg);text-align:center;color:var(--q-muted);flex-direction:column;display:flex}.state-title{font-weight:var(--font-weight-bold);color:var(--color-text-primary)}.state-hint{overflow-wrap:anywhere;max-width:40ch;font-size:.75rem}.state-btn{margin-top:var(--spacing-xs);border:var(--border-width-regular) solid var(--q-border);border-radius:var(--border-radius-md);background-color:var(--q-surface);color:var(--color-text-primary);cursor:pointer;padding:4px 14px;font-size:.75rem}.state-btn:hover{background-color:var(--q-hover)}.spinner{border:2px solid var(--q-border);border-top-color:var(--q-accent);border-radius:50%;width:22px;height:22px;animation:.8s linear infinite spin}.explorer{height:540px;min-height:0;display:flex}.trace-list-pane{border-right:var(--border-width-regular) solid var(--q-border);background-color:var(--q-surface);flex-direction:column;flex:none;width:272px;min-height:0;display:flex}.pane-heading{padding:6px var(--spacing-md) 4px;font-size:.625rem;font-weight:var(--font-weight-bold);letter-spacing:.08em;text-transform:uppercase;color:var(--q-faint);border-bottom:var(--border-width-regular) solid var(--q-border-soft)}.trace-list{flex:1;min-height:0;margin:0;padding:0;list-style:none;overflow-y:auto}.trace-row{padding:7px var(--spacing-md) 7px calc(var(--spacing-md) - 3px);border-left:3px solid #0000;border-bottom:var(--border-width-regular) solid var(--q-border-soft);cursor:pointer}.trace-row:hover{background-color:var(--q-hover)}.trace-row.selected{border-left-color:var(--q-accent);background-color:color-mix(in srgb, var(--q-accent) 8%, transparent)}.trace-row.has-error{border-left-color:color-mix(in srgb, var(--q-error) 55%, transparent);background-color:var(--q-error-tint)}.trace-row.has-error.selected{border-left-color:var(--q-error);background-color:color-mix(in srgb, var(--q-error) 14%, transparent)}.trace-row-top{align-items:baseline;gap:6px;min-width:0;display:flex}.trace-warn{color:var(--q-error);flex:none;font-size:.75rem;line-height:1}.trace-row-name{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:.75rem;font-weight:var(--font-weight-bold);flex:1;overflow:hidden}.trace-row-duration{color:var(--q-muted);flex:none;font-size:.6875rem}.trace-row-meta{gap:var(--spacing-sm);margin-top:1px;font-size:.6875rem;display:flex}.trace-row-chips{flex-wrap:wrap;gap:4px;margin-top:4px;font-size:.625rem;display:flex}.service-chip{background-color:var(--q-chip);color:var(--q-muted);white-space:nowrap;border-radius:999px;padding:0 6px;font-size:.625rem;line-height:1.6}.trace-view{flex-direction:column;flex:1;min-width:0;min-height:0;display:flex;position:relative;overflow:clip}.trace-view-empty{flex:1;justify-content:center;align-items:center;display:flex}.trace-view-body{flex-direction:column;flex:1;min-height:0;display:flex}.trace-summary{padding:var(--spacing-sm) var(--spacing-md) 6px;border-bottom:var(--border-width-regular) solid var(--q-border)}.trace-summary-top{align-items:center;gap:var(--spacing-sm);min-width:0;display:flex}.trace-title{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:.8125rem;font-weight:var(--font-weight-bold);flex:1;overflow:hidden}.trace-status-badge{font-size:.625rem;font-weight:var(--font-weight-bold);letter-spacing:.05em;border-radius:999px;flex:none;padding:0 8px;line-height:1.7}.trace-status-badge.ok{background-color:color-mix(in srgb, var(--q-ok) 14%, transparent);color:var(--q-ok)}.trace-status-badge.error{background-color:color-mix(in srgb, var(--q-error) 14%, transparent);color:var(--q-error)}.trace-summary-meta{align-items:center;gap:var(--spacing-sm);flex-wrap:wrap;margin-top:3px;font-size:.6875rem;display:flex}.trace-summary-meta .mono.dim{text-overflow:ellipsis;white-space:nowrap;max-width:24ch;overflow:hidden}.trace-services{flex-wrap:wrap;gap:4px;display:flex}.tabbar{padding:0 var(--spacing-md);border-bottom:var(--border-width-regular) solid var(--q-border);background-color:var(--q-surface);gap:2px;display:flex}.tab{color:var(--q-muted);font-size:.75rem;font-weight:var(--font-weight-bold);cursor:pointer;background:0 0;border:none;border-bottom:2px solid #0000;padding:5px 10px 4px}.tab:hover{color:var(--color-text-primary)}.tab.active{color:var(--color-text-primary);border-bottom-color:var(--q-accent)}.waterfall-panel{--q-name-col:clamp(150px, 34%, 260px);flex:1;min-height:0;overflow:auto}.waterfall-header{z-index:2;border-bottom:var(--border-width-regular) solid var(--q-border);background-color:var(--q-surface);height:24px;color:var(--q-faint);font-size:.625rem;display:flex;position:sticky;top:0}.waterfall-header-name{width:var(--q-name-col);padding:0 var(--spacing-sm);border-right:var(--border-width-regular) solid var(--q-border-soft);font-weight:var(--font-weight-bold);letter-spacing:.08em;text-transform:uppercase;flex:none;align-items:center;display:flex}.time-ruler{margin:0 var(--spacing-sm);flex:1;position:relative}.ruler-tick{font-family:var(--font-mono);white-space:nowrap;position:absolute;bottom:3px;transform:translate(-50%)}.ruler-tick.first{transform:none}.ruler-tick.last{transform:translate(-100%)}.span-rows{padding-bottom:var(--spacing-sm)}.span-row{border-bottom:var(--border-width-regular) solid var(--q-border-soft);cursor:pointer;align-items:stretch;height:26px;display:flex}.span-row:hover{background-color:var(--q-hover)}.span-row.selected{background-color:color-mix(in srgb, var(--q-accent) 10%, transparent)}.span-row.has-error{background-color:var(--q-error-tint)}.span-row.has-error.selected{background-color:color-mix(in srgb, var(--q-error) 15%, transparent)}.span-name-col{width:var(--q-name-col);min-width:0;padding-right:var(--spacing-sm);border-right:var(--border-width-regular) solid var(--q-border-soft);flex:none;align-items:center;gap:5px;display:flex}.span-dot{background-color:var(--q-flavor,var(--q-neutral));border-radius:50%;flex:none;width:7px;height:7px}.span-name{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:.71875rem;overflow:hidden}.span-service{text-overflow:ellipsis;white-space:nowrap;flex:none;max-width:9ch;margin-left:auto;font-size:.625rem;overflow:hidden}.span-bar-col{min-width:0;margin:0 var(--spacing-sm);flex:1;position:relative}.span-bar{background-color:var(--q-flavor,var(--q-neutral));opacity:.85;border-radius:2px;min-width:2px;height:10px;position:absolute;top:50%;transform:translateY(-50%)}.span-row:hover .span-bar{opacity:1}.flavor-genai{--q-flavor:var(--q-genai)}.flavor-http{--q-flavor:var(--q-http)}.flavor-db{--q-flavor:var(--q-db)}.flavor-messaging{--q-flavor:var(--q-messaging)}.flavor-neutral{--q-flavor:var(--q-neutral)}.span-row.has-error .span-bar{border:1.5px solid var(--q-error);box-sizing:border-box;min-width:4px}.span-row.has-error .span-dot{box-shadow:0 0 0 1.5px var(--q-error)}.span-duration{color:var(--q-muted);white-space:nowrap;pointer-events:none;font-size:.625rem;position:absolute;top:50%;transform:translateY(-50%)}.span-duration.inside{color:var(--lightningcss-light,#fff)var(--lightningcss-dark,#16161d);font-weight:var(--font-weight-bold)}.logs-panel{flex:1;min-height:0;overflow:auto}.logs-state{padding:var(--spacing-lg);text-align:center;color:var(--q-muted);font-size:.75rem}.log-row{align-items:baseline;gap:var(--spacing-sm);padding:4px var(--spacing-md);border-bottom:var(--border-width-regular) solid var(--q-border-soft);border-left:3px solid #0000;display:flex}.log-time{flex:none;font-size:.6875rem}.log-severity{width:5.5ch;font-family:var(--font-mono);font-size:.625rem;font-weight:var(--font-weight-bold);letter-spacing:.03em;color:var(--q-muted);flex:none}.log-body{white-space:pre-wrap;overflow-wrap:anywhere;flex:1;min-width:0;font-size:.71875rem}.log-row.severity-trace .log-severity,.log-row.severity-debug .log-severity{color:var(--q-faint)}.log-row.severity-info .log-severity{color:var(--q-http)}.log-row.severity-warn{border-left-color:var(--q-warn);background-color:var(--q-warn-tint)}.log-row.severity-warn .log-severity{color:var(--q-warn)}.log-row.severity-error,.log-row.severity-fatal{border-left-color:var(--q-error);background-color:var(--q-error-tint)}.log-row.severity-error .log-severity,.log-row.severity-fatal .log-severity{color:var(--q-error)}.detail-panel{z-index:3;background-color:var(--color-background-primary);border-left:var(--border-width-regular) solid var(--q-border);flex-direction:column;width:min(360px,92%);animation:.16s ease-out detail-slide-in;display:flex;position:absolute;inset:0 0 0 auto;box-shadow:-12px 0 28px var(--lightningcss-light,#0f172a38)var(--lightningcss-dark,#00000038)}@keyframes detail-slide-in{0%{opacity:0;transform:translate(14px)}to{opacity:1;transform:none}}.detail-header{align-items:center;gap:var(--spacing-sm);padding:var(--spacing-sm) var(--spacing-md);border-bottom:var(--border-width-regular) solid var(--q-border);background-color:var(--q-surface);display:flex}.detail-title{text-overflow:ellipsis;white-space:nowrap;min-width:0;font-size:.78125rem;font-weight:var(--font-weight-bold);flex:1;overflow:hidden}.detail-close{border-radius:var(--border-radius-md);width:22px;height:22px;color:var(--q-muted);cursor:pointer;background:0 0;border:none;flex:none;padding:0;font-size:1rem;line-height:1}.detail-close:hover{background-color:var(--q-hover);color:var(--color-text-primary)}.detail-body{min-height:0;padding:var(--spacing-sm) var(--spacing-md) var(--spacing-md);gap:var(--spacing-md);flex-direction:column;flex:1;display:flex;overflow-y:auto}.detail-label{font-size:.625rem;font-weight:var(--font-weight-bold);letter-spacing:.08em;text-transform:uppercase;color:var(--q-faint);margin-bottom:4px}.detail-stats{grid-template-columns:1fr 1fr;gap:6px;display:grid}.detail-stat{border-radius:var(--border-radius-md);background-color:var(--q-surface-2);padding:6px 8px}.detail-stat .detail-label{margin-bottom:1px}.detail-stat-value{font-size:.71875rem;font-family:var(--font-mono);overflow-wrap:anywhere}.detail-stat-value.status-ok{color:var(--q-ok)}.detail-stat-value.status-error{color:var(--q-error);font-weight:var(--font-weight-bold)}.detail-stat-value.status-unset{color:var(--q-muted)}.status-message{border-radius:var(--border-radius-md);border:1px solid color-mix(in srgb, var(--q-error) 35%, transparent);background-color:var(--q-error-tint);color:var(--q-error);white-space:pre-wrap;overflow-wrap:anywhere;padding:6px 8px;font-size:.6875rem}.attr-table{border-radius:var(--border-radius-md);background-color:var(--q-surface-2);grid-template-columns:minmax(9ch,max-content) 1fr;display:grid;overflow:hidden}.attr-key,.attr-value{border-bottom:var(--border-width-regular) solid var(--q-border-soft);overflow-wrap:anywhere;padding:3px 8px;font-size:.65625rem}.attr-table>.attr-key:nth-last-child(2),.attr-table>.attr-value:last-child{border-bottom:none}.attr-key{color:var(--q-accent);max-width:18ch}.attr-key.error{color:var(--q-error)}.attr-value{color:var(--color-text-primary)}.event-card{border-radius:var(--border-radius-md);background-color:var(--q-surface-2);margin-bottom:6px;padding:6px 8px}.event-card:last-child{margin-bottom:0}.event-card.exception{border:1px solid color-mix(in srgb, var(--q-error) 40%, transparent);background-color:var(--q-error-tint)}.event-head{justify-content:space-between;align-items:baseline;gap:var(--spacing-sm);font-size:.6875rem;display:flex}.event-name{font-weight:var(--font-weight-bold);overflow-wrap:anywhere}.event-card.exception .event-name{color:var(--q-error)}.event-attr{margin-top:3px;font-size:.65625rem}.event-attr .attr-key{max-width:none;color:var(--q-faint);border:none;padding:0;display:block}.event-attr .attr-value{border:none;padding:0;display:block}.stacktrace{border-radius:var(--border-radius-md);background-color:color-mix(in srgb, var(--color-text-primary) 6%, var(--color-background-primary));color:var(--q-error);white-space:pre-wrap;overflow-wrap:anywhere;max-height:180px;margin:2px 0 0;padding:6px 8px;font-size:.625rem;line-height:1.5;overflow-y:auto}@media (width<=640px){.explorer{flex-direction:column;height:620px}.trace-list-pane{border-right:none;border-bottom:var(--border-width-regular) solid var(--q-border);width:100%;max-height:190px}.waterfall-panel{--q-name-col:clamp(120px, 40%, 200px)}.detail-panel{border-left:none;width:100%}}
73
73
  /*$vite$:1*/</style>
74
74
  </head>