qyl-mcp-server 8.2.0 → 9.0.0

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
@@ -59,7 +59,7 @@
59
59
 
60
60
  `)}return o.write(`payload.value = newResult;`),o.write(`return payload;`),o.compile()},o,s=le,c=!w.jitless,l=c&&ue.value,u=t.catchall,f;e._zod.parse=(i,d)=>{f??=r.value;let p=i.value;return s(p)?c&&l&&d?.async===!1&&d.jitless!==!0?(o||=a(t.shape),i=o(i,d),u?Gi([],p,i,d,f,e,d?.abortEarly===!0):i):n(i,d):(i.issues.push({expected:`object`,code:`invalid_type`,input:p,inst:e}),i)}});function Ji(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=>!b(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=>Pe(e,r,at())))}),t)}var Yi=S(`$ZodUnion`,(e,t)=>{E.init(e,t),x(e,`optin`,e=>e.def.options.some(e=>e._zod.optin===`defaulted`)?`defaulted`:e.def.options.some(e=>e._zod.optin!==void 0)?`optional`:void 0),x(e,`optout`,e=>e.def.options.some(e=>e._zod.optout===`optional`)?`optional`:void 0),x(e,`values`,e=>{if(e.def.options.every(e=>e._zod.values))return new Set(e.def.options.flatMap(e=>Array.from(e._zod.values)))}),x(e,`pattern`,e=>{if(e.def.options.every(e=>e._zod.pattern)){let t=e.def.options.map(e=>e._zod.pattern);return RegExp(`^(${t.map(e=>p(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=>Ji(t,r,e,i)):Ji(o,r,e,i)}});function Xi(e,t,n,r){let i=[];for(let t=0;t<e.length;t++)e[t].issues.length===0&&i.push(t);return i.length===1?(t.value=e[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=>Pe(e,r,at())))}):t.issues.push({code:`invalid_union`,input:t.value,inst:n,errors:[],inclusive:!1,matches:i}),t)}var Zi=S(`$ZodXor`,(e,t)=>{Yi.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=>Xi(t,r,e,i)):Xi(o,r,e,i)}});function Qi(e){let t=new Map;for(let n of e.options){let r=n._zod.propValues?.[e.discriminator];if(!r||r.size===0)throw Error(`Invalid discriminated union option at index "${e.options.indexOf(n)}"`);for(let e of r)if(t.has(e)){if(e!==void 0)throw Error(`Duplicate discriminator value "${String(e)}"`);t.set(e,null)}else t.set(e,n)}return t}var $i=S(`$ZodDiscriminatedUnion`,(e,t)=>{t.inclusive=!1,Yi.init(e,t);let n=e._zod.parse;x(e,`propValues`,e=>{let t={},n=0;for(let r of e.def.options){let i=r._zod.propValues;if(!i||Object.keys(i).length===0)throw Error(`Invalid discriminated union option at index "${e.def.options.indexOf(r)}"`);i[e.def.discriminator]?.has(void 0)&&n++;for(let[e,n]of Object.entries(i)){Object.prototype.hasOwnProperty.call(t,e)||g(t,e,new Set);for(let r of n)t[e].add(r)}}return!e.def.unionFallback&&n>1&&t[e.def.discriminator]?.delete(void 0),t}),t.options.forEach((e,n)=>{let r=te(e._zod.def);if(r&&!Object.prototype.hasOwnProperty.call(r,t.discriminator))throw Error(`Invalid discriminated union option at index "${n}"`)});let r=d(()=>Qi(t));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=o?.[t.discriminator],c=r.value.get(s);return c&&(s!==void 0||a.direction!==`backward`)?c._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()).filter(e=>r.value.get(e)!==null),input:o,path:[t.discriminator],inst:e}),i)}}),ea=S(`$ZodIntersection`,(e,t)=>{E.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])=>na(e,t,n)):na(e,i,a)}});function ta(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};Object.prototype.hasOwnProperty.call(i,`__proto__`)&&delete i.__proto__;for(let n of r){if(n===`__proto__`)continue;let r=ta(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=ta(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 na(e,t,n){let r=new Map,i,a=new Map,o=(e,t)=>{let n;if(e.code===`unrecognized_keys`&&!e.path?.length)i??=e,n=e.keys;else if(e.code===`invalid_key`&&e.origin===`record`&&e.path?.length===1){let t=String(e.path[0]);a.has(t)||a.set(t,e),n=[t]}else return!1;for(let e of n)r.has(e)||r.set(e,{}),r.get(e)[t]=!0;return!0};for(let n of t.issues)o(n,`l`)||e.issues.push(n);for(let t of n.issues)o(t,`r`)||e.issues.push(t);let s=[...r].filter(([,e])=>e.l&&e.r).map(([e])=>e);if(s.length){let t=i?s.filter(e=>i.keys.includes(e)):[];t.length&&e.issues.push({...i,keys:t});for(let n of s)!t.includes(n)&&a.has(n)&&e.issues.push(a.get(n))}let c=ta(t.value,n.value);if(!c.valid){if(b(e))return e;throw Error(`Unmergable intersection. Error path: ${JSON.stringify(c.mergeErrorPath)}`)}return e.value=c.data,e}var ra=S(`$ZodTuple`,(e,t)=>{E.init(e,t);let n=t.items,r=w.memoizer;r?.attach(e),e._zod.parse=(i,a)=>{let o=i.value;if(!Array.isArray(o))return i.issues.push({input:o,inst:e,expected:`tuple`,code:`invalid_type`}),i;i.value=r?r.alloc(e,i,[],a):[];let s=[],c=ia(n,`optin`),l=ia(n,`optout`);if(!t.rest){if(o.length<c)return i.issues.push({code:`too_small`,minimum:c,inclusive:!0,input:o,inst:e,origin:`array`}),i;o.length>n.length&&i.issues.push({code:`too_big`,maximum:n.length,inclusive:!0,input:o,inst:e,origin:`array`})}let u=Array(n.length),d=t.rest?a?.abortEarly:void 0,f=!1;for(let e=0;e<n.length;e++){let t=n[e]._zod.run({value:o[e],issues:[]},a);t instanceof Promise?s.push(t.then(t=>{u[e]=t})):(u[e]=t,d&&!f&&t.issues.length&&(f=b(t)))}if(t.rest&&!f){let e=n.length-1,r=o.slice(n.length),c=i.issues.length;for(let n of r){if(d&&i.issues.length!==c){if(b(i,c))break;c=i.issues.length}e++;let r=t.rest._zod.run({value:n,issues:[]},a);r instanceof Promise?s.push(r.then(t=>aa(t,i,e))):aa(r,i,e)}}return s.length?Promise.all(s).then(()=>oa(u,i,n,o,l)):oa(u,i,n,o,l)}});function ia(e,t){for(let n=e.length-1;n>=0;n--)if(!(t===`optin`?e[n]._zod.optin!==void 0:e[n]._zod.optout===`optional`))return n+1;return 0}function aa(e,t,n){e.issues.length&&t.issues.push(...je(n,e.issues)),t.value[n]=e.value}function oa(e,t,n,r,i){for(let a=0;a<n.length;a++){let o=e[a],s=a<r.length;if(!s&&a>=i&&n[a]._zod.optin===`optional`){t.value.length=a;break}if(o.issues.length){if(!s&&a>=i){t.value.length=a;break}t.issues.push(...je(a,o.issues))}t.value[a]=o.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 sa=S(`$ZodRecord`,(e,t)=>{E.init(e,t);let n=w.memoizer;n?.attach(e),e._zod.parse=(r,i)=>{let a=r.value;if(!de(a))return r.issues.push({expected:`record`,code:`invalid_type`,input:a,inst:e}),r;let o=[],s=t.keyType._zod.values;if(s&&!t.partial){r.value=n?n.alloc(e,r,{},i):{};let c=new Set;for(let n of s)if(typeof n==`string`||typeof n==`number`||typeof n==`symbol`){if(c.add(typeof n==`number`?n.toString():n),n===`__proto__`)continue;let s=t.keyType._zod.run({value:n,issues:[]},i);if(s instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(s.issues.length){r.issues.push({code:`invalid_key`,origin:`record`,issues:s.issues.map(e=>Pe(e,i,at())),input:n,path:[n],inst:e});continue}let l=s.value;if(l===`__proto__`)continue;let u=t.valueType._zod.run({value:a[n],issues:[]},i);u instanceof Promise?o.push(u.then(e=>{e.issues.length&&r.issues.push(...je(n,e.issues)),r.value[l]=e.value})):(u.issues.length&&r.issues.push(...je(n,u.issues)),r.value[l]=u.value)}let l;for(let e in a)if(!c.has(e)){if(t.mode===`loose`){if(e===`__proto__`)continue;r.value[e]=a[e]}else l??=[],l.push(e)}l&&l.length>0&&r.issues.push({code:`unrecognized_keys`,input:a,inst:e,keys:l,continue:!0})}else{r.value=n?n.alloc(e,r,{},i):{};let c;for(let n of Reflect.ownKeys(a)){if(n===`__proto__`||!Object.prototype.propertyIsEnumerable.call(a,n))continue;let l=t.keyType._zod.run({value:n,issues:[]},i);if(l instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);if(typeof n==`string`&&Mn.test(n)&&l.issues.length){let e=t.keyType._zod.run({value:Number(n),issues:[]},i);if(e instanceof Promise)throw Error(`Async schemas not supported in object keys currently`);e.issues.length===0&&(l=e)}if(l.issues.length){t.mode===`loose`?r.value[n]=a[n]:s?(c??=[],c.push(n)):r.issues.push({code:`invalid_key`,origin:`record`,issues:l.issues.map(e=>Pe(e,i,at())),input:n,path:[n],inst:e});continue}let u=l.value;if(u===`__proto__`)continue;let d=t.valueType._zod.run({value:a[n],issues:[]},i);d instanceof Promise?o.push(d.then(e=>{e.issues.length&&r.issues.push(...je(n,e.issues)),r.value[u]=e.value})):(d.issues.length&&r.issues.push(...je(n,d.issues)),r.value[u]=d.value)}c&&c.length>0&&r.issues.push({code:`unrecognized_keys`,input:a,inst:e,keys:c,continue:!0})}return o.length?Promise.all(o).then(()=>r):r}}),ca=S(`$ZodMap`,(e,t)=>{E.init(e,t);let n=w.memoizer;n?.attach(e),e._zod.parse=(r,i)=>{let a=r.value;if(!(a instanceof Map))return r.issues.push({expected:`map`,code:`invalid_type`,input:a,inst:e}),r;let o=[];r.value=n?n.alloc(e,r,new Map,i):new Map;let s=i?.abortEarly,c=r.issues.length;for(let[n,l]of a){if(s&&r.issues.length!==c){if(b(r,c))break;c=r.issues.length}let u=t.keyType._zod.run({value:n,issues:[]},i),d=t.valueType._zod.run({value:l,issues:[]},i);u instanceof Promise||d instanceof Promise?o.push(Promise.all([u,d]).then(([t,o])=>{la(t,o,r,n,a,e,i)})):la(u,d,r,n,a,e,i)}return o.length?Promise.all(o).then(()=>r):r}});function la(e,t,n,r,i,a,o){e.issues.length&&(pe.has(typeof r)?n.issues.push(...je(r,e.issues)):n.issues.push({code:`invalid_key`,origin:`map`,input:i,inst:a,issues:e.issues.map(e=>Pe(e,o,at()))})),t.issues.length&&(pe.has(typeof r)?n.issues.push(...je(r,t.issues)):n.issues.push({origin:`map`,code:`invalid_element`,input:i,inst:a,key:r,issues:t.issues.map(e=>Pe(e,o,at()))})),n.value.set(e.value,t.value)}var ua=S(`$ZodSet`,(e,t)=>{E.init(e,t);let n=w.memoizer;n?.attach(e),e._zod.parse=(r,i)=>{let a=r.value;if(!(a instanceof Set))return r.issues.push({input:a,inst:e,expected:`set`,code:`invalid_type`}),r;let o=[];r.value=n?n.alloc(e,r,new Set,i):new Set;let s=i?.abortEarly,c=r.issues.length;for(let e of a){if(s&&r.issues.length!==c){if(b(r,c))break;c=r.issues.length}let n=t.valueType._zod.run({value:e,issues:[]},i);n instanceof Promise?o.push(n.then(e=>da(e,r))):da(n,r)}return o.length?Promise.all(o).then(()=>r):r}});function da(e,t){e.issues.length&&t.issues.push(...e.issues),t.value.add(e.value)}var fa=S(`$ZodEnum`,(e,t)=>{E.init(e,t);let n=s(t.entries),r=new Set(n);e._zod.values=r,x(e,`pattern`,e=>{let t=s(e.def.entries).filter(e=>pe.has(typeof e));return RegExp(t.length?`^(${t.map(e=>he(e.toString())).join(`|`)})$`:`^[^\\s\\S]$`)}),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}}),pa=S(`$ZodLiteral`,(e,t)=>{E.init(e,t);let n=new Set(t.values);e._zod.values=n,x(e,`pattern`,e=>{let t=e.def.values;return RegExp(t.length?`^(${t.map(e=>typeof e==`string`?he(e):e?he(e.toString()):String(e)).join(`|`)})$`:`^[^\\s\\S]$`)}),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}}),ma=S(`$ZodFile`,(e,t)=>{E.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}}),ha=S(`$ZodTransform`,(e,t)=>{E.init(e,t),e._zod.optin=`optional`,w.memoizer?.guard(e),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new C(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));if(i instanceof Promise)throw new it;return n.value=i,n}});function ga(e,t){return e.value=t.issues.length?void 0:t.value,e}var _a=S(`$ZodOptional`,(e,t)=>{E.init(e,t),x(e,`optin`,e=>e.def.innerType._zod.optin===`defaulted`?`defaulted`:`optional`),e._zod.optout=`optional`,x(e,`values`,e=>{let t=e.def.innerType._zod.values;return t?new Set([...t,void 0]):void 0}),x(e,`pattern`,e=>{let t=e.def.innerType._zod.pattern;return t?RegExp(`^(${p(t.source)})?$`):void 0}),e._zod.parse=(e,n)=>{if(e.value===void 0){if(t.innerType._zod.optin!==`defaulted`)return e;let r=t.innerType._zod.run({value:e.value,issues:[]},n);return r instanceof Promise?r.then(t=>ga(e,t)):ga(e,r)}return t.innerType._zod.run(e,n)}}),va=S(`$ZodExactOptional`,(e,t)=>{_a.init(e,t),x(e,`values`,e=>e.def.innerType._zod.values),x(e,`pattern`,e=>e.def.innerType._zod.pattern),e._zod.parse=(e,n)=>t.innerType._zod.run(e,n)}),ya=S(`$ZodNullable`,(e,t)=>{E.init(e,t),x(e,`optin`,e=>e.def.innerType._zod.optin),x(e,`optout`,e=>e.def.innerType._zod.optout),x(e,`pattern`,e=>{let t=e.def.innerType._zod.pattern;return t?RegExp(`^(${p(t.source)}|null)$`):void 0}),x(e,`values`,e=>e.def.innerType._zod.values?new Set([...e.def.innerType._zod.values,null]):void 0),e._zod.parse=(e,n)=>e.value===null?e:t.innerType._zod.run(e,n)}),ba=S(`$ZodDefault`,(e,t)=>{E.init(e,t),e._zod.optin=`defaulted`,x(e,`values`,e=>e.def.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=>xa(e,t)):xa(r,t)}});function xa(e,t){return e.value===void 0&&(e.value=t.defaultValue),e}var Sa=S(`$ZodPrefault`,(e,t)=>{E.init(e,t),e._zod.optin=`defaulted`,x(e,`values`,e=>e.def.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))}),Ca=S(`$ZodNonOptional`,(e,t)=>{E.init(e,t),x(e,`values`,e=>{let t=e.def.innerType._zod.values;return t?new Set([...t].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=>wa(t,e)):wa(i,e)}});function wa(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 Ta=S(`$ZodSuccess`,(e,t)=>{E.init(e,t),e._zod.parse=(e,n)=>{if(n.direction===`backward`)throw new C(`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)}});function Ea(e,t,n,r){return t.issues.length?(e.value=n.catchValue({...t,value:e.value,error:{issues:t.issues.map(e=>Pe(e,r,at()))},input:e.value}),e):(e.value=t.value,t.memo&&(e.memo=!0),e)}var Da=S(`$ZodCatch`,(e,t)=>{E.init(e,t),x(e,`optin`,e=>e.def.innerType._zod.optin===`defaulted`?`defaulted`:`optional`),x(e,`optout`,e=>e.def.innerType._zod.optout),x(e,`values`,e=>e.def.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({value:e.value,issues:[]},n);return r instanceof Promise?r.then(r=>Ea(e,r,t,n)):Ea(e,r,t,n)}}),Oa=S(`$ZodNaN`,(e,t)=>{E.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)}),ka=S(`$ZodPipe`,(e,t)=>{E.init(e,t),x(e,`values`,e=>e.def.in._zod.values),x(e,`optin`,e=>e.def.in._zod.optin),x(e,`optout`,e=>e.def.out._zod.optout),x(e,`propValues`,e=>e.def.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=>Aa(e,t.in,n)):Aa(r,t.in,n)}let r=t.in._zod.run(e,n);return r instanceof Promise?r.then(e=>Aa(e,t.out,n)):Aa(r,t.out,n)}});function Aa(e,t,n){return e.issues.some(e=>e.code!==`unrecognized_keys`)?(e.aborted=!0,e):t._zod.run({value:e.value,issues:e.issues},n)}var ja=S(`$ZodCodec`,(e,t)=>{E.init(e,t),x(e,`values`,e=>e.def.in._zod.values),x(e,`optin`,e=>e.def.in._zod.optin),x(e,`optout`,e=>e.def.out._zod.optout),x(e,`propValues`,e=>e.def.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=>Ma(e,t,n)):Ma(r,t,n)}{let r=t.out._zod.run(e,n);return r instanceof Promise?r.then(e=>Ma(e,t,n)):Ma(r,t,n)}}});function Ma(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=>Na(e,r,t.out,n)):Na(e,r,t.out,n)}{let r=t.reverseTransform(e.value,e);return r instanceof Promise?r.then(r=>Na(e,r,t.in,n)):Na(e,r,t.in,n)}}function Na(e,t,n,r){return e.issues.length?(e.aborted=!0,e):n._zod.run({value:t,issues:e.issues},r)}var Pa=S(`$ZodPreprocess`,(e,t)=>{ka.init(e,t)}),Fa=S(`$ZodReadonly`,(e,t)=>{E.init(e,t),x(e,`propValues`,e=>e.def.innerType._zod.propValues),x(e,`values`,e=>e.def.innerType._zod.values),x(e,`optin`,e=>e.def.innerType?._zod?.optin),x(e,`optout`,e=>e.def.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(Ia):Ia(r)}});function Ia(e){return e.memo||(e.value=Object.freeze(e.value)),e}function La(e){let t=e._zod.def,n=t.pattern,r=!!t.format?.includes(`int`),i,a;for(let e of t.checks??[]){let t=e._zod.def;t.pattern&&(n=t.pattern),r||=!!t.format?.includes(`int`);let o=t.minimum??t.length,s=t.maximum??t.length;o!==void 0&&(i===void 0||o>i)&&(i=o),s!==void 0&&(a===void 0||s<a)&&(a=s)}if(n)return n.source;if(i!==void 0&&a!==void 0&&i>a)return`(?!)`;if(i!==void 0||a!==void 0)return kn({minimum:i,maximum:a}).source;let o=e._zod.pattern;return(r&&o===Mn?jn:o)?.source}function Ra(e){let t=e._zod.def,n=e._zod.pattern?.source,r=t.innerType??e._zod.innerType;if(r){let e=r._zod.pattern?.source,t=Ra(r);return n&&e&&t&&t!==e?n.replace(p(e),()=>p(t)):n}if(t.options){let e=t.options.map(Ra);if(e.every(Boolean))return`^(${e.map(e=>p(e)).join(`|`)})$`}return La(e)}var za=S(`$ZodTemplateLiteral`,(e,t)=>{E.init(e,t);let n=[];for(let e of t.parts)if(typeof e==`object`&&e){let t=Ra(e);if(!t)throw Error(`Invalid template literal part, no pattern found: ${[...e._zod.traits].shift()}`);n.push(p(t))}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)}),Ba=S(`$ZodFunction`,(e,t)=>(E.init(e,t),Object.defineProperty(e,"_def",{value:t}),e._zod.def=t,e.implement=t=>{if(typeof t!=`function`)throw Error(`implement() must be called with a function`);return Object.defineProperty(function(...n){let r=e._def.input?yt(e._def.input,n):n,i=Reflect.apply(t,this,r);return e._def.output?yt(e._def.output,i):i},"_zod",{value:e._zod,enumerable:!1})},e.implementAsync=t=>{if(typeof t!=`function`)throw Error(`implementAsync() must be called with a function`);return Object.defineProperty(async function(...n){let r=e._def.input?await xt(e._def.input,n):n,i=await Reflect.apply(t,this,r);return e._def.output?await xt(e._def.output,i):i},"_zod",{value:e._zod,enumerable:!1})},e._zod.parse=(t,n)=>typeof t.value==`function`?(t.value=e._def.output&&e._def.output._zod.def.type===`promise`?e.implementAsync(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 ra({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)),Va=S(`$ZodPromise`,(e,t)=>{E.init(e,t),e._zod.parse=(e,n)=>Promise.resolve(e.value).then(e=>t.innerType._zod.run({value:e,issues:[]},n))}),Ha=S(`$ZodLazy`,(e,t)=>{E.init(e,t),ee(e._zod,`innerType`,()=>{let e=t;return e._cachedInner||=t.getter(),e._cachedInner}),x(e,`pattern`,e=>e.innerType?._zod?.pattern),x(e,`propValues`,e=>e.innerType?._zod?.propValues),x(e,`optin`,e=>e.innerType?._zod?.optin??void 0),x(e,`optout`,e=>e.innerType?._zod?.optout??void 0),e._zod.parse=(t,n)=>e._zod.innerType._zod.run(t,n)}),Ua=S(`$ZodCustom`,(e,t)=>{T.init(e,t),E.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=>Wa(t,n,r,e));Wa(i,n,r,e)}});function Wa(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(Be(e))}}var Ga=class extends Error{constructor(){super(`Cannot parse a reference cycle that closes through a transform`),this.name=`ZodCyclicError`}},Ka=`~memo`,qa=[];function Ja(e){return typeof e==`object`&&!!e}function Ya(e){return e.map(e=>e.path?{...e,path:e.path.slice()}:{...e})}var Xa=new WeakMap,Za=0,Qa=1,$a=2;function eo(e,t,n){let r=Xa.get(e);if(r!==void 0)return r?$a:Za;if(t.has(e))return $a;t.add(e);let i=Za,a=e=>{if(i!==$a&&e?._zod){let r=eo(e,t,n);r>i&&(i=r)}},o=(e,r)=>{let i=Za;for(let a of Reflect.ownKeys(e)){let o=Object.getOwnPropertyDescriptor(e,a);if(r&&!o.enumerable)continue;let s=o.get?Qa:o.value?._zod?eo(o.value,t,n):Za;s>i&&(i=s)}return i},s=e=>{e>i&&(i=e)},c=e._zod.def;switch(c.type){case`object`:{let e=te(c);s(e?o(e,!0):Qa),a(c.catchall);break}case`array`:a(c.element);break;case`tuple`:for(let e of c.items)a(e);a(c.rest);break;case`record`:case`map`:a(c.keyType),a(c.valueType);break;case`set`:a(c.valueType);break;case`union`:for(let e of c.options)a(e);break;case`intersection`:a(c.left),a(c.right);break;case`optional`:case`nullable`:case`default`:case`prefault`:case`catch`:case`readonly`:case`nonoptional`:case`promise`:case`success`:a(c.innerType);break;case`pipe`:a(c.in),a(c.out);break;case`function`:a(c.input),a(c.output);break;case`lazy`:{let r=c._cachedInner??(n?e._zod.innerType:void 0);s(r?eo(r,t,!1):Qa);break}case`template_literal`:case`string`:case`number`:case`int`:case`boolean`:case`bigint`:case`symbol`:case`undefined`:case`null`:case`void`:case`never`:case`any`:case`unknown`:case`date`:case`nan`:case`enum`:case`literal`:case`file`:case`transform`:case`custom`:break;default:for(let e in c){let t=Object.getOwnPropertyDescriptor(c,e);if(!t||t.get)continue;let n=t.value;if(n&&typeof n==`object`){if(n._zod)a(n);else if(Array.isArray(n))for(let e of n)a(e)}}}return t.delete(e),to(e,i)}function to(e,t){return t!==Qa&&Xa.set(e,t===$a),t}function no(e,t){let n=e.buckets.get(t);return n||(n=new WeakMap,e.buckets.set(t,n)),n}var ro,io=[],ao={alloc(e,t,n){let r=ro;if(!r)return n;ro=void 0;let i={value:n,issues:null};return r.set(t.value,i),io.push(i),n},guard(e){var t;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{let t=e._zod.parse,n=(e,n)=>{if(n.direction!==`backward`&&so(n,e.value))throw new Ga;return t(e,n)};e._zod.parse=n,e._zod.run===t&&(e._zod.run=n)})},attach(e){var t;let n,r=!1,i,a;(t=e._zod).deferred??(t.deferred=[]),e._zod.deferred.push(()=>{let t=e._zod.parse,o=(s,c)=>{if(n===void 0){let i=eo(e,new Set,!1);if(i===Za)return e._zod.parse=t,e._zod.run===o&&(e._zod.run=t),t(s,c);i===$a||r?n=!0:r=!0}let l=s.value;if(!Ja(l))return t(s,c);let u=c[Ka];u||(u={buckets:new WeakMap,backEdges:void 0},c[Ka]=u);let d;i===c?d=a:(d=no(u,e),i=c,a=d);let f=d.get(l);if(f)return s.value=f.value,f.issues?f.issues.length&&s.issues.push(...Ya(f.issues)):(s.memo=!0,u.backEdges??(u.backEdges=new WeakSet),u.backEdges.add(f.value)),s;ro=d;let p=io.length,m=t(s,c);ro=void 0;let h=io.length>p?io.pop():void 0;return m instanceof Promise?m.then(e=>(h&&(h.issues=e.issues.length?Ya(e.issues):qa),e)):(h&&(h.issues=m.issues.length?Ya(m.issues):qa),m)};e._zod.parse=o,e._zod.run===t&&(e._zod.run=o)})}};function oo(){return ao}function so(e,t){let n=e[Ka]?.backEdges;return n!==void 0&&Ja(t)&&n.has(t)}var co=()=>{let e={string:{unit:`characters`,verb:`to have`},file:{unit:`bytes`,verb:`to have`},array:{unit:`items`,verb:`to have`},set:{unit:`items`,verb:`to have`},map:{unit:`entries`,verb:`to have`}};function t(t){return e[t]??null}let n={regex:`input`,email:`email address`,url:`URL`,emoji:`emoji`,uuid:`UUID`,uuidv4:`UUIDv4`,uuidv6:`UUIDv6`,nanoid:`nanoid`,guid:`GUID`,cuid:`cuid`,cuid2:`cuid2`,ulid:`ULID`,xid:`XID`,ksuid:`KSUID`,datetime:`ISO datetime`,date:`ISO date`,time:`ISO time`,duration:`ISO duration`,ipv4:`IPv4 address`,ipv6:`IPv6 address`,mac:`MAC address`,cidrv4:`IPv4 range`,cidrv6:`IPv6 range`,base64:`base64-encoded string`,base64url:`base64url-encoded string`,json_string:`JSON string`,e164:`E.164 number`,currency_code:`currency code`,credit_card:`credit card number`,iban:`IBAN`,jwt:`JWT`,template_literal:`input`},r={nan:`NaN`};function i(e,t){return e===`number`&&typeof t==`number`&&!Number.isFinite(t)?String(t):r[e]??e}return e=>{switch(e.code){case`invalid_type`:return`Invalid input: expected ${i(e.expected)}, received ${i(ze(e.input),e.input)}`;case`invalid_value`:return e.values.length===1?`Invalid input: expected ${_e(e.values[0])}`:`Invalid option: expected one of ${c(e.values,`|`)}`;case`too_big`:{let n=e.exact?`exactly `:e.inclusive?`<=`:`<`,r=t(e.origin);return r?`Too big: expected ${e.origin??`value`} to have ${n}${e.maximum.toString()} ${r.unit??`elements`}`:`Too big: expected ${e.origin??`value`} to be ${n}${e.maximum.toString()}`}case`too_small`:{let n=e.exact?`exactly `:e.inclusive?`>=`:`>`,r=t(e.origin);return r?`Too small: expected ${e.origin} to have ${n}${e.minimum.toString()} ${r.unit}`:`Too small: expected ${e.origin} to be ${n}${e.minimum.toString()}`}case`invalid_format`:{let t=e;return t.format===`starts_with`?`Invalid string: must start with "${t.prefix}"`:t.format===`ends_with`?`Invalid string: must end with "${t.suffix}"`:t.format===`includes`?`Invalid string: must include "${t.includes}"`:t.format===`regex`?`Invalid string: must match pattern ${t.pattern}`:`Invalid ${n[t.format]??e.format}`}case`not_multiple_of`:return`Invalid number: must be a multiple of ${e.divisor}`;case`unrecognized_keys`:return`Unrecognized key${e.keys.length>1?`s`:``}: ${c(e.keys,`, `)}`;case`invalid_key`:return`Invalid key in ${e.origin}`;case`invalid_union`:return e.options&&Array.isArray(e.options)&&e.options.length>0?`Invalid discriminator value. Expected ${e.options.map(e=>`'${e}'`).join(` | `)}`:e.inclusive===!1?`Invalid input: more than one option matched`:`Invalid input`;case`invalid_element`:return`Invalid value in ${e.origin}`;default:return`Invalid input`}}};function lo(){return{localeError:co()}}var uo,fo=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 po(){return new fo}(uo=globalThis).__zod_globalRegistry??(uo.__zod_globalRegistry=po());var mo=globalThis.__zod_globalRegistry;function ho(e){return e.checks&&=[...e.checks],e}function go(e,t){return new e(ho({type:`string`,...y(t)}))}function _o(e,t){return new e({type:`string`,format:`email`,check:`string_format`,abort:!1,...y(t)})}function vo(e,t){return new e({type:`string`,format:`guid`,check:`string_format`,abort:!1,...y(t)})}function yo(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,...y(t)})}function bo(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v4`,...y(t)})}function xo(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v6`,...y(t)})}function So(e,t){return new e({type:`string`,format:`uuid`,check:`string_format`,abort:!1,version:`v7`,...y(t)})}function Co(e,t){return new e({type:`string`,format:`url`,check:`string_format`,abort:!1,...y(t)})}function wo(e,t){return new e({type:`string`,format:`emoji`,check:`string_format`,abort:!1,...y(t)})}function To(e,t){return new e({type:`string`,format:`nanoid`,check:`string_format`,abort:!1,...y(t)})}function Eo(e,t){return new e({type:`string`,format:`cuid`,check:`string_format`,abort:!1,...y(t)})}function Do(e,t){return new e({type:`string`,format:`cuid2`,check:`string_format`,abort:!1,...y(t)})}function Oo(e,t){return new e({type:`string`,format:`ulid`,check:`string_format`,abort:!1,...y(t)})}function ko(e,t){return new e({type:`string`,format:`xid`,check:`string_format`,abort:!1,...y(t)})}function Ao(e,t){return new e({type:`string`,format:`ksuid`,check:`string_format`,abort:!1,...y(t)})}function jo(e,t){return new e({type:`string`,format:`ipv4`,check:`string_format`,abort:!1,...y(t)})}function Mo(e,t){return new e({type:`string`,format:`ipv6`,check:`string_format`,abort:!1,...y(t)})}function No(e,t){return new e({type:`string`,format:`mac`,check:`string_format`,abort:!1,...y(t)})}function Po(e,t){return new e({type:`string`,format:`cidrv4`,check:`string_format`,abort:!1,...y(t)})}function Fo(e,t){return new e({type:`string`,format:`cidrv6`,check:`string_format`,abort:!1,...y(t)})}function Io(e,t){return new e({type:`string`,format:`base64`,check:`string_format`,abort:!1,...y(t)})}function Lo(e,t){return new e({type:`string`,format:`base64url`,check:`string_format`,abort:!1,...y(t)})}function Ro(e,t){return new e({type:`string`,format:`e164`,check:`string_format`,abort:!1,...y(t)})}function zo(e,t){return new e({type:`string`,format:`credit_card`,check:`string_format`,abort:!1,...y(t)})}function Bo(e,t){return new e({type:`string`,format:`iban`,check:`string_format`,abort:!1,...y(t)})}function Vo(e,t){return new e({type:`string`,format:`jwt`,check:`string_format`,abort:!1,...y(t)})}function Ho(e,t){return new e({type:`string`,format:`datetime`,check:`string_format`,offset:!1,local:!1,precision:null,...y(t)})}function Uo(e,t){return new e({type:`string`,format:`date`,check:`string_format`,...y(t)})}function Wo(e,t){return new e({type:`string`,format:`time`,check:`string_format`,precision:null,...y(t)})}function Go(e,t){return new e({type:`string`,format:`duration`,check:`string_format`,...y(t)})}function Ko(e,t){return new e(ho({type:`number`,checks:[],...y(t)}))}function qo(e,t){return new e(ho({type:`number`,coerce:!0,checks:[],...y(t)}))}function Jo(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`safeint`,...y(t)})}function Yo(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`float32`,...y(t)})}function Xo(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`float64`,...y(t)})}function Zo(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`int32`,...y(t)})}function Qo(e,t){return new e({type:`number`,check:`number_format`,abort:!1,format:`uint32`,...y(t)})}function $o(e,t){return new e({type:`boolean`,...y(t)})}function es(e,t){return new e({type:`bigint`,...y(t)})}function ts(e,t){return new e({type:`bigint`,check:`bigint_format`,abort:!1,format:`int64`,...y(t)})}function ns(e,t){return new e({type:`bigint`,check:`bigint_format`,abort:!1,format:`uint64`,...y(t)})}function rs(e,t){return new e({type:`symbol`,...y(t)})}function is(e,t){return new e({type:`undefined`,...y(t)})}function as(e,t){return new e({type:`null`,...y(t)})}function os(e){return new e({type:`any`})}function ss(e){return new e({type:`unknown`})}function cs(e,t){return new e({type:`never`,...y(t)})}function ls(e,t){return new e({type:`void`,...y(t)})}function us(e,t){return new e({type:`date`,...y(t)})}function ds(e,t){return new e({type:`nan`,...y(t)})}function fs(e,t){return new ar({check:`less_than`,...y(t),value:e,inclusive:!1})}function ps(e,t){return new ar({check:`less_than`,...y(t),value:e,inclusive:!0})}function ms(e,t){return new or({check:`greater_than`,...y(t),value:e,inclusive:!1})}function hs(e,t){return new or({check:`greater_than`,...y(t),value:e,inclusive:!0})}function gs(e){return ms(0,e)}function _s(e){return fs(0,e)}function vs(e){return ps(0,e)}function ys(e){return hs(0,e)}function bs(e,t){return new sr({check:`multiple_of`,...y(t),value:e})}function xs(e,t){return new ur({check:`max_size`,...y(t),maximum:e})}function Ss(e,t){return new dr({check:`min_size`,...y(t),minimum:e})}function Cs(e,t){return new fr({check:`size_equals`,...y(t),size:e})}function ws(e,t){return new pr({check:`max_length`,...y(t),maximum:e})}function Ts(e,t){return new mr({check:`min_length`,...y(t),minimum:e})}function Es(e,t){return new hr({check:`length_equals`,...y(t),length:e})}function Ds(e,t){return new _r({check:`string_format`,format:`regex`,...y(t),pattern:e})}function Os(e){return new vr({check:`string_format`,format:`lowercase`,...y(e)})}function ks(e){return new yr({check:`string_format`,format:`uppercase`,...y(e)})}function As(e,t){return new br({check:`string_format`,format:`includes`,...y(t),includes:e})}function js(e,t){return new xr({check:`string_format`,format:`starts_with`,...y(t),prefix:e})}function Ms(e,t){return new Sr({check:`string_format`,format:`ends_with`,...y(t),suffix:e})}function Ns(e,t,n){return new wr({check:`property`,property:e,schema:t,...y(n)})}function Ps(e,t){return new Tr({check:`properties`,shape:e,...y(t)})}function Fs(e,t){return new Er({check:`mime_type`,mime:e,...y(t)})}function Is(e){return new Dr({check:`overwrite`,tx:e})}function Ls(e){return Is(t=>t.normalize(e))}function Rs(){return Is(e=>e.trim())}function zs(){return Is(e=>e.toLowerCase())}function Bs(){return Is(e=>e.toUpperCase())}function Vs(){return Is(e=>se(e))}function Hs(e,t,n){return new e({type:`array`,element:t,...y(n)})}function Us(e,t){return new e({type:`file`,...y(t)})}function Ws(e,t,n){let r=y(n);return r.abort??=!0,new e({type:`custom`,check:`custom`,fn:t,...r})}function Gs(e,t,n){return new e({type:`custom`,check:`custom`,fn:t,...y(n)})}function Ks(e,t){let n=qs(t=>(t.addIssue=e=>{if(typeof e==`string`)t.issues.push(Be(e,t.value,n._zod.def));else{let r=e;r.fatal&&(r.continue=!1),r.code??=`custom`,`input`in r||(r.input=t.value),r.inst??=n,r.continue??=!n._zod.def.abort,t.issues.push(Be(r))}},e(t.value,t)),t);return n}function qs(e,t){let n=new T({check:`custom`,...y(t)});return n._zod.check=e,n}function Js(e){let t=new T({check:`describe`});return t._zod.onattach=[t=>{let n=mo.get(t)??{};mo.add(t,{...n,description:e})}],t._zod.check=()=>{},t}function Ys(e){let t=new T({check:`meta`});return t._zod.onattach=[t=>{let n=mo.get(t)??{};mo.add(t,{...n,...e})}],t._zod.check=()=>{},t}function Xs(e,t){let n=y(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??ja,c=e.Boolean??ki,l=new s({type:`pipe`,in:new(e.String??Nr)({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)&&(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._zod.bag.truthy=r,l._zod.bag.falsy=i,l._zod.bag.case=n.case??`insensitive`,l}function Zs(e,t,n,r={}){let i=y(r),a={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 Qs(e,...t){for(let n of t)for(let t of Reflect.ownKeys(n))Object.prototype.propertyIsEnumerable.call(n,t)&&g(e,t,n[t]);return e}function $s(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??mo,target:t,unrepresentable:e?.unrepresentable??`throw`,override:e?.override??(()=>{}),io:e?.io??`output`,counter:0,seen:new Map,sharedDefsExtractedFor:void 0,sharedEmitDoneFor:void 0,cycles:e?.cycles??`ref`,reused:e?.reused??`inline`,intersections:[],deferred:[],external:e?.external??void 0}}function O(e,t,n,r,i){let a=typeof t.unrepresentable==`function`?t.unrepresentable({zodSchema:e,path:r.path,message:i}):t.unrepresentable;if(a===`any`)return!1;if(a===void 0||a===`throw`)throw Error(i);return Object.assign(n,a),!0}function k(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),t.sharedDefsExtractedFor=void 0,t.sharedEmitDoneFor=void 0;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,k(a,t,r),t.seen.get(a).isParent=!0)}let c=t.metadataRegistry.get(e);return c&&Qs(o.schema,c),t.io===`input`&&lc(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 ec(e){return e.replace(/~/g,`~0`).replace(/\//g,`~1`)}function tc(e,t){let n=e.seen.get(t);if(!n)throw Error(`Unprocessed schema. This is a bug in Zod.`);if(e.external&&e.sharedDefsExtractedFor===e.external)return;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}/${ec(a)}`}}let i=`#/${r}/`;if(t[1]===n&&!t[1].schema.id)return{ref:`#`};let a=t[1].schema.id??`__schema${e.counter++}`;return{defId:a,ref:i+ec(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>
61
61
 
62
- 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);else{if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}(e.metadataRegistry.get(n[0])?.id||r.cycle||r.count>1&&e.reused===`ref`)&&a(n)}}e.external&&(e.sharedDefsExtractedFor=e.external)}function nc(e){let t=e.anyOf;if(!Array.isArray(t)||t.length===0||e.type!==void 0)return;let n=[];for(let e of t){if(!e||typeof e!=`object`)return;nc(e);let t=Object.keys(e);if(t.length!==1||t[0]!==`type`)return;let r=e.type;for(let e of Array.isArray(r)?r:[r]){if(typeof e!=`string`)return;n.includes(e)||n.push(e)}}delete e.anyOf,e.type=n.length===1?n[0]:n}var rc=new Set([`type`,`properties`,`required`,`additionalProperties`]),ic=[`oneOf`,`anyOf`];function ac(e){let t=e.additionalProperties;return t===void 0||t===!1||typeof t!=`object`||!t?null:Object.keys(t).length?t:null}function oc(e){let t=[];for(let n of e){if(typeof n!=`object`||n.type!==`object`)return null;for(let e in n)if(!rc.has(e))return null;t.push(n)}let n={},r=new Set;for(let e of t){for(let r in e.properties){if(Object.prototype.hasOwnProperty.call(n,r))continue;let e=[];for(let n of t){let t=n.properties?.[r]??ac(n);t!=null&&(e.some(e=>JSON.stringify(e)===JSON.stringify(t))||e.push(t))}g(n,r,e.length===1?e[0]:oc(e)??{allOf:e})}for(let t of e.required??[])r.add(t)}let i={type:`object`,properties:n};if(r.size&&(i.required=[...r]),t.every(e=>e.additionalProperties===!1))i.additionalProperties=!1;else{let e=[];for(let n of t){let t=ac(n);t&&!e.some(e=>JSON.stringify(e)===JSON.stringify(t))&&e.push(t)}e.length===1?i.additionalProperties=e[0]:e.length>1&&(i.additionalProperties={allOf:e})}return i}function sc(e){let t=e.allOf;if(!Array.isArray(t)||t.length<2)return;for(let t of rc)if(t in e)return;let n=t.filter(e=>ic.some(t=>Array.isArray(e[t]))),r=null;if(!n.length)r=oc(t);else{let e=n[0],i=ic.find(t=>Array.isArray(e[t]));if(Object.keys(e).length!==1)return;let a=t.filter(t=>t!==e),o=e[i].map(e=>oc([...a,e]));if(o.some(e=>!e))return;r={[i]:o}}r&&(delete e.allOf,Qs(e,r))}function cc(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)):Qs(i,s),Qs(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??[]})};if(!e.external||e.sharedEmitDoneFor!==e.external){for(let t of[...e.seen.entries()].reverse())r(t[0]);if(e.target!==`openapi-3.0`)for(let t of e.seen.entries())nc(t[1].def??t[1].schema);for(let t of e.deferred)t();if(e.intersections.length){let t=new Map;for(let n of e.seen.values())for(let e of[n.schema,n.def]){let n=e?.allOf;if(!Array.isArray(n))continue;let r=t.get(n);r?r.push(e):t.set(n,[e])}for(let n of e.intersections)for(let e of t.get(n)??[])sc(e)}}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)}Qs(i,n.defId?n.schema: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??{};if(!e.external||e.sharedEmitDoneFor!==e.external)for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(e.def.id===e.defId&&delete e.def.id,g(o,e.defId,e.def))}e.external&&(e.sharedEmitDoneFor=e.external),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:dc(t,`input`,e.processors),output:dc(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function lc(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 lc(r.element,n);if(r.type===`set`)return lc(r.valueType,n);if(r.type===`lazy`)return lc(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`||r.type===`catch`)return lc(r.innerType,n);if(r.type===`intersection`)return lc(r.left,n)||lc(r.right,n);if(r.type===`record`||r.type===`map`)return lc(r.keyType,n)||lc(r.valueType,n);if(r.type===`pipe`)return e._zod.traits.has(`$ZodCodec`)?!0:lc(r.in,n)||lc(r.out,n);if(r.type===`object`){for(let e in r.shape)if(lc(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(lc(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(lc(e,n))return!0;return!!(r.rest&&lc(r.rest,n))}return!1}var uc=(e,t={})=>n=>{let r=$s({...n,processors:t});return k(e,r),tc(r,e),cc(r,e)},dc=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=$s({...i??{},target:a,io:t,processors:n});return k(e,o),tc(o,e),cc(o,e)},fc=(e,t,n)=>{(e[t]===void 0||n>e[t])&&(e[t]=n)},pc=(e,t,n)=>{(e[t]===void 0||n<e[t])&&(e[t]=n)},mc=(e,t)=>{fc(e,`minimum`,t),pc(e,`maximum`,t)},hc=(e,t)=>{e.multipleOf??=[],e.multipleOf.includes(t)||e.multipleOf.push(t)},gc=(e,t)=>{e.patterns??=new Set,e.patterns.add(t)},_c=(e,t)=>{e.mime=e.mime?e.mime.filter(e=>t.includes(e)):[...t]},vc=(e,t)=>{e.format=t,t.includes(`int`)&&(e.isInt=!0)},yc=(e,t)=>fc(e,`minimum`,t.minimum),bc=(e,t)=>pc(e,`maximum`,t.maximum),xc=e=>(t,n)=>{vc(t,n.format);let[r,i]=e[n.format];fc(t,`minimum`,r),pc(t,`maximum`,i)},Sc={greater_than:(e,t)=>fc(e,t.inclusive?`minimum`:`exclusiveMinimum`,t.value),less_than:(e,t)=>pc(e,t.inclusive?`maximum`:`exclusiveMaximum`,t.value),multiple_of:(e,t)=>hc(e,t.value),number_format:xc(ye),bigint_format:xc(be),min_length:yc,max_length:bc,length_equals:(e,t)=>mc(e,t.length),min_size:yc,max_size:bc,size_equals:(e,t)=>mc(e,t.size),string_format:(e,t)=>{vc(e,t.format),t.pattern&&gc(e,t.pattern),(t.format===`base64`||t.format===`base64url`)&&(e.contentEncoding=t.format),(t.local||t.precision===-1)&&(e.laxFormat=!0)},mime_type:(e,t)=>_c(e,t.mime)};function A(e){let t={},n=e._zod.def,r=e._zod.traits.has(`$ZodCheck`)?[e,...n.checks??[]]:n.checks??[];for(let e of r)Sc[e._zod.def.check]?.(t,e._zod.def);let i=e._zod.bag;i.minimum!==void 0&&fc(t,`minimum`,i.minimum),i.exclusiveMinimum!==void 0&&fc(t,`exclusiveMinimum`,i.exclusiveMinimum),i.maximum!==void 0&&pc(t,`maximum`,i.maximum),i.exclusiveMaximum!==void 0&&pc(t,`exclusiveMaximum`,i.exclusiveMaximum),i.multipleOf!==void 0&&hc(t,i.multipleOf),i.format!==void 0&&(t.format??=i.format,i.format.includes(`int`)&&(t.isInt=!0)),i.mime&&_c(t,i.mime);for(let e of i.patterns??[])gc(t,e);return t}var Cc={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},wc=new Map([[di,pn],[pi,mn]]),Tc=e=>wc.get(e)??e,Ec=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l,laxFormat:u}=A(e);if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=Cc[s]??s,i.format===``&&delete i.format,(s===`time`||u)&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c].map(Tc);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}))])}},Dc=(e,t,n,r)=>{let i=n,{minimum:a,maximum:o,multipleOf:s,exclusiveMaximum:c,exclusiveMinimum:l,isInt:u}=A(e);i.type=u?`integer`:`number`;let d=typeof l==`number`&&l>=(a??-1/0),f=typeof c==`number`&&c<=(o??1/0),p=t.target===`draft-04`||t.target===`openapi-3.0`;if(d?p?(i.minimum=l,i.exclusiveMinimum=!0):i.exclusiveMinimum=l:typeof a==`number`&&(i.minimum=a),f?p?(i.maximum=c,i.exclusiveMaximum=!0):i.exclusiveMaximum=c:typeof o==`number`&&(i.maximum=o),s){let n=new Set;for(let a of s)Number.isFinite(a)&&a!==0?n.add(Math.abs(a)):O(e,t,i,r,`A multipleOf divisor of ${a} cannot be represented in JSON Schema`);let[a,...o]=n;a!==void 0&&(i.multipleOf=a),o.length&&(i.allOf=[...i.allOf??[],...o.map(e=>({multipleOf:e}))])}},Oc=(e,t,n,r)=>{n.type=`boolean`},kc=(e,t,n,r)=>{O(e,t,n,r,`BigInt cannot be represented in JSON Schema`)},Ac=(e,t,n,r)=>{O(e,t,n,r,`Symbols cannot be represented in JSON Schema`)},jc=(e,t,n,r)=>{t.target===`openapi-3.0`?(n.type=`string`,n.nullable=!0,n.enum=[null]):n.type=`null`},Mc=(e,t,n,r)=>{O(e,t,n,r,`Undefined cannot be represented in JSON Schema`)},Nc=(e,t,n,r)=>{O(e,t,n,r,`Void cannot be represented in JSON Schema`)},Pc=(e,t,n,r)=>{n.not={}},Fc=(e,t,n,r)=>{},Ic=(e,t,n,r)=>{},Lc=(e,t,n,r)=>{O(e,t,n,r,`Date cannot be represented in JSON Schema`)},Rc=(e,t,n,r)=>{let i=e._zod.def,a=s(i.entries);a.length===0?n.not={}:(a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a)},zc=(e,t,n,r)=>{let i=e._zod.def;if(i.values.length===0){n.not={};return}let a=[];for(let o of i.values)if(o===void 0){if(O(e,t,n,r,"Literal `undefined` cannot be represented in JSON Schema"))return}else if(typeof o==`bigint`){if(O(e,t,n,r,`BigInt literals cannot be represented in JSON Schema`))return;a.push(Number(o))}else a.push(o);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}},Bc=(e,t,n,r)=>{O(e,t,n,r,`NaN cannot be represented in JSON Schema`)},Vc=(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},Hc=(e,t,n,r)=>{let i=n;i.type=`string`,i.format=`binary`,i.contentEncoding=`binary`;let{minimum:a,maximum:o,mime:s}=A(e);a!==void 0&&(i.minLength=a),o!==void 0&&(i.maxLength=o),s&&(s.length===0?i.not={}:s.length===1?i.contentMediaType=s[0]:i.anyOf=s.map(e=>({contentMediaType:e})))},Uc=(e,t,n,r)=>{n.type=`boolean`},Wc=(e,t,n,r)=>{O(e,t,n,r,`Custom types cannot be represented in JSON Schema`)},Gc=(e,t,n,r)=>{O(e,t,n,r,`Function types cannot be represented in JSON Schema`)},Kc=(e,t,n,r)=>{O(e,t,n,r,`Transforms cannot be represented in JSON Schema`)},qc=(e,t,n,r)=>{O(e,t,n,r,`Map cannot be represented in JSON Schema`)},Jc=(e,t,n,r)=>{O(e,t,n,r,`Set cannot be represented in JSON Schema`)},Yc=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=A(e);typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=k(a.element,t,{...r,path:[...r.path,`items`]})};function Xc(e){let t=e._zod.def;return t.type===`pipe`&&t.in._zod.traits.has(`$ZodTransform`)?Xc(t.out):t.type===`catch`?Xc(t.innerType):e._zod.optin}var Zc=(e,t,n,r)=>{let i=n,a=e._zod.def,o=a.shape;if(Object.getOwnPropertySymbols(o).length&&O(e,t,i,r,`Symbol keys cannot be represented in JSON Schema`))return;i.type=`object`,i.properties={};for(let e in o)g(i.properties,e,k(o[e],t,{...r,path:[...r.path,`properties`,e]}));let s=[];for(let e of Object.keys(o)){let n=a.shape[e];(t.io===`input`?Xc(n)===void 0:n._zod.optout===void 0)&&s.push(e)}s.length>0&&(i.required=s),a.catchall?._zod.def.type===`never`?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=k(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},Qc=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>k(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},$c=(e,t,n,r)=>{let i=e._zod.def,a=k(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=k(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1,c=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]];n.allOf=c,t.intersections.push(c)},el=(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)=>k(e,t,{...r,path:[...r.path,o,n]})),l=a.rest?k(a.rest,t,{...r,path:[...r.path,s,...t.target===`openapi-3.0`?[a.items.length]:[]]}):null,u=a.items.length;for(;u>0;){let e=a.items[u-1];if(!(t.io===`input`?Xc(e)!==void 0:e._zod.optout===`optional`))break;u--}let d=a.items.length,f=!a.rest;t.target===`draft-2020-12`?(i.prefixItems=c,f?i.items=!1:l&&(i.items=l),u>0&&(i.minItems=u),f&&(i.maxItems=d)):t.target===`openapi-3.0`?(i.items={anyOf:c},l&&i.items.anyOf.push(l),u>0&&(i.minItems=u),f&&(i.maxItems=d)):(i.items=c,f?i.additionalItems=!1:l&&(i.additionalItems=l),u>0&&(i.minItems=u),f&&(i.maxItems=d));let{minimum:p,maximum:m}=A(e);typeof p==`number`&&(i.minItems=p),typeof m==`number`&&(i.maxItems=m)};function tl(e,t,n){if(t.$ref){if(n.has(t))return t;n.add(t);let r=e.get(t)?.def;if(!r)return t;let i=tl(e,r,n);return i===r?t:i}for(let r of[`anyOf`,`oneOf`]){let i=t[r];if(!Array.isArray(i))continue;let a=i.map(t=>tl(e,t,n));a.some((e,t)=>e!==i[t])&&(t={...t,[r]:a})}let r=Array.isArray(t.type)?t.type:[t.type],i=!r.includes(`string`)&&r.some(e=>e===`number`||e===`integer`),a=t.enum??(t.const===void 0?void 0:[t.const]);if(!i&&!a?.some(e=>typeof e==`number`))return t;let{minimum:o,maximum:s,exclusiveMinimum:c,exclusiveMaximum:l,multipleOf:u,format:d,id:f,...p}=t;return p.enum?p.enum=p.enum.map(e=>typeof e==`number`?String(e):e):typeof p.const==`number`&&(p.const=String(p.const)),i&&(p.type=`string`,a||(p.pattern=(r.includes(`number`)?Mn:jn).source)),p}var nl=new WeakMap;function rl(e){let t=new Map;for(let n of e.seen.values())n.def&&!t.has(n.schema)&&t.set(n.schema,n);let n=new Map;for(let r of nl.get(e)??[]){let i=e.seen.get(r),a=(i?.def??i?.schema)?.propertyNames;if(!a||a===!0||n.has(a))continue;let o=tl(t,a,new Set);o!==a&&n.set(a,o)}if(n.size)for(let t of e.seen.values())for(let e of[t.schema,t.def]){let t=e&&n.get(e.propertyNames);t&&(e.propertyNames=t)}}var il=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`;let o=a.keyType,s=A(o).patterns;if(a.mode===`loose`&&s&&s.size>0){let e=k(a.valueType,t,{...r,path:[...r.path,`patternProperties`,`*`]});i.patternProperties={};for(let t of s)g(i.patternProperties,Tc(t).source,e)}else{if(t.target===`draft-07`||t.target===`draft-2020-12`){i.propertyNames=k(a.keyType,t,{...r,path:[...r.path,`propertyNames`]});let n=nl.get(t);n||(n=[],nl.set(t,n),t.deferred.push(()=>rl(t))),n.push(e)}i.additionalProperties=k(a.valueType,t,{...r,path:[...r.path,`additionalProperties`]})}let c=o._zod.values,l=t.io===`input`&&Xc(a.valueType)!==void 0;if(c&&!a.partial&&!l){let e=[...c].filter(e=>typeof e==`string`||typeof e==`number`);e.length>0&&(i.required=e.map(String))}},al=(e,t,n,r)=>{let i=e._zod.def,a=k(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`}]},ol=(e,t,n,r)=>{let i=e._zod.def;k(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},sl=Symbol();function cl(e,t,n,r,i){let a=!1,o=JSON.stringify(e,(e,t)=>typeof t==`bigint`?(a=!0,null):t);return a?(O(t,n,r,i,`BigInt defaults cannot be represented in JSON Schema`),sl):JSON.parse(o)}var ll=(e,t,n,r)=>{let i=e._zod.def;k(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o=cl(i.defaultValue,e,t,n,r);o!==sl&&(n.default=o)},ul=(e,t,n,r)=>{let i=e._zod.def;k(i.innerType,t,r);let a=t.seen.get(e);if(a.ref=i.innerType,t.io!==`input`)return;let o=cl(i.defaultValue,e,t,n,r);o!==sl&&(n._prefault=o)},dl=(e,t,n,r)=>{let i=e._zod.def;k(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{O(e,t,n,r,`Dynamic catch values are not supported in JSON Schema`);return}n.default=o},fl=(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;k(o,t,r);let s=t.seen.get(e);s.ref=o},pl=(e,t,n,r)=>{let i=e._zod.def;k(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},ml=(e,t,n,r)=>{let i=e._zod.def;k(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},hl=(e,t,n,r)=>{let i=e._zod.def;k(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},gl=(e,t,n,r)=>{let i=e._zod.innerType;k(i,t,r);let a=t.seen.get(e);a.ref=i},_l={string:Ec,number:Dc,boolean:Oc,bigint:kc,symbol:Ac,null:jc,undefined:Mc,void:Nc,never:Pc,any:Fc,unknown:Ic,date:Lc,enum:Rc,literal:zc,nan:Bc,template_literal:Vc,file:Hc,success:Uc,custom:Wc,function:Gc,transform:Kc,map:qc,set:Jc,array:Yc,object:Zc,union:Qc,intersection:$c,tuple:el,record:il,nullable:al,nonoptional:ol,default:ll,prefault:ul,catch:dl,pipe:fl,readonly:pl,promise:ml,optional:hl,lazy:gl};function vl(e,t){if(`_idmap`in e){let n=e,r=$s({...t,processors:_l}),i={};for(let e of n._idmap.entries()){let[t,n]=e;k(n,r)}let a={};r.external={registry:n,uri:t?.uri,defs:i};for(let e of n._idmap.entries()){let[t,n]=e;tc(r,n),g(a,t,cc(r,n))}return Object.keys(i).length>0&&(a.__shared={[r.target===`draft-2020-12`?`$defs`:`definitions`]:i}),{schemas:a}}let n=$s({...t,processors:_l});return k(e,n),tc(n,e),cc(n,e)}var yl=t({endsWith:()=>Ms,gt:()=>ms,gte:()=>hs,includes:()=>As,length:()=>Es,lowercase:()=>Os,lt:()=>fs,lte:()=>ps,maxLength:()=>ws,maxSize:()=>xs,mime:()=>Fs,minLength:()=>Ts,minSize:()=>Ss,multipleOf:()=>bs,negative:()=>_s,nonnegative:()=>ys,nonpositive:()=>vs,normalize:()=>Ls,overwrite:()=>Is,positive:()=>gs,properties:()=>Ps,property:()=>Ns,regex:()=>Ds,size:()=>Cs,slugify:()=>Vs,startsWith:()=>js,toLowerCase:()=>zs,toUpperCase:()=>Bs,trim:()=>Rs,uppercase:()=>ks}),bl=new WeakSet([Object.prototype,Error.prototype]);function xl(e,t,n){Object.defineProperty(e,t,{configurable:!0,enumerable:!1,get(){let e=n(this);return Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0}),e},set(e){Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0})}})}var Sl=S(`ZodError`,(e,t)=>{ft.init(e,t),e.name=`ZodError`;let n=Object.getPrototypeOf(e);bl.has(n)||(bl.add(n),xl(n,`format`,e=>t=>gt(e,t)),xl(n,`flatten`,e=>t=>ht(e,t)),xl(n,`addIssue`,e=>t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,l,2)}),xl(n,`addIssues`,e=>t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,l,2)}),Object.defineProperty(n,"isEmpty",{configurable:!0,enumerable:!1,get(){return this.issues.length===0}}))},void 0,{Parent:Error}),Cl=vt(Sl),wl=bt(Sl),Tl=St(Sl),El=wt(Sl),Dl=At(Sl),Ol=jt(Sl),kl=Mt(Sl),Al=Nt(Sl),jl=Pt(Sl),Ml=Ft(Sl),Nl=It(Sl),Pl=Lt(Sl),Fl=t({ZodAny:()=>ld,ZodArray:()=>vd,ZodBase64:()=>Eu,ZodBase64URL:()=>Ou,ZodBigInt:()=>Qu,ZodBigIntFormat:()=>ed,ZodBoolean:()=>Zu,ZodCIDRv4:()=>Su,ZodCIDRv6:()=>wu,ZodCUID:()=>ou,ZodCUID2:()=>cu,ZodCatch:()=>of,ZodCodec:()=>ff,ZodCreditCard:()=>Mu,ZodCustom:()=>Ef,ZodCustomStringFormat:()=>Ru,ZodDate:()=>gd,ZodDefault:()=>Zd,ZodDiscriminatedUnion:()=>Td,ZodE164:()=>Au,ZodEmail:()=>Wl,ZodEmoji:()=>nu,ZodEnum:()=>Rd,ZodExactOptional:()=>Kd,ZodFile:()=>Vd,ZodFunction:()=>wf,ZodGUID:()=>Kl,ZodIBAN:()=>Pu,ZodIPv4:()=>gu,ZodIPv6:()=>bu,ZodISODate:()=>Vl,ZodISODateTime:()=>Bl,ZodISODuration:()=>Ul,ZodISOTime:()=>Hl,ZodInstanceOf:()=>Nf,ZodIntersection:()=>Dd,ZodJWT:()=>Iu,ZodKSUID:()=>mu,ZodLazy:()=>bf,ZodLiteral:()=>Bd,ZodMAC:()=>vu,ZodMap:()=>Pd,ZodNaN:()=>cf,ZodNanoID:()=>iu,ZodNever:()=>fd,ZodNonOptional:()=>tf,ZodNull:()=>sd,ZodNullable:()=>Jd,ZodNumber:()=>Wu,ZodNumberFormat:()=>Gu,ZodObject:()=>bd,ZodOptional:()=>Gd,ZodPipe:()=>uf,ZodPrefault:()=>$d,ZodPreprocess:()=>hf,ZodPromise:()=>Sf,ZodReadonly:()=>gf,ZodRecord:()=>jd,ZodSet:()=>Id,ZodString:()=>zl,ZodStringFormat:()=>N,ZodSuccess:()=>rf,ZodSymbol:()=>rd,ZodTemplateLiteral:()=>vf,ZodTransform:()=>Ud,ZodTuple:()=>kd,ZodType:()=>j,ZodULID:()=>uu,ZodURL:()=>$l,ZodUUID:()=>Jl,ZodUndefined:()=>ad,ZodUnion:()=>Sd,ZodUnknown:()=>dd,ZodVoid:()=>md,ZodXID:()=>fu,ZodXor:()=>Cd,_ZodString:()=>Rl,_default:()=>Qd,_function:()=>Tf,any:()=>ud,array:()=>L,base64:()=>Du,base64url:()=>ku,bigint:()=>$u,boolean:()=>F,catch:()=>sf,check:()=>Df,cidrv4:()=>Cu,cidrv6:()=>Tu,codec:()=>pf,creditCard:()=>Nu,cuid:()=>su,cuid2:()=>lu,currencyCode:()=>Hu,custom:()=>Of,date:()=>_d,describe:()=>jf,discriminatedUnion:()=>Ed,e164:()=>ju,email:()=>Gl,emoji:()=>ru,enum:()=>H,exactOptional:()=>qd,file:()=>Hd,float32:()=>qu,float64:()=>Ju,function:()=>Tf,guid:()=>ql,hash:()=>Uu,hex:()=>Vu,hostname:()=>Bu,httpUrl:()=>tu,iban:()=>Fu,instanceof:()=>Pf,int:()=>Ku,int32:()=>Yu,int64:()=>td,intersection:()=>Od,invertCodec:()=>mf,ipv4:()=>_u,ipv6:()=>xu,json:()=>If,jwt:()=>Lu,keyof:()=>yd,ksuid:()=>hu,lazy:()=>xf,literal:()=>U,looseObject:()=>z,looseRecord:()=>Nd,mac:()=>yu,map:()=>Fd,meta:()=>Mf,nan:()=>lf,nanoid:()=>au,nativeEnum:()=>zd,never:()=>pd,nonoptional:()=>nf,null:()=>cd,nullable:()=>Yd,nullish:()=>Xd,number:()=>P,object:()=>R,optional:()=>W,partialRecord:()=>Md,pipe:()=>df,prefault:()=>ef,preprocess:()=>Lf,promise:()=>Cf,readonly:()=>_f,record:()=>V,refine:()=>kf,set:()=>Ld,strictObject:()=>xd,string:()=>M,stringFormat:()=>zu,stringbool:()=>Ff,success:()=>af,superRefine:()=>Af,symbol:()=>id,templateLiteral:()=>yf,transform:()=>Wd,tuple:()=>Ad,uint32:()=>Xu,uint64:()=>nd,ulid:()=>du,undefined:()=>od,union:()=>B,unknown:()=>I,url:()=>eu,uuid:()=>Yl,uuidv4:()=>Xl,uuidv6:()=>Zl,uuidv7:()=>Ql,void:()=>hd,xid:()=>pu,xor:()=>wd});function Il(){w.localeError||at(lo())}function Ll(){w.memoizer||at({memoizer:oo()})}var j=S(`ZodType`,(e,t)=>(Il(),E.init(e,t),e.def=t,e.type=t.type,e),{check(...e){let t=this.def;return this.clone(v(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(kf(e,t))},superRefine(e,t){return this.check(Af(e,t))},overwrite(e){return this.check(Is(e))},optional(){return W(this)},exactOptional(){return qd(this)},nullable(){return Yd(this)},nullish(){return W(Yd(this))},nonoptional(e){return nf(this,e)},array(){return L(this)},or(e){return B([this,e])},and(e){return Od(this,e)},transform(e){return df(this,Wd(e))},default(e){return Qd(this,e)},prefault(e){return ef(this,e)},catch(e){return sf(this,e)},pipe(e){return df(this,e)},readonly(){return _f(this)},describe(e){let t=this.clone();return mo.add(t,{description:e}),t},meta(...e){if(e.length===0)return mo.get(this);let t=this.clone();return mo.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e,...t){return t.length===0?e(this):e(this,...t)},get"~standard"(){return Ue(this,`~standard`,{...Mr(this),jsonSchema:{input:dc(this,`input`),output:dc(this,`output`)}})},set"~standard"(e){He(this,`~standard`,e)},parse:function e(t,n){return Cl(this,t,n,{callee:e})},parseAsync:async function e(t,n){return await wl(this,t,n,{callee:e})},safeParse(e,t){return Tl(this,e,t)},async safeParseAsync(e,t){return El(this,e,t)},get spa(){return this?.safeParseAsync},set spa(e){He(this,`spa`,e)},validate(e,t){return Dt(this,e,t)},validateAsync(e,t){return kt(this,e,t)},encode:function e(t,n){return Dl(this,t,n,{callee:e})},decode:function e(t,n){return Ol(this,t,n,{callee:e})},encodeAsync:async function e(t,n){return await kl(this,t,n,{callee:e})},decodeAsync:async function e(t,n){return await Al(this,t,n,{callee:e})},safeEncode(e,t){return jl(this,e,t)},safeDecode(e,t){return Ml(this,e,t)},async safeEncodeAsync(e,t){return Nl(this,e,t)},async safeDecodeAsync(e,t){return Pl(this,e,t)},toJSONSchema(e){return uc(this,{})(e)},get description(){return mo.get(this)?.description},get _def(){return this._zod.def}}),Rl=S(`_ZodString`,(e,t)=>{Nr.init(e,t),j.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ec(e,t,n,r)},We({format:e=>A(e).format??null,minLength:e=>A(e).minimum??null,maxLength:e=>A(e).maximum??null},{regex(...e){return this.check(Ds(...e))},includes(...e){return this.check(As(...e))},startsWith(...e){return this.check(js(...e))},endsWith(...e){return this.check(Ms(...e))},min(...e){return this.check(Ts(...e))},max(...e){return this.check(ws(...e))},length(...e){return this.check(Es(...e))},nonempty(...e){return this.check(Ts(1,...e))},lowercase(e){return this.check(Os(e))},uppercase(e){return this.check(ks(e))},trim(){return this.check(Rs())},normalize(...e){return this.check(Ls(...e))},toLowerCase(){return this.check(zs())},toUpperCase(){return this.check(Bs())},slugify(){return this.check(Vs())}})),zl=S(`ZodString`,(e,t)=>{Nr.init(e,t),Rl.init(e,t)},{email(e){return this.check(_o(Wl,e))},url(e){return this.check(Co($l,e))},jwt(e){return this.check(Vo(Iu,e))},emoji(e){return this.check(wo(nu,e))},guid(e){return this.check(vo(Kl,e))},uuid(e){return this.check(yo(Jl,e))},uuidv4(e){return this.check(bo(Jl,e))},uuidv6(e){return this.check(xo(Jl,e))},uuidv7(e){return this.check(So(Jl,e))},nanoid(e){return this.check(To(iu,e))},cuid(e){return this.check(Eo(ou,e))},cuid2(e){return this.check(Do(cu,e))},ulid(e){return this.check(Oo(uu,e))},base64(e){return this.check(Io(Eu,e))},base64url(e){return this.check(Lo(Ou,e))},xid(e){return this.check(ko(fu,e))},ksuid(e){return this.check(Ao(mu,e))},ipv4(e){return this.check(jo(gu,e))},ipv6(e){return this.check(Mo(bu,e))},cidrv4(e){return this.check(Po(Su,e))},cidrv6(e){return this.check(Fo(wu,e))},e164(e){return this.check(Ro(Au,e))},datetime(e){return this.check(Ho(Bl,e))},date(e){return this.check(Uo(Vl,e))},time(e){return this.check(Wo(Hl,e))},duration(e){return this.check(Go(Ul,e))}});function M(e){return go(zl,e)}var N=S(`ZodStringFormat`,(e,t)=>{D.init(e,t),Rl.init(e,t)}),Bl=S(`ZodISODateTime`,(e,t)=>{Qr.init(e,t),N.init(e,t)}),Vl=S(`ZodISODate`,(e,t)=>{$r.init(e,t),N.init(e,t)}),Hl=S(`ZodISOTime`,(e,t)=>{ei.init(e,t),N.init(e,t)}),Ul=S(`ZodISODuration`,(e,t)=>{ti.init(e,t),N.init(e,t)}),Wl=S(`ZodEmail`,(e,t)=>{Ir.init(e,t),N.init(e,t)});function Gl(e){return _o(Wl,e)}var Kl=S(`ZodGUID`,(e,t)=>{Pr.init(e,t),N.init(e,t)});function ql(e){return vo(Kl,e)}var Jl=S(`ZodUUID`,(e,t)=>{Fr.init(e,t),N.init(e,t)});function Yl(e){return yo(Jl,e)}function Xl(e){return bo(Jl,e)}function Zl(e){return xo(Jl,e)}function Ql(e){return So(Jl,e)}var $l=S(`ZodURL`,(e,t)=>{Wr.init(e,t),N.init(e,t)});function eu(e){return Co($l,e)}function tu(e){return Co($l,{protocol:_n,hostname:gn,...y(e)})}var nu=S(`ZodEmoji`,(e,t)=>{Gr.init(e,t),N.init(e,t)});function ru(e){return wo(nu,e)}var iu=S(`ZodNanoID`,(e,t)=>{Kr.init(e,t),N.init(e,t)});function au(e){return To(iu,e)}var ou=S(`ZodCUID`,(e,t)=>{qr.init(e,t),N.init(e,t)});function su(e){return Eo(ou,e)}var cu=S(`ZodCUID2`,(e,t)=>{Jr.init(e,t),N.init(e,t)});function lu(e){return Do(cu,e)}var uu=S(`ZodULID`,(e,t)=>{Yr.init(e,t),N.init(e,t)});function du(e){return Oo(uu,e)}var fu=S(`ZodXID`,(e,t)=>{Xr.init(e,t),N.init(e,t)});function pu(e){return ko(fu,e)}var mu=S(`ZodKSUID`,(e,t)=>{Zr.init(e,t),N.init(e,t)});function hu(e){return Ao(mu,e)}var gu=S(`ZodIPv4`,(e,t)=>{ni.init(e,t),N.init(e,t)});function _u(e){return jo(gu,e)}var vu=S(`ZodMAC`,(e,t)=>{oi.init(e,t),N.init(e,t)});function yu(e){return No(vu,e)}var bu=S(`ZodIPv6`,(e,t)=>{ai.init(e,t),N.init(e,t)});function xu(e){return Mo(bu,e)}var Su=S(`ZodCIDRv4`,(e,t)=>{si.init(e,t),N.init(e,t)});function Cu(e){return Po(Su,e)}var wu=S(`ZodCIDRv6`,(e,t)=>{li.init(e,t),N.init(e,t)});function Tu(e){return Fo(wu,e)}var Eu=S(`ZodBase64`,(e,t)=>{fi.init(e,t),N.init(e,t)});function Du(e){return Io(Eu,e)}var Ou=S(`ZodBase64URL`,(e,t)=>{hi.init(e,t),N.init(e,t)});function ku(e){return Lo(Ou,e)}var Au=S(`ZodE164`,(e,t)=>{gi.init(e,t),N.init(e,t)});function ju(e){return Ro(Au,e)}var Mu=S(`ZodCreditCard`,(e,t)=>{bi.init(e,t),N.init(e,t)});function Nu(e){return zo(Mu,e)}var Pu=S(`ZodIBAN`,(e,t)=>{Ci.init(e,t),N.init(e,t)});function Fu(e){return Bo(Pu,e)}var Iu=S(`ZodJWT`,(e,t)=>{Ti.init(e,t),N.init(e,t)});function Lu(e){return Vo(Iu,e)}var Ru=S(`ZodCustomStringFormat`,(e,t)=>{Ei.init(e,t),N.init(e,t)});function zu(e,t,n={}){return Zs(Ru,e,t,n)}function Bu(e){return Zs(Ru,`hostname`,hn,e)}function Vu(e){return Zs(Ru,`hex`,Rn,e)}function Hu(e){return Zs(Ru,`currency_code`,bn,e)}function Uu(e,t){let n=`${e}_${t?.enc??`hex`}`,r=Rt[n];if(!r)throw Error(`Unrecognized hash format: ${n}`);return Zs(Ru,n,r,t)}var Wu=S(`ZodNumber`,(e,t)=>{Di.init(e,t),j.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Dc(e,t,n,r),e.isFinite=!0},We({minValue:e=>{let{minimum:t,exclusiveMinimum:n}=A(e);return Math.max(t??-1/0,n??-1/0)},maxValue:e=>{let{maximum:t,exclusiveMaximum:n}=A(e);return Math.min(t??1/0,n??1/0)},isInt:e=>{let{isInt:t,multipleOf:n}=A(e);return!!t||!!n?.some(Number.isSafeInteger)},format:e=>A(e).format??null},{gt(e,t){return this.check(ms(e,t))},gte(e,t){return this.check(hs(e,t))},min(e,t){return this.check(hs(e,t))},lt(e,t){return this.check(fs(e,t))},lte(e,t){return this.check(ps(e,t))},max(e,t){return this.check(ps(e,t))},int(e){return this.check(Ku(e))},safe(e){return this.check(Ku(e))},positive(e){return this.check(ms(0,e))},nonnegative(e){return this.check(hs(0,e))},negative(e){return this.check(fs(0,e))},nonpositive(e){return this.check(ps(0,e))},multipleOf(e,t){return this.check(bs(e,t))},step(e,t){return this.check(bs(e,t))},finite(){return this}}));function P(e){return Ko(Wu,e)}var Gu=S(`ZodNumberFormat`,(e,t)=>{Oi.init(e,t),Wu.init(e,t)});function Ku(e){return Jo(Gu,e)}function qu(e){return Yo(Gu,e)}function Ju(e){return Xo(Gu,e)}function Yu(e){return Zo(Gu,e)}function Xu(e){return Qo(Gu,e)}var Zu=S(`ZodBoolean`,(e,t)=>{ki.init(e,t),j.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Oc(e,t,n,r)});function F(e){return $o(Zu,e)}var Qu=S(`ZodBigInt`,(e,t)=>{Ai.init(e,t),j.init(e,t),e._zod.processJSONSchema=(t,n,r)=>kc(e,t,n,r)},We({minValue:e=>A(e).minimum??null,maxValue:e=>A(e).maximum??null,format:e=>A(e).format??null},{gte(e,t){return this.check(hs(e,t))},min(e,t){return this.check(hs(e,t))},gt(e,t){return this.check(ms(e,t))},lt(e,t){return this.check(fs(e,t))},lte(e,t){return this.check(ps(e,t))},max(e,t){return this.check(ps(e,t))},positive(e){return this.check(ms(BigInt(0),e))},negative(e){return this.check(fs(BigInt(0),e))},nonpositive(e){return this.check(ps(BigInt(0),e))},nonnegative(e){return this.check(hs(BigInt(0),e))},multipleOf(e,t){return this.check(bs(e,t))}}));function $u(e){return es(Qu,e)}var ed=S(`ZodBigIntFormat`,(e,t)=>{ji.init(e,t),Qu.init(e,t)});function td(e){return ts(ed,e)}function nd(e){return ns(ed,e)}var rd=S(`ZodSymbol`,(e,t)=>{Mi.init(e,t),j.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ac(e,t,n,r)});function id(e){return rs(rd,e)}var ad=S(`ZodUndefined`,(e,t)=>{Ni.init(e,t),j.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Mc(e,t,n,r)});function od(e){return is(ad,e)}var sd=S(`ZodNull`,(e,t)=>{Pi.init(e,t),j.init(e,t),e._zod.processJSONSchema=(t,n,r)=>jc(e,t,n,r)});function cd(e){return as(sd,e)}var ld=S(`ZodAny`,(e,t)=>{Fi.init(e,t),j.init(e,t),e._zod.processJSONSchema=(e,t,n)=>void 0});function ud(){return os(ld)}var dd=S(`ZodUnknown`,(e,t)=>{Ii.init(e,t),j.init(e,t),e._zod.processJSONSchema=(e,t,n)=>void 0});function I(){return ss(dd)}var fd=S(`ZodNever`,(e,t)=>{Li.init(e,t),j.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Pc(e,t,n,r)});function pd(e){return cs(fd,e)}var md=S(`ZodVoid`,(e,t)=>{Ri.init(e,t),j.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Nc(e,t,n,r)});function hd(e){return ls(md,e)}var gd=S(`ZodDate`,(e,t)=>{zi.init(e,t),j.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Lc(e,t,n,r),e.min=(t,n)=>e.check(hs(t,n)),e.max=(t,n)=>e.check(ps(t,n))},We({minDate:e=>{let{minimum:t}=A(e);return t?new Date(t):null},maxDate:e=>{let{maximum:t}=A(e);return t?new Date(t):null}},{}));function _d(e){return us(gd,e)}var vd=S(`ZodArray`,(e,t)=>{Ll(),Vi.init(e,t),j.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Yc(e,t,n,r),e.element=t.element},{min(e,t){return this.check(Ts(e,t))},nonempty(e){return this.check(Ts(1,e))},max(e,t){return this.check(ws(e,t))},length(e,t){return this.check(Es(e,t))},unwrap(){return this.element}});function L(e,t){return Hs(vd,e,t)}function yd(e){let t=e._zod.def.shape;return H(Object.keys(t))}var bd=S(`ZodObject`,(e,t)=>{Ll(),qi.init(e,t),j.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Zc(e,t,n,r),Xe(e,`shape`,e=>e._zod.def.shape,!1)},{keyof(){return H(Object.keys(this._zod.def.shape))},catchall(e){return this.clone(v(this._zod.def,{catchall:e}))},passthrough(){return this.clone(v(this._zod.def,{catchall:I()}))},loose(){return this.clone(v(this._zod.def,{catchall:I()}))},strict(){return this.clone(v(this._zod.def,{catchall:pd()}))},strip(){return this.clone(v(this._zod.def,{catchall:void 0}))},extend(e){return we(this,e)},safeExtend(e){return Ee(this,e)},merge(e){return De(this,e)},pick(e){return xe(this,e)},omit(e){return Ce(this,e)},partial(...e){return Oe(Gd,this,e[0])},exactPartial(...e){return Oe(Kd,this,e[0],`exactPartial`)},required(...e){return ke(tf,this,e[0])}});function R(e,t){return new bd({type:`object`,shape:e??{},...y(t)})}function xd(e,t){return new bd({type:`object`,shape:e,catchall:pd(),...y(t)})}function z(e,t){return new bd({type:`object`,shape:e,catchall:I(),...y(t)})}var Sd=S(`ZodUnion`,(e,t)=>{Yi.init(e,t),j.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Qc(e,t,n,r),e.options=t.options});function B(e,t){return new Sd({type:`union`,options:e,...y(t)})}var Cd=S(`ZodXor`,(e,t)=>{Sd.init(e,t),Zi.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Qc(e,t,n,r),e.options=t.options});function wd(e,t){return new Cd({type:`union`,options:e,inclusive:!1,...y(t)})}var Td=S(`ZodDiscriminatedUnion`,(e,t)=>{Sd.init(e,t),$i.init(e,t)});function Ed(e,t,n){return new Td({type:`union`,options:t,discriminator:e,...y(n)})}var Dd=S(`ZodIntersection`,(e,t)=>{ea.init(e,t),j.init(e,t),e._zod.processJSONSchema=(t,n,r)=>$c(e,t,n,r)});function Od(e,t){return new Dd({type:`intersection`,left:e,right:t})}var kd=S(`ZodTuple`,(e,t)=>{Ll(),ra.init(e,t),j.init(e,t),e._zod.processJSONSchema=(t,n,r)=>el(e,t,n,r)},{rest(e){return this.clone({...this._zod.def,rest:e})},partial(){let e=this._zod.def;if(e.checks?.length)throw Error(`.partial() cannot be used on tuple schemas containing refinements`);return this.clone({...e,items:e.items.map(e=>new Gd({type:`optional`,innerType:e}))})}});function Ad(e,t,n){let r=t instanceof E;return new kd({type:`tuple`,items:e,rest:r?t:null,...y(r?n:t)})}var jd=S(`ZodRecord`,(e,t)=>{Ll(),sa.init(e,t),j.init(e,t),e._zod.processJSONSchema=(t,n,r)=>il(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType});function V(e,t,n){return!t||!t._zod?new jd({type:`record`,keyType:M(),valueType:e,...y(t)}):new jd({type:`record`,keyType:e,valueType:t,...y(n)})}function Md(e,t,n){return new jd({type:`record`,keyType:e,valueType:t,...y(n),partial:!0})}function Nd(e,t,n){return new jd({type:`record`,keyType:e,valueType:t,mode:`loose`,...y(n)})}var Pd=S(`ZodMap`,(e,t)=>{Ll(),ca.init(e,t),j.init(e,t),e._zod.processJSONSchema=(t,n,r)=>qc(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...t)=>e.check(Ss(...t)),e.nonempty=t=>e.check(Ss(1,t)),e.max=(...t)=>e.check(xs(...t)),e.size=(...t)=>e.check(Cs(...t))});function Fd(e,t,n){return new Pd({type:`map`,keyType:e,valueType:t,...y(n)})}var Id=S(`ZodSet`,(e,t)=>{Ll(),ua.init(e,t),j.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Jc(e,t,n,r),e.min=(...t)=>e.check(Ss(...t)),e.nonempty=t=>e.check(Ss(1,t)),e.max=(...t)=>e.check(xs(...t)),e.size=(...t)=>e.check(Cs(...t))});function Ld(e,t){return new Id({type:`set`,valueType:e,...y(t)})}var Rd=S(`ZodEnum`,(e,t)=>{fa.init(e,t),j.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Rc(e,t,n,r),e.enum=t.entries,e.options=[...e._zod.values];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 Rd({...t,checks:[],...y(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 Rd({...t,checks:[],...y(r),entries:i})}});function H(e,t){return new Rd({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...y(t)})}function zd(e,t){return new Rd({type:`enum`,entries:e,...y(t)})}var Bd=S(`ZodLiteral`,(e,t)=>{pa.init(e,t),j.init(e,t),e._zod.processJSONSchema=(t,n,r)=>zc(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 U(e,t){return new Bd({type:`literal`,values:Array.isArray(e)?e:[e],...y(t)})}var Vd=S(`ZodFile`,(e,t)=>{ma.init(e,t),j.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Hc(e,t,n,r),e.min=(t,n)=>e.check(Ss(t,n)),e.max=(t,n)=>e.check(xs(t,n)),e.mime=(t,n)=>e.check(Fs(Array.isArray(t)?t:[t],n))});function Hd(e){return Us(Vd,e)}var Ud=S(`ZodTransform`,(e,t)=>{Ll(),ha.init(e,t),j.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Kc(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new C(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(Be(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,`input`in t||(t.input=n.value),t.inst??=e,n.issues.push(Be(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n)):(n.value=i,n)}});function Wd(e){return new Ud({type:`transform`,transform:e})}var Gd=S(`ZodOptional`,(e,t)=>{_a.init(e,t),j.init(e,t),e._zod.processJSONSchema=(t,n,r)=>hl(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function W(e){return new Gd({type:`optional`,innerType:e})}var Kd=S(`ZodExactOptional`,(e,t)=>{va.init(e,t),j.init(e,t),e._zod.processJSONSchema=(t,n,r)=>hl(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function qd(e){return new Kd({type:`optional`,innerType:e})}var Jd=S(`ZodNullable`,(e,t)=>{ya.init(e,t),j.init(e,t),e._zod.processJSONSchema=(t,n,r)=>al(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Yd(e){return new Jd({type:`nullable`,innerType:e})}function Xd(e){return W(Yd(e))}var Zd=S(`ZodDefault`,(e,t)=>{ba.init(e,t),j.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ll(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Qd(e,t){return new Zd({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():fe(t)}})}var $d=S(`ZodPrefault`,(e,t)=>{Sa.init(e,t),j.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ul(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function ef(e,t){return new $d({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():fe(t)}})}var tf=S(`ZodNonOptional`,(e,t)=>{Ca.init(e,t),j.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ol(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function nf(e,t){return new tf({type:`nonoptional`,innerType:e,...y(t)})}var rf=S(`ZodSuccess`,(e,t)=>{Ta.init(e,t),j.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Uc(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function af(e){return new rf({type:`success`,innerType:e})}var of=S(`ZodCatch`,(e,t)=>{Da.init(e,t),j.init(e,t),e._zod.processJSONSchema=(t,n,r)=>dl(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function sf(e,t){return new of({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:Qe(t)})}var cf=S(`ZodNaN`,(e,t)=>{Oa.init(e,t),j.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Bc(e,t,n,r)});function lf(e){return ds(cf,e)}var uf=S(`ZodPipe`,(e,t)=>{ka.init(e,t),j.init(e,t),e._zod.processJSONSchema=(t,n,r)=>fl(e,t,n,r),e.in=t.in,e.out=t.out});function df(e,t){return new uf({type:`pipe`,in:e,out:t})}var ff=S(`ZodCodec`,(e,t)=>{uf.init(e,t),ja.init(e,t)});function pf(e,t,n){return new ff({type:`pipe`,in:e,out:t,transform:n.decode,reverseTransform:n.encode})}function mf(e){let t=e._zod.def;return new ff({type:`pipe`,in:t.out,out:t.in,transform:t.reverseTransform,reverseTransform:t.transform})}var hf=S(`ZodPreprocess`,(e,t)=>{uf.init(e,t),Pa.init(e,t)}),gf=S(`ZodReadonly`,(e,t)=>{Fa.init(e,t),j.init(e,t),e._zod.processJSONSchema=(t,n,r)=>pl(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function _f(e){return new gf({type:`readonly`,innerType:e})}var vf=S(`ZodTemplateLiteral`,(e,t)=>{za.init(e,t),j.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Vc(e,t,n,r)});function yf(e,t){return new vf({type:`template_literal`,parts:e,...y(t)})}var bf=S(`ZodLazy`,(e,t)=>{Ha.init(e,t),j.init(e,t),e._zod.processJSONSchema=(t,n,r)=>gl(e,t,n,r),e.unwrap=()=>e._zod.def.getter()});function xf(e){return new bf({type:`lazy`,getter:e})}var Sf=S(`ZodPromise`,(e,t)=>{Va.init(e,t),j.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ml(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Cf(e){return new Sf({type:`promise`,innerType:e})}var wf=S(`ZodFunction`,(e,t)=>{Ba.init(e,t),j.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Gc(e,t,n,r)});function Tf(e){return new wf({type:`function`,input:Array.isArray(e?.input)?Ad(e?.input):e?.input??L(I()),output:e?.output??I()})}var Ef=S(`ZodCustom`,(e,t)=>{Ua.init(e,t),j.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Wc(e,t,n,r)});function Df(e){let t=new T({check:`custom`});return t._zod.check=e,t}function Of(e,t){return Ws(Ef,e??(()=>!0),t)}function kf(e,t={}){return Gs(Ef,e,t)}function Af(e,t){return Ks(e,t)}var jf=Js,Mf=Ys,Nf=S(`ZodInstanceOf`,(e,t)=>{Ef.init(e,t)},{properties(e,t){return this.check(Ps(e,t))}});function Pf(e,t={}){let n=new Nf({type:`custom`,check:`custom`,fn:t=>t instanceof e,abort:!0,...y(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 Ff=(...e)=>Xs({Codec:ff,Boolean:Zu,String:zl},...e);function If(e){let t=xf(()=>B([M(e),P(),F(),cd(),L(t),V(M(),t)]));return t}function Lf(e,t){return new hf({type:`pipe`,in:Wd(e),out:t})}var Rf={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`},zf;zf||={};var Bf=t({ZodISODate:()=>Vl,ZodISODateTime:()=>Bl,ZodISODuration:()=>Ul,ZodISOTime:()=>Hl,date:()=>Hf,datetime:()=>Vf,duration:()=>Wf,time:()=>Uf});function Vf(e){return Ho(Bl,e)}function Hf(e){return Uo(Vl,e)}function Uf(e){return Wo(Hl,e)}function Wf(e){return Go(Ul,e)}var G={...Fl,...yl,iso:Bf},Gf=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 Kf(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 qf(e,t){return e.map((e,n)=>n<t?e:e.optional())}function Jf(e){return e.replace(/~1/g,`/`).replace(/~0/g,`~`)}function Yf(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]===void 0?void 0:Jf(n[1]);if(!r||!t.defs[r])throw Error(`Reference not found: ${e}`);return t.defs[r]}throw Error(`Reference not found: ${e}`)}function Xf(e,t){return G.transform(e=>e).check(n=>{let r=n.value;if(typeof r!=`object`||!r||Array.isArray(r))return;let i=Object.getOwnPropertyNames(r);if(t.minProperties!==void 0&&i.length<t.minProperties&&n.issues.push({origin:`object`,code:`too_small`,minimum:t.minProperties,inclusive:!0,message:`Too small: expected object to have >=${t.minProperties} properties`,input:r,inst:e,continue:!0}),t.maxProperties!==void 0&&i.length>t.maxProperties&&n.issues.push({origin:`object`,code:`too_big`,maximum:t.maxProperties,inclusive:!0,message:`Too big: expected object to have <=${t.maxProperties} properties`,input:r,inst:e,continue:!0}),t.keySchema)for(let e of i){let r=t.keySchema.safeParse(e);r.success||n.issues.push({code:`invalid_key`,origin:`record`,issues:r.error.issues,input:e,path:[e],continue:!0})}}).pipe(e)}function Zf(e,t){if(e===null)return`z`;let n=typeof e;if(n!==`object`){if(n===`number`&&Number.isNaN(e))return null;let t=String(e);return`${n[0]}${t.length}:${t}`}if(t.has(e))return null;t.add(e);try{if(Array.isArray(e)){let n=[];for(let r of e){let e=Zf(r,t);if(e===null)return null;n.push(e)}return`a${n.length}:[${n.join(`,`)}]`}let n=Object.keys(e).sort(),r=[];for(let i of n){let n=Zf(e[i],t);if(n===null)return null;r.push(`${i.length}:${i}=${n}`)}return`o${r.length}:{${r.join(`,`)}}`}finally{t.delete(e)}}var Qf=new Set([`items`,`prefixItems`,`additionalItems`,`additionalProperties`,`contains`,`propertyNames`,`not`,`if`,`then`,`else`,`allOf`,`anyOf`,`oneOf`,`unevaluatedItems`,`unevaluatedProperties`,`contentSchema`]),$f=new Set([`properties`,`patternProperties`,`dependentSchemas`,`dependencies`,`$defs`,`definitions`]);function ep(e){return typeof e!=`object`||!e?!1:Array.isArray(e)?e.some(ep):typeof e.$ref==`string`||Object.entries(e).some(([e,t])=>Qf.has(e)?ep(t):!$f.has(e)||typeof t!=`object`||!t?!1:Object.values(t).some(ep))}function tp(e){return e===1?`element`:`elements`}function np(e,t){return G.transform(e=>e).check(e=>{let n=e.value;if(Array.isArray(n)){if(t.uniqueItems===!0){let t=new Map;for(let r=0;r<n.length;r++){let i=Zf(n[r],new Set);if(i===null)continue;let a=t.get(i);a===void 0?t.set(i,r):e.issues.push({code:`custom`,message:`Array items must be unique: element at index ${r} duplicates the one at index ${a}`,input:n,path:[r],continue:!0})}}if(t.containsSchema){let r=t.minContains??1,i=t.maxContains===void 0?1/0:t.maxContains+1,a=0;for(let e of n)if(t.containsSchema.safeParse(e).success&&++a>=i)break;a<r&&e.issues.push({code:`custom`,message:`Array must contain at least ${r} matching ${tp(r)}; found ${a}`,input:n,continue:!0}),t.maxContains!==void 0&&a>t.maxContains&&e.issues.push({code:`custom`,message:`Array must contain at most ${t.maxContains} matching ${tp(t.maxContains)}`,input:n,continue:!0})}}}).pipe(e)}function rp(e,t){if(e!==!1)return e===void 0||e===!0?G.any():op(e,t)}var ip=/^(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|[+-](?:[01]\d|2[0-3]):[0-5]\d)$/;function ap(e,t){if(e.not!==void 0){if(typeof e.not==`object`&&Object.keys(e.not).length===0)return G.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 G.lazy(()=>{if(!t.refs.has(n))throw Error(`Circular reference not resolved: ${n}`);return t.refs.get(n)});t.processing.add(n);let r=op(Yf(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 G.null();if(n.length===0)return G.never();if(n.length===1)return G.literal(n[0]);if(n.every(e=>typeof e==`string`))return G.enum(n);let r=n.map(e=>G.literal(e));return r.length<2?r[0]:G.union([r[0],r[1],...r.slice(2)])}if(e.const!==void 0)return G.literal(e.const);let n=e.type;if(Array.isArray(n)){let r=n.map(n=>ap({...e,type:n},t));return r.length===0?G.never():r.length===1?r[0]:G.union(r)}if(!n)return G.any();let r;switch(n){case`string`:{let t=G.string();if(e.format){let n=e.format;n===`email`?t=t.check(G.email()):n===`uri`||n===`uri-reference`?t=t.check(G.url()):n===`uuid`||n===`guid`?t=t.check(G.uuid()):n===`date-time`?t=t.check(G.iso.datetime({offset:!0})):n===`date`?t=t.check(G.iso.date()):n===`time`?t=t.check(G.regex(ip)):n===`duration`?t=t.check(G.iso.duration()):n===`hostname`?t=t.check(G.hostname()):n===`ipv4`?t=t.check(G.ipv4()):n===`ipv6`?t=t.check(G.ipv6()):n===`mac`?t=t.check(G.mac()):n===`cidr`?t=t.check(G.cidrv4()):n===`cidr-v6`?t=t.check(G.cidrv6()):n===`base64`?t=t.check(G.base64()):n===`base64url`?t=t.check(G.base64url()):n===`e164`?t=t.check(G.e164()):n===`credit_card`?t=t.check(G.creditCard()):n===`iban`?t=t.check(G.iban()):n===`jwt`?t=t.check(G.jwt()):n===`emoji`?t=t.check(G.emoji()):n===`nanoid`?t=t.check(G.nanoid()):n===`cuid`?t=t.check(G.cuid()):n===`cuid2`?t=t.check(G.cuid2()):n===`ulid`?t=t.check(G.ulid()):n===`xid`?t=t.check(G.xid()):n===`ksuid`&&(t=t.check(G.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`?G.number().int():G.number();typeof e.minimum==`number`&&e.exclusiveMinimum!==!0&&(t=t.min(e.minimum)),typeof e.maximum==`number`&&e.exclusiveMaximum!==!0&&(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=G.boolean();break;case`null`:r=G.null();break;case`object`:{let n={},i=e.properties||{},a=new Set(e.required||[]),o=typeof e.additionalProperties==`object`?op(e.additionalProperties,t):void 0;for(let[e,r]of Object.entries(i)){let i=op(r,t);g(n,e,a.has(e)?i:i.optional())}if(e.patternProperties){let i=e.patternProperties,a=Object.keys(i),o=[];for(let e of a){let n=op(i[e],t),r=G.string().regex(new RegExp(e));o.push(G.looseRecord(r,n))}let s=[];if(Object.keys(n).length>0&&s.push(G.object(n).passthrough()),s.push(...o),s.length===0)r=G.object({}).passthrough();else if(s.length===1)r=s[0];else{let e=G.intersection(s[0],s[1]);for(let t=2;t<s.length;t++)e=G.intersection(e,s[t]);r=e}if(e.additionalProperties===!1){let e=Object.keys(n),t=a.map(e=>new RegExp(e)),i=r;r=r.check(n=>{if(!de(n.value))return;let r=[];for(let i of Object.keys(n.value))e.includes(i)||t.some(e=>e.test(i))||r.push(i);r.length&&n.issues.push({code:`unrecognized_keys`,keys:r,input:n.value,inst:i})})}}else{let t=G.object(n);r=e.additionalProperties===!1?t.strict():o?t.catchall(o):t.passthrough()}let s=e.propertyNames!==void 0&&e.propertyNames!==!0,c=typeof e.minProperties==`number`?e.minProperties:void 0,l=typeof e.maxProperties==`number`?e.maxProperties:void 0;if(s||c!==void 0||l!==void 0){let n;s&&(n=op(typeof e.propertyNames==`object`&&e.propertyNames.type===void 0?{type:`string`,...e.propertyNames}:e.propertyNames,t)),r=Xf(r,{keySchema:n,minProperties:c,maxProperties:l})}break}case`array`:{let n=e.prefixItems,i=e.items;if(n&&Array.isArray(n)){let a=typeof e.minItems==`number`?e.minItems:0,o=qf(n.map(e=>op(e,t)),a),s=Array.isArray(i)?void 0:rp(i,t),c=G.tuple(o);r=s?c.rest(s):c,typeof e.minItems==`number`&&(r=r.check(G.minLength(e.minItems))),typeof e.maxItems==`number`&&(r=r.check(G.maxLength(e.maxItems)))}else if(Array.isArray(i)){let n=typeof e.minItems==`number`?e.minItems:0,a=qf(i.map(e=>op(e,t)),n),o=rp(e.additionalItems,t),s=G.tuple(a);r=o?s.rest(o):s,typeof e.minItems==`number`&&(r=r.check(G.minLength(e.minItems))),typeof e.maxItems==`number`&&(r=r.check(G.maxLength(e.maxItems)))}else if(i!==void 0){let n=op(i,t),a=G.array(n);typeof e.minItems==`number`&&(a=a.min(e.minItems)),typeof e.maxItems==`number`&&(a=a.max(e.maxItems)),r=a}else r=G.array(G.any());(e.uniqueItems===!0||e.contains!==void 0)&&(r=np(r,{uniqueItems:e.uniqueItems===!0,containsSchema:e.contains===void 0?void 0:op(e.contains,t),minContains:typeof e.minContains==`number`?e.minContains:void 0,maxContains:typeof e.maxContains==`number`?e.maxContains:void 0}));break}default:throw Error(`Unsupported type: ${n}`)}return r}function op(e,t){if(typeof e==`boolean`)return e?G.any():G.never();let n=ap(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=>op(e,t)),a=G.union(i);n=r?G.intersection(n,a):a}if(e.oneOf&&Array.isArray(e.oneOf)){let i=e.oneOf.map(e=>op(e,t)),a=G.xor(i);n=r?G.intersection(n,a):a}if(e.allOf&&Array.isArray(e.allOf)){if(e.allOf.length===0)n=r?n:G.any();else{let i=r?n:op(e.allOf[0],t),a=+!r;for(let n=a;n<e.allOf.length;n++)i=G.intersection(i,op(e.allOf[n],t));n=i}}e.nullable===!0&&t.version===`openapi-3.0`&&(n=G.nullable(n)),e.readOnly===!0&&(n=G.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]);if(e.type===`object`&&e.$ref===void 0){e.propertyNames!==void 0&&!ep(e.propertyNames)&&(i.propertyNames=e.propertyNames);for(let t of[`minProperties`,`maxProperties`])e[t]!==void 0&&(i[t]=e[t])}if(e.type===`array`&&e.$ref===void 0){e.contains!==void 0&&!ep(e.contains)&&(i.contains=e.contains);for(let t of[`uniqueItems`,`minContains`,`maxContains`])e[t]!==void 0&&(i[t]=e[t])}for(let t of Object.keys(e))Gf.has(t)||g(i,t,e[t]);return Object.keys(i).length>0&&t.registry.add(n,i),e.description&&(n=n.describe(e.description)),n}function sp(e,t){if(typeof e==`boolean`)return e?G.any():G.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:Kf(n,t?.defaultTarget),defs:n.$defs||n.definitions||{},refs:new Map,processing:new Set,rootSchema:n,registry:t?.registry??mo};return op(n,r)}function cp(e){return qo(Wu,e)}var lp=[`2025-11-25`,`2025-06-18`,`2025-03-26`,`2024-11-05`,`2024-10-07`],up=`io.modelcontextprotocol/related-task`,dp=`io.modelcontextprotocol/protocolVersion`,fp=`io.modelcontextprotocol/clientInfo`,pp=`io.modelcontextprotocol/serverInfo`,mp=`io.modelcontextprotocol/clientCapabilities`,hp=`io.modelcontextprotocol/subscriptionId`,gp=`io.modelcontextprotocol/logLevel`,_p=xf(()=>B([M(),P(),F(),cd(),V(M(),_p),L(_p)])),K=V(M(),_p),vp=L(_p),yp=B([M(),P().int()]),bp=M(),xp=R({ttl:P().optional()}),Sp=R({taskId:M()}),Cp=z({progressToken:yp.optional(),[up]:Sp.optional()}),wp=R({_meta:Cp.optional()}),Tp=wp.extend({task:xp.optional()}),q=R({method:M(),params:wp.loose().optional()}),Ep=R({_meta:Cp.optional()}),Dp=R({method:M(),params:Ep.loose().optional()}),Op=z({get[pp](){return Hp.optional().catch(void 0)}}),J=z({_meta:Op.optional()}),kp=B([M(),P().int()]),Ap=R({jsonrpc:U(`2.0`),id:kp,...q.shape}).strict(),jp=R({jsonrpc:U(`2.0`),...Dp.shape}).strict(),Mp=R({jsonrpc:U(`2.0`),id:kp,result:J}).strict(),Np=R({jsonrpc:U(`2.0`),id:kp.optional(),error:R({code:P().int(),message:M(),data:I().optional()})}).strict(),Pp=B([Ap,jp,Mp,Np]),Fp=B([Mp,Np]),Ip=J.strict(),Lp=Ep.extend({requestId:kp.optional(),reason:M().optional()}),Rp=Dp.extend({method:U(`notifications/cancelled`),params:Lp}),zp=R({src:M(),mimeType:M().optional(),sizes:L(M()).optional(),theme:H([`light`,`dark`]).optional()}),Bp=R({icons:L(zp).optional()}),Vp=R({name:M(),title:M().optional()}),Hp=Vp.extend({...Vp.shape,...Bp.shape,version:M(),websiteUrl:M().optional(),description:M().optional()}),Up=Lf(e=>e&&typeof e==`object`&&!Array.isArray(e)&&Object.keys(e).length===0?{form:{}}:e,Od(R({form:Od(R({applyDefaults:F().optional()}),K).optional(),url:K.optional()}),K.optional())),Wp=z({list:K.optional(),cancel:K.optional(),requests:z({sampling:z({createMessage:K.optional()}).optional(),elicitation:z({create:K.optional()}).optional()}).optional()}),Gp=z({list:K.optional(),cancel:K.optional(),requests:z({tools:z({call:K.optional()}).optional()}).optional()}),Kp=R({experimental:V(M(),K).optional(),sampling:R({context:K.optional(),tools:K.optional()}).optional(),elicitation:Up.optional(),roots:R({listChanged:F().optional()}).optional(),tasks:Wp.optional(),extensions:V(M(),K).optional()}),qp=wp.extend({protocolVersion:M(),capabilities:Kp,clientInfo:Hp}),Jp=q.extend({method:U(`initialize`),params:qp}),Yp=R({experimental:V(M(),K).optional(),logging:K.optional(),completions:K.optional(),prompts:R({listChanged:F().optional()}).optional(),resources:R({subscribe:F().optional(),listChanged:F().optional()}).optional(),tools:R({listChanged:F().optional()}).optional(),tasks:Gp.optional(),extensions:V(M(),K).optional()}),Xp=J.extend({protocolVersion:M(),capabilities:Yp,serverInfo:Hp,instructions:M().optional()}),Zp=Dp.extend({method:U(`notifications/initialized`),params:Ep.optional()}),Qp=q.extend({method:U(`server/discover`),params:wp.optional()}),$p=J.extend({supportedVersions:L(M()),capabilities:Yp,instructions:M().optional()}),em=q.extend({method:U(`ping`),params:wp.optional()}),tm=R({progress:P(),total:W(P()),message:W(M())}),nm=R({...Ep.shape,...tm.shape,progressToken:yp}),rm=Dp.extend({method:U(`notifications/progress`),params:nm}),im=wp.extend({cursor:bp.optional()}),am=q.extend({params:im.optional()}),om=J.extend({nextCursor:bp.optional()}),sm=R({uri:M(),mimeType:W(M()),_meta:V(M(),I()).optional()}),cm=sm.extend({text:M()}),lm=M().refine(e=>{try{return atob(e),!0}catch{return!1}},{message:`Invalid Base64 string`}),um=sm.extend({blob:lm}),dm=H([`user`,`assistant`]),fm=R({audience:L(dm).optional(),priority:P().min(0).max(1).optional(),lastModified:Vf({offset:!0}).optional()}),pm=R({...Vp.shape,...Bp.shape,uri:M(),description:W(M()),mimeType:W(M()),size:W(P()),annotations:fm.optional(),_meta:W(z({}))}),mm=R({...Vp.shape,...Bp.shape,uriTemplate:M(),description:W(M()),mimeType:W(M()),annotations:fm.optional(),_meta:W(z({}))}),hm=am.extend({method:U(`resources/list`)}),gm=om.extend({resources:L(pm)}),_m=am.extend({method:U(`resources/templates/list`)}),vm=om.extend({resourceTemplates:L(mm)}),ym=wp.extend({uri:M()}),bm=ym,xm=q.extend({method:U(`resources/read`),params:bm}),Sm=J.extend({contents:L(B([cm,um]))}),Cm=Dp.extend({method:U(`notifications/resources/list_changed`),params:Ep.optional()}),wm=ym,Tm=q.extend({method:U(`resources/subscribe`),params:wm}),Em=ym,Dm=q.extend({method:U(`resources/unsubscribe`),params:Em}),Om=R({toolsListChanged:F().optional(),promptsListChanged:F().optional(),resourcesListChanged:F().optional(),resourceSubscriptions:L(M()).optional()}),km=wp.extend({notifications:Om}),Am=q.extend({method:U(`subscriptions/listen`),params:km}),jm=Ep.extend({notifications:Om}),Mm=Dp.extend({method:U(`notifications/subscriptions/acknowledged`),params:jm}),Nm=Op.extend({[hp]:kp}),Pm=J.extend({_meta:Nm}),Fm=Ep.extend({uri:M()}),Im=Dp.extend({method:U(`notifications/resources/updated`),params:Fm}),Lm=R({name:M(),description:W(M()),required:W(F())}),Rm=R({...Vp.shape,...Bp.shape,description:W(M()),arguments:W(L(Lm)),_meta:W(z({}))}),zm=am.extend({method:U(`prompts/list`)}),Bm=om.extend({prompts:L(Rm)}),Vm=wp.extend({name:M(),arguments:V(M(),M()).optional()}),Hm=q.extend({method:U(`prompts/get`),params:Vm}),Um=R({type:U(`text`),text:M(),annotations:fm.optional(),_meta:V(M(),I()).optional()}),Wm=R({type:U(`image`),data:lm,mimeType:M(),annotations:fm.optional(),_meta:V(M(),I()).optional()}),Gm=R({type:U(`audio`),data:lm,mimeType:M(),annotations:fm.optional(),_meta:V(M(),I()).optional()}),Km=R({type:U(`tool_use`),name:M(),id:M(),input:V(M(),I()),_meta:V(M(),I()).optional()}),qm=R({type:U(`resource`),resource:B([cm,um]),annotations:fm.optional(),_meta:V(M(),I()).optional()}),Jm=pm.extend({type:U(`resource_link`)}),Ym=B([Um,Wm,Gm,Jm,qm]),Xm=R({role:dm,content:Ym}),Zm=J.extend({description:M().optional(),messages:L(Xm)}),Qm=Dp.extend({method:U(`notifications/prompts/list_changed`),params:Ep.optional()}),$m=R({title:M().optional(),readOnlyHint:F().optional(),destructiveHint:F().optional(),idempotentHint:F().optional(),openWorldHint:F().optional()}),eh=R({taskSupport:H([`required`,`optional`,`forbidden`]).optional()}),th=R({...Vp.shape,...Bp.shape,description:M().optional(),inputSchema:R({type:U(`object`),properties:V(M(),_p).optional(),required:L(M()).optional()}).catchall(I()),outputSchema:z({$schema:M().optional()}).optional(),annotations:$m.optional(),execution:eh.optional(),_meta:V(M(),I()).optional()}),nh=am.extend({method:U(`tools/list`)}),rh=om.extend({tools:L(th)}),ih=J.extend({content:L(Ym).default([]),structuredContent:I().optional(),isError:F().optional()}),ah=ih.or(J.extend({toolResult:I()})),oh=Tp.extend({name:M(),arguments:V(M(),I()).optional()}),sh=q.extend({method:U(`tools/call`),params:oh}),ch=Dp.extend({method:U(`notifications/tools/list_changed`),params:Ep.optional()}),lh=R({autoRefresh:F().default(!0),debounceMs:P().int().nonnegative().default(300)}),uh=H([`debug`,`info`,`notice`,`warning`,`error`,`critical`,`alert`,`emergency`]),dh=wp.extend({level:uh}),fh=q.extend({method:U(`logging/setLevel`),params:dh}),ph=Ep.extend({level:uh,logger:M().optional(),data:I()}),mh=Dp.extend({method:U(`notifications/message`),params:ph}),hh=R({name:M().optional()}),gh=R({hints:L(hh).optional(),costPriority:P().min(0).max(1).optional(),speedPriority:P().min(0).max(1).optional(),intelligencePriority:P().min(0).max(1).optional()}),_h=R({mode:H([`auto`,`required`,`none`]).optional()}),vh=R({type:U(`tool_result`),toolUseId:M().describe(`The unique identifier for the corresponding tool call.`),content:L(Ym),structuredContent:I().optional(),isError:F().optional(),_meta:V(M(),I()).optional()}),yh=Ed(`type`,[Um,Wm,Gm]),bh=Ed(`type`,[Um,Wm,Gm,Km,vh]),xh=R({role:dm,content:B([bh,L(bh)]),_meta:V(M(),I()).optional()}),Sh=Tp.extend({messages:L(xh),modelPreferences:gh.optional(),systemPrompt:M().optional(),includeContext:H([`none`,`thisServer`,`allServers`]).optional(),temperature:P().optional(),maxTokens:P().int(),stopSequences:L(M()).optional(),metadata:K.optional(),tools:L(th).optional(),toolChoice:_h.optional()}),Ch=q.extend({method:U(`sampling/createMessage`),params:Sh}),wh=J.extend({model:M(),stopReason:W(H([`endTurn`,`stopSequence`,`maxTokens`]).or(M())),role:dm,content:yh}),Th=J.extend({model:M(),stopReason:W(H([`endTurn`,`stopSequence`,`maxTokens`,`toolUse`]).or(M())),role:dm,content:B([bh,L(bh)])}),Eh=R({type:U(`boolean`),title:M().optional(),description:M().optional(),default:F().optional()}),Dh=R({type:U(`string`),title:M().optional(),description:M().optional(),minLength:P().optional(),maxLength:P().optional(),format:H([`email`,`uri`,`date`,`date-time`]).optional(),default:M().optional()}),Oh=R({type:H([`number`,`integer`]),title:M().optional(),description:M().optional(),minimum:P().optional(),maximum:P().optional(),default:P().optional()}),kh=R({type:U(`string`),title:M().optional(),description:M().optional(),enum:L(M()),default:M().optional()}),Ah=R({type:U(`string`),title:M().optional(),description:M().optional(),oneOf:L(R({const:M(),title:M()})),default:M().optional()}),jh=R({type:U(`string`),title:M().optional(),description:M().optional(),enum:L(M()),enumNames:L(M()).optional(),default:M().optional()}),Mh=B([kh,Ah]),Nh=R({type:U(`array`),title:M().optional(),description:M().optional(),minItems:P().optional(),maxItems:P().optional(),items:R({type:U(`string`),enum:L(M())}),default:L(M()).optional()}),Ph=R({type:U(`array`),title:M().optional(),description:M().optional(),minItems:P().optional(),maxItems:P().optional(),items:R({anyOf:L(R({const:M(),title:M()}))}),default:L(M()).optional()}),Fh=B([Nh,Ph]),Ih=B([jh,Mh,Fh]),Lh=B([Ih,Eh,Dh,Oh]),Rh=Tp.extend({mode:U(`form`).optional(),message:M(),requestedSchema:R({type:U(`object`),properties:V(M(),Lh),required:L(M()).optional()}).catchall(I())}),zh=Tp.extend({mode:U(`url`),message:M(),elicitationId:M(),url:M().url()}),Bh=B([Rh,zh]),Vh=q.extend({method:U(`elicitation/create`),params:Bh}),Hh=Ep.extend({elicitationId:M()}),Uh=Dp.extend({method:U(`notifications/elicitation/complete`),params:Hh}),Wh=J.extend({action:H([`accept`,`decline`,`cancel`]),content:Lf(e=>e===null?void 0:e,V(M(),B([M(),P(),F(),L(M())])).optional())}),Gh=R({type:U(`ref/resource`),uri:M()}),Kh=R({type:U(`ref/prompt`),name:M()}),qh=wp.extend({ref:B([Kh,Gh]),argument:R({name:M(),value:M()}),context:R({arguments:V(M(),M()).optional()}).optional()}),Jh=q.extend({method:U(`completion/complete`),params:qh}),Yh=J.extend({completion:z({values:L(M()).max(100),total:W(P().int()),hasMore:W(F())})}),Xh=R({uri:M().startsWith(`file://`),name:M().optional(),_meta:V(M(),I()).optional()}),Zh=q.extend({method:U(`roots/list`),params:wp.optional()}),Qh=J.extend({roots:L(Xh)}),$h=Dp.extend({method:U(`notifications/roots/list_changed`),params:Ep.optional()}),eg=z({ttl:P().optional(),pollInterval:P().optional()}),tg=H([`working`,`input_required`,`completed`,`failed`,`cancelled`]),ng=R({taskId:M(),status:tg,ttl:B([P(),cd()]),createdAt:M(),lastUpdatedAt:M(),pollInterval:W(P()),statusMessage:W(M())}),rg=J.extend({task:ng}),ig=Ep.merge(ng),ag=Dp.extend({method:U(`notifications/tasks/status`),params:ig}),og=q.extend({method:U(`tasks/get`),params:wp.extend({taskId:M()})}),sg=J.merge(ng),cg=q.extend({method:U(`tasks/result`),params:wp.extend({taskId:M()})}),lg=J.loose(),ug=am.extend({method:U(`tasks/list`)}),dg=om.extend({tasks:L(ng)}),fg=q.extend({method:U(`tasks/cancel`),params:wp.extend({taskId:M()})}),pg=J.merge(ng),mg=B([em,Jp,Qp,Jh,fh,Hm,zm,hm,_m,xm,Tm,Dm,Am,sh,nh]),hg=B([Rp,rm,Zp,$h]),gg=B([Ip,wh,Th,Wh,Qh]),_g=B([em,Ch,Vh,Zh]),vg=B([Rp,rm,mh,Im,Cm,ch,Qm,Mm,Uh]),yg=B([Ip,Xp,$p,Yh,Zm,Bm,gm,vm,Sm,ih,rh,Pm]),Y=eu().superRefine((e,t)=>{if(!URL.canParse(e))return t.addIssue({code:Rf.custom,message:`URL must be parseable`,fatal:!0}),et}).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`}),bg=z({resource:M().url(),authorization_servers:L(Y).optional(),jwks_uri:M().url().optional(),scopes_supported:L(M()).optional(),bearer_methods_supported:L(M()).optional(),resource_signing_alg_values_supported:L(M()).optional(),resource_name:M().optional(),resource_documentation:M().optional(),resource_policy_uri:M().url().optional(),resource_tos_uri:M().url().optional(),tls_client_certificate_bound_access_tokens:F().optional(),authorization_details_types_supported:L(M()).optional(),dpop_signing_alg_values_supported:L(M()).optional(),dpop_bound_access_tokens_required:F().optional()}),xg=z({issuer:M(),authorization_endpoint:Y,token_endpoint:Y,registration_endpoint:Y.optional(),scopes_supported:L(M()).optional(),response_types_supported:L(M()),response_modes_supported:L(M()).optional(),grant_types_supported:L(M()).optional(),token_endpoint_auth_methods_supported:L(M()).optional(),token_endpoint_auth_signing_alg_values_supported:L(M()).optional(),service_documentation:Y.optional(),revocation_endpoint:Y.optional(),revocation_endpoint_auth_methods_supported:L(M()).optional(),revocation_endpoint_auth_signing_alg_values_supported:L(M()).optional(),introspection_endpoint:M().optional(),introspection_endpoint_auth_methods_supported:L(M()).optional(),introspection_endpoint_auth_signing_alg_values_supported:L(M()).optional(),code_challenge_methods_supported:L(M()).optional(),client_id_metadata_document_supported:F().optional(),authorization_response_iss_parameter_supported:F().optional().catch(void 0),dpop_signing_alg_values_supported:L(M()).optional()}),Sg=z({issuer:M(),authorization_endpoint:Y,token_endpoint:Y,userinfo_endpoint:Y.optional(),jwks_uri:Y,registration_endpoint:Y.optional(),scopes_supported:L(M()).optional(),response_types_supported:L(M()),response_modes_supported:L(M()).optional(),grant_types_supported:L(M()).optional(),acr_values_supported:L(M()).optional(),subject_types_supported:L(M()),id_token_signing_alg_values_supported:L(M()),id_token_encryption_alg_values_supported:L(M()).optional(),id_token_encryption_enc_values_supported:L(M()).optional(),userinfo_signing_alg_values_supported:L(M()).optional(),userinfo_encryption_alg_values_supported:L(M()).optional(),userinfo_encryption_enc_values_supported:L(M()).optional(),request_object_signing_alg_values_supported:L(M()).optional(),request_object_encryption_alg_values_supported:L(M()).optional(),request_object_encryption_enc_values_supported:L(M()).optional(),token_endpoint_auth_methods_supported:L(M()).optional(),token_endpoint_auth_signing_alg_values_supported:L(M()).optional(),display_values_supported:L(M()).optional(),claim_types_supported:L(M()).optional(),claims_supported:L(M()).optional(),service_documentation:M().optional(),claims_locales_supported:L(M()).optional(),ui_locales_supported:L(M()).optional(),claims_parameter_supported:F().optional(),request_parameter_supported:F().optional(),request_uri_parameter_supported:F().optional(),require_request_uri_registration:F().optional(),op_policy_uri:Y.optional(),op_tos_uri:Y.optional(),client_id_metadata_document_supported:F().optional(),authorization_response_iss_parameter_supported:F().optional().catch(void 0)}),Cg=R({...Sg.shape,...xg.pick({code_challenge_methods_supported:!0}).shape}),wg=R({access_token:M(),id_token:M().optional(),token_type:M(),expires_in:cp().optional(),scope:M().optional(),refresh_token:M().optional(),issuer:M().optional().catch(void 0)}).strip(),Tg=R({issued_token_type:U(`urn:ietf:params:oauth:token-type:id-jag`),access_token:M(),token_type:M().optional(),expires_in:P().optional(),scope:M().optional()}).strip(),Eg=R({error:M(),error_description:M().optional(),error_uri:M().optional()}),Dg=Y.optional().or(U(``).transform(()=>void 0)),Og=R({redirect_uris:L(Y),token_endpoint_auth_method:M().optional(),grant_types:L(M()).optional(),response_types:L(M()).optional(),application_type:M().optional(),client_name:M().optional(),client_uri:Y.optional(),logo_uri:Dg,scope:M().optional(),contacts:L(M()).optional(),tos_uri:Dg,policy_uri:M().optional(),jwks_uri:Y.optional(),jwks:ud().optional(),software_id:M().optional(),software_version:M().optional(),software_statement:M().optional()}).strip(),kg=R({client_id:M(),client_secret:M().optional(),client_id_issued_at:P().optional(),client_secret_expires_at:P().optional(),issuer:M().optional().catch(void 0)}).strip(),Ag=Og.merge(kg),jg=R({error:M(),error_description:M().optional()}).strip(),Mg=R({token:M(),token_type_hint:M().optional()}).strip(),Ng=Symbol.for(`mcp.sdk.errorBrands`);function Pg(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,Ng,{value:n,enumerable:!1,configurable:!0})}function Fg(e,t){try{if(typeof t==`object`&&t&&Object.prototype.hasOwnProperty.call(e,`mcpBrand`)&&typeof e.mcpBrand==`string`&&Object.prototype.hasOwnProperty.call(t,Ng)){let n=t[Ng];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 Fg(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 Fg(this,e)}constructor(e,t,n){super(t),this.code=e,this.errorUri=n,this.name=`OAuthError`,Pg(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 Ig=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}({}),X=class extends Error{static{Object.defineProperty(this,"mcpBrand",{value:`mcp.SdkError`})}static[Symbol.hasInstance](e){return Fg(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 Fg(this,e)}constructor(e,t,n,r){super(t,r),this.code=e,this.data=n,this.name=`SdkError`,Pg(this,new.target)}};(class extends X{static{Object.defineProperty(this,"mcpBrand",{value:`mcp.SdkHttpError`})}constructor(e,t,n,r){super(e,t,n,r),this.name=`SdkHttpError`}get status(){return this.data.status}get statusText(){return this.data.statusText}});var Lg=`2026-07-28`;function Rg(e){return e>=Lg}function zg(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 Bg=[`task`,`inputRequests`,`requestState`];function Vg(e){return typeof e!=`object`||!e||Array.isArray(e)||e.content!==void 0||Bg.some(t=>t in e)?e:{...e,content:[]}}function Hg(){let e=xf(()=>B([M(),P(),F(),cd(),V(M(),e),L(e)])),t=V(M(),e),n=B([M(),P().int()]),r=M(),i=R({ttl:P().optional()}),a=R({taskId:M()}),o=z({progressToken:n.optional(),"io.modelcontextprotocol/related-task":a.optional()}),s=R({_meta:o.optional()}),c=s.extend({task:i.optional()}),l=R({method:M(),params:s.loose().optional()}),u=R({_meta:o.optional()}),d=R({method:M(),params:u.loose().optional()}),f=z({_meta:o.optional()}),p=B([M(),P().int()]),m=f.strict(),h=u.extend({requestId:p.optional(),reason:M().optional()}),ee=d.extend({method:U(`notifications/cancelled`),params:h}),g=R({src:M(),mimeType:M().optional(),sizes:L(M()).optional(),theme:H([`light`,`dark`]).optional()}),te=R({icons:L(g).optional()}),_=R({name:M(),title:M().optional()}),ne=_.extend({..._.shape,...te.shape,version:M(),websiteUrl:M().optional(),description:M().optional()}),re=Lf(e=>e&&typeof e==`object`&&!Array.isArray(e)&&Object.keys(e).length===0?{form:{}}:e,Od(R({form:Od(R({applyDefaults:F().optional()}),t).optional(),url:t.optional()}),t.optional())),ie=z({list:t.optional(),cancel:t.optional(),requests:z({sampling:z({createMessage:t.optional()}).optional(),elicitation:z({create:t.optional()}).optional()}).optional()}),ae=z({list:t.optional(),cancel:t.optional(),requests:z({tools:z({call:t.optional()}).optional()}).optional()}),v=R({experimental:V(M(),t).optional(),sampling:R({context:t.optional(),tools:t.optional()}).optional(),elicitation:re.optional(),roots:R({listChanged:F().optional()}).optional(),tasks:ie.optional(),extensions:V(M(),t).optional()}),oe=s.extend({protocolVersion:M(),capabilities:v,clientInfo:ne}),se=l.extend({method:U(`initialize`),params:oe}),ce=R({experimental:V(M(),t).optional(),logging:t.optional(),completions:t.optional(),prompts:R({listChanged:F().optional()}).optional(),resources:R({subscribe:F().optional(),listChanged:F().optional()}).optional(),tools:R({listChanged:F().optional()}).optional(),tasks:ae.optional(),extensions:V(M(),t).optional()}),le=f.extend({protocolVersion:M(),capabilities:ce,serverInfo:ne,instructions:M().optional()}),ue=d.extend({method:U(`notifications/initialized`),params:u.optional()}),de=l.extend({method:U(`ping`),params:s.optional()}),fe=R({progress:P(),total:W(P()),message:W(M())}),pe=R({...u.shape,...fe.shape,progressToken:n}),me=d.extend({method:U(`notifications/progress`),params:pe}),he=s.extend({cursor:r.optional()}),ge=l.extend({params:he.optional()}),y=f.extend({nextCursor:r.optional()}),_e=R({uri:M(),mimeType:W(M()),_meta:V(M(),I()).optional()}),ve=_e.extend({text:M()}),ye=M().refine(e=>{try{return atob(e),!0}catch{return!1}},{message:`Invalid Base64 string`}),be=_e.extend({blob:ye}),xe=H([`user`,`assistant`]),Se=R({audience:L(xe).optional(),priority:P().min(0).max(1).optional(),lastModified:Vf({offset:!0}).optional()}),Ce=R({..._.shape,...te.shape,uri:M(),description:W(M()),mimeType:W(M()),size:W(P()),annotations:Se.optional(),_meta:W(z({}))}),we=R({..._.shape,...te.shape,uriTemplate:M(),description:W(M()),mimeType:W(M()),annotations:Se.optional(),_meta:W(z({}))}),Te=ge.extend({method:U(`resources/list`)}),Ee=y.extend({resources:L(Ce)}),De=ge.extend({method:U(`resources/templates/list`)}),Oe=y.extend({resourceTemplates:L(we)}),ke=s.extend({uri:M()}),b=ke,Ae=l.extend({method:U(`resources/read`),params:b}),je=f.extend({contents:L(B([ve,be]))}),Me=d.extend({method:U(`notifications/resources/list_changed`),params:u.optional()}),Ne=ke,Pe=l.extend({method:U(`resources/subscribe`),params:Ne}),Fe=ke,Ie=l.extend({method:U(`resources/unsubscribe`),params:Fe}),Le=u.extend({uri:M()}),Re=d.extend({method:U(`notifications/resources/updated`),params:Le}),ze=R({name:M(),description:W(M()),required:W(F())}),Be=R({..._.shape,...te.shape,description:W(M()),arguments:W(L(ze)),_meta:W(z({}))}),Ve=ge.extend({method:U(`prompts/list`)}),He=y.extend({prompts:L(Be)}),Ue=s.extend({name:M(),arguments:V(M(),M()).optional()}),We=l.extend({method:U(`prompts/get`),params:Ue}),Ge=R({type:U(`text`),text:M(),annotations:Se.optional(),_meta:V(M(),I()).optional()}),Ke=R({type:U(`image`),data:ye,mimeType:M(),annotations:Se.optional(),_meta:V(M(),I()).optional()}),qe=R({type:U(`audio`),data:ye,mimeType:M(),annotations:Se.optional(),_meta:V(M(),I()).optional()}),Je=R({type:U(`tool_use`),name:M(),id:M(),input:V(M(),I()),_meta:V(M(),I()).optional()}),Ye=R({type:U(`resource`),resource:B([ve,be]),annotations:Se.optional(),_meta:V(M(),I()).optional()}),x=Ce.extend({type:U(`resource_link`)}),Xe=B([Ge,Ke,qe,x,Ye]),Ze=R({role:xe,content:Xe}),Qe=f.extend({description:M().optional(),messages:L(Ze)}),$e=d.extend({method:U(`notifications/prompts/list_changed`),params:u.optional()}),et=R({title:M().optional(),readOnlyHint:F().optional(),destructiveHint:F().optional(),idempotentHint:F().optional(),openWorldHint:F().optional()}),tt=R({taskSupport:H([`required`,`optional`,`forbidden`]).optional()}),nt=R({..._.shape,...te.shape,description:M().optional(),inputSchema:R({type:U(`object`),properties:V(M(),e).optional(),required:L(M()).optional()}).catchall(I()),outputSchema:R({type:U(`object`),properties:V(M(),e).optional(),required:L(M()).optional()}).catchall(I()).optional(),annotations:et.optional(),execution:tt.optional(),_meta:V(M(),I()).optional()}),rt=ge.extend({method:U(`tools/list`)}),S=y.extend({tools:L(nt)}),it=f.extend({content:L(Xe),structuredContent:V(M(),I()).optional(),isError:F().optional()}),C=c.extend({name:M(),arguments:V(M(),I()).optional()}),w=l.extend({method:U(`tools/call`),params:C}),at=d.extend({method:U(`notifications/tools/list_changed`),params:u.optional()}),ot=H([`debug`,`info`,`notice`,`warning`,`error`,`critical`,`alert`,`emergency`]),st=s.extend({level:ot}),ct=l.extend({method:U(`logging/setLevel`),params:st}),lt=u.extend({level:ot,logger:M().optional(),data:I()}),ut=d.extend({method:U(`notifications/message`),params:lt}),dt=R({name:M().optional()}),ft=R({hints:L(dt).optional(),costPriority:P().min(0).max(1).optional(),speedPriority:P().min(0).max(1).optional(),intelligencePriority:P().min(0).max(1).optional()}),pt=R({mode:H([`auto`,`required`,`none`]).optional()}),mt=R({type:U(`tool_result`),toolUseId:M().describe(`The unique identifier for the corresponding tool call.`),content:L(Xe),structuredContent:R({}).loose().optional(),isError:F().optional(),_meta:V(M(),I()).optional()}),ht=Ed(`type`,[Ge,Ke,qe]),gt=Ed(`type`,[Ge,Ke,qe,Je,mt]),_t=R({role:xe,content:B([gt,L(gt)]),_meta:V(M(),I()).optional()}),vt=c.extend({messages:L(_t),modelPreferences:ft.optional(),systemPrompt:M().optional(),includeContext:H([`none`,`thisServer`,`allServers`]).optional(),temperature:P().optional(),maxTokens:P().int(),stopSequences:L(M()).optional(),metadata:t.optional(),tools:L(nt).optional(),toolChoice:pt.optional()}),yt=l.extend({method:U(`sampling/createMessage`),params:vt}),bt=f.extend({model:M(),stopReason:W(H([`endTurn`,`stopSequence`,`maxTokens`]).or(M())),role:xe,content:ht}),xt=f.extend({model:M(),stopReason:W(H([`endTurn`,`stopSequence`,`maxTokens`,`toolUse`]).or(M())),role:xe,content:B([gt,L(gt)])}),St=R({type:U(`boolean`),title:M().optional(),description:M().optional(),default:F().optional()}),Ct=R({type:U(`string`),title:M().optional(),description:M().optional(),minLength:P().optional(),maxLength:P().optional(),format:H([`email`,`uri`,`date`,`date-time`]).optional(),default:M().optional()}),wt=R({type:H([`number`,`integer`]),title:M().optional(),description:M().optional(),minimum:P().optional(),maximum:P().optional(),default:P().optional()}),Tt=R({type:U(`string`),title:M().optional(),description:M().optional(),enum:L(M()),default:M().optional()}),Et=R({type:U(`string`),title:M().optional(),description:M().optional(),oneOf:L(R({const:M(),title:M()})),default:M().optional()}),Dt=R({type:U(`string`),title:M().optional(),description:M().optional(),enum:L(M()),enumNames:L(M()).optional(),default:M().optional()}),Ot=B([Tt,Et]),kt=R({type:U(`array`),title:M().optional(),description:M().optional(),minItems:P().optional(),maxItems:P().optional(),items:R({type:U(`string`),enum:L(M())}),default:L(M()).optional()}),At=R({type:U(`array`),title:M().optional(),description:M().optional(),minItems:P().optional(),maxItems:P().optional(),items:R({anyOf:L(R({const:M(),title:M()}))}),default:L(M()).optional()}),jt=B([kt,At]),Mt=B([Dt,Ot,jt]),Nt=B([Mt,St,Ct,wt]),Pt=c.extend({mode:U(`form`).optional(),message:M(),requestedSchema:R({type:U(`object`),properties:V(M(),Nt),required:L(M()).optional()}).catchall(I())}),Ft=c.extend({mode:U(`url`),message:M(),elicitationId:M(),url:M().url()}),It=B([Pt,Ft]),Lt=l.extend({method:U(`elicitation/create`),params:It}),Rt=u.extend({elicitationId:M()}),zt=d.extend({method:U(`notifications/elicitation/complete`),params:Rt}),Bt=f.extend({action:H([`accept`,`decline`,`cancel`]),content:Lf(e=>e===null?void 0:e,V(M(),B([M(),P(),F(),L(M())])).optional())}),Vt=R({type:U(`ref/resource`),uri:M()}),Ht=R({type:U(`ref/prompt`),name:M()}),Ut=s.extend({ref:B([Ht,Vt]),argument:R({name:M(),value:M()}),context:R({arguments:V(M(),M()).optional()}).optional()}),Wt=l.extend({method:U(`completion/complete`),params:Ut}),Gt=f.extend({completion:z({values:L(M()).max(100),total:W(P().int()),hasMore:W(F())})}),Kt=R({uri:M().startsWith(`file://`),name:M().optional(),_meta:V(M(),I()).optional()}),qt=l.extend({method:U(`roots/list`),params:s.optional()}),Jt=f.extend({roots:L(Kt)}),Yt=d.extend({method:U(`notifications/roots/list_changed`),params:u.optional()}),Xt=z({ttl:P().optional(),pollInterval:P().optional()}),Zt=H([`working`,`input_required`,`completed`,`failed`,`cancelled`]),Qt=R({taskId:M(),status:Zt,ttl:B([P(),cd()]),createdAt:M(),lastUpdatedAt:M(),pollInterval:W(P()),statusMessage:W(M())}),$t=f.extend({task:Qt}),en=u.merge(Qt),tn=d.extend({method:U(`notifications/tasks/status`),params:en}),nn=l.extend({method:U(`tasks/get`),params:s.extend({taskId:M()})}),rn=f.merge(Qt),an=l.extend({method:U(`tasks/result`),params:s.extend({taskId:M()})}),on=f.loose(),sn=ge.extend({method:U(`tasks/list`)}),cn=y.extend({tasks:L(Qt)}),ln=l.extend({method:U(`tasks/cancel`),params:s.extend({taskId:M()})});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:_,ImplementationSchema:ne,ClientTasksCapabilitySchema:ie,ServerTasksCapabilitySchema:ae,ClientCapabilitiesSchema:v,InitializeRequestParamsSchema:oe,InitializeRequestSchema:se,ServerCapabilitiesSchema:ce,InitializeResultSchema:le,InitializedNotificationSchema:ue,PingRequestSchema:de,ProgressSchema:fe,ProgressNotificationParamsSchema:pe,ProgressNotificationSchema:me,PaginatedRequestParamsSchema:he,PaginatedRequestSchema:ge,PaginatedResultSchema:y,ResourceContentsSchema:_e,TextResourceContentsSchema:ve,BlobResourceContentsSchema:be,RoleSchema:xe,AnnotationsSchema:Se,ResourceSchema:Ce,ResourceTemplateSchema:we,ListResourcesRequestSchema:Te,ListResourcesResultSchema:Ee,ListResourceTemplatesRequestSchema:De,ListResourceTemplatesResultSchema:Oe,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:x,ContentBlockSchema:Xe,PromptMessageSchema:Ze,GetPromptResultSchema:Qe,PromptListChangedNotificationSchema:$e,ToolAnnotationsSchema:et,ToolExecutionSchema:tt,ToolSchema:nt,ListToolsRequestSchema:rt,ListToolsResultSchema:S,CallToolResultSchema:it,CallToolRequestParamsSchema:C,CallToolRequestSchema:w,ToolListChangedNotificationSchema:at,LoggingLevelSchema:ot,SetLevelRequestParamsSchema:st,SetLevelRequestSchema:ct,LoggingMessageNotificationParamsSchema:lt,LoggingMessageNotificationSchema:ut,ModelHintSchema:dt,ModelPreferencesSchema:ft,ToolChoiceSchema:pt,ToolResultContentSchema:mt,SamplingContentSchema:ht,SamplingMessageContentBlockSchema:gt,SamplingMessageSchema:_t,CreateMessageRequestParamsSchema:vt,CreateMessageRequestSchema:yt,CreateMessageResultSchema:bt,CreateMessageResultWithToolsSchema:xt,BooleanSchemaSchema:St,StringSchemaSchema:Ct,NumberSchemaSchema:wt,UntitledSingleSelectEnumSchemaSchema:Tt,TitledSingleSelectEnumSchemaSchema:Et,LegacyTitledEnumSchemaSchema:Dt,SingleSelectEnumSchemaSchema:Ot,UntitledMultiSelectEnumSchemaSchema:kt,TitledMultiSelectEnumSchemaSchema:At,MultiSelectEnumSchemaSchema:jt,EnumSchemaSchema:Mt,PrimitiveSchemaDefinitionSchema:Nt,ElicitRequestFormParamsSchema:Pt,ElicitRequestURLParamsSchema:Ft,ElicitRequestParamsSchema:It,ElicitRequestSchema:Lt,ElicitationCompleteNotificationParamsSchema:Rt,ElicitationCompleteNotificationSchema:zt,ElicitResultSchema:Bt,ResourceTemplateReferenceSchema:Vt,PromptReferenceSchema:Ht,CompleteRequestParamsSchema:Ut,CompleteRequestSchema:Wt,CompleteResultSchema:Gt,RootSchema:Kt,ListRootsRequestSchema:qt,ListRootsResultSchema:Jt,RootsListChangedNotificationSchema:Yt,TaskCreationParamsSchema:Xt,TaskStatusSchema:Zt,TaskSchema:Qt,CreateTaskResultSchema:$t,TaskStatusNotificationParamsSchema:en,TaskStatusNotificationSchema:tn,GetTaskRequestSchema:nn,GetTaskResultSchema:rn,GetTaskPayloadRequestSchema:an,GetTaskPayloadResultSchema:on,ListTasksRequestSchema:sn,ListTasksResultSchema:cn,CancelTaskRequestSchema:ln,CancelTaskResultSchema:f.merge(Qt),ClientRequestSchema:B([de,se,Wt,ct,We,Ve,Te,De,Ae,Pe,Ie,w,rt,nn,an,sn,ln]),ClientNotificationSchema:B([ee,me,ue,Yt,tn]),ClientResultSchema:B([m,bt,xt,Bt,Jt,rn,cn,$t]),ServerRequestSchema:B([de,yt,Lt,qt,nn,an,sn,ln]),ServerNotificationSchema:B([ee,me,ut,Re,Me,at,$e,tn,zt]),ServerResultSchema:B([m,le,Gt,Qe,He,Ee,Oe,je,it,S,rn,cn,$t]),CallToolResultWireSchema:I().superRefine((e,t)=>{if(typeof e==`object`&&e&&!Array.isArray(e)&&e.content===void 0){for(let n of Bg)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(Vg).pipe(it)}}var Ug;function Wg(){return Ug??=Hg()}function Gg(e){return e.type!==`object`}var Kg=new Set([`const`,`enum`,`default`,`examples`]),qg=new Set([`properties`,`patternProperties`,`$defs`,`definitions`,`dependentSchemas`,`dependencies`]);function Jg(e){return e!==void 0&&!(typeof e==`string`&&e.startsWith(`#`))}function Yg(e){let t=typeof e.$schema==`string`?e.$schema:void 0;if(Jg(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&&Jg(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:i[o]=Kg.has(o)?s:qg.has(o)?r(s,!0):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 Xg={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},Zg={"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},Qg={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},$g;function e_(){if($g)return $g;let e=Wg();return $g={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}},$g}function t_(e){return Object.prototype.hasOwnProperty.call(Xg,e)}function n_(e){return Object.prototype.hasOwnProperty.call(Zg,e)}function r_(e){return Object.prototype.hasOwnProperty.call(Qg,e)}function i_(e){return r_(e)?e_().resultSchemas[e]:void 0}function a_(e){return t_(e)?e_().requestSchemas[e]:void 0}function o_(e){return n_(e)?e_().notificationSchemas[e]:void 0}Object.keys(Xg),Object.keys(Zg);function s_(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function c_(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 l_={ok:!1,reason:`not-in-era`};function u_(e){return s_(e)&&s_(e.outputSchema)&&Gg(e.outputSchema)}function d_(e){return e}var f_={era:`2025-11-25`,hasRequestMethod:t_,hasNotificationMethod:n_,validateRequest:(e,t)=>c_(a_(e),t),validateResult:(e,t)=>c_(i_(e),t),validateNotification:(e,t)=>c_(o_(e),t),hasInputRequestMethod:()=>!1,validateInputRequest:()=>l_,validateInputResponse:()=>l_,samplingResultVariant:((e,t)=>{let n=Wg();return c_(e?n.CreateMessageResultWithToolsSchema:n.CreateMessageResultSchema,t)}),outboundEnvelope:e=>void 0,validateEnvelopeMeta:e=>[],projectCallToolResult(e,t){let n=zg(e),r=n.structuredContent;if(r===void 0)return n;let i=typeof r!=`object`||!r||Array.isArray(r),a=t!==void 0&&Gg(t);return!i&&!a?n:{...n,structuredContent:{result:r}}},decodeResult(e,t){if(s_(t)&&`resultType`in t){let e={...t};return delete e.resultType,{kind:`complete`,result:d_(e)}}return{kind:`complete`,result:d_(t)}},encodeResult(e,t){if(e!==`tools/list`)return t;let n=t.tools;return!Array.isArray(n)||!n.some(e=>u_(e))?t:{...t,tools:n.map(e=>u_(e)?{...e,outputSchema:Yg(e.outputSchema)}:e)}},encodeErrorCode:e=>e===-32002?-32602:e,checkInboundEnvelope:e=>void 0};function p_(){let e=xf(()=>B([M(),P(),F(),cd(),V(M(),e),L(e)])),t=V(M(),e),n=B([M(),P().int()]),r=M(),i=B([M(),P().int()]),a=H([`user`,`assistant`]),o=H([`debug`,`info`,`notice`,`warning`,`error`,`critical`,`alert`,`emergency`]),s=M().refine(e=>{try{return atob(e),!0}catch{return!1}},{message:`Invalid Base64 string`}),c=R({ttl:P().optional()}),l=R({taskId:M()}),u=z({progressToken:n.optional(),"io.modelcontextprotocol/related-task":l.optional()}),d=R({_meta:u.optional()}),f=d.extend({task:c.optional()}),p=R({_meta:u.optional()}),m=R({method:M(),params:p.loose().optional()}),h=R({src:M(),mimeType:M().optional(),sizes:L(M()).optional(),theme:H([`light`,`dark`]).optional()}),ee=R({icons:L(h).optional()}),g=R({name:M(),title:M().optional()}),te=g.extend({...g.shape,...ee.shape,version:M(),websiteUrl:M().optional(),description:M().optional()}),_=Lf(e=>e&&typeof e==`object`&&!Array.isArray(e)&&Object.keys(e).length===0?{form:{}}:e,Od(R({form:Od(R({applyDefaults:F().optional()}),t).optional(),url:t.optional()}),t.optional())),ne=z({list:t.optional(),cancel:t.optional(),requests:z({sampling:z({createMessage:t.optional()}).optional(),elicitation:z({create:t.optional()}).optional()}).optional()}),re=z({list:t.optional(),cancel:t.optional(),requests:z({tools:z({call:t.optional()}).optional()}).optional()}),ie=R({experimental:V(M(),t).optional(),sampling:R({context:t.optional(),tools:t.optional()}).optional(),elicitation:_.optional(),roots:R({listChanged:F().optional()}).optional(),tasks:ne.optional(),extensions:V(M(),t).optional()}),ae=R({experimental:V(M(),t).optional(),logging:t.optional(),completions:t.optional(),prompts:R({listChanged:F().optional()}).optional(),resources:R({subscribe:F().optional(),listChanged:F().optional()}).optional(),tools:R({listChanged:F().optional()}).optional(),tasks:re.optional(),extensions:V(M(),t).optional()}),v=R({progress:P(),total:W(P()),message:W(M())}),oe=R({...p.shape,...v.shape,progressToken:n}),se=m.extend({method:U(`notifications/progress`),params:oe}),ce=p.extend({level:o,logger:M().optional(),data:I()}),le=m.extend({method:U(`notifications/message`),params:ce}),ue=R({uri:M(),mimeType:W(M()),_meta:V(M(),I()).optional()}),de=ue.extend({text:M()}),fe=ue.extend({blob:s}),pe=R({audience:L(a).optional(),priority:P().min(0).max(1).optional(),lastModified:Vf({offset:!0}).optional()}),me=R({...g.shape,...ee.shape,uri:M(),description:W(M()),mimeType:W(M()),size:W(P()),annotations:pe.optional(),_meta:W(z({}))}),he=R({...g.shape,...ee.shape,uriTemplate:M(),description:W(M()),mimeType:W(M()),annotations:pe.optional(),_meta:W(z({}))}),ge=m.extend({method:U(`notifications/resources/list_changed`),params:p.optional()}),y=p.extend({uri:M()}),_e=m.extend({method:U(`notifications/resources/updated`),params:y}),ve=R({name:M(),description:W(M()),required:W(F())}),ye=R({...g.shape,...ee.shape,description:W(M()),arguments:W(L(ve)),_meta:W(z({}))}),be=m.extend({method:U(`notifications/prompts/list_changed`),params:p.optional()}),xe=R({type:U(`text`),text:M(),annotations:pe.optional(),_meta:V(M(),I()).optional()}),Se=R({type:U(`image`),data:s,mimeType:M(),annotations:pe.optional(),_meta:V(M(),I()).optional()}),Ce=R({type:U(`audio`),data:s,mimeType:M(),annotations:pe.optional(),_meta:V(M(),I()).optional()}),we=R({type:U(`tool_use`),name:M(),id:M(),input:V(M(),I()),_meta:V(M(),I()).optional()}),Te=R({type:U(`resource`),resource:B([de,fe]),annotations:pe.optional(),_meta:V(M(),I()).optional()}),Ee=me.extend({type:U(`resource_link`)}),De=B([xe,Se,Ce,Ee,Te]),Oe=R({role:a,content:De}),ke=R({title:M().optional(),readOnlyHint:F().optional(),destructiveHint:F().optional(),idempotentHint:F().optional(),openWorldHint:F().optional()}),b=m.extend({method:U(`notifications/tools/list_changed`),params:p.optional()}),Ae=R({name:M().optional()}),je=R({hints:L(Ae).optional(),costPriority:P().min(0).max(1).optional(),speedPriority:P().min(0).max(1).optional(),intelligencePriority:P().min(0).max(1).optional()}),Me=R({mode:H([`auto`,`required`,`none`]).optional()}),Ne=R({type:U(`boolean`),title:M().optional(),description:M().optional(),default:F().optional()}),Pe=R({type:U(`string`),title:M().optional(),description:M().optional(),minLength:P().optional(),maxLength:P().optional(),format:H([`email`,`uri`,`date`,`date-time`]).optional(),default:M().optional()}),Fe=R({type:H([`number`,`integer`]),title:M().optional(),description:M().optional(),minimum:P().optional(),maximum:P().optional(),default:P().optional()}),Ie=R({type:U(`string`),title:M().optional(),description:M().optional(),enum:L(M()),default:M().optional()}),Le=R({type:U(`string`),title:M().optional(),description:M().optional(),oneOf:L(R({const:M(),title:M()})),default:M().optional()}),Re=R({type:U(`string`),title:M().optional(),description:M().optional(),enum:L(M()),enumNames:L(M()).optional(),default:M().optional()}),ze=B([Ie,Le]),Be=R({type:U(`array`),title:M().optional(),description:M().optional(),minItems:P().optional(),maxItems:P().optional(),items:R({type:U(`string`),enum:L(M())}),default:L(M()).optional()}),Ve=R({type:U(`array`),title:M().optional(),description:M().optional(),minItems:P().optional(),maxItems:P().optional(),items:R({anyOf:L(R({const:M(),title:M()}))}),default:L(M()).optional()}),He=B([Be,Ve]),Ue=B([Re,ze,He]),We=B([Ue,Ne,Pe,Fe]),Ge=f.extend({mode:U(`form`).optional(),message:M(),requestedSchema:R({type:U(`object`),properties:V(M(),We),required:L(M()).optional()}).catchall(I())}),Ke=R({type:U(`ref/resource`),uri:M()}),qe=R({type:U(`ref/prompt`),name:M()}),Je=R({uri:M().startsWith(`file://`),name:M().optional(),_meta:V(M(),I()).optional()}),Ye=ie.shape,x=R({experimental:Ye.experimental,sampling:Ye.sampling,elicitation:Ye.elicitation,roots:Ye.roots,extensions:Ye.extensions}),Xe=ae.shape,Ze=R({experimental:Xe.experimental,logging:Xe.logging,completions:Xe.completions,prompts:Xe.prompts,resources:Xe.resources,tools:Xe.tools,extensions:Xe.extensions}),Qe=z({progressToken:n.optional(),[dp]:M(),[fp]:te.optional(),[mp]:x,[gp]:o.optional()}),$e=R({...g.shape,...ee.shape,description:M().optional(),inputSchema:z({$schema:M().optional(),type:U(`object`)}),outputSchema:z({$schema:M().optional()}).optional(),annotations:ke.optional(),_meta:V(M(),I()).optional()}),et=R({type:U(`tool_result`),toolUseId:M(),content:L(De),structuredContent:I().optional(),isError:F().optional(),_meta:V(M(),I()).optional()}),tt=B([xe,Se,Ce,we,et]),nt=R({role:a,content:B([tt,L(tt)]),_meta:V(M(),I()).optional()}),rt=M(),S=z({[pp]:te.optional().catch(void 0)}),it=S.optional();function C(e){return z({_meta:it,resultType:rt.default(`complete`),...e})}let w=C({}),at=C({nextCursor:r.optional()}),ot=C({content:L(De),structuredContent:I().optional(),isError:F().optional()}),st=C({ttlMs:P().int().min(0),cacheScope:H([`public`,`private`]),tools:L($e),nextCursor:r.optional()}),ct=C({ttlMs:P().int().min(0),cacheScope:H([`public`,`private`]),prompts:L(ye),nextCursor:r.optional()}),lt=C({description:M().optional(),messages:L(Oe)}),ut=C({ttlMs:P().int().min(0),cacheScope:H([`public`,`private`]),resources:L(me),nextCursor:r.optional()}),dt=C({ttlMs:P().int().min(0),cacheScope:H([`public`,`private`]),resourceTemplates:L(he),nextCursor:r.optional()}),ft=C({ttlMs:P().int().min(0),cacheScope:H([`public`,`private`]),contents:L(B([de,fe]))}),pt=C({completion:R({values:L(M()).max(100),total:P().int().optional(),hasMore:F().optional()}).loose()}),mt=C({ttlMs:P().int().min(0),cacheScope:H([`public`,`private`])}),ht=C({ttlMs:P().int().min(0).catch(0),cacheScope:H([`public`,`private`]).catch(`private`),supportedVersions:L(M()),capabilities:Ze,instructions:M().optional()}),gt=R({messages:L(nt),modelPreferences:je.optional(),systemPrompt:M().optional(),includeContext:H([`none`,`thisServer`,`allServers`]).optional(),temperature:P().optional(),maxTokens:P().int(),stopSequences:L(M()).optional(),metadata:t.optional(),tools:L($e).optional(),toolChoice:Me.optional()}),_t=R({method:U(`sampling/createMessage`),params:gt}),vt=R({method:U(`roots/list`),params:R({_meta:V(M(),I()).optional()}).optional()}),yt=R({...nt.shape,model:M(),stopReason:M().optional()}),bt=R({roots:L(Je)}),xt=R({action:H([`accept`,`decline`,`cancel`]),content:V(M(),B([M(),P(),F(),L(M())])).optional()}),St=R({mode:U(`url`),message:M(),url:M().url()}),Ct=B([Ge,St]),wt=R({method:U(`elicitation/create`),params:Ct}),Tt=B([_t,vt,wt]),Et=B([yt,bt,xt]),Dt=V(M(),Tt),Ot=V(M(),Et),kt=C({inputRequests:Dt.optional(),requestState:M().optional()}),At={inputResponses:Ot.optional(),requestState:M().optional()},jt=R({_meta:Qe,...At}),Mt=z({progressToken:n.optional()});function Nt(e,t){return R({method:U(e),params:R({_meta:Qe,...t})})}function Pt(e,t){return R({method:U(e),params:R({_meta:Mt.optional(),...t}).optional()})}let Ft={name:M(),arguments:V(M(),I()).optional(),...At},It={cursor:r.optional()},Lt=Nt(`tools/call`,Ft),Rt=Nt(`tools/list`,It),zt=Nt(`prompts/list`,It),Bt=Nt(`prompts/get`,{name:M(),arguments:V(M(),M()).optional(),...At}),Vt=Nt(`resources/list`,It),Ht=Nt(`resources/templates/list`,It),Ut=Nt(`resources/read`,{uri:M(),...At}),Wt={ref:B([qe,Ke]),argument:R({name:M(),value:M()}),context:R({arguments:V(M(),M()).optional()}).optional()},Gt=Nt(`completion/complete`,Wt),Kt=Nt(`server/discover`,{}),qt=R({toolsListChanged:F().optional(),promptsListChanged:F().optional(),resourcesListChanged:F().optional(),resourceSubscriptions:L(M()).optional()}),Jt={notifications:qt},Yt=Nt(`subscriptions/listen`,Jt),Xt=S.extend({"io.modelcontextprotocol/subscriptionId":i}),Zt=z({_meta:Xt,resultType:rt.default(`complete`)}),Qt={"tools/call":Pt(`tools/call`,Ft),"tools/list":Pt(`tools/list`,It),"prompts/get":Pt(`prompts/get`,{name:M(),arguments:V(M(),M()).optional()}),"prompts/list":Pt(`prompts/list`,It),"resources/list":Pt(`resources/list`,It),"resources/templates/list":Pt(`resources/templates/list`,It),"resources/read":Pt(`resources/read`,{uri:M()}),"completion/complete":Pt(`completion/complete`,Wt),"server/discover":Pt(`server/discover`,{}),"subscriptions/listen":Pt(`subscriptions/listen`,Jt)};function $t(e){return z({_meta:it,...e})}let en={"tools/call":$t({content:L(De),structuredContent:I().optional(),isError:F().optional()}),"tools/list":$t({ttlMs:P().int().min(0),cacheScope:H([`public`,`private`]),tools:L($e),nextCursor:r.optional()}),"prompts/get":$t({description:M().optional(),messages:L(Oe)}),"prompts/list":$t({ttlMs:P().int().min(0),cacheScope:H([`public`,`private`]),prompts:L(ye),nextCursor:r.optional()}),"resources/list":$t({ttlMs:P().int().min(0),cacheScope:H([`public`,`private`]),resources:L(me),nextCursor:r.optional()}),"resources/templates/list":$t({ttlMs:P().int().min(0),cacheScope:H([`public`,`private`]),resourceTemplates:L(he),nextCursor:r.optional()}),"resources/read":$t({ttlMs:P().int().min(0),cacheScope:H([`public`,`private`]),contents:L(B([de,fe]))}),"completion/complete":$t({completion:R({values:L(M()).max(100),total:P().int().optional(),hasMore:F().optional()}).loose()}),"server/discover":$t({ttlMs:P().int().min(0).catch(0),cacheScope:H([`public`,`private`]).catch(`private`),supportedVersions:L(M()),capabilities:Ze,instructions:M().optional()}),"subscriptions/listen":$t({})},tn=z({"io.modelcontextprotocol/subscriptionId":i.optional()}),nn=R({method:U(`notifications/subscriptions/acknowledged`),params:R({_meta:tn.optional(),notifications:qt})}),rn=R({_meta:tn.optional(),requestId:i,reason:M().optional()}),an=R({method:U(`notifications/cancelled`),params:rn}),on={"notifications/cancelled":an,"notifications/progress":se,"notifications/message":le,"notifications/resources/updated":_e,"notifications/resources/list_changed":ge,"notifications/tools/list_changed":b,"notifications/prompts/list_changed":be,"notifications/subscriptions/acknowledged":nn},sn=e=>R({jsonrpc:U(`2.0`),id:B([M(),P().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:ne,ServerTasksCapabilitySchema:re,ClientCapabilitiesSchema:ie,ServerCapabilitiesSchema:ae,ProgressSchema:v,ProgressNotificationParamsSchema:oe,ProgressNotificationSchema:se,LoggingMessageNotificationParamsSchema:ce,LoggingMessageNotificationSchema:le,ResourceContentsSchema:ue,TextResourceContentsSchema:de,BlobResourceContentsSchema:fe,AnnotationsSchema:pe,ResourceSchema:me,ResourceTemplateSchema:he,ResourceListChangedNotificationSchema:ge,ResourceUpdatedNotificationParamsSchema:y,ResourceUpdatedNotificationSchema:_e,PromptArgumentSchema:ve,PromptSchema:ye,PromptListChangedNotificationSchema:be,TextContentSchema:xe,ImageContentSchema:Se,AudioContentSchema:Ce,ToolUseContentSchema:we,EmbeddedResourceSchema:Te,ResourceLinkSchema:Ee,ContentBlockSchema:De,PromptMessageSchema:Oe,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:x,ServerCapabilities2026Schema:Ze,RequestMetaEnvelopeSchema:Qe,ToolSchema:$e,ToolResultContentSchema:et,SamplingMessageContentBlockSchema:tt,SamplingMessageSchema:nt,ResultTypeSchema:rt,ResultMetaSchema:S,ResultSchema:w,PaginatedResultSchema:at,CallToolResultSchema:ot,ListToolsResultSchema:st,ListPromptsResultSchema:ct,GetPromptResultSchema:lt,ListResourcesResultSchema:ut,ListResourceTemplatesResultSchema:dt,ReadResourceResultSchema:ft,CompleteResultSchema:pt,CacheableResultSchema:mt,DiscoverResultSchema:ht,CreateMessageRequestParamsSchema:gt,CreateMessageRequestSchema:_t,ListRootsRequestSchema:vt,CreateMessageResultSchema:yt,ListRootsResultSchema:bt,ElicitResultSchema:xt,ElicitRequestURLParamsSchema:St,ElicitRequestParamsSchema:Ct,ElicitRequestSchema:wt,InputRequestSchema:Tt,InputResponseSchema:Et,InputRequestsSchema:Dt,InputResponsesSchema:Ot,InputRequiredResultSchema:kt,InputResponseRequestParamsSchema:jt,CallToolRequestSchema:Lt,ListToolsRequestSchema:Rt,ListPromptsRequestSchema:zt,GetPromptRequestSchema:Bt,ListResourcesRequestSchema:Vt,ListResourceTemplatesRequestSchema:Ht,ReadResourceRequestSchema:Ut,CompleteRequestSchema:Gt,DiscoverRequestSchema:Kt,SubscriptionFilterSchema:qt,SubscriptionsListenRequestSchema:Yt,SubscriptionsListenResultMetaSchema:Xt,SubscriptionsListenResultSchema:Zt,dispatchRequestSchemas:Qt,dispatchResultSchemas:en,NotificationMetaSchema:tn,SubscriptionsAcknowledgedNotificationSchema:nn,CancelledNotificationParamsSchema:rn,CancelledNotificationSchema:an,notificationSchemas2026:on,JSONRPCResultResponseSchema:sn(w),CallToolResultResponseSchema:sn(B([ot,kt])),ListToolsResultResponseSchema:sn(st),ListPromptsResultResponseSchema:sn(ct),GetPromptResultResponseSchema:sn(B([lt,kt])),ListResourcesResultResponseSchema:sn(ut),ListResourceTemplatesResultResponseSchema:sn(dt),ReadResourceResultResponseSchema:sn(B([ft,kt])),CompleteResultResponseSchema:sn(pt),DiscoverResultResponseSchema:sn(ht),SubscriptionsListenResultResponseSchema:sn(Zt)}}var m_;function h_(){return m_??=p_()}var g_=[`tools/list`,`prompts/list`,`resources/list`,`resources/templates/list`,`resources/read`,`server/discover`];function __(e){return g_.includes(e)}var v_=Symbol(`modelcontextprotocol.resultCacheHintFallback`);function y_(e){return e[v_]}function b_(e){return typeof e==`number`&&Number.isSafeInteger(e)&&e>=0}function x_(e){return e===`public`||e===`private`}var Z=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}({}),S_=class e extends Error{static{Object.defineProperty(this,"mcpBrand",{value:`mcp.ProtocolError`})}static[Symbol.hasInstance](e){return Fg(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 Fg(this,e)}constructor(e,t,n){super(t),this.code=e,this.data=n,this.name=`ProtocolError`,Pg(this,new.target)}static fromError(t,n,r){if(t===Z.UrlElicitationRequired&&r){let e=r;if(e.elicitations)return new w_(e.elicitations,n)}if(t===Z.UnsupportedProtocolVersion&&r){let e=r;if(Array.isArray(e.supported)&&typeof e.requested==`string`)return new T_({supported:e.supported,requested:e.requested},n)}if(t===Z.InvalidParams||t===Z.ResourceNotFound){let e=r;if(typeof e?.uri==`string`&&(t===Z.ResourceNotFound||Object.keys(e).length===1))return new C_(e.uri,n)}if(t===Z.MissingRequiredClientCapability&&r){let e=r;if(e.requiredCapabilities!==null&&typeof e.requiredCapabilities==`object`&&!Array.isArray(e.requiredCapabilities))return new E_({requiredCapabilities:e.requiredCapabilities},n)}return new e(t,n,r)}},C_=class extends S_{static{Object.defineProperty(this,"mcpBrand",{value:`mcp.ResourceNotFoundError`})}constructor(e,t=`Resource not found: ${e}`){super(Z.InvalidParams,t,{uri:e})}get uri(){return this.data.uri}},w_=class extends S_{static{Object.defineProperty(this,"mcpBrand",{value:`mcp.UrlElicitationRequiredError`})}constructor(e,t=`URL elicitation${e.length>1?`s`:``} required`){super(Z.UrlElicitationRequired,t,{elicitations:e})}get elicitations(){return this.data?.elicitations??[]}},T_=class extends S_{static{Object.defineProperty(this,"mcpBrand",{value:`mcp.UnsupportedProtocolVersionError`})}constructor(e,t=`Unsupported protocol version: ${e.requested}`){super(Z.UnsupportedProtocolVersion,t,e)}get supported(){return this.data.supported}get requested(){return this.data.requested}},E_=class extends S_{static{Object.defineProperty(this,"mcpBrand",{value:`mcp.MissingRequiredClientCapabilityError`})}constructor(e,t=`Missing required client capabilities: ${Object.keys(e.requiredCapabilities).join(`, `)}`){super(Z.MissingRequiredClientCapability,t,e)}get requiredCapabilities(){return this.data.requiredCapabilities}},D_=0,O_=`private`,k_=[`tools/call`,`prompts/get`,`resources/read`];function A_(e,t){let n=t.resultType;if(n===void 0)return{...t,resultType:`complete`};if(n===`complete`||k_.includes(e))return t;throw new S_(Z.InternalError,`Handler for ${e} returned resultType '${String(n)}', but results of ${e} only support 'complete' on protocol revision 2026-07-28`)}function j_(e,t){let n=y_(t);if(t.resultType!==`complete`||!__(e))return n===void 0?t:I_(t);let r=t,i=b_(r.ttlMs)?r.ttlMs:P_(n),a=x_(r.cacheScope)?r.cacheScope:F_(n),o={...r,ttlMs:i,cacheScope:a};return delete o[v_],o}function M_(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function N_(e,t){if(t===void 0)return e;let n=e._meta;return n===void 0?{...e,_meta:{[pp]:t}}:!M_(n)||n[`io.modelcontextprotocol/serverInfo`]!==void 0?e:{...e,_meta:{...n,[pp]:t}}}function P_(e){return e!==void 0&&b_(e.ttlMs)?e.ttlMs:D_}function F_(e){return e!==void 0&&x_(e.cacheScope)?e.cacheScope:O_}function I_(e){let t={...e};return delete t[v_],t}var L_=[`elicitation/create`,`sampling/createMessage`,`roots/list`],R_;function z_(){if(R_)return R_;let e=h_();return R_={request:{"elicitation/create":R({method:U(`elicitation/create`),params:e.ElicitRequestParamsSchema}),"sampling/createMessage":R({method:U(`sampling/createMessage`),params:e.CreateMessageRequestParamsSchema}),"roots/list":R({method:U(`roots/list`),params:z({}).optional()})},response:{"elicitation/create":e.ElicitResultSchema,"sampling/createMessage":e.CreateMessageResultSchema,"roots/list":e.ListRootsResultSchema}},R_}function B_(e){return L_.includes(e)}function V_(e){return B_(e)?z_().request[e]:void 0}function H_(e){return B_(e)?z_().response[e]:void 0}var U_={"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},W_={"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 G_(e){return Object.prototype.hasOwnProperty.call(U_,e)}function K_(e){return Object.prototype.hasOwnProperty.call(W_,e)}function q_(e){return Object.prototype.hasOwnProperty.call(U_,e)}function J_(e){return G_(e)?h_().dispatchRequestSchemas[e]:void 0}function Y_(e){return q_(e)?h_().dispatchResultSchemas[e]:void 0}function X_(e){return K_(e)?h_().notificationSchemas2026[e]:void 0}Object.keys(U_),Object.keys(W_);function Z_(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function Q_(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 $_={ok:!1,reason:`not-in-era`},ev=[dp,mp];function tv(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=>Z_(e)&&`execution`in e)&&(i().tools=a.map(e=>{if(!Z_(e)||!(`execution`in e))return e;let t={...e};return delete t.execution,t}));let o=t.capabilities;if(Z_(o)&&`tasks`in o){let e={...o};delete e.tasks,i().capabilities=e}return n}var nv={era:`2026-07-28`,hasRequestMethod:G_,hasNotificationMethod:K_,hasInputRequestMethod:e=>V_(e)!==void 0,validateRequest:(e,t)=>Q_(J_(e),t),validateResult:(e,t)=>Q_(Y_(e),t),validateNotification:(e,t)=>Q_(X_(e),t),validateInputRequest:(e,t)=>Q_(V_(e),t),validateInputResponse:(e,t)=>Q_(H_(e),t),samplingResultVariant:()=>$_,outboundEnvelope(e){return{[dp]:e.protocolVersion,[fp]:e.clientInfo,[mp]:e.clientCapabilities,...e.logLevel!==void 0&&{"io.modelcontextprotocol/logLevel":e.logLevel}}},validateEnvelopeMeta(e){let t=[];for(let n of ev)n in e||t.push({key:n,problem:`missing`});let n=h_().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=>zg(e),inputRequestSchema:V_,decodeResult(e,t){if(!Z_(t))return{kind:`invalid`,error:new X(Ig.InvalidResult,`Invalid result for ${e}: not an object`,{method:e})};let n=t.resultType;if(n===void 0)return{kind:`invalid`,error:new X(Ig.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 X(Ig.InvalidResult,`Invalid result for ${e}: non-string resultType`,{method:e,resultType:n})};if(n===`input_required`){let n=t.inputRequests,r=Z_(n)?n:{},i=t.requestState,a=t._meta===void 0?void 0:h_().ResultMetaSchema.safeParse(t._meta),o=a?.success?a.data:void 0;return Object.keys(r).length===0&&typeof i!=`string`?{kind:`invalid`,error:new X(Ig.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},...o!==void 0&&{_meta:o}}}if(n!==`complete`)return{kind:`invalid`,error:new X(Ig.UnsupportedResultType,`Unsupported result type '${n}' for ${e}`,{resultType:n,method:e})};let r=iv(),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 X(Ig.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 N_(j_(e,A_(e,tv(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=h_().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(`; `)}`}},rv;function iv(){if(rv)return rv;let e=h_();return rv={"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},rv}var av=`2026-07-28`;function ov(e){return e!==void 0&&Rg(e)?nv:f_}function sv(e){return e.revision===void 0?e.era===`modern`?nv.era:f_.era:ov(e.revision).era}function cv(e){return dv.some(t=>t.hasRequestMethod(e))}function lv(e){return dv.some(t=>t.hasNotificationMethod(e))}function uv(e){return e===`tasks/get`||e===`tasks/cancel`}var dv=[f_,nv],fv=i({AnnotationsSchema:()=>fm,AudioContentSchema:()=>Gm,BaseMetadataSchema:()=>Vp,BaseRequestParamsSchema:()=>wp,BlobResourceContentsSchema:()=>um,BooleanSchemaSchema:()=>Eh,CallToolRequestParamsSchema:()=>oh,CallToolRequestSchema:()=>sh,CallToolResultSchema:()=>ih,CancelTaskRequestSchema:()=>fg,CancelTaskResultSchema:()=>pg,CancelledNotificationParamsSchema:()=>Lp,CancelledNotificationSchema:()=>Rp,ClientCapabilitiesSchema:()=>Kp,ClientNotificationSchema:()=>hg,ClientRequestSchema:()=>mg,ClientResultSchema:()=>gg,ClientTasksCapabilitySchema:()=>Wp,CompatibilityCallToolResultSchema:()=>ah,CompleteRequestParamsSchema:()=>qh,CompleteRequestSchema:()=>Jh,CompleteResultSchema:()=>Yh,ContentBlockSchema:()=>Ym,CreateMessageRequestParamsSchema:()=>Sh,CreateMessageRequestSchema:()=>Ch,CreateMessageResultSchema:()=>wh,CreateMessageResultWithToolsSchema:()=>Th,CreateTaskResultSchema:()=>rg,CursorSchema:()=>bp,DiscoverRequestSchema:()=>Qp,DiscoverResultSchema:()=>$p,ElicitRequestFormParamsSchema:()=>Rh,ElicitRequestParamsSchema:()=>Bh,ElicitRequestSchema:()=>Vh,ElicitRequestURLParamsSchema:()=>zh,ElicitResultSchema:()=>Wh,ElicitationCompleteNotificationParamsSchema:()=>Hh,ElicitationCompleteNotificationSchema:()=>Uh,EmbeddedResourceSchema:()=>qm,EmptyResultSchema:()=>Ip,EnumSchemaSchema:()=>Ih,GetPromptRequestParamsSchema:()=>Vm,GetPromptRequestSchema:()=>Hm,GetPromptResultSchema:()=>Zm,GetTaskPayloadRequestSchema:()=>cg,GetTaskPayloadResultSchema:()=>lg,GetTaskRequestSchema:()=>og,GetTaskResultSchema:()=>sg,IconSchema:()=>zp,IconsSchema:()=>Bp,ImageContentSchema:()=>Wm,ImplementationSchema:()=>Hp,InitializeRequestParamsSchema:()=>qp,InitializeRequestSchema:()=>Jp,InitializeResultSchema:()=>Xp,InitializedNotificationSchema:()=>Zp,JSONArraySchema:()=>vp,JSONObjectSchema:()=>K,JSONRPCErrorResponseSchema:()=>Np,JSONRPCMessageSchema:()=>Pp,JSONRPCNotificationSchema:()=>jp,JSONRPCRequestSchema:()=>Ap,JSONRPCResponseSchema:()=>Fp,JSONRPCResultResponseSchema:()=>Mp,JSONValueSchema:()=>_p,LegacyTitledEnumSchemaSchema:()=>jh,ListChangedOptionsBaseSchema:()=>lh,ListPromptsRequestSchema:()=>zm,ListPromptsResultSchema:()=>Bm,ListResourceTemplatesRequestSchema:()=>_m,ListResourceTemplatesResultSchema:()=>vm,ListResourcesRequestSchema:()=>hm,ListResourcesResultSchema:()=>gm,ListRootsRequestSchema:()=>Zh,ListRootsResultSchema:()=>Qh,ListTasksRequestSchema:()=>ug,ListTasksResultSchema:()=>dg,ListToolsRequestSchema:()=>nh,ListToolsResultSchema:()=>rh,LoggingLevelSchema:()=>uh,LoggingMessageNotificationParamsSchema:()=>ph,LoggingMessageNotificationSchema:()=>mh,ModelHintSchema:()=>hh,ModelPreferencesSchema:()=>gh,MultiSelectEnumSchemaSchema:()=>Fh,NotificationSchema:()=>Dp,NotificationsParamsSchema:()=>Ep,NumberSchemaSchema:()=>Oh,PaginatedRequestParamsSchema:()=>im,PaginatedRequestSchema:()=>am,PaginatedResultSchema:()=>om,PingRequestSchema:()=>em,PrimitiveSchemaDefinitionSchema:()=>Lh,ProgressNotificationParamsSchema:()=>nm,ProgressNotificationSchema:()=>rm,ProgressSchema:()=>tm,ProgressTokenSchema:()=>yp,PromptArgumentSchema:()=>Lm,PromptListChangedNotificationSchema:()=>Qm,PromptMessageSchema:()=>Xm,PromptReferenceSchema:()=>Kh,PromptSchema:()=>Rm,ReadResourceRequestParamsSchema:()=>bm,ReadResourceRequestSchema:()=>xm,ReadResourceResultSchema:()=>Sm,RelatedTaskMetadataSchema:()=>Sp,RequestIdSchema:()=>kp,RequestMetaSchema:()=>Cp,RequestSchema:()=>q,ResourceContentsSchema:()=>sm,ResourceLinkSchema:()=>Jm,ResourceListChangedNotificationSchema:()=>Cm,ResourceRequestParamsSchema:()=>ym,ResourceSchema:()=>pm,ResourceTemplateReferenceSchema:()=>Gh,ResourceTemplateSchema:()=>mm,ResourceUpdatedNotificationParamsSchema:()=>Fm,ResourceUpdatedNotificationSchema:()=>Im,ResultMetaObjectSchema:()=>Op,ResultSchema:()=>J,RoleSchema:()=>dm,RootSchema:()=>Xh,RootsListChangedNotificationSchema:()=>$h,SamplingContentSchema:()=>yh,SamplingMessageContentBlockSchema:()=>bh,SamplingMessageSchema:()=>xh,ServerCapabilitiesSchema:()=>Yp,ServerNotificationSchema:()=>vg,ServerRequestSchema:()=>_g,ServerResultSchema:()=>yg,ServerTasksCapabilitySchema:()=>Gp,SetLevelRequestParamsSchema:()=>dh,SetLevelRequestSchema:()=>fh,SingleSelectEnumSchemaSchema:()=>Mh,StringSchemaSchema:()=>Dh,SubscribeRequestParamsSchema:()=>wm,SubscribeRequestSchema:()=>Tm,SubscriptionFilterSchema:()=>Om,SubscriptionsAcknowledgedNotificationParamsSchema:()=>jm,SubscriptionsAcknowledgedNotificationSchema:()=>Mm,SubscriptionsListenRequestParamsSchema:()=>km,SubscriptionsListenRequestSchema:()=>Am,SubscriptionsListenResultMetaSchema:()=>Nm,SubscriptionsListenResultSchema:()=>Pm,TaskAugmentedRequestParamsSchema:()=>Tp,TaskCreationParamsSchema:()=>eg,TaskMetadataSchema:()=>xp,TaskSchema:()=>ng,TaskStatusNotificationParamsSchema:()=>ig,TaskStatusNotificationSchema:()=>ag,TaskStatusSchema:()=>tg,TextContentSchema:()=>Um,TextResourceContentsSchema:()=>cm,TitledMultiSelectEnumSchemaSchema:()=>Ph,TitledSingleSelectEnumSchemaSchema:()=>Ah,ToolAnnotationsSchema:()=>$m,ToolChoiceSchema:()=>_h,ToolExecutionSchema:()=>eh,ToolListChangedNotificationSchema:()=>ch,ToolResultContentSchema:()=>vh,ToolSchema:()=>th,ToolUseContentSchema:()=>Km,UnsubscribeRequestParamsSchema:()=>Em,UnsubscribeRequestSchema:()=>Dm,UntitledMultiSelectEnumSchemaSchema:()=>Nh,UntitledSingleSelectEnumSchemaSchema:()=>kh}),pv=e=>Ap.safeParse(e).success,mv=e=>jp.safeParse(e).success,hv=e=>Mp.safeParse(e).success,gv=e=>Np.safeParse(e).success;Z.InvalidRequest,Z.UnsupportedProtocolVersion,Z.InvalidParams,Z.MethodNotFound,Z.InvalidParams,Z.MissingRequiredClientCapability,Z.ParseError,Z.InvalidRequest,Z.MethodNotFound,Z.UnsupportedProtocolVersion,Z.MissingRequiredClientCapability;function _v(e,t){return Tl(e,t)}function vv(e){return new Set(e.flatMap(e=>Object.keys(e.shape)))}function yv(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 bv=!1,xv=`draft-2020-12`;function Sv(e,t=`input`){let n=e[`~standard`],r;if(n.jsonSchema)r=n.jsonSchema[t]({target:xv});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().`);bv||(bv=!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=vl(e,{target:xv,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&&Cv(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 Cv(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`||Cv(e)))}return!1}function wv(e){return e.path?.length?`${e.path.map(e=>String(typeof e==`object`?e.key:e)).join(`.`)}: ${e.message}`:e.message}async function Tv(e,t){let n=await e[`~standard`].validate(t);return n.issues&&n.issues.length>0?{success:!1,error:n.issues.map(e=>wv(e)).join(`, `)}:{success:!0,data:n.value}}function Ev(e){let t=vl(e,{target:xv,io:`input`});return typeof t.pattern==`string`?t.pattern:void 0}var Dv=/\\\.\\d\{(\d+)\}/;function Ov(e){let t=Dv.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=>Vf({local:e,offset:t,precision:n}))))}function kv(e,t){let n;switch(e){case`email`:n=[Gl()];break;case`uri`:n=[eu()];break;case`date`:n=[Hf()];break;case`date-time`:n=Ov(t)}return new Set(n.map(e=>Ev(e)).filter(e=>e!==void 0))}function Av(e,t,n){return n!==`zod`||kv(e,t).has(t)}function jv(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function Mv(e){try{return Sv(e,`input`)}catch(e){let t=e instanceof Error?e.message:String(e);throw new S_(Z.InvalidParams,`Elicitation requestedSchema must describe an object with flat primitive properties: ${t}`)}}var Nv=new Set([`$comment`,`deprecated`,`description`,`examples`,`readOnly`,`title`,`writeOnly`]);function Pv(e){return Nv.has(e)||e.startsWith(`x-`)}var Fv=new Set([`$schema`,...Object.keys(Rh.shape.requestedSchema.shape)]),Iv={string:vv([Dh,kh,Ah,jh]),number:vv([Oh]),integer:vv([Oh]),boolean:vv([Eh]),array:vv([Nh,Ph])},Lv=new Set(Dh.shape.format.unwrap().options);function Rv(e,t,n,r){if(!jv(e))return e;let i=typeof e.type==`string`&&Object.hasOwn(Iv,e.type)?Iv[e.type]:void 0;if(i===void 0)return e;let a={};for(let[o,s]of Object.entries(e))i.has(o)||Pv(o)?a[o]=s:o===`pattern`&&e.type===`string`&&typeof e.format==`string`?Lv.has(e.format)?(typeof s!=`string`||!Av(e.format,s,n))&&r.push(`${t}.${o}`):a[o]=s:r.push(`${t}.${o}`);return a}function zv(e,t){let n={},r=[];for(let[i,a]of Object.entries(e))i===`properties`&&jv(a)?n[i]=Object.fromEntries(Object.entries(a).map(([e,n])=>[e,Rv(n,`properties.${e}`,t,r)])):Fv.has(i)?n[i]=a:Pv(i)||r.push(i);if(r.length>0)throw new S_(Z.InvalidParams,`Elicitation requestedSchema contains unsupported JSON Schema constraint(s) after Standard Schema conversion: ${r.join(`, `)}`);return n}function Bv(e,t){if(!jv(e.properties))return t;let n=Object.entries(e.properties).filter(([,e])=>!_v(Lh,e).success).map(([e])=>`properties.${e}`);return n.length>0?n.join(`, `):t}function Vv(e,t,n=``){return Array.isArray(e)&&Array.isArray(t)?e.flatMap((e,r)=>Vv(e,t[r],`${n}[${r}]`)):!jv(e)||!jv(t)?[]:Object.entries(e).flatMap(([e,r])=>{let i=n?`${n}.${e}`:e;return Object.prototype.hasOwnProperty.call(t,e)?Vv(r,t[e],i):Pv(e)?[]:[i]})}function Hv(e){if(!yv(e.requestedSchema))return{...e,mode:`form`,requestedSchema:e.requestedSchema};let t=e.requestedSchema[`~standard`].vendor,n=zv(Mv(e.requestedSchema),t),r=_v(Rh.shape.requestedSchema,n);if(!r.success)throw new S_(Z.InvalidParams,`Elicitation requestedSchema only supports flat primitive properties (string, number, integer, boolean, and string enums): ${Bv(n,r.error.message)}`);let i=Vv(n,r.data);if(i.length>0)throw new S_(Z.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 S_(Z.InvalidParams,`Elicitation requestedSchema lists required properties that are not defined in properties: ${a.join(`, `)}`);return{...e,mode:`form`,requestedSchema:r.data}}function Uv(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(Uv,{elicit(e){try{return{method:`elicitation/create`,params:Hv(e)}}catch(e){throw e instanceof S_?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 Wv=`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(`.`),Gv={IdJagTokenExchangeResponseSchema:Tg,OAuthClientInformationFullSchema:Ag,OAuthClientInformationSchema:kg,OAuthClientMetadataSchema:Og,OAuthClientRegistrationErrorSchema:jg,OAuthErrorResponseSchema:Eg,OAuthMetadataSchema:xg,OAuthProtectedResourceMetadataSchema:bg,OAuthTokenRevocationRequestSchema:Mg,OAuthTokensSchema:wg,OpenIdProviderDiscoveryMetadataSchema:Cg,OpenIdProviderMetadataSchema:Sg},Kv={},qv={};function Jv(e,t){let n=e.slice(0,-6);Kv[n]=t,qv[n]=e=>t.safeParse(e).success}for(let e of Wv)Jv(e,fv[e]);for(let[e,t]of Object.entries(Gv))Jv(e,t);Object.freeze(Kv),Object.freeze(qv);function Yv(e){switch(e){case`initialize`:case`notifications/initialized`:return ov(void 0);case`server/discover`:return ov(av);default:return}}var Xv=[dp,fp,mp,gp],Zv=[`inputResponses`,`requestState`];function Qv(e,t){let n=e.params;if(!ry(n))return{message:e,lifted:{}};let r=n._meta,i=ry(r)?Xv.filter(e=>e in r):[],a=t===`request`?Zv.filter(e=>e in n):[];if(i.length===0&&a.length===0)return{message:e,lifted:{}};let o={},s={...n};if(i.length>0&&ry(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 $v(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 ey(e){return()=>e}var ty=ey(void 0),ny=class{_transport;_requestMessageId=0;_requestHandlers=new Map;_customSchemaRequestMethods=new Set;_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??lp,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 X(Ig.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!==void 0&&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 X(Ig.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),hv(e)||gv(e)?this._onresponse(e):pv(e)?this._onrequest(e,t):mv(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 X(Ig.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}=Qv(e,`notification`),r=this._negotiatedWireCodec();if(t?.classification===void 0&&this._shouldDropInbound(e)===`drop`)return;if(t?.classification!==void 0){let e=sv(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(lv(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}=Qv(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=sv(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(Z.UnsupportedProtocolVersion,`Unsupported protocol version: ${r}`,{supported:this._supportedProtocolVersions,requested:r});return}}if(cv(n.method)&&!i.hasRequestMethod(n.method)&&!(uv(n.method)&&this._customSchemaRequestMethods.has(n.method))){o(Z.MethodNotFound,`Method not found`);return}let s=this._requestHandlers.get(n.method)??this.fallbackRequestHandler;if(s===void 0){o(Z.MethodNotFound,`Method not found`);return}let c=i.checkInboundEnvelope(r);if(c!==void 0){o(Z.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:ay(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?ty:ey(r.requestState),signal:d.signal,send:((e,t,n)=>{let r=this._resolveOutboundCodec(e.method);if(this._assertOutboundRequestInEra(r,e.method),yv(t))return u(e,t,n);let i=$v(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(Z.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:Z.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);n===void 0?this._onerror(Error(`Received a response for an unknown message ID: ${JSON.stringify(e)}`)):(this._responseHandlers.delete(t),this._cleanupTimeout(t),this._progressHandlers.delete(t),hv(e)?n(e):n(S_.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(yv(t))return uv(e.method)||this._assertOutboundRequestInEra(r,e.method),this._requestWithSchemaViaCodec(r,e,t,n);this._assertOutboundRequestInEra(r,e.method);let i=$v(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 ov(this._negotiatedProtocolVersion)}_wireCodec(){return this._negotiatedWireCodec()}_resolveOutboundCodec(e){if(this._negotiatedProtocolVersion===void 0){let t=Yv(e);if(t)return t}return this._negotiatedWireCodec()}_assertOutboundRequestInEra(e,t){if(cv(t)&&!e.hasRequestMethod(t))throw new X(Ig.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 X?e:new X(Ig.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,_=e=>{te||(this._progressHandlers.delete(h),m===void 0?t.method!==`initialize`&&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 X?e:new X(Ig.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(oy(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;Tv(n,o).then(e=>{e.success?d(e.data):f(new X(Ig.InvalidResult,`Invalid result for ${t.method}: ${e.error}`))},f)}),l=()=>_(r?.signal?.reason),r?.signal?.addEventListener(`abort`,l,{once:!0});let ne=r?.timeout??6e4;this._setupTimeout(h,ne,r?.maxTotalTimeout,()=>_(new X(Ig.RequestTimeout,`Request timed out`,{timeout:ne})),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 await this._notificationViaCodec(this._resolveOutboundCodec(e.method),e,t)}async _notificationViaCodec(e,t,n){if(!this._transport)throw new X(Ig.NotConnected,`Not connected`);if(lv(t.method)&&!e.hasNotificationMethod(t.method))throw new X(Ig.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===void 0){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))})}else await this._transport.send(r,n)}setRequestHandler(e,t,n){this.assertRequestHandlerCapability(e);let r;if(typeof t==`function`){if(!cv(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 S_(Z.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 Tv(t.params,{...r.params});if(!a.success)throw new S_(Z.InvalidParams,`Invalid params for ${e}: ${a.error}`);return n(a.data,i)};else throw TypeError(`setRequestHandler: handler is required`);typeof t==`function`?this._customSchemaRequestMethods.delete(e):this._customSchemaRequestMethods.add(e),this._requestHandlers.set(e,this._wrapHandler(e,r))}_wrapHandler(e,t){return t}_outboundServerInfo(){}removeRequestHandler(e){this._requestHandlers.delete(e),this._customSchemaRequestMethods.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(!lv(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 S_(Z.InternalError,`No wire schema for ${e} in the resolved era`):Error(i.message);return Promise.resolve(t(i.value))})}else{if(!n)throw TypeError(`setNotificationHandler: handler is required`);this._notificationHandlers.set(e,async r=>{let i=await Tv(t.params,{...r.params});if(!i.success)throw new S_(Z.InvalidParams,`Invalid params for notification ${e}: ${i.error}`);await n(i.data,r)})}}removeNotificationHandler(e){this._notificationHandlers.delete(e)}};function ry(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function iy(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function ay(e){let t={},n=[];if(!iy(e))return{accepted:t,droppedKeys:n};for(let[r,i]of Object.entries(e))!iy(i)||`method`in i||`result`in i?n.push(r):t[r]=i;return{accepted:t,droppedKeys:n}}function oy(e){return{resultType:`input_required`,inputRequests:e.inputRequests,...e.requestState!==void 0&&{requestState:e.requestState},...e._meta!==void 0&&{_meta:e._meta}}}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 sy=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i,cy=/^(?=.{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,ly=/^(?:[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,uy=/^(?:(?:[^\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,dy=/^(?:(?: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,fy=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,py=/^(?:\/(?:[^~/]|~0|~1)*)*$/,my=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,hy=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,gy=/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,_y=/^((([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 vy(e){return e.test.bind(e)}yy.bind(void 0,!1),vy(ly),vy(uy),vy(dy),vy(cy),vy(gy),vy(_y),vy(fy),vy(py),vy(my),vy(hy);function yy(e,t){let n=t.match(sy);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 by=class extends Error{static{Object.defineProperty(this,"mcpBrand",{value:`mcp.OAuthClientFlowError`})}static[Symbol.hasInstance](e){return Fg(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 Fg(this,e)}constructor(e){super(e),this.name=new.target.name,Pg(this,new.target)}};(class extends by{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 by{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 by{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 / *.localhost / 127.0.0.1 / ::1 are exempt).`),this.tokenEndpoint=e}},class extends by{static{Object.defineProperty(this,"mcpBrand",{value:`mcp.AuthorizationServerMismatchError`})}constructor(e,t){super(`Authorization server mismatch: credentials are bound to ${JSON.stringify(e)} but this call resolved ${JSON.stringify(t)}; refusing to present them to a different authorization server`),this.recordedIssuer=e,this.currentIssuer=t}},class extends by{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 Fg(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 Fg(this,e)}constructor(e){super(e??`Unauthorized`),this.name=`UnauthorizedError`,Pg(this,new.target)}},class extends Error{static{Object.defineProperty(this,"mcpBrand",{value:`mcp.SseError`})}static[Symbol.hasInstance](e){return Fg(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 Fg(this,e)}constructor(e,t,n){super(`SSE error: ${t}`),this.code=e,this.event=n,Pg(this,new.target)}};var xy=`2026-01-26`,Sy=R({}).passthrough(),Cy=R({arguments:V(M(),I()).optional()}).passthrough(),wy=R({reason:M().optional()}).passthrough(),Ty=R({theme:H([`light`,`dark`]).optional(),displayMode:H([`inline`,`fullscreen`,`pip`]).optional(),availableDisplayModes:L(H([`inline`,`fullscreen`,`pip`])).optional(),styles:R({variables:V(M(),B([M(),od()])).optional(),css:R({fonts:M().optional()}).passthrough().optional()}).passthrough().optional(),safeAreaInsets:R({top:P(),right:P(),bottom:P(),left:P()}).optional()}).passthrough(),Ey=R({protocolVersion:M(),hostInfo:R({name:M(),version:M()}).passthrough(),hostCapabilities:V(M(),I()),hostContext:Ty}).passthrough(),Dy=R({mode:H([`inline`,`fullscreen`,`pip`])}).passthrough(),Oy=R({}).passthrough(),ky=class{eventTarget;eventSource;onclose;onerror;onmessage;sessionId;setProtocolVersion;setSupportedProtocolVersions;started=!1;messageListener=e=>{if(e.source!==this.eventSource)return;let t=Pp.safeParse(e.data);t.success?this.onmessage?.(t.data):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?.())}},Ay=class extends ny{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:Sy,result:Oy},()=>({})),this.setNotificationHandler(`ui/notifications/tool-input`,{params:Cy},e=>this.ontoolinput?.(e)),this.setNotificationHandler(`ui/notifications/tool-result`,{params:ih},e=>this.ontoolresult?.(e)),this.setNotificationHandler(`ui/notifications/tool-cancelled`,{params:wy},e=>this.ontoolcancelled?.(e)),this.setNotificationHandler(`ui/notifications/host-context-changed`,{params:Ty},e=>{this.hostContext={...this.hostContext,...e},this.onhostcontextchanged?.(e)}),this.setRequestHandler(`ui/resource-teardown`,{params:Sy,result:Oy},(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},ih,t)}async requestDisplayMode(e,t){return this.request({method:`ui/request-display-mode`,params:e},Dy,t)}async connect(e=new ky,t){await super.connect(e);try{let e=await this.request({method:`ui/initialize`,params:{appCapabilities:this.capabilities,appInfo:this.appInfo,protocolVersion:xy}},Ey,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 jy(e){document.documentElement.dataset.theme=e,document.documentElement.style.colorScheme=e}function My(e,t=document.documentElement){for(let[n,r]of Object.entries(e))n.startsWith(`--`)&&r!==void 0&&t.style.setProperty(n,r)}function Ny(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)}function Py(e,t){e.theme&&jy(e.theme),e.styles?.variables&&My(e.styles.variables),e.styles?.css?.fonts&&Ny(e.styles.css.fonts),e.safeAreaInsets&&(t.style.paddingTop=`${e.safeAreaInsets.top}px`,t.style.paddingRight=`${e.safeAreaInsets.right}px`,t.style.paddingBottom=`${e.safeAreaInsets.bottom}px`,t.style.paddingLeft=`${e.safeAreaInsets.left}px`)}function Fy(e){return e.content?.map(e=>`text`in e?e.text:``).filter(Boolean).join(` `)||void 0}function Iy(e){return e>=100?String(Math.round(e)):(e>=10?e.toFixed(1):e.toFixed(2)).replace(/\.?0+$/,``)}function Ly(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)}var Ry=`8.2.0`,zy={$schema:`https://json-schema.org/draft/2020-12/schema`,$id:`https://qyl.dev/schema/qyl-api-schema.json`,$defs:JSON.parse('{"Annotations.Annotation":{"type":"object","required":["target","text"],"properties":{"labels":{"type":"array","items":{"$ref":"#/$defs/Annotations.AnnotationLabel"},"maxItems":10},"classification":{"$ref":"#/$defs/Annotations.AnnotationClassification"},"target":{"$ref":"#/$defs/Annotations.AnnotationTarget","description":"What the note is attached to. Fixed at creation."},"text":{"type":"string","minLength":1,"maxLength":2000,"description":"The note, plain text, at most 2000 characters."}},"unevaluatedProperties":{"not":{}},"allOf":[{"$ref":"#/$defs/Common.ResourceBase"}],"description":"A user note attached to a trace, span or session."},"Annotations.AnnotationClassification":{"type":"string","enum":["note","hypothesis","finding","rejected"],"description":"Classification of the human annotation."},"Annotations.AnnotationCreateRequest":{"type":"object","required":["target","text"],"properties":{"labels":{"type":"array","items":{"$ref":"#/$defs/Annotations.AnnotationLabel"},"maxItems":10},"classification":{"$ref":"#/$defs/Annotations.AnnotationClassification"},"target":{"$ref":"#/$defs/Annotations.AnnotationTarget","description":"What the note is attached to. Fixed at creation."},"text":{"type":"string","minLength":1,"maxLength":2000,"description":"The note, plain text, at most 2000 characters."}},"unevaluatedProperties":{"not":{}},"description":"Body of POST /api/v1/annotations: the `Lifecycle.Create` members of Annotation."},"Annotations.AnnotationLabel":{"type":"string","minLength":1,"maxLength":64,"description":"A short user-defined annotation label."},"Annotations.AnnotationTarget":{"oneOf":[{"$ref":"#/$defs/Annotations.TraceAnnotationTarget"},{"$ref":"#/$defs/Annotations.SpanAnnotationTarget"},{"$ref":"#/$defs/Annotations.SessionAnnotationTarget"},{"$ref":"#/$defs/Annotations.FailureAnnotationTarget"}],"description":"Exactly one telemetry object an annotation is attached to."},"Annotations.AnnotationUpdateRequest":{"type":"object","properties":{"labels":{"type":"array","items":{"$ref":"#/$defs/Annotations.AnnotationLabel"},"maxItems":10},"classification":{"$ref":"#/$defs/Annotations.AnnotationClassification"},"text":{"type":"string","minLength":1,"maxLength":2000,"description":"The new note, plain text, at most 2000 characters."}},"unevaluatedProperties":{"not":{}},"description":"Body of PATCH /api/v1/annotations/{annotation_id}: the `Lifecycle.Update` members of Annotation."},"Annotations.FailureAnnotationTarget":{"type":"object","required":["kind","failure_id"],"properties":{"kind":{"type":"string","enum":["failure"]},"failure_id":{"$ref":"#/$defs/Common.FailureId"}},"unevaluatedProperties":{"not":{}},"description":"FailureAnnotationTarget contract."},"Annotations.SessionAnnotationTarget":{"type":"object","required":["kind","session_id"],"properties":{"kind":{"type":"string","enum":["session"]},"session_id":{"$ref":"#/$defs/Common.SessionId"}},"unevaluatedProperties":{"not":{}},"description":"An annotation on one session."},"Annotations.SpanAnnotationTarget":{"type":"object","required":["kind","trace_id","span_id"],"properties":{"kind":{"type":"string","enum":["span"]},"trace_id":{"$ref":"#/$defs/Common.TraceId"},"span_id":{"$ref":"#/$defs/Common.SpanId"}},"unevaluatedProperties":{"not":{}},"description":"An annotation on one span of a trace."},"Annotations.TraceAnnotationTarget":{"type":"object","required":["kind","trace_id"],"properties":{"kind":{"type":"string","enum":["trace"]},"trace_id":{"$ref":"#/$defs/Common.TraceId"}},"unevaluatedProperties":{"not":{}},"description":"An annotation on one whole trace."},"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.","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","additionalProperties":{"$ref":"#/$defs/Common.AttributeValue"}}},"unevaluatedProperties":{"not":{}},"description":"Tagged recursive OTLP key-value-list, distinct from other object-shaped attribute variants."},"Common.AttributeObjectValue":{"type":"object","oneOf":[{"$ref":"#/$defs/Common.AttributeIntValue"},{"$ref":"#/$defs/Common.AttributeDoubleValue"},{"$ref":"#/$defs/Common.AttributeBytesValue"},{"$ref":"#/$defs/Common.AttributeKeyValueListValue"}],"discriminator":{"propertyName":"type","mapping":{"int":"#/components/schemas/Common.AttributeIntValue","double":"#/components/schemas/Common.AttributeDoubleValue","bytes":"#/components/schemas/Common.AttributeBytesValue","kvlist":"#/components/schemas/Common.AttributeKeyValueListValue"}},"description":"Object-shaped AttributeValue variants. The variant name is the wire `type` tag."},"Common.AttributeValue":{"anyOf":[{"type":"null"},{"type":"string"},{"type":"boolean"},{"type":"array","items":{"$ref":"#/$defs/Common.AttributeValue"}},{"$ref":"#/$defs/Common.AttributeObjectValue"}],"description":"Lossless JSON projection of an OpenTelemetry AnyValue attribute. Primitive variants are bare JSON values; object variants carry a `type` tag."},"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"},"Common.CollectorKeyRole":{"type":"string","enum":["ingest","read","write","delete"],"description":"Collector API key roles. Every key sent in `x-otlp-api-key` carries one or\\nmore roles: `ingest` accepts OTLP, `read` serves the query routes, `write`\\ncreates and updates user resources, and `delete` deletes them. Roles are\\nindependent, so a leaked ingest key can neither read, change nor delete\\nanything."},"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)"},"Common.Count":{"type":"integer","format":"int64","minimum":0,"description":"Generic non-negative counter"},"Common.Cursor":{"type":"string","description":"Opaque pagination cursor. Pass the `next_cursor` of one page to receive the\\nnext page of the same query. Its content is not part of the contract and\\nmust not be parsed or built by a client."},"Common.DurationMs":{"type":"number","format":"double","minimum":0,"description":"Duration in milliseconds"},"Common.DurationNs":{"type":"string","format":"uint64","description":"Duration in nanoseconds, encoded as a decimal string","pattern":"^(0|[1-9][0-9]*)$","maxLength":20},"Common.DurationS":{"type":"number","format":"double","minimum":0,"description":"Duration in seconds"},"Common.ETag":{"type":"string","minLength":1,"maxLength":128,"description":"Opaque entity tag of one resource version. It changes on every successful\\nupdate; send it back in `If-Match` to update or delete that version."},"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.BadGatewayError":{"type":"object","required":["type","code","title"],"properties":{"type":{"type":"string","enum":["https://qyl.at/problems/bad-gateway"]},"code":{"type":"string","enum":["bad_gateway"]},"title":{"type":"string","enum":["Bad Gateway"]},"dependency":{"type":"string","description":"Stable dependency category; never raw exception text."}},"unevaluatedProperties":{"not":{}},"allOf":[{"$ref":"#/$defs/Common.Errors.ProblemDetails"}],"description":"An upstream dependency failed while the server handled the request (502)."},"Common.Errors.ConflictError":{"type":"object","required":["type","code","title"],"properties":{"type":{"type":"string","enum":["https://qyl.at/problems/conflict"]},"code":{"type":"string","enum":["conflict"]},"title":{"type":"string","enum":["Conflict"]},"conflicting_resource":{"type":"string","description":"The identifier of the conflicting resource."}},"unevaluatedProperties":{"not":{}},"allOf":[{"$ref":"#/$defs/Common.Errors.ProblemDetails"}],"description":"The request conflicts with the current state of a resource (409)."},"Common.Errors.ForbiddenError":{"type":"object","required":["type","code","title"],"properties":{"type":{"type":"string","enum":["https://qyl.at/problems/forbidden"]},"code":{"type":"string","enum":["forbidden"]},"title":{"type":"string","enum":["Forbidden"]},"required_permission":{"type":"string","description":"The permission the credential lacks."}},"unevaluatedProperties":{"not":{}},"allOf":[{"$ref":"#/$defs/Common.Errors.ProblemDetails"}],"description":"The credential is valid but not allowed to do this (403)."},"Common.Errors.InternalServerError":{"type":"object","required":["type","code","title"],"properties":{"type":{"type":"string","enum":["https://qyl.at/problems/internal-error"]},"code":{"type":"string","enum":["internal_error"]},"title":{"type":"string","enum":["Internal Server Error"]}},"unevaluatedProperties":{"not":{}},"allOf":[{"$ref":"#/$defs/Common.Errors.ProblemDetails"}],"description":"The server failed while handling the request (500)."},"Common.Errors.NotFoundError":{"type":"object","required":["type","code","title"],"properties":{"type":{"type":"string","enum":["https://qyl.at/problems/not-found"]},"code":{"type":"string","enum":["not_found"]},"title":{"type":"string","enum":["Not Found"]},"resource_type":{"type":"string","description":"The kind 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":"The addressed resource does not exist (404)."},"Common.Errors.PreconditionFailedError":{"type":"object","required":["type","code","title"],"properties":{"type":{"type":"string","enum":["https://qyl.at/problems/precondition-failed"]},"code":{"type":"string","enum":["precondition_failed"]},"title":{"type":"string","enum":["Precondition Failed"]},"current_etag":{"type":"string","description":"Entity tag of the current version, when the caller may read it."}},"unevaluatedProperties":{"not":{}},"allOf":[{"$ref":"#/$defs/Common.Errors.ProblemDetails"}],"description":"The If-Match entity tag is no longer current (412)."},"Common.Errors.PreconditionRequiredError":{"type":"object","required":["type","code","title"],"properties":{"type":{"type":"string","enum":["https://qyl.at/problems/precondition-required"]},"code":{"type":"string","enum":["precondition_required"]},"title":{"type":"string","enum":["Precondition Required"]},"required_header":{"type":"string","enum":["If-Match"],"description":"The header the request must carry."}},"unevaluatedProperties":{"not":{}},"allOf":[{"$ref":"#/$defs/Common.Errors.ProblemDetails"}],"description":"The request must send If-Match (428)."},"Common.Errors.ProblemCode":{"type":"string","enum":["validation_failed","unauthorized","forbidden","not_found","conflict","precondition_failed","precondition_required","internal_error","bad_gateway","service_unavailable"],"description":"Stable machine-readable code of a problem type, the qyl `code` extension\\nmember. `type` names the same problem type as a URI."},"Common.Errors.ProblemDetails":{"type":"object","required":["type","title","status","code"],"properties":{"type":{"$ref":"#/$defs/Common.Errors.ProblemType","description":"URI of the problem type."},"title":{"type":"string","description":"Short summary of the problem type; the same for every occurrence."},"status":{"type":"integer","format":"int32","description":"HTTP status code of this response, repeated for the reader of the body."},"detail":{"type":"string","description":"Explanation specific to this occurrence."},"instance":{"type":"string","format":"uri","description":"URI reference identifying this occurrence."},"code":{"$ref":"#/$defs/Common.Errors.ProblemCode","description":"Stable code of the problem type."}},"description":"RFC 9457 problem details, served as application/problem+json: the standard members plus the qyl `code` extension."},"Common.Errors.ProblemType":{"type":"string","enum":["https://qyl.at/problems/validation-failed","https://qyl.at/problems/unauthorized","https://qyl.at/problems/forbidden","https://qyl.at/problems/not-found","https://qyl.at/problems/conflict","https://qyl.at/problems/precondition-failed","https://qyl.at/problems/precondition-required","https://qyl.at/problems/internal-error","https://qyl.at/problems/bad-gateway","https://qyl.at/problems/service-unavailable"],"description":"Problem type URI, the RFC 9457 `type` member: one per problem a qyl server\\nreports. `code` names the same problem type."},"Common.Errors.ServiceUnavailableError":{"type":"object","required":["type","code","title"],"properties":{"type":{"type":"string","enum":["https://qyl.at/problems/service-unavailable"]},"code":{"type":"string","enum":["service_unavailable"]},"title":{"type":"string","enum":["Service Unavailable"]},"reason":{"type":"string","enum":["maintenance","overloaded","dependency_failure"],"description":"Why the server is unavailable."}},"unevaluatedProperties":{"not":{}},"allOf":[{"$ref":"#/$defs/Common.Errors.ProblemDetails"}],"description":"The server cannot take the request at present (503)."},"Common.Errors.UnauthorizedError":{"type":"object","required":["type","code","title"],"properties":{"type":{"type":"string","enum":["https://qyl.at/problems/unauthorized"]},"code":{"type":"string","enum":["unauthorized"]},"title":{"type":"string","enum":["Unauthorized"]}},"unevaluatedProperties":{"not":{}},"allOf":[{"$ref":"#/$defs/Common.Errors.ProblemDetails"}],"description":"The request carries no valid credential (401)."},"Common.Errors.ValidationError":{"type":"object","required":["type","code","title","errors"],"properties":{"type":{"type":"string","enum":["https://qyl.at/problems/validation-failed"]},"code":{"type":"string","enum":["validation_failed"]},"title":{"type":"string","enum":["Validation Failed"]},"errors":{"type":"array","items":{"$ref":"#/$defs/Common.Errors.ValidationErrorDetail"},"description":"Each rule the request broke."}},"unevaluatedProperties":{"not":{}},"allOf":[{"$ref":"#/$defs/Common.Errors.ProblemDetails"}],"description":"The request failed validation (400)."},"Common.Errors.ValidationErrorDetail":{"type":"object","required":["field","message","code"],"properties":{"field":{"type":"string","description":"The field or parameter that failed validation."},"message":{"type":"string","description":"What is wrong with it."},"code":{"type":"string","description":"The validation rule that failed."},"rejected_value":{"type":"string","description":"The rejected value, when it is safe to repeat."}},"unevaluatedProperties":{"not":{}},"description":"One rule a request broke."},"Common.FailureId":{"type":"string","minLength":1,"maxLength":512,"description":"Opaque project-scoped failure fingerprint issued and verified by the collector."},"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.MatcherOp":{"type":"string","enum":["eq","neq","in","prefix","contains","exists","gt","gte","lt","lte"],"description":"Supported predicate operators; equality and prefix retain their existing meaning."},"Common.MatcherScope":{"type":"string","enum":["span","resource","log"],"description":"Attribute namespace in which the predicate is evaluated."},"Common.MatcherValue":{"anyOf":[{"type":"string"},{"type":"number","format":"double"},{"type":"boolean"}],"description":"A comparison operand preserves booleans and numbers rather than coercing them to strings."},"Common.Pagination.PageLimit":{"type":"integer","format":"int32","minimum":1,"maximum":1000,"description":"Page size of a list operation: at least 1 and at most 1000 items."},"Common.Percentage":{"type":"number","format":"double","minimum":0,"maximum":100,"description":"Percentage value (0.0 to 100.0)"},"Common.Port":{"type":"integer","format":"int32","minimum":1,"maximum":65535,"description":"Network port number (1-65535)"},"Common.Ratio":{"type":"number","format":"double","minimum":0,"maximum":1,"description":"Ratio value (0.0 to 1.0)"},"Common.ResourceBase":{"type":"object","required":["id","created_at","updated_at","etag"],"properties":{"id":{"$ref":"#/$defs/Common.ResourceId","description":"Server-assigned identifier.","readOnly":true},"created_at":{"type":"string","format":"date-time","description":"When the resource was created.","readOnly":true},"updated_at":{"type":"string","format":"date-time","description":"When the resource was last changed.","readOnly":true},"etag":{"$ref":"#/$defs/Common.ETag","description":"Entity tag of this version; also served as the `ETag` response header.","readOnly":true}},"description":"Base of every user-created collector resource."},"Common.ResourceId":{"type":"string","minLength":1,"maxLength":128,"description":"Opaque, server-assigned identifier of a user-created collector resource."},"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,"pattern":"^(?!\\\\.+$)[A-Za-z0-9._~-]{1,128}$","description":"Unique session identifier: URL-safe characters, at least one, at most 128, not only dots. The same rule the SDK enforces on the baggage header."},"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"]},"Common.TelemetryMatcher":{"type":"object","required":["key","op"],"properties":{"key":{"type":"string","minLength":1,"maxLength":256},"op":{"$ref":"#/$defs/Common.MatcherOp"},"value":{"$ref":"#/$defs/Common.MatcherValue"},"values":{"type":"array","items":{"$ref":"#/$defs/Common.MatcherValue"},"minItems":1,"maxItems":256},"scope":{"$ref":"#/$defs/Common.MatcherScope"}},"unevaluatedProperties":{"not":{}},"description":"TelemetryMatcher contract."},"Common.Temperature":{"type":"number","format":"double","minimum":0,"maximum":2,"description":"Temperature setting for LLM requests (0.0-2.0)"},"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)"},"Common.ToolCoverage":{"type":"object","required":["examined","matched","returned","truncated","scan_complete","as_of"],"properties":{"examined":{"anyOf":[{"$ref":"#/$defs/Common.Count"},{"type":"null"}]},"matched":{"anyOf":[{"$ref":"#/$defs/Common.Count"},{"type":"null"}]},"returned":{"anyOf":[{"$ref":"#/$defs/Common.Count"},{"type":"null"}]},"truncated":{"type":"boolean"},"scan_complete":{"type":"boolean"},"as_of":{"type":"string","format":"date-time"}},"unevaluatedProperties":{"not":{}},"description":"Scan coverage; unknown counts are null, never an invented zero."},"Common.ToolReadContext":{"type":"object","required":["window","coverage"],"properties":{"window":{"$ref":"#/$defs/Common.ToolWindow"},"coverage":{"$ref":"#/$defs/Common.ToolCoverage"},"page_totals":{"type":"object","additionalProperties":{"type":"integer","format":"int64"},"description":"Item totals by paged collection path. Omitted totals are unknown, not zero."}},"unevaluatedProperties":{"not":{}},"description":"ToolReadContext contract."},"Common.ToolWindow":{"type":"object","required":["start_time","end_time"],"properties":{"start_time":{"type":"string","format":"date-time"},"end_time":{"type":"string","format":"date-time"}},"unevaluatedProperties":{"not":{}},"description":"Absolute half-open window applied by the collector."},"Common.TraceId":{"type":"string","minLength":32,"maxLength":32,"pattern":"^[a-f0-9]{32}$","description":"Unique trace identifier (32 lowercase hex characters)","examples":["0af7651916cd43dd8448eb211c80319c"]},"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","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)"},"Common.VerifyId":{"type":"string","minLength":1,"maxLength":8192,"description":"Signed self-contained project-scoped verification token issued by the collector."},"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"},"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","additionalProperties":{"$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.AgentFindings":{"type":"object","required":["repeated_calls","failed_tool_calls","slowest_steps","token_share"],"properties":{"repeated_calls":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.RepeatedCall"}},"failed_tool_calls":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.AgentStep"}},"slowest_steps":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.AgentStep"}},"token_share":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.AgentTokenShare"}}},"unevaluatedProperties":{"not":{}},"description":"AgentFindings contract."},"Mcp.Tools.AgentRun":{"type":"object","required":["models","started","duration_ms","tokens","errors"],"properties":{"agent_name":{"type":"string"},"models":{"type":"array","items":{"type":"string"}},"started":{"type":"string","format":"date-time"},"duration_ms":{"$ref":"#/$defs/Common.DurationMs"},"tokens":{"$ref":"#/$defs/Mcp.Tools.AgentTokens"},"errors":{"type":"integer","format":"int64"},"session_id":{"$ref":"#/$defs/Common.SessionId"},"trace_id":{"$ref":"#/$defs/Common.TraceId"}},"unevaluatedProperties":{"not":{}},"description":"AgentRun contract."},"Mcp.Tools.AgentStep":{"type":"object","required":["index","kind","name","duration_ms","tokens","status","trace_id","span_id"],"properties":{"index":{"type":"integer","format":"int32"},"kind":{"type":"string","enum":["llm_call","tool_call","agent","retrieval"]},"name":{"type":"string"},"mcp_method":{"type":"string"},"mcp_server":{"type":"string"},"duration_ms":{"$ref":"#/$defs/Common.DurationMs"},"tokens":{"$ref":"#/$defs/Mcp.Tools.AgentTokens"},"status":{"type":"string"},"error":{"type":"string"},"trace_id":{"$ref":"#/$defs/Common.TraceId"},"span_id":{"$ref":"#/$defs/Common.SpanId"}},"unevaluatedProperties":{"not":{}},"description":"AgentStep contract."},"Mcp.Tools.AgentTokenShare":{"type":"object","required":["name","tokens","share"],"properties":{"name":{"type":"string"},"tokens":{"type":"integer","format":"int64"},"share":{"type":"number","format":"double"}},"unevaluatedProperties":{"not":{}},"description":"AgentTokenShare contract."},"Mcp.Tools.AgentTokens":{"type":"object","required":["input","output","cache_read","cache_write","reasoning"],"properties":{"input":{"anyOf":[{"type":"integer","format":"int64"},{"type":"null"}]},"output":{"anyOf":[{"type":"integer","format":"int64"},{"type":"null"}]},"cache_read":{"anyOf":[{"type":"integer","format":"int64"},{"type":"null"}]},"cache_write":{"anyOf":[{"type":"integer","format":"int64"},{"type":"null"}]},"reasoning":{"anyOf":[{"type":"integer","format":"int64"},{"type":"null"}]}},"unevaluatedProperties":{"not":{}},"description":"AgentTokens contract."},"Mcp.Tools.AggregateBucket":{"type":"object","required":["start_time","measures"],"properties":{"start_time":{"type":"string","format":"date-time"},"measures":{"type":"object","additionalProperties":{"anyOf":[{"type":"number","format":"double"},{"type":"null"}]}}},"unevaluatedProperties":{"not":{}},"description":"AggregateBucket contract."},"Mcp.Tools.AggregateGroup":{"type":"object","required":["key","measures"],"properties":{"key":{"type":"object","additionalProperties":{"$ref":"#/$defs/Common.MatcherValue"}},"measures":{"type":"object","additionalProperties":{"anyOf":[{"type":"number","format":"double"},{"type":"null"}]}},"buckets":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.AggregateBucket"}}},"unevaluatedProperties":{"not":{}},"description":"AggregateGroup contract."},"Mcp.Tools.AggregateOther":{"type":"object","required":["groups","count"],"properties":{"groups":{"type":"integer","format":"int64"},"count":{"type":"integer","format":"int64"}},"unevaluatedProperties":{"not":{}},"description":"AggregateOther contract."},"Mcp.Tools.AggregateTelemetryInput":{"type":"object","required":["signal","measures"],"properties":{"lookback_minutes":{"type":"integer","format":"int32","minimum":1,"maximum":43200,"description":"Minutes before `end_time` (or now) when `start_time` is omitted. Default 60; list_releases defaults to 10080 (7 days). Maximum 43200 (30 days)."},"start_time":{"type":"string","format":"date-time","description":"Start of the window (inclusive), RFC 3339."},"end_time":{"type":"string","format":"date-time","description":"End of the window (exclusive), RFC 3339."},"matchers":{"type":"array","items":{"$ref":"#/$defs/Common.TelemetryMatcher"},"maxItems":32,"description":"Attribute predicates that every matched span, resource or log must satisfy; up to 32. Omit for no filtering. discover_attributes lists the keys and values that are recorded."},"limit":{"type":"integer","format":"int32","minimum":1,"maximum":200,"description":"Items per page. Omit for the tool\'s default: 20 groups for aggregate_telemetry, 100 for list_failures, discover_attributes, get_mcp_stats and the span and log collections of context tools. `has_more` and `next_cursor` continue the same query."},"cursor":{"$ref":"#/$defs/Common.Cursor"},"signal":{"type":"string","enum":["spans","logs"],"description":"Which records to aggregate: `spans` (duration measures apply) or `logs`."},"group_by":{"type":"array","items":{"type":"string"},"maxItems":4,"description":"Attribute keys that define the groups, up to 4; omit for one overall group. Each group\'s `key` echoes the values."},"measures":{"type":"array","items":{"type":"string"},"description":"Measures to compute per group; at least one. Accepted values: `count`, `error_count`, `error_rate` (share from 0 to 1), `duration_avg`, `duration_p50`, `duration_p90`, `duration_p95`, `duration_p99`, `duration_max` (milliseconds, spans only) and `sum:<attribute key>` for a numeric attribute. The result\'s `units` names the unit of each measure. Example: [\\"count\\", \\"error_rate\\", \\"duration_p95\\"]."},"step_ms":{"type":"integer","format":"int64","description":"Bucket width in milliseconds for a per-group time series in `buckets`; omit for group totals only. Equal to the window length, it yields one bucket per group."},"order_by":{"type":"string","description":"One of the requested measures, optionally followed by ` asc` or ` desc`. Default: the first measure, descending. Examples: `error_rate`, `duration_p95 desc`, `count asc`."}},"unevaluatedProperties":{"not":{}},"description":"AggregateTelemetryInput contract."},"Mcp.Tools.AggregateTelemetryOutput":{"type":"object","required":["window","coverage","has_more","groups","other","units"],"properties":{"window":{"$ref":"#/$defs/Common.ToolWindow"},"coverage":{"$ref":"#/$defs/Common.ToolCoverage"},"page_totals":{"type":"object","additionalProperties":{"type":"integer","format":"int64"},"description":"Item totals by paged collection path. Omitted totals are unknown, not zero."},"has_more":{"type":"boolean","description":"Whether more items exist beyond this page. False only when the result is complete; `next_cursor` is present exactly when this is true."},"next_cursor":{"$ref":"#/$defs/Common.Cursor","description":"Pass as `cursor` to the same tool with the same filters for the next page. Absent on the last page."},"groups":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.AggregateGroup"}},"other":{"$ref":"#/$defs/Mcp.Tools.AggregateOther"},"units":{"type":"object","additionalProperties":{"type":"string"}},"error":{"$ref":"#/$defs/Mcp.Tools.ToolError"}},"unevaluatedProperties":{"not":{}},"description":"AggregateTelemetryOutput contract."},"Mcp.Tools.AlignedSpans":{"type":"object","required":["a_span","b_span","differences"],"properties":{"a_span":{"$ref":"#/$defs/Mcp.Tools.EvidenceSpan"},"b_span":{"$ref":"#/$defs/Mcp.Tools.EvidenceSpan"},"differences":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.TraceDivergence"}}},"unevaluatedProperties":{"not":{}},"description":"AlignedSpans contract."},"Mcp.Tools.AnalysisBaseline":{"anyOf":[{"type":"string","enum":["previous_window"]},{"$ref":"#/$defs/Common.ToolWindow"},{"$ref":"#/$defs/Mcp.Tools.BaselineOffset"}],"description":"Comparison window for change detection. Omit for `previous_window`: the window of the same length immediately before the selected one. A `window` object sets explicit `start_time` and `end_time`; an `offset_minutes` object shifts the selected window back by that many minutes."},"Mcp.Tools.AnalysisInput":{"type":"object","properties":{"lookback_minutes":{"type":"integer","format":"int32","minimum":1,"maximum":43200,"description":"Minutes before `end_time` (or now) when `start_time` is omitted. Default 60; list_releases defaults to 10080 (7 days). Maximum 43200 (30 days)."},"start_time":{"type":"string","format":"date-time","description":"Start of the window (inclusive), RFC 3339."},"end_time":{"type":"string","format":"date-time","description":"End of the window (exclusive), RFC 3339."},"matchers":{"type":"array","items":{"$ref":"#/$defs/Common.TelemetryMatcher"},"maxItems":32,"description":"Attribute predicates that every matched span, resource or log must satisfy; up to 32. Omit for no filtering. discover_attributes lists the keys and values that are recorded."},"limit":{"type":"integer","format":"int32","minimum":1,"maximum":200,"description":"Items per page. Omit for the tool\'s default: 20 groups for aggregate_telemetry, 100 for list_failures, discover_attributes, get_mcp_stats and the span and log collections of context tools. `has_more` and `next_cursor` continue the same query."},"cursor":{"$ref":"#/$defs/Common.Cursor"}},"unevaluatedProperties":{"not":{}},"description":"AnalysisInput contract."},"Mcp.Tools.AnnotationOutput":{"type":"object","properties":{"annotation":{"$ref":"#/$defs/Annotations.Annotation"},"error":{"$ref":"#/$defs/Mcp.Tools.ToolError","description":"Set when the call failed."}},"unevaluatedProperties":{"not":{}},"description":"Structured output for create_annotation and update_annotation."},"Mcp.Tools.AttributeAssociation":{"type":"object","required":["key","value","share_a","share_b","count_a","count_b","lift"],"properties":{"key":{"type":"string"},"value":{"$ref":"#/$defs/Common.MatcherValue"},"share_a":{"type":"number","format":"double"},"share_b":{"type":"number","format":"double"},"count_a":{"type":"integer","format":"int64"},"count_b":{"type":"integer","format":"int64"},"lift":{"anyOf":[{"type":"number","format":"double"},{"type":"null"}]}},"unevaluatedProperties":{"not":{}},"description":"AttributeAssociation contract."},"Mcp.Tools.AttributeSemconv":{"type":"object","required":["brief","stability","requirement_level"],"properties":{"brief":{"type":"string"},"stability":{"type":"string"},"requirement_level":{"type":"string"}},"unevaluatedProperties":{"not":{}},"description":"AttributeSemconv contract."},"Mcp.Tools.AttributeValueCount":{"type":"object","required":["value","count","share"],"properties":{"value":{"$ref":"#/$defs/Common.MatcherValue"},"count":{"type":"integer","format":"int64"},"share":{"type":"number","format":"double"}},"unevaluatedProperties":{"not":{}},"description":"AttributeValueCount contract."},"Mcp.Tools.BaselineOffset":{"type":"object","required":["offset_minutes"],"properties":{"offset_minutes":{"type":"integer","format":"int32"}},"unevaluatedProperties":{"not":{}},"description":"BaselineOffset contract."},"Mcp.Tools.CheckTelemetryHealthInput":{"type":"object","properties":{"lookback_minutes":{"type":"integer","format":"int32","minimum":1,"maximum":43200,"description":"Minutes before `end_time` (or now) when `start_time` is omitted. Default 60; list_releases defaults to 10080 (7 days). Maximum 43200 (30 days)."},"start_time":{"type":"string","format":"date-time","description":"Start of the window (inclusive), RFC 3339."},"end_time":{"type":"string","format":"date-time","description":"End of the window (exclusive), RFC 3339."},"matchers":{"type":"array","items":{"$ref":"#/$defs/Common.TelemetryMatcher"},"maxItems":32,"description":"Attribute predicates that every matched span, resource or log must satisfy; up to 32. Omit for no filtering. discover_attributes lists the keys and values that are recorded."},"limit":{"type":"integer","format":"int32","minimum":1,"maximum":200,"description":"Items per page. Omit for the tool\'s default: 20 groups for aggregate_telemetry, 100 for list_failures, discover_attributes, get_mcp_stats and the span and log collections of context tools. `has_more` and `next_cursor` continue the same query."},"cursor":{"$ref":"#/$defs/Common.Cursor"},"service_name":{"type":"string"},"environment":{"type":"string"}},"unevaluatedProperties":{"not":{}},"description":"CheckTelemetryHealthInput contract."},"Mcp.Tools.CheckTelemetryHealthOutput":{"type":"object","required":["window","coverage","has_more","silent_services","orphan_spans","semconv_gaps","unknown_service_share","schema_urls","retention"],"properties":{"window":{"$ref":"#/$defs/Common.ToolWindow"},"coverage":{"$ref":"#/$defs/Common.ToolCoverage"},"page_totals":{"type":"object","additionalProperties":{"type":"integer","format":"int64"},"description":"Item totals by paged collection path. Omitted totals are unknown, not zero."},"has_more":{"type":"boolean","description":"Whether more items exist beyond this page. False only when the result is complete; `next_cursor` is present exactly when this is true."},"next_cursor":{"$ref":"#/$defs/Common.Cursor","description":"Pass as `cursor` to the same tool with the same filters for the next page. Absent on the last page."},"silent_services":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.SilentService"}},"orphan_spans":{"$ref":"#/$defs/Mcp.Tools.OrphanSpans"},"semconv_gaps":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.SemconvGap"}},"unknown_service_share":{"type":"number","format":"double"},"schema_urls":{"type":"array","items":{"type":"string"}},"retention":{"$ref":"#/$defs/Mcp.Tools.TelemetryRetention"},"ingestion_lag_ms":{"type":"number","format":"double"},"error":{"$ref":"#/$defs/Mcp.Tools.ToolError"}},"unevaluatedProperties":{"not":{}},"description":"CheckTelemetryHealthOutput contract."},"Mcp.Tools.CiAttempt":{"type":"object","required":["run_id","attempt"],"properties":{"run_id":{"$ref":"#/$defs/Common.SessionId"},"attempt":{"type":"integer","format":"int32"},"provider_run_id":{"type":"string"},"provider_run_url":{"$ref":"#/$defs/Common.UrlString"}},"unevaluatedProperties":{"not":{}},"description":"CiAttempt contract."},"Mcp.Tools.CiComparison":{"type":"object","required":["new_failures","fixed","duration_regressions"],"properties":{"baseline_run_id":{"$ref":"#/$defs/Common.SessionId"},"new_failures":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.CiPhaseChange"}},"fixed":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.CiPhaseChange"}},"duration_regressions":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.CiPhaseChange"}}},"unevaluatedProperties":{"not":{}},"description":"CiComparison contract."},"Mcp.Tools.CiErrorExcerpt":{"type":"object","required":["id","body"],"properties":{"id":{"type":"string"},"body":{"type":"string"},"trace_id":{"$ref":"#/$defs/Common.TraceId"},"span_id":{"$ref":"#/$defs/Common.SpanId"}},"unevaluatedProperties":{"not":{}},"description":"CiErrorExcerpt contract."},"Mcp.Tools.CiLogInput":{"type":"object","properties":{"cursor":{"$ref":"#/$defs/Common.Cursor"},"branch":{"type":"string"},"commit":{"type":"string"},"leg":{"type":"string"},"phase":{"type":"string"},"phase_cursor":{"$ref":"#/$defs/Common.Cursor"},"outcome":{"type":"string","enum":["failed","passed","all"]},"compare_to":{"type":"string"},"matchers":{"type":"array","items":{"$ref":"#/$defs/Common.TelemetryMatcher"},"maxItems":32},"lookback_minutes":{"type":"integer","format":"int32","minimum":1,"maximum":43200,"description":"Minutes before `end_time` (or now) when `start_time` is omitted. Default 60; list_releases defaults to 10080 (7 days). Maximum 43200 (30 days)."},"start_time":{"type":"string","format":"date-time","description":"Start of the window (inclusive), RFC 3339."},"end_time":{"type":"string","format":"date-time","description":"End of the window (exclusive), RFC 3339."},"run_id":{"$ref":"#/$defs/Common.SessionId","description":"Session id of one CI run for a per-leg phase breakdown; omit to list recent runs."},"service_prefix":{"type":"string","minLength":1,"maxLength":256,"description":"Case-sensitive service-name prefix identifying CI telemetry in both run lists and phase breakdowns.","default":"qyl-ci"},"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":["has_more","window","coverage","mode"],"properties":{"next_phase_cursor":{"$ref":"#/$defs/Common.Cursor"},"has_more":{"type":"boolean","description":"Whether more items exist beyond this page. False only when the result is complete; `next_cursor` is present exactly when this is true."},"next_cursor":{"$ref":"#/$defs/Common.Cursor","description":"Pass as `cursor` to the same tool with the same filters for the next page. Absent on the last page."},"comparison":{"$ref":"#/$defs/Mcp.Tools.CiComparison"},"window":{"$ref":"#/$defs/Common.ToolWindow"},"coverage":{"$ref":"#/$defs/Common.ToolCoverage"},"page_totals":{"type":"object","additionalProperties":{"type":"integer","format":"int64"},"description":"Item totals by paged collection path. Omitted totals are unknown, not zero."},"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"},"error":{"$ref":"#/$defs/Mcp.Tools.ToolError","description":"Set when the call failed."}},"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":{"span_id":{"$ref":"#/$defs/Common.SpanId"},"trace_ids":{"type":"array","items":{"$ref":"#/$defs/Common.TraceId"}},"error_log_count":{"type":"integer","format":"int64"},"error_logs":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.CiErrorExcerpt"}},"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.CiPhaseChange":{"type":"object","required":["leg","phase"],"properties":{"leg":{"type":"string"},"phase":{"type":"string"},"current_duration_ms":{"$ref":"#/$defs/Common.DurationMs"},"baseline_duration_ms":{"$ref":"#/$defs/Common.DurationMs"},"ratio":{"type":"number","format":"double"},"trace_ids":{"type":"array","items":{"$ref":"#/$defs/Common.TraceId"}}},"unevaluatedProperties":{"not":{}},"description":"CiPhaseChange contract."},"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":{"session_id":{"$ref":"#/$defs/Common.SessionId"},"provider_run_id":{"type":"string"},"provider_run_url":{"$ref":"#/$defs/Common.UrlString"},"attempt":{"type":"integer","format":"int32"},"attempts":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.CiAttempt"}},"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.CompareGroup":{"type":"object","properties":{"matchers":{"type":"array","items":{"$ref":"#/$defs/Common.TelemetryMatcher"},"maxItems":32},"window":{"$ref":"#/$defs/Common.ToolWindow"},"failure_id":{"$ref":"#/$defs/Common.FailureId"}},"unevaluatedProperties":{"not":{}},"description":"CompareGroup contract."},"Mcp.Tools.CompareGroupsInput":{"type":"object","required":["signal","group_a","group_b"],"properties":{"lookback_minutes":{"type":"integer","format":"int32","minimum":1,"maximum":43200,"description":"Minutes before `end_time` (or now) when `start_time` is omitted. Default 60; list_releases defaults to 10080 (7 days). Maximum 43200 (30 days)."},"start_time":{"type":"string","format":"date-time","description":"Start of the window (inclusive), RFC 3339."},"end_time":{"type":"string","format":"date-time","description":"End of the window (exclusive), RFC 3339."},"matchers":{"type":"array","items":{"$ref":"#/$defs/Common.TelemetryMatcher"},"maxItems":32,"description":"Attribute predicates that every matched span, resource or log must satisfy; up to 32. Omit for no filtering. discover_attributes lists the keys and values that are recorded."},"limit":{"type":"integer","format":"int32","minimum":1,"maximum":200,"description":"Items per page. Omit for the tool\'s default: 20 groups for aggregate_telemetry, 100 for list_failures, discover_attributes, get_mcp_stats and the span and log collections of context tools. `has_more` and `next_cursor` continue the same query."},"cursor":{"$ref":"#/$defs/Common.Cursor"},"signal":{"type":"string","enum":["spans","logs"]},"group_a":{"$ref":"#/$defs/Mcp.Tools.CompareGroup"},"group_b":{"anyOf":[{"$ref":"#/$defs/Mcp.Tools.CompareGroup"},{"type":"string","enum":["rest","before"]}]},"attribute_scope":{"type":"string","enum":["span","resource","both"]}},"unevaluatedProperties":{"not":{}},"description":"CompareGroupsInput contract."},"Mcp.Tools.CompareGroupsOutput":{"type":"object","required":["window","coverage","has_more","discriminators","structural","durations","composition","size_a","size_b","excluded_keys"],"properties":{"window":{"$ref":"#/$defs/Common.ToolWindow"},"coverage":{"$ref":"#/$defs/Common.ToolCoverage"},"page_totals":{"type":"object","additionalProperties":{"type":"integer","format":"int64"},"description":"Item totals by paged collection path. Omitted totals are unknown, not zero."},"has_more":{"type":"boolean","description":"Whether more items exist beyond this page. False only when the result is complete; `next_cursor` is present exactly when this is true."},"next_cursor":{"$ref":"#/$defs/Common.Cursor","description":"Pass as `cursor` to the same tool with the same filters for the next page. Absent on the last page."},"discriminators":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.AttributeAssociation"}},"structural":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.GroupStructure"}},"durations":{"$ref":"#/$defs/Mcp.Tools.GroupDurations"},"composition":{"$ref":"#/$defs/Mcp.Tools.GroupComposition"},"size_a":{"type":"integer","format":"int64"},"size_b":{"type":"integer","format":"int64"},"excluded_keys":{"type":"array","items":{"type":"string"}},"error":{"$ref":"#/$defs/Mcp.Tools.ToolError"}},"unevaluatedProperties":{"not":{}},"description":"CompareGroupsOutput contract."},"Mcp.Tools.CompareTracesInput":{"type":"object","required":["a","b"],"properties":{"lookback_minutes":{"type":"integer","format":"int32","minimum":1,"maximum":43200,"description":"Minutes before `end_time` (or now) when `start_time` is omitted. Default 60; list_releases defaults to 10080 (7 days). Maximum 43200 (30 days)."},"start_time":{"type":"string","format":"date-time","description":"Start of the window (inclusive), RFC 3339."},"end_time":{"type":"string","format":"date-time","description":"End of the window (exclusive), RFC 3339."},"matchers":{"type":"array","items":{"$ref":"#/$defs/Common.TelemetryMatcher"},"maxItems":32,"description":"Attribute predicates that every matched span, resource or log must satisfy; up to 32. Omit for no filtering. discover_attributes lists the keys and values that are recorded."},"limit":{"type":"integer","format":"int32","minimum":1,"maximum":200,"description":"Items per page. Omit for the tool\'s default: 20 groups for aggregate_telemetry, 100 for list_failures, discover_attributes, get_mcp_stats and the span and log collections of context tools. `has_more` and `next_cursor` continue the same query."},"cursor":{"$ref":"#/$defs/Common.Cursor"},"a":{"$ref":"#/$defs/Mcp.Tools.ExecutionReference"},"b":{"$ref":"#/$defs/Mcp.Tools.ExecutionReference"}},"unevaluatedProperties":{"not":{}},"description":"CompareTracesInput contract."},"Mcp.Tools.CompareTracesOutput":{"type":"object","required":["window","coverage","has_more","first_divergence","aligned","after_divergence","unmatched","comparable"],"properties":{"window":{"$ref":"#/$defs/Common.ToolWindow"},"coverage":{"$ref":"#/$defs/Common.ToolCoverage"},"page_totals":{"type":"object","additionalProperties":{"type":"integer","format":"int64"},"description":"Item totals by paged collection path. Omitted totals are unknown, not zero."},"has_more":{"type":"boolean","description":"Whether more items exist beyond this page. False only when the result is complete; `next_cursor` is present exactly when this is true."},"next_cursor":{"$ref":"#/$defs/Common.Cursor","description":"Pass as `cursor` to the same tool with the same filters for the next page. Absent on the last page."},"first_divergence":{"anyOf":[{"$ref":"#/$defs/Mcp.Tools.TraceDivergence"},{"type":"null"}]},"aligned":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.AlignedSpans"}},"after_divergence":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.TraceDivergence"}},"unmatched":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.EvidenceSpan"}},"comparable":{"type":"boolean"},"reason":{"type":"string"},"error":{"$ref":"#/$defs/Mcp.Tools.ToolError"}},"unevaluatedProperties":{"not":{}},"description":"CompareTracesOutput contract."},"Mcp.Tools.CreateAnnotationInput":{"type":"object","required":["target","text"],"properties":{"idempotency_key":{"type":"string","minLength":1,"maxLength":255},"labels":{"type":"array","items":{"$ref":"#/$defs/Annotations.AnnotationLabel"},"maxItems":10},"classification":{"$ref":"#/$defs/Annotations.AnnotationClassification"},"target":{"$ref":"#/$defs/Annotations.AnnotationTarget","description":"What the note is attached to. Fixed at creation."},"text":{"type":"string","minLength":1,"maxLength":2000,"description":"The note, plain text, at most 2000 characters."}},"unevaluatedProperties":{"not":{}},"description":"Input for create_annotation."},"Mcp.Tools.CreateSavedQueryInput":{"type":"object","required":["name","filter"],"properties":{"idempotency_key":{"type":"string","minLength":1,"maxLength":255},"name":{"type":"string","minLength":1,"maxLength":200,"description":"Unique within the project; a duplicate is refused with 409."},"description":{"type":"string","maxLength":2000},"filter":{"$ref":"#/$defs/SavedQueries.SavedQueryFilter"}},"unevaluatedProperties":{"not":{}},"description":"Input for create_saved_query."},"Mcp.Tools.DeletableKind":{"type":"string","enum":["annotation","saved_query"],"description":"The user-created resource kinds the delete tool accepts."},"Mcp.Tools.DeleteInput":{"type":"object","required":["kind","id","etag"],"properties":{"kind":{"$ref":"#/$defs/Mcp.Tools.DeletableKind"},"id":{"$ref":"#/$defs/Common.ResourceId"},"etag":{"$ref":"#/$defs/Common.ETag","description":"The resource\'s current `etag`, sent as If-Match."}},"unevaluatedProperties":{"not":{}},"description":"Input for the delete tool. Telemetry is never deletable."},"Mcp.Tools.DeleteOutput":{"type":"object","required":["deleted"],"properties":{"deleted":{"type":"boolean"},"error":{"$ref":"#/$defs/Mcp.Tools.ToolError","description":"Set when the call failed."}},"unevaluatedProperties":{"not":{}},"description":"Structured output for the delete tool."},"Mcp.Tools.DiscoverAttributesInput":{"type":"object","required":["signal"],"properties":{"lookback_minutes":{"type":"integer","format":"int32","minimum":1,"maximum":43200,"description":"Minutes before `end_time` (or now) when `start_time` is omitted. Default 60; list_releases defaults to 10080 (7 days). Maximum 43200 (30 days)."},"start_time":{"type":"string","format":"date-time","description":"Start of the window (inclusive), RFC 3339."},"end_time":{"type":"string","format":"date-time","description":"End of the window (exclusive), RFC 3339."},"matchers":{"type":"array","items":{"$ref":"#/$defs/Common.TelemetryMatcher"},"maxItems":32,"description":"Attribute predicates that every matched span, resource or log must satisfy; up to 32. Omit for no filtering. discover_attributes lists the keys and values that are recorded."},"limit":{"type":"integer","format":"int32","minimum":1,"maximum":200,"description":"Items per page. Omit for the tool\'s default: 20 groups for aggregate_telemetry, 100 for list_failures, discover_attributes, get_mcp_stats and the span and log collections of context tools. `has_more` and `next_cursor` continue the same query."},"cursor":{"$ref":"#/$defs/Common.Cursor"},"signal":{"type":"string","enum":["spans","logs","resources"]},"key_prefix":{"type":"string"},"key":{"type":"string"}},"unevaluatedProperties":{"not":{}},"description":"DiscoverAttributesInput contract."},"Mcp.Tools.DiscoverAttributesOutput":{"type":"object","required":["window","coverage","has_more","attributes"],"properties":{"window":{"$ref":"#/$defs/Common.ToolWindow"},"coverage":{"$ref":"#/$defs/Common.ToolCoverage"},"page_totals":{"type":"object","additionalProperties":{"type":"integer","format":"int64"},"description":"Item totals by paged collection path. Omitted totals are unknown, not zero."},"has_more":{"type":"boolean","description":"Whether more items exist beyond this page. False only when the result is complete; `next_cursor` is present exactly when this is true."},"next_cursor":{"$ref":"#/$defs/Common.Cursor","description":"Pass as `cursor` to the same tool with the same filters for the next page. Absent on the last page."},"attributes":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.DiscoveredAttribute"}},"error":{"$ref":"#/$defs/Mcp.Tools.ToolError"}},"unevaluatedProperties":{"not":{}},"description":"DiscoverAttributesOutput contract."},"Mcp.Tools.DiscoveredAttribute":{"type":"object","required":["key","scope","type","coverage_share","cardinality","cardinality_exact","top_values","semconv"],"properties":{"key":{"type":"string"},"scope":{"$ref":"#/$defs/Common.MatcherScope"},"type":{"type":"string"},"coverage_share":{"type":"number","format":"double"},"cardinality":{"type":"integer","format":"int64"},"cardinality_exact":{"type":"boolean"},"top_values":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.AttributeValueCount"},"maxItems":10},"semconv":{"anyOf":[{"$ref":"#/$defs/Mcp.Tools.AttributeSemconv"},{"type":"null"}]}},"unevaluatedProperties":{"not":{}},"description":"DiscoveredAttribute contract."},"Mcp.Tools.DisplayMcpDashboardInput":{"type":"object","properties":{"server_name":{"type":"string"},"tool_name":{"type":"string"},"transport":{"type":"string"},"compare_to":{"$ref":"#/$defs/Mcp.Tools.McpStatsComparison"},"lookback_minutes":{"type":"integer","format":"int32","minimum":1,"maximum":43200,"description":"Minutes before `end_time` (or now) when `start_time` is omitted. Default 60; list_releases defaults to 10080 (7 days). Maximum 43200 (30 days)."},"start_time":{"type":"string","format":"date-time","description":"Start of the window (inclusive), RFC 3339."},"end_time":{"type":"string","format":"date-time","description":"End of the window (exclusive), RFC 3339."},"hours":{"type":"integer","format":"int32","minimum":1,"maximum":168,"description":"Window length in whole hours.","default":24}},"unevaluatedProperties":{"not":{}},"description":"Input for display_mcp_dashboard."},"Mcp.Tools.DisplayMcpDashboardOutput":{"type":"object","required":["window","coverage","stats"],"properties":{"window":{"$ref":"#/$defs/Common.ToolWindow"},"coverage":{"$ref":"#/$defs/Common.ToolCoverage"},"page_totals":{"type":"object","additionalProperties":{"type":"integer","format":"int64"},"description":"Item totals by paged collection path. Omitted totals are unknown, not zero."},"stats":{"$ref":"#/$defs/Mcp.Tools.McpDashboardStats"},"error":{"$ref":"#/$defs/Mcp.Tools.ToolError","description":"Set when the call failed."}},"unevaluatedProperties":{"not":{}},"description":"Structured output for display_mcp_dashboard."},"Mcp.Tools.DisplayTracesInput":{"type":"object","properties":{"failure_class":{"$ref":"#/$defs/Mcp.Tools.McpFailureClass"},"server_name":{"type":"string"},"tool_name":{"type":"string"},"transport":{"type":"string"},"failure_id":{"$ref":"#/$defs/Common.FailureId"},"compare_to":{"$ref":"#/$defs/Common.TraceId"},"selected_span_id":{"$ref":"#/$defs/Common.SpanId"},"cursor":{"$ref":"#/$defs/Common.Cursor"},"matchers":{"type":"array","items":{"$ref":"#/$defs/Common.TelemetryMatcher"},"maxItems":32},"lookback_minutes":{"type":"integer","format":"int32","minimum":1,"maximum":43200,"description":"Minutes before `end_time` (or now) when `start_time` is omitted. Default 60; list_releases defaults to 10080 (7 days). Maximum 43200 (30 days)."},"start_time":{"type":"string","format":"date-time","description":"Start of the window (inclusive), RFC 3339."},"end_time":{"type":"string","format":"date-time","description":"End of the window (exclusive), RFC 3339."},"trace_id":{"$ref":"#/$defs/Common.TraceId","description":"Open this trace selected; omit to list recent traces."},"session_id":{"$ref":"#/$defs/Common.SessionId","description":"List only the traces of this session."},"limit":{"type":"integer","format":"int32","minimum":1,"maximum":100,"description":"Maximum traces to list.","default":20}},"unevaluatedProperties":{"not":{}},"description":"Input for display_traces."},"Mcp.Tools.DisplayTracesOutput":{"type":"object","required":["window","coverage","traces","mode"],"properties":{"selected_span_id":{"$ref":"#/$defs/Common.SpanId"},"comparison":{"$ref":"#/$defs/Mcp.Tools.CompareTracesOutput"},"window":{"$ref":"#/$defs/Common.ToolWindow"},"coverage":{"$ref":"#/$defs/Common.ToolCoverage"},"page_totals":{"type":"object","additionalProperties":{"type":"integer","format":"int64"},"description":"Item totals by paged collection path. Omitted totals are unknown, not zero."},"traces":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.ToolTrace"}},"selected_trace_id":{"$ref":"#/$defs/Common.TraceId"},"mode":{"$ref":"#/$defs/Mcp.Tools.McpDataMode"},"error":{"$ref":"#/$defs/Mcp.Tools.ToolError","description":"Set when the call failed."}},"unevaluatedProperties":{"not":{}},"description":"Structured output for display_traces."},"Mcp.Tools.DurationPercentiles":{"type":"object","required":["p50_ms","p95_ms","p99_ms"],"properties":{"p50_ms":{"anyOf":[{"type":"number","format":"double"},{"type":"null"}]},"p95_ms":{"anyOf":[{"type":"number","format":"double"},{"type":"null"}]},"p99_ms":{"anyOf":[{"type":"number","format":"double"},{"type":"null"}]}},"unevaluatedProperties":{"not":{}},"description":"DurationPercentiles contract."},"Mcp.Tools.EvidenceSpan":{"type":"object","required":["trace_id","span_id","service","name","status","key_attributes","duration_ms","role"],"properties":{"start_time":{"type":"string","format":"date-time"},"end_time":{"type":"string","format":"date-time"},"trace_id":{"$ref":"#/$defs/Common.TraceId"},"span_id":{"$ref":"#/$defs/Common.SpanId"},"parent_span_id":{"$ref":"#/$defs/Common.SpanId"},"session_id":{"$ref":"#/$defs/Common.SessionId"},"service":{"type":"string"},"name":{"type":"string"},"status":{"type":"string"},"status_message":{"type":"string"},"exception":{"$ref":"#/$defs/Mcp.Tools.RecordedException"},"key_attributes":{"type":"array","items":{"$ref":"#/$defs/Common.Attribute"}},"duration_ms":{"$ref":"#/$defs/Common.DurationMs"},"role":{"type":"string","enum":["matched","context"]}},"unevaluatedProperties":{"not":{}},"description":"EvidenceSpan contract."},"Mcp.Tools.ExecutionReference":{"type":"object","properties":{"trace_id":{"$ref":"#/$defs/Common.TraceId"},"session_id":{"$ref":"#/$defs/Common.SessionId"}},"unevaluatedProperties":{"not":{}},"description":"ExecutionReference contract."},"Mcp.Tools.FailureChange":{"type":"string","enum":["new","worsening","ongoing","recovering","regressed"],"description":"Failure trend in the selected comparison window."},"Mcp.Tools.FailureComparison":{"type":"object","required":["first_divergence"],"properties":{"nearest_success_trace_id":{"$ref":"#/$defs/Common.TraceId"},"first_divergence":{"anyOf":[{"$ref":"#/$defs/Mcp.Tools.TraceDivergence"},{"type":"null"}]}},"unevaluatedProperties":{"not":{}},"description":"FailureComparison contract."},"Mcp.Tools.FailureContext":{"type":"object","required":["similar_failures","changes","annotations"],"properties":{"similar_failures":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.SimilarFailure"}},"changes":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.TriageRegression"}},"annotations":{"type":"array","items":{"$ref":"#/$defs/Annotations.Annotation"}}},"unevaluatedProperties":{"not":{}},"description":"FailureContext contract."},"Mcp.Tools.FailureDetail":{"type":"object","required":["failure_id","etag","signature","normalized_message","operation","service","first_seen","last_seen","count","affected_traces","affected_sessions","releases_seen","status","updated_at","annotation_count","example_trace_ids"],"properties":{"failure_id":{"$ref":"#/$defs/Common.FailureId"},"etag":{"$ref":"#/$defs/Common.ETag"},"signature":{"type":"string"},"exception_type":{"type":"string"},"normalized_message":{"type":"string"},"operation":{"type":"string"},"service":{"type":"string"},"first_seen":{"type":"string","format":"date-time"},"last_seen":{"type":"string","format":"date-time"},"count":{"type":"integer","format":"int64"},"affected_traces":{"type":"integer","format":"int64"},"affected_sessions":{"type":"integer","format":"int64"},"releases_seen":{"type":"array","items":{"type":"string"}},"status":{"$ref":"#/$defs/Mcp.Tools.FailureStatus"},"updated_at":{"type":"string","format":"date-time"},"ignore_until":{"type":"string","format":"date-time"},"assignee":{"type":"string"},"annotation_count":{"type":"integer","format":"int64"},"example_trace_ids":{"type":"array","items":{"$ref":"#/$defs/Common.TraceId"},"maxItems":3},"counts_per_release":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.FailureReleaseCount"}},"discriminators":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.AttributeAssociation"}},"recent_occurrences":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.FailureOccurrence"}},"raw_messages":{"type":"array","items":{"type":"string"}}},"unevaluatedProperties":{"not":{}},"description":"FailureDetail contract."},"Mcp.Tools.FailureObserved":{"type":"object","required":["root_cause_span","error_spans","propagation","logs","retries","fanout"],"properties":{"root_cause_span":{"anyOf":[{"$ref":"#/$defs/Mcp.Tools.EvidenceSpan"},{"type":"null"}]},"error_spans":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.EvidenceSpan"}},"propagation":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.FailurePropagation"}},"logs":{"type":"array","items":{"$ref":"#/$defs/OTel.Logs.LogRecord"}},"retries":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.RetryEvidence"}},"fanout":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.FanoutEvidence"}}},"unevaluatedProperties":{"not":{}},"description":"FailureObserved contract."},"Mcp.Tools.FailureOccurrence":{"type":"object","required":["trace_id","span_id","timestamp"],"properties":{"trace_id":{"$ref":"#/$defs/Common.TraceId"},"span_id":{"$ref":"#/$defs/Common.SpanId"},"session_id":{"$ref":"#/$defs/Common.SessionId"},"timestamp":{"type":"string","format":"date-time"},"message":{"type":"string"},"release":{"type":"string"}},"unevaluatedProperties":{"not":{}},"description":"FailureOccurrence contract."},"Mcp.Tools.FailurePropagation":{"type":"object","required":["from","to"],"properties":{"from":{"$ref":"#/$defs/Mcp.Tools.EvidenceSpan"},"to":{"$ref":"#/$defs/Mcp.Tools.EvidenceSpan"}},"unevaluatedProperties":{"not":{}},"description":"FailurePropagation contract."},"Mcp.Tools.FailureRelease":{"type":"object","required":["service","version","first_seen"],"properties":{"service":{"type":"string"},"version":{"type":"string"},"first_seen":{"type":"string","format":"date-time"},"revision":{"type":"string"}},"unevaluatedProperties":{"not":{}},"description":"FailureRelease contract."},"Mcp.Tools.FailureReleaseCount":{"type":"object","required":["release","count"],"properties":{"release":{"type":"string"},"count":{"type":"integer","format":"int64"}},"unevaluatedProperties":{"not":{}},"description":"FailureReleaseCount contract."},"Mcp.Tools.FailureStatus":{"type":"string","enum":["open","resolved","ignored"],"description":"Persisted failure triage status."},"Mcp.Tools.FailureStatusFilter":{"anyOf":[{"$ref":"#/$defs/Mcp.Tools.FailureStatus"},{"type":"string","enum":["all"]}],"description":"Filter for failure status."},"Mcp.Tools.FailureSummary":{"type":"object","required":["failure_id","etag","signature","normalized_message","operation","service","first_seen","last_seen","count","affected_traces","affected_sessions","releases_seen","status","updated_at","annotation_count","example_trace_ids"],"properties":{"failure_id":{"$ref":"#/$defs/Common.FailureId"},"etag":{"$ref":"#/$defs/Common.ETag"},"signature":{"type":"string"},"exception_type":{"type":"string"},"normalized_message":{"type":"string"},"operation":{"type":"string"},"service":{"type":"string"},"first_seen":{"type":"string","format":"date-time"},"last_seen":{"type":"string","format":"date-time"},"count":{"type":"integer","format":"int64"},"affected_traces":{"type":"integer","format":"int64"},"affected_sessions":{"type":"integer","format":"int64"},"releases_seen":{"type":"array","items":{"type":"string"}},"status":{"$ref":"#/$defs/Mcp.Tools.FailureStatus"},"updated_at":{"type":"string","format":"date-time"},"ignore_until":{"type":"string","format":"date-time"},"assignee":{"type":"string"},"annotation_count":{"type":"integer","format":"int64"},"example_trace_ids":{"type":"array","items":{"$ref":"#/$defs/Common.TraceId"},"maxItems":3}},"unevaluatedProperties":{"not":{}},"description":"FailureSummary contract."},"Mcp.Tools.FanoutEvidence":{"type":"object","required":["name","count","trace_id"],"properties":{"name":{"type":"string"},"count":{"type":"integer","format":"int32"},"parent_span_id":{"$ref":"#/$defs/Common.SpanId"},"trace_id":{"$ref":"#/$defs/Common.TraceId"}},"unevaluatedProperties":{"not":{}},"description":"FanoutEvidence contract."},"Mcp.Tools.FetchTelemetryCompareInput":{"type":"object","required":["a","b","view"],"properties":{"lookback_minutes":{"type":"integer","format":"int32","minimum":1,"maximum":43200,"description":"Minutes before `end_time` (or now) when `start_time` is omitted. Default 60; list_releases defaults to 10080 (7 days). Maximum 43200 (30 days)."},"start_time":{"type":"string","format":"date-time","description":"Start of the window (inclusive), RFC 3339."},"end_time":{"type":"string","format":"date-time","description":"End of the window (exclusive), RFC 3339."},"matchers":{"type":"array","items":{"$ref":"#/$defs/Common.TelemetryMatcher"},"maxItems":32,"description":"Attribute predicates that every matched span, resource or log must satisfy; up to 32. Omit for no filtering. discover_attributes lists the keys and values that are recorded."},"limit":{"type":"integer","format":"int32","minimum":1,"maximum":200,"description":"Items per page. Omit for the tool\'s default: 20 groups for aggregate_telemetry, 100 for list_failures, discover_attributes, get_mcp_stats and the span and log collections of context tools. `has_more` and `next_cursor` continue the same query."},"cursor":{"$ref":"#/$defs/Common.Cursor"},"a":{"$ref":"#/$defs/Mcp.Tools.ExecutionReference"},"b":{"$ref":"#/$defs/Mcp.Tools.ExecutionReference"},"view":{"type":"string","enum":["compare"]},"since_cursor":{"$ref":"#/$defs/Common.Cursor"},"fields":{"type":"array","items":{"type":"string"}}},"unevaluatedProperties":{"not":{}},"description":"FetchTelemetryCompareInput contract."},"Mcp.Tools.FetchTelemetryInput":{"type":"object","oneOf":[{"$ref":"#/$defs/Mcp.Tools.FetchTelemetryTracesInput"},{"$ref":"#/$defs/Mcp.Tools.FetchTelemetryTraceInput"},{"$ref":"#/$defs/Mcp.Tools.FetchTelemetryLogsInput"},{"$ref":"#/$defs/Mcp.Tools.FetchTelemetryMcpStatsInput"},{"$ref":"#/$defs/Mcp.Tools.FetchTelemetryCompareInput"}],"discriminator":{"propertyName":"view","mapping":{"traces":"#/components/schemas/Mcp.Tools.FetchTelemetryTracesInput","trace":"#/components/schemas/Mcp.Tools.FetchTelemetryTraceInput","logs":"#/components/schemas/Mcp.Tools.FetchTelemetryLogsInput","mcp_stats":"#/components/schemas/Mcp.Tools.FetchTelemetryMcpStatsInput","compare":"#/components/schemas/Mcp.Tools.FetchTelemetryCompareInput"}},"description":"Input for the app-only fetch_telemetry tool: exactly one view and the members that view takes."},"Mcp.Tools.FetchTelemetryLogsInput":{"type":"object","required":["view"],"properties":{"cursor":{"$ref":"#/$defs/Common.Cursor"},"lookback_minutes":{"type":"integer","format":"int32","minimum":1,"maximum":43200,"description":"Minutes before `end_time` (or now) when `start_time` is omitted. Default 60; list_releases defaults to 10080 (7 days). Maximum 43200 (30 days)."},"start_time":{"type":"string","format":"date-time","description":"Start of the window (inclusive), RFC 3339."},"end_time":{"type":"string","format":"date-time","description":"End of the window (exclusive), RFC 3339."},"since_cursor":{"$ref":"#/$defs/Common.Cursor"},"fields":{"type":"array","items":{"type":"string"}},"matchers":{"type":"array","items":{"$ref":"#/$defs/Common.TelemetryMatcher"},"maxItems":32},"view":{"type":"string","enum":["logs"]},"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}},"unevaluatedProperties":{"not":{}},"description":"fetch_telemetry input for log records (view `logs`)."},"Mcp.Tools.FetchTelemetryMcpStatsInput":{"type":"object","required":["view"],"properties":{"cursor":{"$ref":"#/$defs/Common.Cursor"},"server_name":{"type":"string"},"tool_name":{"type":"string"},"transport":{"type":"string"},"compare_to":{"$ref":"#/$defs/Mcp.Tools.McpStatsComparison"},"lookback_minutes":{"type":"integer","format":"int32","minimum":1,"maximum":43200,"description":"Minutes before `end_time` (or now) when `start_time` is omitted. Default 60; list_releases defaults to 10080 (7 days). Maximum 43200 (30 days)."},"start_time":{"type":"string","format":"date-time","description":"Start of the window (inclusive), RFC 3339."},"end_time":{"type":"string","format":"date-time","description":"End of the window (exclusive), RFC 3339."},"since_cursor":{"$ref":"#/$defs/Common.Cursor"},"fields":{"type":"array","items":{"type":"string"}},"matchers":{"type":"array","items":{"$ref":"#/$defs/Common.TelemetryMatcher"},"maxItems":32},"view":{"type":"string","enum":["mcp_stats"]},"hours":{"type":"integer","format":"int32","minimum":1,"maximum":168,"description":"Window length in whole hours."}},"unevaluatedProperties":{"not":{}},"description":"fetch_telemetry input for MCP traffic statistics (view `mcp_stats`)."},"Mcp.Tools.FetchTelemetryOutput":{"type":"object","required":["has_more","window","coverage","mode"],"properties":{"has_more":{"type":"boolean"},"context_logs":{"type":"array","items":{"$ref":"#/$defs/OTel.Logs.LogRecord"}},"total_matched":{"type":"integer","format":"int64"},"patterns":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.LogPattern"}},"span_roles":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.SpanEvidenceRole"}},"omitted":{"$ref":"#/$defs/Mcp.Tools.TraceOmitted"},"links":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.TraceLinkAvailability"}},"annotations":{"type":"array","items":{"$ref":"#/$defs/Annotations.Annotation"}},"settled":{"type":"boolean"},"comparison":{"$ref":"#/$defs/Mcp.Tools.CompareTracesOutput"},"since_cursor":{"$ref":"#/$defs/Common.Cursor"},"next_cursor":{"$ref":"#/$defs/Common.Cursor"},"window":{"$ref":"#/$defs/Common.ToolWindow"},"coverage":{"$ref":"#/$defs/Common.ToolCoverage"},"page_totals":{"type":"object","additionalProperties":{"type":"integer","format":"int64"},"description":"Item totals by paged collection path. Omitted totals are unknown, not zero."},"traces":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.ToolTrace"}},"trace":{"$ref":"#/$defs/Mcp.Tools.ToolTrace"},"logs":{"type":"array","items":{"$ref":"#/$defs/OTel.Logs.LogRecord"}},"stats":{"$ref":"#/$defs/Mcp.Tools.McpDashboardStats"},"mode":{"$ref":"#/$defs/Mcp.Tools.McpDataMode"},"error":{"$ref":"#/$defs/Mcp.Tools.ToolError","description":"Set when the call failed."}},"unevaluatedProperties":{"not":{}},"description":"Structured output for the app-only fetch_telemetry tool."},"Mcp.Tools.FetchTelemetryTraceInput":{"type":"object","required":["view","trace_id"],"properties":{"cursor":{"$ref":"#/$defs/Common.Cursor"},"max_spans":{"type":"integer","format":"int32","minimum":1,"maximum":1000},"selection":{"type":"string","enum":["all","errors","errors_with_ancestors","critical_path"]},"attributes":{"type":"array","items":{"type":"string"}},"include_logs":{"type":"integer","format":"int32"},"lookback_minutes":{"type":"integer","format":"int32","minimum":1,"maximum":43200,"description":"Minutes before `end_time` (or now) when `start_time` is omitted. Default 60; list_releases defaults to 10080 (7 days). Maximum 43200 (30 days)."},"start_time":{"type":"string","format":"date-time","description":"Start of the window (inclusive), RFC 3339."},"end_time":{"type":"string","format":"date-time","description":"End of the window (exclusive), RFC 3339."},"since_cursor":{"$ref":"#/$defs/Common.Cursor"},"fields":{"type":"array","items":{"type":"string"}},"matchers":{"type":"array","items":{"$ref":"#/$defs/Common.TelemetryMatcher"},"maxItems":32},"view":{"type":"string","enum":["trace"]},"trace_id":{"$ref":"#/$defs/Common.TraceId"}},"unevaluatedProperties":{"not":{}},"description":"fetch_telemetry input for one trace (view `trace`)."},"Mcp.Tools.FetchTelemetryTracesInput":{"type":"object","required":["view"],"properties":{"failure_class":{"$ref":"#/$defs/Mcp.Tools.McpFailureClass"},"server_name":{"type":"string"},"tool_name":{"type":"string"},"transport":{"type":"string"},"session_id":{"$ref":"#/$defs/Common.SessionId"},"failure_id":{"$ref":"#/$defs/Common.FailureId"},"compare_to":{"$ref":"#/$defs/Common.TraceId"},"selected_span_id":{"$ref":"#/$defs/Common.SpanId"},"cursor":{"$ref":"#/$defs/Common.Cursor"},"lookback_minutes":{"type":"integer","format":"int32","minimum":1,"maximum":43200,"description":"Minutes before `end_time` (or now) when `start_time` is omitted. Default 60; list_releases defaults to 10080 (7 days). Maximum 43200 (30 days)."},"start_time":{"type":"string","format":"date-time","description":"Start of the window (inclusive), RFC 3339."},"end_time":{"type":"string","format":"date-time","description":"End of the window (exclusive), RFC 3339."},"since_cursor":{"$ref":"#/$defs/Common.Cursor"},"fields":{"type":"array","items":{"type":"string"}},"matchers":{"type":"array","items":{"$ref":"#/$defs/Common.TelemetryMatcher"},"maxItems":32},"view":{"type":"string","enum":["traces"]},"trace_id":{"$ref":"#/$defs/Common.TraceId","description":"Return this one trace as the list, selected."},"limit":{"type":"integer","format":"int32","minimum":1,"maximum":200}},"unevaluatedProperties":{"not":{}},"description":"fetch_telemetry input for the trace list (view `traces`)."},"Mcp.Tools.FetchTelemetryView":{"type":"string","enum":["traces","trace","logs","mcp_stats","compare"],"description":"Data projection requested by the app-only fetch_telemetry tool."},"Mcp.Tools.GetAgentRunInput":{"type":"object","properties":{"lookback_minutes":{"type":"integer","format":"int32","minimum":1,"maximum":43200,"description":"Minutes before `end_time` (or now) when `start_time` is omitted. Default 60; list_releases defaults to 10080 (7 days). Maximum 43200 (30 days)."},"start_time":{"type":"string","format":"date-time","description":"Start of the window (inclusive), RFC 3339."},"end_time":{"type":"string","format":"date-time","description":"End of the window (exclusive), RFC 3339."},"matchers":{"type":"array","items":{"$ref":"#/$defs/Common.TelemetryMatcher"},"maxItems":32,"description":"Attribute predicates that every matched span, resource or log must satisfy; up to 32. Omit for no filtering. discover_attributes lists the keys and values that are recorded."},"limit":{"type":"integer","format":"int32","minimum":1,"maximum":200,"description":"Items per page. Omit for the tool\'s default: 20 groups for aggregate_telemetry, 100 for list_failures, discover_attributes, get_mcp_stats and the span and log collections of context tools. `has_more` and `next_cursor` continue the same query."},"cursor":{"$ref":"#/$defs/Common.Cursor"},"session_id":{"$ref":"#/$defs/Common.SessionId"},"trace_id":{"$ref":"#/$defs/Common.TraceId"},"max_steps":{"type":"integer","format":"int32","minimum":1,"maximum":1000}},"unevaluatedProperties":{"not":{}},"description":"GetAgentRunInput contract."},"Mcp.Tools.GetAgentRunOutput":{"type":"object","required":["window","coverage","has_more","run","steps","findings","unknowns"],"properties":{"window":{"$ref":"#/$defs/Common.ToolWindow"},"coverage":{"$ref":"#/$defs/Common.ToolCoverage"},"page_totals":{"type":"object","additionalProperties":{"type":"integer","format":"int64"},"description":"Item totals by paged collection path. Omitted totals are unknown, not zero."},"has_more":{"type":"boolean","description":"Whether more items exist beyond this page. False only when the result is complete; `next_cursor` is present exactly when this is true."},"next_cursor":{"$ref":"#/$defs/Common.Cursor","description":"Pass as `cursor` to the same tool with the same filters for the next page. Absent on the last page."},"run":{"$ref":"#/$defs/Mcp.Tools.AgentRun"},"steps":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.AgentStep"}},"findings":{"$ref":"#/$defs/Mcp.Tools.AgentFindings"},"unknowns":{"type":"array","items":{"type":"string"}},"error":{"$ref":"#/$defs/Mcp.Tools.ToolError"}},"unevaluatedProperties":{"not":{}},"description":"GetAgentRunOutput contract."},"Mcp.Tools.GetFailureContextInput":{"type":"object","properties":{"lookback_minutes":{"type":"integer","format":"int32","minimum":1,"maximum":43200,"description":"Minutes before `end_time` (or now) when `start_time` is omitted. Default 60; list_releases defaults to 10080 (7 days). Maximum 43200 (30 days)."},"start_time":{"type":"string","format":"date-time","description":"Start of the window (inclusive), RFC 3339."},"end_time":{"type":"string","format":"date-time","description":"End of the window (exclusive), RFC 3339."},"matchers":{"type":"array","items":{"$ref":"#/$defs/Common.TelemetryMatcher"},"maxItems":32,"description":"Attribute predicates that every matched span, resource or log must satisfy; up to 32. Omit for no filtering. discover_attributes lists the keys and values that are recorded."},"limit":{"type":"integer","format":"int32","minimum":1,"maximum":200,"description":"Items per page. Omit for the tool\'s default: 20 groups for aggregate_telemetry, 100 for list_failures, discover_attributes, get_mcp_stats and the span and log collections of context tools. `has_more` and `next_cursor` continue the same query."},"cursor":{"$ref":"#/$defs/Common.Cursor"},"trace_id":{"$ref":"#/$defs/Common.TraceId"},"session_id":{"$ref":"#/$defs/Common.SessionId"},"failure_id":{"$ref":"#/$defs/Common.FailureId"},"ci_run_id":{"$ref":"#/$defs/Common.SessionId"},"max_spans":{"type":"integer","format":"int32","minimum":1,"maximum":1000,"description":"Maximum error spans in `observed.error_spans`. Default 100 (or `limit` when lower), maximum 1000; `next_cursor` continues."},"max_logs":{"type":"integer","format":"int32","minimum":1,"maximum":200,"description":"Maximum correlated log records in `observed.logs`. Default 100 (or `limit` when lower), maximum 200; `next_cursor` continues."}},"unevaluatedProperties":{"not":{}},"description":"GetFailureContextInput contract."},"Mcp.Tools.GetFailureContextOutput":{"type":"object","required":["window","coverage","has_more","observed","comparison","context","settled","unknowns"],"properties":{"window":{"$ref":"#/$defs/Common.ToolWindow"},"coverage":{"$ref":"#/$defs/Common.ToolCoverage"},"page_totals":{"type":"object","additionalProperties":{"type":"integer","format":"int64"},"description":"Item totals by paged collection path. Omitted totals are unknown, not zero."},"has_more":{"type":"boolean","description":"Whether more items exist beyond this page. False only when the result is complete; `next_cursor` is present exactly when this is true."},"next_cursor":{"$ref":"#/$defs/Common.Cursor","description":"Pass as `cursor` to the same tool with the same filters for the next page. Absent on the last page."},"observed":{"$ref":"#/$defs/Mcp.Tools.FailureObserved"},"comparison":{"$ref":"#/$defs/Mcp.Tools.FailureComparison"},"context":{"$ref":"#/$defs/Mcp.Tools.FailureContext"},"settled":{"type":"boolean"},"unknowns":{"type":"array","items":{"type":"string"}},"error":{"$ref":"#/$defs/Mcp.Tools.ToolError"}},"unevaluatedProperties":{"not":{}},"description":"GetFailureContextOutput contract."},"Mcp.Tools.GetMcpStatsInput":{"type":"object","properties":{"lookback_minutes":{"type":"integer","format":"int32","minimum":1,"maximum":43200,"description":"Minutes before `end_time` (or now) when `start_time` is omitted. Default 60; list_releases defaults to 10080 (7 days). Maximum 43200 (30 days)."},"start_time":{"type":"string","format":"date-time","description":"Start of the window (inclusive), RFC 3339."},"end_time":{"type":"string","format":"date-time","description":"End of the window (exclusive), RFC 3339."},"matchers":{"type":"array","items":{"$ref":"#/$defs/Common.TelemetryMatcher"},"maxItems":32,"description":"Attribute predicates that every matched span, resource or log must satisfy; up to 32. Omit for no filtering. discover_attributes lists the keys and values that are recorded."},"limit":{"type":"integer","format":"int32","minimum":1,"maximum":200,"description":"Items per page. Omit for the tool\'s default: 20 groups for aggregate_telemetry, 100 for list_failures, discover_attributes, get_mcp_stats and the span and log collections of context tools. `has_more` and `next_cursor` continue the same query."},"cursor":{"$ref":"#/$defs/Common.Cursor"},"server_name":{"type":"string"},"server_version":{"type":"string"},"tool_name":{"type":"string"},"transport":{"type":"string"},"compare_to":{"$ref":"#/$defs/Mcp.Tools.McpStatsComparison"},"group_by":{"type":"string","enum":["server","tool","method","transport","failure_class"]}},"unevaluatedProperties":{"not":{}},"description":"GetMcpStatsInput contract."},"Mcp.Tools.GetMcpStatsOutput":{"type":"object","required":["window","coverage","has_more","totals","groups","failure_classes"],"properties":{"window":{"$ref":"#/$defs/Common.ToolWindow"},"coverage":{"$ref":"#/$defs/Common.ToolCoverage"},"page_totals":{"type":"object","additionalProperties":{"type":"integer","format":"int64"},"description":"Item totals by paged collection path. Omitted totals are unknown, not zero."},"has_more":{"type":"boolean","description":"Whether more items exist beyond this page. False only when the result is complete; `next_cursor` is present exactly when this is true."},"next_cursor":{"$ref":"#/$defs/Common.Cursor","description":"Pass as `cursor` to the same tool with the same filters for the next page. Absent on the last page."},"totals":{"$ref":"#/$defs/Mcp.Tools.McpTrafficTotals"},"groups":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.McpTrafficGroup"}},"failure_classes":{"$ref":"#/$defs/Mcp.Tools.McpFailureClasses"},"comparison":{"$ref":"#/$defs/Mcp.Tools.McpStatsComparisonResult"},"error":{"$ref":"#/$defs/Mcp.Tools.ToolError"}},"unevaluatedProperties":{"not":{}},"description":"GetMcpStatsOutput contract."},"Mcp.Tools.GetMetricSeriesInput":{"type":"object","required":["metric_name"],"properties":{"lookback_minutes":{"type":"integer","format":"int32","minimum":1,"maximum":43200,"description":"Minutes before `end_time` (or now) when `start_time` is omitted. Default 60; list_releases defaults to 10080 (7 days). Maximum 43200 (30 days)."},"start_time":{"type":"string","format":"date-time","description":"Start of the window (inclusive), RFC 3339."},"end_time":{"type":"string","format":"date-time","description":"End of the window (exclusive), RFC 3339."},"metric_name":{"type":"string","minLength":1},"matchers":{"type":"array","items":{"$ref":"#/$defs/OTel.Metrics.MetricAttributeMatcher"},"maxItems":32,"description":"Attribute matchers a series must all satisfy; serialized to `attr` and `attr_prefix`."},"limit":{"type":"integer","format":"int32","minimum":1,"maximum":1000,"default":200},"cursor":{"$ref":"#/$defs/Common.Cursor","description":"`next_cursor` of a previous get_metric_series call with the same filters."}},"unevaluatedProperties":{"not":{}},"description":"Input for get_metric_series."},"Mcp.Tools.GetMetricSeriesOutput":{"type":"object","required":["window","coverage","items","has_more"],"properties":{"keys":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.MetricKeySummary"}},"suggested_group_by":{"type":"array","items":{"type":"string"}},"window":{"$ref":"#/$defs/Common.ToolWindow"},"coverage":{"$ref":"#/$defs/Common.ToolCoverage"},"page_totals":{"type":"object","additionalProperties":{"type":"integer","format":"int64"},"description":"Item totals by paged collection path. Omitted totals are unknown, not zero."},"items":{"type":"array","items":{"$ref":"#/$defs/OTel.Metrics.MetricSeries"}},"has_more":{"type":"boolean","description":"Whether more items exist beyond this page. False only when the result is complete; `next_cursor` is present exactly when this is true."},"next_cursor":{"$ref":"#/$defs/Common.Cursor","description":"Pass as `cursor` to the same tool with the same filters for the next page. Absent on the last page."},"error":{"$ref":"#/$defs/Mcp.Tools.ToolError","description":"Set when the call failed."}},"unevaluatedProperties":{"not":{}},"description":"Structured output for get_metric_series."},"Mcp.Tools.GetServiceMapInput":{"type":"object","properties":{"lookback_minutes":{"type":"integer","format":"int32","minimum":1,"maximum":43200,"description":"Minutes before `end_time` (or now) when `start_time` is omitted. Default 60; list_releases defaults to 10080 (7 days). Maximum 43200 (30 days)."},"start_time":{"type":"string","format":"date-time","description":"Start of the window (inclusive), RFC 3339."},"end_time":{"type":"string","format":"date-time","description":"End of the window (exclusive), RFC 3339."},"matchers":{"type":"array","items":{"$ref":"#/$defs/Common.TelemetryMatcher"},"maxItems":32,"description":"Attribute predicates that every matched span, resource or log must satisfy; up to 32. Omit for no filtering. discover_attributes lists the keys and values that are recorded."},"limit":{"type":"integer","format":"int32","minimum":1,"maximum":200,"description":"Items per page. Omit for the tool\'s default: 20 groups for aggregate_telemetry, 100 for list_failures, discover_attributes, get_mcp_stats and the span and log collections of context tools. `has_more` and `next_cursor` continue the same query."},"cursor":{"$ref":"#/$defs/Common.Cursor"},"service_name":{"type":"string"},"environment":{"type":"string"},"depth":{"type":"integer","format":"int32","minimum":1,"maximum":3},"include_external":{"type":"boolean"}},"unevaluatedProperties":{"not":{}},"description":"GetServiceMapInput contract."},"Mcp.Tools.GetServiceMapOutput":{"type":"object","required":["window","coverage","has_more","nodes","edges","unknown_callers"],"properties":{"window":{"$ref":"#/$defs/Common.ToolWindow"},"coverage":{"$ref":"#/$defs/Common.ToolCoverage"},"page_totals":{"type":"object","additionalProperties":{"type":"integer","format":"int64"},"description":"Item totals by paged collection path. Omitted totals are unknown, not zero."},"has_more":{"type":"boolean","description":"Whether more items exist beyond this page. False only when the result is complete; `next_cursor` is present exactly when this is true."},"next_cursor":{"$ref":"#/$defs/Common.Cursor","description":"Pass as `cursor` to the same tool with the same filters for the next page. Absent on the last page."},"nodes":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.ServiceMapNode"}},"edges":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.ServiceMapEdge"}},"unknown_callers":{"type":"number","format":"double"},"error":{"$ref":"#/$defs/Mcp.Tools.ToolError"}},"unevaluatedProperties":{"not":{}},"description":"GetServiceMapOutput contract."},"Mcp.Tools.GetTraceInput":{"type":"object","required":["trace_id"],"properties":{"cursor":{"$ref":"#/$defs/Common.Cursor"},"selection":{"type":"string","enum":["all","errors","errors_with_ancestors","critical_path"],"description":"Which spans to return: `all` (default), `errors` (error status only), `errors_with_ancestors` (error spans plus their path to the root; the ancestors carry `role: context`) or `critical_path` (the chain of longest child spans from the root, each with `self_time_ms`). Start with `errors_with_ancestors` when diagnosing a failure and widen to `all` only when the error path is not enough."},"attributes":{"type":"array","items":{"type":"string"},"description":"Attribute keys to keep on each returned span; omit for every recorded attribute."},"include_logs":{"type":"integer","format":"int32","minimum":0,"maximum":50,"description":"Number of correlated log records to include, 0 to 50. Default 0, no logs; search_logs with the same `trace_id` returns the rest."},"lookback_minutes":{"type":"integer","format":"int32","minimum":1,"maximum":43200,"description":"Minutes before `end_time` (or now) when `start_time` is omitted. Default 60; list_releases defaults to 10080 (7 days). Maximum 43200 (30 days)."},"start_time":{"type":"string","format":"date-time","description":"Start of the window (inclusive), RFC 3339."},"end_time":{"type":"string","format":"date-time","description":"End of the window (exclusive), RFC 3339."},"trace_id":{"$ref":"#/$defs/Common.TraceId"},"errors_only":{"type":"boolean","description":"Return only spans with error status; omitted or false includes all span statuses.","default":false},"max_spans":{"type":"integer","format":"int32","minimum":1,"maximum":1000,"description":"Maximum spans per page after `selection` is applied. Default 100, maximum 1000. When more spans match, `has_more` is true and `next_cursor` continues the same trace; `coverage` and `omitted` report what the page left out."},"include_attributes":{"type":"boolean","description":"Include span, resource, event and link attributes; false omits those attribute collections.","default":true}},"unevaluatedProperties":{"not":{}},"description":"Input for get_trace."},"Mcp.Tools.GetTraceOutput":{"type":"object","required":["has_more","window","coverage","trace","mode"],"properties":{"has_more":{"type":"boolean","description":"Whether more items exist beyond this page. False only when the result is complete; `next_cursor` is present exactly when this is true."},"next_cursor":{"$ref":"#/$defs/Common.Cursor","description":"Pass as `cursor` to the same tool with the same filters for the next page. Absent on the last page."},"span_roles":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.SpanEvidenceRole"}},"omitted":{"$ref":"#/$defs/Mcp.Tools.TraceOmitted"},"missing_parent_span_ids":{"type":"array","items":{"$ref":"#/$defs/Common.SpanId"}},"links":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.TraceLinkAvailability"}},"logs":{"type":"array","items":{"$ref":"#/$defs/OTel.Logs.LogRecord"}},"context_logs":{"type":"array","items":{"$ref":"#/$defs/OTel.Logs.LogRecord"}},"settled":{"type":"boolean"},"window":{"$ref":"#/$defs/Common.ToolWindow"},"coverage":{"$ref":"#/$defs/Common.ToolCoverage"},"page_totals":{"type":"object","additionalProperties":{"type":"integer","format":"int64"},"description":"Item totals by paged collection path. Omitted totals are unknown, not zero."},"trace":{"$ref":"#/$defs/Mcp.Tools.ToolTrace"},"mode":{"$ref":"#/$defs/Mcp.Tools.McpDataMode"},"annotations":{"type":"array","items":{"$ref":"#/$defs/Annotations.Annotation"},"description":"Annotations on the trace and its spans, newest first."},"error":{"$ref":"#/$defs/Mcp.Tools.ToolError","description":"Set when the call failed."}},"unevaluatedProperties":{"not":{}},"description":"Structured output for get_trace."},"Mcp.Tools.GroupComposition":{"type":"object","required":["changed","traffic_mix_changed","same_traffic_changed","summary"],"properties":{"changed":{"type":"boolean"},"traffic_mix_changed":{"type":"boolean"},"same_traffic_changed":{"type":"boolean"},"summary":{"type":"string"}},"unevaluatedProperties":{"not":{}},"description":"GroupComposition contract."},"Mcp.Tools.GroupDurations":{"type":"object","required":["a","b"],"properties":{"a":{"$ref":"#/$defs/Mcp.Tools.DurationPercentiles"},"b":{"$ref":"#/$defs/Mcp.Tools.DurationPercentiles"}},"unevaluatedProperties":{"not":{}},"description":"GroupDurations contract."},"Mcp.Tools.GroupStructure":{"type":"object","required":["name","share_a","share_b"],"properties":{"name":{"type":"string"},"share_a":{"type":"number","format":"double"},"share_b":{"type":"number","format":"double"}},"unevaluatedProperties":{"not":{}},"description":"GroupStructure contract."},"Mcp.Tools.ListFailuresInput":{"type":"object","properties":{"lookback_minutes":{"type":"integer","format":"int32","minimum":1,"maximum":43200,"description":"Minutes before `end_time` (or now) when `start_time` is omitted. Default 60; list_releases defaults to 10080 (7 days). Maximum 43200 (30 days)."},"start_time":{"type":"string","format":"date-time","description":"Start of the window (inclusive), RFC 3339."},"end_time":{"type":"string","format":"date-time","description":"End of the window (exclusive), RFC 3339."},"matchers":{"type":"array","items":{"$ref":"#/$defs/Common.TelemetryMatcher"},"maxItems":32,"description":"Attribute predicates that every matched span, resource or log must satisfy; up to 32. Omit for no filtering. discover_attributes lists the keys and values that are recorded."},"limit":{"type":"integer","format":"int32","minimum":1,"maximum":200,"description":"Items per page. Omit for the tool\'s default: 20 groups for aggregate_telemetry, 100 for list_failures, discover_attributes, get_mcp_stats and the span and log collections of context tools. `has_more` and `next_cursor` continue the same query."},"cursor":{"$ref":"#/$defs/Common.Cursor"},"service_name":{"type":"string"},"environment":{"type":"string"},"release":{"type":"string"},"status":{"$ref":"#/$defs/Mcp.Tools.FailureStatusFilter"},"sort_by":{"type":"string","enum":["count","last_seen","first_seen","affected_traces"]},"failure_id":{"$ref":"#/$defs/Common.FailureId"}},"unevaluatedProperties":{"not":{}},"description":"ListFailuresInput contract."},"Mcp.Tools.ListFailuresOutput":{"type":"object","required":["window","coverage","has_more","failures"],"properties":{"window":{"$ref":"#/$defs/Common.ToolWindow"},"coverage":{"$ref":"#/$defs/Common.ToolCoverage"},"page_totals":{"type":"object","additionalProperties":{"type":"integer","format":"int64"},"description":"Item totals by paged collection path. Omitted totals are unknown, not zero."},"has_more":{"type":"boolean","description":"Whether more items exist beyond this page. False only when the result is complete; `next_cursor` is present exactly when this is true."},"next_cursor":{"$ref":"#/$defs/Common.Cursor","description":"Pass as `cursor` to the same tool with the same filters for the next page. Absent on the last page."},"failures":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.FailureDetail"}},"error":{"$ref":"#/$defs/Mcp.Tools.ToolError"}},"unevaluatedProperties":{"not":{}},"description":"ListFailuresOutput contract."},"Mcp.Tools.ListMetricsInput":{"type":"object","properties":{"text":{"type":"string"},"service_name":{"type":"string"},"kind":{"$ref":"#/$defs/OTel.Metrics.MetricKind"},"unit":{"type":"string"},"matchers":{"type":"array","items":{"$ref":"#/$defs/Common.TelemetryMatcher"},"maxItems":32},"lookback_minutes":{"type":"integer","format":"int32","minimum":1,"maximum":43200,"description":"Minutes before `end_time` (or now) when `start_time` is omitted. Default 60; list_releases defaults to 10080 (7 days). Maximum 43200 (30 days)."},"start_time":{"type":"string","format":"date-time","description":"Start of the window (inclusive), RFC 3339."},"end_time":{"type":"string","format":"date-time","description":"End of the window (exclusive), RFC 3339."},"name_prefix":{"type":"string","description":"Return only names starting with this prefix."},"limit":{"type":"integer","format":"int32","minimum":1,"maximum":1000,"default":200},"cursor":{"$ref":"#/$defs/Common.Cursor","description":"`next_cursor` of a previous list_metrics call with the same prefix."}},"unevaluatedProperties":{"not":{}},"description":"Input for list_metrics."},"Mcp.Tools.ListMetricsOutput":{"type":"object","required":["window","coverage","items","has_more"],"properties":{"window":{"$ref":"#/$defs/Common.ToolWindow"},"coverage":{"$ref":"#/$defs/Common.ToolCoverage"},"page_totals":{"type":"object","additionalProperties":{"type":"integer","format":"int64"},"description":"Item totals by paged collection path. Omitted totals are unknown, not zero."},"items":{"type":"array","items":{"$ref":"#/$defs/OTel.Metrics.MetricDescriptor"}},"has_more":{"type":"boolean","description":"Whether more items exist beyond this page. False only when the result is complete; `next_cursor` is present exactly when this is true."},"next_cursor":{"$ref":"#/$defs/Common.Cursor","description":"Pass as `cursor` to the same tool with the same filters for the next page. Absent on the last page."},"error":{"$ref":"#/$defs/Mcp.Tools.ToolError","description":"Set when the call failed."}},"unevaluatedProperties":{"not":{}},"description":"Structured output for list_metrics."},"Mcp.Tools.ListReleasesInput":{"type":"object","properties":{"lookback_minutes":{"type":"integer","format":"int32","minimum":1,"maximum":43200,"description":"Minutes before `end_time` (or now) when `start_time` is omitted. Default 60; list_releases defaults to 10080 (7 days). Maximum 43200 (30 days)."},"start_time":{"type":"string","format":"date-time","description":"Start of the window (inclusive), RFC 3339."},"end_time":{"type":"string","format":"date-time","description":"End of the window (exclusive), RFC 3339."},"matchers":{"type":"array","items":{"$ref":"#/$defs/Common.TelemetryMatcher"},"maxItems":32,"description":"Attribute predicates that every matched span, resource or log must satisfy; up to 32. Omit for no filtering. discover_attributes lists the keys and values that are recorded."},"limit":{"type":"integer","format":"int32","minimum":1,"maximum":200,"description":"Items per page. Omit for the tool\'s default: 20 groups for aggregate_telemetry, 100 for list_failures, discover_attributes, get_mcp_stats and the span and log collections of context tools. `has_more` and `next_cursor` continue the same query."},"cursor":{"$ref":"#/$defs/Common.Cursor"},"service_name":{"type":"string"},"environment":{"type":"string"}},"unevaluatedProperties":{"not":{}},"description":"ListReleasesInput contract."},"Mcp.Tools.ListReleasesOutput":{"type":"object","required":["window","coverage","has_more","releases"],"properties":{"window":{"$ref":"#/$defs/Common.ToolWindow"},"coverage":{"$ref":"#/$defs/Common.ToolCoverage"},"page_totals":{"type":"object","additionalProperties":{"type":"integer","format":"int64"},"description":"Item totals by paged collection path. Omitted totals are unknown, not zero."},"has_more":{"type":"boolean","description":"Whether more items exist beyond this page. False only when the result is complete; `next_cursor` is present exactly when this is true."},"next_cursor":{"$ref":"#/$defs/Common.Cursor","description":"Pass as `cursor` to the same tool with the same filters for the next page. Absent on the last page."},"releases":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.ReleaseSummary"}},"error":{"$ref":"#/$defs/Mcp.Tools.ToolError"}},"unevaluatedProperties":{"not":{}},"description":"ListReleasesOutput contract."},"Mcp.Tools.ListSavedQueriesInput":{"type":"object","properties":{"matchers":{"type":"array","items":{"$ref":"#/$defs/Common.TelemetryMatcher"},"maxItems":32},"lookback_minutes":{"type":"integer","format":"int32","minimum":1,"maximum":43200,"description":"Minutes before `end_time` (or now) when `start_time` is omitted. Default 60; list_releases defaults to 10080 (7 days). Maximum 43200 (30 days)."},"start_time":{"type":"string","format":"date-time","description":"Start of the window (inclusive), RFC 3339."},"end_time":{"type":"string","format":"date-time","description":"End of the window (exclusive), RFC 3339."},"signal":{"$ref":"#/$defs/SavedQueries.SavedQuerySignal"},"limit":{"type":"integer","format":"int32","minimum":1,"maximum":100,"default":20},"cursor":{"$ref":"#/$defs/Common.Cursor"}},"unevaluatedProperties":{"not":{}},"description":"Input for list_saved_queries."},"Mcp.Tools.ListSavedQueriesOutput":{"type":"object","required":["window","coverage","saved_queries","has_more"],"properties":{"window":{"$ref":"#/$defs/Common.ToolWindow"},"coverage":{"$ref":"#/$defs/Common.ToolCoverage"},"page_totals":{"type":"object","additionalProperties":{"type":"integer","format":"int64"},"description":"Item totals by paged collection path. Omitted totals are unknown, not zero."},"saved_queries":{"type":"array","items":{"$ref":"#/$defs/SavedQueries.SavedQuery"}},"has_more":{"type":"boolean","description":"Whether more items exist beyond this page. False only when the result is complete; `next_cursor` is present exactly when this is true."},"next_cursor":{"$ref":"#/$defs/Common.Cursor","description":"Pass as `cursor` to the same tool with the same filters for the next page. Absent on the last page."},"error":{"$ref":"#/$defs/Mcp.Tools.ToolError","description":"Set when the call failed."}},"unevaluatedProperties":{"not":{}},"description":"Structured output for list_saved_queries."},"Mcp.Tools.ListSessionsInput":{"type":"object","properties":{"has_error":{"type":"boolean"},"min_errors":{"type":"integer","format":"int64"},"service_name":{"type":"string"},"agent_name":{"type":"string"},"model":{"type":"string"},"min_tokens":{"type":"integer","format":"int64"},"min_duration_ms":{"$ref":"#/$defs/Common.DurationMs"},"annotation_label":{"type":"string"},"sort_by":{"type":"string","enum":["last_activity","errors","duration","tokens"]},"matchers":{"type":"array","items":{"$ref":"#/$defs/Common.TelemetryMatcher"},"maxItems":32},"limit":{"type":"integer","format":"int32","minimum":1,"maximum":100,"description":"Maximum sessions to return in this page.","default":20},"active_only":{"type":"boolean","description":"Return only sessions that are still active; omitted or false includes ended sessions."},"lookback_minutes":{"type":"integer","format":"int32","minimum":1,"maximum":43200,"description":"Minutes before `end_time` (or now) when `start_time` is omitted. Default 60; list_releases defaults to 10080 (7 days). Maximum 43200 (30 days)."},"start_time":{"type":"string","format":"date-time","description":"Start of the window (inclusive), RFC 3339."},"end_time":{"type":"string","format":"date-time","description":"End of the window (exclusive), RFC 3339."},"cursor":{"$ref":"#/$defs/Common.Cursor","description":"`next_cursor` of a previous list_sessions call with the same filters."}},"unevaluatedProperties":{"not":{}},"description":"Input for list_sessions."},"Mcp.Tools.ListSessionsOutput":{"type":"object","required":["window","coverage","sessions","mode","has_more"],"properties":{"window":{"$ref":"#/$defs/Common.ToolWindow"},"coverage":{"$ref":"#/$defs/Common.ToolCoverage"},"page_totals":{"type":"object","additionalProperties":{"type":"integer","format":"int64"},"description":"Item totals by paged collection path. Omitted totals are unknown, not zero."},"sessions":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.ToolSession"}},"mode":{"$ref":"#/$defs/Mcp.Tools.McpDataMode"},"has_more":{"type":"boolean","description":"Whether more items exist beyond this page. False only when the result is complete; `next_cursor` is present exactly when this is true."},"next_cursor":{"$ref":"#/$defs/Common.Cursor","description":"Pass as `cursor` to the same tool with the same filters for the next page. Absent on the last page."},"annotations":{"type":"array","items":{"$ref":"#/$defs/Annotations.Annotation"},"description":"Annotations on the listed sessions, newest first; each names its session in `target`."},"error":{"$ref":"#/$defs/Mcp.Tools.ToolError","description":"Set when the call failed."}},"unevaluatedProperties":{"not":{}},"description":"Structured output for list_sessions."},"Mcp.Tools.ListTracesInput":{"type":"object","properties":{"failure_class":{"$ref":"#/$defs/Mcp.Tools.McpFailureClass"},"server_name":{"type":"string"},"tool_name":{"type":"string"},"transport":{"type":"string"},"session_id":{"$ref":"#/$defs/Common.SessionId"},"root_span_name":{"type":"string"},"min_duration_ms":{"$ref":"#/$defs/Common.DurationMs"},"max_duration_ms":{"$ref":"#/$defs/Common.DurationMs"},"release":{"type":"string"},"failure_id":{"$ref":"#/$defs/Common.FailureId"},"error_scope":{"type":"string","enum":["any","root"]},"annotation_label":{"type":"string"},"group_by":{"type":"string","enum":["failure_id","root_span","service"]},"sort_by":{"type":"string","enum":["start_time","duration","errors"]},"matchers":{"type":"array","items":{"$ref":"#/$defs/Common.TelemetryMatcher"},"maxItems":32},"limit":{"type":"integer","format":"int32","minimum":1,"maximum":100,"description":"Maximum traces to return in this page.","default":20},"lookback_minutes":{"type":"integer","format":"int32","minimum":1,"maximum":43200,"description":"Minutes before `end_time` (or now) when `start_time` is omitted. Default 60; list_releases defaults to 10080 (7 days). Maximum 43200 (30 days)."},"start_time":{"type":"string","format":"date-time","description":"Start of the window (inclusive), RFC 3339."},"end_time":{"type":"string","format":"date-time","description":"End of the window (exclusive), RFC 3339."},"service_name":{"type":"string","description":"Keep traces with at least one span from this service."},"errors_only":{"type":"boolean","description":"Keep only traces with at least one error span."},"cursor":{"$ref":"#/$defs/Common.Cursor","description":"`next_cursor` of a previous list_traces call with the same filters."}},"unevaluatedProperties":{"not":{}},"description":"Input for list_traces."},"Mcp.Tools.ListTracesOutput":{"type":"object","required":["window","coverage","traces","mode","has_more"],"properties":{"groups":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.TraceGroup"}},"window":{"$ref":"#/$defs/Common.ToolWindow"},"coverage":{"$ref":"#/$defs/Common.ToolCoverage"},"page_totals":{"type":"object","additionalProperties":{"type":"integer","format":"int64"},"description":"Item totals by paged collection path. Omitted totals are unknown, not zero."},"traces":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.ToolTraceSummary"}},"mode":{"$ref":"#/$defs/Mcp.Tools.McpDataMode"},"has_more":{"type":"boolean","description":"Whether more items exist beyond this page. False only when the result is complete; `next_cursor` is present exactly when this is true."},"next_cursor":{"$ref":"#/$defs/Common.Cursor","description":"Pass as `cursor` to the same tool with the same filters for the next page. Absent on the last page."},"error":{"$ref":"#/$defs/Mcp.Tools.ToolError","description":"Set when the call failed."}},"unevaluatedProperties":{"not":{}},"description":"Structured output for list_traces."},"Mcp.Tools.LogPattern":{"type":"object","required":["template","count","severity","first_seen","last_seen","example_ids"],"properties":{"template":{"type":"string"},"count":{"type":"integer","format":"int64"},"severity":{"type":"integer","format":"int32"},"first_seen":{"type":"string","format":"date-time"},"last_seen":{"type":"string","format":"date-time"},"example_ids":{"type":"array","items":{"type":"string"},"maxItems":3}},"unevaluatedProperties":{"not":{}},"description":"LogPattern contract."},"Mcp.Tools.McpComparisonOffset":{"type":"object","required":["offset_minutes"],"properties":{"offset_minutes":{"type":"integer","format":"int32"}},"unevaluatedProperties":{"not":{}},"description":"McpComparisonOffset contract."},"Mcp.Tools.McpComparisonVersion":{"type":"object","required":["server_version"],"properties":{"server_version":{"type":"string"}},"unevaluatedProperties":{"not":{}},"description":"McpComparisonVersion contract."},"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":{"groups":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.McpTrafficGroup"}},"failure_classes":{"$ref":"#/$defs/Mcp.Tools.McpFailureClasses"},"comparison":{"$ref":"#/$defs/Mcp.Tools.McpStatsComparisonResult"},"coverage":{"$ref":"#/$defs/Common.ToolCoverage"},"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":{"p50_ms":{"type":"number","format":"double"},"p95_ms":{"type":"number","format":"double"},"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":"integer","format":"int64","minimum":0,"description":"Bucket width in integer milliseconds."}},"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.McpFailureClass":{"type":"string","enum":["transport","protocol","tool_result","authentication","cancellation","timeout"],"description":"Canonical classification shared by MCP aggregates and their trace drilldowns."},"Mcp.Tools.McpFailureClasses":{"type":"object","required":["transport","protocol","tool_result","authentication","cancellation","timeout"],"properties":{"transport":{"type":"integer","format":"int64"},"protocol":{"type":"integer","format":"int64"},"tool_result":{"type":"integer","format":"int64"},"authentication":{"type":"integer","format":"int64"},"cancellation":{"type":"integer","format":"int64"},"timeout":{"type":"integer","format":"int64"}},"unevaluatedProperties":{"not":{}},"description":"McpFailureClasses contract."},"Mcp.Tools.McpNameRequestCount":{"type":"object","required":["name","requests"],"properties":{"name":{"type":"string"},"requests":{"type":"integer","format":"int32","minimum":0}},"unevaluatedProperties":{"not":{}}},"Mcp.Tools.McpScope":{"type":"string","enum":["qyl:read","qyl:write","qyl:delete"],"description":"OAuth scopes of the qyl MCP server. `qyl:read` alone keeps the read-only\\ntool surface; `qyl:write` adds the create and update tools; `qyl:delete`\\nadds the one delete tool. No scope deletes telemetry."},"Mcp.Tools.McpStatsComparison":{"anyOf":[{"type":"string"},{"$ref":"#/$defs/Mcp.Tools.McpComparisonOffset"},{"$ref":"#/$defs/Mcp.Tools.McpComparisonVersion"}],"description":"MCP comparison window or deployed server version."},"Mcp.Tools.McpStatsComparisonResult":{"type":"object","required":["window","totals","groups","failure_classes"],"properties":{"window":{"$ref":"#/$defs/Common.ToolWindow"},"totals":{"$ref":"#/$defs/Mcp.Tools.McpTrafficTotals"},"groups":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.McpTrafficGroup"}},"failure_classes":{"$ref":"#/$defs/Mcp.Tools.McpFailureClasses"}},"unevaluatedProperties":{"not":{}},"description":"McpStatsComparisonResult contract."},"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.McpTrafficGroup":{"type":"object","required":["requests","errors","error_rate","p50_ms","p95_ms","unit","name","example_trace_ids"],"properties":{"requests":{"type":"integer","format":"int64"},"errors":{"type":"integer","format":"int64"},"error_rate":{"type":"number","format":"double"},"p50_ms":{"anyOf":[{"type":"number","format":"double"},{"type":"null"}]},"p95_ms":{"anyOf":[{"type":"number","format":"double"},{"type":"null"}]},"unit":{"type":"string","enum":["requests"]},"name":{"type":"string"},"example_trace_ids":{"type":"array","items":{"$ref":"#/$defs/Common.TraceId"},"maxItems":3}},"unevaluatedProperties":{"not":{}},"description":"McpTrafficGroup contract."},"Mcp.Tools.McpTrafficTotals":{"type":"object","required":["requests","errors","error_rate","p50_ms","p95_ms","unit"],"properties":{"requests":{"type":"integer","format":"int64"},"errors":{"type":"integer","format":"int64"},"error_rate":{"type":"number","format":"double"},"p50_ms":{"anyOf":[{"type":"number","format":"double"},{"type":"null"}]},"p95_ms":{"anyOf":[{"type":"number","format":"double"},{"type":"null"}]},"unit":{"type":"string","enum":["requests"]}},"unevaluatedProperties":{"not":{}},"description":"McpTrafficTotals contract."},"Mcp.Tools.MetricComparison":{"anyOf":[{"type":"string","enum":["previous_window"]},{"$ref":"#/$defs/Mcp.Tools.MetricComparisonOffset"}],"description":"Metric comparison preceding the selected window."},"Mcp.Tools.MetricComparisonOffset":{"type":"object","required":["offset_ms"],"properties":{"offset_ms":{"type":"integer","format":"int64"}},"unevaluatedProperties":{"not":{}},"description":"MetricComparisonOffset contract."},"Mcp.Tools.MetricComparisonResult":{"type":"object","required":["window","series"],"properties":{"window":{"$ref":"#/$defs/Common.ToolWindow"},"series":{"type":"array","items":{"$ref":"#/$defs/OTel.Metrics.MetricSeriesResult"}}},"unevaluatedProperties":{"not":{}},"description":"MetricComparisonResult contract."},"Mcp.Tools.MetricKeySummary":{"type":"object","required":["key","cardinality","cardinality_exact","top_values","coverage_share"],"properties":{"key":{"type":"string"},"cardinality":{"type":"integer","format":"int64"},"cardinality_exact":{"type":"boolean"},"top_values":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.AttributeValueCount"}},"coverage_share":{"type":"number","format":"double"}},"unevaluatedProperties":{"not":{}},"description":"MetricKeySummary contract."},"Mcp.Tools.MetricRatio":{"type":"object","required":["metric_name"],"properties":{"metric_name":{"type":"string"},"aggregation":{"$ref":"#/$defs/OTel.Metrics.MetricAggregation"},"matchers":{"type":"array","items":{"$ref":"#/$defs/Common.TelemetryMatcher"},"maxItems":32}},"unevaluatedProperties":{"not":{}},"description":"MetricRatio contract."},"Mcp.Tools.OrphanSpans":{"type":"object","required":["count","share","services","unit"],"properties":{"count":{"type":"integer","format":"int64"},"share":{"type":"number","format":"double"},"services":{"type":"array","items":{"type":"string"}},"unit":{"type":"string","enum":["spans"]}},"unevaluatedProperties":{"not":{}},"description":"OrphanSpans contract."},"Mcp.Tools.QueryMetricInput":{"type":"object","required":["metric_name"],"properties":{"lookback_minutes":{"type":"integer","format":"int32"},"function":{"type":"string","enum":["none","rate","increase","delta"]},"compare_to":{"$ref":"#/$defs/Mcp.Tools.MetricComparison"},"ratio_of":{"$ref":"#/$defs/Mcp.Tools.MetricRatio"},"metric_name":{"type":"string","minLength":1},"start_time":{"type":"string","format":"date-time"},"end_time":{"type":"string","format":"date-time"},"step_ms":{"type":"integer","format":"int64","minimum":1,"maximum":86400000,"description":"Bucket width in integer milliseconds.","default":60000},"aggregation":{"$ref":"#/$defs/OTel.Metrics.MetricAggregation","default":"avg"},"group_by":{"type":"array","items":{"type":"string"},"maxItems":16,"description":"Attribute keys to split the result by."},"matchers":{"type":"array","items":{"$ref":"#/$defs/OTel.Metrics.MetricAttributeMatcher"},"maxItems":32,"description":"Attribute matchers a series must all satisfy; serialized to `attr` and `attr_prefix`."},"series_limit":{"type":"integer","format":"int32","minimum":1,"maximum":500,"default":50}},"unevaluatedProperties":{"not":{}},"description":"Input for query_metric."},"Mcp.Tools.QueryMetricOutput":{"type":"object","required":["window","coverage","name","kind","aggregation","step_ms","start_time","end_time","series","truncated"],"properties":{"method":{"type":"string"},"approximate":{"type":"boolean"},"exemplar_trace_ids":{"type":"array","items":{"$ref":"#/$defs/Common.TraceId"}},"comparison":{"$ref":"#/$defs/Mcp.Tools.MetricComparisonResult"},"window":{"$ref":"#/$defs/Common.ToolWindow"},"coverage":{"$ref":"#/$defs/Common.ToolCoverage"},"page_totals":{"type":"object","additionalProperties":{"type":"integer","format":"int64"},"description":"Item totals by paged collection path. Omitted totals are unknown, not zero."},"name":{"type":"string","description":"Instrument name the query ran against."},"kind":{"$ref":"#/$defs/OTel.Metrics.MetricKind"},"unit":{"type":"string"},"aggregation":{"$ref":"#/$defs/OTel.Metrics.MetricAggregation"},"step_ms":{"type":"integer","format":"int64","description":"Bucket width actually used, which may be widened from the requested step."},"start_time":{"type":"string","format":"date-time"},"end_time":{"type":"string","format":"date-time"},"series":{"type":"array","items":{"$ref":"#/$defs/OTel.Metrics.MetricSeriesResult"}},"truncated":{"type":"boolean","description":"Whether streams were dropped because the result exceeded the series limit."},"error":{"$ref":"#/$defs/Mcp.Tools.ToolError","description":"Set when the call failed."}},"unevaluatedProperties":{"not":{}},"description":"Structured output for query_metric: the collector\'s range-query result."},"Mcp.Tools.RecordedException":{"type":"object","properties":{"type":{"type":"string"},"message":{"type":"string"},"stacktrace":{"type":"string"}},"unevaluatedProperties":{"not":{}},"description":"RecordedException contract."},"Mcp.Tools.ReleasePerformance":{"type":"object","required":["error_rate","p95_ms"],"properties":{"error_rate":{"anyOf":[{"type":"number","format":"double"},{"type":"null"}]},"p95_ms":{"anyOf":[{"type":"number","format":"double"},{"type":"null"}]}},"unevaluatedProperties":{"not":{}},"description":"ReleasePerformance contract."},"Mcp.Tools.ReleaseSummary":{"type":"object","required":["service","version","first_seen","last_seen","current","concurrent","traffic_share","before","after","new_failure_ids"],"properties":{"service":{"type":"string"},"environment":{"type":"string"},"version":{"type":"string"},"revision":{"type":"string"},"first_seen":{"type":"string","format":"date-time"},"last_seen":{"type":"string","format":"date-time"},"current":{"type":"boolean"},"concurrent":{"type":"boolean"},"traffic_share":{"type":"number","format":"double"},"before":{"$ref":"#/$defs/Mcp.Tools.ReleasePerformance"},"after":{"$ref":"#/$defs/Mcp.Tools.ReleasePerformance"},"new_failure_ids":{"type":"array","items":{"$ref":"#/$defs/Common.FailureId"}}},"unevaluatedProperties":{"not":{}},"description":"ReleaseSummary contract."},"Mcp.Tools.RepeatedCall":{"type":"object","required":["tool","argument_hash","count"],"properties":{"tool":{"type":"string"},"argument_hash":{"type":"string"},"count":{"type":"integer","format":"int64"}},"unevaluatedProperties":{"not":{}},"description":"RepeatedCall contract."},"Mcp.Tools.RetryEvidence":{"type":"object","required":["name","attempts","spans"],"properties":{"name":{"type":"string"},"attempts":{"type":"integer","format":"int32"},"spans":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.EvidenceSpan"}}},"unevaluatedProperties":{"not":{}},"description":"RetryEvidence contract."},"Mcp.Tools.RunSavedQueryInput":{"type":"object","required":["id"],"properties":{"lookback_minutes":{"type":"integer","format":"int32"},"id":{"$ref":"#/$defs/Common.ResourceId"},"start_time":{"type":"string","format":"date-time","description":"Overrides the saved look-back window together with `end_time`."},"end_time":{"type":"string","format":"date-time"},"limit":{"$ref":"#/$defs/Common.Pagination.PageLimit","description":"Page size for trace and log runs; 100 when omitted.","default":100},"cursor":{"$ref":"#/$defs/Common.Cursor","description":"`next_cursor` of a previous run of the same saved query."}},"unevaluatedProperties":{"not":{}},"description":"Input for run_saved_query."},"Mcp.Tools.RunSavedQueryOutput":{"type":"object","required":["window","coverage"],"properties":{"window":{"$ref":"#/$defs/Common.ToolWindow"},"coverage":{"$ref":"#/$defs/Common.ToolCoverage"},"page_totals":{"type":"object","additionalProperties":{"type":"integer","format":"int64"},"description":"Item totals by paged collection path. Omitted totals are unknown, not zero."},"result":{"$ref":"#/$defs/SavedQueries.SavedQueryRunResult"},"mode":{"$ref":"#/$defs/Mcp.Tools.McpDataMode"},"error":{"$ref":"#/$defs/Mcp.Tools.ToolError","description":"Set when the call failed."}},"unevaluatedProperties":{"not":{}},"description":"Structured output for run_saved_query."},"Mcp.Tools.SavedQueryOutput":{"type":"object","properties":{"saved_query":{"$ref":"#/$defs/SavedQueries.SavedQuery"},"error":{"$ref":"#/$defs/Mcp.Tools.ToolError","description":"Set when the call failed."}},"unevaluatedProperties":{"not":{}},"description":"Structured output for create_saved_query and update_saved_query."},"Mcp.Tools.SearchLogsInput":{"type":"object","properties":{"span_id":{"$ref":"#/$defs/Common.SpanId"},"group_by":{"type":"string","enum":["pattern"]},"context":{"type":"integer","format":"int32","minimum":0,"maximum":10},"matchers":{"type":"array","items":{"$ref":"#/$defs/Common.TelemetryMatcher"},"maxItems":32},"trace_id":{"$ref":"#/$defs/Common.TraceId","description":"Return only log records correlated with this trace."},"service_name":{"type":"string","description":"Return only log records from this service."},"severity_min":{"type":"integer","format":"int32","minimum":1,"maximum":24,"description":"Minimum OpenTelemetry severity number: 9 info, 13 warn, 17 error."},"query":{"type":"string","description":"Substring searched in the log body."},"limit":{"type":"integer","format":"int32","minimum":1,"maximum":200,"description":"Maximum log records to return in this page.","default":50},"session_id":{"$ref":"#/$defs/Common.SessionId","description":"Return only log records of this session."},"lookback_minutes":{"type":"integer","format":"int32","minimum":1,"maximum":43200,"description":"Minutes before `end_time` (or now) when `start_time` is omitted. Default 60; list_releases defaults to 10080 (7 days). Maximum 43200 (30 days)."},"start_time":{"type":"string","format":"date-time","description":"Start of the window (inclusive), RFC 3339."},"end_time":{"type":"string","format":"date-time","description":"End of the window (exclusive), RFC 3339."},"cursor":{"$ref":"#/$defs/Common.Cursor","description":"`next_cursor` of a previous search_logs call with the same filters."}},"unevaluatedProperties":{"not":{}},"description":"Input for search_logs."},"Mcp.Tools.SearchLogsOutput":{"type":"object","required":["window","coverage","logs","mode","has_more"],"properties":{"total_matched":{"type":"integer","format":"int64"},"patterns":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.LogPattern"}},"window":{"$ref":"#/$defs/Common.ToolWindow"},"coverage":{"$ref":"#/$defs/Common.ToolCoverage"},"page_totals":{"type":"object","additionalProperties":{"type":"integer","format":"int64"},"description":"Item totals by paged collection path. Omitted totals are unknown, not zero."},"logs":{"type":"array","items":{"$ref":"#/$defs/OTel.Logs.LogRecord"}},"mode":{"$ref":"#/$defs/Mcp.Tools.McpDataMode"},"has_more":{"type":"boolean","description":"Whether more items exist beyond this page. False only when the result is complete; `next_cursor` is present exactly when this is true."},"next_cursor":{"$ref":"#/$defs/Common.Cursor","description":"Pass as `cursor` to the same tool with the same filters for the next page. Absent on the last page."},"error":{"$ref":"#/$defs/Mcp.Tools.ToolError","description":"Set when the call failed."}},"unevaluatedProperties":{"not":{}},"description":"Structured output for search_logs."},"Mcp.Tools.SemconvGap":{"type":"object","required":["service","operation","attribute","requirement_level","missing_share"],"properties":{"service":{"type":"string"},"operation":{"type":"string"},"attribute":{"type":"string"},"requirement_level":{"type":"string"},"missing_share":{"type":"number","format":"double"}},"unevaluatedProperties":{"not":{}},"description":"SemconvGap contract."},"Mcp.Tools.ServiceAnalysisInput":{"type":"object","properties":{"lookback_minutes":{"type":"integer","format":"int32","minimum":1,"maximum":43200,"description":"Minutes before `end_time` (or now) when `start_time` is omitted. Default 60; list_releases defaults to 10080 (7 days). Maximum 43200 (30 days)."},"start_time":{"type":"string","format":"date-time","description":"Start of the window (inclusive), RFC 3339."},"end_time":{"type":"string","format":"date-time","description":"End of the window (exclusive), RFC 3339."},"matchers":{"type":"array","items":{"$ref":"#/$defs/Common.TelemetryMatcher"},"maxItems":32,"description":"Attribute predicates that every matched span, resource or log must satisfy; up to 32. Omit for no filtering. discover_attributes lists the keys and values that are recorded."},"limit":{"type":"integer","format":"int32","minimum":1,"maximum":200,"description":"Items per page. Omit for the tool\'s default: 20 groups for aggregate_telemetry, 100 for list_failures, discover_attributes, get_mcp_stats and the span and log collections of context tools. `has_more` and `next_cursor` continue the same query."},"cursor":{"$ref":"#/$defs/Common.Cursor"},"service_name":{"type":"string"},"environment":{"type":"string"}},"unevaluatedProperties":{"not":{}},"description":"ServiceAnalysisInput contract."},"Mcp.Tools.ServiceMapEdge":{"type":"object","required":["from","to","calls","error_rate","p95_ms","example_operations","unit"],"properties":{"from":{"type":"string"},"to":{"type":"string"},"calls":{"type":"integer","format":"int64"},"error_rate":{"type":"number","format":"double"},"p95_ms":{"anyOf":[{"type":"number","format":"double"},{"type":"null"}]},"example_operations":{"type":"array","items":{"type":"string"}},"unit":{"type":"string","enum":["spans"]}},"unevaluatedProperties":{"not":{}},"description":"ServiceMapEdge contract."},"Mcp.Tools.ServiceMapNode":{"type":"object","required":["name","kind","calls","error_rate","p95_ms","unit"],"properties":{"name":{"type":"string"},"kind":{"type":"string","enum":["service","database","external","messaging"]},"calls":{"type":"integer","format":"int64"},"error_rate":{"type":"number","format":"double"},"p95_ms":{"anyOf":[{"type":"number","format":"double"},{"type":"null"}]},"unit":{"type":"string","enum":["spans"]}},"unevaluatedProperties":{"not":{}},"description":"ServiceMapNode contract."},"Mcp.Tools.SilentService":{"type":"object","required":["service","last_seen","usual_rate","unit"],"properties":{"service":{"type":"string"},"last_seen":{"type":"string","format":"date-time"},"usual_rate":{"anyOf":[{"type":"number","format":"double"},{"type":"null"}]},"unit":{"type":"string"}},"unevaluatedProperties":{"not":{}},"description":"SilentService contract."},"Mcp.Tools.SimilarFailure":{"type":"object","required":["failure_id","count","first_seen","releases"],"properties":{"failure_id":{"$ref":"#/$defs/Common.FailureId"},"count":{"type":"integer","format":"int64"},"first_seen":{"type":"string","format":"date-time"},"releases":{"type":"array","items":{"type":"string"}}},"unevaluatedProperties":{"not":{}},"description":"SimilarFailure contract."},"Mcp.Tools.SpanEvidenceRole":{"type":"object","required":["span_id","role"],"properties":{"span_id":{"$ref":"#/$defs/Common.SpanId"},"role":{"type":"string","enum":["matched","context"]},"self_time_ms":{"$ref":"#/$defs/Common.DurationMs"},"self_time_share":{"type":"number","format":"double"}},"unevaluatedProperties":{"not":{}},"description":"SpanEvidenceRole contract."},"Mcp.Tools.TelemetryRetention":{"type":"object","required":["oldest","days"],"properties":{"oldest":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"days":{"anyOf":[{"type":"number","format":"double"},{"type":"null"}]}},"unevaluatedProperties":{"not":{}},"description":"TelemetryRetention contract."},"Mcp.Tools.ToolError":{"type":"object","required":["code","message","retryable"],"properties":{"fields":{"type":"array","items":{"$ref":"#/$defs/Common.Errors.ValidationErrorDetail"}},"problem_type":{"$ref":"#/$defs/Common.Errors.ProblemType"},"code":{"$ref":"#/$defs/Mcp.Tools.ToolErrorCode"},"message":{"type":"string","description":"Human-readable description of this failure."},"retryable":{"type":"boolean","description":"Whether the same call can succeed when repeated unchanged."}},"unevaluatedProperties":{"not":{}},"description":"A failed tool call, carried in structuredContent.error."},"Mcp.Tools.ToolErrorCode":{"type":"string","enum":["invalid_argument","not_found","no_project_access","collector_unreachable","collector_timeout","cancelled","collector_unauthorized","collector_rate_limited","collector_rejected","collector_error","contract_mismatch","insufficient_scope","conflict","precondition_failed","precondition_required","internal"],"description":"Stable failure code of a qyl MCP tool result. A model branches on the code, never on the message."},"Mcp.Tools.ToolFieldError":{"type":"object","required":["field","code","message","change"],"properties":{"field":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"change":{"type":"string"}},"unevaluatedProperties":{"not":{}},"description":"ToolFieldError contract."},"Mcp.Tools.ToolPage":{"type":"object","required":["has_more"],"properties":{"has_more":{"type":"boolean","description":"Whether more items exist beyond this page. False only when the result is complete; `next_cursor` is present exactly when this is true."},"next_cursor":{"$ref":"#/$defs/Common.Cursor","description":"Pass as `cursor` to the same tool with the same filters for the next page. Absent on the last page."}},"unevaluatedProperties":{"not":{}},"description":"Pagination members of a paged tool output."},"Mcp.Tools.ToolSession":{"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"},"failure_ids":{"type":"array","items":{"$ref":"#/$defs/Common.FailureId"},"maxItems":5},"agent_name":{"type":"string"},"models":{"type":"array","items":{"type":"string"}},"tokens_by_model":{"type":"object","additionalProperties":{"$ref":"#/$defs/Mcp.Tools.AgentTokens"}},"annotations":{"type":"array","items":{"$ref":"#/$defs/Annotations.Annotation"}}},"unevaluatedProperties":{"not":{}},"description":"ToolSession contract."},"Mcp.Tools.ToolSpan":{"type":"object","required":["role"],"properties":{"role":{"type":"string","enum":["matched","context"]},"self_time_ms":{"$ref":"#/$defs/Common.DurationMs"},"self_time_share":{"type":"number","format":"double"}},"unevaluatedProperties":{"not":{}},"allOf":[{"$ref":"#/$defs/OTel.Traces.Span"}],"description":"A span returned as evidence, with selection role and optional critical-path self time."},"Mcp.Tools.ToolTimeRange":{"type":"object","properties":{"lookback_minutes":{"type":"integer","format":"int32","minimum":1,"maximum":43200,"description":"Minutes before `end_time` (or now) when `start_time` is omitted. Default 60; list_releases defaults to 10080 (7 days). Maximum 43200 (30 days)."},"start_time":{"type":"string","format":"date-time","description":"Start of the window (inclusive), RFC 3339."},"end_time":{"type":"string","format":"date-time","description":"End of the window (exclusive), RFC 3339."}},"unevaluatedProperties":{"not":{}},"description":"Time-range members of a tool input. Omit all three for the tool\'s default window ending now; the result\'s `window` reports the bounds that were applied, so a follow-up call can pass them as `start_time` and `end_time` to keep the same window."},"Mcp.Tools.ToolTrace":{"type":"object","required":["spans"],"properties":{"spans":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.ToolSpan"}}},"unevaluatedProperties":{"not":{}},"allOf":[{"$ref":"#/$defs/OTel.Traces.TraceSummary"}],"description":"Full trace evidence with the selection role on every returned span."},"Mcp.Tools.ToolTraceSummary":{"type":"object","required":["trace_id","span_count","duration_ns","start_time","end_time","services","has_error","root_error","contained_error","failure_ids","annotation_labels"],"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"},"root_error":{"type":"boolean"},"contained_error":{"type":"boolean"},"failure_ids":{"type":"array","items":{"$ref":"#/$defs/Common.FailureId"}},"annotation_labels":{"type":"array","items":{"type":"string"}}},"unevaluatedProperties":{"not":{}},"description":"ToolTraceSummary contract."},"Mcp.Tools.TraceDivergence":{"type":"object","required":["a_span","b_span","kind"],"properties":{"a_span":{"anyOf":[{"$ref":"#/$defs/Mcp.Tools.EvidenceSpan"},{"type":"null"}]},"b_span":{"anyOf":[{"$ref":"#/$defs/Mcp.Tools.EvidenceSpan"},{"type":"null"}]},"kind":{"type":"string","enum":["missing","extra","status","attribute","duration"]},"attribute":{"type":"string"}},"unevaluatedProperties":{"not":{}},"description":"TraceDivergence contract."},"Mcp.Tools.TraceGroup":{"type":"object","required":["key","count","example_trace_ids"],"properties":{"key":{"type":"string"},"count":{"type":"integer","format":"int64"},"example_trace_ids":{"type":"array","items":{"$ref":"#/$defs/Common.TraceId"},"maxItems":3}},"unevaluatedProperties":{"not":{}},"description":"TraceGroup contract."},"Mcp.Tools.TraceLinkAvailability":{"type":"object","required":["trace_id","span_id","available"],"properties":{"trace_id":{"$ref":"#/$defs/Common.TraceId"},"span_id":{"$ref":"#/$defs/Common.SpanId"},"available":{"type":"boolean"}},"unevaluatedProperties":{"not":{}},"description":"TraceLinkAvailability contract."},"Mcp.Tools.TraceOmitted":{"type":"object","required":["matched","context"],"properties":{"matched":{"type":"integer","format":"int64"},"context":{"type":"integer","format":"int64"}},"unevaluatedProperties":{"not":{}},"description":"TraceOmitted contract."},"Mcp.Tools.TriageFailure":{"type":"object","required":["failure_id","signature","change","count","baseline_count","affected_traces","services","first_seen"],"properties":{"failure_id":{"$ref":"#/$defs/Common.FailureId"},"signature":{"type":"string"},"change":{"$ref":"#/$defs/Mcp.Tools.FailureChange"},"count":{"type":"integer","format":"int64"},"baseline_count":{"type":"integer","format":"int64"},"affected_traces":{"type":"integer","format":"int64"},"services":{"type":"array","items":{"type":"string"}},"first_seen":{"type":"string","format":"date-time"},"example_trace_id":{"$ref":"#/$defs/Common.TraceId"},"coinciding_release":{"$ref":"#/$defs/Mcp.Tools.FailureRelease"}},"unevaluatedProperties":{"not":{}},"description":"TriageFailure contract."},"Mcp.Tools.TriageInput":{"type":"object","properties":{"lookback_minutes":{"type":"integer","format":"int32","minimum":1,"maximum":43200,"description":"Minutes before `end_time` (or now) when `start_time` is omitted. Default 60; list_releases defaults to 10080 (7 days). Maximum 43200 (30 days)."},"start_time":{"type":"string","format":"date-time","description":"Start of the window (inclusive), RFC 3339."},"end_time":{"type":"string","format":"date-time","description":"End of the window (exclusive), RFC 3339."},"matchers":{"type":"array","items":{"$ref":"#/$defs/Common.TelemetryMatcher"},"maxItems":32,"description":"Attribute predicates that every matched span, resource or log must satisfy; up to 32. Omit for no filtering. discover_attributes lists the keys and values that are recorded."},"cursor":{"$ref":"#/$defs/Common.Cursor"},"service_name":{"type":"string"},"environment":{"type":"string"},"limit":{"type":"integer","format":"int32","minimum":1,"maximum":50,"description":"Ranked failures to return, 1 to 50. Default 10; new failures keep reserved slots ahead of ongoing ones."},"baseline":{"$ref":"#/$defs/Mcp.Tools.AnalysisBaseline"}},"unevaluatedProperties":{"not":{}},"description":"TriageInput contract."},"Mcp.Tools.TriageOutput":{"type":"object","required":["window","coverage","has_more","failures","regressions","releases","silent_services"],"properties":{"window":{"$ref":"#/$defs/Common.ToolWindow"},"coverage":{"$ref":"#/$defs/Common.ToolCoverage"},"page_totals":{"type":"object","additionalProperties":{"type":"integer","format":"int64"},"description":"Item totals by paged collection path. Omitted totals are unknown, not zero."},"has_more":{"type":"boolean","description":"Whether more items exist beyond this page. False only when the result is complete; `next_cursor` is present exactly when this is true."},"next_cursor":{"$ref":"#/$defs/Common.Cursor","description":"Pass as `cursor` to the same tool with the same filters for the next page. Absent on the last page."},"failures":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.TriageFailure"}},"regressions":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.TriageRegression"}},"releases":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.FailureRelease"}},"silent_services":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.SilentService"}},"error":{"$ref":"#/$defs/Mcp.Tools.ToolError"}},"unevaluatedProperties":{"not":{}},"description":"TriageOutput contract."},"Mcp.Tools.TriageRegression":{"type":"object","required":["service","operation","measure","value","baseline_value","denominator","unit"],"properties":{"service":{"type":"string"},"operation":{"type":"string"},"measure":{"type":"string","enum":["error_rate","p95_ms","throughput"]},"value":{"type":"number","format":"double"},"baseline_value":{"type":"number","format":"double"},"denominator":{"type":"integer","format":"int64"},"unit":{"type":"string"}},"unevaluatedProperties":{"not":{}},"description":"TriageRegression contract."},"Mcp.Tools.UpdateAnnotationInput":{"type":"object","required":["id","etag"],"properties":{"id":{"$ref":"#/$defs/Common.ResourceId"},"etag":{"$ref":"#/$defs/Common.ETag","description":"The annotation\'s current `etag`, sent as If-Match."},"labels":{"type":"array","items":{"$ref":"#/$defs/Annotations.AnnotationLabel"},"maxItems":10},"classification":{"$ref":"#/$defs/Annotations.AnnotationClassification"},"text":{"type":"string","minLength":1,"maxLength":2000,"description":"The new note, plain text, at most 2000 characters."}},"unevaluatedProperties":{"not":{}},"description":"Input for update_annotation."},"Mcp.Tools.UpdateFailureStatusInput":{"type":"object","required":["failure_id","etag","status"],"properties":{"failure_id":{"$ref":"#/$defs/Common.FailureId"},"etag":{"$ref":"#/$defs/Common.ETag"},"status":{"$ref":"#/$defs/Mcp.Tools.FailureStatus"},"ignore_until":{"type":"string","format":"date-time"},"assignee":{"type":"string","maxLength":256}},"unevaluatedProperties":{"not":{}},"description":"UpdateFailureStatusInput contract."},"Mcp.Tools.UpdateFailureStatusOutput":{"type":"object","required":["failure"],"properties":{"failure":{"$ref":"#/$defs/Mcp.Tools.FailureSummary"},"error":{"$ref":"#/$defs/Mcp.Tools.ToolError"}},"unevaluatedProperties":{"not":{}},"description":"UpdateFailureStatusOutput contract."},"Mcp.Tools.UpdateSavedQueryInput":{"type":"object","required":["id","etag"],"properties":{"id":{"$ref":"#/$defs/Common.ResourceId"},"etag":{"$ref":"#/$defs/Common.ETag","description":"The saved query\'s current `etag`, sent as If-Match."},"name":{"type":"string","minLength":1,"maxLength":200,"description":"New name, unique within the project; a duplicate is refused with 409."},"description":{"type":"string","maxLength":2000},"filter":{"$ref":"#/$defs/SavedQueries.SavedQueryFilter"}},"unevaluatedProperties":{"not":{}},"description":"Input for update_saved_query."},"Mcp.Tools.VerificationNeeds":{"type":"object","required":["requests","minutes"],"properties":{"requests":{"type":"integer","format":"int64"},"minutes":{"type":"number","format":"double"}},"unevaluatedProperties":{"not":{}},"description":"VerificationNeeds contract."},"Mcp.Tools.VerificationPeriod":{"type":"object","required":["window","occurrences","requests","rate","unit"],"properties":{"window":{"$ref":"#/$defs/Common.ToolWindow"},"occurrences":{"type":"integer","format":"int64"},"requests":{"type":"integer","format":"int64"},"rate":{"anyOf":[{"type":"number","format":"double"},{"type":"null"}]},"unit":{"type":"string","enum":["requests"]}},"unevaluatedProperties":{"not":{}},"description":"VerificationPeriod contract."},"Mcp.Tools.VerifyFixInput":{"type":"object","properties":{"lookback_minutes":{"type":"integer","format":"int32","minimum":1,"maximum":43200,"description":"Minutes before `end_time` (or now) when `start_time` is omitted. Default 60; list_releases defaults to 10080 (7 days). Maximum 43200 (30 days)."},"start_time":{"type":"string","format":"date-time","description":"Start of the window (inclusive), RFC 3339."},"end_time":{"type":"string","format":"date-time","description":"End of the window (exclusive), RFC 3339."},"matchers":{"type":"array","items":{"$ref":"#/$defs/Common.TelemetryMatcher"},"maxItems":32,"description":"Attribute predicates that every matched span, resource or log must satisfy; up to 32. Omit for no filtering. discover_attributes lists the keys and values that are recorded."},"limit":{"type":"integer","format":"int32","minimum":1,"maximum":200,"description":"Items per page. Omit for the tool\'s default: 20 groups for aggregate_telemetry, 100 for list_failures, discover_attributes, get_mcp_stats and the span and log collections of context tools. `has_more` and `next_cursor` continue the same query."},"cursor":{"$ref":"#/$defs/Common.Cursor"},"failure_id":{"$ref":"#/$defs/Common.FailureId"},"since":{"type":"string","format":"date-time"},"release":{"type":"string"},"min_requests":{"type":"integer","format":"int32"},"min_minutes":{"type":"integer","format":"int32"},"verify_id":{"$ref":"#/$defs/Common.VerifyId"}},"unevaluatedProperties":{"not":{}},"description":"VerifyFixInput contract."},"Mcp.Tools.VerifyFixOutput":{"type":"object","required":["window","coverage","has_more","verdict","before","after","recurrences","guardrails","verify_id"],"properties":{"window":{"$ref":"#/$defs/Common.ToolWindow"},"coverage":{"$ref":"#/$defs/Common.ToolCoverage"},"page_totals":{"type":"object","additionalProperties":{"type":"integer","format":"int64"},"description":"Item totals by paged collection path. Omitted totals are unknown, not zero."},"has_more":{"type":"boolean","description":"Whether more items exist beyond this page. False only when the result is complete; `next_cursor` is present exactly when this is true."},"next_cursor":{"$ref":"#/$defs/Common.Cursor","description":"Pass as `cursor` to the same tool with the same filters for the next page. Absent on the last page."},"verdict":{"type":"string","enum":["passed","failed","pending","inconclusive"]},"before":{"$ref":"#/$defs/Mcp.Tools.VerificationPeriod"},"after":{"$ref":"#/$defs/Mcp.Tools.VerificationPeriod"},"needs":{"$ref":"#/$defs/Mcp.Tools.VerificationNeeds"},"recurrences":{"type":"array","items":{"$ref":"#/$defs/Common.TraceId"},"maxItems":3},"guardrails":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.TriageFailure"}},"verify_id":{"$ref":"#/$defs/Common.VerifyId"},"error":{"$ref":"#/$defs/Mcp.Tools.ToolError"}},"unevaluatedProperties":{"not":{}},"description":"VerifyFixOutput contract."},"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.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/Common.AttributeValue","description":"Log body: the OTLP AnyValue, projected exactly like an attribute value"},"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.Metrics.MetricAggregation":{"type":"string","enum":["avg","min","max","sum","count","last","p50","p90","p95","p99"],"description":"Server-side reducer applied to the points falling in one time bucket."},"OTel.Metrics.MetricAttributeMatcher":{"type":"object","required":["key","op"],"properties":{"key":{"type":"string","minLength":1,"maxLength":256},"op":{"$ref":"#/$defs/Common.MatcherOp"},"value":{"$ref":"#/$defs/Common.MatcherValue"},"values":{"type":"array","items":{"$ref":"#/$defs/Common.MatcherValue"},"minItems":1,"maxItems":256},"scope":{"$ref":"#/$defs/Common.MatcherScope"}},"unevaluatedProperties":{"not":{}},"description":"One structured attribute matcher. Tool inputs and saved queries carry\\nmatchers in this form; the HTTP routes keep their `key=value` string\\nparameters, and a client serializes each matcher to one of them."},"OTel.Metrics.MetricBucket":{"type":"object","required":["bucket_start","value","point_count"],"properties":{"bucket_start":{"type":"string","format":"date-time","description":"Inclusive start of the bucket, aligned to the query\'s step from the query\'s start."},"value":{"anyOf":[{"type":"number","format":"double"},{"type":"null"}],"description":"The aggregation applied to the points in this bucket. Null when the bucket\\nholds no value: either no point landed in it, or every point that did was\\nan OTLP `NO_RECORDED_VALUE` marker."},"point_count":{"type":"integer","format":"int64","description":"Number of stored points folded into this bucket."}},"unevaluatedProperties":{"not":{}},"description":"One aggregated time bucket of a metric range query."},"OTel.Metrics.MetricDescriptor":{"type":"object","required":["name","kind","temporality","monotonic","series_count","last_seen"],"properties":{"supported_aggregations":{"type":"array","items":{"$ref":"#/$defs/OTel.Metrics.MetricAggregation"}},"services":{"type":"array","items":{"type":"string"}},"conflicts":{"type":"array","items":{"$ref":"#/$defs/OTel.Metrics.MetricDescriptorConflict"}},"name":{"type":"string","description":"Instrument name, e.g. `http.server.request.duration`."},"kind":{"$ref":"#/$defs/OTel.Metrics.MetricKind"},"temporality":{"$ref":"#/$defs/OTel.Metrics.MetricTemporality"},"monotonic":{"type":"boolean","description":"Whether a sum only ever increases. Meaningless for other kinds."},"unit":{"type":"string","description":"UCUM unit as reported by the producer, e.g. `s` or `{request}`."},"description":{"type":"string","description":"Producer-supplied description of the instrument."},"series_count":{"type":"integer","format":"int64","description":"Number of distinct attribute streams recorded under this name."},"last_seen":{"type":"string","format":"date-time","description":"Timestamp of the most recent point recorded under this name."}},"unevaluatedProperties":{"not":{}},"description":"One metric name recorded for a project, collapsed across all of its series.\\nThis is the catalog entry a client reads before it knows which series exist."},"OTel.Metrics.MetricDescriptorConflict":{"type":"object","required":["kind","services"],"properties":{"kind":{"$ref":"#/$defs/OTel.Metrics.MetricKind"},"unit":{"type":"string"},"services":{"type":"array","items":{"type":"string"}}},"unevaluatedProperties":{"not":{}},"description":"MetricDescriptorConflict contract."},"OTel.Metrics.MetricKind":{"type":"string","enum":["gauge","sum","histogram","exponential_histogram"],"description":"Shape of a stored metric stream."},"OTel.Metrics.MetricMatcherOp":{"type":"string","enum":["eq","neq","in","prefix","contains","exists","gt","gte","lt","lte"],"description":"How a structured attribute matcher compares an attribute value."},"OTel.Metrics.MetricQueryResult":{"type":"object","required":["name","kind","aggregation","step_ms","start_time","end_time","series","truncated"],"properties":{"name":{"type":"string","description":"Instrument name the query ran against."},"kind":{"$ref":"#/$defs/OTel.Metrics.MetricKind"},"unit":{"type":"string"},"aggregation":{"$ref":"#/$defs/OTel.Metrics.MetricAggregation"},"step_ms":{"type":"integer","format":"int64","description":"Bucket width actually used, which may be widened from the requested step."},"start_time":{"type":"string","format":"date-time"},"end_time":{"type":"string","format":"date-time"},"series":{"type":"array","items":{"$ref":"#/$defs/OTel.Metrics.MetricSeriesResult"}},"truncated":{"type":"boolean","description":"Whether streams were dropped because the result exceeded the series limit."}},"unevaluatedProperties":{"not":{}},"description":"The answer to a metric range query: what was asked, and the streams it produced."},"OTel.Metrics.MetricSeries":{"type":"object","required":["series_id","name","kind","attributes","first_seen","last_seen"],"properties":{"new":{"type":"boolean"},"stale":{"type":"boolean"},"series_id":{"type":"string","description":"Stable identifier for this stream, derived from its name, attributes and resource."},"name":{"type":"string","description":"Instrument name this series belongs to."},"kind":{"$ref":"#/$defs/OTel.Metrics.MetricKind"},"attributes":{"type":"array","items":{"$ref":"#/$defs/Common.Attribute"},"description":"The attributes that distinguish this series from others under the same name."},"service_name":{"type":"string"},"unit":{"type":"string"},"first_seen":{"type":"string","format":"date-time"},"last_seen":{"type":"string","format":"date-time"}},"unevaluatedProperties":{"not":{}},"description":"One distinct attribute stream recorded under a metric name."},"OTel.Metrics.MetricSeriesResult":{"type":"object","required":["attributes","buckets"],"properties":{"attributes":{"type":"array","items":{"$ref":"#/$defs/Common.Attribute"},"description":"The grouping key that produced this stream."},"buckets":{"type":"array","items":{"$ref":"#/$defs/OTel.Metrics.MetricBucket"}}},"unevaluatedProperties":{"not":{}},"description":"One result stream of a metric range query. With no `group_by` the whole\\nresult is a single stream whose `attributes` are empty; with `group_by` there\\nis one stream per distinct combination of the requested attribute values."},"OTel.Metrics.MetricTemporality":{"type":"string","enum":["unspecified","delta","cumulative"],"description":"How successive points of a sum or histogram relate to each other."},"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"}},"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.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."},"SavedQueries.SavedLogQueryFilter":{"type":"object","required":["signal"],"properties":{"matchers":{"type":"array","items":{"$ref":"#/$defs/Common.TelemetryMatcher"},"maxItems":32},"signal":{"type":"string","enum":["logs"]},"lookback_minutes":{"type":"integer","format":"int32","minimum":1,"maximum":43200,"description":"Window ending at the time of the run, in minutes. Omitted, the run\'s own `start_time`/`end_time` or the last 60 minutes apply."},"service_name":{"type":"string","minLength":1,"maxLength":256},"severity_min":{"$ref":"#/$defs/OTel.Enums.SeverityNumber"},"session_id":{"$ref":"#/$defs/Common.SessionId"},"trace_id":{"$ref":"#/$defs/Common.TraceId"},"query":{"type":"string","minLength":1,"maxLength":1024,"description":"Substring searched in the log body."}},"unevaluatedProperties":{"not":{}},"description":"A saved filter over log records."},"SavedQueries.SavedLogQueryRun":{"type":"object","required":["signal","items","has_more"],"properties":{"signal":{"type":"string","enum":["logs"]},"items":{"type":"array","items":{"$ref":"#/$defs/OTel.Logs.LogRecord"}},"next_cursor":{"$ref":"#/$defs/Common.Cursor","description":"Pass back as `cursor` for the next page of the same run. Absent on the last page."},"has_more":{"type":"boolean","description":"Whether more items follow this page. `next_cursor` is present exactly when this is true."}},"unevaluatedProperties":{"not":{}},"description":"One page of log records produced by a saved log query."},"SavedQueries.SavedMetricQueryFilter":{"type":"object","required":["signal","metric_name"],"properties":{"signal":{"type":"string","enum":["metrics"]},"lookback_minutes":{"type":"integer","format":"int32","minimum":1,"maximum":43200,"description":"Window ending at the time of the run, in minutes. Omitted, the run\'s own `start_time`/`end_time` or the last 60 minutes apply."},"metric_name":{"type":"string","minLength":1,"maxLength":256},"aggregation":{"$ref":"#/$defs/OTel.Metrics.MetricAggregation","default":"avg"},"step_ms":{"type":"integer","format":"int64","minimum":1,"maximum":86400000,"description":"Bucket width in integer milliseconds.","default":60000},"group_by":{"type":"array","items":{"type":"string"},"maxItems":16,"description":"Attribute keys to split the result by."},"matchers":{"type":"array","items":{"$ref":"#/$defs/OTel.Metrics.MetricAttributeMatcher"},"maxItems":32,"description":"Attribute matchers a series must all satisfy."}},"unevaluatedProperties":{"not":{}},"description":"A saved metric range query."},"SavedQueries.SavedMetricQueryRun":{"type":"object","required":["signal","result"],"properties":{"signal":{"type":"string","enum":["metrics"]},"result":{"$ref":"#/$defs/OTel.Metrics.MetricQueryResult"}},"unevaluatedProperties":{"not":{}},"description":"The range-query result produced by a saved metric query."},"SavedQueries.SavedQuery":{"type":"object","required":["name","filter"],"properties":{"name":{"type":"string","minLength":1,"maxLength":200,"description":"Unique within the project; a duplicate is refused with 409."},"description":{"type":"string","maxLength":2000},"filter":{"$ref":"#/$defs/SavedQueries.SavedQueryFilter"}},"unevaluatedProperties":{"not":{}},"allOf":[{"$ref":"#/$defs/Common.ResourceBase"}],"description":"A named filter for traces, logs or metrics, owned by one project."},"SavedQueries.SavedQueryCreateRequest":{"type":"object","required":["name","filter"],"properties":{"name":{"type":"string","minLength":1,"maxLength":200,"description":"Unique within the project; a duplicate is refused with 409."},"description":{"type":"string","maxLength":2000},"filter":{"$ref":"#/$defs/SavedQueries.SavedQueryFilter"}},"unevaluatedProperties":{"not":{}},"description":"Body of POST /api/v1/saved-queries: the `Lifecycle.Create` members of SavedQuery."},"SavedQueries.SavedQueryFilter":{"oneOf":[{"$ref":"#/$defs/SavedQueries.SavedTraceQueryFilter"},{"$ref":"#/$defs/SavedQueries.SavedLogQueryFilter"},{"$ref":"#/$defs/SavedQueries.SavedMetricQueryFilter"}],"description":"Exactly one structured filter; `signal` selects which."},"SavedQueries.SavedQueryRunRequest":{"type":"object","properties":{"start_time":{"type":"string","format":"date-time","description":"Overrides the saved look-back window together with `end_time`."},"end_time":{"type":"string","format":"date-time"},"limit":{"$ref":"#/$defs/Common.Pagination.PageLimit","description":"Page size for trace and log runs; 100 when omitted.","default":100},"cursor":{"$ref":"#/$defs/Common.Cursor","description":"`next_cursor` of a previous run of the same saved query."}},"unevaluatedProperties":{"not":{}},"description":"Optional overrides for one run of a saved query."},"SavedQueries.SavedQueryRunResult":{"oneOf":[{"$ref":"#/$defs/SavedQueries.SavedTraceQueryRun"},{"$ref":"#/$defs/SavedQueries.SavedLogQueryRun"},{"$ref":"#/$defs/SavedQueries.SavedMetricQueryRun"}],"description":"The result of running a saved query; `signal` matches the query\'s filter."},"SavedQueries.SavedQuerySignal":{"type":"string","enum":["traces","logs","metrics"],"description":"The telemetry signal a saved query reads."},"SavedQueries.SavedQueryUpdateRequest":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200,"description":"New name, unique within the project; a duplicate is refused with 409."},"description":{"type":"string","maxLength":2000},"filter":{"$ref":"#/$defs/SavedQueries.SavedQueryFilter"}},"unevaluatedProperties":{"not":{}},"description":"Body of PATCH /api/v1/saved-queries/{saved_query_id}: the `Lifecycle.Update` members of SavedQuery, each optional; omitted members keep their value."},"SavedQueries.SavedQueryWindow":{"type":"object","properties":{"lookback_minutes":{"type":"integer","format":"int32","minimum":1,"maximum":43200,"description":"Window ending at the time of the run, in minutes. Omitted, the run\'s own `start_time`/`end_time` or the last 60 minutes apply."}},"unevaluatedProperties":{"not":{}},"description":"Look-back window shared by every saved-query filter."},"SavedQueries.SavedTraceQueryFilter":{"type":"object","required":["signal"],"properties":{"matchers":{"type":"array","items":{"$ref":"#/$defs/Common.TelemetryMatcher"},"maxItems":32},"signal":{"type":"string","enum":["traces"]},"lookback_minutes":{"type":"integer","format":"int32","minimum":1,"maximum":43200,"description":"Window ending at the time of the run, in minutes. Omitted, the run\'s own `start_time`/`end_time` or the last 60 minutes apply."},"service_name":{"type":"string","minLength":1,"maxLength":256},"errors_only":{"type":"boolean","description":"Keep only traces with at least one error span."}},"unevaluatedProperties":{"not":{}},"description":"A saved filter over traces."},"SavedQueries.SavedTraceQueryRun":{"type":"object","required":["signal","items","has_more"],"properties":{"signal":{"type":"string","enum":["traces"]},"items":{"type":"array","items":{"$ref":"#/$defs/OTel.Traces.TraceSummary"}},"next_cursor":{"$ref":"#/$defs/Common.Cursor","description":"Pass back as `cursor` for the next page of the same run. Absent on the last page."},"has_more":{"type":"boolean","description":"Whether more items follow this page. `next_cursor` is present exactly when this is true."}},"unevaluatedProperties":{"not":{}},"description":"One page of trace summaries produced by a saved trace query, like list_traces; get_trace reads one full span tree."},"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."},"UpdateFailureStatusRequest":{"type":"object","required":["status"],"properties":{"status":{"$ref":"#/$defs/Mcp.Tools.FailureStatus"},"ignore_until":{"type":"string","format":"date-time"},"assignee":{"type":"string","maxLength":256}},"unevaluatedProperties":{"not":{}},"description":"Mutable status and assignee of a failure; its telemetry fingerprint never changes."},"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":{"$ref":"#/$defs/Common.Cursor","description":"Cursor of the next page, passed back as the `cursor` query parameter. Absent on the last page."}},"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":{"$ref":"#/$defs/Common.Cursor","description":"Cursor of the next page, passed back as the `cursor` query parameter. Absent on the last page."}},"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":{"$ref":"#/$defs/Common.Cursor","description":"Cursor of the next page, passed back as the `cursor` query parameter. Absent on the last page."}},"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":{"$ref":"#/$defs/Common.Cursor","description":"Cursor of the next page, passed back as the `cursor` query parameter. Absent on the last page."}},"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":{"$ref":"#/$defs/Common.Cursor","description":"Cursor of the next page, passed back as the `cursor` query parameter. Absent on the last page."}},"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."},"Operations.AnnotationsApi_create.Request":{"$ref":"#/$defs/Annotations.AnnotationCreateRequest"},"Operations.AnnotationsApi_create.Response.201":{"$ref":"#/$defs/Annotations.Annotation"},"Operations.AnnotationsApi_create.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.AnnotationsApi_create.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.AnnotationsApi_create.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.AnnotationsApi_create.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.AnnotationsApi_create.Response.409":{"$ref":"#/$defs/Common.Errors.ConflictError"},"Operations.AnnotationsApi_create.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.AnnotationsApi_delete.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.AnnotationsApi_delete.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.AnnotationsApi_delete.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.AnnotationsApi_delete.Response.412":{"$ref":"#/$defs/Common.Errors.PreconditionFailedError"},"Operations.AnnotationsApi_delete.Response.428":{"$ref":"#/$defs/Common.Errors.PreconditionRequiredError"},"Operations.AnnotationsApi_delete.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.AnnotationsApi_get.Response.200":{"$ref":"#/$defs/Annotations.Annotation"},"Operations.AnnotationsApi_get.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.AnnotationsApi_get.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.AnnotationsApi_get.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.AnnotationsApi_list.Response.200":{"type":"object","required":["items","has_more"],"properties":{"items":{"type":"array","items":{"$ref":"#/$defs/Annotations.Annotation"},"description":"The items of this page."},"next_cursor":{"$ref":"#/$defs/Common.Cursor","description":"Cursor of the next page, passed back as the `cursor` query parameter. Absent on the last page."},"has_more":{"type":"boolean","description":"Whether more items follow this page. `next_cursor` is present exactly when this is true."}},"unevaluatedProperties":{"not":{}},"description":"One page of a list operation."},"Operations.AnnotationsApi_list.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.AnnotationsApi_list.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.AnnotationsApi_list.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.AnnotationsApi_update.Request":{"$ref":"#/$defs/Annotations.AnnotationUpdateRequest"},"Operations.AnnotationsApi_update.Response.200":{"$ref":"#/$defs/Annotations.Annotation"},"Operations.AnnotationsApi_update.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.AnnotationsApi_update.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.AnnotationsApi_update.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.AnnotationsApi_update.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.AnnotationsApi_update.Response.412":{"$ref":"#/$defs/Common.Errors.PreconditionFailedError"},"Operations.AnnotationsApi_update.Response.428":{"$ref":"#/$defs/Common.Errors.PreconditionRequiredError"},"Operations.AnnotationsApi_update.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.FailuresApi_update.Request":{"$ref":"#/$defs/UpdateFailureStatusRequest"},"Operations.FailuresApi_update.Response.200":{"$ref":"#/$defs/Mcp.Tools.UpdateFailureStatusOutput"},"Operations.FailuresApi_update.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.FailuresApi_update.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.FailuresApi_update.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.FailuresApi_update.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.FailuresApi_update.Response.412":{"$ref":"#/$defs/Common.Errors.PreconditionFailedError"},"Operations.FailuresApi_update.Response.428":{"$ref":"#/$defs/Common.Errors.PreconditionRequiredError"},"Operations.FailuresApi_update.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.LogsApi_list.Response.200":{"type":"object","required":["items","has_more"],"properties":{"items":{"type":"array","items":{"$ref":"#/$defs/OTel.Logs.LogRecord"},"description":"The items of this page."},"next_cursor":{"$ref":"#/$defs/Common.Cursor","description":"Cursor of the next page, passed back as the `cursor` query parameter. Absent on the last page."},"has_more":{"type":"boolean","description":"Whether more items follow this page. `next_cursor` is present exactly when this is true."}},"unevaluatedProperties":{"not":{}},"description":"One page of a list operation."},"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.MetricsApi_list.Response.200":{"type":"object","required":["items","has_more"],"properties":{"items":{"type":"array","items":{"$ref":"#/$defs/OTel.Metrics.MetricDescriptor"},"description":"The items of this page."},"next_cursor":{"$ref":"#/$defs/Common.Cursor","description":"Cursor of the next page, passed back as the `cursor` query parameter. Absent on the last page."},"has_more":{"type":"boolean","description":"Whether more items follow this page. `next_cursor` is present exactly when this is true."}},"unevaluatedProperties":{"not":{}},"description":"One page of a list operation."},"Operations.MetricsApi_list.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.MetricsApi_list.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.MetricsApi_list.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.MetricsApi_listSeries.Response.200":{"type":"object","required":["items","has_more"],"properties":{"items":{"type":"array","items":{"$ref":"#/$defs/OTel.Metrics.MetricSeries"},"description":"The items of this page."},"next_cursor":{"$ref":"#/$defs/Common.Cursor","description":"Cursor of the next page, passed back as the `cursor` query parameter. Absent on the last page."},"has_more":{"type":"boolean","description":"Whether more items follow this page. `next_cursor` is present exactly when this is true."}},"unevaluatedProperties":{"not":{}},"description":"One page of a list operation."},"Operations.MetricsApi_listSeries.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.MetricsApi_listSeries.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.MetricsApi_listSeries.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.MetricsApi_listSeries.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.MetricsApi_query.Response.200":{"$ref":"#/$defs/OTel.Metrics.MetricQueryResult"},"Operations.MetricsApi_query.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.MetricsApi_query.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.MetricsApi_query.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.MetricsApi_query.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.SavedQueriesApi_create.Request":{"$ref":"#/$defs/SavedQueries.SavedQueryCreateRequest"},"Operations.SavedQueriesApi_create.Response.201":{"$ref":"#/$defs/SavedQueries.SavedQuery"},"Operations.SavedQueriesApi_create.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.SavedQueriesApi_create.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.SavedQueriesApi_create.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.SavedQueriesApi_create.Response.409":{"$ref":"#/$defs/Common.Errors.ConflictError"},"Operations.SavedQueriesApi_create.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.SavedQueriesApi_delete.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.SavedQueriesApi_delete.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.SavedQueriesApi_delete.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.SavedQueriesApi_delete.Response.412":{"$ref":"#/$defs/Common.Errors.PreconditionFailedError"},"Operations.SavedQueriesApi_delete.Response.428":{"$ref":"#/$defs/Common.Errors.PreconditionRequiredError"},"Operations.SavedQueriesApi_delete.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.SavedQueriesApi_get.Response.200":{"$ref":"#/$defs/SavedQueries.SavedQuery"},"Operations.SavedQueriesApi_get.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.SavedQueriesApi_get.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.SavedQueriesApi_get.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.SavedQueriesApi_list.Response.200":{"type":"object","required":["items","has_more"],"properties":{"items":{"type":"array","items":{"$ref":"#/$defs/SavedQueries.SavedQuery"},"description":"The items of this page."},"next_cursor":{"$ref":"#/$defs/Common.Cursor","description":"Cursor of the next page, passed back as the `cursor` query parameter. Absent on the last page."},"has_more":{"type":"boolean","description":"Whether more items follow this page. `next_cursor` is present exactly when this is true."}},"unevaluatedProperties":{"not":{}},"description":"One page of a list operation."},"Operations.SavedQueriesApi_list.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.SavedQueriesApi_list.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.SavedQueriesApi_list.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.SavedQueriesApi_run.Request":{"$ref":"#/$defs/SavedQueries.SavedQueryRunRequest"},"Operations.SavedQueriesApi_run.Response.200":{"$ref":"#/$defs/SavedQueries.SavedQueryRunResult"},"Operations.SavedQueriesApi_run.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.SavedQueriesApi_run.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.SavedQueriesApi_run.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.SavedQueriesApi_run.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.SavedQueriesApi_update.Request":{"$ref":"#/$defs/SavedQueries.SavedQueryUpdateRequest"},"Operations.SavedQueriesApi_update.Response.200":{"$ref":"#/$defs/SavedQueries.SavedQuery"},"Operations.SavedQueriesApi_update.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.SavedQueriesApi_update.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.SavedQueriesApi_update.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.SavedQueriesApi_update.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.SavedQueriesApi_update.Response.409":{"$ref":"#/$defs/Common.Errors.ConflictError"},"Operations.SavedQueriesApi_update.Response.412":{"$ref":"#/$defs/Common.Errors.PreconditionFailedError"},"Operations.SavedQueriesApi_update.Response.428":{"$ref":"#/$defs/Common.Errors.PreconditionRequiredError"},"Operations.SavedQueriesApi_update.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"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":"The items of this page."},"next_cursor":{"$ref":"#/$defs/Common.Cursor","description":"Cursor of the next page, passed back as the `cursor` query parameter. Absent on the last page."},"has_more":{"type":"boolean","description":"Whether more items follow this page. `next_cursor` is present exactly when this is true."}},"unevaluatedProperties":{"not":{}},"description":"One page of a list operation."},"Operations.SessionsApi_getTraces.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"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":"The items of this page."},"next_cursor":{"$ref":"#/$defs/Common.Cursor","description":"Cursor of the next page, passed back as the `cursor` query parameter. Absent on the last page."},"has_more":{"type":"boolean","description":"Whether more items follow this page. `next_cursor` is present exactly when this is true."}},"unevaluatedProperties":{"not":{}},"description":"One page of a list operation."},"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":"The items of this page."},"next_cursor":{"$ref":"#/$defs/Common.Cursor","description":"Cursor of the next page, passed back as the `cursor` query parameter. Absent on the last page."},"has_more":{"type":"boolean","description":"Whether more items follow this page. `next_cursor` is present exactly when this is true."}},"unevaluatedProperties":{"not":{}},"description":"One page of a list operation."},"Operations.TracesApi_getSpans.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"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":"The items of this page."},"next_cursor":{"$ref":"#/$defs/Common.Cursor","description":"Cursor of the next page, passed back as the `cursor` query parameter. Absent on the last page."},"has_more":{"type":"boolean","description":"Whether more items follow this page. `next_cursor` is present exactly when this is true."}},"unevaluatedProperties":{"not":{}},"description":"One page of a list operation."},"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.analysis_aggregate_telemetry.Request":{"$ref":"#/$defs/Mcp.Tools.AggregateTelemetryInput"},"Operations.analysis_aggregate_telemetry.Response.200":{"$ref":"#/$defs/Mcp.Tools.AggregateTelemetryOutput"},"Operations.analysis_aggregate_telemetry.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.analysis_aggregate_telemetry.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.analysis_aggregate_telemetry.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.analysis_aggregate_telemetry.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.analysis_check_telemetry_health.Request":{"$ref":"#/$defs/Mcp.Tools.CheckTelemetryHealthInput"},"Operations.analysis_check_telemetry_health.Response.200":{"$ref":"#/$defs/Mcp.Tools.CheckTelemetryHealthOutput"},"Operations.analysis_check_telemetry_health.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.analysis_check_telemetry_health.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.analysis_check_telemetry_health.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.analysis_check_telemetry_health.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.analysis_ci_log.Request":{"$ref":"#/$defs/Mcp.Tools.CiLogInput"},"Operations.analysis_ci_log.Response.200":{"$ref":"#/$defs/Mcp.Tools.CiLogOutput"},"Operations.analysis_ci_log.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.analysis_ci_log.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.analysis_ci_log.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.analysis_ci_log.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.analysis_compare_groups.Request":{"$ref":"#/$defs/Mcp.Tools.CompareGroupsInput"},"Operations.analysis_compare_groups.Response.200":{"$ref":"#/$defs/Mcp.Tools.CompareGroupsOutput"},"Operations.analysis_compare_groups.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.analysis_compare_groups.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.analysis_compare_groups.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.analysis_compare_groups.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.analysis_compare_traces.Request":{"$ref":"#/$defs/Mcp.Tools.CompareTracesInput"},"Operations.analysis_compare_traces.Response.200":{"$ref":"#/$defs/Mcp.Tools.CompareTracesOutput"},"Operations.analysis_compare_traces.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.analysis_compare_traces.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.analysis_compare_traces.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.analysis_compare_traces.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.analysis_discover_attributes.Request":{"$ref":"#/$defs/Mcp.Tools.DiscoverAttributesInput"},"Operations.analysis_discover_attributes.Response.200":{"$ref":"#/$defs/Mcp.Tools.DiscoverAttributesOutput"},"Operations.analysis_discover_attributes.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.analysis_discover_attributes.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.analysis_discover_attributes.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.analysis_discover_attributes.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.analysis_display_mcp_dashboard.Request":{"$ref":"#/$defs/Mcp.Tools.DisplayMcpDashboardInput"},"Operations.analysis_display_mcp_dashboard.Response.200":{"$ref":"#/$defs/Mcp.Tools.DisplayMcpDashboardOutput"},"Operations.analysis_display_mcp_dashboard.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.analysis_display_mcp_dashboard.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.analysis_display_mcp_dashboard.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.analysis_display_mcp_dashboard.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.analysis_display_traces.Request":{"$ref":"#/$defs/Mcp.Tools.DisplayTracesInput"},"Operations.analysis_display_traces.Response.200":{"$ref":"#/$defs/Mcp.Tools.DisplayTracesOutput"},"Operations.analysis_display_traces.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.analysis_display_traces.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.analysis_display_traces.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.analysis_display_traces.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.analysis_fetch_telemetry.Request":{"$ref":"#/$defs/Mcp.Tools.FetchTelemetryInput"},"Operations.analysis_fetch_telemetry.Response.200":{"$ref":"#/$defs/Mcp.Tools.FetchTelemetryOutput"},"Operations.analysis_fetch_telemetry.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.analysis_fetch_telemetry.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.analysis_fetch_telemetry.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.analysis_fetch_telemetry.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.analysis_get_agent_run.Request":{"$ref":"#/$defs/Mcp.Tools.GetAgentRunInput"},"Operations.analysis_get_agent_run.Response.200":{"$ref":"#/$defs/Mcp.Tools.GetAgentRunOutput"},"Operations.analysis_get_agent_run.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.analysis_get_agent_run.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.analysis_get_agent_run.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.analysis_get_agent_run.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.analysis_get_failure_context.Request":{"$ref":"#/$defs/Mcp.Tools.GetFailureContextInput"},"Operations.analysis_get_failure_context.Response.200":{"$ref":"#/$defs/Mcp.Tools.GetFailureContextOutput"},"Operations.analysis_get_failure_context.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.analysis_get_failure_context.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.analysis_get_failure_context.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.analysis_get_failure_context.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.analysis_get_mcp_stats.Request":{"$ref":"#/$defs/Mcp.Tools.GetMcpStatsInput"},"Operations.analysis_get_mcp_stats.Response.200":{"$ref":"#/$defs/Mcp.Tools.GetMcpStatsOutput"},"Operations.analysis_get_mcp_stats.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.analysis_get_mcp_stats.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.analysis_get_mcp_stats.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.analysis_get_mcp_stats.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.analysis_get_metric_series.Request":{"$ref":"#/$defs/Mcp.Tools.GetMetricSeriesInput"},"Operations.analysis_get_metric_series.Response.200":{"$ref":"#/$defs/Mcp.Tools.GetMetricSeriesOutput"},"Operations.analysis_get_metric_series.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.analysis_get_metric_series.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.analysis_get_metric_series.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.analysis_get_metric_series.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.analysis_get_service_map.Request":{"$ref":"#/$defs/Mcp.Tools.GetServiceMapInput"},"Operations.analysis_get_service_map.Response.200":{"$ref":"#/$defs/Mcp.Tools.GetServiceMapOutput"},"Operations.analysis_get_service_map.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.analysis_get_service_map.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.analysis_get_service_map.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.analysis_get_service_map.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.analysis_get_trace.Request":{"$ref":"#/$defs/Mcp.Tools.GetTraceInput"},"Operations.analysis_get_trace.Response.200":{"$ref":"#/$defs/Mcp.Tools.GetTraceOutput"},"Operations.analysis_get_trace.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.analysis_get_trace.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.analysis_get_trace.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.analysis_get_trace.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.analysis_list_failures.Request":{"$ref":"#/$defs/Mcp.Tools.ListFailuresInput"},"Operations.analysis_list_failures.Response.200":{"$ref":"#/$defs/Mcp.Tools.ListFailuresOutput"},"Operations.analysis_list_failures.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.analysis_list_failures.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.analysis_list_failures.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.analysis_list_failures.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.analysis_list_metrics.Request":{"$ref":"#/$defs/Mcp.Tools.ListMetricsInput"},"Operations.analysis_list_metrics.Response.200":{"$ref":"#/$defs/Mcp.Tools.ListMetricsOutput"},"Operations.analysis_list_metrics.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.analysis_list_metrics.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.analysis_list_metrics.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.analysis_list_metrics.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.analysis_list_releases.Request":{"$ref":"#/$defs/Mcp.Tools.ListReleasesInput"},"Operations.analysis_list_releases.Response.200":{"$ref":"#/$defs/Mcp.Tools.ListReleasesOutput"},"Operations.analysis_list_releases.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.analysis_list_releases.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.analysis_list_releases.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.analysis_list_releases.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.analysis_list_saved_queries.Request":{"$ref":"#/$defs/Mcp.Tools.ListSavedQueriesInput"},"Operations.analysis_list_saved_queries.Response.200":{"$ref":"#/$defs/Mcp.Tools.ListSavedQueriesOutput"},"Operations.analysis_list_saved_queries.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.analysis_list_saved_queries.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.analysis_list_saved_queries.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.analysis_list_saved_queries.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.analysis_list_sessions.Request":{"$ref":"#/$defs/Mcp.Tools.ListSessionsInput"},"Operations.analysis_list_sessions.Response.200":{"$ref":"#/$defs/Mcp.Tools.ListSessionsOutput"},"Operations.analysis_list_sessions.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.analysis_list_sessions.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.analysis_list_sessions.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.analysis_list_sessions.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.analysis_list_traces.Request":{"$ref":"#/$defs/Mcp.Tools.ListTracesInput"},"Operations.analysis_list_traces.Response.200":{"$ref":"#/$defs/Mcp.Tools.ListTracesOutput"},"Operations.analysis_list_traces.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.analysis_list_traces.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.analysis_list_traces.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.analysis_list_traces.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.analysis_query_metric.Request":{"$ref":"#/$defs/Mcp.Tools.QueryMetricInput"},"Operations.analysis_query_metric.Response.200":{"$ref":"#/$defs/Mcp.Tools.QueryMetricOutput"},"Operations.analysis_query_metric.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.analysis_query_metric.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.analysis_query_metric.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.analysis_query_metric.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.analysis_run_saved_query.Request":{"$ref":"#/$defs/Mcp.Tools.RunSavedQueryInput"},"Operations.analysis_run_saved_query.Response.200":{"$ref":"#/$defs/Mcp.Tools.RunSavedQueryOutput"},"Operations.analysis_run_saved_query.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.analysis_run_saved_query.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.analysis_run_saved_query.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.analysis_run_saved_query.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.analysis_search_logs.Request":{"$ref":"#/$defs/Mcp.Tools.SearchLogsInput"},"Operations.analysis_search_logs.Response.200":{"$ref":"#/$defs/Mcp.Tools.SearchLogsOutput"},"Operations.analysis_search_logs.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.analysis_search_logs.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.analysis_search_logs.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.analysis_search_logs.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.analysis_triage.Request":{"$ref":"#/$defs/Mcp.Tools.TriageInput"},"Operations.analysis_triage.Response.200":{"$ref":"#/$defs/Mcp.Tools.TriageOutput"},"Operations.analysis_triage.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.analysis_triage.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.analysis_triage.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.analysis_triage.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.analysis_verify_fix.Request":{"$ref":"#/$defs/Mcp.Tools.VerifyFixInput"},"Operations.analysis_verify_fix.Response.200":{"$ref":"#/$defs/Mcp.Tools.VerifyFixOutput"},"Operations.analysis_verify_fix.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.analysis_verify_fix.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.analysis_verify_fix.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.analysis_verify_fix.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"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"}}')};function By(e){if(typeof e!=`object`||!e||Array.isArray(e))throw Error(`Published Qyl JSON Schema root must be an object`);let t=e,n=Uy(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=Vy(t,a),r={};if(n.length>0){let e;for(let t of n){let n=Wy(r.properties),i=Wy(t.properties),a=Gy(r.required),o=Gy(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={...Wy(r.properties),...c(t.properties)};let i=[...new Set([...Gy(r.required),...Gy(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),r},s=e=>Array.isArray(e)?e.map(s):typeof e==`object`&&e?o(e):e,c=e=>{let t=Wy(e);return Object.fromEntries(Object.entries(t).map(([e,t])=>[e,s(t)]))},l=e=>!Ky(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 Vy(e,t){if(e.type!==`object`||!Array.isArray(e.allOf))return[];let n=e.allOf.map(e=>Hy(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 Hy(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 Uy(e,t){if(typeof e!=`object`||!e||Array.isArray(e))throw Error(`Published Qyl JSON Schema ${t} must be an object`);return e}function Wy(e){return typeof e==`object`&&e&&!Array.isArray(e)?e:{}}function Gy(e){return Array.isArray(e)&&e.every(e=>typeof e==`string`)?e:[]}function Ky(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 qy=By(zy),Jy=Uy(qy.$defs,`$defs`),Yy=new Map;function Q(e){return Xy(e)}function Xy(e){let t=Yy.get(e);if(t)return t;if(!Object.hasOwn(Jy,e))throw Error(`Published Qyl JSON Schema has no '${e}' definition`);let n=sp({$schema:qy.$schema,$defs:Jy,$ref:`#/$defs/${e}`});return Yy.set(e,n),n}Object.freeze(Object.keys(Jy).sort()),typeof zy.$id==`string`&&zy.$id,Q(`OTel.Traces.Span`),Q(`OTel.Traces.TraceSummary`),Q(`OTel.Traces.Trace`),Q(`OTel.Logs.LogRecord`),Q(`Domains.Observe.Session.SessionEntity`),Q(`Operations.TracesApi_list.Response.200`),Q(`Operations.TracesApi_getSpans.Response.200`),Q(`Operations.SessionsApi_getTraces.Response.200`),Q(`Operations.LogsApi_list.Response.200`),Q(`Operations.SessionsApi_list.Response.200`),Q(`OTel.Metrics.MetricDescriptor`),Q(`OTel.Metrics.MetricSeries`),Q(`Operations.MetricsApi_query.Response.200`),Q(`Operations.MetricsApi_list.Response.200`),Q(`Operations.MetricsApi_listSeries.Response.200`),Q(`Common.Errors.ProblemDetails`),Q(`Mcp.Tools.McpDataMode`),Q(`Mcp.Tools.McpDashboardStats`);var Zy=Q(`Mcp.Tools.DisplayTracesInput`),Qy=Q(`Mcp.Tools.DisplayTracesOutput`);Q(`Mcp.Tools.DisplayMcpDashboardInput`),Q(`Mcp.Tools.DisplayMcpDashboardOutput`),Q(`Mcp.Tools.ToolError`),Q(`Mcp.Tools.ListMetricsInput`),Q(`Mcp.Tools.ListMetricsOutput`),Q(`Mcp.Tools.GetMetricSeriesInput`),Q(`Mcp.Tools.GetMetricSeriesOutput`),Q(`Mcp.Tools.QueryMetricInput`),Q(`Mcp.Tools.QueryMetricOutput`),Q(`Mcp.Tools.ListTracesInput`),Q(`Mcp.Tools.ListTracesOutput`),Q(`Mcp.Tools.GetTraceInput`),Q(`Mcp.Tools.GetTraceOutput`),Q(`Mcp.Tools.ListSessionsInput`),Q(`Mcp.Tools.ListSessionsOutput`),Q(`Mcp.Tools.SearchLogsInput`),Q(`Mcp.Tools.SearchLogsOutput`),Q(`Mcp.Tools.FetchTelemetryInput`);var $y=Q(`Mcp.Tools.FetchTelemetryOutput`);Q(`Mcp.Tools.CiRunSummary`),Q(`Mcp.Tools.CiPhase`),Q(`Mcp.Tools.CiLogOutput`),Q(`Runner.RunnerResourceState`),Q(`Runner.RunnerLogLine`),Q(`Workbench.WorkbenchSessionId`),Q(`Workbench.WorkbenchWorkspaceId`),Q(`Workbench.WorkbenchServerId`),Q(`Workbench.WorkbenchExecutionId`),Q(`Workbench.WorkbenchEvaluationRunId`),Q(`Workbench.WorkbenchTestCaseId`),Q(`Workbench.WorkbenchSuiteId`),Q(`Workbench.WorkbenchEvaluationExportId`),Q(`Workbench.WorkbenchPrincipalIdentity`),Q(`Workbench.WorkbenchSession`),Q(`Workbench.WorkbenchSessionBootstrapResponse`),Q(`Workbench.WorkbenchWorkspace`),Q(`Workbench.WorkbenchWorkspaceCreateRequest`),Q(`Workbench.WorkbenchWorkspaceUpdateRequest`),Q(`Workbench.WorkbenchWorkspaceListResponse`),Q(`Workbench.WorkbenchToolInputMode`),Q(`Workbench.WorkbenchWorkspacePreferences`),Q(`Workbench.WorkbenchWorkspacePreferencesUpdateRequest`),Q(`Workbench.WorkbenchTransportKind`),Q(`Workbench.WorkbenchHeaderSecretScheme`),Q(`Workbench.WorkbenchSecretReference`),Q(`Workbench.WorkbenchEnvironmentSecretReference`),Q(`Workbench.WorkbenchHeaderSecretReference`),Q(`Workbench.WorkbenchStdioServerConfiguration`),Q(`Workbench.WorkbenchStreamableHttpServerConfiguration`),Q(`Workbench.WorkbenchBuiltinServerConfiguration`),Q(`Workbench.WorkbenchServerConfiguration`),Q(`Workbench.WorkbenchErrorCategory`),Q(`Workbench.WorkbenchError`),Q(`Workbench.WorkbenchInitializationSnapshot`),Q(`Workbench.WorkbenchConnectionStatus`),Q(`Workbench.WorkbenchConnectionSnapshot`),Q(`Workbench.WorkbenchServer`),Q(`Workbench.WorkbenchServerCreateRequest`),Q(`Workbench.WorkbenchServerUpdateRequest`),Q(`Workbench.WorkbenchServerListResponse`),Q(`Workbench.WorkbenchServerActionAccepted`),Q(`Workbench.WorkbenchDiscoveryCollection`),Q(`Workbench.WorkbenchDiscoverySnapshot`),Q(`Workbench.WorkbenchProtocolDirection`),Q(`Workbench.WorkbenchProtocolEventKind`),Q(`Workbench.WorkbenchProtocolEvent`),Q(`Workbench.WorkbenchProtocolEventPage`),Q(`Workbench.WorkbenchProtocolEvents`),Q(`Workbench.WorkbenchExecutionEffect`),Q(`Workbench.WorkbenchExecutionStatus`),Q(`Workbench.WorkbenchExecutionConfirmationRequest`),Q(`Workbench.WorkbenchExecutionConfirmationEvidence`),Q(`Workbench.WorkbenchExecutionRequest`),Q(`Workbench.WorkbenchExecutionTokenUsage`),Q(`Workbench.WorkbenchExecutionCost`),Q(`Workbench.WorkbenchTelemetryCorrelation`),Q(`Workbench.WorkbenchExecutionUpdateEvents`),Q(`Workbench.WorkbenchExecutionRecord`),Q(`Workbench.WorkbenchExecutionAccepted`),Q(`Workbench.WorkbenchExecutionCancelRequest`),Q(`Workbench.WorkbenchExecutionPage`),Q(`Workbench.WorkbenchTelemetryAvailability`),Q(`Workbench.WorkbenchTelemetrySignalAvailability`),Q(`Workbench.WorkbenchTelemetrySignalSummary`),Q(`Workbench.WorkbenchExecutionTelemetryResponse`),Q(`Workbench.WorkbenchAssertionStatus`),Q(`Workbench.WorkbenchStatusAssertion`),Q(`Workbench.WorkbenchExactAssertion`),Q(`Workbench.WorkbenchPartialAssertion`),Q(`Workbench.WorkbenchSchemaAssertion`),Q(`Workbench.WorkbenchPatternAssertion`),Q(`Workbench.WorkbenchLatencyAssertion`),Q(`Workbench.WorkbenchTestAssertion`),Q(`Workbench.WorkbenchTestCase`),Q(`Workbench.WorkbenchTestCaseCreateRequest`),Q(`Workbench.WorkbenchTestCaseUpdateRequest`),Q(`Workbench.WorkbenchTestCasePage`),Q(`Workbench.WorkbenchTestSuite`),Q(`Workbench.WorkbenchTestSuiteCreateRequest`),Q(`Workbench.WorkbenchTestSuiteUpdateRequest`),Q(`Workbench.WorkbenchTestSuitePage`),Q(`Workbench.WorkbenchEvaluationResultStatus`),Q(`Workbench.WorkbenchEvaluationRunStatus`),Q(`Workbench.WorkbenchRegressionStatus`),Q(`Workbench.WorkbenchEvaluationRunRequest`),Q(`Workbench.WorkbenchTestCaseRunRequest`),Q(`Workbench.WorkbenchSuiteRunRequest`),Q(`Workbench.WorkbenchAssertionResult`),Q(`Workbench.WorkbenchEvaluationTestCaseSnapshot`),Q(`Workbench.WorkbenchEvaluationSuiteSnapshot`),Q(`Workbench.WorkbenchEvaluationTestResult`),Q(`Workbench.WorkbenchEvaluationSummary`),Q(`Workbench.WorkbenchEvaluationRun`),Q(`Workbench.WorkbenchEvaluationRunAccepted`),Q(`Workbench.WorkbenchEvaluationRunPage`),Q(`Workbench.WorkbenchEvaluationComparisonRequest`),Q(`Workbench.WorkbenchEvaluationTestComparison`),Q(`Workbench.WorkbenchEvaluationRunComparison`),Q(`Workbench.WorkbenchEvaluationExportFormat`),Q(`Workbench.WorkbenchEvaluationExportStatus`),Q(`Workbench.WorkbenchEvaluationExportRequest`),Q(`Workbench.WorkbenchEvaluationExport`),Q(`Workbench.WorkbenchEvaluationJsonExportPayload`),Q(`Workbench.WorkbenchEvaluationReportExportPayload`),Q(`Workbench.WorkbenchEvaluationExportPayload`),Q(`Workbench.WorkbenchEvaluationExportArtifact`),Q(`Workbench.WorkbenchEvaluationExportAccepted`),Q(`Common.Errors.UnauthorizedError`),Q(`Common.Errors.ForbiddenError`),Q(`Common.Errors.NotFoundError`),Q(`Common.Errors.ValidationError`),Q(`Common.Errors.ConflictError`),Q(`Common.Errors.BadGatewayError`),Q(`Common.Errors.ServiceUnavailableError`),Q(`Common.Errors.InternalServerError`);function eb(e,t){if(e===null)return t.emptyValue();if(typeof e==`string`)return t.stringValue(e);if(typeof e==`boolean`)return t.boolValue(e);if(Array.isArray(e))return t.arrayValue(e);switch(e.type){case`int`:return t.int(e);case`double`:return t.double(e);case`bytes`:return t.bytes(e);case`kvlist`:return t.kvlist(e);default:throw TypeError(`AttributeObjectValue has unknown type tag '${String(e.type)}'.`)}}function tb(e){return eb(e,{emptyValue:()=>null,stringValue:e=>e,boolValue:e=>e,arrayValue:e=>e.map(tb),int:e=>e.value,double:e=>e.value,bytes:e=>({type:`bytes`,base64:e.base64}),kvlist:e=>Object.fromEntries(Object.entries(e.values).map(([e,t])=>[e,tb(t)]))})}function nb(e){let t=tb(e);return t===null?`null`:typeof t==`string`?t:typeof t==`boolean`||typeof t==`number`?String(t):JSON.stringify(t)}var rb=`qyl/traceQuery`;function ib(e,t){let n=Zy.safeParse(e._meta?.[rb]);return n.success?n.data:t}function ab(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}}function ob(e,t){if(e.replaceChildren(),e.hidden=t===void 0,!t)return;let n=document.createElement(`h3`);n.textContent=t.comparable?`Execution comparison`:t.reason??`Executions are not comparable`,e.appendChild(n);let r=t.first_divergence;if(r){let t=document.createElement(`p`);t.textContent=`First divergence: ${r.kind}${r.attribute?` (${r.attribute})`:``}`,e.appendChild(t)}for(let n of t.aligned){let t=document.createElement(`div`);t.className=`comparison-pair`,(n.a_span.span_id===r?.a_span?.span_id||n.b_span.span_id===r?.b_span?.span_id)&&t.classList.add(`first-divergence`);for(let[e,r]of[[`A`,n.a_span],[`B`,n.b_span]]){let n=document.createElement(`div`);n.className=`comparison-span`,n.textContent=`${e}: ${r.service} / ${r.name} · ${r.status} · ${r.duration_ms} ms`,t.appendChild(n)}e.appendChild(t)}for(let n of t.unmatched){let t=document.createElement(`p`);t.textContent=`Unmatched: ${n.service} / ${n.name} · ${n.status} · ${n.duration_ms} ms`,e.appendChild(t)}}function sb(e,t,n){let r=document.createElement(`section`);r.className=`trace-actions`;let i=document.createElement(`button`);i.type=`button`,i.textContent=`Notes`;let a=document.createElement(`button`);a.type=`button`,a.textContent=`Bookmark`;let o=document.createElement(`div`);o.className=`annotation-editor`,o.hidden=!0;let s=document.createElement(`p`);s.setAttribute(`role`,`status`);let c=()=>t()?{kind:`span`,trace_id:e.trace_id,span_id:t()}:{kind:`trace`,trace_id:e.trace_id};async function l(e,t){let r=await n({name:e,arguments:t});if(r.isError)throw Error(Fy(r)??`Unable to save annotation`);let i=Q(`Mcp.Tools.AnnotationOutput`).parse(r.structuredContent).annotation;if(!i)throw Error(`Collector did not return the saved annotation`);return i}function u(e){let t=document.createElement(`form`),n=document.createElement(`textarea`);n.maxLength=2e3,n.required=!0,n.setAttribute(`aria-label`,`Annotation text`),n.value=e?.text??``;let r=document.createElement(`input`);r.setAttribute(`aria-label`,`Labels separated by commas`),r.placeholder=`Labels, separated by commas`,r.value=e?.labels?.join(`, `)??``;let i=document.createElement(`select`);i.setAttribute(`aria-label`,`Annotation classification`);for(let e of[`note`,`hypothesis`,`finding`,`rejected`]){let t=document.createElement(`option`);t.value=e,t.textContent=e,i.appendChild(t)}i.value=e?.classification??`note`;let a=document.createElement(`button`);a.type=`submit`,a.textContent=e?`Update note`:`Add note`,t.append(n,r,i,a);let o=crypto.randomUUID();return t.addEventListener(`submit`,d=>{(async()=>{d.preventDefault(),a.disabled=!0;try{let a={text:n.value,labels:r.value.split(`,`).map(e=>e.trim()).filter(Boolean),classification:i.value};if(a.labels.length>10||a.labels.some(e=>e.length>64))throw Error(`Use at most 10 labels of at most 64 characters.`);let d=e?await l(`update_annotation`,{id:e.id,etag:e.etag,...a}):await l(`create_annotation`,{target:c(),idempotency_key:o,...a});s.textContent=`Note saved.`,t.replaceWith(u(d))}catch(e){s.textContent=e instanceof Error?e.message:String(e)}finally{a.disabled=!1}})()}),t}return i.addEventListener(`click`,()=>{(async()=>{if(o.hidden=!o.hidden,!o.hidden&&!(o.childElementCount>0)){o.replaceChildren(u());try{let t=await n({name:`get_trace`,arguments:{trace_id:e.trace_id,max_spans:1}});if(t.isError)throw Error(Fy(t)??`Unable to read notes`);let r=Q(`Mcp.Tools.GetTraceOutput`).parse(t.structuredContent);for(let e of r.annotations??[])o.appendChild(u(e))}catch(e){s.textContent=e instanceof Error?e.message:String(e)}}})()}),a.addEventListener(`click`,()=>{(async()=>{a.disabled=!0;try{await l(`create_annotation`,{target:c(),text:`Bookmarked execution`,labels:[`bookmark`],classification:`note`}),s.textContent=`Bookmark saved.`}catch(e){s.textContent=e instanceof Error?e.message:String(e)}finally{a.disabled=!1}})()}),r.append(i,a,s,o),r}var $={traceQuery:Zy.parse({}),traces:[],comparison:void 0,selectedTraceId:void 0,selectedSpanId:void 0,activeTab:`waterfall`,logsCache:new Map,busy:!1,logsRequestSeq:0},cb=new Map,lb,ub=document.querySelector(`.main`),db=document.getElementById(`trace-count-label`),fb=document.getElementById(`refresh-btn`),pb=document.getElementById(`empty-refresh-btn`),mb=document.getElementById(`retry-btn`),hb=document.getElementById(`banner`),gb=document.getElementById(`state-loading`),_b=document.getElementById(`loading-text`),vb=document.getElementById(`state-empty`),yb=document.getElementById(`state-error`),bb=document.getElementById(`error-message`),xb=document.getElementById(`explorer`),Sb=document.getElementById(`trace-list`),Cb=document.getElementById(`trace-view-empty`),wb=document.getElementById(`trace-view-body`),Tb=document.getElementById(`trace-title`),Eb=document.getElementById(`trace-status-badge`),Db=document.getElementById(`trace-id-label`),Ob=document.getElementById(`trace-duration-label`),kb=document.getElementById(`trace-span-count-label`),Ab=document.getElementById(`trace-services`),jb=document.getElementById(`tab-waterfall`),Mb=document.getElementById(`tab-logs`),Nb=document.getElementById(`waterfall-panel`),Pb=document.getElementById(`time-ruler`),Fb=document.getElementById(`span-rows`),Ib=document.getElementById(`logs-panel`),Lb=document.getElementById(`logs-state`),Rb=document.getElementById(`logs-list`),zb=document.getElementById(`detail-panel`),Bb=document.getElementById(`detail-title`),Vb=document.getElementById(`detail-body`),Hb=document.getElementById(`detail-close-btn`),Ub=document.createElement(`section`);Ub.className=`trace-comparison`,Ub.hidden=!0,wb.prepend(Ub);var Wb=document.createElement(`div`);wb.insertBefore(Wb,Ub.nextSibling);var Gb={0:`Unspecified`,1:`Internal`,2:`Server`,3:`Client`,4:`Producer`,5:`Consumer`};function Kb(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 qb(e){let t=e.resource?.service_name;return typeof t==`string`&&t?t:`unknown`}function Jb(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 Yb(e,t){return Number(BigInt(t)-BigInt(e))}function Xb(e){return!Number.isFinite(e)||e<0?`—`:e<1e3?`${Math.round(e)} ns`:e<1e6?`${Iy(e/1e3)} µs`:e<1e9?`${Iy(e/1e6)} ms`:`${Iy(e/1e9)} s`}function Zb(e){return e.length>8?e.slice(0,8):e}function Qb(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 $b(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`[unserializable]`}}var ex=new Ay({name:`qyl Trace Explorer`,version:Ry});ex.onteardown=async()=>(console.info(`App is being torn down`),{}),ex.ontoolinput=e=>{let t=Zy.safeParse(e.arguments??{});if(!t.success){lb=void 0,ix(`Received invalid trace query parameters.`);return}let n=t.data;lb=n,_b.textContent=typeof n.trace_id==`string`&&n.trace_id?`Loading trace ${Zb(n.trace_id)}…`:typeof n.session_id==`string`&&n.session_id?`Loading session ${n.session_id}…`:`Loading traces…`,rx(`loading`)},ex.ontoolresult=e=>{let t=tx(e);t?($.traceQuery=ib(e,lb??$.traceQuery),lb=void 0,ux(t)):(lb=void 0,ix(Fy(e)??`Received an invalid tool result.`))},ex.ontoolcancelled=()=>{lb=void 0,rx($.traces.length>0?`explorer`:`empty`)},ex.onerror=console.error,ex.onhostcontextchanged=e=>Py(e,ub);function tx(e){let t=Qy.safeParse(e.structuredContent);return t.success?t.data:null}function nx(e){let t=$y.safeParse(e.structuredContent);return t.success&&t.data.logs!==void 0?{logs:t.data.logs}:null}function rx(e){gb.hidden=e!==`loading`,vb.hidden=e!==`empty`,yb.hidden=e!==`error`,xb.hidden=e!==`explorer`}function ix(e){bb.textContent=e,rx(`error`)}var ax;function ox(e){hb.textContent=e,hb.hidden=!1,ax&&clearTimeout(ax),ax=setTimeout(()=>{hb.hidden=!0},6e3)}function sx(){let e=$.traces.length;db.textContent=e===0?``:`${e} trace${e===1?``:`s`}`}function cx(){return $.traces.find(e=>e.trace_id===$.selectedTraceId)}function lx(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 ux(e){$.traces=e.traces,$.logsCache.clear();let t=e.selected_span_id??$.traceQuery.selected_span_id??$.selectedSpanId;$.comparison=e.comparison;let n=e.selected_trace_id??$.selectedTraceId;$.selectedTraceId=$.traces.some(e=>e.trace_id===n)?n:$.traces[0]?.trace_id,$.selectedSpanId=cx()?.spans.some(e=>e.span_id===t)?t:void 0,$.selectedSpanId||Dx(),sx(),hx(),gx(),rx($.traces.length===0?`empty`:`explorer`)}function dx(e){$.selectedTraceId!==e&&($.selectedTraceId=e,$.selectedSpanId=void 0,$.traceQuery={...$.traceQuery},delete $.traceQuery.selected_span_id,$.activeTab=`waterfall`,Dx(),hx(),gx())}function fx(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&&(dx(r.trace_id),Sb.querySelector(`[data-trace-id="${CSS.escape(r.trace_id)}"]`)?.scrollIntoView({block:`nearest`}))}function px(e){let t=document.createElement(`span`);return t.className=`service-chip`,t.textContent=e,t}function mx(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=lx(e),r.title=lx(e),n.appendChild(r);let i=document.createElement(`span`);i.className=`trace-row-duration mono`,i.textContent=Xb(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=Zb(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(px(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`,()=>dx(e.trace_id)),t}function hx(){let e=document.createDocumentFragment();for(let t of $.traces)e.appendChild(mx(t));Sb.replaceChildren(e)}function gx(){let e=cx();if(Cb.hidden=!!e,wb.hidden=!e,!e)return;Tb.textContent=lx(e),Eb.textContent=e.has_error?`Error`:`OK`,Eb.className=`trace-status-badge ${e.has_error?`error`:`ok`}`,Db.textContent=e.trace_id,Ob.textContent=Xb(Number(e.duration_ns)),kb.textContent=`${e.span_count} span${e.span_count===1?``:`s`}`;let t=document.createDocumentFragment();for(let n of e.services)t.appendChild(px(n));Ab.replaceChildren(t),_x(),xx(e),ob(Ub,$.comparison);let n=cb.get(e.trace_id);n||(n=sb(e,()=>$.selectedSpanId,e=>ex.callServerTool(e)),cb.set(e.trace_id,n),cb.size>20&&cb.delete(cb.keys().next().value)),Wb.replaceChildren(n);let r=e.spans.find(e=>e.span_id===$.selectedSpanId);r&&Ex(r,ab(e.spans).traceStartNs),$.activeTab===`logs`&&kx(e)}function _x(){let e=$.activeTab===`logs`;jb.classList.toggle(`active`,!e),jb.setAttribute(`aria-selected`,String(!e)),Mb.classList.toggle(`active`,e),Mb.setAttribute(`aria-selected`,String(e)),Nb.hidden=e,Ib.hidden=!e}function vx(e){if($.activeTab===e)return;$.activeTab=e,_x();let t=cx();e===`logs`&&t&&kx(t)}function yx(e){Pb.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?Xb(t/4*e):`0 ns`,Pb.appendChild(r)}}function bx(e,t){let{span:n,depth:r}=e,i=Kb(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}, ${Xb(Yb(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=qb(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=Xb(Yb(n.start_time_unix_nano,n.end_time_unix_nano)),d.appendChild(p),o.appendChild(d);let h=()=>Ex(n,t);return o.addEventListener(`click`,h),o.addEventListener(`keydown`,e=>{e.key===`Enter`&&e.target===o&&h()}),o}function xx(e){let t=ab(e.spans);yx(t.totalNs);let n=document.createDocumentFragment();for(let e of t.rows)n.appendChild(bx(e,t.traceStartNs));if(Fb.replaceChildren(n),t.rows.length===0){let e=document.createElement(`div`);e.className=`logs-state`,e.textContent=`This trace has no spans.`,Fb.appendChild(e)}}function Sx(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 Cx(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 wx(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=$b(e.value),n.append(t,r)}e.appendChild(n)}function Tx(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=`+${Xb(Math.max(0,Yb(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=$b(i),a.appendChild(e)}else{let e=document.createElement(`span`);e.className=`attr-value mono`,e.textContent=$b(i),a.appendChild(e)}n.appendChild(a)}return n}function Ex(e,t){$.selectedSpanId=e.span_id,$.traceQuery={...$.traceQuery,selected_span_id:e.span_id};for(let t of Fb.querySelectorAll(`.span-row`))t.classList.toggle(`selected`,t.dataset.spanId===e.span_id);Bb.textContent=e.name;let n=document.createDocumentFragment(),r=document.createElement(`div`);r.className=`detail-stats`,r.appendChild(Cx(`Service`,qb(e))),r.appendChild(Cx(`Kind`,Gb[e.kind]??String(e.kind))),r.appendChild(Cx(`Evidence`,e.role)),e.self_time_ms!==void 0&&r.appendChild(Cx(`Self time`,`${e.self_time_ms} ms`)),r.appendChild(Cx(`Duration`,Xb(Yb(e.start_time_unix_nano,e.end_time_unix_nano)))),r.appendChild(Cx(`Offset`,`+${Xb(Math.max(0,Yb(t,e.start_time_unix_nano)))}`));let i=e.status?.code??0,a=i===2?`Error`:i===1?`OK`:`Unset`;r.appendChild(Cx(`Status`,a,i===2?`status-error`:i===1?`status-ok`:`status-unset`)),r.appendChild(Cx(`Start`,Qb(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(Cx(`Tokens`,`${s===void 0?`—`:Ly(s)} in · ${c===void 0?`—`:Ly(c)} out`)),n.appendChild(r),e.status?.message){let{section:t,body:r}=Sx(`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}=Sx(`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}=Sx(`Attributes (${p.length})`);wx(t,p),n.appendChild(e)}let m=e.events??[];if(m.length>0){let{section:t,body:r}=Sx(`Events (${m.length})`);for(let t of m)r.appendChild(Tx(t,e.start_time_unix_nano));n.appendChild(t)}Vb.replaceChildren(n),zb.hidden=!1,Vb.scrollTop=0}function Dx(){if(!zb.hidden){zb.hidden=!0,$.selectedSpanId=void 0,$.traceQuery={...$.traceQuery},delete $.traceQuery.selected_span_id;for(let e of Fb.querySelectorAll(`.span-row.selected`))e.classList.remove(`selected`)}}function Ox(e){Lb.hidden=e.length>0,e.length===0&&(Lb.textContent=`No logs recorded for this trace.`);let t=document.createDocumentFragment(),n=[...e].sort((e,t)=>Yb(t.time_unix_nano,e.time_unix_nano));for(let e of n){let{label:n,cls:r}=Jb(e),i=document.createElement(`div`);i.className=`log-row severity-${r}`;let a=document.createElement(`span`);a.className=`log-time mono dim`,a.textContent=Qb(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=nb(e.body),i.appendChild(s),t.appendChild(i)}Rb.replaceChildren(t)}async function kx(e){let t=$.logsCache.get(e.trace_id);if(t){Ox(t);return}let n=++$.logsRequestSeq;Rb.replaceChildren(),Lb.hidden=!1,Lb.textContent=`Loading logs…`;try{let t=await ex.callServerTool({name:`fetch_telemetry`,arguments:{view:`logs`,trace_id:e.trace_id,limit:100}});if(t.isError)throw Error(Fy(t)??`fetch_telemetry failed`);let r=nx(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`&&Ox(r.logs)}catch(t){if(n!==$.logsRequestSeq||$.selectedTraceId!==e.trace_id)return;Lb.hidden=!1,Lb.textContent=`Couldn't load logs: ${t instanceof Error?t.message:String(t)}`}}async function Ax(){if($.busy)return;$.busy=!0,fb.disabled=!0,fb.classList.add(`spinning`);let e=$.traces.length>0;e||(_b.textContent=`Loading traces…`,rx(`loading`));try{let e=await ex.callServerTool({name:`display_traces`,arguments:{...$.traceQuery}});if(e.isError)throw Error(Fy(e)??`display_traces failed`);let t=tx(e);if(!t)throw Error(`display_traces returned an invalid payload`);$.traceQuery=ib(e,$.traceQuery),ux(t)}catch(t){e?(rx(`explorer`),ox(`Refresh failed: ${t instanceof Error?t.message:String(t)}`)):ix(t instanceof Error?t.message:String(t))}finally{$.busy=!1,fb.disabled=!1,fb.classList.remove(`spinning`)}}fb.addEventListener(`click`,()=>void Ax()),pb.addEventListener(`click`,()=>void Ax()),mb.addEventListener(`click`,()=>void Ax()),Hb.addEventListener(`click`,Dx),jb.addEventListener(`click`,()=>vx(`waterfall`)),Mb.addEventListener(`click`,()=>vx(`logs`)),window.addEventListener(`keydown`,e=>{if(e.key===`Escape`)Dx();else if(e.key===`ArrowDown`||e.key===`ArrowUp`){if(xb.hidden)return;e.preventDefault(),fx(e.key===`ArrowDown`?1:-1)}}),ex.connect().then(()=>{let e=ex.getHostContext();e&&Py(e,ub)}).catch(e=>{ix(e instanceof Error?e.message:String(e))});</script>
62
+ 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);else{if(e.external){let r=e.external.registry.get(n[0])?.id;if(t!==n[0]&&r){a(n);continue}}(e.metadataRegistry.get(n[0])?.id||r.cycle||r.count>1&&e.reused===`ref`)&&a(n)}}e.external&&(e.sharedDefsExtractedFor=e.external)}function nc(e){let t=e.anyOf;if(!Array.isArray(t)||t.length===0||e.type!==void 0)return;let n=[];for(let e of t){if(!e||typeof e!=`object`)return;nc(e);let t=Object.keys(e);if(t.length!==1||t[0]!==`type`)return;let r=e.type;for(let e of Array.isArray(r)?r:[r]){if(typeof e!=`string`)return;n.includes(e)||n.push(e)}}delete e.anyOf,e.type=n.length===1?n[0]:n}var rc=new Set([`type`,`properties`,`required`,`additionalProperties`]),ic=[`oneOf`,`anyOf`];function ac(e){let t=e.additionalProperties;return t===void 0||t===!1||typeof t!=`object`||!t?null:Object.keys(t).length?t:null}function oc(e){let t=[];for(let n of e){if(typeof n!=`object`||n.type!==`object`)return null;for(let e in n)if(!rc.has(e))return null;t.push(n)}let n={},r=new Set;for(let e of t){for(let r in e.properties){if(Object.prototype.hasOwnProperty.call(n,r))continue;let e=[];for(let n of t){let t=n.properties?.[r]??ac(n);t!=null&&(e.some(e=>JSON.stringify(e)===JSON.stringify(t))||e.push(t))}g(n,r,e.length===1?e[0]:oc(e)??{allOf:e})}for(let t of e.required??[])r.add(t)}let i={type:`object`,properties:n};if(r.size&&(i.required=[...r]),t.every(e=>e.additionalProperties===!1))i.additionalProperties=!1;else{let e=[];for(let n of t){let t=ac(n);t&&!e.some(e=>JSON.stringify(e)===JSON.stringify(t))&&e.push(t)}e.length===1?i.additionalProperties=e[0]:e.length>1&&(i.additionalProperties={allOf:e})}return i}function sc(e){let t=e.allOf;if(!Array.isArray(t)||t.length<2)return;for(let t of rc)if(t in e)return;let n=t.filter(e=>ic.some(t=>Array.isArray(e[t]))),r=null;if(!n.length)r=oc(t);else{let e=n[0],i=ic.find(t=>Array.isArray(e[t]));if(Object.keys(e).length!==1)return;let a=t.filter(t=>t!==e),o=e[i].map(e=>oc([...a,e]));if(o.some(e=>!e))return;r={[i]:o}}r&&(delete e.allOf,Qs(e,r))}function cc(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)):Qs(i,s),Qs(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??[]})};if(!e.external||e.sharedEmitDoneFor!==e.external){for(let t of[...e.seen.entries()].reverse())r(t[0]);if(e.target!==`openapi-3.0`)for(let t of e.seen.entries())nc(t[1].def??t[1].schema);for(let t of e.deferred)t();if(e.intersections.length){let t=new Map;for(let n of e.seen.values())for(let e of[n.schema,n.def]){let n=e?.allOf;if(!Array.isArray(n))continue;let r=t.get(n);r?r.push(e):t.set(n,[e])}for(let n of e.intersections)for(let e of t.get(n)??[])sc(e)}}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)}Qs(i,n.defId?n.schema: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??{};if(!e.external||e.sharedEmitDoneFor!==e.external)for(let t of e.seen.entries()){let e=t[1];e.def&&e.defId&&(e.def.id===e.defId&&delete e.def.id,g(o,e.defId,e.def))}e.external&&(e.sharedEmitDoneFor=e.external),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:dc(t,`input`,e.processors),output:dc(t,`output`,e.processors)}},enumerable:!1,writable:!1}),n}catch{throw Error(`Error converting schema to JSON.`)}}function lc(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 lc(r.element,n);if(r.type===`set`)return lc(r.valueType,n);if(r.type===`lazy`)return lc(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`||r.type===`catch`)return lc(r.innerType,n);if(r.type===`intersection`)return lc(r.left,n)||lc(r.right,n);if(r.type===`record`||r.type===`map`)return lc(r.keyType,n)||lc(r.valueType,n);if(r.type===`pipe`)return e._zod.traits.has(`$ZodCodec`)?!0:lc(r.in,n)||lc(r.out,n);if(r.type===`object`){for(let e in r.shape)if(lc(r.shape[e],n))return!0;return!1}if(r.type===`union`){for(let e of r.options)if(lc(e,n))return!0;return!1}if(r.type===`tuple`){for(let e of r.items)if(lc(e,n))return!0;return!!(r.rest&&lc(r.rest,n))}return!1}var uc=(e,t={})=>n=>{let r=$s({...n,processors:t});return k(e,r),tc(r,e),cc(r,e)},dc=(e,t,n={})=>r=>{let{libraryOptions:i,target:a}=r??{},o=$s({...i??{},target:a,io:t,processors:n});return k(e,o),tc(o,e),cc(o,e)},fc=(e,t,n)=>{(e[t]===void 0||n>e[t])&&(e[t]=n)},pc=(e,t,n)=>{(e[t]===void 0||n<e[t])&&(e[t]=n)},mc=(e,t)=>{fc(e,`minimum`,t),pc(e,`maximum`,t)},hc=(e,t)=>{e.multipleOf??=[],e.multipleOf.includes(t)||e.multipleOf.push(t)},gc=(e,t)=>{e.patterns??=new Set,e.patterns.add(t)},_c=(e,t)=>{e.mime=e.mime?e.mime.filter(e=>t.includes(e)):[...t]},vc=(e,t)=>{e.format=t,t.includes(`int`)&&(e.isInt=!0)},yc=(e,t)=>fc(e,`minimum`,t.minimum),bc=(e,t)=>pc(e,`maximum`,t.maximum),xc=e=>(t,n)=>{vc(t,n.format);let[r,i]=e[n.format];fc(t,`minimum`,r),pc(t,`maximum`,i)},Sc={greater_than:(e,t)=>fc(e,t.inclusive?`minimum`:`exclusiveMinimum`,t.value),less_than:(e,t)=>pc(e,t.inclusive?`maximum`:`exclusiveMaximum`,t.value),multiple_of:(e,t)=>hc(e,t.value),number_format:xc(ye),bigint_format:xc(be),min_length:yc,max_length:bc,length_equals:(e,t)=>mc(e,t.length),min_size:yc,max_size:bc,size_equals:(e,t)=>mc(e,t.size),string_format:(e,t)=>{vc(e,t.format),t.pattern&&gc(e,t.pattern),(t.format===`base64`||t.format===`base64url`)&&(e.contentEncoding=t.format),(t.local||t.precision===-1)&&(e.laxFormat=!0)},mime_type:(e,t)=>_c(e,t.mime)};function A(e){let t={},n=e._zod.def,r=e._zod.traits.has(`$ZodCheck`)?[e,...n.checks??[]]:n.checks??[];for(let e of r)Sc[e._zod.def.check]?.(t,e._zod.def);let i=e._zod.bag;i.minimum!==void 0&&fc(t,`minimum`,i.minimum),i.exclusiveMinimum!==void 0&&fc(t,`exclusiveMinimum`,i.exclusiveMinimum),i.maximum!==void 0&&pc(t,`maximum`,i.maximum),i.exclusiveMaximum!==void 0&&pc(t,`exclusiveMaximum`,i.exclusiveMaximum),i.multipleOf!==void 0&&hc(t,i.multipleOf),i.format!==void 0&&(t.format??=i.format,i.format.includes(`int`)&&(t.isInt=!0)),i.mime&&_c(t,i.mime);for(let e of i.patterns??[])gc(t,e);return t}var Cc={guid:`uuid`,url:`uri`,datetime:`date-time`,json_string:`json-string`,regex:``},wc=new Map([[di,pn],[pi,mn]]),Tc=e=>wc.get(e)??e,Ec=(e,t,n,r)=>{let i=n;i.type=`string`;let{minimum:a,maximum:o,format:s,patterns:c,contentEncoding:l,laxFormat:u}=A(e);if(typeof a==`number`&&(i.minLength=a),typeof o==`number`&&(i.maxLength=o),s&&(i.format=Cc[s]??s,i.format===``&&delete i.format,(s===`time`||u)&&delete i.format),l&&(i.contentEncoding=l),c&&c.size>0){let e=[...c].map(Tc);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}))])}},Dc=(e,t,n,r)=>{let i=n,{minimum:a,maximum:o,multipleOf:s,exclusiveMaximum:c,exclusiveMinimum:l,isInt:u}=A(e);i.type=u?`integer`:`number`;let d=typeof l==`number`&&l>=(a??-1/0),f=typeof c==`number`&&c<=(o??1/0),p=t.target===`draft-04`||t.target===`openapi-3.0`;if(d?p?(i.minimum=l,i.exclusiveMinimum=!0):i.exclusiveMinimum=l:typeof a==`number`&&(i.minimum=a),f?p?(i.maximum=c,i.exclusiveMaximum=!0):i.exclusiveMaximum=c:typeof o==`number`&&(i.maximum=o),s){let n=new Set;for(let a of s)Number.isFinite(a)&&a!==0?n.add(Math.abs(a)):O(e,t,i,r,`A multipleOf divisor of ${a} cannot be represented in JSON Schema`);let[a,...o]=n;a!==void 0&&(i.multipleOf=a),o.length&&(i.allOf=[...i.allOf??[],...o.map(e=>({multipleOf:e}))])}},Oc=(e,t,n,r)=>{n.type=`boolean`},kc=(e,t,n,r)=>{O(e,t,n,r,`BigInt cannot be represented in JSON Schema`)},Ac=(e,t,n,r)=>{O(e,t,n,r,`Symbols cannot be represented in JSON Schema`)},jc=(e,t,n,r)=>{t.target===`openapi-3.0`?(n.type=`string`,n.nullable=!0,n.enum=[null]):n.type=`null`},Mc=(e,t,n,r)=>{O(e,t,n,r,`Undefined cannot be represented in JSON Schema`)},Nc=(e,t,n,r)=>{O(e,t,n,r,`Void cannot be represented in JSON Schema`)},Pc=(e,t,n,r)=>{n.not={}},Fc=(e,t,n,r)=>{},Ic=(e,t,n,r)=>{},Lc=(e,t,n,r)=>{O(e,t,n,r,`Date cannot be represented in JSON Schema`)},Rc=(e,t,n,r)=>{let i=e._zod.def,a=s(i.entries);a.length===0?n.not={}:(a.every(e=>typeof e==`number`)&&(n.type=`number`),a.every(e=>typeof e==`string`)&&(n.type=`string`),n.enum=a)},zc=(e,t,n,r)=>{let i=e._zod.def;if(i.values.length===0){n.not={};return}let a=[];for(let o of i.values)if(o===void 0){if(O(e,t,n,r,"Literal `undefined` cannot be represented in JSON Schema"))return}else if(typeof o==`bigint`){if(O(e,t,n,r,`BigInt literals cannot be represented in JSON Schema`))return;a.push(Number(o))}else a.push(o);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}},Bc=(e,t,n,r)=>{O(e,t,n,r,`NaN cannot be represented in JSON Schema`)},Vc=(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},Hc=(e,t,n,r)=>{let i=n;i.type=`string`,i.format=`binary`,i.contentEncoding=`binary`;let{minimum:a,maximum:o,mime:s}=A(e);a!==void 0&&(i.minLength=a),o!==void 0&&(i.maxLength=o),s&&(s.length===0?i.not={}:s.length===1?i.contentMediaType=s[0]:i.anyOf=s.map(e=>({contentMediaType:e})))},Uc=(e,t,n,r)=>{n.type=`boolean`},Wc=(e,t,n,r)=>{O(e,t,n,r,`Custom types cannot be represented in JSON Schema`)},Gc=(e,t,n,r)=>{O(e,t,n,r,`Function types cannot be represented in JSON Schema`)},Kc=(e,t,n,r)=>{O(e,t,n,r,`Transforms cannot be represented in JSON Schema`)},qc=(e,t,n,r)=>{O(e,t,n,r,`Map cannot be represented in JSON Schema`)},Jc=(e,t,n,r)=>{O(e,t,n,r,`Set cannot be represented in JSON Schema`)},Yc=(e,t,n,r)=>{let i=n,a=e._zod.def,{minimum:o,maximum:s}=A(e);typeof o==`number`&&(i.minItems=o),typeof s==`number`&&(i.maxItems=s),i.type=`array`,i.items=k(a.element,t,{...r,path:[...r.path,`items`]})};function Xc(e){let t=e._zod.def;return t.type===`pipe`&&t.in._zod.traits.has(`$ZodTransform`)?Xc(t.out):t.type===`catch`?Xc(t.innerType):e._zod.optin}var Zc=(e,t,n,r)=>{let i=n,a=e._zod.def,o=a.shape;if(Object.getOwnPropertySymbols(o).length&&O(e,t,i,r,`Symbol keys cannot be represented in JSON Schema`))return;i.type=`object`,i.properties={};for(let e in o)g(i.properties,e,k(o[e],t,{...r,path:[...r.path,`properties`,e]}));let s=[];for(let e of Object.keys(o)){let n=a.shape[e];(t.io===`input`?Xc(n)===void 0:n._zod.optout===void 0)&&s.push(e)}s.length>0&&(i.required=s),a.catchall?._zod.def.type===`never`?i.additionalProperties=!1:a.catchall?a.catchall&&(i.additionalProperties=k(a.catchall,t,{...r,path:[...r.path,`additionalProperties`]})):t.io===`output`&&(i.additionalProperties=!1)},Qc=(e,t,n,r)=>{let i=e._zod.def,a=i.inclusive===!1,o=i.options.map((e,n)=>k(e,t,{...r,path:[...r.path,a?`oneOf`:`anyOf`,n]}));a?n.oneOf=o:n.anyOf=o},$c=(e,t,n,r)=>{let i=e._zod.def,a=k(i.left,t,{...r,path:[...r.path,`allOf`,0]}),o=k(i.right,t,{...r,path:[...r.path,`allOf`,1]}),s=e=>`allOf`in e&&Object.keys(e).length===1,c=[...s(a)?a.allOf:[a],...s(o)?o.allOf:[o]];n.allOf=c,t.intersections.push(c)},el=(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)=>k(e,t,{...r,path:[...r.path,o,n]})),l=a.rest?k(a.rest,t,{...r,path:[...r.path,s,...t.target===`openapi-3.0`?[a.items.length]:[]]}):null,u=a.items.length;for(;u>0;){let e=a.items[u-1];if(!(t.io===`input`?Xc(e)!==void 0:e._zod.optout===`optional`))break;u--}let d=a.items.length,f=!a.rest;t.target===`draft-2020-12`?(i.prefixItems=c,f?i.items=!1:l&&(i.items=l),u>0&&(i.minItems=u),f&&(i.maxItems=d)):t.target===`openapi-3.0`?(i.items={anyOf:c},l&&i.items.anyOf.push(l),u>0&&(i.minItems=u),f&&(i.maxItems=d)):(i.items=c,f?i.additionalItems=!1:l&&(i.additionalItems=l),u>0&&(i.minItems=u),f&&(i.maxItems=d));let{minimum:p,maximum:m}=A(e);typeof p==`number`&&(i.minItems=p),typeof m==`number`&&(i.maxItems=m)};function tl(e,t,n){if(t.$ref){if(n.has(t))return t;n.add(t);let r=e.get(t)?.def;if(!r)return t;let i=tl(e,r,n);return i===r?t:i}for(let r of[`anyOf`,`oneOf`]){let i=t[r];if(!Array.isArray(i))continue;let a=i.map(t=>tl(e,t,n));a.some((e,t)=>e!==i[t])&&(t={...t,[r]:a})}let r=Array.isArray(t.type)?t.type:[t.type],i=!r.includes(`string`)&&r.some(e=>e===`number`||e===`integer`),a=t.enum??(t.const===void 0?void 0:[t.const]);if(!i&&!a?.some(e=>typeof e==`number`))return t;let{minimum:o,maximum:s,exclusiveMinimum:c,exclusiveMaximum:l,multipleOf:u,format:d,id:f,...p}=t;return p.enum?p.enum=p.enum.map(e=>typeof e==`number`?String(e):e):typeof p.const==`number`&&(p.const=String(p.const)),i&&(p.type=`string`,a||(p.pattern=(r.includes(`number`)?Mn:jn).source)),p}var nl=new WeakMap;function rl(e){let t=new Map;for(let n of e.seen.values())n.def&&!t.has(n.schema)&&t.set(n.schema,n);let n=new Map;for(let r of nl.get(e)??[]){let i=e.seen.get(r),a=(i?.def??i?.schema)?.propertyNames;if(!a||a===!0||n.has(a))continue;let o=tl(t,a,new Set);o!==a&&n.set(a,o)}if(n.size)for(let t of e.seen.values())for(let e of[t.schema,t.def]){let t=e&&n.get(e.propertyNames);t&&(e.propertyNames=t)}}var il=(e,t,n,r)=>{let i=n,a=e._zod.def;i.type=`object`;let o=a.keyType,s=A(o).patterns;if(a.mode===`loose`&&s&&s.size>0){let e=k(a.valueType,t,{...r,path:[...r.path,`patternProperties`,`*`]});i.patternProperties={};for(let t of s)g(i.patternProperties,Tc(t).source,e)}else{if(t.target===`draft-07`||t.target===`draft-2020-12`){i.propertyNames=k(a.keyType,t,{...r,path:[...r.path,`propertyNames`]});let n=nl.get(t);n||(n=[],nl.set(t,n),t.deferred.push(()=>rl(t))),n.push(e)}i.additionalProperties=k(a.valueType,t,{...r,path:[...r.path,`additionalProperties`]})}let c=o._zod.values,l=t.io===`input`&&Xc(a.valueType)!==void 0;if(c&&!a.partial&&!l){let e=[...c].filter(e=>typeof e==`string`||typeof e==`number`);e.length>0&&(i.required=e.map(String))}},al=(e,t,n,r)=>{let i=e._zod.def,a=k(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`}]},ol=(e,t,n,r)=>{let i=e._zod.def;k(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},sl=Symbol();function cl(e,t,n,r,i){let a=!1,o=JSON.stringify(e,(e,t)=>typeof t==`bigint`?(a=!0,null):t);return a?(O(t,n,r,i,`BigInt defaults cannot be represented in JSON Schema`),sl):JSON.parse(o)}var ll=(e,t,n,r)=>{let i=e._zod.def;k(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o=cl(i.defaultValue,e,t,n,r);o!==sl&&(n.default=o)},ul=(e,t,n,r)=>{let i=e._zod.def;k(i.innerType,t,r);let a=t.seen.get(e);if(a.ref=i.innerType,t.io!==`input`)return;let o=cl(i.defaultValue,e,t,n,r);o!==sl&&(n._prefault=o)},dl=(e,t,n,r)=>{let i=e._zod.def;k(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType;let o;try{o=i.catchValue(void 0)}catch{O(e,t,n,r,`Dynamic catch values are not supported in JSON Schema`);return}n.default=o},fl=(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;k(o,t,r);let s=t.seen.get(e);s.ref=o},pl=(e,t,n,r)=>{let i=e._zod.def;k(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType,n.readOnly=!0},ml=(e,t,n,r)=>{let i=e._zod.def;k(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},hl=(e,t,n,r)=>{let i=e._zod.def;k(i.innerType,t,r);let a=t.seen.get(e);a.ref=i.innerType},gl=(e,t,n,r)=>{let i=e._zod.innerType;k(i,t,r);let a=t.seen.get(e);a.ref=i},_l={string:Ec,number:Dc,boolean:Oc,bigint:kc,symbol:Ac,null:jc,undefined:Mc,void:Nc,never:Pc,any:Fc,unknown:Ic,date:Lc,enum:Rc,literal:zc,nan:Bc,template_literal:Vc,file:Hc,success:Uc,custom:Wc,function:Gc,transform:Kc,map:qc,set:Jc,array:Yc,object:Zc,union:Qc,intersection:$c,tuple:el,record:il,nullable:al,nonoptional:ol,default:ll,prefault:ul,catch:dl,pipe:fl,readonly:pl,promise:ml,optional:hl,lazy:gl};function vl(e,t){if(`_idmap`in e){let n=e,r=$s({...t,processors:_l}),i={};for(let e of n._idmap.entries()){let[t,n]=e;k(n,r)}let a={};r.external={registry:n,uri:t?.uri,defs:i};for(let e of n._idmap.entries()){let[t,n]=e;tc(r,n),g(a,t,cc(r,n))}return Object.keys(i).length>0&&(a.__shared={[r.target===`draft-2020-12`?`$defs`:`definitions`]:i}),{schemas:a}}let n=$s({...t,processors:_l});return k(e,n),tc(n,e),cc(n,e)}var yl=t({endsWith:()=>Ms,gt:()=>ms,gte:()=>hs,includes:()=>As,length:()=>Es,lowercase:()=>Os,lt:()=>fs,lte:()=>ps,maxLength:()=>ws,maxSize:()=>xs,mime:()=>Fs,minLength:()=>Ts,minSize:()=>Ss,multipleOf:()=>bs,negative:()=>_s,nonnegative:()=>ys,nonpositive:()=>vs,normalize:()=>Ls,overwrite:()=>Is,positive:()=>gs,properties:()=>Ps,property:()=>Ns,regex:()=>Ds,size:()=>Cs,slugify:()=>Vs,startsWith:()=>js,toLowerCase:()=>zs,toUpperCase:()=>Bs,trim:()=>Rs,uppercase:()=>ks}),bl=new WeakSet([Object.prototype,Error.prototype]);function xl(e,t,n){Object.defineProperty(e,t,{configurable:!0,enumerable:!1,get(){let e=n(this);return Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0}),e},set(e){Object.defineProperty(this,t,{value:e,configurable:!0,writable:!0})}})}var Sl=S(`ZodError`,(e,t)=>{ft.init(e,t),e.name=`ZodError`;let n=Object.getPrototypeOf(e);bl.has(n)||(bl.add(n),xl(n,`format`,e=>t=>gt(e,t)),xl(n,`flatten`,e=>t=>ht(e,t)),xl(n,`addIssue`,e=>t=>{e.issues.push(t),e.message=JSON.stringify(e.issues,l,2)}),xl(n,`addIssues`,e=>t=>{e.issues.push(...t),e.message=JSON.stringify(e.issues,l,2)}),Object.defineProperty(n,"isEmpty",{configurable:!0,enumerable:!1,get(){return this.issues.length===0}}))},void 0,{Parent:Error}),Cl=vt(Sl),wl=bt(Sl),Tl=St(Sl),El=wt(Sl),Dl=At(Sl),Ol=jt(Sl),kl=Mt(Sl),Al=Nt(Sl),jl=Pt(Sl),Ml=Ft(Sl),Nl=It(Sl),Pl=Lt(Sl),Fl=t({ZodAny:()=>ld,ZodArray:()=>vd,ZodBase64:()=>Eu,ZodBase64URL:()=>Ou,ZodBigInt:()=>Qu,ZodBigIntFormat:()=>ed,ZodBoolean:()=>Zu,ZodCIDRv4:()=>Su,ZodCIDRv6:()=>wu,ZodCUID:()=>ou,ZodCUID2:()=>cu,ZodCatch:()=>of,ZodCodec:()=>ff,ZodCreditCard:()=>Mu,ZodCustom:()=>Ef,ZodCustomStringFormat:()=>Ru,ZodDate:()=>gd,ZodDefault:()=>Zd,ZodDiscriminatedUnion:()=>Td,ZodE164:()=>Au,ZodEmail:()=>Wl,ZodEmoji:()=>nu,ZodEnum:()=>Rd,ZodExactOptional:()=>Kd,ZodFile:()=>Vd,ZodFunction:()=>wf,ZodGUID:()=>Kl,ZodIBAN:()=>Pu,ZodIPv4:()=>gu,ZodIPv6:()=>bu,ZodISODate:()=>Vl,ZodISODateTime:()=>Bl,ZodISODuration:()=>Ul,ZodISOTime:()=>Hl,ZodInstanceOf:()=>Nf,ZodIntersection:()=>Dd,ZodJWT:()=>Iu,ZodKSUID:()=>mu,ZodLazy:()=>bf,ZodLiteral:()=>Bd,ZodMAC:()=>vu,ZodMap:()=>Pd,ZodNaN:()=>cf,ZodNanoID:()=>iu,ZodNever:()=>fd,ZodNonOptional:()=>tf,ZodNull:()=>sd,ZodNullable:()=>Jd,ZodNumber:()=>Wu,ZodNumberFormat:()=>Gu,ZodObject:()=>bd,ZodOptional:()=>Gd,ZodPipe:()=>uf,ZodPrefault:()=>$d,ZodPreprocess:()=>hf,ZodPromise:()=>Sf,ZodReadonly:()=>gf,ZodRecord:()=>jd,ZodSet:()=>Id,ZodString:()=>zl,ZodStringFormat:()=>N,ZodSuccess:()=>rf,ZodSymbol:()=>rd,ZodTemplateLiteral:()=>vf,ZodTransform:()=>Ud,ZodTuple:()=>kd,ZodType:()=>j,ZodULID:()=>uu,ZodURL:()=>$l,ZodUUID:()=>Jl,ZodUndefined:()=>ad,ZodUnion:()=>Sd,ZodUnknown:()=>dd,ZodVoid:()=>md,ZodXID:()=>fu,ZodXor:()=>Cd,_ZodString:()=>Rl,_default:()=>Qd,_function:()=>Tf,any:()=>ud,array:()=>L,base64:()=>Du,base64url:()=>ku,bigint:()=>$u,boolean:()=>F,catch:()=>sf,check:()=>Df,cidrv4:()=>Cu,cidrv6:()=>Tu,codec:()=>pf,creditCard:()=>Nu,cuid:()=>su,cuid2:()=>lu,currencyCode:()=>Hu,custom:()=>Of,date:()=>_d,describe:()=>jf,discriminatedUnion:()=>Ed,e164:()=>ju,email:()=>Gl,emoji:()=>ru,enum:()=>H,exactOptional:()=>qd,file:()=>Hd,float32:()=>qu,float64:()=>Ju,function:()=>Tf,guid:()=>ql,hash:()=>Uu,hex:()=>Vu,hostname:()=>Bu,httpUrl:()=>tu,iban:()=>Fu,instanceof:()=>Pf,int:()=>Ku,int32:()=>Yu,int64:()=>td,intersection:()=>Od,invertCodec:()=>mf,ipv4:()=>_u,ipv6:()=>xu,json:()=>If,jwt:()=>Lu,keyof:()=>yd,ksuid:()=>hu,lazy:()=>xf,literal:()=>U,looseObject:()=>z,looseRecord:()=>Nd,mac:()=>yu,map:()=>Fd,meta:()=>Mf,nan:()=>lf,nanoid:()=>au,nativeEnum:()=>zd,never:()=>pd,nonoptional:()=>nf,null:()=>cd,nullable:()=>Yd,nullish:()=>Xd,number:()=>P,object:()=>R,optional:()=>W,partialRecord:()=>Md,pipe:()=>df,prefault:()=>ef,preprocess:()=>Lf,promise:()=>Cf,readonly:()=>_f,record:()=>V,refine:()=>kf,set:()=>Ld,strictObject:()=>xd,string:()=>M,stringFormat:()=>zu,stringbool:()=>Ff,success:()=>af,superRefine:()=>Af,symbol:()=>id,templateLiteral:()=>yf,transform:()=>Wd,tuple:()=>Ad,uint32:()=>Xu,uint64:()=>nd,ulid:()=>du,undefined:()=>od,union:()=>B,unknown:()=>I,url:()=>eu,uuid:()=>Yl,uuidv4:()=>Xl,uuidv6:()=>Zl,uuidv7:()=>Ql,void:()=>hd,xid:()=>pu,xor:()=>wd});function Il(){w.localeError||at(lo())}function Ll(){w.memoizer||at({memoizer:oo()})}var j=S(`ZodType`,(e,t)=>(Il(),E.init(e,t),e.def=t,e.type=t.type,e),{check(...e){let t=this.def;return this.clone(v(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(kf(e,t))},superRefine(e,t){return this.check(Af(e,t))},overwrite(e){return this.check(Is(e))},optional(){return W(this)},exactOptional(){return qd(this)},nullable(){return Yd(this)},nullish(){return W(Yd(this))},nonoptional(e){return nf(this,e)},array(){return L(this)},or(e){return B([this,e])},and(e){return Od(this,e)},transform(e){return df(this,Wd(e))},default(e){return Qd(this,e)},prefault(e){return ef(this,e)},catch(e){return sf(this,e)},pipe(e){return df(this,e)},readonly(){return _f(this)},describe(e){let t=this.clone();return mo.add(t,{description:e}),t},meta(...e){if(e.length===0)return mo.get(this);let t=this.clone();return mo.add(t,e[0]),t},isOptional(){return this.safeParse(void 0).success},isNullable(){return this.safeParse(null).success},apply(e,...t){return t.length===0?e(this):e(this,...t)},get"~standard"(){return Ue(this,`~standard`,{...Mr(this),jsonSchema:{input:dc(this,`input`),output:dc(this,`output`)}})},set"~standard"(e){He(this,`~standard`,e)},parse:function e(t,n){return Cl(this,t,n,{callee:e})},parseAsync:async function e(t,n){return await wl(this,t,n,{callee:e})},safeParse(e,t){return Tl(this,e,t)},async safeParseAsync(e,t){return El(this,e,t)},get spa(){return this?.safeParseAsync},set spa(e){He(this,`spa`,e)},validate(e,t){return Dt(this,e,t)},validateAsync(e,t){return kt(this,e,t)},encode:function e(t,n){return Dl(this,t,n,{callee:e})},decode:function e(t,n){return Ol(this,t,n,{callee:e})},encodeAsync:async function e(t,n){return await kl(this,t,n,{callee:e})},decodeAsync:async function e(t,n){return await Al(this,t,n,{callee:e})},safeEncode(e,t){return jl(this,e,t)},safeDecode(e,t){return Ml(this,e,t)},async safeEncodeAsync(e,t){return Nl(this,e,t)},async safeDecodeAsync(e,t){return Pl(this,e,t)},toJSONSchema(e){return uc(this,{})(e)},get description(){return mo.get(this)?.description},get _def(){return this._zod.def}}),Rl=S(`_ZodString`,(e,t)=>{Nr.init(e,t),j.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ec(e,t,n,r)},We({format:e=>A(e).format??null,minLength:e=>A(e).minimum??null,maxLength:e=>A(e).maximum??null},{regex(...e){return this.check(Ds(...e))},includes(...e){return this.check(As(...e))},startsWith(...e){return this.check(js(...e))},endsWith(...e){return this.check(Ms(...e))},min(...e){return this.check(Ts(...e))},max(...e){return this.check(ws(...e))},length(...e){return this.check(Es(...e))},nonempty(...e){return this.check(Ts(1,...e))},lowercase(e){return this.check(Os(e))},uppercase(e){return this.check(ks(e))},trim(){return this.check(Rs())},normalize(...e){return this.check(Ls(...e))},toLowerCase(){return this.check(zs())},toUpperCase(){return this.check(Bs())},slugify(){return this.check(Vs())}})),zl=S(`ZodString`,(e,t)=>{Nr.init(e,t),Rl.init(e,t)},{email(e){return this.check(_o(Wl,e))},url(e){return this.check(Co($l,e))},jwt(e){return this.check(Vo(Iu,e))},emoji(e){return this.check(wo(nu,e))},guid(e){return this.check(vo(Kl,e))},uuid(e){return this.check(yo(Jl,e))},uuidv4(e){return this.check(bo(Jl,e))},uuidv6(e){return this.check(xo(Jl,e))},uuidv7(e){return this.check(So(Jl,e))},nanoid(e){return this.check(To(iu,e))},cuid(e){return this.check(Eo(ou,e))},cuid2(e){return this.check(Do(cu,e))},ulid(e){return this.check(Oo(uu,e))},base64(e){return this.check(Io(Eu,e))},base64url(e){return this.check(Lo(Ou,e))},xid(e){return this.check(ko(fu,e))},ksuid(e){return this.check(Ao(mu,e))},ipv4(e){return this.check(jo(gu,e))},ipv6(e){return this.check(Mo(bu,e))},cidrv4(e){return this.check(Po(Su,e))},cidrv6(e){return this.check(Fo(wu,e))},e164(e){return this.check(Ro(Au,e))},datetime(e){return this.check(Ho(Bl,e))},date(e){return this.check(Uo(Vl,e))},time(e){return this.check(Wo(Hl,e))},duration(e){return this.check(Go(Ul,e))}});function M(e){return go(zl,e)}var N=S(`ZodStringFormat`,(e,t)=>{D.init(e,t),Rl.init(e,t)}),Bl=S(`ZodISODateTime`,(e,t)=>{Qr.init(e,t),N.init(e,t)}),Vl=S(`ZodISODate`,(e,t)=>{$r.init(e,t),N.init(e,t)}),Hl=S(`ZodISOTime`,(e,t)=>{ei.init(e,t),N.init(e,t)}),Ul=S(`ZodISODuration`,(e,t)=>{ti.init(e,t),N.init(e,t)}),Wl=S(`ZodEmail`,(e,t)=>{Ir.init(e,t),N.init(e,t)});function Gl(e){return _o(Wl,e)}var Kl=S(`ZodGUID`,(e,t)=>{Pr.init(e,t),N.init(e,t)});function ql(e){return vo(Kl,e)}var Jl=S(`ZodUUID`,(e,t)=>{Fr.init(e,t),N.init(e,t)});function Yl(e){return yo(Jl,e)}function Xl(e){return bo(Jl,e)}function Zl(e){return xo(Jl,e)}function Ql(e){return So(Jl,e)}var $l=S(`ZodURL`,(e,t)=>{Wr.init(e,t),N.init(e,t)});function eu(e){return Co($l,e)}function tu(e){return Co($l,{protocol:_n,hostname:gn,...y(e)})}var nu=S(`ZodEmoji`,(e,t)=>{Gr.init(e,t),N.init(e,t)});function ru(e){return wo(nu,e)}var iu=S(`ZodNanoID`,(e,t)=>{Kr.init(e,t),N.init(e,t)});function au(e){return To(iu,e)}var ou=S(`ZodCUID`,(e,t)=>{qr.init(e,t),N.init(e,t)});function su(e){return Eo(ou,e)}var cu=S(`ZodCUID2`,(e,t)=>{Jr.init(e,t),N.init(e,t)});function lu(e){return Do(cu,e)}var uu=S(`ZodULID`,(e,t)=>{Yr.init(e,t),N.init(e,t)});function du(e){return Oo(uu,e)}var fu=S(`ZodXID`,(e,t)=>{Xr.init(e,t),N.init(e,t)});function pu(e){return ko(fu,e)}var mu=S(`ZodKSUID`,(e,t)=>{Zr.init(e,t),N.init(e,t)});function hu(e){return Ao(mu,e)}var gu=S(`ZodIPv4`,(e,t)=>{ni.init(e,t),N.init(e,t)});function _u(e){return jo(gu,e)}var vu=S(`ZodMAC`,(e,t)=>{oi.init(e,t),N.init(e,t)});function yu(e){return No(vu,e)}var bu=S(`ZodIPv6`,(e,t)=>{ai.init(e,t),N.init(e,t)});function xu(e){return Mo(bu,e)}var Su=S(`ZodCIDRv4`,(e,t)=>{si.init(e,t),N.init(e,t)});function Cu(e){return Po(Su,e)}var wu=S(`ZodCIDRv6`,(e,t)=>{li.init(e,t),N.init(e,t)});function Tu(e){return Fo(wu,e)}var Eu=S(`ZodBase64`,(e,t)=>{fi.init(e,t),N.init(e,t)});function Du(e){return Io(Eu,e)}var Ou=S(`ZodBase64URL`,(e,t)=>{hi.init(e,t),N.init(e,t)});function ku(e){return Lo(Ou,e)}var Au=S(`ZodE164`,(e,t)=>{gi.init(e,t),N.init(e,t)});function ju(e){return Ro(Au,e)}var Mu=S(`ZodCreditCard`,(e,t)=>{bi.init(e,t),N.init(e,t)});function Nu(e){return zo(Mu,e)}var Pu=S(`ZodIBAN`,(e,t)=>{Ci.init(e,t),N.init(e,t)});function Fu(e){return Bo(Pu,e)}var Iu=S(`ZodJWT`,(e,t)=>{Ti.init(e,t),N.init(e,t)});function Lu(e){return Vo(Iu,e)}var Ru=S(`ZodCustomStringFormat`,(e,t)=>{Ei.init(e,t),N.init(e,t)});function zu(e,t,n={}){return Zs(Ru,e,t,n)}function Bu(e){return Zs(Ru,`hostname`,hn,e)}function Vu(e){return Zs(Ru,`hex`,Rn,e)}function Hu(e){return Zs(Ru,`currency_code`,bn,e)}function Uu(e,t){let n=`${e}_${t?.enc??`hex`}`,r=Rt[n];if(!r)throw Error(`Unrecognized hash format: ${n}`);return Zs(Ru,n,r,t)}var Wu=S(`ZodNumber`,(e,t)=>{Di.init(e,t),j.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Dc(e,t,n,r),e.isFinite=!0},We({minValue:e=>{let{minimum:t,exclusiveMinimum:n}=A(e);return Math.max(t??-1/0,n??-1/0)},maxValue:e=>{let{maximum:t,exclusiveMaximum:n}=A(e);return Math.min(t??1/0,n??1/0)},isInt:e=>{let{isInt:t,multipleOf:n}=A(e);return!!t||!!n?.some(Number.isSafeInteger)},format:e=>A(e).format??null},{gt(e,t){return this.check(ms(e,t))},gte(e,t){return this.check(hs(e,t))},min(e,t){return this.check(hs(e,t))},lt(e,t){return this.check(fs(e,t))},lte(e,t){return this.check(ps(e,t))},max(e,t){return this.check(ps(e,t))},int(e){return this.check(Ku(e))},safe(e){return this.check(Ku(e))},positive(e){return this.check(ms(0,e))},nonnegative(e){return this.check(hs(0,e))},negative(e){return this.check(fs(0,e))},nonpositive(e){return this.check(ps(0,e))},multipleOf(e,t){return this.check(bs(e,t))},step(e,t){return this.check(bs(e,t))},finite(){return this}}));function P(e){return Ko(Wu,e)}var Gu=S(`ZodNumberFormat`,(e,t)=>{Oi.init(e,t),Wu.init(e,t)});function Ku(e){return Jo(Gu,e)}function qu(e){return Yo(Gu,e)}function Ju(e){return Xo(Gu,e)}function Yu(e){return Zo(Gu,e)}function Xu(e){return Qo(Gu,e)}var Zu=S(`ZodBoolean`,(e,t)=>{ki.init(e,t),j.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Oc(e,t,n,r)});function F(e){return $o(Zu,e)}var Qu=S(`ZodBigInt`,(e,t)=>{Ai.init(e,t),j.init(e,t),e._zod.processJSONSchema=(t,n,r)=>kc(e,t,n,r)},We({minValue:e=>A(e).minimum??null,maxValue:e=>A(e).maximum??null,format:e=>A(e).format??null},{gte(e,t){return this.check(hs(e,t))},min(e,t){return this.check(hs(e,t))},gt(e,t){return this.check(ms(e,t))},lt(e,t){return this.check(fs(e,t))},lte(e,t){return this.check(ps(e,t))},max(e,t){return this.check(ps(e,t))},positive(e){return this.check(ms(BigInt(0),e))},negative(e){return this.check(fs(BigInt(0),e))},nonpositive(e){return this.check(ps(BigInt(0),e))},nonnegative(e){return this.check(hs(BigInt(0),e))},multipleOf(e,t){return this.check(bs(e,t))}}));function $u(e){return es(Qu,e)}var ed=S(`ZodBigIntFormat`,(e,t)=>{ji.init(e,t),Qu.init(e,t)});function td(e){return ts(ed,e)}function nd(e){return ns(ed,e)}var rd=S(`ZodSymbol`,(e,t)=>{Mi.init(e,t),j.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Ac(e,t,n,r)});function id(e){return rs(rd,e)}var ad=S(`ZodUndefined`,(e,t)=>{Ni.init(e,t),j.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Mc(e,t,n,r)});function od(e){return is(ad,e)}var sd=S(`ZodNull`,(e,t)=>{Pi.init(e,t),j.init(e,t),e._zod.processJSONSchema=(t,n,r)=>jc(e,t,n,r)});function cd(e){return as(sd,e)}var ld=S(`ZodAny`,(e,t)=>{Fi.init(e,t),j.init(e,t),e._zod.processJSONSchema=(e,t,n)=>void 0});function ud(){return os(ld)}var dd=S(`ZodUnknown`,(e,t)=>{Ii.init(e,t),j.init(e,t),e._zod.processJSONSchema=(e,t,n)=>void 0});function I(){return ss(dd)}var fd=S(`ZodNever`,(e,t)=>{Li.init(e,t),j.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Pc(e,t,n,r)});function pd(e){return cs(fd,e)}var md=S(`ZodVoid`,(e,t)=>{Ri.init(e,t),j.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Nc(e,t,n,r)});function hd(e){return ls(md,e)}var gd=S(`ZodDate`,(e,t)=>{zi.init(e,t),j.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Lc(e,t,n,r),e.min=(t,n)=>e.check(hs(t,n)),e.max=(t,n)=>e.check(ps(t,n))},We({minDate:e=>{let{minimum:t}=A(e);return t?new Date(t):null},maxDate:e=>{let{maximum:t}=A(e);return t?new Date(t):null}},{}));function _d(e){return us(gd,e)}var vd=S(`ZodArray`,(e,t)=>{Ll(),Vi.init(e,t),j.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Yc(e,t,n,r),e.element=t.element},{min(e,t){return this.check(Ts(e,t))},nonempty(e){return this.check(Ts(1,e))},max(e,t){return this.check(ws(e,t))},length(e,t){return this.check(Es(e,t))},unwrap(){return this.element}});function L(e,t){return Hs(vd,e,t)}function yd(e){let t=e._zod.def.shape;return H(Object.keys(t))}var bd=S(`ZodObject`,(e,t)=>{Ll(),qi.init(e,t),j.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Zc(e,t,n,r),Xe(e,`shape`,e=>e._zod.def.shape,!1)},{keyof(){return H(Object.keys(this._zod.def.shape))},catchall(e){return this.clone(v(this._zod.def,{catchall:e}))},passthrough(){return this.clone(v(this._zod.def,{catchall:I()}))},loose(){return this.clone(v(this._zod.def,{catchall:I()}))},strict(){return this.clone(v(this._zod.def,{catchall:pd()}))},strip(){return this.clone(v(this._zod.def,{catchall:void 0}))},extend(e){return we(this,e)},safeExtend(e){return Ee(this,e)},merge(e){return De(this,e)},pick(e){return xe(this,e)},omit(e){return Ce(this,e)},partial(...e){return Oe(Gd,this,e[0])},exactPartial(...e){return Oe(Kd,this,e[0],`exactPartial`)},required(...e){return ke(tf,this,e[0])}});function R(e,t){return new bd({type:`object`,shape:e??{},...y(t)})}function xd(e,t){return new bd({type:`object`,shape:e,catchall:pd(),...y(t)})}function z(e,t){return new bd({type:`object`,shape:e,catchall:I(),...y(t)})}var Sd=S(`ZodUnion`,(e,t)=>{Yi.init(e,t),j.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Qc(e,t,n,r),e.options=t.options});function B(e,t){return new Sd({type:`union`,options:e,...y(t)})}var Cd=S(`ZodXor`,(e,t)=>{Sd.init(e,t),Zi.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Qc(e,t,n,r),e.options=t.options});function wd(e,t){return new Cd({type:`union`,options:e,inclusive:!1,...y(t)})}var Td=S(`ZodDiscriminatedUnion`,(e,t)=>{Sd.init(e,t),$i.init(e,t)});function Ed(e,t,n){return new Td({type:`union`,options:t,discriminator:e,...y(n)})}var Dd=S(`ZodIntersection`,(e,t)=>{ea.init(e,t),j.init(e,t),e._zod.processJSONSchema=(t,n,r)=>$c(e,t,n,r)});function Od(e,t){return new Dd({type:`intersection`,left:e,right:t})}var kd=S(`ZodTuple`,(e,t)=>{Ll(),ra.init(e,t),j.init(e,t),e._zod.processJSONSchema=(t,n,r)=>el(e,t,n,r)},{rest(e){return this.clone({...this._zod.def,rest:e})},partial(){let e=this._zod.def;if(e.checks?.length)throw Error(`.partial() cannot be used on tuple schemas containing refinements`);return this.clone({...e,items:e.items.map(e=>new Gd({type:`optional`,innerType:e}))})}});function Ad(e,t,n){let r=t instanceof E;return new kd({type:`tuple`,items:e,rest:r?t:null,...y(r?n:t)})}var jd=S(`ZodRecord`,(e,t)=>{Ll(),sa.init(e,t),j.init(e,t),e._zod.processJSONSchema=(t,n,r)=>il(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType});function V(e,t,n){return!t||!t._zod?new jd({type:`record`,keyType:M(),valueType:e,...y(t)}):new jd({type:`record`,keyType:e,valueType:t,...y(n)})}function Md(e,t,n){return new jd({type:`record`,keyType:e,valueType:t,...y(n),partial:!0})}function Nd(e,t,n){return new jd({type:`record`,keyType:e,valueType:t,mode:`loose`,...y(n)})}var Pd=S(`ZodMap`,(e,t)=>{Ll(),ca.init(e,t),j.init(e,t),e._zod.processJSONSchema=(t,n,r)=>qc(e,t,n,r),e.keyType=t.keyType,e.valueType=t.valueType,e.min=(...t)=>e.check(Ss(...t)),e.nonempty=t=>e.check(Ss(1,t)),e.max=(...t)=>e.check(xs(...t)),e.size=(...t)=>e.check(Cs(...t))});function Fd(e,t,n){return new Pd({type:`map`,keyType:e,valueType:t,...y(n)})}var Id=S(`ZodSet`,(e,t)=>{Ll(),ua.init(e,t),j.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Jc(e,t,n,r),e.min=(...t)=>e.check(Ss(...t)),e.nonempty=t=>e.check(Ss(1,t)),e.max=(...t)=>e.check(xs(...t)),e.size=(...t)=>e.check(Cs(...t))});function Ld(e,t){return new Id({type:`set`,valueType:e,...y(t)})}var Rd=S(`ZodEnum`,(e,t)=>{fa.init(e,t),j.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Rc(e,t,n,r),e.enum=t.entries,e.options=[...e._zod.values];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 Rd({...t,checks:[],...y(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 Rd({...t,checks:[],...y(r),entries:i})}});function H(e,t){return new Rd({type:`enum`,entries:Array.isArray(e)?Object.fromEntries(e.map(e=>[e,e])):e,...y(t)})}function zd(e,t){return new Rd({type:`enum`,entries:e,...y(t)})}var Bd=S(`ZodLiteral`,(e,t)=>{pa.init(e,t),j.init(e,t),e._zod.processJSONSchema=(t,n,r)=>zc(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 U(e,t){return new Bd({type:`literal`,values:Array.isArray(e)?e:[e],...y(t)})}var Vd=S(`ZodFile`,(e,t)=>{ma.init(e,t),j.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Hc(e,t,n,r),e.min=(t,n)=>e.check(Ss(t,n)),e.max=(t,n)=>e.check(xs(t,n)),e.mime=(t,n)=>e.check(Fs(Array.isArray(t)?t:[t],n))});function Hd(e){return Us(Vd,e)}var Ud=S(`ZodTransform`,(e,t)=>{Ll(),ha.init(e,t),j.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Kc(e,t,n,r),e._zod.parse=(n,r)=>{if(r.direction===`backward`)throw new C(e.constructor.name);n.addIssue=r=>{if(typeof r==`string`)n.issues.push(Be(r,n.value,t));else{let t=r;t.fatal&&(t.continue=!1),t.code??=`custom`,`input`in t||(t.input=n.value),t.inst??=e,n.issues.push(Be(t))}};let i=t.transform(n.value,n);return i instanceof Promise?i.then(e=>(n.value=e,n)):(n.value=i,n)}});function Wd(e){return new Ud({type:`transform`,transform:e})}var Gd=S(`ZodOptional`,(e,t)=>{_a.init(e,t),j.init(e,t),e._zod.processJSONSchema=(t,n,r)=>hl(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function W(e){return new Gd({type:`optional`,innerType:e})}var Kd=S(`ZodExactOptional`,(e,t)=>{va.init(e,t),j.init(e,t),e._zod.processJSONSchema=(t,n,r)=>hl(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function qd(e){return new Kd({type:`optional`,innerType:e})}var Jd=S(`ZodNullable`,(e,t)=>{ya.init(e,t),j.init(e,t),e._zod.processJSONSchema=(t,n,r)=>al(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Yd(e){return new Jd({type:`nullable`,innerType:e})}function Xd(e){return W(Yd(e))}var Zd=S(`ZodDefault`,(e,t)=>{ba.init(e,t),j.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ll(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeDefault=e.unwrap});function Qd(e,t){return new Zd({type:`default`,innerType:e,get defaultValue(){return typeof t==`function`?t():fe(t)}})}var $d=S(`ZodPrefault`,(e,t)=>{Sa.init(e,t),j.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ul(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function ef(e,t){return new $d({type:`prefault`,innerType:e,get defaultValue(){return typeof t==`function`?t():fe(t)}})}var tf=S(`ZodNonOptional`,(e,t)=>{Ca.init(e,t),j.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ol(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function nf(e,t){return new tf({type:`nonoptional`,innerType:e,...y(t)})}var rf=S(`ZodSuccess`,(e,t)=>{Ta.init(e,t),j.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Uc(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function af(e){return new rf({type:`success`,innerType:e})}var of=S(`ZodCatch`,(e,t)=>{Da.init(e,t),j.init(e,t),e._zod.processJSONSchema=(t,n,r)=>dl(e,t,n,r),e.unwrap=()=>e._zod.def.innerType,e.removeCatch=e.unwrap});function sf(e,t){return new of({type:`catch`,innerType:e,catchValue:typeof t==`function`?t:Qe(t)})}var cf=S(`ZodNaN`,(e,t)=>{Oa.init(e,t),j.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Bc(e,t,n,r)});function lf(e){return ds(cf,e)}var uf=S(`ZodPipe`,(e,t)=>{ka.init(e,t),j.init(e,t),e._zod.processJSONSchema=(t,n,r)=>fl(e,t,n,r),e.in=t.in,e.out=t.out});function df(e,t){return new uf({type:`pipe`,in:e,out:t})}var ff=S(`ZodCodec`,(e,t)=>{uf.init(e,t),ja.init(e,t)});function pf(e,t,n){return new ff({type:`pipe`,in:e,out:t,transform:n.decode,reverseTransform:n.encode})}function mf(e){let t=e._zod.def;return new ff({type:`pipe`,in:t.out,out:t.in,transform:t.reverseTransform,reverseTransform:t.transform})}var hf=S(`ZodPreprocess`,(e,t)=>{uf.init(e,t),Pa.init(e,t)}),gf=S(`ZodReadonly`,(e,t)=>{Fa.init(e,t),j.init(e,t),e._zod.processJSONSchema=(t,n,r)=>pl(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function _f(e){return new gf({type:`readonly`,innerType:e})}var vf=S(`ZodTemplateLiteral`,(e,t)=>{za.init(e,t),j.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Vc(e,t,n,r)});function yf(e,t){return new vf({type:`template_literal`,parts:e,...y(t)})}var bf=S(`ZodLazy`,(e,t)=>{Ha.init(e,t),j.init(e,t),e._zod.processJSONSchema=(t,n,r)=>gl(e,t,n,r),e.unwrap=()=>e._zod.def.getter()});function xf(e){return new bf({type:`lazy`,getter:e})}var Sf=S(`ZodPromise`,(e,t)=>{Va.init(e,t),j.init(e,t),e._zod.processJSONSchema=(t,n,r)=>ml(e,t,n,r),e.unwrap=()=>e._zod.def.innerType});function Cf(e){return new Sf({type:`promise`,innerType:e})}var wf=S(`ZodFunction`,(e,t)=>{Ba.init(e,t),j.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Gc(e,t,n,r)});function Tf(e){return new wf({type:`function`,input:Array.isArray(e?.input)?Ad(e?.input):e?.input??L(I()),output:e?.output??I()})}var Ef=S(`ZodCustom`,(e,t)=>{Ua.init(e,t),j.init(e,t),e._zod.processJSONSchema=(t,n,r)=>Wc(e,t,n,r)});function Df(e){let t=new T({check:`custom`});return t._zod.check=e,t}function Of(e,t){return Ws(Ef,e??(()=>!0),t)}function kf(e,t={}){return Gs(Ef,e,t)}function Af(e,t){return Ks(e,t)}var jf=Js,Mf=Ys,Nf=S(`ZodInstanceOf`,(e,t)=>{Ef.init(e,t)},{properties(e,t){return this.check(Ps(e,t))}});function Pf(e,t={}){let n=new Nf({type:`custom`,check:`custom`,fn:t=>t instanceof e,abort:!0,...y(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 Ff=(...e)=>Xs({Codec:ff,Boolean:Zu,String:zl},...e);function If(e){let t=xf(()=>B([M(e),P(),F(),cd(),L(t),V(M(),t)]));return t}function Lf(e,t){return new hf({type:`pipe`,in:Wd(e),out:t})}var Rf={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`},zf;zf||={};var Bf=t({ZodISODate:()=>Vl,ZodISODateTime:()=>Bl,ZodISODuration:()=>Ul,ZodISOTime:()=>Hl,date:()=>Hf,datetime:()=>Vf,duration:()=>Wf,time:()=>Uf});function Vf(e){return Ho(Bl,e)}function Hf(e){return Uo(Vl,e)}function Uf(e){return Wo(Hl,e)}function Wf(e){return Go(Ul,e)}var G={...Fl,...yl,iso:Bf},Gf=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 Kf(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 qf(e,t){return e.map((e,n)=>n<t?e:e.optional())}function Jf(e){return e.replace(/~1/g,`/`).replace(/~0/g,`~`)}function Yf(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]===void 0?void 0:Jf(n[1]);if(!r||!t.defs[r])throw Error(`Reference not found: ${e}`);return t.defs[r]}throw Error(`Reference not found: ${e}`)}function Xf(e,t){return G.transform(e=>e).check(n=>{let r=n.value;if(typeof r!=`object`||!r||Array.isArray(r))return;let i=Object.getOwnPropertyNames(r);if(t.minProperties!==void 0&&i.length<t.minProperties&&n.issues.push({origin:`object`,code:`too_small`,minimum:t.minProperties,inclusive:!0,message:`Too small: expected object to have >=${t.minProperties} properties`,input:r,inst:e,continue:!0}),t.maxProperties!==void 0&&i.length>t.maxProperties&&n.issues.push({origin:`object`,code:`too_big`,maximum:t.maxProperties,inclusive:!0,message:`Too big: expected object to have <=${t.maxProperties} properties`,input:r,inst:e,continue:!0}),t.keySchema)for(let e of i){let r=t.keySchema.safeParse(e);r.success||n.issues.push({code:`invalid_key`,origin:`record`,issues:r.error.issues,input:e,path:[e],continue:!0})}}).pipe(e)}function Zf(e,t){if(e===null)return`z`;let n=typeof e;if(n!==`object`){if(n===`number`&&Number.isNaN(e))return null;let t=String(e);return`${n[0]}${t.length}:${t}`}if(t.has(e))return null;t.add(e);try{if(Array.isArray(e)){let n=[];for(let r of e){let e=Zf(r,t);if(e===null)return null;n.push(e)}return`a${n.length}:[${n.join(`,`)}]`}let n=Object.keys(e).sort(),r=[];for(let i of n){let n=Zf(e[i],t);if(n===null)return null;r.push(`${i.length}:${i}=${n}`)}return`o${r.length}:{${r.join(`,`)}}`}finally{t.delete(e)}}var Qf=new Set([`items`,`prefixItems`,`additionalItems`,`additionalProperties`,`contains`,`propertyNames`,`not`,`if`,`then`,`else`,`allOf`,`anyOf`,`oneOf`,`unevaluatedItems`,`unevaluatedProperties`,`contentSchema`]),$f=new Set([`properties`,`patternProperties`,`dependentSchemas`,`dependencies`,`$defs`,`definitions`]);function ep(e){return typeof e!=`object`||!e?!1:Array.isArray(e)?e.some(ep):typeof e.$ref==`string`||Object.entries(e).some(([e,t])=>Qf.has(e)?ep(t):!$f.has(e)||typeof t!=`object`||!t?!1:Object.values(t).some(ep))}function tp(e){return e===1?`element`:`elements`}function np(e,t){return G.transform(e=>e).check(e=>{let n=e.value;if(Array.isArray(n)){if(t.uniqueItems===!0){let t=new Map;for(let r=0;r<n.length;r++){let i=Zf(n[r],new Set);if(i===null)continue;let a=t.get(i);a===void 0?t.set(i,r):e.issues.push({code:`custom`,message:`Array items must be unique: element at index ${r} duplicates the one at index ${a}`,input:n,path:[r],continue:!0})}}if(t.containsSchema){let r=t.minContains??1,i=t.maxContains===void 0?1/0:t.maxContains+1,a=0;for(let e of n)if(t.containsSchema.safeParse(e).success&&++a>=i)break;a<r&&e.issues.push({code:`custom`,message:`Array must contain at least ${r} matching ${tp(r)}; found ${a}`,input:n,continue:!0}),t.maxContains!==void 0&&a>t.maxContains&&e.issues.push({code:`custom`,message:`Array must contain at most ${t.maxContains} matching ${tp(t.maxContains)}`,input:n,continue:!0})}}}).pipe(e)}function rp(e,t){if(e!==!1)return e===void 0||e===!0?G.any():op(e,t)}var ip=/^(?:[01]\d|2[0-3]):[0-5]\d:[0-5]\d(?:\.\d+)?(?:Z|[+-](?:[01]\d|2[0-3]):[0-5]\d)$/;function ap(e,t){if(e.not!==void 0){if(typeof e.not==`object`&&Object.keys(e.not).length===0)return G.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 G.lazy(()=>{if(!t.refs.has(n))throw Error(`Circular reference not resolved: ${n}`);return t.refs.get(n)});t.processing.add(n);let r=op(Yf(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 G.null();if(n.length===0)return G.never();if(n.length===1)return G.literal(n[0]);if(n.every(e=>typeof e==`string`))return G.enum(n);let r=n.map(e=>G.literal(e));return r.length<2?r[0]:G.union([r[0],r[1],...r.slice(2)])}if(e.const!==void 0)return G.literal(e.const);let n=e.type;if(Array.isArray(n)){let r=n.map(n=>ap({...e,type:n},t));return r.length===0?G.never():r.length===1?r[0]:G.union(r)}if(!n)return G.any();let r;switch(n){case`string`:{let t=G.string();if(e.format){let n=e.format;n===`email`?t=t.check(G.email()):n===`uri`||n===`uri-reference`?t=t.check(G.url()):n===`uuid`||n===`guid`?t=t.check(G.uuid()):n===`date-time`?t=t.check(G.iso.datetime({offset:!0})):n===`date`?t=t.check(G.iso.date()):n===`time`?t=t.check(G.regex(ip)):n===`duration`?t=t.check(G.iso.duration()):n===`hostname`?t=t.check(G.hostname()):n===`ipv4`?t=t.check(G.ipv4()):n===`ipv6`?t=t.check(G.ipv6()):n===`mac`?t=t.check(G.mac()):n===`cidr`?t=t.check(G.cidrv4()):n===`cidr-v6`?t=t.check(G.cidrv6()):n===`base64`?t=t.check(G.base64()):n===`base64url`?t=t.check(G.base64url()):n===`e164`?t=t.check(G.e164()):n===`credit_card`?t=t.check(G.creditCard()):n===`iban`?t=t.check(G.iban()):n===`jwt`?t=t.check(G.jwt()):n===`emoji`?t=t.check(G.emoji()):n===`nanoid`?t=t.check(G.nanoid()):n===`cuid`?t=t.check(G.cuid()):n===`cuid2`?t=t.check(G.cuid2()):n===`ulid`?t=t.check(G.ulid()):n===`xid`?t=t.check(G.xid()):n===`ksuid`&&(t=t.check(G.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`?G.number().int():G.number();typeof e.minimum==`number`&&e.exclusiveMinimum!==!0&&(t=t.min(e.minimum)),typeof e.maximum==`number`&&e.exclusiveMaximum!==!0&&(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=G.boolean();break;case`null`:r=G.null();break;case`object`:{let n={},i=e.properties||{},a=new Set(e.required||[]),o=typeof e.additionalProperties==`object`?op(e.additionalProperties,t):void 0;for(let[e,r]of Object.entries(i)){let i=op(r,t);g(n,e,a.has(e)?i:i.optional())}if(e.patternProperties){let i=e.patternProperties,a=Object.keys(i),o=[];for(let e of a){let n=op(i[e],t),r=G.string().regex(new RegExp(e));o.push(G.looseRecord(r,n))}let s=[];if(Object.keys(n).length>0&&s.push(G.object(n).passthrough()),s.push(...o),s.length===0)r=G.object({}).passthrough();else if(s.length===1)r=s[0];else{let e=G.intersection(s[0],s[1]);for(let t=2;t<s.length;t++)e=G.intersection(e,s[t]);r=e}if(e.additionalProperties===!1){let e=Object.keys(n),t=a.map(e=>new RegExp(e)),i=r;r=r.check(n=>{if(!de(n.value))return;let r=[];for(let i of Object.keys(n.value))e.includes(i)||t.some(e=>e.test(i))||r.push(i);r.length&&n.issues.push({code:`unrecognized_keys`,keys:r,input:n.value,inst:i})})}}else{let t=G.object(n);r=e.additionalProperties===!1?t.strict():o?t.catchall(o):t.passthrough()}let s=e.propertyNames!==void 0&&e.propertyNames!==!0,c=typeof e.minProperties==`number`?e.minProperties:void 0,l=typeof e.maxProperties==`number`?e.maxProperties:void 0;if(s||c!==void 0||l!==void 0){let n;s&&(n=op(typeof e.propertyNames==`object`&&e.propertyNames.type===void 0?{type:`string`,...e.propertyNames}:e.propertyNames,t)),r=Xf(r,{keySchema:n,minProperties:c,maxProperties:l})}break}case`array`:{let n=e.prefixItems,i=e.items;if(n&&Array.isArray(n)){let a=typeof e.minItems==`number`?e.minItems:0,o=qf(n.map(e=>op(e,t)),a),s=Array.isArray(i)?void 0:rp(i,t),c=G.tuple(o);r=s?c.rest(s):c,typeof e.minItems==`number`&&(r=r.check(G.minLength(e.minItems))),typeof e.maxItems==`number`&&(r=r.check(G.maxLength(e.maxItems)))}else if(Array.isArray(i)){let n=typeof e.minItems==`number`?e.minItems:0,a=qf(i.map(e=>op(e,t)),n),o=rp(e.additionalItems,t),s=G.tuple(a);r=o?s.rest(o):s,typeof e.minItems==`number`&&(r=r.check(G.minLength(e.minItems))),typeof e.maxItems==`number`&&(r=r.check(G.maxLength(e.maxItems)))}else if(i!==void 0){let n=op(i,t),a=G.array(n);typeof e.minItems==`number`&&(a=a.min(e.minItems)),typeof e.maxItems==`number`&&(a=a.max(e.maxItems)),r=a}else r=G.array(G.any());(e.uniqueItems===!0||e.contains!==void 0)&&(r=np(r,{uniqueItems:e.uniqueItems===!0,containsSchema:e.contains===void 0?void 0:op(e.contains,t),minContains:typeof e.minContains==`number`?e.minContains:void 0,maxContains:typeof e.maxContains==`number`?e.maxContains:void 0}));break}default:throw Error(`Unsupported type: ${n}`)}return r}function op(e,t){if(typeof e==`boolean`)return e?G.any():G.never();let n=ap(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=>op(e,t)),a=G.union(i);n=r?G.intersection(n,a):a}if(e.oneOf&&Array.isArray(e.oneOf)){let i=e.oneOf.map(e=>op(e,t)),a=G.xor(i);n=r?G.intersection(n,a):a}if(e.allOf&&Array.isArray(e.allOf)){if(e.allOf.length===0)n=r?n:G.any();else{let i=r?n:op(e.allOf[0],t),a=+!r;for(let n=a;n<e.allOf.length;n++)i=G.intersection(i,op(e.allOf[n],t));n=i}}e.nullable===!0&&t.version===`openapi-3.0`&&(n=G.nullable(n)),e.readOnly===!0&&(n=G.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]);if(e.type===`object`&&e.$ref===void 0){e.propertyNames!==void 0&&!ep(e.propertyNames)&&(i.propertyNames=e.propertyNames);for(let t of[`minProperties`,`maxProperties`])e[t]!==void 0&&(i[t]=e[t])}if(e.type===`array`&&e.$ref===void 0){e.contains!==void 0&&!ep(e.contains)&&(i.contains=e.contains);for(let t of[`uniqueItems`,`minContains`,`maxContains`])e[t]!==void 0&&(i[t]=e[t])}for(let t of Object.keys(e))Gf.has(t)||g(i,t,e[t]);return Object.keys(i).length>0&&t.registry.add(n,i),e.description&&(n=n.describe(e.description)),n}function sp(e,t){if(typeof e==`boolean`)return e?G.any():G.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:Kf(n,t?.defaultTarget),defs:n.$defs||n.definitions||{},refs:new Map,processing:new Set,rootSchema:n,registry:t?.registry??mo};return op(n,r)}function cp(e){return qo(Wu,e)}var lp=[`2025-11-25`,`2025-06-18`,`2025-03-26`,`2024-11-05`,`2024-10-07`],up=`io.modelcontextprotocol/related-task`,dp=`io.modelcontextprotocol/protocolVersion`,fp=`io.modelcontextprotocol/clientInfo`,pp=`io.modelcontextprotocol/serverInfo`,mp=`io.modelcontextprotocol/clientCapabilities`,hp=`io.modelcontextprotocol/subscriptionId`,gp=`io.modelcontextprotocol/logLevel`,_p=xf(()=>B([M(),P(),F(),cd(),V(M(),_p),L(_p)])),K=V(M(),_p),vp=L(_p),yp=B([M(),P().int()]),bp=M(),xp=R({ttl:P().optional()}),Sp=R({taskId:M()}),Cp=z({progressToken:yp.optional(),[up]:Sp.optional()}),wp=R({_meta:Cp.optional()}),Tp=wp.extend({task:xp.optional()}),q=R({method:M(),params:wp.loose().optional()}),Ep=R({_meta:Cp.optional()}),Dp=R({method:M(),params:Ep.loose().optional()}),Op=z({get[pp](){return Hp.optional().catch(void 0)}}),J=z({_meta:Op.optional()}),kp=B([M(),P().int()]),Ap=R({jsonrpc:U(`2.0`),id:kp,...q.shape}).strict(),jp=R({jsonrpc:U(`2.0`),...Dp.shape}).strict(),Mp=R({jsonrpc:U(`2.0`),id:kp,result:J}).strict(),Np=R({jsonrpc:U(`2.0`),id:kp.optional(),error:R({code:P().int(),message:M(),data:I().optional()})}).strict(),Pp=B([Ap,jp,Mp,Np]),Fp=B([Mp,Np]),Ip=J.strict(),Lp=Ep.extend({requestId:kp.optional(),reason:M().optional()}),Rp=Dp.extend({method:U(`notifications/cancelled`),params:Lp}),zp=R({src:M(),mimeType:M().optional(),sizes:L(M()).optional(),theme:H([`light`,`dark`]).optional()}),Bp=R({icons:L(zp).optional()}),Vp=R({name:M(),title:M().optional()}),Hp=Vp.extend({...Vp.shape,...Bp.shape,version:M(),websiteUrl:M().optional(),description:M().optional()}),Up=Lf(e=>e&&typeof e==`object`&&!Array.isArray(e)&&Object.keys(e).length===0?{form:{}}:e,Od(R({form:Od(R({applyDefaults:F().optional()}),K).optional(),url:K.optional()}),K.optional())),Wp=z({list:K.optional(),cancel:K.optional(),requests:z({sampling:z({createMessage:K.optional()}).optional(),elicitation:z({create:K.optional()}).optional()}).optional()}),Gp=z({list:K.optional(),cancel:K.optional(),requests:z({tools:z({call:K.optional()}).optional()}).optional()}),Kp=R({experimental:V(M(),K).optional(),sampling:R({context:K.optional(),tools:K.optional()}).optional(),elicitation:Up.optional(),roots:R({listChanged:F().optional()}).optional(),tasks:Wp.optional(),extensions:V(M(),K).optional()}),qp=wp.extend({protocolVersion:M(),capabilities:Kp,clientInfo:Hp}),Jp=q.extend({method:U(`initialize`),params:qp}),Yp=R({experimental:V(M(),K).optional(),logging:K.optional(),completions:K.optional(),prompts:R({listChanged:F().optional()}).optional(),resources:R({subscribe:F().optional(),listChanged:F().optional()}).optional(),tools:R({listChanged:F().optional()}).optional(),tasks:Gp.optional(),extensions:V(M(),K).optional()}),Xp=J.extend({protocolVersion:M(),capabilities:Yp,serverInfo:Hp,instructions:M().optional()}),Zp=Dp.extend({method:U(`notifications/initialized`),params:Ep.optional()}),Qp=q.extend({method:U(`server/discover`),params:wp.optional()}),$p=J.extend({supportedVersions:L(M()),capabilities:Yp,instructions:M().optional()}),em=q.extend({method:U(`ping`),params:wp.optional()}),tm=R({progress:P(),total:W(P()),message:W(M())}),nm=R({...Ep.shape,...tm.shape,progressToken:yp}),rm=Dp.extend({method:U(`notifications/progress`),params:nm}),im=wp.extend({cursor:bp.optional()}),am=q.extend({params:im.optional()}),om=J.extend({nextCursor:bp.optional()}),sm=R({uri:M(),mimeType:W(M()),_meta:V(M(),I()).optional()}),cm=sm.extend({text:M()}),lm=M().refine(e=>{try{return atob(e),!0}catch{return!1}},{message:`Invalid Base64 string`}),um=sm.extend({blob:lm}),dm=H([`user`,`assistant`]),fm=R({audience:L(dm).optional(),priority:P().min(0).max(1).optional(),lastModified:Vf({offset:!0}).optional()}),pm=R({...Vp.shape,...Bp.shape,uri:M(),description:W(M()),mimeType:W(M()),size:W(P()),annotations:fm.optional(),_meta:W(z({}))}),mm=R({...Vp.shape,...Bp.shape,uriTemplate:M(),description:W(M()),mimeType:W(M()),annotations:fm.optional(),_meta:W(z({}))}),hm=am.extend({method:U(`resources/list`)}),gm=om.extend({resources:L(pm)}),_m=am.extend({method:U(`resources/templates/list`)}),vm=om.extend({resourceTemplates:L(mm)}),ym=wp.extend({uri:M()}),bm=ym,xm=q.extend({method:U(`resources/read`),params:bm}),Sm=J.extend({contents:L(B([cm,um]))}),Cm=Dp.extend({method:U(`notifications/resources/list_changed`),params:Ep.optional()}),wm=ym,Tm=q.extend({method:U(`resources/subscribe`),params:wm}),Em=ym,Dm=q.extend({method:U(`resources/unsubscribe`),params:Em}),Om=R({toolsListChanged:F().optional(),promptsListChanged:F().optional(),resourcesListChanged:F().optional(),resourceSubscriptions:L(M()).optional()}),km=wp.extend({notifications:Om}),Am=q.extend({method:U(`subscriptions/listen`),params:km}),jm=Ep.extend({notifications:Om}),Mm=Dp.extend({method:U(`notifications/subscriptions/acknowledged`),params:jm}),Nm=Op.extend({[hp]:kp}),Pm=J.extend({_meta:Nm}),Fm=Ep.extend({uri:M()}),Im=Dp.extend({method:U(`notifications/resources/updated`),params:Fm}),Lm=R({name:M(),description:W(M()),required:W(F())}),Rm=R({...Vp.shape,...Bp.shape,description:W(M()),arguments:W(L(Lm)),_meta:W(z({}))}),zm=am.extend({method:U(`prompts/list`)}),Bm=om.extend({prompts:L(Rm)}),Vm=wp.extend({name:M(),arguments:V(M(),M()).optional()}),Hm=q.extend({method:U(`prompts/get`),params:Vm}),Um=R({type:U(`text`),text:M(),annotations:fm.optional(),_meta:V(M(),I()).optional()}),Wm=R({type:U(`image`),data:lm,mimeType:M(),annotations:fm.optional(),_meta:V(M(),I()).optional()}),Gm=R({type:U(`audio`),data:lm,mimeType:M(),annotations:fm.optional(),_meta:V(M(),I()).optional()}),Km=R({type:U(`tool_use`),name:M(),id:M(),input:V(M(),I()),_meta:V(M(),I()).optional()}),qm=R({type:U(`resource`),resource:B([cm,um]),annotations:fm.optional(),_meta:V(M(),I()).optional()}),Jm=pm.extend({type:U(`resource_link`)}),Ym=B([Um,Wm,Gm,Jm,qm]),Xm=R({role:dm,content:Ym}),Zm=J.extend({description:M().optional(),messages:L(Xm)}),Qm=Dp.extend({method:U(`notifications/prompts/list_changed`),params:Ep.optional()}),$m=R({title:M().optional(),readOnlyHint:F().optional(),destructiveHint:F().optional(),idempotentHint:F().optional(),openWorldHint:F().optional()}),eh=R({taskSupport:H([`required`,`optional`,`forbidden`]).optional()}),th=R({...Vp.shape,...Bp.shape,description:M().optional(),inputSchema:R({type:U(`object`),properties:V(M(),_p).optional(),required:L(M()).optional()}).catchall(I()),outputSchema:z({$schema:M().optional()}).optional(),annotations:$m.optional(),execution:eh.optional(),_meta:V(M(),I()).optional()}),nh=am.extend({method:U(`tools/list`)}),rh=om.extend({tools:L(th)}),ih=J.extend({content:L(Ym).default([]),structuredContent:I().optional(),isError:F().optional()}),ah=ih.or(J.extend({toolResult:I()})),oh=Tp.extend({name:M(),arguments:V(M(),I()).optional()}),sh=q.extend({method:U(`tools/call`),params:oh}),ch=Dp.extend({method:U(`notifications/tools/list_changed`),params:Ep.optional()}),lh=R({autoRefresh:F().default(!0),debounceMs:P().int().nonnegative().default(300)}),uh=H([`debug`,`info`,`notice`,`warning`,`error`,`critical`,`alert`,`emergency`]),dh=wp.extend({level:uh}),fh=q.extend({method:U(`logging/setLevel`),params:dh}),ph=Ep.extend({level:uh,logger:M().optional(),data:I()}),mh=Dp.extend({method:U(`notifications/message`),params:ph}),hh=R({name:M().optional()}),gh=R({hints:L(hh).optional(),costPriority:P().min(0).max(1).optional(),speedPriority:P().min(0).max(1).optional(),intelligencePriority:P().min(0).max(1).optional()}),_h=R({mode:H([`auto`,`required`,`none`]).optional()}),vh=R({type:U(`tool_result`),toolUseId:M().describe(`The unique identifier for the corresponding tool call.`),content:L(Ym),structuredContent:I().optional(),isError:F().optional(),_meta:V(M(),I()).optional()}),yh=Ed(`type`,[Um,Wm,Gm]),bh=Ed(`type`,[Um,Wm,Gm,Km,vh]),xh=R({role:dm,content:B([bh,L(bh)]),_meta:V(M(),I()).optional()}),Sh=Tp.extend({messages:L(xh),modelPreferences:gh.optional(),systemPrompt:M().optional(),includeContext:H([`none`,`thisServer`,`allServers`]).optional(),temperature:P().optional(),maxTokens:P().int(),stopSequences:L(M()).optional(),metadata:K.optional(),tools:L(th).optional(),toolChoice:_h.optional()}),Ch=q.extend({method:U(`sampling/createMessage`),params:Sh}),wh=J.extend({model:M(),stopReason:W(H([`endTurn`,`stopSequence`,`maxTokens`]).or(M())),role:dm,content:yh}),Th=J.extend({model:M(),stopReason:W(H([`endTurn`,`stopSequence`,`maxTokens`,`toolUse`]).or(M())),role:dm,content:B([bh,L(bh)])}),Eh=R({type:U(`boolean`),title:M().optional(),description:M().optional(),default:F().optional()}),Dh=R({type:U(`string`),title:M().optional(),description:M().optional(),minLength:P().optional(),maxLength:P().optional(),format:H([`email`,`uri`,`date`,`date-time`]).optional(),default:M().optional()}),Oh=R({type:H([`number`,`integer`]),title:M().optional(),description:M().optional(),minimum:P().optional(),maximum:P().optional(),default:P().optional()}),kh=R({type:U(`string`),title:M().optional(),description:M().optional(),enum:L(M()),default:M().optional()}),Ah=R({type:U(`string`),title:M().optional(),description:M().optional(),oneOf:L(R({const:M(),title:M()})),default:M().optional()}),jh=R({type:U(`string`),title:M().optional(),description:M().optional(),enum:L(M()),enumNames:L(M()).optional(),default:M().optional()}),Mh=B([kh,Ah]),Nh=R({type:U(`array`),title:M().optional(),description:M().optional(),minItems:P().optional(),maxItems:P().optional(),items:R({type:U(`string`),enum:L(M())}),default:L(M()).optional()}),Ph=R({type:U(`array`),title:M().optional(),description:M().optional(),minItems:P().optional(),maxItems:P().optional(),items:R({anyOf:L(R({const:M(),title:M()}))}),default:L(M()).optional()}),Fh=B([Nh,Ph]),Ih=B([jh,Mh,Fh]),Lh=B([Ih,Eh,Dh,Oh]),Rh=Tp.extend({mode:U(`form`).optional(),message:M(),requestedSchema:R({type:U(`object`),properties:V(M(),Lh),required:L(M()).optional()}).catchall(I())}),zh=Tp.extend({mode:U(`url`),message:M(),elicitationId:M(),url:M().url()}),Bh=B([Rh,zh]),Vh=q.extend({method:U(`elicitation/create`),params:Bh}),Hh=Ep.extend({elicitationId:M()}),Uh=Dp.extend({method:U(`notifications/elicitation/complete`),params:Hh}),Wh=J.extend({action:H([`accept`,`decline`,`cancel`]),content:Lf(e=>e===null?void 0:e,V(M(),B([M(),P(),F(),L(M())])).optional())}),Gh=R({type:U(`ref/resource`),uri:M()}),Kh=R({type:U(`ref/prompt`),name:M()}),qh=wp.extend({ref:B([Kh,Gh]),argument:R({name:M(),value:M()}),context:R({arguments:V(M(),M()).optional()}).optional()}),Jh=q.extend({method:U(`completion/complete`),params:qh}),Yh=J.extend({completion:z({values:L(M()).max(100),total:W(P().int()),hasMore:W(F())})}),Xh=R({uri:M().startsWith(`file://`),name:M().optional(),_meta:V(M(),I()).optional()}),Zh=q.extend({method:U(`roots/list`),params:wp.optional()}),Qh=J.extend({roots:L(Xh)}),$h=Dp.extend({method:U(`notifications/roots/list_changed`),params:Ep.optional()}),eg=z({ttl:P().optional(),pollInterval:P().optional()}),tg=H([`working`,`input_required`,`completed`,`failed`,`cancelled`]),ng=R({taskId:M(),status:tg,ttl:B([P(),cd()]),createdAt:M(),lastUpdatedAt:M(),pollInterval:W(P()),statusMessage:W(M())}),rg=J.extend({task:ng}),ig=Ep.merge(ng),ag=Dp.extend({method:U(`notifications/tasks/status`),params:ig}),og=q.extend({method:U(`tasks/get`),params:wp.extend({taskId:M()})}),sg=J.merge(ng),cg=q.extend({method:U(`tasks/result`),params:wp.extend({taskId:M()})}),lg=J.loose(),ug=am.extend({method:U(`tasks/list`)}),dg=om.extend({tasks:L(ng)}),fg=q.extend({method:U(`tasks/cancel`),params:wp.extend({taskId:M()})}),pg=J.merge(ng),mg=B([em,Jp,Qp,Jh,fh,Hm,zm,hm,_m,xm,Tm,Dm,Am,sh,nh]),hg=B([Rp,rm,Zp,$h]),gg=B([Ip,wh,Th,Wh,Qh]),_g=B([em,Ch,Vh,Zh]),vg=B([Rp,rm,mh,Im,Cm,ch,Qm,Mm,Uh]),yg=B([Ip,Xp,$p,Yh,Zm,Bm,gm,vm,Sm,ih,rh,Pm]),Y=eu().superRefine((e,t)=>{if(!URL.canParse(e))return t.addIssue({code:Rf.custom,message:`URL must be parseable`,fatal:!0}),et}).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`}),bg=z({resource:M().url(),authorization_servers:L(Y).optional(),jwks_uri:M().url().optional(),scopes_supported:L(M()).optional(),bearer_methods_supported:L(M()).optional(),resource_signing_alg_values_supported:L(M()).optional(),resource_name:M().optional(),resource_documentation:M().optional(),resource_policy_uri:M().url().optional(),resource_tos_uri:M().url().optional(),tls_client_certificate_bound_access_tokens:F().optional(),authorization_details_types_supported:L(M()).optional(),dpop_signing_alg_values_supported:L(M()).optional(),dpop_bound_access_tokens_required:F().optional()}),xg=z({issuer:M(),authorization_endpoint:Y,token_endpoint:Y,registration_endpoint:Y.optional(),scopes_supported:L(M()).optional(),response_types_supported:L(M()),response_modes_supported:L(M()).optional(),grant_types_supported:L(M()).optional(),token_endpoint_auth_methods_supported:L(M()).optional(),token_endpoint_auth_signing_alg_values_supported:L(M()).optional(),service_documentation:Y.optional(),revocation_endpoint:Y.optional(),revocation_endpoint_auth_methods_supported:L(M()).optional(),revocation_endpoint_auth_signing_alg_values_supported:L(M()).optional(),introspection_endpoint:M().optional(),introspection_endpoint_auth_methods_supported:L(M()).optional(),introspection_endpoint_auth_signing_alg_values_supported:L(M()).optional(),code_challenge_methods_supported:L(M()).optional(),client_id_metadata_document_supported:F().optional(),authorization_response_iss_parameter_supported:F().optional().catch(void 0),dpop_signing_alg_values_supported:L(M()).optional()}),Sg=z({issuer:M(),authorization_endpoint:Y,token_endpoint:Y,userinfo_endpoint:Y.optional(),jwks_uri:Y,registration_endpoint:Y.optional(),scopes_supported:L(M()).optional(),response_types_supported:L(M()),response_modes_supported:L(M()).optional(),grant_types_supported:L(M()).optional(),acr_values_supported:L(M()).optional(),subject_types_supported:L(M()),id_token_signing_alg_values_supported:L(M()),id_token_encryption_alg_values_supported:L(M()).optional(),id_token_encryption_enc_values_supported:L(M()).optional(),userinfo_signing_alg_values_supported:L(M()).optional(),userinfo_encryption_alg_values_supported:L(M()).optional(),userinfo_encryption_enc_values_supported:L(M()).optional(),request_object_signing_alg_values_supported:L(M()).optional(),request_object_encryption_alg_values_supported:L(M()).optional(),request_object_encryption_enc_values_supported:L(M()).optional(),token_endpoint_auth_methods_supported:L(M()).optional(),token_endpoint_auth_signing_alg_values_supported:L(M()).optional(),display_values_supported:L(M()).optional(),claim_types_supported:L(M()).optional(),claims_supported:L(M()).optional(),service_documentation:M().optional(),claims_locales_supported:L(M()).optional(),ui_locales_supported:L(M()).optional(),claims_parameter_supported:F().optional(),request_parameter_supported:F().optional(),request_uri_parameter_supported:F().optional(),require_request_uri_registration:F().optional(),op_policy_uri:Y.optional(),op_tos_uri:Y.optional(),client_id_metadata_document_supported:F().optional(),authorization_response_iss_parameter_supported:F().optional().catch(void 0)}),Cg=R({...Sg.shape,...xg.pick({code_challenge_methods_supported:!0}).shape}),wg=R({access_token:M(),id_token:M().optional(),token_type:M(),expires_in:cp().optional(),scope:M().optional(),refresh_token:M().optional(),issuer:M().optional().catch(void 0)}).strip(),Tg=R({issued_token_type:U(`urn:ietf:params:oauth:token-type:id-jag`),access_token:M(),token_type:M().optional(),expires_in:P().optional(),scope:M().optional()}).strip(),Eg=R({error:M(),error_description:M().optional(),error_uri:M().optional()}),Dg=Y.optional().or(U(``).transform(()=>void 0)),Og=R({redirect_uris:L(Y),token_endpoint_auth_method:M().optional(),grant_types:L(M()).optional(),response_types:L(M()).optional(),application_type:M().optional(),client_name:M().optional(),client_uri:Y.optional(),logo_uri:Dg,scope:M().optional(),contacts:L(M()).optional(),tos_uri:Dg,policy_uri:M().optional(),jwks_uri:Y.optional(),jwks:ud().optional(),software_id:M().optional(),software_version:M().optional(),software_statement:M().optional()}).strip(),kg=R({client_id:M(),client_secret:M().optional(),client_id_issued_at:P().optional(),client_secret_expires_at:P().optional(),issuer:M().optional().catch(void 0)}).strip(),Ag=Og.merge(kg),jg=R({error:M(),error_description:M().optional()}).strip(),Mg=R({token:M(),token_type_hint:M().optional()}).strip(),Ng=Symbol.for(`mcp.sdk.errorBrands`);function Pg(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,Ng,{value:n,enumerable:!1,configurable:!0})}function Fg(e,t){try{if(typeof t==`object`&&t&&Object.prototype.hasOwnProperty.call(e,`mcpBrand`)&&typeof e.mcpBrand==`string`&&Object.prototype.hasOwnProperty.call(t,Ng)){let n=t[Ng];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 Fg(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 Fg(this,e)}constructor(e,t,n){super(t),this.code=e,this.errorUri=n,this.name=`OAuthError`,Pg(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 Ig=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}({}),X=class extends Error{static{Object.defineProperty(this,"mcpBrand",{value:`mcp.SdkError`})}static[Symbol.hasInstance](e){return Fg(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 Fg(this,e)}constructor(e,t,n,r){super(t,r),this.code=e,this.data=n,this.name=`SdkError`,Pg(this,new.target)}};(class extends X{static{Object.defineProperty(this,"mcpBrand",{value:`mcp.SdkHttpError`})}constructor(e,t,n,r){super(e,t,n,r),this.name=`SdkHttpError`}get status(){return this.data.status}get statusText(){return this.data.statusText}});var Lg=`2026-07-28`;function Rg(e){return e>=Lg}function zg(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 Bg=[`task`,`inputRequests`,`requestState`];function Vg(e){return typeof e!=`object`||!e||Array.isArray(e)||e.content!==void 0||Bg.some(t=>t in e)?e:{...e,content:[]}}function Hg(){let e=xf(()=>B([M(),P(),F(),cd(),V(M(),e),L(e)])),t=V(M(),e),n=B([M(),P().int()]),r=M(),i=R({ttl:P().optional()}),a=R({taskId:M()}),o=z({progressToken:n.optional(),"io.modelcontextprotocol/related-task":a.optional()}),s=R({_meta:o.optional()}),c=s.extend({task:i.optional()}),l=R({method:M(),params:s.loose().optional()}),u=R({_meta:o.optional()}),d=R({method:M(),params:u.loose().optional()}),f=z({_meta:o.optional()}),p=B([M(),P().int()]),m=f.strict(),h=u.extend({requestId:p.optional(),reason:M().optional()}),ee=d.extend({method:U(`notifications/cancelled`),params:h}),g=R({src:M(),mimeType:M().optional(),sizes:L(M()).optional(),theme:H([`light`,`dark`]).optional()}),te=R({icons:L(g).optional()}),_=R({name:M(),title:M().optional()}),ne=_.extend({..._.shape,...te.shape,version:M(),websiteUrl:M().optional(),description:M().optional()}),re=Lf(e=>e&&typeof e==`object`&&!Array.isArray(e)&&Object.keys(e).length===0?{form:{}}:e,Od(R({form:Od(R({applyDefaults:F().optional()}),t).optional(),url:t.optional()}),t.optional())),ie=z({list:t.optional(),cancel:t.optional(),requests:z({sampling:z({createMessage:t.optional()}).optional(),elicitation:z({create:t.optional()}).optional()}).optional()}),ae=z({list:t.optional(),cancel:t.optional(),requests:z({tools:z({call:t.optional()}).optional()}).optional()}),v=R({experimental:V(M(),t).optional(),sampling:R({context:t.optional(),tools:t.optional()}).optional(),elicitation:re.optional(),roots:R({listChanged:F().optional()}).optional(),tasks:ie.optional(),extensions:V(M(),t).optional()}),oe=s.extend({protocolVersion:M(),capabilities:v,clientInfo:ne}),se=l.extend({method:U(`initialize`),params:oe}),ce=R({experimental:V(M(),t).optional(),logging:t.optional(),completions:t.optional(),prompts:R({listChanged:F().optional()}).optional(),resources:R({subscribe:F().optional(),listChanged:F().optional()}).optional(),tools:R({listChanged:F().optional()}).optional(),tasks:ae.optional(),extensions:V(M(),t).optional()}),le=f.extend({protocolVersion:M(),capabilities:ce,serverInfo:ne,instructions:M().optional()}),ue=d.extend({method:U(`notifications/initialized`),params:u.optional()}),de=l.extend({method:U(`ping`),params:s.optional()}),fe=R({progress:P(),total:W(P()),message:W(M())}),pe=R({...u.shape,...fe.shape,progressToken:n}),me=d.extend({method:U(`notifications/progress`),params:pe}),he=s.extend({cursor:r.optional()}),ge=l.extend({params:he.optional()}),y=f.extend({nextCursor:r.optional()}),_e=R({uri:M(),mimeType:W(M()),_meta:V(M(),I()).optional()}),ve=_e.extend({text:M()}),ye=M().refine(e=>{try{return atob(e),!0}catch{return!1}},{message:`Invalid Base64 string`}),be=_e.extend({blob:ye}),xe=H([`user`,`assistant`]),Se=R({audience:L(xe).optional(),priority:P().min(0).max(1).optional(),lastModified:Vf({offset:!0}).optional()}),Ce=R({..._.shape,...te.shape,uri:M(),description:W(M()),mimeType:W(M()),size:W(P()),annotations:Se.optional(),_meta:W(z({}))}),we=R({..._.shape,...te.shape,uriTemplate:M(),description:W(M()),mimeType:W(M()),annotations:Se.optional(),_meta:W(z({}))}),Te=ge.extend({method:U(`resources/list`)}),Ee=y.extend({resources:L(Ce)}),De=ge.extend({method:U(`resources/templates/list`)}),Oe=y.extend({resourceTemplates:L(we)}),ke=s.extend({uri:M()}),b=ke,Ae=l.extend({method:U(`resources/read`),params:b}),je=f.extend({contents:L(B([ve,be]))}),Me=d.extend({method:U(`notifications/resources/list_changed`),params:u.optional()}),Ne=ke,Pe=l.extend({method:U(`resources/subscribe`),params:Ne}),Fe=ke,Ie=l.extend({method:U(`resources/unsubscribe`),params:Fe}),Le=u.extend({uri:M()}),Re=d.extend({method:U(`notifications/resources/updated`),params:Le}),ze=R({name:M(),description:W(M()),required:W(F())}),Be=R({..._.shape,...te.shape,description:W(M()),arguments:W(L(ze)),_meta:W(z({}))}),Ve=ge.extend({method:U(`prompts/list`)}),He=y.extend({prompts:L(Be)}),Ue=s.extend({name:M(),arguments:V(M(),M()).optional()}),We=l.extend({method:U(`prompts/get`),params:Ue}),Ge=R({type:U(`text`),text:M(),annotations:Se.optional(),_meta:V(M(),I()).optional()}),Ke=R({type:U(`image`),data:ye,mimeType:M(),annotations:Se.optional(),_meta:V(M(),I()).optional()}),qe=R({type:U(`audio`),data:ye,mimeType:M(),annotations:Se.optional(),_meta:V(M(),I()).optional()}),Je=R({type:U(`tool_use`),name:M(),id:M(),input:V(M(),I()),_meta:V(M(),I()).optional()}),Ye=R({type:U(`resource`),resource:B([ve,be]),annotations:Se.optional(),_meta:V(M(),I()).optional()}),x=Ce.extend({type:U(`resource_link`)}),Xe=B([Ge,Ke,qe,x,Ye]),Ze=R({role:xe,content:Xe}),Qe=f.extend({description:M().optional(),messages:L(Ze)}),$e=d.extend({method:U(`notifications/prompts/list_changed`),params:u.optional()}),et=R({title:M().optional(),readOnlyHint:F().optional(),destructiveHint:F().optional(),idempotentHint:F().optional(),openWorldHint:F().optional()}),tt=R({taskSupport:H([`required`,`optional`,`forbidden`]).optional()}),nt=R({..._.shape,...te.shape,description:M().optional(),inputSchema:R({type:U(`object`),properties:V(M(),e).optional(),required:L(M()).optional()}).catchall(I()),outputSchema:R({type:U(`object`),properties:V(M(),e).optional(),required:L(M()).optional()}).catchall(I()).optional(),annotations:et.optional(),execution:tt.optional(),_meta:V(M(),I()).optional()}),rt=ge.extend({method:U(`tools/list`)}),S=y.extend({tools:L(nt)}),it=f.extend({content:L(Xe),structuredContent:V(M(),I()).optional(),isError:F().optional()}),C=c.extend({name:M(),arguments:V(M(),I()).optional()}),w=l.extend({method:U(`tools/call`),params:C}),at=d.extend({method:U(`notifications/tools/list_changed`),params:u.optional()}),ot=H([`debug`,`info`,`notice`,`warning`,`error`,`critical`,`alert`,`emergency`]),st=s.extend({level:ot}),ct=l.extend({method:U(`logging/setLevel`),params:st}),lt=u.extend({level:ot,logger:M().optional(),data:I()}),ut=d.extend({method:U(`notifications/message`),params:lt}),dt=R({name:M().optional()}),ft=R({hints:L(dt).optional(),costPriority:P().min(0).max(1).optional(),speedPriority:P().min(0).max(1).optional(),intelligencePriority:P().min(0).max(1).optional()}),pt=R({mode:H([`auto`,`required`,`none`]).optional()}),mt=R({type:U(`tool_result`),toolUseId:M().describe(`The unique identifier for the corresponding tool call.`),content:L(Xe),structuredContent:R({}).loose().optional(),isError:F().optional(),_meta:V(M(),I()).optional()}),ht=Ed(`type`,[Ge,Ke,qe]),gt=Ed(`type`,[Ge,Ke,qe,Je,mt]),_t=R({role:xe,content:B([gt,L(gt)]),_meta:V(M(),I()).optional()}),vt=c.extend({messages:L(_t),modelPreferences:ft.optional(),systemPrompt:M().optional(),includeContext:H([`none`,`thisServer`,`allServers`]).optional(),temperature:P().optional(),maxTokens:P().int(),stopSequences:L(M()).optional(),metadata:t.optional(),tools:L(nt).optional(),toolChoice:pt.optional()}),yt=l.extend({method:U(`sampling/createMessage`),params:vt}),bt=f.extend({model:M(),stopReason:W(H([`endTurn`,`stopSequence`,`maxTokens`]).or(M())),role:xe,content:ht}),xt=f.extend({model:M(),stopReason:W(H([`endTurn`,`stopSequence`,`maxTokens`,`toolUse`]).or(M())),role:xe,content:B([gt,L(gt)])}),St=R({type:U(`boolean`),title:M().optional(),description:M().optional(),default:F().optional()}),Ct=R({type:U(`string`),title:M().optional(),description:M().optional(),minLength:P().optional(),maxLength:P().optional(),format:H([`email`,`uri`,`date`,`date-time`]).optional(),default:M().optional()}),wt=R({type:H([`number`,`integer`]),title:M().optional(),description:M().optional(),minimum:P().optional(),maximum:P().optional(),default:P().optional()}),Tt=R({type:U(`string`),title:M().optional(),description:M().optional(),enum:L(M()),default:M().optional()}),Et=R({type:U(`string`),title:M().optional(),description:M().optional(),oneOf:L(R({const:M(),title:M()})),default:M().optional()}),Dt=R({type:U(`string`),title:M().optional(),description:M().optional(),enum:L(M()),enumNames:L(M()).optional(),default:M().optional()}),Ot=B([Tt,Et]),kt=R({type:U(`array`),title:M().optional(),description:M().optional(),minItems:P().optional(),maxItems:P().optional(),items:R({type:U(`string`),enum:L(M())}),default:L(M()).optional()}),At=R({type:U(`array`),title:M().optional(),description:M().optional(),minItems:P().optional(),maxItems:P().optional(),items:R({anyOf:L(R({const:M(),title:M()}))}),default:L(M()).optional()}),jt=B([kt,At]),Mt=B([Dt,Ot,jt]),Nt=B([Mt,St,Ct,wt]),Pt=c.extend({mode:U(`form`).optional(),message:M(),requestedSchema:R({type:U(`object`),properties:V(M(),Nt),required:L(M()).optional()}).catchall(I())}),Ft=c.extend({mode:U(`url`),message:M(),elicitationId:M(),url:M().url()}),It=B([Pt,Ft]),Lt=l.extend({method:U(`elicitation/create`),params:It}),Rt=u.extend({elicitationId:M()}),zt=d.extend({method:U(`notifications/elicitation/complete`),params:Rt}),Bt=f.extend({action:H([`accept`,`decline`,`cancel`]),content:Lf(e=>e===null?void 0:e,V(M(),B([M(),P(),F(),L(M())])).optional())}),Vt=R({type:U(`ref/resource`),uri:M()}),Ht=R({type:U(`ref/prompt`),name:M()}),Ut=s.extend({ref:B([Ht,Vt]),argument:R({name:M(),value:M()}),context:R({arguments:V(M(),M()).optional()}).optional()}),Wt=l.extend({method:U(`completion/complete`),params:Ut}),Gt=f.extend({completion:z({values:L(M()).max(100),total:W(P().int()),hasMore:W(F())})}),Kt=R({uri:M().startsWith(`file://`),name:M().optional(),_meta:V(M(),I()).optional()}),qt=l.extend({method:U(`roots/list`),params:s.optional()}),Jt=f.extend({roots:L(Kt)}),Yt=d.extend({method:U(`notifications/roots/list_changed`),params:u.optional()}),Xt=z({ttl:P().optional(),pollInterval:P().optional()}),Zt=H([`working`,`input_required`,`completed`,`failed`,`cancelled`]),Qt=R({taskId:M(),status:Zt,ttl:B([P(),cd()]),createdAt:M(),lastUpdatedAt:M(),pollInterval:W(P()),statusMessage:W(M())}),$t=f.extend({task:Qt}),en=u.merge(Qt),tn=d.extend({method:U(`notifications/tasks/status`),params:en}),nn=l.extend({method:U(`tasks/get`),params:s.extend({taskId:M()})}),rn=f.merge(Qt),an=l.extend({method:U(`tasks/result`),params:s.extend({taskId:M()})}),on=f.loose(),sn=ge.extend({method:U(`tasks/list`)}),cn=y.extend({tasks:L(Qt)}),ln=l.extend({method:U(`tasks/cancel`),params:s.extend({taskId:M()})});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:_,ImplementationSchema:ne,ClientTasksCapabilitySchema:ie,ServerTasksCapabilitySchema:ae,ClientCapabilitiesSchema:v,InitializeRequestParamsSchema:oe,InitializeRequestSchema:se,ServerCapabilitiesSchema:ce,InitializeResultSchema:le,InitializedNotificationSchema:ue,PingRequestSchema:de,ProgressSchema:fe,ProgressNotificationParamsSchema:pe,ProgressNotificationSchema:me,PaginatedRequestParamsSchema:he,PaginatedRequestSchema:ge,PaginatedResultSchema:y,ResourceContentsSchema:_e,TextResourceContentsSchema:ve,BlobResourceContentsSchema:be,RoleSchema:xe,AnnotationsSchema:Se,ResourceSchema:Ce,ResourceTemplateSchema:we,ListResourcesRequestSchema:Te,ListResourcesResultSchema:Ee,ListResourceTemplatesRequestSchema:De,ListResourceTemplatesResultSchema:Oe,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:x,ContentBlockSchema:Xe,PromptMessageSchema:Ze,GetPromptResultSchema:Qe,PromptListChangedNotificationSchema:$e,ToolAnnotationsSchema:et,ToolExecutionSchema:tt,ToolSchema:nt,ListToolsRequestSchema:rt,ListToolsResultSchema:S,CallToolResultSchema:it,CallToolRequestParamsSchema:C,CallToolRequestSchema:w,ToolListChangedNotificationSchema:at,LoggingLevelSchema:ot,SetLevelRequestParamsSchema:st,SetLevelRequestSchema:ct,LoggingMessageNotificationParamsSchema:lt,LoggingMessageNotificationSchema:ut,ModelHintSchema:dt,ModelPreferencesSchema:ft,ToolChoiceSchema:pt,ToolResultContentSchema:mt,SamplingContentSchema:ht,SamplingMessageContentBlockSchema:gt,SamplingMessageSchema:_t,CreateMessageRequestParamsSchema:vt,CreateMessageRequestSchema:yt,CreateMessageResultSchema:bt,CreateMessageResultWithToolsSchema:xt,BooleanSchemaSchema:St,StringSchemaSchema:Ct,NumberSchemaSchema:wt,UntitledSingleSelectEnumSchemaSchema:Tt,TitledSingleSelectEnumSchemaSchema:Et,LegacyTitledEnumSchemaSchema:Dt,SingleSelectEnumSchemaSchema:Ot,UntitledMultiSelectEnumSchemaSchema:kt,TitledMultiSelectEnumSchemaSchema:At,MultiSelectEnumSchemaSchema:jt,EnumSchemaSchema:Mt,PrimitiveSchemaDefinitionSchema:Nt,ElicitRequestFormParamsSchema:Pt,ElicitRequestURLParamsSchema:Ft,ElicitRequestParamsSchema:It,ElicitRequestSchema:Lt,ElicitationCompleteNotificationParamsSchema:Rt,ElicitationCompleteNotificationSchema:zt,ElicitResultSchema:Bt,ResourceTemplateReferenceSchema:Vt,PromptReferenceSchema:Ht,CompleteRequestParamsSchema:Ut,CompleteRequestSchema:Wt,CompleteResultSchema:Gt,RootSchema:Kt,ListRootsRequestSchema:qt,ListRootsResultSchema:Jt,RootsListChangedNotificationSchema:Yt,TaskCreationParamsSchema:Xt,TaskStatusSchema:Zt,TaskSchema:Qt,CreateTaskResultSchema:$t,TaskStatusNotificationParamsSchema:en,TaskStatusNotificationSchema:tn,GetTaskRequestSchema:nn,GetTaskResultSchema:rn,GetTaskPayloadRequestSchema:an,GetTaskPayloadResultSchema:on,ListTasksRequestSchema:sn,ListTasksResultSchema:cn,CancelTaskRequestSchema:ln,CancelTaskResultSchema:f.merge(Qt),ClientRequestSchema:B([de,se,Wt,ct,We,Ve,Te,De,Ae,Pe,Ie,w,rt,nn,an,sn,ln]),ClientNotificationSchema:B([ee,me,ue,Yt,tn]),ClientResultSchema:B([m,bt,xt,Bt,Jt,rn,cn,$t]),ServerRequestSchema:B([de,yt,Lt,qt,nn,an,sn,ln]),ServerNotificationSchema:B([ee,me,ut,Re,Me,at,$e,tn,zt]),ServerResultSchema:B([m,le,Gt,Qe,He,Ee,Oe,je,it,S,rn,cn,$t]),CallToolResultWireSchema:I().superRefine((e,t)=>{if(typeof e==`object`&&e&&!Array.isArray(e)&&e.content===void 0){for(let n of Bg)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(Vg).pipe(it)}}var Ug;function Wg(){return Ug??=Hg()}function Gg(e){return e.type!==`object`}var Kg=new Set([`const`,`enum`,`default`,`examples`]),qg=new Set([`properties`,`patternProperties`,`$defs`,`definitions`,`dependentSchemas`,`dependencies`]);function Jg(e){return e!==void 0&&!(typeof e==`string`&&e.startsWith(`#`))}function Yg(e){let t=typeof e.$schema==`string`?e.$schema:void 0;if(Jg(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&&Jg(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:i[o]=Kg.has(o)?s:qg.has(o)?r(s,!0):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 Xg={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},Zg={"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},Qg={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},$g;function e_(){if($g)return $g;let e=Wg();return $g={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}},$g}function t_(e){return Object.prototype.hasOwnProperty.call(Xg,e)}function n_(e){return Object.prototype.hasOwnProperty.call(Zg,e)}function r_(e){return Object.prototype.hasOwnProperty.call(Qg,e)}function i_(e){return r_(e)?e_().resultSchemas[e]:void 0}function a_(e){return t_(e)?e_().requestSchemas[e]:void 0}function o_(e){return n_(e)?e_().notificationSchemas[e]:void 0}Object.keys(Xg),Object.keys(Zg);function s_(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function c_(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 l_={ok:!1,reason:`not-in-era`};function u_(e){return s_(e)&&s_(e.outputSchema)&&Gg(e.outputSchema)}function d_(e){return e}var f_={era:`2025-11-25`,hasRequestMethod:t_,hasNotificationMethod:n_,validateRequest:(e,t)=>c_(a_(e),t),validateResult:(e,t)=>c_(i_(e),t),validateNotification:(e,t)=>c_(o_(e),t),hasInputRequestMethod:()=>!1,validateInputRequest:()=>l_,validateInputResponse:()=>l_,samplingResultVariant:((e,t)=>{let n=Wg();return c_(e?n.CreateMessageResultWithToolsSchema:n.CreateMessageResultSchema,t)}),outboundEnvelope:e=>void 0,validateEnvelopeMeta:e=>[],projectCallToolResult(e,t){let n=zg(e),r=n.structuredContent;if(r===void 0)return n;let i=typeof r!=`object`||!r||Array.isArray(r),a=t!==void 0&&Gg(t);return!i&&!a?n:{...n,structuredContent:{result:r}}},decodeResult(e,t){if(s_(t)&&`resultType`in t){let e={...t};return delete e.resultType,{kind:`complete`,result:d_(e)}}return{kind:`complete`,result:d_(t)}},encodeResult(e,t){if(e!==`tools/list`)return t;let n=t.tools;return!Array.isArray(n)||!n.some(e=>u_(e))?t:{...t,tools:n.map(e=>u_(e)?{...e,outputSchema:Yg(e.outputSchema)}:e)}},encodeErrorCode:e=>e===-32002?-32602:e,checkInboundEnvelope:e=>void 0};function p_(){let e=xf(()=>B([M(),P(),F(),cd(),V(M(),e),L(e)])),t=V(M(),e),n=B([M(),P().int()]),r=M(),i=B([M(),P().int()]),a=H([`user`,`assistant`]),o=H([`debug`,`info`,`notice`,`warning`,`error`,`critical`,`alert`,`emergency`]),s=M().refine(e=>{try{return atob(e),!0}catch{return!1}},{message:`Invalid Base64 string`}),c=R({ttl:P().optional()}),l=R({taskId:M()}),u=z({progressToken:n.optional(),"io.modelcontextprotocol/related-task":l.optional()}),d=R({_meta:u.optional()}),f=d.extend({task:c.optional()}),p=R({_meta:u.optional()}),m=R({method:M(),params:p.loose().optional()}),h=R({src:M(),mimeType:M().optional(),sizes:L(M()).optional(),theme:H([`light`,`dark`]).optional()}),ee=R({icons:L(h).optional()}),g=R({name:M(),title:M().optional()}),te=g.extend({...g.shape,...ee.shape,version:M(),websiteUrl:M().optional(),description:M().optional()}),_=Lf(e=>e&&typeof e==`object`&&!Array.isArray(e)&&Object.keys(e).length===0?{form:{}}:e,Od(R({form:Od(R({applyDefaults:F().optional()}),t).optional(),url:t.optional()}),t.optional())),ne=z({list:t.optional(),cancel:t.optional(),requests:z({sampling:z({createMessage:t.optional()}).optional(),elicitation:z({create:t.optional()}).optional()}).optional()}),re=z({list:t.optional(),cancel:t.optional(),requests:z({tools:z({call:t.optional()}).optional()}).optional()}),ie=R({experimental:V(M(),t).optional(),sampling:R({context:t.optional(),tools:t.optional()}).optional(),elicitation:_.optional(),roots:R({listChanged:F().optional()}).optional(),tasks:ne.optional(),extensions:V(M(),t).optional()}),ae=R({experimental:V(M(),t).optional(),logging:t.optional(),completions:t.optional(),prompts:R({listChanged:F().optional()}).optional(),resources:R({subscribe:F().optional(),listChanged:F().optional()}).optional(),tools:R({listChanged:F().optional()}).optional(),tasks:re.optional(),extensions:V(M(),t).optional()}),v=R({progress:P(),total:W(P()),message:W(M())}),oe=R({...p.shape,...v.shape,progressToken:n}),se=m.extend({method:U(`notifications/progress`),params:oe}),ce=p.extend({level:o,logger:M().optional(),data:I()}),le=m.extend({method:U(`notifications/message`),params:ce}),ue=R({uri:M(),mimeType:W(M()),_meta:V(M(),I()).optional()}),de=ue.extend({text:M()}),fe=ue.extend({blob:s}),pe=R({audience:L(a).optional(),priority:P().min(0).max(1).optional(),lastModified:Vf({offset:!0}).optional()}),me=R({...g.shape,...ee.shape,uri:M(),description:W(M()),mimeType:W(M()),size:W(P()),annotations:pe.optional(),_meta:W(z({}))}),he=R({...g.shape,...ee.shape,uriTemplate:M(),description:W(M()),mimeType:W(M()),annotations:pe.optional(),_meta:W(z({}))}),ge=m.extend({method:U(`notifications/resources/list_changed`),params:p.optional()}),y=p.extend({uri:M()}),_e=m.extend({method:U(`notifications/resources/updated`),params:y}),ve=R({name:M(),description:W(M()),required:W(F())}),ye=R({...g.shape,...ee.shape,description:W(M()),arguments:W(L(ve)),_meta:W(z({}))}),be=m.extend({method:U(`notifications/prompts/list_changed`),params:p.optional()}),xe=R({type:U(`text`),text:M(),annotations:pe.optional(),_meta:V(M(),I()).optional()}),Se=R({type:U(`image`),data:s,mimeType:M(),annotations:pe.optional(),_meta:V(M(),I()).optional()}),Ce=R({type:U(`audio`),data:s,mimeType:M(),annotations:pe.optional(),_meta:V(M(),I()).optional()}),we=R({type:U(`tool_use`),name:M(),id:M(),input:V(M(),I()),_meta:V(M(),I()).optional()}),Te=R({type:U(`resource`),resource:B([de,fe]),annotations:pe.optional(),_meta:V(M(),I()).optional()}),Ee=me.extend({type:U(`resource_link`)}),De=B([xe,Se,Ce,Ee,Te]),Oe=R({role:a,content:De}),ke=R({title:M().optional(),readOnlyHint:F().optional(),destructiveHint:F().optional(),idempotentHint:F().optional(),openWorldHint:F().optional()}),b=m.extend({method:U(`notifications/tools/list_changed`),params:p.optional()}),Ae=R({name:M().optional()}),je=R({hints:L(Ae).optional(),costPriority:P().min(0).max(1).optional(),speedPriority:P().min(0).max(1).optional(),intelligencePriority:P().min(0).max(1).optional()}),Me=R({mode:H([`auto`,`required`,`none`]).optional()}),Ne=R({type:U(`boolean`),title:M().optional(),description:M().optional(),default:F().optional()}),Pe=R({type:U(`string`),title:M().optional(),description:M().optional(),minLength:P().optional(),maxLength:P().optional(),format:H([`email`,`uri`,`date`,`date-time`]).optional(),default:M().optional()}),Fe=R({type:H([`number`,`integer`]),title:M().optional(),description:M().optional(),minimum:P().optional(),maximum:P().optional(),default:P().optional()}),Ie=R({type:U(`string`),title:M().optional(),description:M().optional(),enum:L(M()),default:M().optional()}),Le=R({type:U(`string`),title:M().optional(),description:M().optional(),oneOf:L(R({const:M(),title:M()})),default:M().optional()}),Re=R({type:U(`string`),title:M().optional(),description:M().optional(),enum:L(M()),enumNames:L(M()).optional(),default:M().optional()}),ze=B([Ie,Le]),Be=R({type:U(`array`),title:M().optional(),description:M().optional(),minItems:P().optional(),maxItems:P().optional(),items:R({type:U(`string`),enum:L(M())}),default:L(M()).optional()}),Ve=R({type:U(`array`),title:M().optional(),description:M().optional(),minItems:P().optional(),maxItems:P().optional(),items:R({anyOf:L(R({const:M(),title:M()}))}),default:L(M()).optional()}),He=B([Be,Ve]),Ue=B([Re,ze,He]),We=B([Ue,Ne,Pe,Fe]),Ge=f.extend({mode:U(`form`).optional(),message:M(),requestedSchema:R({type:U(`object`),properties:V(M(),We),required:L(M()).optional()}).catchall(I())}),Ke=R({type:U(`ref/resource`),uri:M()}),qe=R({type:U(`ref/prompt`),name:M()}),Je=R({uri:M().startsWith(`file://`),name:M().optional(),_meta:V(M(),I()).optional()}),Ye=ie.shape,x=R({experimental:Ye.experimental,sampling:Ye.sampling,elicitation:Ye.elicitation,roots:Ye.roots,extensions:Ye.extensions}),Xe=ae.shape,Ze=R({experimental:Xe.experimental,logging:Xe.logging,completions:Xe.completions,prompts:Xe.prompts,resources:Xe.resources,tools:Xe.tools,extensions:Xe.extensions}),Qe=z({progressToken:n.optional(),[dp]:M(),[fp]:te.optional(),[mp]:x,[gp]:o.optional()}),$e=R({...g.shape,...ee.shape,description:M().optional(),inputSchema:z({$schema:M().optional(),type:U(`object`)}),outputSchema:z({$schema:M().optional()}).optional(),annotations:ke.optional(),_meta:V(M(),I()).optional()}),et=R({type:U(`tool_result`),toolUseId:M(),content:L(De),structuredContent:I().optional(),isError:F().optional(),_meta:V(M(),I()).optional()}),tt=B([xe,Se,Ce,we,et]),nt=R({role:a,content:B([tt,L(tt)]),_meta:V(M(),I()).optional()}),rt=M(),S=z({[pp]:te.optional().catch(void 0)}),it=S.optional();function C(e){return z({_meta:it,resultType:rt.default(`complete`),...e})}let w=C({}),at=C({nextCursor:r.optional()}),ot=C({content:L(De),structuredContent:I().optional(),isError:F().optional()}),st=C({ttlMs:P().int().min(0),cacheScope:H([`public`,`private`]),tools:L($e),nextCursor:r.optional()}),ct=C({ttlMs:P().int().min(0),cacheScope:H([`public`,`private`]),prompts:L(ye),nextCursor:r.optional()}),lt=C({description:M().optional(),messages:L(Oe)}),ut=C({ttlMs:P().int().min(0),cacheScope:H([`public`,`private`]),resources:L(me),nextCursor:r.optional()}),dt=C({ttlMs:P().int().min(0),cacheScope:H([`public`,`private`]),resourceTemplates:L(he),nextCursor:r.optional()}),ft=C({ttlMs:P().int().min(0),cacheScope:H([`public`,`private`]),contents:L(B([de,fe]))}),pt=C({completion:R({values:L(M()).max(100),total:P().int().optional(),hasMore:F().optional()}).loose()}),mt=C({ttlMs:P().int().min(0),cacheScope:H([`public`,`private`])}),ht=C({ttlMs:P().int().min(0).catch(0),cacheScope:H([`public`,`private`]).catch(`private`),supportedVersions:L(M()),capabilities:Ze,instructions:M().optional()}),gt=R({messages:L(nt),modelPreferences:je.optional(),systemPrompt:M().optional(),includeContext:H([`none`,`thisServer`,`allServers`]).optional(),temperature:P().optional(),maxTokens:P().int(),stopSequences:L(M()).optional(),metadata:t.optional(),tools:L($e).optional(),toolChoice:Me.optional()}),_t=R({method:U(`sampling/createMessage`),params:gt}),vt=R({method:U(`roots/list`),params:R({_meta:V(M(),I()).optional()}).optional()}),yt=R({...nt.shape,model:M(),stopReason:M().optional()}),bt=R({roots:L(Je)}),xt=R({action:H([`accept`,`decline`,`cancel`]),content:V(M(),B([M(),P(),F(),L(M())])).optional()}),St=R({mode:U(`url`),message:M(),url:M().url()}),Ct=B([Ge,St]),wt=R({method:U(`elicitation/create`),params:Ct}),Tt=B([_t,vt,wt]),Et=B([yt,bt,xt]),Dt=V(M(),Tt),Ot=V(M(),Et),kt=C({inputRequests:Dt.optional(),requestState:M().optional()}),At={inputResponses:Ot.optional(),requestState:M().optional()},jt=R({_meta:Qe,...At}),Mt=z({progressToken:n.optional()});function Nt(e,t){return R({method:U(e),params:R({_meta:Qe,...t})})}function Pt(e,t){return R({method:U(e),params:R({_meta:Mt.optional(),...t}).optional()})}let Ft={name:M(),arguments:V(M(),I()).optional(),...At},It={cursor:r.optional()},Lt=Nt(`tools/call`,Ft),Rt=Nt(`tools/list`,It),zt=Nt(`prompts/list`,It),Bt=Nt(`prompts/get`,{name:M(),arguments:V(M(),M()).optional(),...At}),Vt=Nt(`resources/list`,It),Ht=Nt(`resources/templates/list`,It),Ut=Nt(`resources/read`,{uri:M(),...At}),Wt={ref:B([qe,Ke]),argument:R({name:M(),value:M()}),context:R({arguments:V(M(),M()).optional()}).optional()},Gt=Nt(`completion/complete`,Wt),Kt=Nt(`server/discover`,{}),qt=R({toolsListChanged:F().optional(),promptsListChanged:F().optional(),resourcesListChanged:F().optional(),resourceSubscriptions:L(M()).optional()}),Jt={notifications:qt},Yt=Nt(`subscriptions/listen`,Jt),Xt=S.extend({"io.modelcontextprotocol/subscriptionId":i}),Zt=z({_meta:Xt,resultType:rt.default(`complete`)}),Qt={"tools/call":Pt(`tools/call`,Ft),"tools/list":Pt(`tools/list`,It),"prompts/get":Pt(`prompts/get`,{name:M(),arguments:V(M(),M()).optional()}),"prompts/list":Pt(`prompts/list`,It),"resources/list":Pt(`resources/list`,It),"resources/templates/list":Pt(`resources/templates/list`,It),"resources/read":Pt(`resources/read`,{uri:M()}),"completion/complete":Pt(`completion/complete`,Wt),"server/discover":Pt(`server/discover`,{}),"subscriptions/listen":Pt(`subscriptions/listen`,Jt)};function $t(e){return z({_meta:it,...e})}let en={"tools/call":$t({content:L(De),structuredContent:I().optional(),isError:F().optional()}),"tools/list":$t({ttlMs:P().int().min(0),cacheScope:H([`public`,`private`]),tools:L($e),nextCursor:r.optional()}),"prompts/get":$t({description:M().optional(),messages:L(Oe)}),"prompts/list":$t({ttlMs:P().int().min(0),cacheScope:H([`public`,`private`]),prompts:L(ye),nextCursor:r.optional()}),"resources/list":$t({ttlMs:P().int().min(0),cacheScope:H([`public`,`private`]),resources:L(me),nextCursor:r.optional()}),"resources/templates/list":$t({ttlMs:P().int().min(0),cacheScope:H([`public`,`private`]),resourceTemplates:L(he),nextCursor:r.optional()}),"resources/read":$t({ttlMs:P().int().min(0),cacheScope:H([`public`,`private`]),contents:L(B([de,fe]))}),"completion/complete":$t({completion:R({values:L(M()).max(100),total:P().int().optional(),hasMore:F().optional()}).loose()}),"server/discover":$t({ttlMs:P().int().min(0).catch(0),cacheScope:H([`public`,`private`]).catch(`private`),supportedVersions:L(M()),capabilities:Ze,instructions:M().optional()}),"subscriptions/listen":$t({})},tn=z({"io.modelcontextprotocol/subscriptionId":i.optional()}),nn=R({method:U(`notifications/subscriptions/acknowledged`),params:R({_meta:tn.optional(),notifications:qt})}),rn=R({_meta:tn.optional(),requestId:i,reason:M().optional()}),an=R({method:U(`notifications/cancelled`),params:rn}),on={"notifications/cancelled":an,"notifications/progress":se,"notifications/message":le,"notifications/resources/updated":_e,"notifications/resources/list_changed":ge,"notifications/tools/list_changed":b,"notifications/prompts/list_changed":be,"notifications/subscriptions/acknowledged":nn},sn=e=>R({jsonrpc:U(`2.0`),id:B([M(),P().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:ne,ServerTasksCapabilitySchema:re,ClientCapabilitiesSchema:ie,ServerCapabilitiesSchema:ae,ProgressSchema:v,ProgressNotificationParamsSchema:oe,ProgressNotificationSchema:se,LoggingMessageNotificationParamsSchema:ce,LoggingMessageNotificationSchema:le,ResourceContentsSchema:ue,TextResourceContentsSchema:de,BlobResourceContentsSchema:fe,AnnotationsSchema:pe,ResourceSchema:me,ResourceTemplateSchema:he,ResourceListChangedNotificationSchema:ge,ResourceUpdatedNotificationParamsSchema:y,ResourceUpdatedNotificationSchema:_e,PromptArgumentSchema:ve,PromptSchema:ye,PromptListChangedNotificationSchema:be,TextContentSchema:xe,ImageContentSchema:Se,AudioContentSchema:Ce,ToolUseContentSchema:we,EmbeddedResourceSchema:Te,ResourceLinkSchema:Ee,ContentBlockSchema:De,PromptMessageSchema:Oe,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:x,ServerCapabilities2026Schema:Ze,RequestMetaEnvelopeSchema:Qe,ToolSchema:$e,ToolResultContentSchema:et,SamplingMessageContentBlockSchema:tt,SamplingMessageSchema:nt,ResultTypeSchema:rt,ResultMetaSchema:S,ResultSchema:w,PaginatedResultSchema:at,CallToolResultSchema:ot,ListToolsResultSchema:st,ListPromptsResultSchema:ct,GetPromptResultSchema:lt,ListResourcesResultSchema:ut,ListResourceTemplatesResultSchema:dt,ReadResourceResultSchema:ft,CompleteResultSchema:pt,CacheableResultSchema:mt,DiscoverResultSchema:ht,CreateMessageRequestParamsSchema:gt,CreateMessageRequestSchema:_t,ListRootsRequestSchema:vt,CreateMessageResultSchema:yt,ListRootsResultSchema:bt,ElicitResultSchema:xt,ElicitRequestURLParamsSchema:St,ElicitRequestParamsSchema:Ct,ElicitRequestSchema:wt,InputRequestSchema:Tt,InputResponseSchema:Et,InputRequestsSchema:Dt,InputResponsesSchema:Ot,InputRequiredResultSchema:kt,InputResponseRequestParamsSchema:jt,CallToolRequestSchema:Lt,ListToolsRequestSchema:Rt,ListPromptsRequestSchema:zt,GetPromptRequestSchema:Bt,ListResourcesRequestSchema:Vt,ListResourceTemplatesRequestSchema:Ht,ReadResourceRequestSchema:Ut,CompleteRequestSchema:Gt,DiscoverRequestSchema:Kt,SubscriptionFilterSchema:qt,SubscriptionsListenRequestSchema:Yt,SubscriptionsListenResultMetaSchema:Xt,SubscriptionsListenResultSchema:Zt,dispatchRequestSchemas:Qt,dispatchResultSchemas:en,NotificationMetaSchema:tn,SubscriptionsAcknowledgedNotificationSchema:nn,CancelledNotificationParamsSchema:rn,CancelledNotificationSchema:an,notificationSchemas2026:on,JSONRPCResultResponseSchema:sn(w),CallToolResultResponseSchema:sn(B([ot,kt])),ListToolsResultResponseSchema:sn(st),ListPromptsResultResponseSchema:sn(ct),GetPromptResultResponseSchema:sn(B([lt,kt])),ListResourcesResultResponseSchema:sn(ut),ListResourceTemplatesResultResponseSchema:sn(dt),ReadResourceResultResponseSchema:sn(B([ft,kt])),CompleteResultResponseSchema:sn(pt),DiscoverResultResponseSchema:sn(ht),SubscriptionsListenResultResponseSchema:sn(Zt)}}var m_;function h_(){return m_??=p_()}var g_=[`tools/list`,`prompts/list`,`resources/list`,`resources/templates/list`,`resources/read`,`server/discover`];function __(e){return g_.includes(e)}var v_=Symbol(`modelcontextprotocol.resultCacheHintFallback`);function y_(e){return e[v_]}function b_(e){return typeof e==`number`&&Number.isSafeInteger(e)&&e>=0}function x_(e){return e===`public`||e===`private`}var Z=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}({}),S_=class e extends Error{static{Object.defineProperty(this,"mcpBrand",{value:`mcp.ProtocolError`})}static[Symbol.hasInstance](e){return Fg(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 Fg(this,e)}constructor(e,t,n){super(t),this.code=e,this.data=n,this.name=`ProtocolError`,Pg(this,new.target)}static fromError(t,n,r){if(t===Z.UrlElicitationRequired&&r){let e=r;if(e.elicitations)return new w_(e.elicitations,n)}if(t===Z.UnsupportedProtocolVersion&&r){let e=r;if(Array.isArray(e.supported)&&typeof e.requested==`string`)return new T_({supported:e.supported,requested:e.requested},n)}if(t===Z.InvalidParams||t===Z.ResourceNotFound){let e=r;if(typeof e?.uri==`string`&&(t===Z.ResourceNotFound||Object.keys(e).length===1))return new C_(e.uri,n)}if(t===Z.MissingRequiredClientCapability&&r){let e=r;if(e.requiredCapabilities!==null&&typeof e.requiredCapabilities==`object`&&!Array.isArray(e.requiredCapabilities))return new E_({requiredCapabilities:e.requiredCapabilities},n)}return new e(t,n,r)}},C_=class extends S_{static{Object.defineProperty(this,"mcpBrand",{value:`mcp.ResourceNotFoundError`})}constructor(e,t=`Resource not found: ${e}`){super(Z.InvalidParams,t,{uri:e})}get uri(){return this.data.uri}},w_=class extends S_{static{Object.defineProperty(this,"mcpBrand",{value:`mcp.UrlElicitationRequiredError`})}constructor(e,t=`URL elicitation${e.length>1?`s`:``} required`){super(Z.UrlElicitationRequired,t,{elicitations:e})}get elicitations(){return this.data?.elicitations??[]}},T_=class extends S_{static{Object.defineProperty(this,"mcpBrand",{value:`mcp.UnsupportedProtocolVersionError`})}constructor(e,t=`Unsupported protocol version: ${e.requested}`){super(Z.UnsupportedProtocolVersion,t,e)}get supported(){return this.data.supported}get requested(){return this.data.requested}},E_=class extends S_{static{Object.defineProperty(this,"mcpBrand",{value:`mcp.MissingRequiredClientCapabilityError`})}constructor(e,t=`Missing required client capabilities: ${Object.keys(e.requiredCapabilities).join(`, `)}`){super(Z.MissingRequiredClientCapability,t,e)}get requiredCapabilities(){return this.data.requiredCapabilities}},D_=0,O_=`private`,k_=[`tools/call`,`prompts/get`,`resources/read`];function A_(e,t){let n=t.resultType;if(n===void 0)return{...t,resultType:`complete`};if(n===`complete`||k_.includes(e))return t;throw new S_(Z.InternalError,`Handler for ${e} returned resultType '${String(n)}', but results of ${e} only support 'complete' on protocol revision 2026-07-28`)}function j_(e,t){let n=y_(t);if(t.resultType!==`complete`||!__(e))return n===void 0?t:I_(t);let r=t,i=b_(r.ttlMs)?r.ttlMs:P_(n),a=x_(r.cacheScope)?r.cacheScope:F_(n),o={...r,ttlMs:i,cacheScope:a};return delete o[v_],o}function M_(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function N_(e,t){if(t===void 0)return e;let n=e._meta;return n===void 0?{...e,_meta:{[pp]:t}}:!M_(n)||n[`io.modelcontextprotocol/serverInfo`]!==void 0?e:{...e,_meta:{...n,[pp]:t}}}function P_(e){return e!==void 0&&b_(e.ttlMs)?e.ttlMs:D_}function F_(e){return e!==void 0&&x_(e.cacheScope)?e.cacheScope:O_}function I_(e){let t={...e};return delete t[v_],t}var L_=[`elicitation/create`,`sampling/createMessage`,`roots/list`],R_;function z_(){if(R_)return R_;let e=h_();return R_={request:{"elicitation/create":R({method:U(`elicitation/create`),params:e.ElicitRequestParamsSchema}),"sampling/createMessage":R({method:U(`sampling/createMessage`),params:e.CreateMessageRequestParamsSchema}),"roots/list":R({method:U(`roots/list`),params:z({}).optional()})},response:{"elicitation/create":e.ElicitResultSchema,"sampling/createMessage":e.CreateMessageResultSchema,"roots/list":e.ListRootsResultSchema}},R_}function B_(e){return L_.includes(e)}function V_(e){return B_(e)?z_().request[e]:void 0}function H_(e){return B_(e)?z_().response[e]:void 0}var U_={"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},W_={"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 G_(e){return Object.prototype.hasOwnProperty.call(U_,e)}function K_(e){return Object.prototype.hasOwnProperty.call(W_,e)}function q_(e){return Object.prototype.hasOwnProperty.call(U_,e)}function J_(e){return G_(e)?h_().dispatchRequestSchemas[e]:void 0}function Y_(e){return q_(e)?h_().dispatchResultSchemas[e]:void 0}function X_(e){return K_(e)?h_().notificationSchemas2026[e]:void 0}Object.keys(U_),Object.keys(W_);function Z_(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function Q_(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 $_={ok:!1,reason:`not-in-era`},ev=[dp,mp];function tv(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=>Z_(e)&&`execution`in e)&&(i().tools=a.map(e=>{if(!Z_(e)||!(`execution`in e))return e;let t={...e};return delete t.execution,t}));let o=t.capabilities;if(Z_(o)&&`tasks`in o){let e={...o};delete e.tasks,i().capabilities=e}return n}var nv={era:`2026-07-28`,hasRequestMethod:G_,hasNotificationMethod:K_,hasInputRequestMethod:e=>V_(e)!==void 0,validateRequest:(e,t)=>Q_(J_(e),t),validateResult:(e,t)=>Q_(Y_(e),t),validateNotification:(e,t)=>Q_(X_(e),t),validateInputRequest:(e,t)=>Q_(V_(e),t),validateInputResponse:(e,t)=>Q_(H_(e),t),samplingResultVariant:()=>$_,outboundEnvelope(e){return{[dp]:e.protocolVersion,[fp]:e.clientInfo,[mp]:e.clientCapabilities,...e.logLevel!==void 0&&{"io.modelcontextprotocol/logLevel":e.logLevel}}},validateEnvelopeMeta(e){let t=[];for(let n of ev)n in e||t.push({key:n,problem:`missing`});let n=h_().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=>zg(e),inputRequestSchema:V_,decodeResult(e,t){if(!Z_(t))return{kind:`invalid`,error:new X(Ig.InvalidResult,`Invalid result for ${e}: not an object`,{method:e})};let n=t.resultType;if(n===void 0)return{kind:`invalid`,error:new X(Ig.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 X(Ig.InvalidResult,`Invalid result for ${e}: non-string resultType`,{method:e,resultType:n})};if(n===`input_required`){let n=t.inputRequests,r=Z_(n)?n:{},i=t.requestState,a=t._meta===void 0?void 0:h_().ResultMetaSchema.safeParse(t._meta),o=a?.success?a.data:void 0;return Object.keys(r).length===0&&typeof i!=`string`?{kind:`invalid`,error:new X(Ig.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},...o!==void 0&&{_meta:o}}}if(n!==`complete`)return{kind:`invalid`,error:new X(Ig.UnsupportedResultType,`Unsupported result type '${n}' for ${e}`,{resultType:n,method:e})};let r=iv(),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 X(Ig.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 N_(j_(e,A_(e,tv(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=h_().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(`; `)}`}},rv;function iv(){if(rv)return rv;let e=h_();return rv={"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},rv}var av=`2026-07-28`;function ov(e){return e!==void 0&&Rg(e)?nv:f_}function sv(e){return e.revision===void 0?e.era===`modern`?nv.era:f_.era:ov(e.revision).era}function cv(e){return dv.some(t=>t.hasRequestMethod(e))}function lv(e){return dv.some(t=>t.hasNotificationMethod(e))}function uv(e){return e===`tasks/get`||e===`tasks/cancel`}var dv=[f_,nv],fv=i({AnnotationsSchema:()=>fm,AudioContentSchema:()=>Gm,BaseMetadataSchema:()=>Vp,BaseRequestParamsSchema:()=>wp,BlobResourceContentsSchema:()=>um,BooleanSchemaSchema:()=>Eh,CallToolRequestParamsSchema:()=>oh,CallToolRequestSchema:()=>sh,CallToolResultSchema:()=>ih,CancelTaskRequestSchema:()=>fg,CancelTaskResultSchema:()=>pg,CancelledNotificationParamsSchema:()=>Lp,CancelledNotificationSchema:()=>Rp,ClientCapabilitiesSchema:()=>Kp,ClientNotificationSchema:()=>hg,ClientRequestSchema:()=>mg,ClientResultSchema:()=>gg,ClientTasksCapabilitySchema:()=>Wp,CompatibilityCallToolResultSchema:()=>ah,CompleteRequestParamsSchema:()=>qh,CompleteRequestSchema:()=>Jh,CompleteResultSchema:()=>Yh,ContentBlockSchema:()=>Ym,CreateMessageRequestParamsSchema:()=>Sh,CreateMessageRequestSchema:()=>Ch,CreateMessageResultSchema:()=>wh,CreateMessageResultWithToolsSchema:()=>Th,CreateTaskResultSchema:()=>rg,CursorSchema:()=>bp,DiscoverRequestSchema:()=>Qp,DiscoverResultSchema:()=>$p,ElicitRequestFormParamsSchema:()=>Rh,ElicitRequestParamsSchema:()=>Bh,ElicitRequestSchema:()=>Vh,ElicitRequestURLParamsSchema:()=>zh,ElicitResultSchema:()=>Wh,ElicitationCompleteNotificationParamsSchema:()=>Hh,ElicitationCompleteNotificationSchema:()=>Uh,EmbeddedResourceSchema:()=>qm,EmptyResultSchema:()=>Ip,EnumSchemaSchema:()=>Ih,GetPromptRequestParamsSchema:()=>Vm,GetPromptRequestSchema:()=>Hm,GetPromptResultSchema:()=>Zm,GetTaskPayloadRequestSchema:()=>cg,GetTaskPayloadResultSchema:()=>lg,GetTaskRequestSchema:()=>og,GetTaskResultSchema:()=>sg,IconSchema:()=>zp,IconsSchema:()=>Bp,ImageContentSchema:()=>Wm,ImplementationSchema:()=>Hp,InitializeRequestParamsSchema:()=>qp,InitializeRequestSchema:()=>Jp,InitializeResultSchema:()=>Xp,InitializedNotificationSchema:()=>Zp,JSONArraySchema:()=>vp,JSONObjectSchema:()=>K,JSONRPCErrorResponseSchema:()=>Np,JSONRPCMessageSchema:()=>Pp,JSONRPCNotificationSchema:()=>jp,JSONRPCRequestSchema:()=>Ap,JSONRPCResponseSchema:()=>Fp,JSONRPCResultResponseSchema:()=>Mp,JSONValueSchema:()=>_p,LegacyTitledEnumSchemaSchema:()=>jh,ListChangedOptionsBaseSchema:()=>lh,ListPromptsRequestSchema:()=>zm,ListPromptsResultSchema:()=>Bm,ListResourceTemplatesRequestSchema:()=>_m,ListResourceTemplatesResultSchema:()=>vm,ListResourcesRequestSchema:()=>hm,ListResourcesResultSchema:()=>gm,ListRootsRequestSchema:()=>Zh,ListRootsResultSchema:()=>Qh,ListTasksRequestSchema:()=>ug,ListTasksResultSchema:()=>dg,ListToolsRequestSchema:()=>nh,ListToolsResultSchema:()=>rh,LoggingLevelSchema:()=>uh,LoggingMessageNotificationParamsSchema:()=>ph,LoggingMessageNotificationSchema:()=>mh,ModelHintSchema:()=>hh,ModelPreferencesSchema:()=>gh,MultiSelectEnumSchemaSchema:()=>Fh,NotificationSchema:()=>Dp,NotificationsParamsSchema:()=>Ep,NumberSchemaSchema:()=>Oh,PaginatedRequestParamsSchema:()=>im,PaginatedRequestSchema:()=>am,PaginatedResultSchema:()=>om,PingRequestSchema:()=>em,PrimitiveSchemaDefinitionSchema:()=>Lh,ProgressNotificationParamsSchema:()=>nm,ProgressNotificationSchema:()=>rm,ProgressSchema:()=>tm,ProgressTokenSchema:()=>yp,PromptArgumentSchema:()=>Lm,PromptListChangedNotificationSchema:()=>Qm,PromptMessageSchema:()=>Xm,PromptReferenceSchema:()=>Kh,PromptSchema:()=>Rm,ReadResourceRequestParamsSchema:()=>bm,ReadResourceRequestSchema:()=>xm,ReadResourceResultSchema:()=>Sm,RelatedTaskMetadataSchema:()=>Sp,RequestIdSchema:()=>kp,RequestMetaSchema:()=>Cp,RequestSchema:()=>q,ResourceContentsSchema:()=>sm,ResourceLinkSchema:()=>Jm,ResourceListChangedNotificationSchema:()=>Cm,ResourceRequestParamsSchema:()=>ym,ResourceSchema:()=>pm,ResourceTemplateReferenceSchema:()=>Gh,ResourceTemplateSchema:()=>mm,ResourceUpdatedNotificationParamsSchema:()=>Fm,ResourceUpdatedNotificationSchema:()=>Im,ResultMetaObjectSchema:()=>Op,ResultSchema:()=>J,RoleSchema:()=>dm,RootSchema:()=>Xh,RootsListChangedNotificationSchema:()=>$h,SamplingContentSchema:()=>yh,SamplingMessageContentBlockSchema:()=>bh,SamplingMessageSchema:()=>xh,ServerCapabilitiesSchema:()=>Yp,ServerNotificationSchema:()=>vg,ServerRequestSchema:()=>_g,ServerResultSchema:()=>yg,ServerTasksCapabilitySchema:()=>Gp,SetLevelRequestParamsSchema:()=>dh,SetLevelRequestSchema:()=>fh,SingleSelectEnumSchemaSchema:()=>Mh,StringSchemaSchema:()=>Dh,SubscribeRequestParamsSchema:()=>wm,SubscribeRequestSchema:()=>Tm,SubscriptionFilterSchema:()=>Om,SubscriptionsAcknowledgedNotificationParamsSchema:()=>jm,SubscriptionsAcknowledgedNotificationSchema:()=>Mm,SubscriptionsListenRequestParamsSchema:()=>km,SubscriptionsListenRequestSchema:()=>Am,SubscriptionsListenResultMetaSchema:()=>Nm,SubscriptionsListenResultSchema:()=>Pm,TaskAugmentedRequestParamsSchema:()=>Tp,TaskCreationParamsSchema:()=>eg,TaskMetadataSchema:()=>xp,TaskSchema:()=>ng,TaskStatusNotificationParamsSchema:()=>ig,TaskStatusNotificationSchema:()=>ag,TaskStatusSchema:()=>tg,TextContentSchema:()=>Um,TextResourceContentsSchema:()=>cm,TitledMultiSelectEnumSchemaSchema:()=>Ph,TitledSingleSelectEnumSchemaSchema:()=>Ah,ToolAnnotationsSchema:()=>$m,ToolChoiceSchema:()=>_h,ToolExecutionSchema:()=>eh,ToolListChangedNotificationSchema:()=>ch,ToolResultContentSchema:()=>vh,ToolSchema:()=>th,ToolUseContentSchema:()=>Km,UnsubscribeRequestParamsSchema:()=>Em,UnsubscribeRequestSchema:()=>Dm,UntitledMultiSelectEnumSchemaSchema:()=>Nh,UntitledSingleSelectEnumSchemaSchema:()=>kh}),pv=e=>Ap.safeParse(e).success,mv=e=>jp.safeParse(e).success,hv=e=>Mp.safeParse(e).success,gv=e=>Np.safeParse(e).success;Z.InvalidRequest,Z.UnsupportedProtocolVersion,Z.InvalidParams,Z.MethodNotFound,Z.InvalidParams,Z.MissingRequiredClientCapability,Z.ParseError,Z.InvalidRequest,Z.MethodNotFound,Z.UnsupportedProtocolVersion,Z.MissingRequiredClientCapability;function _v(e,t){return Tl(e,t)}function vv(e){return new Set(e.flatMap(e=>Object.keys(e.shape)))}function yv(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 bv=!1,xv=`draft-2020-12`;function Sv(e,t=`input`){let n=e[`~standard`],r;if(n.jsonSchema)r=n.jsonSchema[t]({target:xv});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().`);bv||(bv=!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=vl(e,{target:xv,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&&Cv(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 Cv(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`||Cv(e)))}return!1}function wv(e){return e.path?.length?`${e.path.map(e=>String(typeof e==`object`?e.key:e)).join(`.`)}: ${e.message}`:e.message}async function Tv(e,t){let n=await e[`~standard`].validate(t);return n.issues&&n.issues.length>0?{success:!1,error:n.issues.map(e=>wv(e)).join(`, `)}:{success:!0,data:n.value}}function Ev(e){let t=vl(e,{target:xv,io:`input`});return typeof t.pattern==`string`?t.pattern:void 0}var Dv=/\\\.\\d\{(\d+)\}/;function Ov(e){let t=Dv.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=>Vf({local:e,offset:t,precision:n}))))}function kv(e,t){let n;switch(e){case`email`:n=[Gl()];break;case`uri`:n=[eu()];break;case`date`:n=[Hf()];break;case`date-time`:n=Ov(t)}return new Set(n.map(e=>Ev(e)).filter(e=>e!==void 0))}function Av(e,t,n){return n!==`zod`||kv(e,t).has(t)}function jv(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function Mv(e){try{return Sv(e,`input`)}catch(e){let t=e instanceof Error?e.message:String(e);throw new S_(Z.InvalidParams,`Elicitation requestedSchema must describe an object with flat primitive properties: ${t}`)}}var Nv=new Set([`$comment`,`deprecated`,`description`,`examples`,`readOnly`,`title`,`writeOnly`]);function Pv(e){return Nv.has(e)||e.startsWith(`x-`)}var Fv=new Set([`$schema`,...Object.keys(Rh.shape.requestedSchema.shape)]),Iv={string:vv([Dh,kh,Ah,jh]),number:vv([Oh]),integer:vv([Oh]),boolean:vv([Eh]),array:vv([Nh,Ph])},Lv=new Set(Dh.shape.format.unwrap().options);function Rv(e,t,n,r){if(!jv(e))return e;let i=typeof e.type==`string`&&Object.hasOwn(Iv,e.type)?Iv[e.type]:void 0;if(i===void 0)return e;let a={};for(let[o,s]of Object.entries(e))i.has(o)||Pv(o)?a[o]=s:o===`pattern`&&e.type===`string`&&typeof e.format==`string`?Lv.has(e.format)?(typeof s!=`string`||!Av(e.format,s,n))&&r.push(`${t}.${o}`):a[o]=s:r.push(`${t}.${o}`);return a}function zv(e,t){let n={},r=[];for(let[i,a]of Object.entries(e))i===`properties`&&jv(a)?n[i]=Object.fromEntries(Object.entries(a).map(([e,n])=>[e,Rv(n,`properties.${e}`,t,r)])):Fv.has(i)?n[i]=a:Pv(i)||r.push(i);if(r.length>0)throw new S_(Z.InvalidParams,`Elicitation requestedSchema contains unsupported JSON Schema constraint(s) after Standard Schema conversion: ${r.join(`, `)}`);return n}function Bv(e,t){if(!jv(e.properties))return t;let n=Object.entries(e.properties).filter(([,e])=>!_v(Lh,e).success).map(([e])=>`properties.${e}`);return n.length>0?n.join(`, `):t}function Vv(e,t,n=``){return Array.isArray(e)&&Array.isArray(t)?e.flatMap((e,r)=>Vv(e,t[r],`${n}[${r}]`)):!jv(e)||!jv(t)?[]:Object.entries(e).flatMap(([e,r])=>{let i=n?`${n}.${e}`:e;return Object.prototype.hasOwnProperty.call(t,e)?Vv(r,t[e],i):Pv(e)?[]:[i]})}function Hv(e){if(!yv(e.requestedSchema))return{...e,mode:`form`,requestedSchema:e.requestedSchema};let t=e.requestedSchema[`~standard`].vendor,n=zv(Mv(e.requestedSchema),t),r=_v(Rh.shape.requestedSchema,n);if(!r.success)throw new S_(Z.InvalidParams,`Elicitation requestedSchema only supports flat primitive properties (string, number, integer, boolean, and string enums): ${Bv(n,r.error.message)}`);let i=Vv(n,r.data);if(i.length>0)throw new S_(Z.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 S_(Z.InvalidParams,`Elicitation requestedSchema lists required properties that are not defined in properties: ${a.join(`, `)}`);return{...e,mode:`form`,requestedSchema:r.data}}function Uv(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(Uv,{elicit(e){try{return{method:`elicitation/create`,params:Hv(e)}}catch(e){throw e instanceof S_?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 Wv=`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(`.`),Gv={IdJagTokenExchangeResponseSchema:Tg,OAuthClientInformationFullSchema:Ag,OAuthClientInformationSchema:kg,OAuthClientMetadataSchema:Og,OAuthClientRegistrationErrorSchema:jg,OAuthErrorResponseSchema:Eg,OAuthMetadataSchema:xg,OAuthProtectedResourceMetadataSchema:bg,OAuthTokenRevocationRequestSchema:Mg,OAuthTokensSchema:wg,OpenIdProviderDiscoveryMetadataSchema:Cg,OpenIdProviderMetadataSchema:Sg},Kv={},qv={};function Jv(e,t){let n=e.slice(0,-6);Kv[n]=t,qv[n]=e=>t.safeParse(e).success}for(let e of Wv)Jv(e,fv[e]);for(let[e,t]of Object.entries(Gv))Jv(e,t);Object.freeze(Kv),Object.freeze(qv);function Yv(e){switch(e){case`initialize`:case`notifications/initialized`:return ov(void 0);case`server/discover`:return ov(av);default:return}}var Xv=[dp,fp,mp,gp],Zv=[`inputResponses`,`requestState`];function Qv(e,t){let n=e.params;if(!ry(n))return{message:e,lifted:{}};let r=n._meta,i=ry(r)?Xv.filter(e=>e in r):[],a=t===`request`?Zv.filter(e=>e in n):[];if(i.length===0&&a.length===0)return{message:e,lifted:{}};let o={},s={...n};if(i.length>0&&ry(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 $v(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 ey(e){return()=>e}var ty=ey(void 0),ny=class{_transport;_requestMessageId=0;_requestHandlers=new Map;_customSchemaRequestMethods=new Set;_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??lp,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 X(Ig.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!==void 0&&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 X(Ig.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),hv(e)||gv(e)?this._onresponse(e):pv(e)?this._onrequest(e,t):mv(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 X(Ig.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}=Qv(e,`notification`),r=this._negotiatedWireCodec();if(t?.classification===void 0&&this._shouldDropInbound(e)===`drop`)return;if(t?.classification!==void 0){let e=sv(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(lv(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}=Qv(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=sv(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(Z.UnsupportedProtocolVersion,`Unsupported protocol version: ${r}`,{supported:this._supportedProtocolVersions,requested:r});return}}if(cv(n.method)&&!i.hasRequestMethod(n.method)&&!(uv(n.method)&&this._customSchemaRequestMethods.has(n.method))){o(Z.MethodNotFound,`Method not found`);return}let s=this._requestHandlers.get(n.method)??this.fallbackRequestHandler;if(s===void 0){o(Z.MethodNotFound,`Method not found`);return}let c=i.checkInboundEnvelope(r);if(c!==void 0){o(Z.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:ay(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?ty:ey(r.requestState),signal:d.signal,send:((e,t,n)=>{let r=this._resolveOutboundCodec(e.method);if(this._assertOutboundRequestInEra(r,e.method),yv(t))return u(e,t,n);let i=$v(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(Z.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:Z.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);n===void 0?this._onerror(Error(`Received a response for an unknown message ID: ${JSON.stringify(e)}`)):(this._responseHandlers.delete(t),this._cleanupTimeout(t),this._progressHandlers.delete(t),hv(e)?n(e):n(S_.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(yv(t))return uv(e.method)||this._assertOutboundRequestInEra(r,e.method),this._requestWithSchemaViaCodec(r,e,t,n);this._assertOutboundRequestInEra(r,e.method);let i=$v(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 ov(this._negotiatedProtocolVersion)}_wireCodec(){return this._negotiatedWireCodec()}_resolveOutboundCodec(e){if(this._negotiatedProtocolVersion===void 0){let t=Yv(e);if(t)return t}return this._negotiatedWireCodec()}_assertOutboundRequestInEra(e,t){if(cv(t)&&!e.hasRequestMethod(t))throw new X(Ig.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 X?e:new X(Ig.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,_=e=>{te||(this._progressHandlers.delete(h),m===void 0?t.method!==`initialize`&&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 X?e:new X(Ig.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(oy(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;Tv(n,o).then(e=>{e.success?d(e.data):f(new X(Ig.InvalidResult,`Invalid result for ${t.method}: ${e.error}`))},f)}),l=()=>_(r?.signal?.reason),r?.signal?.addEventListener(`abort`,l,{once:!0});let ne=r?.timeout??6e4;this._setupTimeout(h,ne,r?.maxTotalTimeout,()=>_(new X(Ig.RequestTimeout,`Request timed out`,{timeout:ne})),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 await this._notificationViaCodec(this._resolveOutboundCodec(e.method),e,t)}async _notificationViaCodec(e,t,n){if(!this._transport)throw new X(Ig.NotConnected,`Not connected`);if(lv(t.method)&&!e.hasNotificationMethod(t.method))throw new X(Ig.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===void 0){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))})}else await this._transport.send(r,n)}setRequestHandler(e,t,n){this.assertRequestHandlerCapability(e);let r;if(typeof t==`function`){if(!cv(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 S_(Z.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 Tv(t.params,{...r.params});if(!a.success)throw new S_(Z.InvalidParams,`Invalid params for ${e}: ${a.error}`);return n(a.data,i)};else throw TypeError(`setRequestHandler: handler is required`);typeof t==`function`?this._customSchemaRequestMethods.delete(e):this._customSchemaRequestMethods.add(e),this._requestHandlers.set(e,this._wrapHandler(e,r))}_wrapHandler(e,t){return t}_outboundServerInfo(){}removeRequestHandler(e){this._requestHandlers.delete(e),this._customSchemaRequestMethods.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(!lv(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 S_(Z.InternalError,`No wire schema for ${e} in the resolved era`):Error(i.message);return Promise.resolve(t(i.value))})}else{if(!n)throw TypeError(`setNotificationHandler: handler is required`);this._notificationHandlers.set(e,async r=>{let i=await Tv(t.params,{...r.params});if(!i.success)throw new S_(Z.InvalidParams,`Invalid params for notification ${e}: ${i.error}`);await n(i.data,r)})}}removeNotificationHandler(e){this._notificationHandlers.delete(e)}};function ry(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function iy(e){return typeof e==`object`&&!!e&&!Array.isArray(e)}function ay(e){let t={},n=[];if(!iy(e))return{accepted:t,droppedKeys:n};for(let[r,i]of Object.entries(e))!iy(i)||`method`in i||`result`in i?n.push(r):t[r]=i;return{accepted:t,droppedKeys:n}}function oy(e){return{resultType:`input_required`,inputRequests:e.inputRequests,...e.requestState!==void 0&&{requestState:e.requestState},...e._meta!==void 0&&{_meta:e._meta}}}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 sy=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i,cy=/^(?=.{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,ly=/^(?:[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,uy=/^(?:(?:[^\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,dy=/^(?:(?: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,fy=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,py=/^(?:\/(?:[^~/]|~0|~1)*)*$/,my=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,hy=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/,gy=/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,_y=/^((([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 vy(e){return e.test.bind(e)}yy.bind(void 0,!1),vy(ly),vy(uy),vy(dy),vy(cy),vy(gy),vy(_y),vy(fy),vy(py),vy(my),vy(hy);function yy(e,t){let n=t.match(sy);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 by=class extends Error{static{Object.defineProperty(this,"mcpBrand",{value:`mcp.OAuthClientFlowError`})}static[Symbol.hasInstance](e){return Fg(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 Fg(this,e)}constructor(e){super(e),this.name=new.target.name,Pg(this,new.target)}};(class extends by{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 by{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 by{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 / *.localhost / 127.0.0.1 / ::1 are exempt).`),this.tokenEndpoint=e}},class extends by{static{Object.defineProperty(this,"mcpBrand",{value:`mcp.AuthorizationServerMismatchError`})}constructor(e,t){super(`Authorization server mismatch: credentials are bound to ${JSON.stringify(e)} but this call resolved ${JSON.stringify(t)}; refusing to present them to a different authorization server`),this.recordedIssuer=e,this.currentIssuer=t}},class extends by{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 Fg(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 Fg(this,e)}constructor(e){super(e??`Unauthorized`),this.name=`UnauthorizedError`,Pg(this,new.target)}},class extends Error{static{Object.defineProperty(this,"mcpBrand",{value:`mcp.SseError`})}static[Symbol.hasInstance](e){return Fg(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 Fg(this,e)}constructor(e,t,n){super(`SSE error: ${t}`),this.code=e,this.event=n,Pg(this,new.target)}};var xy=`2026-01-26`,Sy=R({}).passthrough(),Cy=R({arguments:V(M(),I()).optional()}).passthrough(),wy=R({reason:M().optional()}).passthrough(),Ty=R({theme:H([`light`,`dark`]).optional(),displayMode:H([`inline`,`fullscreen`,`pip`]).optional(),availableDisplayModes:L(H([`inline`,`fullscreen`,`pip`])).optional(),styles:R({variables:V(M(),B([M(),od()])).optional(),css:R({fonts:M().optional()}).passthrough().optional()}).passthrough().optional(),safeAreaInsets:R({top:P(),right:P(),bottom:P(),left:P()}).optional()}).passthrough(),Ey=R({protocolVersion:M(),hostInfo:R({name:M(),version:M()}).passthrough(),hostCapabilities:V(M(),I()),hostContext:Ty}).passthrough(),Dy=R({mode:H([`inline`,`fullscreen`,`pip`])}).passthrough(),Oy=R({}).passthrough(),ky=class{eventTarget;eventSource;onclose;onerror;onmessage;sessionId;setProtocolVersion;setSupportedProtocolVersions;started=!1;messageListener=e=>{if(e.source!==this.eventSource)return;let t=Pp.safeParse(e.data);t.success?this.onmessage?.(t.data):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?.())}},Ay=class extends ny{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:Sy,result:Oy},()=>({})),this.setNotificationHandler(`ui/notifications/tool-input`,{params:Cy},e=>this.ontoolinput?.(e)),this.setNotificationHandler(`ui/notifications/tool-result`,{params:ih},e=>this.ontoolresult?.(e)),this.setNotificationHandler(`ui/notifications/tool-cancelled`,{params:wy},e=>this.ontoolcancelled?.(e)),this.setNotificationHandler(`ui/notifications/host-context-changed`,{params:Ty},e=>{this.hostContext={...this.hostContext,...e},this.onhostcontextchanged?.(e)}),this.setRequestHandler(`ui/resource-teardown`,{params:Sy,result:Oy},(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},ih,t)}async requestDisplayMode(e,t){return this.request({method:`ui/request-display-mode`,params:e},Dy,t)}async connect(e=new ky,t){await super.connect(e);try{let e=await this.request({method:`ui/initialize`,params:{appCapabilities:this.capabilities,appInfo:this.appInfo,protocolVersion:xy}},Ey,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 jy(e){document.documentElement.dataset.theme=e,document.documentElement.style.colorScheme=e}function My(e,t=document.documentElement){for(let[n,r]of Object.entries(e))n.startsWith(`--`)&&r!==void 0&&t.style.setProperty(n,r)}function Ny(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)}function Py(e,t){e.theme&&jy(e.theme),e.styles?.variables&&My(e.styles.variables),e.styles?.css?.fonts&&Ny(e.styles.css.fonts),e.safeAreaInsets&&(t.style.paddingTop=`${e.safeAreaInsets.top}px`,t.style.paddingRight=`${e.safeAreaInsets.right}px`,t.style.paddingBottom=`${e.safeAreaInsets.bottom}px`,t.style.paddingLeft=`${e.safeAreaInsets.left}px`)}function Fy(e){return e.content?.map(e=>`text`in e?e.text:``).filter(Boolean).join(` `)||void 0}function Iy(e){return e>=100?String(Math.round(e)):(e>=10?e.toFixed(1):e.toFixed(2)).replace(/\.?0+$/,``)}function Ly(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)}var Ry=`9.0.0`,zy={$schema:`https://json-schema.org/draft/2020-12/schema`,$id:`https://qyl.dev/schema/qyl-api-schema.json`,$defs:JSON.parse('{"Annotations.Annotation":{"type":"object","required":["target","text"],"properties":{"labels":{"type":"array","items":{"$ref":"#/$defs/Annotations.AnnotationLabel"},"maxItems":10},"classification":{"$ref":"#/$defs/Annotations.AnnotationClassification"},"target":{"$ref":"#/$defs/Annotations.AnnotationTarget","description":"What the note is attached to. Fixed at creation."},"text":{"type":"string","minLength":1,"maxLength":2000,"description":"The note, plain text, at most 2000 characters."}},"unevaluatedProperties":{"not":{}},"allOf":[{"$ref":"#/$defs/Common.ResourceBase"}],"description":"A user note attached to a trace, span or session."},"Annotations.AnnotationClassification":{"type":"string","enum":["note","hypothesis","finding","rejected"],"description":"Classification of the human annotation."},"Annotations.AnnotationCreateRequest":{"type":"object","required":["target","text"],"properties":{"labels":{"type":"array","items":{"$ref":"#/$defs/Annotations.AnnotationLabel"},"maxItems":10},"classification":{"$ref":"#/$defs/Annotations.AnnotationClassification"},"target":{"$ref":"#/$defs/Annotations.AnnotationTarget","description":"What the note is attached to. Fixed at creation."},"text":{"type":"string","minLength":1,"maxLength":2000,"description":"The note, plain text, at most 2000 characters."}},"unevaluatedProperties":{"not":{}},"description":"Body of POST /api/v1/annotations: the `Lifecycle.Create` members of Annotation."},"Annotations.AnnotationLabel":{"type":"string","minLength":1,"maxLength":64,"description":"A short user-defined annotation label."},"Annotations.AnnotationTarget":{"oneOf":[{"$ref":"#/$defs/Annotations.TraceAnnotationTarget"},{"$ref":"#/$defs/Annotations.SpanAnnotationTarget"},{"$ref":"#/$defs/Annotations.SessionAnnotationTarget"},{"$ref":"#/$defs/Annotations.FailureAnnotationTarget"}],"description":"Exactly one telemetry object an annotation is attached to."},"Annotations.AnnotationUpdateRequest":{"type":"object","properties":{"labels":{"type":"array","items":{"$ref":"#/$defs/Annotations.AnnotationLabel"},"maxItems":10},"classification":{"$ref":"#/$defs/Annotations.AnnotationClassification"},"text":{"type":"string","minLength":1,"maxLength":2000,"description":"The new note, plain text, at most 2000 characters."}},"unevaluatedProperties":{"not":{}},"description":"Body of PATCH /api/v1/annotations/{annotation_id}: the `Lifecycle.Update` members of Annotation."},"Annotations.FailureAnnotationTarget":{"type":"object","required":["kind","failure_id"],"properties":{"kind":{"type":"string","enum":["failure"]},"failure_id":{"$ref":"#/$defs/Common.FailureId"}},"unevaluatedProperties":{"not":{}},"description":"FailureAnnotationTarget contract."},"Annotations.SessionAnnotationTarget":{"type":"object","required":["kind","session_id"],"properties":{"kind":{"type":"string","enum":["session"]},"session_id":{"$ref":"#/$defs/Common.SessionId"}},"unevaluatedProperties":{"not":{}},"description":"An annotation on one session."},"Annotations.SpanAnnotationTarget":{"type":"object","required":["kind","trace_id","span_id"],"properties":{"kind":{"type":"string","enum":["span"]},"trace_id":{"$ref":"#/$defs/Common.TraceId"},"span_id":{"$ref":"#/$defs/Common.SpanId"}},"unevaluatedProperties":{"not":{}},"description":"An annotation on one span of a trace."},"Annotations.TraceAnnotationTarget":{"type":"object","required":["kind","trace_id"],"properties":{"kind":{"type":"string","enum":["trace"]},"trace_id":{"$ref":"#/$defs/Common.TraceId"}},"unevaluatedProperties":{"not":{}},"description":"An annotation on one whole trace."},"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.","pattern":"^(?:(?:0|[1-9][0-9]{0,17}|[1-8][0-9]{18}|9[0-1][0-9]{17}|92[0-1][0-9]{16}|922[0-2][0-9]{15}|9223[0-2][0-9]{14}|92233[0-6][0-9]{13}|922337[0-1][0-9]{12}|92233720[0-2][0-9]{10}|922337203[0-5][0-9]{9}|9223372036[0-7][0-9]{8}|92233720368[0-4][0-9]{7}|922337203685[0-3][0-9]{6}|9223372036854[0-6][0-9]{5}|92233720368547[0-6][0-9]{4}|922337203685477[0-4][0-9]{3}|9223372036854775[0-7][0-9]{2}|922337203685477580[0-6]|9223372036854775807)|-(?:[1-9][0-9]{0,17}|[1-8][0-9]{18}|9[0-1][0-9]{17}|92[0-1][0-9]{16}|922[0-2][0-9]{15}|9223[0-2][0-9]{14}|92233[0-6][0-9]{13}|922337[0-1][0-9]{12}|92233720[0-2][0-9]{10}|922337203[0-5][0-9]{9}|9223372036[0-7][0-9]{8}|92233720368[0-4][0-9]{7}|922337203685[0-3][0-9]{6}|9223372036854[0-6][0-9]{5}|92233720368547[0-6][0-9]{4}|922337203685477[0-4][0-9]{3}|9223372036854775[0-7][0-9]{2}|922337203685477580[0-7]|9223372036854775808))$","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","additionalProperties":{"$ref":"#/$defs/Common.AttributeValue"}}},"unevaluatedProperties":{"not":{}},"description":"Tagged recursive OTLP key-value-list, distinct from other object-shaped attribute variants."},"Common.AttributeObjectValue":{"type":"object","oneOf":[{"$ref":"#/$defs/Common.AttributeIntValue"},{"$ref":"#/$defs/Common.AttributeDoubleValue"},{"$ref":"#/$defs/Common.AttributeBytesValue"},{"$ref":"#/$defs/Common.AttributeKeyValueListValue"}],"discriminator":{"propertyName":"type","mapping":{"int":"#/components/schemas/Common.AttributeIntValue","double":"#/components/schemas/Common.AttributeDoubleValue","bytes":"#/components/schemas/Common.AttributeBytesValue","kvlist":"#/components/schemas/Common.AttributeKeyValueListValue"}},"description":"Object-shaped AttributeValue variants. The variant name is the wire `type` tag."},"Common.AttributeValue":{"anyOf":[{"type":"null"},{"type":"string"},{"type":"boolean"},{"type":"array","items":{"$ref":"#/$defs/Common.AttributeValue"}},{"$ref":"#/$defs/Common.AttributeObjectValue"}],"description":"Lossless JSON projection of an OpenTelemetry AnyValue attribute. Primitive variants are bare JSON values; object variants carry a `type` tag."},"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"},"Common.CollectorKeyRole":{"type":"string","enum":["ingest","read","write","delete"],"description":"Collector API key roles. Every key sent in `x-otlp-api-key` carries one or\\nmore roles: `ingest` accepts OTLP, `read` serves the query routes, `write`\\ncreates and updates user resources, and `delete` deletes them. Roles are\\nindependent, so a leaked ingest key can neither read, change nor delete\\nanything."},"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)"},"Common.Count":{"type":"integer","format":"int64","minimum":0,"description":"Generic non-negative counter"},"Common.Cursor":{"type":"string","description":"Opaque pagination cursor. Pass the `next_cursor` of one page to receive the\\nnext page of the same query. Its content is not part of the contract and\\nmust not be parsed or built by a client."},"Common.DurationMs":{"type":"number","format":"double","minimum":0,"description":"Duration in milliseconds"},"Common.DurationNs":{"type":"string","format":"uint64","description":"Duration in nanoseconds, encoded as a decimal string","pattern":"^(?:0|[1-9][0-9]{0,18}|1[0-7][0-9]{18}|18[0-3][0-9]{17}|184[0-3][0-9]{16}|1844[0-5][0-9]{15}|18446[0-6][0-9]{14}|184467[0-3][0-9]{13}|1844674[0-3][0-9]{12}|184467440[0-6][0-9]{10}|1844674407[0-2][0-9]{9}|18446744073[0-6][0-9]{8}|1844674407370[0-8][0-9]{6}|18446744073709[0-4][0-9]{5}|184467440737095[0-4][0-9]{4}|18446744073709550[0-9]{3}|18446744073709551[0-5][0-9]{2}|1844674407370955160[0-9]{1}|1844674407370955161[0-4]|18446744073709551615)$","maxLength":20},"Common.DurationS":{"type":"number","format":"double","minimum":0,"description":"Duration in seconds"},"Common.ETag":{"type":"string","minLength":1,"maxLength":128,"description":"Opaque entity tag of one resource version. It changes on every successful\\nupdate; send it back in `If-Match` to update or delete that version."},"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.BadGatewayError":{"type":"object","required":["type","code","title"],"properties":{"type":{"type":"string","enum":["https://qyl.at/problems/bad-gateway"]},"code":{"type":"string","enum":["bad_gateway"]},"title":{"type":"string","enum":["Bad Gateway"]},"dependency":{"type":"string","description":"Stable dependency category; never raw exception text."}},"unevaluatedProperties":{"not":{}},"allOf":[{"$ref":"#/$defs/Common.Errors.ProblemDetails"}],"description":"An upstream dependency failed while the server handled the request (502)."},"Common.Errors.ConflictError":{"type":"object","required":["type","code","title"],"properties":{"type":{"type":"string","enum":["https://qyl.at/problems/conflict"]},"code":{"type":"string","enum":["conflict"]},"title":{"type":"string","enum":["Conflict"]},"conflicting_resource":{"type":"string","description":"The identifier of the conflicting resource."}},"unevaluatedProperties":{"not":{}},"allOf":[{"$ref":"#/$defs/Common.Errors.ProblemDetails"}],"description":"The request conflicts with the current state of a resource (409)."},"Common.Errors.ForbiddenError":{"type":"object","required":["type","code","title"],"properties":{"type":{"type":"string","enum":["https://qyl.at/problems/forbidden"]},"code":{"type":"string","enum":["forbidden"]},"title":{"type":"string","enum":["Forbidden"]},"required_permission":{"type":"string","description":"The permission the credential lacks."}},"unevaluatedProperties":{"not":{}},"allOf":[{"$ref":"#/$defs/Common.Errors.ProblemDetails"}],"description":"The credential is valid but not allowed to do this (403)."},"Common.Errors.InternalServerError":{"type":"object","required":["type","code","title"],"properties":{"type":{"type":"string","enum":["https://qyl.at/problems/internal-error"]},"code":{"type":"string","enum":["internal_error"]},"title":{"type":"string","enum":["Internal Server Error"]}},"unevaluatedProperties":{"not":{}},"allOf":[{"$ref":"#/$defs/Common.Errors.ProblemDetails"}],"description":"The server failed while handling the request (500)."},"Common.Errors.NotFoundError":{"type":"object","required":["type","code","title"],"properties":{"type":{"type":"string","enum":["https://qyl.at/problems/not-found"]},"code":{"type":"string","enum":["not_found"]},"title":{"type":"string","enum":["Not Found"]},"resource_type":{"type":"string","description":"The kind 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":"The addressed resource does not exist (404)."},"Common.Errors.PreconditionFailedError":{"type":"object","required":["type","code","title"],"properties":{"type":{"type":"string","enum":["https://qyl.at/problems/precondition-failed"]},"code":{"type":"string","enum":["precondition_failed"]},"title":{"type":"string","enum":["Precondition Failed"]},"current_etag":{"type":"string","description":"Entity tag of the current version, when the caller may read it."}},"unevaluatedProperties":{"not":{}},"allOf":[{"$ref":"#/$defs/Common.Errors.ProblemDetails"}],"description":"The If-Match entity tag is no longer current (412)."},"Common.Errors.PreconditionRequiredError":{"type":"object","required":["type","code","title"],"properties":{"type":{"type":"string","enum":["https://qyl.at/problems/precondition-required"]},"code":{"type":"string","enum":["precondition_required"]},"title":{"type":"string","enum":["Precondition Required"]},"required_header":{"type":"string","enum":["If-Match"],"description":"The header the request must carry."}},"unevaluatedProperties":{"not":{}},"allOf":[{"$ref":"#/$defs/Common.Errors.ProblemDetails"}],"description":"The request must send If-Match (428)."},"Common.Errors.ProblemCode":{"type":"string","enum":["validation_failed","unauthorized","forbidden","not_found","conflict","precondition_failed","precondition_required","internal_error","bad_gateway","service_unavailable"],"description":"Stable machine-readable code of a problem type, the qyl `code` extension\\nmember. `type` names the same problem type as a URI."},"Common.Errors.ProblemDetails":{"type":"object","required":["type","title","status","code"],"properties":{"type":{"$ref":"#/$defs/Common.Errors.ProblemType","description":"URI of the problem type."},"title":{"type":"string","description":"Short summary of the problem type; the same for every occurrence."},"status":{"type":"integer","format":"int32","description":"HTTP status code of this response, repeated for the reader of the body."},"detail":{"type":"string","description":"Explanation specific to this occurrence."},"instance":{"type":"string","format":"uri","description":"URI reference identifying this occurrence."},"code":{"$ref":"#/$defs/Common.Errors.ProblemCode","description":"Stable code of the problem type."}},"description":"RFC 9457 problem details, served as application/problem+json: the standard members plus the qyl `code` extension."},"Common.Errors.ProblemType":{"type":"string","enum":["https://qyl.at/problems/validation-failed","https://qyl.at/problems/unauthorized","https://qyl.at/problems/forbidden","https://qyl.at/problems/not-found","https://qyl.at/problems/conflict","https://qyl.at/problems/precondition-failed","https://qyl.at/problems/precondition-required","https://qyl.at/problems/internal-error","https://qyl.at/problems/bad-gateway","https://qyl.at/problems/service-unavailable"],"description":"Problem type URI, the RFC 9457 `type` member: one per problem a qyl server\\nreports. `code` names the same problem type."},"Common.Errors.ServiceUnavailableError":{"type":"object","required":["type","code","title"],"properties":{"type":{"type":"string","enum":["https://qyl.at/problems/service-unavailable"]},"code":{"type":"string","enum":["service_unavailable"]},"title":{"type":"string","enum":["Service Unavailable"]},"reason":{"type":"string","enum":["maintenance","overloaded","dependency_failure"],"description":"Why the server is unavailable."}},"unevaluatedProperties":{"not":{}},"allOf":[{"$ref":"#/$defs/Common.Errors.ProblemDetails"}],"description":"The server cannot take the request at present (503)."},"Common.Errors.UnauthorizedError":{"type":"object","required":["type","code","title"],"properties":{"type":{"type":"string","enum":["https://qyl.at/problems/unauthorized"]},"code":{"type":"string","enum":["unauthorized"]},"title":{"type":"string","enum":["Unauthorized"]}},"unevaluatedProperties":{"not":{}},"allOf":[{"$ref":"#/$defs/Common.Errors.ProblemDetails"}],"description":"The request carries no valid credential (401)."},"Common.Errors.ValidationError":{"type":"object","required":["type","code","title","errors"],"properties":{"type":{"type":"string","enum":["https://qyl.at/problems/validation-failed"]},"code":{"type":"string","enum":["validation_failed"]},"title":{"type":"string","enum":["Validation Failed"]},"errors":{"type":"array","items":{"$ref":"#/$defs/Common.Errors.ValidationErrorDetail"},"description":"Each rule the request broke."}},"unevaluatedProperties":{"not":{}},"allOf":[{"$ref":"#/$defs/Common.Errors.ProblemDetails"}],"description":"The request failed validation (400)."},"Common.Errors.ValidationErrorDetail":{"type":"object","required":["field","message","code"],"properties":{"field":{"type":"string","description":"The field or parameter that failed validation."},"message":{"type":"string","description":"What is wrong with it."},"code":{"type":"string","description":"The validation rule that failed."},"rejected_value":{"type":"string","description":"The rejected value, when it is safe to repeat."}},"unevaluatedProperties":{"not":{}},"description":"One rule a request broke."},"Common.FailureId":{"type":"string","minLength":1,"maxLength":512,"description":"Opaque project-scoped failure fingerprint issued and verified by the collector."},"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","properties":{"name":{"type":"string","description":"Name of the instrumentation scope (library name)"},"version":{"type":"string","description":"Version of the instrumentation scope"},"schema_url":{"type":"string","description":"Scope schema URL supplied by the producer."},"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.MatcherOp":{"type":"string","enum":["eq","neq","in","prefix","contains","exists","gt","gte","lt","lte"],"description":"Supported predicate operators; equality and prefix retain their existing meaning."},"Common.MatcherScope":{"type":"string","enum":["span","resource","log"],"description":"Attribute namespace in which the predicate is evaluated."},"Common.MatcherValue":{"anyOf":[{"type":"string"},{"type":"number","format":"double"},{"type":"boolean"}],"description":"A comparison operand preserves booleans and numbers rather than coercing them to strings."},"Common.OtlpFlags":{"type":"integer","format":"uint32","minimum":0,"maximum":4294967295,"description":"The complete unsigned 32-bit OTLP flags field, including protocol bits unknown to this API revision."},"Common.Pagination.PageLimit":{"type":"integer","format":"int32","minimum":1,"maximum":1000,"description":"Page size of a list operation: at least 1 and at most 1000 items."},"Common.Percentage":{"type":"number","format":"double","minimum":0,"maximum":100,"description":"Percentage value (0.0 to 100.0)"},"Common.Port":{"type":"integer","format":"int32","minimum":1,"maximum":65535,"description":"Network port number (1-65535)"},"Common.Ratio":{"type":"number","format":"double","minimum":0,"maximum":1,"description":"Ratio value (0.0 to 1.0)"},"Common.ResourceBase":{"type":"object","required":["id","created_at","updated_at","etag"],"properties":{"id":{"$ref":"#/$defs/Common.ResourceId","description":"Server-assigned identifier.","readOnly":true},"created_at":{"type":"string","format":"date-time","description":"When the resource was created.","readOnly":true},"updated_at":{"type":"string","format":"date-time","description":"When the resource was last changed.","readOnly":true},"etag":{"$ref":"#/$defs/Common.ETag","description":"Entity tag of this version; also served as the `ETag` response header.","readOnly":true}},"description":"Base of every user-created collector resource."},"Common.ResourceId":{"type":"string","minLength":1,"maxLength":128,"description":"Opaque, server-assigned identifier of a user-created collector resource."},"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,"pattern":"^(?!\\\\.+$)[A-Za-z0-9._~-]{1,128}$","description":"Unique session identifier: URL-safe characters, at least one, at most 128, not only dots. The same rule the SDK enforces on the baggage header."},"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"]},"Common.TelemetryMatcher":{"type":"object","required":["key","op"],"properties":{"key":{"type":"string","minLength":1,"maxLength":256},"op":{"$ref":"#/$defs/Common.MatcherOp"},"value":{"$ref":"#/$defs/Common.MatcherValue"},"values":{"type":"array","items":{"$ref":"#/$defs/Common.MatcherValue"},"minItems":1,"maxItems":256},"scope":{"$ref":"#/$defs/Common.MatcherScope"}},"unevaluatedProperties":{"not":{}},"description":"TelemetryMatcher contract."},"Common.Temperature":{"type":"number","format":"double","minimum":0,"maximum":2,"description":"Temperature setting for LLM requests (0.0-2.0)"},"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)"},"Common.ToolCoverage":{"type":"object","required":["examined","matched","returned","truncated","scan_complete","as_of"],"properties":{"examined":{"anyOf":[{"$ref":"#/$defs/Common.Count"},{"type":"null"}]},"matched":{"anyOf":[{"$ref":"#/$defs/Common.Count"},{"type":"null"}]},"returned":{"anyOf":[{"$ref":"#/$defs/Common.Count"},{"type":"null"}]},"truncated":{"type":"boolean"},"scan_complete":{"type":"boolean"},"as_of":{"type":"string","format":"date-time"}},"unevaluatedProperties":{"not":{}},"description":"Scan coverage; unknown counts are null, never an invented zero."},"Common.ToolReadContext":{"type":"object","required":["window","coverage"],"properties":{"window":{"$ref":"#/$defs/Common.ToolWindow"},"coverage":{"$ref":"#/$defs/Common.ToolCoverage"},"page_totals":{"type":"object","additionalProperties":{"type":"integer","format":"int64"},"description":"Item totals by paged collection path. Omitted totals are unknown, not zero."}},"unevaluatedProperties":{"not":{}},"description":"ToolReadContext contract."},"Common.ToolWindow":{"type":"object","required":["start_time","end_time"],"properties":{"start_time":{"type":"string","format":"date-time"},"end_time":{"type":"string","format":"date-time"}},"unevaluatedProperties":{"not":{}},"description":"Absolute half-open window applied by the collector."},"Common.TraceId":{"type":"string","minLength":32,"maxLength":32,"pattern":"^[a-f0-9]{32}$","description":"Unique trace identifier (32 lowercase hex characters)","examples":["0af7651916cd43dd8448eb211c80319c"]},"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","pattern":"^(?:0|[1-9][0-9]{0,18}|1[0-7][0-9]{18}|18[0-3][0-9]{17}|184[0-3][0-9]{16}|1844[0-5][0-9]{15}|18446[0-6][0-9]{14}|184467[0-3][0-9]{13}|1844674[0-3][0-9]{12}|184467440[0-6][0-9]{10}|1844674407[0-2][0-9]{9}|18446744073[0-6][0-9]{8}|1844674407370[0-8][0-9]{6}|18446744073709[0-4][0-9]{5}|184467440737095[0-4][0-9]{4}|18446744073709550[0-9]{3}|18446744073709551[0-5][0-9]{2}|1844674407370955160[0-9]{1}|1844674407370955161[0-4]|18446744073709551615)$","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)"},"Common.VerifyId":{"type":"string","minLength":1,"maxLength":8192,"description":"Signed self-contained project-scoped verification token issued by the collector."},"Domains.Observe.Session.DeviceType":{"type":"string","enum":["desktop","mobile","tablet","tv","console","wearable","iot","bot","unknown"],"description":"Device types"},"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"},"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","additionalProperties":{"$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.AgentFindings":{"type":"object","required":["repeated_calls","failed_tool_calls","slowest_steps","token_share"],"properties":{"repeated_calls":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.RepeatedCall"}},"failed_tool_calls":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.AgentStep"}},"slowest_steps":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.AgentStep"}},"token_share":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.AgentTokenShare"}}},"unevaluatedProperties":{"not":{}},"description":"AgentFindings contract."},"Mcp.Tools.AgentRun":{"type":"object","required":["models","started","duration_ms","tokens","errors"],"properties":{"agent_name":{"type":"string"},"models":{"type":"array","items":{"type":"string"}},"started":{"type":"string","format":"date-time"},"duration_ms":{"$ref":"#/$defs/Common.DurationMs"},"tokens":{"$ref":"#/$defs/Mcp.Tools.AgentTokens"},"errors":{"type":"integer","format":"int64"},"session_id":{"$ref":"#/$defs/Common.SessionId"},"trace_id":{"$ref":"#/$defs/Common.TraceId"}},"unevaluatedProperties":{"not":{}},"description":"AgentRun contract."},"Mcp.Tools.AgentStep":{"type":"object","required":["index","kind","name","duration_ms","tokens","status","trace_id","span_id"],"properties":{"index":{"type":"integer","format":"int32"},"kind":{"type":"string","enum":["llm_call","tool_call","agent","retrieval"]},"name":{"type":"string"},"mcp_method":{"type":"string"},"mcp_server":{"type":"string"},"duration_ms":{"$ref":"#/$defs/Common.DurationMs"},"tokens":{"$ref":"#/$defs/Mcp.Tools.AgentTokens"},"status":{"type":"string"},"error":{"type":"string"},"trace_id":{"$ref":"#/$defs/Common.TraceId"},"span_id":{"$ref":"#/$defs/Common.SpanId"}},"unevaluatedProperties":{"not":{}},"description":"AgentStep contract."},"Mcp.Tools.AgentTokenShare":{"type":"object","required":["name","tokens","share"],"properties":{"name":{"type":"string"},"tokens":{"type":"integer","format":"int64"},"share":{"type":"number","format":"double"}},"unevaluatedProperties":{"not":{}},"description":"AgentTokenShare contract."},"Mcp.Tools.AgentTokens":{"type":"object","required":["input","output","cache_read","cache_write","reasoning"],"properties":{"input":{"anyOf":[{"type":"integer","format":"int64"},{"type":"null"}]},"output":{"anyOf":[{"type":"integer","format":"int64"},{"type":"null"}]},"cache_read":{"anyOf":[{"type":"integer","format":"int64"},{"type":"null"}]},"cache_write":{"anyOf":[{"type":"integer","format":"int64"},{"type":"null"}]},"reasoning":{"anyOf":[{"type":"integer","format":"int64"},{"type":"null"}]}},"unevaluatedProperties":{"not":{}},"description":"AgentTokens contract."},"Mcp.Tools.AggregateBucket":{"type":"object","required":["start_time","measures"],"properties":{"start_time":{"type":"string","format":"date-time"},"measures":{"type":"object","additionalProperties":{"anyOf":[{"type":"number","format":"double"},{"type":"null"}]}}},"unevaluatedProperties":{"not":{}},"description":"AggregateBucket contract."},"Mcp.Tools.AggregateGroup":{"type":"object","required":["key","measures"],"properties":{"key":{"type":"object","additionalProperties":{"$ref":"#/$defs/Common.MatcherValue"}},"measures":{"type":"object","additionalProperties":{"anyOf":[{"type":"number","format":"double"},{"type":"null"}]}},"buckets":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.AggregateBucket"}}},"unevaluatedProperties":{"not":{}},"description":"AggregateGroup contract."},"Mcp.Tools.AggregateOther":{"type":"object","required":["groups","count"],"properties":{"groups":{"type":"integer","format":"int64"},"count":{"type":"integer","format":"int64"}},"unevaluatedProperties":{"not":{}},"description":"AggregateOther contract."},"Mcp.Tools.AggregateTelemetryInput":{"type":"object","required":["signal","measures"],"properties":{"lookback_minutes":{"type":"integer","format":"int32","minimum":1,"maximum":43200,"description":"Minutes before `end_time` (or now) when `start_time` is omitted. Default 60; list_releases defaults to 10080 (7 days). Maximum 43200 (30 days)."},"start_time":{"type":"string","format":"date-time","description":"Start of the window (inclusive), RFC 3339."},"end_time":{"type":"string","format":"date-time","description":"End of the window (exclusive), RFC 3339."},"matchers":{"type":"array","items":{"$ref":"#/$defs/Common.TelemetryMatcher"},"maxItems":32,"description":"Attribute predicates that every matched span, resource or log must satisfy; up to 32. Omit for no filtering. discover_attributes lists the keys and values that are recorded."},"limit":{"type":"integer","format":"int32","minimum":1,"maximum":200,"description":"Items per page. Omit for the tool\'s default: 20 groups for aggregate_telemetry, 100 for list_failures, discover_attributes, get_mcp_stats and the span and log collections of context tools. `has_more` and `next_cursor` continue the same query."},"cursor":{"$ref":"#/$defs/Common.Cursor"},"signal":{"type":"string","enum":["spans","logs"],"description":"Which records to aggregate: `spans` (duration measures apply) or `logs`."},"group_by":{"type":"array","items":{"type":"string"},"maxItems":4,"description":"Attribute keys that define the groups, up to 4; omit for one overall group. Each group\'s `key` echoes the values."},"measures":{"type":"array","items":{"type":"string"},"description":"Measures to compute per group; at least one. Accepted values: `count`, `error_count`, `error_rate` (share from 0 to 1), `duration_avg`, `duration_p50`, `duration_p90`, `duration_p95`, `duration_p99`, `duration_max` (milliseconds, spans only) and `sum:<attribute key>` for a numeric attribute. The result\'s `units` names the unit of each measure. Example: [\\"count\\", \\"error_rate\\", \\"duration_p95\\"]."},"step_ms":{"type":"integer","format":"int64","description":"Bucket width in milliseconds for a per-group time series in `buckets`; omit for group totals only. Equal to the window length, it yields one bucket per group."},"order_by":{"type":"string","description":"One of the requested measures, optionally followed by ` asc` or ` desc`. Default: the first measure, descending. Examples: `error_rate`, `duration_p95 desc`, `count asc`."}},"unevaluatedProperties":{"not":{}},"description":"AggregateTelemetryInput contract."},"Mcp.Tools.AggregateTelemetryOutput":{"type":"object","required":["window","coverage","has_more","groups","other","units"],"properties":{"window":{"$ref":"#/$defs/Common.ToolWindow"},"coverage":{"$ref":"#/$defs/Common.ToolCoverage"},"page_totals":{"type":"object","additionalProperties":{"type":"integer","format":"int64"},"description":"Item totals by paged collection path. Omitted totals are unknown, not zero."},"has_more":{"type":"boolean","description":"Whether more items exist beyond this page. False only when the result is complete; `next_cursor` is present exactly when this is true."},"next_cursor":{"$ref":"#/$defs/Common.Cursor","description":"Pass as `cursor` to the same tool with the same filters for the next page. Absent on the last page."},"groups":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.AggregateGroup"}},"other":{"$ref":"#/$defs/Mcp.Tools.AggregateOther"},"units":{"type":"object","additionalProperties":{"type":"string"}},"error":{"$ref":"#/$defs/Mcp.Tools.ToolError"}},"unevaluatedProperties":{"not":{}},"description":"AggregateTelemetryOutput contract."},"Mcp.Tools.AlignedSpans":{"type":"object","required":["a_span","b_span","differences"],"properties":{"a_span":{"$ref":"#/$defs/Mcp.Tools.EvidenceSpan"},"b_span":{"$ref":"#/$defs/Mcp.Tools.EvidenceSpan"},"differences":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.TraceDivergence"}}},"unevaluatedProperties":{"not":{}},"description":"AlignedSpans contract."},"Mcp.Tools.AnalysisBaseline":{"anyOf":[{"type":"string","enum":["previous_window"]},{"$ref":"#/$defs/Common.ToolWindow"},{"$ref":"#/$defs/Mcp.Tools.BaselineOffset"}],"description":"Comparison window for change detection. Omit for `previous_window`: the window of the same length immediately before the selected one. A `window` object sets explicit `start_time` and `end_time`; an `offset_minutes` object shifts the selected window back by that many minutes."},"Mcp.Tools.AnalysisInput":{"type":"object","properties":{"lookback_minutes":{"type":"integer","format":"int32","minimum":1,"maximum":43200,"description":"Minutes before `end_time` (or now) when `start_time` is omitted. Default 60; list_releases defaults to 10080 (7 days). Maximum 43200 (30 days)."},"start_time":{"type":"string","format":"date-time","description":"Start of the window (inclusive), RFC 3339."},"end_time":{"type":"string","format":"date-time","description":"End of the window (exclusive), RFC 3339."},"matchers":{"type":"array","items":{"$ref":"#/$defs/Common.TelemetryMatcher"},"maxItems":32,"description":"Attribute predicates that every matched span, resource or log must satisfy; up to 32. Omit for no filtering. discover_attributes lists the keys and values that are recorded."},"limit":{"type":"integer","format":"int32","minimum":1,"maximum":200,"description":"Items per page. Omit for the tool\'s default: 20 groups for aggregate_telemetry, 100 for list_failures, discover_attributes, get_mcp_stats and the span and log collections of context tools. `has_more` and `next_cursor` continue the same query."},"cursor":{"$ref":"#/$defs/Common.Cursor"}},"unevaluatedProperties":{"not":{}},"description":"AnalysisInput contract."},"Mcp.Tools.AnnotationOutput":{"type":"object","properties":{"annotation":{"$ref":"#/$defs/Annotations.Annotation"},"error":{"$ref":"#/$defs/Mcp.Tools.ToolError","description":"Set when the call failed."}},"unevaluatedProperties":{"not":{}},"description":"Structured output for create_annotation and update_annotation."},"Mcp.Tools.AttributeAssociation":{"type":"object","required":["key","value","share_a","share_b","count_a","count_b","lift"],"properties":{"key":{"type":"string"},"value":{"$ref":"#/$defs/Common.MatcherValue"},"share_a":{"type":"number","format":"double"},"share_b":{"type":"number","format":"double"},"count_a":{"type":"integer","format":"int64"},"count_b":{"type":"integer","format":"int64"},"lift":{"anyOf":[{"type":"number","format":"double"},{"type":"null"}]}},"unevaluatedProperties":{"not":{}},"description":"AttributeAssociation contract."},"Mcp.Tools.AttributeSemconv":{"type":"object","required":["brief","stability","requirement_level"],"properties":{"brief":{"type":"string"},"stability":{"type":"string"},"requirement_level":{"type":"string"}},"unevaluatedProperties":{"not":{}},"description":"AttributeSemconv contract."},"Mcp.Tools.AttributeValueCount":{"type":"object","required":["value","count","share"],"properties":{"value":{"$ref":"#/$defs/Common.MatcherValue"},"count":{"type":"integer","format":"int64"},"share":{"type":"number","format":"double"}},"unevaluatedProperties":{"not":{}},"description":"AttributeValueCount contract."},"Mcp.Tools.BaselineOffset":{"type":"object","required":["offset_minutes"],"properties":{"offset_minutes":{"type":"integer","format":"int32"}},"unevaluatedProperties":{"not":{}},"description":"BaselineOffset contract."},"Mcp.Tools.CheckTelemetryHealthInput":{"type":"object","properties":{"lookback_minutes":{"type":"integer","format":"int32","minimum":1,"maximum":43200,"description":"Minutes before `end_time` (or now) when `start_time` is omitted. Default 60; list_releases defaults to 10080 (7 days). Maximum 43200 (30 days)."},"start_time":{"type":"string","format":"date-time","description":"Start of the window (inclusive), RFC 3339."},"end_time":{"type":"string","format":"date-time","description":"End of the window (exclusive), RFC 3339."},"matchers":{"type":"array","items":{"$ref":"#/$defs/Common.TelemetryMatcher"},"maxItems":32,"description":"Attribute predicates that every matched span, resource or log must satisfy; up to 32. Omit for no filtering. discover_attributes lists the keys and values that are recorded."},"limit":{"type":"integer","format":"int32","minimum":1,"maximum":200,"description":"Items per page. Omit for the tool\'s default: 20 groups for aggregate_telemetry, 100 for list_failures, discover_attributes, get_mcp_stats and the span and log collections of context tools. `has_more` and `next_cursor` continue the same query."},"cursor":{"$ref":"#/$defs/Common.Cursor"},"service_name":{"type":"string"},"environment":{"type":"string"}},"unevaluatedProperties":{"not":{}},"description":"CheckTelemetryHealthInput contract."},"Mcp.Tools.CheckTelemetryHealthOutput":{"type":"object","required":["window","coverage","has_more","silent_services","orphan_spans","semconv_gaps","unknown_service_share","schema_urls","retention"],"properties":{"window":{"$ref":"#/$defs/Common.ToolWindow"},"coverage":{"$ref":"#/$defs/Common.ToolCoverage"},"page_totals":{"type":"object","additionalProperties":{"type":"integer","format":"int64"},"description":"Item totals by paged collection path. Omitted totals are unknown, not zero."},"has_more":{"type":"boolean","description":"Whether more items exist beyond this page. False only when the result is complete; `next_cursor` is present exactly when this is true."},"next_cursor":{"$ref":"#/$defs/Common.Cursor","description":"Pass as `cursor` to the same tool with the same filters for the next page. Absent on the last page."},"silent_services":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.SilentService"}},"orphan_spans":{"$ref":"#/$defs/Mcp.Tools.OrphanSpans"},"semconv_gaps":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.SemconvGap"}},"unknown_service_share":{"type":"number","format":"double"},"schema_urls":{"type":"array","items":{"type":"string"}},"retention":{"$ref":"#/$defs/Mcp.Tools.TelemetryRetention"},"ingestion_lag_ms":{"type":"number","format":"double"},"error":{"$ref":"#/$defs/Mcp.Tools.ToolError"}},"unevaluatedProperties":{"not":{}},"description":"CheckTelemetryHealthOutput contract."},"Mcp.Tools.CiAttempt":{"type":"object","required":["run_id","attempt"],"properties":{"run_id":{"$ref":"#/$defs/Common.SessionId"},"attempt":{"type":"integer","format":"int32"},"provider_run_id":{"type":"string"},"provider_run_url":{"$ref":"#/$defs/Common.UrlString"}},"unevaluatedProperties":{"not":{}},"description":"CiAttempt contract."},"Mcp.Tools.CiComparison":{"type":"object","required":["new_failures","fixed","duration_regressions"],"properties":{"baseline_run_id":{"$ref":"#/$defs/Common.SessionId"},"new_failures":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.CiPhaseChange"}},"fixed":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.CiPhaseChange"}},"duration_regressions":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.CiPhaseChange"}}},"unevaluatedProperties":{"not":{}},"description":"CiComparison contract."},"Mcp.Tools.CiErrorExcerpt":{"type":"object","required":["id","body"],"properties":{"id":{"type":"string"},"body":{"type":"string"},"trace_id":{"$ref":"#/$defs/Common.TraceId"},"span_id":{"$ref":"#/$defs/Common.SpanId"}},"unevaluatedProperties":{"not":{}},"description":"CiErrorExcerpt contract."},"Mcp.Tools.CiLogInput":{"type":"object","properties":{"cursor":{"$ref":"#/$defs/Common.Cursor"},"branch":{"type":"string"},"commit":{"type":"string"},"leg":{"type":"string"},"phase":{"type":"string"},"phase_cursor":{"$ref":"#/$defs/Common.Cursor"},"outcome":{"type":"string","enum":["failed","passed","all"]},"compare_to":{"type":"string"},"matchers":{"type":"array","items":{"$ref":"#/$defs/Common.TelemetryMatcher"},"maxItems":32},"lookback_minutes":{"type":"integer","format":"int32","minimum":1,"maximum":43200,"description":"Minutes before `end_time` (or now) when `start_time` is omitted. Default 60; list_releases defaults to 10080 (7 days). Maximum 43200 (30 days)."},"start_time":{"type":"string","format":"date-time","description":"Start of the window (inclusive), RFC 3339."},"end_time":{"type":"string","format":"date-time","description":"End of the window (exclusive), RFC 3339."},"run_id":{"$ref":"#/$defs/Common.SessionId","description":"Session id of one CI run for a per-leg phase breakdown; omit to list recent runs."},"service_prefix":{"type":"string","minLength":1,"maxLength":256,"description":"Case-sensitive service-name prefix identifying CI telemetry in both run lists and phase breakdowns.","default":"qyl-ci"},"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":["has_more","window","coverage","mode"],"properties":{"next_phase_cursor":{"$ref":"#/$defs/Common.Cursor"},"has_more":{"type":"boolean","description":"Whether more items exist beyond this page. False only when the result is complete; `next_cursor` is present exactly when this is true."},"next_cursor":{"$ref":"#/$defs/Common.Cursor","description":"Pass as `cursor` to the same tool with the same filters for the next page. Absent on the last page."},"comparison":{"$ref":"#/$defs/Mcp.Tools.CiComparison"},"window":{"$ref":"#/$defs/Common.ToolWindow"},"coverage":{"$ref":"#/$defs/Common.ToolCoverage"},"page_totals":{"type":"object","additionalProperties":{"type":"integer","format":"int64"},"description":"Item totals by paged collection path. Omitted totals are unknown, not zero."},"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"},"error":{"$ref":"#/$defs/Mcp.Tools.ToolError","description":"Set when the call failed."}},"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":{"span_id":{"$ref":"#/$defs/Common.SpanId"},"trace_ids":{"type":"array","items":{"$ref":"#/$defs/Common.TraceId"}},"error_log_count":{"type":"integer","format":"int64"},"error_logs":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.CiErrorExcerpt"}},"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.CiPhaseChange":{"type":"object","required":["leg","phase"],"properties":{"leg":{"type":"string"},"phase":{"type":"string"},"current_duration_ms":{"$ref":"#/$defs/Common.DurationMs"},"baseline_duration_ms":{"$ref":"#/$defs/Common.DurationMs"},"ratio":{"type":"number","format":"double"},"trace_ids":{"type":"array","items":{"$ref":"#/$defs/Common.TraceId"}}},"unevaluatedProperties":{"not":{}},"description":"CiPhaseChange contract."},"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":{"session_id":{"$ref":"#/$defs/Common.SessionId"},"provider_run_id":{"type":"string"},"provider_run_url":{"$ref":"#/$defs/Common.UrlString"},"attempt":{"type":"integer","format":"int32"},"attempts":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.CiAttempt"}},"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.CompareGroup":{"type":"object","properties":{"matchers":{"type":"array","items":{"$ref":"#/$defs/Common.TelemetryMatcher"},"maxItems":32},"window":{"$ref":"#/$defs/Common.ToolWindow"},"failure_id":{"$ref":"#/$defs/Common.FailureId"}},"unevaluatedProperties":{"not":{}},"description":"CompareGroup contract."},"Mcp.Tools.CompareGroupsInput":{"type":"object","required":["signal","group_a","group_b"],"properties":{"lookback_minutes":{"type":"integer","format":"int32","minimum":1,"maximum":43200,"description":"Minutes before `end_time` (or now) when `start_time` is omitted. Default 60; list_releases defaults to 10080 (7 days). Maximum 43200 (30 days)."},"start_time":{"type":"string","format":"date-time","description":"Start of the window (inclusive), RFC 3339."},"end_time":{"type":"string","format":"date-time","description":"End of the window (exclusive), RFC 3339."},"matchers":{"type":"array","items":{"$ref":"#/$defs/Common.TelemetryMatcher"},"maxItems":32,"description":"Attribute predicates that every matched span, resource or log must satisfy; up to 32. Omit for no filtering. discover_attributes lists the keys and values that are recorded."},"limit":{"type":"integer","format":"int32","minimum":1,"maximum":200,"description":"Items per page. Omit for the tool\'s default: 20 groups for aggregate_telemetry, 100 for list_failures, discover_attributes, get_mcp_stats and the span and log collections of context tools. `has_more` and `next_cursor` continue the same query."},"cursor":{"$ref":"#/$defs/Common.Cursor"},"signal":{"type":"string","enum":["spans","logs"]},"group_a":{"$ref":"#/$defs/Mcp.Tools.CompareGroup"},"group_b":{"anyOf":[{"$ref":"#/$defs/Mcp.Tools.CompareGroup"},{"type":"string","enum":["rest","before"]}]},"attribute_scope":{"type":"string","enum":["span","resource","both"]}},"unevaluatedProperties":{"not":{}},"description":"CompareGroupsInput contract."},"Mcp.Tools.CompareGroupsOutput":{"type":"object","required":["window","coverage","has_more","discriminators","structural","durations","composition","size_a","size_b","excluded_keys"],"properties":{"window":{"$ref":"#/$defs/Common.ToolWindow"},"coverage":{"$ref":"#/$defs/Common.ToolCoverage"},"page_totals":{"type":"object","additionalProperties":{"type":"integer","format":"int64"},"description":"Item totals by paged collection path. Omitted totals are unknown, not zero."},"has_more":{"type":"boolean","description":"Whether more items exist beyond this page. False only when the result is complete; `next_cursor` is present exactly when this is true."},"next_cursor":{"$ref":"#/$defs/Common.Cursor","description":"Pass as `cursor` to the same tool with the same filters for the next page. Absent on the last page."},"discriminators":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.AttributeAssociation"}},"structural":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.GroupStructure"}},"durations":{"$ref":"#/$defs/Mcp.Tools.GroupDurations"},"composition":{"$ref":"#/$defs/Mcp.Tools.GroupComposition"},"size_a":{"type":"integer","format":"int64"},"size_b":{"type":"integer","format":"int64"},"excluded_keys":{"type":"array","items":{"type":"string"}},"error":{"$ref":"#/$defs/Mcp.Tools.ToolError"}},"unevaluatedProperties":{"not":{}},"description":"CompareGroupsOutput contract."},"Mcp.Tools.CompareTracesInput":{"type":"object","required":["a","b"],"properties":{"lookback_minutes":{"type":"integer","format":"int32","minimum":1,"maximum":43200,"description":"Minutes before `end_time` (or now) when `start_time` is omitted. Default 60; list_releases defaults to 10080 (7 days). Maximum 43200 (30 days)."},"start_time":{"type":"string","format":"date-time","description":"Start of the window (inclusive), RFC 3339."},"end_time":{"type":"string","format":"date-time","description":"End of the window (exclusive), RFC 3339."},"matchers":{"type":"array","items":{"$ref":"#/$defs/Common.TelemetryMatcher"},"maxItems":32,"description":"Attribute predicates that every matched span, resource or log must satisfy; up to 32. Omit for no filtering. discover_attributes lists the keys and values that are recorded."},"limit":{"type":"integer","format":"int32","minimum":1,"maximum":200,"description":"Items per page. Omit for the tool\'s default: 20 groups for aggregate_telemetry, 100 for list_failures, discover_attributes, get_mcp_stats and the span and log collections of context tools. `has_more` and `next_cursor` continue the same query."},"cursor":{"$ref":"#/$defs/Common.Cursor"},"a":{"$ref":"#/$defs/Mcp.Tools.ExecutionReference"},"b":{"$ref":"#/$defs/Mcp.Tools.ExecutionReference"}},"unevaluatedProperties":{"not":{}},"description":"CompareTracesInput contract."},"Mcp.Tools.CompareTracesOutput":{"type":"object","required":["window","coverage","has_more","first_divergence","aligned","after_divergence","unmatched","comparable"],"properties":{"window":{"$ref":"#/$defs/Common.ToolWindow"},"coverage":{"$ref":"#/$defs/Common.ToolCoverage"},"page_totals":{"type":"object","additionalProperties":{"type":"integer","format":"int64"},"description":"Item totals by paged collection path. Omitted totals are unknown, not zero."},"has_more":{"type":"boolean","description":"Whether more items exist beyond this page. False only when the result is complete; `next_cursor` is present exactly when this is true."},"next_cursor":{"$ref":"#/$defs/Common.Cursor","description":"Pass as `cursor` to the same tool with the same filters for the next page. Absent on the last page."},"first_divergence":{"anyOf":[{"$ref":"#/$defs/Mcp.Tools.TraceDivergence"},{"type":"null"}]},"aligned":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.AlignedSpans"}},"after_divergence":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.TraceDivergence"}},"unmatched":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.EvidenceSpan"}},"comparable":{"type":"boolean"},"reason":{"type":"string"},"error":{"$ref":"#/$defs/Mcp.Tools.ToolError"}},"unevaluatedProperties":{"not":{}},"description":"CompareTracesOutput contract."},"Mcp.Tools.CreateAnnotationInput":{"type":"object","required":["target","text"],"properties":{"idempotency_key":{"type":"string","minLength":1,"maxLength":255},"labels":{"type":"array","items":{"$ref":"#/$defs/Annotations.AnnotationLabel"},"maxItems":10},"classification":{"$ref":"#/$defs/Annotations.AnnotationClassification"},"target":{"$ref":"#/$defs/Annotations.AnnotationTarget","description":"What the note is attached to. Fixed at creation."},"text":{"type":"string","minLength":1,"maxLength":2000,"description":"The note, plain text, at most 2000 characters."}},"unevaluatedProperties":{"not":{}},"description":"Input for create_annotation."},"Mcp.Tools.CreateSavedQueryInput":{"type":"object","required":["name","filter"],"properties":{"idempotency_key":{"type":"string","minLength":1,"maxLength":255},"name":{"type":"string","minLength":1,"maxLength":200,"description":"Unique within the project; a duplicate is refused with 409."},"description":{"type":"string","maxLength":2000},"filter":{"$ref":"#/$defs/SavedQueries.SavedQueryFilter"}},"unevaluatedProperties":{"not":{}},"description":"Input for create_saved_query."},"Mcp.Tools.DeletableKind":{"type":"string","enum":["annotation","saved_query"],"description":"The user-created resource kinds the delete tool accepts."},"Mcp.Tools.DeleteInput":{"type":"object","required":["kind","id","etag"],"properties":{"kind":{"$ref":"#/$defs/Mcp.Tools.DeletableKind"},"id":{"$ref":"#/$defs/Common.ResourceId"},"etag":{"$ref":"#/$defs/Common.ETag","description":"The resource\'s current `etag`, sent as If-Match."}},"unevaluatedProperties":{"not":{}},"description":"Input for the delete tool. Telemetry is never deletable."},"Mcp.Tools.DeleteOutput":{"type":"object","required":["deleted"],"properties":{"deleted":{"type":"boolean"},"error":{"$ref":"#/$defs/Mcp.Tools.ToolError","description":"Set when the call failed."}},"unevaluatedProperties":{"not":{}},"description":"Structured output for the delete tool."},"Mcp.Tools.DiscoverAttributesInput":{"type":"object","required":["signal"],"properties":{"lookback_minutes":{"type":"integer","format":"int32","minimum":1,"maximum":43200,"description":"Minutes before `end_time` (or now) when `start_time` is omitted. Default 60; list_releases defaults to 10080 (7 days). Maximum 43200 (30 days)."},"start_time":{"type":"string","format":"date-time","description":"Start of the window (inclusive), RFC 3339."},"end_time":{"type":"string","format":"date-time","description":"End of the window (exclusive), RFC 3339."},"matchers":{"type":"array","items":{"$ref":"#/$defs/Common.TelemetryMatcher"},"maxItems":32,"description":"Attribute predicates that every matched span, resource or log must satisfy; up to 32. Omit for no filtering. discover_attributes lists the keys and values that are recorded."},"limit":{"type":"integer","format":"int32","minimum":1,"maximum":200,"description":"Items per page. Omit for the tool\'s default: 20 groups for aggregate_telemetry, 100 for list_failures, discover_attributes, get_mcp_stats and the span and log collections of context tools. `has_more` and `next_cursor` continue the same query."},"cursor":{"$ref":"#/$defs/Common.Cursor"},"signal":{"type":"string","enum":["spans","logs","resources"]},"key_prefix":{"type":"string"},"key":{"type":"string"}},"unevaluatedProperties":{"not":{}},"description":"DiscoverAttributesInput contract."},"Mcp.Tools.DiscoverAttributesOutput":{"type":"object","required":["window","coverage","has_more","attributes"],"properties":{"window":{"$ref":"#/$defs/Common.ToolWindow"},"coverage":{"$ref":"#/$defs/Common.ToolCoverage"},"page_totals":{"type":"object","additionalProperties":{"type":"integer","format":"int64"},"description":"Item totals by paged collection path. Omitted totals are unknown, not zero."},"has_more":{"type":"boolean","description":"Whether more items exist beyond this page. False only when the result is complete; `next_cursor` is present exactly when this is true."},"next_cursor":{"$ref":"#/$defs/Common.Cursor","description":"Pass as `cursor` to the same tool with the same filters for the next page. Absent on the last page."},"attributes":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.DiscoveredAttribute"}},"error":{"$ref":"#/$defs/Mcp.Tools.ToolError"}},"unevaluatedProperties":{"not":{}},"description":"DiscoverAttributesOutput contract."},"Mcp.Tools.DiscoveredAttribute":{"type":"object","required":["key","scope","type","coverage_share","cardinality","cardinality_exact","top_values","semconv"],"properties":{"key":{"type":"string"},"scope":{"$ref":"#/$defs/Common.MatcherScope"},"type":{"type":"string"},"coverage_share":{"type":"number","format":"double"},"cardinality":{"type":"integer","format":"int64"},"cardinality_exact":{"type":"boolean"},"top_values":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.AttributeValueCount"},"maxItems":10},"semconv":{"anyOf":[{"$ref":"#/$defs/Mcp.Tools.AttributeSemconv"},{"type":"null"}]}},"unevaluatedProperties":{"not":{}},"description":"DiscoveredAttribute contract."},"Mcp.Tools.DisplayMcpDashboardInput":{"type":"object","properties":{"server_name":{"type":"string"},"tool_name":{"type":"string"},"transport":{"type":"string"},"compare_to":{"$ref":"#/$defs/Mcp.Tools.McpStatsComparison"},"lookback_minutes":{"type":"integer","format":"int32","minimum":1,"maximum":43200,"description":"Minutes before `end_time` (or now) when `start_time` is omitted. Default 60; list_releases defaults to 10080 (7 days). Maximum 43200 (30 days)."},"start_time":{"type":"string","format":"date-time","description":"Start of the window (inclusive), RFC 3339."},"end_time":{"type":"string","format":"date-time","description":"End of the window (exclusive), RFC 3339."},"hours":{"type":"integer","format":"int32","minimum":1,"maximum":168,"description":"Window length in whole hours.","default":24}},"unevaluatedProperties":{"not":{}},"description":"Input for display_mcp_dashboard."},"Mcp.Tools.DisplayMcpDashboardOutput":{"type":"object","required":["window","coverage","stats"],"properties":{"window":{"$ref":"#/$defs/Common.ToolWindow"},"coverage":{"$ref":"#/$defs/Common.ToolCoverage"},"page_totals":{"type":"object","additionalProperties":{"type":"integer","format":"int64"},"description":"Item totals by paged collection path. Omitted totals are unknown, not zero."},"stats":{"$ref":"#/$defs/Mcp.Tools.McpDashboardStats"},"error":{"$ref":"#/$defs/Mcp.Tools.ToolError","description":"Set when the call failed."}},"unevaluatedProperties":{"not":{}},"description":"Structured output for display_mcp_dashboard."},"Mcp.Tools.DisplayTracesInput":{"type":"object","properties":{"failure_class":{"$ref":"#/$defs/Mcp.Tools.McpFailureClass"},"server_name":{"type":"string"},"tool_name":{"type":"string"},"transport":{"type":"string"},"failure_id":{"$ref":"#/$defs/Common.FailureId"},"compare_to":{"$ref":"#/$defs/Common.TraceId"},"selected_span_id":{"$ref":"#/$defs/Common.SpanId"},"cursor":{"$ref":"#/$defs/Common.Cursor"},"matchers":{"type":"array","items":{"$ref":"#/$defs/Common.TelemetryMatcher"},"maxItems":32},"lookback_minutes":{"type":"integer","format":"int32","minimum":1,"maximum":43200,"description":"Minutes before `end_time` (or now) when `start_time` is omitted. Default 60; list_releases defaults to 10080 (7 days). Maximum 43200 (30 days)."},"start_time":{"type":"string","format":"date-time","description":"Start of the window (inclusive), RFC 3339."},"end_time":{"type":"string","format":"date-time","description":"End of the window (exclusive), RFC 3339."},"trace_id":{"$ref":"#/$defs/Common.TraceId","description":"Open this trace selected; omit to list recent traces."},"session_id":{"$ref":"#/$defs/Common.SessionId","description":"List only the traces of this session."},"limit":{"type":"integer","format":"int32","minimum":1,"maximum":100,"description":"Maximum traces to list.","default":20}},"unevaluatedProperties":{"not":{}},"description":"Input for display_traces."},"Mcp.Tools.DisplayTracesOutput":{"type":"object","required":["window","coverage","traces","mode"],"properties":{"selected_span_id":{"$ref":"#/$defs/Common.SpanId"},"comparison":{"$ref":"#/$defs/Mcp.Tools.CompareTracesOutput"},"window":{"$ref":"#/$defs/Common.ToolWindow"},"coverage":{"$ref":"#/$defs/Common.ToolCoverage"},"page_totals":{"type":"object","additionalProperties":{"type":"integer","format":"int64"},"description":"Item totals by paged collection path. Omitted totals are unknown, not zero."},"traces":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.ToolTrace"}},"selected_trace_id":{"$ref":"#/$defs/Common.TraceId"},"mode":{"$ref":"#/$defs/Mcp.Tools.McpDataMode"},"error":{"$ref":"#/$defs/Mcp.Tools.ToolError","description":"Set when the call failed."}},"unevaluatedProperties":{"not":{}},"description":"Structured output for display_traces."},"Mcp.Tools.DurationPercentiles":{"type":"object","required":["p50_ms","p95_ms","p99_ms"],"properties":{"p50_ms":{"anyOf":[{"type":"number","format":"double"},{"type":"null"}]},"p95_ms":{"anyOf":[{"type":"number","format":"double"},{"type":"null"}]},"p99_ms":{"anyOf":[{"type":"number","format":"double"},{"type":"null"}]}},"unevaluatedProperties":{"not":{}},"description":"DurationPercentiles contract."},"Mcp.Tools.EvidenceSpan":{"type":"object","required":["trace_id","span_id","service","name","status","key_attributes","duration_ms","role"],"properties":{"start_time":{"type":"string","format":"date-time"},"end_time":{"type":"string","format":"date-time"},"trace_id":{"$ref":"#/$defs/Common.TraceId"},"span_id":{"$ref":"#/$defs/Common.SpanId"},"parent_span_id":{"$ref":"#/$defs/Common.SpanId"},"session_id":{"$ref":"#/$defs/Common.SessionId"},"service":{"type":"string"},"name":{"type":"string"},"status":{"type":"string"},"status_message":{"type":"string"},"exception":{"$ref":"#/$defs/Mcp.Tools.RecordedException"},"key_attributes":{"type":"array","items":{"$ref":"#/$defs/Common.Attribute"}},"duration_ms":{"$ref":"#/$defs/Common.DurationMs"},"role":{"type":"string","enum":["matched","context"]}},"unevaluatedProperties":{"not":{}},"description":"EvidenceSpan contract."},"Mcp.Tools.ExecutionReference":{"type":"object","properties":{"trace_id":{"$ref":"#/$defs/Common.TraceId"},"session_id":{"$ref":"#/$defs/Common.SessionId"}},"unevaluatedProperties":{"not":{}},"description":"ExecutionReference contract."},"Mcp.Tools.FailureChange":{"type":"string","enum":["new","worsening","ongoing","recovering","regressed"],"description":"Failure trend in the selected comparison window."},"Mcp.Tools.FailureComparison":{"type":"object","required":["first_divergence"],"properties":{"nearest_success_trace_id":{"$ref":"#/$defs/Common.TraceId"},"first_divergence":{"anyOf":[{"$ref":"#/$defs/Mcp.Tools.TraceDivergence"},{"type":"null"}]}},"unevaluatedProperties":{"not":{}},"description":"FailureComparison contract."},"Mcp.Tools.FailureContext":{"type":"object","required":["similar_failures","changes","annotations"],"properties":{"similar_failures":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.SimilarFailure"}},"changes":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.TriageRegression"}},"annotations":{"type":"array","items":{"$ref":"#/$defs/Annotations.Annotation"}}},"unevaluatedProperties":{"not":{}},"description":"FailureContext contract."},"Mcp.Tools.FailureDetail":{"type":"object","required":["failure_id","etag","signature","normalized_message","operation","service","first_seen","last_seen","count","affected_traces","affected_sessions","releases_seen","status","updated_at","annotation_count","example_trace_ids"],"properties":{"failure_id":{"$ref":"#/$defs/Common.FailureId"},"etag":{"$ref":"#/$defs/Common.ETag"},"signature":{"type":"string"},"exception_type":{"type":"string"},"normalized_message":{"type":"string"},"operation":{"type":"string"},"service":{"type":"string"},"first_seen":{"type":"string","format":"date-time"},"last_seen":{"type":"string","format":"date-time"},"count":{"type":"integer","format":"int64"},"affected_traces":{"type":"integer","format":"int64"},"affected_sessions":{"type":"integer","format":"int64"},"releases_seen":{"type":"array","items":{"type":"string"}},"status":{"$ref":"#/$defs/Mcp.Tools.FailureStatus"},"updated_at":{"type":"string","format":"date-time"},"ignore_until":{"type":"string","format":"date-time"},"assignee":{"type":"string"},"annotation_count":{"type":"integer","format":"int64"},"example_trace_ids":{"type":"array","items":{"$ref":"#/$defs/Common.TraceId"},"maxItems":3},"counts_per_release":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.FailureReleaseCount"}},"discriminators":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.AttributeAssociation"}},"recent_occurrences":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.FailureOccurrence"}},"raw_messages":{"type":"array","items":{"type":"string"}}},"unevaluatedProperties":{"not":{}},"description":"FailureDetail contract."},"Mcp.Tools.FailureObserved":{"type":"object","required":["root_cause_span","error_spans","propagation","logs","retries","fanout"],"properties":{"root_cause_span":{"anyOf":[{"$ref":"#/$defs/Mcp.Tools.EvidenceSpan"},{"type":"null"}]},"error_spans":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.EvidenceSpan"}},"propagation":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.FailurePropagation"}},"logs":{"type":"array","items":{"$ref":"#/$defs/OTel.Logs.LogRecord"}},"retries":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.RetryEvidence"}},"fanout":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.FanoutEvidence"}}},"unevaluatedProperties":{"not":{}},"description":"FailureObserved contract."},"Mcp.Tools.FailureOccurrence":{"type":"object","required":["trace_id","span_id","timestamp"],"properties":{"trace_id":{"$ref":"#/$defs/Common.TraceId"},"span_id":{"$ref":"#/$defs/Common.SpanId"},"session_id":{"$ref":"#/$defs/Common.SessionId"},"timestamp":{"type":"string","format":"date-time"},"message":{"type":"string"},"release":{"type":"string"}},"unevaluatedProperties":{"not":{}},"description":"FailureOccurrence contract."},"Mcp.Tools.FailurePropagation":{"type":"object","required":["from","to"],"properties":{"from":{"$ref":"#/$defs/Mcp.Tools.EvidenceSpan"},"to":{"$ref":"#/$defs/Mcp.Tools.EvidenceSpan"}},"unevaluatedProperties":{"not":{}},"description":"FailurePropagation contract."},"Mcp.Tools.FailureRelease":{"type":"object","required":["service","version","first_seen"],"properties":{"service":{"type":"string"},"version":{"type":"string"},"first_seen":{"type":"string","format":"date-time"},"revision":{"type":"string"}},"unevaluatedProperties":{"not":{}},"description":"FailureRelease contract."},"Mcp.Tools.FailureReleaseCount":{"type":"object","required":["release","count"],"properties":{"release":{"type":"string"},"count":{"type":"integer","format":"int64"}},"unevaluatedProperties":{"not":{}},"description":"FailureReleaseCount contract."},"Mcp.Tools.FailureStatus":{"type":"string","enum":["open","resolved","ignored"],"description":"Persisted failure triage status."},"Mcp.Tools.FailureStatusFilter":{"anyOf":[{"$ref":"#/$defs/Mcp.Tools.FailureStatus"},{"type":"string","enum":["all"]}],"description":"Filter for failure status."},"Mcp.Tools.FailureSummary":{"type":"object","required":["failure_id","etag","signature","normalized_message","operation","service","first_seen","last_seen","count","affected_traces","affected_sessions","releases_seen","status","updated_at","annotation_count","example_trace_ids"],"properties":{"failure_id":{"$ref":"#/$defs/Common.FailureId"},"etag":{"$ref":"#/$defs/Common.ETag"},"signature":{"type":"string"},"exception_type":{"type":"string"},"normalized_message":{"type":"string"},"operation":{"type":"string"},"service":{"type":"string"},"first_seen":{"type":"string","format":"date-time"},"last_seen":{"type":"string","format":"date-time"},"count":{"type":"integer","format":"int64"},"affected_traces":{"type":"integer","format":"int64"},"affected_sessions":{"type":"integer","format":"int64"},"releases_seen":{"type":"array","items":{"type":"string"}},"status":{"$ref":"#/$defs/Mcp.Tools.FailureStatus"},"updated_at":{"type":"string","format":"date-time"},"ignore_until":{"type":"string","format":"date-time"},"assignee":{"type":"string"},"annotation_count":{"type":"integer","format":"int64"},"example_trace_ids":{"type":"array","items":{"$ref":"#/$defs/Common.TraceId"},"maxItems":3}},"unevaluatedProperties":{"not":{}},"description":"FailureSummary contract."},"Mcp.Tools.FanoutEvidence":{"type":"object","required":["name","count","trace_id"],"properties":{"name":{"type":"string"},"count":{"type":"integer","format":"int32"},"parent_span_id":{"$ref":"#/$defs/Common.SpanId"},"trace_id":{"$ref":"#/$defs/Common.TraceId"}},"unevaluatedProperties":{"not":{}},"description":"FanoutEvidence contract."},"Mcp.Tools.FetchTelemetryCompareInput":{"type":"object","required":["a","b","view"],"properties":{"lookback_minutes":{"type":"integer","format":"int32","minimum":1,"maximum":43200,"description":"Minutes before `end_time` (or now) when `start_time` is omitted. Default 60; list_releases defaults to 10080 (7 days). Maximum 43200 (30 days)."},"start_time":{"type":"string","format":"date-time","description":"Start of the window (inclusive), RFC 3339."},"end_time":{"type":"string","format":"date-time","description":"End of the window (exclusive), RFC 3339."},"matchers":{"type":"array","items":{"$ref":"#/$defs/Common.TelemetryMatcher"},"maxItems":32,"description":"Attribute predicates that every matched span, resource or log must satisfy; up to 32. Omit for no filtering. discover_attributes lists the keys and values that are recorded."},"limit":{"type":"integer","format":"int32","minimum":1,"maximum":200,"description":"Items per page. Omit for the tool\'s default: 20 groups for aggregate_telemetry, 100 for list_failures, discover_attributes, get_mcp_stats and the span and log collections of context tools. `has_more` and `next_cursor` continue the same query."},"cursor":{"$ref":"#/$defs/Common.Cursor"},"a":{"$ref":"#/$defs/Mcp.Tools.ExecutionReference"},"b":{"$ref":"#/$defs/Mcp.Tools.ExecutionReference"},"view":{"type":"string","enum":["compare"]},"since_cursor":{"$ref":"#/$defs/Common.Cursor"},"fields":{"type":"array","items":{"type":"string"}}},"unevaluatedProperties":{"not":{}},"description":"FetchTelemetryCompareInput contract."},"Mcp.Tools.FetchTelemetryInput":{"type":"object","oneOf":[{"$ref":"#/$defs/Mcp.Tools.FetchTelemetryTracesInput"},{"$ref":"#/$defs/Mcp.Tools.FetchTelemetryTraceInput"},{"$ref":"#/$defs/Mcp.Tools.FetchTelemetryLogsInput"},{"$ref":"#/$defs/Mcp.Tools.FetchTelemetryMcpStatsInput"},{"$ref":"#/$defs/Mcp.Tools.FetchTelemetryCompareInput"}],"discriminator":{"propertyName":"view","mapping":{"traces":"#/components/schemas/Mcp.Tools.FetchTelemetryTracesInput","trace":"#/components/schemas/Mcp.Tools.FetchTelemetryTraceInput","logs":"#/components/schemas/Mcp.Tools.FetchTelemetryLogsInput","mcp_stats":"#/components/schemas/Mcp.Tools.FetchTelemetryMcpStatsInput","compare":"#/components/schemas/Mcp.Tools.FetchTelemetryCompareInput"}},"description":"Input for the app-only fetch_telemetry tool: exactly one view and the members that view takes."},"Mcp.Tools.FetchTelemetryLogsInput":{"type":"object","required":["view"],"properties":{"cursor":{"$ref":"#/$defs/Common.Cursor"},"lookback_minutes":{"type":"integer","format":"int32","minimum":1,"maximum":43200,"description":"Minutes before `end_time` (or now) when `start_time` is omitted. Default 60; list_releases defaults to 10080 (7 days). Maximum 43200 (30 days)."},"start_time":{"type":"string","format":"date-time","description":"Start of the window (inclusive), RFC 3339."},"end_time":{"type":"string","format":"date-time","description":"End of the window (exclusive), RFC 3339."},"since_cursor":{"$ref":"#/$defs/Common.Cursor"},"fields":{"type":"array","items":{"type":"string"}},"matchers":{"type":"array","items":{"$ref":"#/$defs/Common.TelemetryMatcher"},"maxItems":32},"view":{"type":"string","enum":["logs"]},"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}},"unevaluatedProperties":{"not":{}},"description":"fetch_telemetry input for log records (view `logs`)."},"Mcp.Tools.FetchTelemetryMcpStatsInput":{"type":"object","required":["view"],"properties":{"cursor":{"$ref":"#/$defs/Common.Cursor"},"server_name":{"type":"string"},"tool_name":{"type":"string"},"transport":{"type":"string"},"compare_to":{"$ref":"#/$defs/Mcp.Tools.McpStatsComparison"},"lookback_minutes":{"type":"integer","format":"int32","minimum":1,"maximum":43200,"description":"Minutes before `end_time` (or now) when `start_time` is omitted. Default 60; list_releases defaults to 10080 (7 days). Maximum 43200 (30 days)."},"start_time":{"type":"string","format":"date-time","description":"Start of the window (inclusive), RFC 3339."},"end_time":{"type":"string","format":"date-time","description":"End of the window (exclusive), RFC 3339."},"since_cursor":{"$ref":"#/$defs/Common.Cursor"},"fields":{"type":"array","items":{"type":"string"}},"matchers":{"type":"array","items":{"$ref":"#/$defs/Common.TelemetryMatcher"},"maxItems":32},"view":{"type":"string","enum":["mcp_stats"]},"hours":{"type":"integer","format":"int32","minimum":1,"maximum":168,"description":"Window length in whole hours."}},"unevaluatedProperties":{"not":{}},"description":"fetch_telemetry input for MCP traffic statistics (view `mcp_stats`)."},"Mcp.Tools.FetchTelemetryOutput":{"type":"object","required":["has_more","window","coverage","mode"],"properties":{"has_more":{"type":"boolean"},"context_logs":{"type":"array","items":{"$ref":"#/$defs/OTel.Logs.LogRecord"}},"total_matched":{"type":"integer","format":"int64"},"patterns":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.LogPattern"}},"span_roles":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.SpanEvidenceRole"}},"omitted":{"$ref":"#/$defs/Mcp.Tools.TraceOmitted"},"links":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.TraceLinkAvailability"}},"annotations":{"type":"array","items":{"$ref":"#/$defs/Annotations.Annotation"}},"settled":{"type":"boolean"},"comparison":{"$ref":"#/$defs/Mcp.Tools.CompareTracesOutput"},"since_cursor":{"$ref":"#/$defs/Common.Cursor"},"next_cursor":{"$ref":"#/$defs/Common.Cursor"},"window":{"$ref":"#/$defs/Common.ToolWindow"},"coverage":{"$ref":"#/$defs/Common.ToolCoverage"},"page_totals":{"type":"object","additionalProperties":{"type":"integer","format":"int64"},"description":"Item totals by paged collection path. Omitted totals are unknown, not zero."},"traces":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.ToolTrace"}},"trace":{"$ref":"#/$defs/Mcp.Tools.ToolTrace"},"logs":{"type":"array","items":{"$ref":"#/$defs/OTel.Logs.LogRecord"}},"stats":{"$ref":"#/$defs/Mcp.Tools.McpDashboardStats"},"mode":{"$ref":"#/$defs/Mcp.Tools.McpDataMode"},"error":{"$ref":"#/$defs/Mcp.Tools.ToolError","description":"Set when the call failed."}},"unevaluatedProperties":{"not":{}},"description":"Structured output for the app-only fetch_telemetry tool."},"Mcp.Tools.FetchTelemetryTraceInput":{"type":"object","required":["view","trace_id"],"properties":{"cursor":{"$ref":"#/$defs/Common.Cursor"},"max_spans":{"type":"integer","format":"int32","minimum":1,"maximum":1000},"selection":{"type":"string","enum":["all","errors","errors_with_ancestors","critical_path"]},"attributes":{"type":"array","items":{"type":"string"}},"include_logs":{"type":"integer","format":"int32"},"lookback_minutes":{"type":"integer","format":"int32","minimum":1,"maximum":43200,"description":"Minutes before `end_time` (or now) when `start_time` is omitted. Default 60; list_releases defaults to 10080 (7 days). Maximum 43200 (30 days)."},"start_time":{"type":"string","format":"date-time","description":"Start of the window (inclusive), RFC 3339."},"end_time":{"type":"string","format":"date-time","description":"End of the window (exclusive), RFC 3339."},"since_cursor":{"$ref":"#/$defs/Common.Cursor"},"fields":{"type":"array","items":{"type":"string"}},"matchers":{"type":"array","items":{"$ref":"#/$defs/Common.TelemetryMatcher"},"maxItems":32},"view":{"type":"string","enum":["trace"]},"trace_id":{"$ref":"#/$defs/Common.TraceId"}},"unevaluatedProperties":{"not":{}},"description":"fetch_telemetry input for one trace (view `trace`)."},"Mcp.Tools.FetchTelemetryTracesInput":{"type":"object","required":["view"],"properties":{"failure_class":{"$ref":"#/$defs/Mcp.Tools.McpFailureClass"},"server_name":{"type":"string"},"tool_name":{"type":"string"},"transport":{"type":"string"},"session_id":{"$ref":"#/$defs/Common.SessionId"},"failure_id":{"$ref":"#/$defs/Common.FailureId"},"compare_to":{"$ref":"#/$defs/Common.TraceId"},"selected_span_id":{"$ref":"#/$defs/Common.SpanId"},"cursor":{"$ref":"#/$defs/Common.Cursor"},"lookback_minutes":{"type":"integer","format":"int32","minimum":1,"maximum":43200,"description":"Minutes before `end_time` (or now) when `start_time` is omitted. Default 60; list_releases defaults to 10080 (7 days). Maximum 43200 (30 days)."},"start_time":{"type":"string","format":"date-time","description":"Start of the window (inclusive), RFC 3339."},"end_time":{"type":"string","format":"date-time","description":"End of the window (exclusive), RFC 3339."},"since_cursor":{"$ref":"#/$defs/Common.Cursor"},"fields":{"type":"array","items":{"type":"string"}},"matchers":{"type":"array","items":{"$ref":"#/$defs/Common.TelemetryMatcher"},"maxItems":32},"view":{"type":"string","enum":["traces"]},"trace_id":{"$ref":"#/$defs/Common.TraceId","description":"Return this one trace as the list, selected."},"limit":{"type":"integer","format":"int32","minimum":1,"maximum":200}},"unevaluatedProperties":{"not":{}},"description":"fetch_telemetry input for the trace list (view `traces`)."},"Mcp.Tools.FetchTelemetryView":{"type":"string","enum":["traces","trace","logs","mcp_stats","compare"],"description":"Data projection requested by the app-only fetch_telemetry tool."},"Mcp.Tools.GetAgentRunInput":{"type":"object","properties":{"lookback_minutes":{"type":"integer","format":"int32","minimum":1,"maximum":43200,"description":"Minutes before `end_time` (or now) when `start_time` is omitted. Default 60; list_releases defaults to 10080 (7 days). Maximum 43200 (30 days)."},"start_time":{"type":"string","format":"date-time","description":"Start of the window (inclusive), RFC 3339."},"end_time":{"type":"string","format":"date-time","description":"End of the window (exclusive), RFC 3339."},"matchers":{"type":"array","items":{"$ref":"#/$defs/Common.TelemetryMatcher"},"maxItems":32,"description":"Attribute predicates that every matched span, resource or log must satisfy; up to 32. Omit for no filtering. discover_attributes lists the keys and values that are recorded."},"limit":{"type":"integer","format":"int32","minimum":1,"maximum":200,"description":"Items per page. Omit for the tool\'s default: 20 groups for aggregate_telemetry, 100 for list_failures, discover_attributes, get_mcp_stats and the span and log collections of context tools. `has_more` and `next_cursor` continue the same query."},"cursor":{"$ref":"#/$defs/Common.Cursor"},"session_id":{"$ref":"#/$defs/Common.SessionId"},"trace_id":{"$ref":"#/$defs/Common.TraceId"},"max_steps":{"type":"integer","format":"int32","minimum":1,"maximum":1000}},"unevaluatedProperties":{"not":{}},"description":"GetAgentRunInput contract."},"Mcp.Tools.GetAgentRunOutput":{"type":"object","required":["window","coverage","has_more","run","steps","findings","unknowns"],"properties":{"window":{"$ref":"#/$defs/Common.ToolWindow"},"coverage":{"$ref":"#/$defs/Common.ToolCoverage"},"page_totals":{"type":"object","additionalProperties":{"type":"integer","format":"int64"},"description":"Item totals by paged collection path. Omitted totals are unknown, not zero."},"has_more":{"type":"boolean","description":"Whether more items exist beyond this page. False only when the result is complete; `next_cursor` is present exactly when this is true."},"next_cursor":{"$ref":"#/$defs/Common.Cursor","description":"Pass as `cursor` to the same tool with the same filters for the next page. Absent on the last page."},"run":{"$ref":"#/$defs/Mcp.Tools.AgentRun"},"steps":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.AgentStep"}},"findings":{"$ref":"#/$defs/Mcp.Tools.AgentFindings"},"unknowns":{"type":"array","items":{"type":"string"}},"error":{"$ref":"#/$defs/Mcp.Tools.ToolError"}},"unevaluatedProperties":{"not":{}},"description":"GetAgentRunOutput contract."},"Mcp.Tools.GetFailureContextInput":{"type":"object","properties":{"lookback_minutes":{"type":"integer","format":"int32","minimum":1,"maximum":43200,"description":"Minutes before `end_time` (or now) when `start_time` is omitted. Default 60; list_releases defaults to 10080 (7 days). Maximum 43200 (30 days)."},"start_time":{"type":"string","format":"date-time","description":"Start of the window (inclusive), RFC 3339."},"end_time":{"type":"string","format":"date-time","description":"End of the window (exclusive), RFC 3339."},"matchers":{"type":"array","items":{"$ref":"#/$defs/Common.TelemetryMatcher"},"maxItems":32,"description":"Attribute predicates that every matched span, resource or log must satisfy; up to 32. Omit for no filtering. discover_attributes lists the keys and values that are recorded."},"limit":{"type":"integer","format":"int32","minimum":1,"maximum":200,"description":"Items per page. Omit for the tool\'s default: 20 groups for aggregate_telemetry, 100 for list_failures, discover_attributes, get_mcp_stats and the span and log collections of context tools. `has_more` and `next_cursor` continue the same query."},"cursor":{"$ref":"#/$defs/Common.Cursor"},"trace_id":{"$ref":"#/$defs/Common.TraceId"},"session_id":{"$ref":"#/$defs/Common.SessionId"},"failure_id":{"$ref":"#/$defs/Common.FailureId"},"ci_run_id":{"$ref":"#/$defs/Common.SessionId"},"max_spans":{"type":"integer","format":"int32","minimum":1,"maximum":1000,"description":"Maximum error spans in `observed.error_spans`. Default 100 (or `limit` when lower), maximum 1000; `next_cursor` continues."},"max_logs":{"type":"integer","format":"int32","minimum":1,"maximum":200,"description":"Maximum correlated log records in `observed.logs`. Default 100 (or `limit` when lower), maximum 200; `next_cursor` continues."}},"unevaluatedProperties":{"not":{}},"description":"GetFailureContextInput contract."},"Mcp.Tools.GetFailureContextOutput":{"type":"object","required":["window","coverage","has_more","observed","comparison","context","settled","unknowns"],"properties":{"window":{"$ref":"#/$defs/Common.ToolWindow"},"coverage":{"$ref":"#/$defs/Common.ToolCoverage"},"page_totals":{"type":"object","additionalProperties":{"type":"integer","format":"int64"},"description":"Item totals by paged collection path. Omitted totals are unknown, not zero."},"has_more":{"type":"boolean","description":"Whether more items exist beyond this page. False only when the result is complete; `next_cursor` is present exactly when this is true."},"next_cursor":{"$ref":"#/$defs/Common.Cursor","description":"Pass as `cursor` to the same tool with the same filters for the next page. Absent on the last page."},"observed":{"$ref":"#/$defs/Mcp.Tools.FailureObserved"},"comparison":{"$ref":"#/$defs/Mcp.Tools.FailureComparison"},"context":{"$ref":"#/$defs/Mcp.Tools.FailureContext"},"settled":{"type":"boolean"},"unknowns":{"type":"array","items":{"type":"string"}},"error":{"$ref":"#/$defs/Mcp.Tools.ToolError"}},"unevaluatedProperties":{"not":{}},"description":"GetFailureContextOutput contract."},"Mcp.Tools.GetMcpStatsInput":{"type":"object","properties":{"lookback_minutes":{"type":"integer","format":"int32","minimum":1,"maximum":43200,"description":"Minutes before `end_time` (or now) when `start_time` is omitted. Default 60; list_releases defaults to 10080 (7 days). Maximum 43200 (30 days)."},"start_time":{"type":"string","format":"date-time","description":"Start of the window (inclusive), RFC 3339."},"end_time":{"type":"string","format":"date-time","description":"End of the window (exclusive), RFC 3339."},"matchers":{"type":"array","items":{"$ref":"#/$defs/Common.TelemetryMatcher"},"maxItems":32,"description":"Attribute predicates that every matched span, resource or log must satisfy; up to 32. Omit for no filtering. discover_attributes lists the keys and values that are recorded."},"limit":{"type":"integer","format":"int32","minimum":1,"maximum":200,"description":"Items per page. Omit for the tool\'s default: 20 groups for aggregate_telemetry, 100 for list_failures, discover_attributes, get_mcp_stats and the span and log collections of context tools. `has_more` and `next_cursor` continue the same query."},"cursor":{"$ref":"#/$defs/Common.Cursor"},"server_name":{"type":"string"},"server_version":{"type":"string"},"tool_name":{"type":"string"},"transport":{"type":"string"},"compare_to":{"$ref":"#/$defs/Mcp.Tools.McpStatsComparison"},"group_by":{"type":"string","enum":["server","tool","method","transport","failure_class"]}},"unevaluatedProperties":{"not":{}},"description":"GetMcpStatsInput contract."},"Mcp.Tools.GetMcpStatsOutput":{"type":"object","required":["window","coverage","has_more","totals","groups","failure_classes"],"properties":{"window":{"$ref":"#/$defs/Common.ToolWindow"},"coverage":{"$ref":"#/$defs/Common.ToolCoverage"},"page_totals":{"type":"object","additionalProperties":{"type":"integer","format":"int64"},"description":"Item totals by paged collection path. Omitted totals are unknown, not zero."},"has_more":{"type":"boolean","description":"Whether more items exist beyond this page. False only when the result is complete; `next_cursor` is present exactly when this is true."},"next_cursor":{"$ref":"#/$defs/Common.Cursor","description":"Pass as `cursor` to the same tool with the same filters for the next page. Absent on the last page."},"totals":{"$ref":"#/$defs/Mcp.Tools.McpTrafficTotals"},"groups":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.McpTrafficGroup"}},"failure_classes":{"$ref":"#/$defs/Mcp.Tools.McpFailureClasses"},"comparison":{"$ref":"#/$defs/Mcp.Tools.McpStatsComparisonResult"},"error":{"$ref":"#/$defs/Mcp.Tools.ToolError"}},"unevaluatedProperties":{"not":{}},"description":"GetMcpStatsOutput contract."},"Mcp.Tools.GetMetricSeriesInput":{"type":"object","required":["metric_name"],"properties":{"lookback_minutes":{"type":"integer","format":"int32","minimum":1,"maximum":43200,"description":"Minutes before `end_time` (or now) when `start_time` is omitted. Default 60; list_releases defaults to 10080 (7 days). Maximum 43200 (30 days)."},"start_time":{"type":"string","format":"date-time","description":"Start of the window (inclusive), RFC 3339."},"end_time":{"type":"string","format":"date-time","description":"End of the window (exclusive), RFC 3339."},"series_id":{"type":"string","minLength":1,"description":"Select one exact series and include its first page of original points. Omitted, list series metadata only. Original points are never compacted; a point exceeding the MCP response budget returns response_too_large and remains available through the HTTP points API."},"points_cursor":{"$ref":"#/$defs/Common.Cursor","description":"Continuation of the selected series\' points page; requires series_id."},"points_limit":{"type":"integer","format":"int32","minimum":1,"maximum":1000,"description":"Page size for original points from the selected series.","default":100},"metric_name":{"type":"string","minLength":1},"matchers":{"type":"array","items":{"$ref":"#/$defs/OTel.Metrics.MetricAttributeMatcher"},"maxItems":32,"description":"Attribute matchers a series must all satisfy; serialized to `attr` and `attr_prefix`."},"limit":{"type":"integer","format":"int32","minimum":1,"maximum":1000,"default":200},"cursor":{"$ref":"#/$defs/Common.Cursor","description":"`next_cursor` of a previous get_metric_series call with the same filters."}},"unevaluatedProperties":{"not":{}},"description":"Input for get_metric_series."},"Mcp.Tools.GetMetricSeriesOutput":{"type":"object","required":["window","coverage","items","has_more"],"properties":{"points":{"type":"object","required":["items","has_more"],"properties":{"items":{"type":"array","items":{"$ref":"#/$defs/OTel.Metrics.MetricPoint"},"description":"The items of this page."},"next_cursor":{"$ref":"#/$defs/Common.Cursor","description":"Cursor of the next page, passed back as the `cursor` query parameter. Absent on the last page."},"has_more":{"type":"boolean","description":"Whether more items follow this page. `next_cursor` is present exactly when this is true."}},"unevaluatedProperties":{"not":{}},"description":"Original points, present only when one exact series_id was selected. Continue with points_cursor."},"keys":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.MetricKeySummary"}},"suggested_group_by":{"type":"array","items":{"type":"string"}},"window":{"$ref":"#/$defs/Common.ToolWindow"},"coverage":{"$ref":"#/$defs/Common.ToolCoverage"},"page_totals":{"type":"object","additionalProperties":{"type":"integer","format":"int64"},"description":"Item totals by paged collection path. Omitted totals are unknown, not zero."},"items":{"type":"array","items":{"$ref":"#/$defs/OTel.Metrics.MetricSeries"}},"has_more":{"type":"boolean","description":"Whether more items exist beyond this page. False only when the result is complete; `next_cursor` is present exactly when this is true."},"next_cursor":{"$ref":"#/$defs/Common.Cursor","description":"Pass as `cursor` to the same tool with the same filters for the next page. Absent on the last page."},"error":{"$ref":"#/$defs/Mcp.Tools.ToolError","description":"Set when the call failed."}},"unevaluatedProperties":{"not":{}},"description":"Structured output for get_metric_series."},"Mcp.Tools.GetServiceMapInput":{"type":"object","properties":{"lookback_minutes":{"type":"integer","format":"int32","minimum":1,"maximum":43200,"description":"Minutes before `end_time` (or now) when `start_time` is omitted. Default 60; list_releases defaults to 10080 (7 days). Maximum 43200 (30 days)."},"start_time":{"type":"string","format":"date-time","description":"Start of the window (inclusive), RFC 3339."},"end_time":{"type":"string","format":"date-time","description":"End of the window (exclusive), RFC 3339."},"matchers":{"type":"array","items":{"$ref":"#/$defs/Common.TelemetryMatcher"},"maxItems":32,"description":"Attribute predicates that every matched span, resource or log must satisfy; up to 32. Omit for no filtering. discover_attributes lists the keys and values that are recorded."},"limit":{"type":"integer","format":"int32","minimum":1,"maximum":200,"description":"Items per page. Omit for the tool\'s default: 20 groups for aggregate_telemetry, 100 for list_failures, discover_attributes, get_mcp_stats and the span and log collections of context tools. `has_more` and `next_cursor` continue the same query."},"cursor":{"$ref":"#/$defs/Common.Cursor"},"service_name":{"type":"string"},"environment":{"type":"string"},"depth":{"type":"integer","format":"int32","minimum":1,"maximum":3},"include_external":{"type":"boolean"}},"unevaluatedProperties":{"not":{}},"description":"GetServiceMapInput contract."},"Mcp.Tools.GetServiceMapOutput":{"type":"object","required":["window","coverage","has_more","nodes","edges","unknown_callers"],"properties":{"window":{"$ref":"#/$defs/Common.ToolWindow"},"coverage":{"$ref":"#/$defs/Common.ToolCoverage"},"page_totals":{"type":"object","additionalProperties":{"type":"integer","format":"int64"},"description":"Item totals by paged collection path. Omitted totals are unknown, not zero."},"has_more":{"type":"boolean","description":"Whether more items exist beyond this page. False only when the result is complete; `next_cursor` is present exactly when this is true."},"next_cursor":{"$ref":"#/$defs/Common.Cursor","description":"Pass as `cursor` to the same tool with the same filters for the next page. Absent on the last page."},"nodes":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.ServiceMapNode"}},"edges":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.ServiceMapEdge"}},"unknown_callers":{"type":"number","format":"double"},"error":{"$ref":"#/$defs/Mcp.Tools.ToolError"}},"unevaluatedProperties":{"not":{}},"description":"GetServiceMapOutput contract."},"Mcp.Tools.GetTraceInput":{"type":"object","required":["trace_id"],"properties":{"cursor":{"$ref":"#/$defs/Common.Cursor"},"selection":{"type":"string","enum":["all","errors","errors_with_ancestors","critical_path"],"description":"Which spans to return: `all` (default), `errors` (error status only), `errors_with_ancestors` (error spans plus their path to the root; the ancestors carry `role: context`) or `critical_path` (the chain of longest child spans from the root, each with `self_time_ms`). Start with `errors_with_ancestors` when diagnosing a failure and widen to `all` only when the error path is not enough."},"attributes":{"type":"array","items":{"type":"string"},"description":"Attribute keys to keep on each returned span; omit for every recorded attribute."},"include_logs":{"type":"integer","format":"int32","minimum":0,"maximum":50,"description":"Number of correlated log records to include, 0 to 50. Default 0, no logs; search_logs with the same `trace_id` returns the rest."},"lookback_minutes":{"type":"integer","format":"int32","minimum":1,"maximum":43200,"description":"Minutes before `end_time` (or now) when `start_time` is omitted. Default 60; list_releases defaults to 10080 (7 days). Maximum 43200 (30 days)."},"start_time":{"type":"string","format":"date-time","description":"Start of the window (inclusive), RFC 3339."},"end_time":{"type":"string","format":"date-time","description":"End of the window (exclusive), RFC 3339."},"trace_id":{"$ref":"#/$defs/Common.TraceId"},"errors_only":{"type":"boolean","description":"Return only spans with error status; omitted or false includes all span statuses.","default":false},"max_spans":{"type":"integer","format":"int32","minimum":1,"maximum":1000,"description":"Maximum spans per page after `selection` is applied. Default 100, maximum 1000. When more spans match, `has_more` is true and `next_cursor` continues the same trace; `coverage` and `omitted` report what the page left out."},"include_attributes":{"type":"boolean","description":"Include span, resource, event and link attributes; false omits those attribute collections.","default":true}},"unevaluatedProperties":{"not":{}},"description":"Input for get_trace."},"Mcp.Tools.GetTraceOutput":{"type":"object","required":["has_more","window","coverage","trace","mode"],"properties":{"has_more":{"type":"boolean","description":"Whether more items exist beyond this page. False only when the result is complete; `next_cursor` is present exactly when this is true."},"next_cursor":{"$ref":"#/$defs/Common.Cursor","description":"Pass as `cursor` to the same tool with the same filters for the next page. Absent on the last page."},"span_roles":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.SpanEvidenceRole"}},"omitted":{"$ref":"#/$defs/Mcp.Tools.TraceOmitted"},"missing_parent_span_ids":{"type":"array","items":{"$ref":"#/$defs/Common.SpanId"}},"links":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.TraceLinkAvailability"}},"logs":{"type":"array","items":{"$ref":"#/$defs/OTel.Logs.LogRecord"}},"context_logs":{"type":"array","items":{"$ref":"#/$defs/OTel.Logs.LogRecord"}},"settled":{"type":"boolean"},"window":{"$ref":"#/$defs/Common.ToolWindow"},"coverage":{"$ref":"#/$defs/Common.ToolCoverage"},"page_totals":{"type":"object","additionalProperties":{"type":"integer","format":"int64"},"description":"Item totals by paged collection path. Omitted totals are unknown, not zero."},"trace":{"$ref":"#/$defs/Mcp.Tools.ToolTrace"},"mode":{"$ref":"#/$defs/Mcp.Tools.McpDataMode"},"annotations":{"type":"array","items":{"$ref":"#/$defs/Annotations.Annotation"},"description":"Annotations on the trace and its spans, newest first."},"error":{"$ref":"#/$defs/Mcp.Tools.ToolError","description":"Set when the call failed."}},"unevaluatedProperties":{"not":{}},"description":"Structured output for get_trace."},"Mcp.Tools.GroupComposition":{"type":"object","required":["changed","traffic_mix_changed","same_traffic_changed","summary"],"properties":{"changed":{"type":"boolean"},"traffic_mix_changed":{"type":"boolean"},"same_traffic_changed":{"type":"boolean"},"summary":{"type":"string"}},"unevaluatedProperties":{"not":{}},"description":"GroupComposition contract."},"Mcp.Tools.GroupDurations":{"type":"object","required":["a","b"],"properties":{"a":{"$ref":"#/$defs/Mcp.Tools.DurationPercentiles"},"b":{"$ref":"#/$defs/Mcp.Tools.DurationPercentiles"}},"unevaluatedProperties":{"not":{}},"description":"GroupDurations contract."},"Mcp.Tools.GroupStructure":{"type":"object","required":["name","share_a","share_b"],"properties":{"name":{"type":"string"},"share_a":{"type":"number","format":"double"},"share_b":{"type":"number","format":"double"}},"unevaluatedProperties":{"not":{}},"description":"GroupStructure contract."},"Mcp.Tools.ListFailuresInput":{"type":"object","properties":{"lookback_minutes":{"type":"integer","format":"int32","minimum":1,"maximum":43200,"description":"Minutes before `end_time` (or now) when `start_time` is omitted. Default 60; list_releases defaults to 10080 (7 days). Maximum 43200 (30 days)."},"start_time":{"type":"string","format":"date-time","description":"Start of the window (inclusive), RFC 3339."},"end_time":{"type":"string","format":"date-time","description":"End of the window (exclusive), RFC 3339."},"matchers":{"type":"array","items":{"$ref":"#/$defs/Common.TelemetryMatcher"},"maxItems":32,"description":"Attribute predicates that every matched span, resource or log must satisfy; up to 32. Omit for no filtering. discover_attributes lists the keys and values that are recorded."},"limit":{"type":"integer","format":"int32","minimum":1,"maximum":200,"description":"Items per page. Omit for the tool\'s default: 20 groups for aggregate_telemetry, 100 for list_failures, discover_attributes, get_mcp_stats and the span and log collections of context tools. `has_more` and `next_cursor` continue the same query."},"cursor":{"$ref":"#/$defs/Common.Cursor"},"service_name":{"type":"string"},"environment":{"type":"string"},"release":{"type":"string"},"status":{"$ref":"#/$defs/Mcp.Tools.FailureStatusFilter"},"sort_by":{"type":"string","enum":["count","last_seen","first_seen","affected_traces"]},"failure_id":{"$ref":"#/$defs/Common.FailureId"}},"unevaluatedProperties":{"not":{}},"description":"ListFailuresInput contract."},"Mcp.Tools.ListFailuresOutput":{"type":"object","required":["window","coverage","has_more","failures"],"properties":{"window":{"$ref":"#/$defs/Common.ToolWindow"},"coverage":{"$ref":"#/$defs/Common.ToolCoverage"},"page_totals":{"type":"object","additionalProperties":{"type":"integer","format":"int64"},"description":"Item totals by paged collection path. Omitted totals are unknown, not zero."},"has_more":{"type":"boolean","description":"Whether more items exist beyond this page. False only when the result is complete; `next_cursor` is present exactly when this is true."},"next_cursor":{"$ref":"#/$defs/Common.Cursor","description":"Pass as `cursor` to the same tool with the same filters for the next page. Absent on the last page."},"failures":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.FailureDetail"}},"error":{"$ref":"#/$defs/Mcp.Tools.ToolError"}},"unevaluatedProperties":{"not":{}},"description":"ListFailuresOutput contract."},"Mcp.Tools.ListMetricsInput":{"type":"object","properties":{"text":{"type":"string"},"service_name":{"type":"string"},"kind":{"$ref":"#/$defs/OTel.Metrics.MetricKind"},"unit":{"type":"string"},"matchers":{"type":"array","items":{"$ref":"#/$defs/Common.TelemetryMatcher"},"maxItems":32},"lookback_minutes":{"type":"integer","format":"int32","minimum":1,"maximum":43200,"description":"Minutes before `end_time` (or now) when `start_time` is omitted. Default 60; list_releases defaults to 10080 (7 days). Maximum 43200 (30 days)."},"start_time":{"type":"string","format":"date-time","description":"Start of the window (inclusive), RFC 3339."},"end_time":{"type":"string","format":"date-time","description":"End of the window (exclusive), RFC 3339."},"name_prefix":{"type":"string","description":"Return only names starting with this prefix."},"limit":{"type":"integer","format":"int32","minimum":1,"maximum":1000,"default":200},"cursor":{"$ref":"#/$defs/Common.Cursor","description":"`next_cursor` of a previous list_metrics call with the same prefix."}},"unevaluatedProperties":{"not":{}},"description":"Input for list_metrics."},"Mcp.Tools.ListMetricsOutput":{"type":"object","required":["window","coverage","items","has_more"],"properties":{"window":{"$ref":"#/$defs/Common.ToolWindow"},"coverage":{"$ref":"#/$defs/Common.ToolCoverage"},"page_totals":{"type":"object","additionalProperties":{"type":"integer","format":"int64"},"description":"Item totals by paged collection path. Omitted totals are unknown, not zero."},"items":{"type":"array","items":{"$ref":"#/$defs/OTel.Metrics.MetricDescriptor"}},"has_more":{"type":"boolean","description":"Whether more items exist beyond this page. False only when the result is complete; `next_cursor` is present exactly when this is true."},"next_cursor":{"$ref":"#/$defs/Common.Cursor","description":"Pass as `cursor` to the same tool with the same filters for the next page. Absent on the last page."},"error":{"$ref":"#/$defs/Mcp.Tools.ToolError","description":"Set when the call failed."}},"unevaluatedProperties":{"not":{}},"description":"Structured output for list_metrics."},"Mcp.Tools.ListReleasesInput":{"type":"object","properties":{"lookback_minutes":{"type":"integer","format":"int32","minimum":1,"maximum":43200,"description":"Minutes before `end_time` (or now) when `start_time` is omitted. Default 60; list_releases defaults to 10080 (7 days). Maximum 43200 (30 days)."},"start_time":{"type":"string","format":"date-time","description":"Start of the window (inclusive), RFC 3339."},"end_time":{"type":"string","format":"date-time","description":"End of the window (exclusive), RFC 3339."},"matchers":{"type":"array","items":{"$ref":"#/$defs/Common.TelemetryMatcher"},"maxItems":32,"description":"Attribute predicates that every matched span, resource or log must satisfy; up to 32. Omit for no filtering. discover_attributes lists the keys and values that are recorded."},"limit":{"type":"integer","format":"int32","minimum":1,"maximum":200,"description":"Items per page. Omit for the tool\'s default: 20 groups for aggregate_telemetry, 100 for list_failures, discover_attributes, get_mcp_stats and the span and log collections of context tools. `has_more` and `next_cursor` continue the same query."},"cursor":{"$ref":"#/$defs/Common.Cursor"},"service_name":{"type":"string"},"environment":{"type":"string"}},"unevaluatedProperties":{"not":{}},"description":"ListReleasesInput contract."},"Mcp.Tools.ListReleasesOutput":{"type":"object","required":["window","coverage","has_more","releases"],"properties":{"window":{"$ref":"#/$defs/Common.ToolWindow"},"coverage":{"$ref":"#/$defs/Common.ToolCoverage"},"page_totals":{"type":"object","additionalProperties":{"type":"integer","format":"int64"},"description":"Item totals by paged collection path. Omitted totals are unknown, not zero."},"has_more":{"type":"boolean","description":"Whether more items exist beyond this page. False only when the result is complete; `next_cursor` is present exactly when this is true."},"next_cursor":{"$ref":"#/$defs/Common.Cursor","description":"Pass as `cursor` to the same tool with the same filters for the next page. Absent on the last page."},"releases":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.ReleaseSummary"}},"error":{"$ref":"#/$defs/Mcp.Tools.ToolError"}},"unevaluatedProperties":{"not":{}},"description":"ListReleasesOutput contract."},"Mcp.Tools.ListSavedQueriesInput":{"type":"object","properties":{"matchers":{"type":"array","items":{"$ref":"#/$defs/Common.TelemetryMatcher"},"maxItems":32},"lookback_minutes":{"type":"integer","format":"int32","minimum":1,"maximum":43200,"description":"Minutes before `end_time` (or now) when `start_time` is omitted. Default 60; list_releases defaults to 10080 (7 days). Maximum 43200 (30 days)."},"start_time":{"type":"string","format":"date-time","description":"Start of the window (inclusive), RFC 3339."},"end_time":{"type":"string","format":"date-time","description":"End of the window (exclusive), RFC 3339."},"signal":{"$ref":"#/$defs/SavedQueries.SavedQuerySignal"},"limit":{"type":"integer","format":"int32","minimum":1,"maximum":100,"default":20},"cursor":{"$ref":"#/$defs/Common.Cursor"}},"unevaluatedProperties":{"not":{}},"description":"Input for list_saved_queries."},"Mcp.Tools.ListSavedQueriesOutput":{"type":"object","required":["window","coverage","saved_queries","has_more"],"properties":{"window":{"$ref":"#/$defs/Common.ToolWindow"},"coverage":{"$ref":"#/$defs/Common.ToolCoverage"},"page_totals":{"type":"object","additionalProperties":{"type":"integer","format":"int64"},"description":"Item totals by paged collection path. Omitted totals are unknown, not zero."},"saved_queries":{"type":"array","items":{"$ref":"#/$defs/SavedQueries.SavedQuery"}},"has_more":{"type":"boolean","description":"Whether more items exist beyond this page. False only when the result is complete; `next_cursor` is present exactly when this is true."},"next_cursor":{"$ref":"#/$defs/Common.Cursor","description":"Pass as `cursor` to the same tool with the same filters for the next page. Absent on the last page."},"error":{"$ref":"#/$defs/Mcp.Tools.ToolError","description":"Set when the call failed."}},"unevaluatedProperties":{"not":{}},"description":"Structured output for list_saved_queries."},"Mcp.Tools.ListSessionsInput":{"type":"object","properties":{"has_error":{"type":"boolean"},"min_errors":{"type":"integer","format":"int64"},"service_name":{"type":"string"},"agent_name":{"type":"string"},"model":{"type":"string"},"min_tokens":{"type":"integer","format":"int64"},"min_duration_ms":{"$ref":"#/$defs/Common.DurationMs"},"annotation_label":{"type":"string"},"sort_by":{"type":"string","enum":["last_activity","errors","duration","tokens"]},"matchers":{"type":"array","items":{"$ref":"#/$defs/Common.TelemetryMatcher"},"maxItems":32},"limit":{"type":"integer","format":"int32","minimum":1,"maximum":100,"description":"Maximum sessions to return in this page.","default":20},"active_only":{"type":"boolean","description":"Return only sessions that are still active; omitted or false includes ended sessions."},"lookback_minutes":{"type":"integer","format":"int32","minimum":1,"maximum":43200,"description":"Minutes before `end_time` (or now) when `start_time` is omitted. Default 60; list_releases defaults to 10080 (7 days). Maximum 43200 (30 days)."},"start_time":{"type":"string","format":"date-time","description":"Start of the window (inclusive), RFC 3339."},"end_time":{"type":"string","format":"date-time","description":"End of the window (exclusive), RFC 3339."},"cursor":{"$ref":"#/$defs/Common.Cursor","description":"`next_cursor` of a previous list_sessions call with the same filters."}},"unevaluatedProperties":{"not":{}},"description":"Input for list_sessions."},"Mcp.Tools.ListSessionsOutput":{"type":"object","required":["window","coverage","sessions","mode","has_more"],"properties":{"window":{"$ref":"#/$defs/Common.ToolWindow"},"coverage":{"$ref":"#/$defs/Common.ToolCoverage"},"page_totals":{"type":"object","additionalProperties":{"type":"integer","format":"int64"},"description":"Item totals by paged collection path. Omitted totals are unknown, not zero."},"sessions":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.ToolSession"}},"mode":{"$ref":"#/$defs/Mcp.Tools.McpDataMode"},"has_more":{"type":"boolean","description":"Whether more items exist beyond this page. False only when the result is complete; `next_cursor` is present exactly when this is true."},"next_cursor":{"$ref":"#/$defs/Common.Cursor","description":"Pass as `cursor` to the same tool with the same filters for the next page. Absent on the last page."},"annotations":{"type":"array","items":{"$ref":"#/$defs/Annotations.Annotation"},"description":"Annotations on the listed sessions, newest first; each names its session in `target`."},"error":{"$ref":"#/$defs/Mcp.Tools.ToolError","description":"Set when the call failed."}},"unevaluatedProperties":{"not":{}},"description":"Structured output for list_sessions."},"Mcp.Tools.ListTracesInput":{"type":"object","properties":{"failure_class":{"$ref":"#/$defs/Mcp.Tools.McpFailureClass"},"server_name":{"type":"string"},"tool_name":{"type":"string"},"transport":{"type":"string"},"session_id":{"$ref":"#/$defs/Common.SessionId"},"root_span_name":{"type":"string"},"min_duration_ms":{"$ref":"#/$defs/Common.DurationMs"},"max_duration_ms":{"$ref":"#/$defs/Common.DurationMs"},"release":{"type":"string"},"failure_id":{"$ref":"#/$defs/Common.FailureId"},"error_scope":{"type":"string","enum":["any","root"]},"annotation_label":{"type":"string"},"group_by":{"type":"string","enum":["failure_id","root_span","service"]},"sort_by":{"type":"string","enum":["start_time","duration","errors"]},"matchers":{"type":"array","items":{"$ref":"#/$defs/Common.TelemetryMatcher"},"maxItems":32},"limit":{"type":"integer","format":"int32","minimum":1,"maximum":100,"description":"Maximum traces to return in this page.","default":20},"lookback_minutes":{"type":"integer","format":"int32","minimum":1,"maximum":43200,"description":"Minutes before `end_time` (or now) when `start_time` is omitted. Default 60; list_releases defaults to 10080 (7 days). Maximum 43200 (30 days)."},"start_time":{"type":"string","format":"date-time","description":"Start of the window (inclusive), RFC 3339."},"end_time":{"type":"string","format":"date-time","description":"End of the window (exclusive), RFC 3339."},"service_name":{"type":"string","description":"Keep traces with at least one span from this service."},"errors_only":{"type":"boolean","description":"Keep only traces with at least one error span."},"cursor":{"$ref":"#/$defs/Common.Cursor","description":"`next_cursor` of a previous list_traces call with the same filters."}},"unevaluatedProperties":{"not":{}},"description":"Input for list_traces."},"Mcp.Tools.ListTracesOutput":{"type":"object","required":["window","coverage","traces","mode","has_more"],"properties":{"groups":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.TraceGroup"}},"window":{"$ref":"#/$defs/Common.ToolWindow"},"coverage":{"$ref":"#/$defs/Common.ToolCoverage"},"page_totals":{"type":"object","additionalProperties":{"type":"integer","format":"int64"},"description":"Item totals by paged collection path. Omitted totals are unknown, not zero."},"traces":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.ToolTraceSummary"}},"mode":{"$ref":"#/$defs/Mcp.Tools.McpDataMode"},"has_more":{"type":"boolean","description":"Whether more items exist beyond this page. False only when the result is complete; `next_cursor` is present exactly when this is true."},"next_cursor":{"$ref":"#/$defs/Common.Cursor","description":"Pass as `cursor` to the same tool with the same filters for the next page. Absent on the last page."},"error":{"$ref":"#/$defs/Mcp.Tools.ToolError","description":"Set when the call failed."}},"unevaluatedProperties":{"not":{}},"description":"Structured output for list_traces."},"Mcp.Tools.LogPattern":{"type":"object","required":["template","count","severity","first_seen","last_seen","example_ids"],"properties":{"template":{"type":"string"},"count":{"type":"integer","format":"int64"},"severity":{"type":"integer","format":"int32"},"first_seen":{"type":"string","format":"date-time"},"last_seen":{"type":"string","format":"date-time"},"example_ids":{"type":"array","items":{"type":"string"},"maxItems":3}},"unevaluatedProperties":{"not":{}},"description":"LogPattern contract."},"Mcp.Tools.McpComparisonOffset":{"type":"object","required":["offset_minutes"],"properties":{"offset_minutes":{"type":"integer","format":"int32"}},"unevaluatedProperties":{"not":{}},"description":"McpComparisonOffset contract."},"Mcp.Tools.McpComparisonVersion":{"type":"object","required":["server_version"],"properties":{"server_version":{"type":"string"}},"unevaluatedProperties":{"not":{}},"description":"McpComparisonVersion contract."},"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":{"groups":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.McpTrafficGroup"}},"failure_classes":{"$ref":"#/$defs/Mcp.Tools.McpFailureClasses"},"comparison":{"$ref":"#/$defs/Mcp.Tools.McpStatsComparisonResult"},"coverage":{"$ref":"#/$defs/Common.ToolCoverage"},"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":{"p50_ms":{"type":"number","format":"double"},"p95_ms":{"type":"number","format":"double"},"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":"integer","format":"int64","minimum":0,"description":"Bucket width in integer milliseconds."}},"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.McpFailureClass":{"type":"string","enum":["transport","protocol","tool_result","authentication","cancellation","timeout"],"description":"Canonical classification shared by MCP aggregates and their trace drilldowns."},"Mcp.Tools.McpFailureClasses":{"type":"object","required":["transport","protocol","tool_result","authentication","cancellation","timeout"],"properties":{"transport":{"type":"integer","format":"int64"},"protocol":{"type":"integer","format":"int64"},"tool_result":{"type":"integer","format":"int64"},"authentication":{"type":"integer","format":"int64"},"cancellation":{"type":"integer","format":"int64"},"timeout":{"type":"integer","format":"int64"}},"unevaluatedProperties":{"not":{}},"description":"McpFailureClasses contract."},"Mcp.Tools.McpNameRequestCount":{"type":"object","required":["name","requests"],"properties":{"name":{"type":"string"},"requests":{"type":"integer","format":"int32","minimum":0}},"unevaluatedProperties":{"not":{}}},"Mcp.Tools.McpScope":{"type":"string","enum":["qyl:read","qyl:write","qyl:delete"],"description":"OAuth scopes of the qyl MCP server. `qyl:read` alone keeps the read-only\\ntool surface; `qyl:write` adds the create and update tools; `qyl:delete`\\nadds the one delete tool. No scope deletes telemetry."},"Mcp.Tools.McpStatsComparison":{"anyOf":[{"type":"string"},{"$ref":"#/$defs/Mcp.Tools.McpComparisonOffset"},{"$ref":"#/$defs/Mcp.Tools.McpComparisonVersion"}],"description":"MCP comparison window or deployed server version."},"Mcp.Tools.McpStatsComparisonResult":{"type":"object","required":["window","totals","groups","failure_classes"],"properties":{"window":{"$ref":"#/$defs/Common.ToolWindow"},"totals":{"$ref":"#/$defs/Mcp.Tools.McpTrafficTotals"},"groups":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.McpTrafficGroup"}},"failure_classes":{"$ref":"#/$defs/Mcp.Tools.McpFailureClasses"}},"unevaluatedProperties":{"not":{}},"description":"McpStatsComparisonResult contract."},"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.McpTrafficGroup":{"type":"object","required":["requests","errors","error_rate","p50_ms","p95_ms","unit","name","example_trace_ids"],"properties":{"requests":{"type":"integer","format":"int64"},"errors":{"type":"integer","format":"int64"},"error_rate":{"type":"number","format":"double"},"p50_ms":{"anyOf":[{"type":"number","format":"double"},{"type":"null"}]},"p95_ms":{"anyOf":[{"type":"number","format":"double"},{"type":"null"}]},"unit":{"type":"string","enum":["requests"]},"name":{"type":"string"},"example_trace_ids":{"type":"array","items":{"$ref":"#/$defs/Common.TraceId"},"maxItems":3}},"unevaluatedProperties":{"not":{}},"description":"McpTrafficGroup contract."},"Mcp.Tools.McpTrafficTotals":{"type":"object","required":["requests","errors","error_rate","p50_ms","p95_ms","unit"],"properties":{"requests":{"type":"integer","format":"int64"},"errors":{"type":"integer","format":"int64"},"error_rate":{"type":"number","format":"double"},"p50_ms":{"anyOf":[{"type":"number","format":"double"},{"type":"null"}]},"p95_ms":{"anyOf":[{"type":"number","format":"double"},{"type":"null"}]},"unit":{"type":"string","enum":["requests"]}},"unevaluatedProperties":{"not":{}},"description":"McpTrafficTotals contract."},"Mcp.Tools.MetricComparison":{"anyOf":[{"type":"string","enum":["previous_window"]},{"$ref":"#/$defs/Mcp.Tools.MetricComparisonOffset"}],"description":"Metric comparison preceding the selected window."},"Mcp.Tools.MetricComparisonOffset":{"type":"object","required":["offset_ms"],"properties":{"offset_ms":{"type":"integer","format":"int64"}},"unevaluatedProperties":{"not":{}},"description":"MetricComparisonOffset contract."},"Mcp.Tools.MetricComparisonResult":{"type":"object","required":["window","series"],"properties":{"window":{"$ref":"#/$defs/Common.ToolWindow"},"series":{"type":"array","items":{"$ref":"#/$defs/OTel.Metrics.MetricSeriesResult"}}},"unevaluatedProperties":{"not":{}},"description":"MetricComparisonResult contract."},"Mcp.Tools.MetricKeySummary":{"type":"object","required":["key","cardinality","cardinality_exact","top_values","coverage_share"],"properties":{"key":{"type":"string"},"cardinality":{"type":"integer","format":"int64"},"cardinality_exact":{"type":"boolean"},"top_values":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.AttributeValueCount"}},"coverage_share":{"type":"number","format":"double"}},"unevaluatedProperties":{"not":{}},"description":"MetricKeySummary contract."},"Mcp.Tools.MetricRatio":{"type":"object","required":["metric_name"],"properties":{"metric_name":{"type":"string"},"aggregation":{"$ref":"#/$defs/OTel.Metrics.MetricAggregation"},"matchers":{"type":"array","items":{"$ref":"#/$defs/Common.TelemetryMatcher"},"maxItems":32}},"unevaluatedProperties":{"not":{}},"description":"MetricRatio contract."},"Mcp.Tools.OrphanSpans":{"type":"object","required":["count","share","services","unit"],"properties":{"count":{"type":"integer","format":"int64"},"share":{"type":"number","format":"double"},"services":{"type":"array","items":{"type":"string"}},"unit":{"type":"string","enum":["spans"]}},"unevaluatedProperties":{"not":{}},"description":"OrphanSpans contract."},"Mcp.Tools.QueryMetricInput":{"type":"object","required":["metric_name"],"properties":{"lookback_minutes":{"type":"integer","format":"int32"},"function":{"type":"string","enum":["none","rate","increase","delta"]},"compare_to":{"$ref":"#/$defs/Mcp.Tools.MetricComparison"},"ratio_of":{"$ref":"#/$defs/Mcp.Tools.MetricRatio"},"metric_name":{"type":"string","minLength":1},"start_time":{"type":"string","format":"date-time"},"end_time":{"type":"string","format":"date-time"},"step_ms":{"type":"integer","format":"int64","minimum":1,"maximum":86400000,"description":"Bucket width in integer milliseconds.","default":60000},"aggregation":{"$ref":"#/$defs/OTel.Metrics.MetricAggregation","default":"avg"},"series_id":{"type":"string","minLength":1,"description":"Select one exact metric series; disambiguates scopes and conflicting instrument descriptors."},"group_by":{"type":"array","items":{"type":"string"},"maxItems":16,"description":"Attribute keys to split the result by."},"matchers":{"type":"array","items":{"$ref":"#/$defs/OTel.Metrics.MetricAttributeMatcher"},"maxItems":32,"description":"Attribute matchers a series must all satisfy; serialized to `attr` and `attr_prefix`."},"series_limit":{"type":"integer","format":"int32","minimum":1,"maximum":500,"default":50}},"unevaluatedProperties":{"not":{}},"description":"Input for query_metric."},"Mcp.Tools.QueryMetricOutput":{"type":"object","required":["window","coverage","numeric_representation","approximate","name","kind","aggregation","step_ms","start_time","end_time","series","truncated"],"properties":{"method":{"type":"string"},"exemplar_trace_ids":{"type":"array","items":{"$ref":"#/$defs/Common.TraceId"}},"comparison":{"$ref":"#/$defs/Mcp.Tools.MetricComparisonResult"},"window":{"$ref":"#/$defs/Common.ToolWindow"},"coverage":{"$ref":"#/$defs/Common.ToolCoverage"},"page_totals":{"type":"object","additionalProperties":{"type":"integer","format":"int64"},"description":"Item totals by paged collection path. Omitted totals are unknown, not zero."},"numeric_representation":{"type":"string","enum":["float64"],"description":"Aggregate buckets use a potentially approximate float64 projection. Read original points for exact signed int64 and native histogram data."},"approximate":{"type":"boolean","description":"Whether the reducer estimates or interpolates values, beyond the stated numeric representation."},"name":{"type":"string","description":"Instrument name the query ran against."},"kind":{"$ref":"#/$defs/OTel.Metrics.MetricKind"},"unit":{"type":"string"},"aggregation":{"$ref":"#/$defs/OTel.Metrics.MetricAggregation"},"step_ms":{"type":"integer","format":"int64","description":"Bucket width actually used, which may be widened from the requested step."},"start_time":{"type":"string","format":"date-time"},"end_time":{"type":"string","format":"date-time"},"series":{"type":"array","items":{"$ref":"#/$defs/OTel.Metrics.MetricSeriesResult"}},"truncated":{"type":"boolean","description":"Whether streams were dropped because the result exceeded the series limit."},"error":{"$ref":"#/$defs/Mcp.Tools.ToolError","description":"Set when the call failed."}},"unevaluatedProperties":{"not":{}},"description":"Structured output for query_metric: the collector\'s range-query result."},"Mcp.Tools.RecordedException":{"type":"object","properties":{"type":{"type":"string"},"message":{"type":"string"},"stacktrace":{"type":"string"}},"unevaluatedProperties":{"not":{}},"description":"RecordedException contract."},"Mcp.Tools.ReleasePerformance":{"type":"object","required":["error_rate","p95_ms"],"properties":{"error_rate":{"anyOf":[{"type":"number","format":"double"},{"type":"null"}]},"p95_ms":{"anyOf":[{"type":"number","format":"double"},{"type":"null"}]}},"unevaluatedProperties":{"not":{}},"description":"ReleasePerformance contract."},"Mcp.Tools.ReleaseSummary":{"type":"object","required":["service","version","first_seen","last_seen","current","concurrent","traffic_share","before","after","new_failure_ids"],"properties":{"service":{"type":"string"},"environment":{"type":"string"},"version":{"type":"string"},"revision":{"type":"string"},"first_seen":{"type":"string","format":"date-time"},"last_seen":{"type":"string","format":"date-time"},"current":{"type":"boolean"},"concurrent":{"type":"boolean"},"traffic_share":{"type":"number","format":"double"},"before":{"$ref":"#/$defs/Mcp.Tools.ReleasePerformance"},"after":{"$ref":"#/$defs/Mcp.Tools.ReleasePerformance"},"new_failure_ids":{"type":"array","items":{"$ref":"#/$defs/Common.FailureId"}}},"unevaluatedProperties":{"not":{}},"description":"ReleaseSummary contract."},"Mcp.Tools.RepeatedCall":{"type":"object","required":["tool","argument_hash","count"],"properties":{"tool":{"type":"string"},"argument_hash":{"type":"string"},"count":{"type":"integer","format":"int64"}},"unevaluatedProperties":{"not":{}},"description":"RepeatedCall contract."},"Mcp.Tools.RetryEvidence":{"type":"object","required":["name","attempts","spans"],"properties":{"name":{"type":"string"},"attempts":{"type":"integer","format":"int32"},"spans":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.EvidenceSpan"}}},"unevaluatedProperties":{"not":{}},"description":"RetryEvidence contract."},"Mcp.Tools.RunSavedQueryInput":{"type":"object","required":["id"],"properties":{"lookback_minutes":{"type":"integer","format":"int32"},"id":{"$ref":"#/$defs/Common.ResourceId"},"start_time":{"type":"string","format":"date-time","description":"Overrides the saved look-back window together with `end_time`."},"end_time":{"type":"string","format":"date-time"},"limit":{"$ref":"#/$defs/Common.Pagination.PageLimit","description":"Page size for trace and log runs; 100 when omitted.","default":100},"cursor":{"$ref":"#/$defs/Common.Cursor","description":"`next_cursor` of a previous run of the same saved query."}},"unevaluatedProperties":{"not":{}},"description":"Input for run_saved_query."},"Mcp.Tools.RunSavedQueryOutput":{"type":"object","required":["window","coverage"],"properties":{"window":{"$ref":"#/$defs/Common.ToolWindow"},"coverage":{"$ref":"#/$defs/Common.ToolCoverage"},"page_totals":{"type":"object","additionalProperties":{"type":"integer","format":"int64"},"description":"Item totals by paged collection path. Omitted totals are unknown, not zero."},"result":{"$ref":"#/$defs/SavedQueries.SavedQueryRunResult"},"mode":{"$ref":"#/$defs/Mcp.Tools.McpDataMode"},"error":{"$ref":"#/$defs/Mcp.Tools.ToolError","description":"Set when the call failed."}},"unevaluatedProperties":{"not":{}},"description":"Structured output for run_saved_query."},"Mcp.Tools.SavedQueryOutput":{"type":"object","properties":{"saved_query":{"$ref":"#/$defs/SavedQueries.SavedQuery"},"error":{"$ref":"#/$defs/Mcp.Tools.ToolError","description":"Set when the call failed."}},"unevaluatedProperties":{"not":{}},"description":"Structured output for create_saved_query and update_saved_query."},"Mcp.Tools.SearchLogsInput":{"type":"object","properties":{"span_id":{"$ref":"#/$defs/Common.SpanId"},"group_by":{"type":"string","enum":["pattern"]},"context":{"type":"integer","format":"int32","minimum":0,"maximum":10},"matchers":{"type":"array","items":{"$ref":"#/$defs/Common.TelemetryMatcher"},"maxItems":32},"trace_id":{"$ref":"#/$defs/Common.TraceId","description":"Return only log records correlated with this trace."},"service_name":{"type":"string","description":"Return only log records from this service."},"severity_min":{"type":"integer","format":"int32","minimum":1,"maximum":24,"description":"Minimum OpenTelemetry severity number: 9 info, 13 warn, 17 error."},"query":{"type":"string","description":"Substring searched in the log body."},"limit":{"type":"integer","format":"int32","minimum":1,"maximum":200,"description":"Maximum log records to return in this page.","default":50},"session_id":{"$ref":"#/$defs/Common.SessionId","description":"Return only log records of this session."},"lookback_minutes":{"type":"integer","format":"int32","minimum":1,"maximum":43200,"description":"Minutes before `end_time` (or now) when `start_time` is omitted. Default 60; list_releases defaults to 10080 (7 days). Maximum 43200 (30 days)."},"start_time":{"type":"string","format":"date-time","description":"Start of the window (inclusive), RFC 3339."},"end_time":{"type":"string","format":"date-time","description":"End of the window (exclusive), RFC 3339."},"cursor":{"$ref":"#/$defs/Common.Cursor","description":"`next_cursor` of a previous search_logs call with the same filters."}},"unevaluatedProperties":{"not":{}},"description":"Input for search_logs."},"Mcp.Tools.SearchLogsOutput":{"type":"object","required":["window","coverage","logs","mode","has_more"],"properties":{"total_matched":{"type":"integer","format":"int64"},"patterns":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.LogPattern"}},"window":{"$ref":"#/$defs/Common.ToolWindow"},"coverage":{"$ref":"#/$defs/Common.ToolCoverage"},"page_totals":{"type":"object","additionalProperties":{"type":"integer","format":"int64"},"description":"Item totals by paged collection path. Omitted totals are unknown, not zero."},"logs":{"type":"array","items":{"$ref":"#/$defs/OTel.Logs.LogRecord"}},"mode":{"$ref":"#/$defs/Mcp.Tools.McpDataMode"},"has_more":{"type":"boolean","description":"Whether more items exist beyond this page. False only when the result is complete; `next_cursor` is present exactly when this is true."},"next_cursor":{"$ref":"#/$defs/Common.Cursor","description":"Pass as `cursor` to the same tool with the same filters for the next page. Absent on the last page."},"error":{"$ref":"#/$defs/Mcp.Tools.ToolError","description":"Set when the call failed."}},"unevaluatedProperties":{"not":{}},"description":"Structured output for search_logs."},"Mcp.Tools.SemconvGap":{"type":"object","required":["service","operation","attribute","requirement_level","missing_share"],"properties":{"service":{"type":"string"},"operation":{"type":"string"},"attribute":{"type":"string"},"requirement_level":{"type":"string"},"missing_share":{"type":"number","format":"double"}},"unevaluatedProperties":{"not":{}},"description":"SemconvGap contract."},"Mcp.Tools.ServiceAnalysisInput":{"type":"object","properties":{"lookback_minutes":{"type":"integer","format":"int32","minimum":1,"maximum":43200,"description":"Minutes before `end_time` (or now) when `start_time` is omitted. Default 60; list_releases defaults to 10080 (7 days). Maximum 43200 (30 days)."},"start_time":{"type":"string","format":"date-time","description":"Start of the window (inclusive), RFC 3339."},"end_time":{"type":"string","format":"date-time","description":"End of the window (exclusive), RFC 3339."},"matchers":{"type":"array","items":{"$ref":"#/$defs/Common.TelemetryMatcher"},"maxItems":32,"description":"Attribute predicates that every matched span, resource or log must satisfy; up to 32. Omit for no filtering. discover_attributes lists the keys and values that are recorded."},"limit":{"type":"integer","format":"int32","minimum":1,"maximum":200,"description":"Items per page. Omit for the tool\'s default: 20 groups for aggregate_telemetry, 100 for list_failures, discover_attributes, get_mcp_stats and the span and log collections of context tools. `has_more` and `next_cursor` continue the same query."},"cursor":{"$ref":"#/$defs/Common.Cursor"},"service_name":{"type":"string"},"environment":{"type":"string"}},"unevaluatedProperties":{"not":{}},"description":"ServiceAnalysisInput contract."},"Mcp.Tools.ServiceMapEdge":{"type":"object","required":["from","to","calls","error_rate","p95_ms","example_operations","unit"],"properties":{"from":{"type":"string"},"to":{"type":"string"},"calls":{"type":"integer","format":"int64"},"error_rate":{"type":"number","format":"double"},"p95_ms":{"anyOf":[{"type":"number","format":"double"},{"type":"null"}]},"example_operations":{"type":"array","items":{"type":"string"}},"unit":{"type":"string","enum":["spans"]}},"unevaluatedProperties":{"not":{}},"description":"ServiceMapEdge contract."},"Mcp.Tools.ServiceMapNode":{"type":"object","required":["name","kind","calls","error_rate","p95_ms","unit"],"properties":{"name":{"type":"string"},"kind":{"type":"string","enum":["service","database","external","messaging"]},"calls":{"type":"integer","format":"int64"},"error_rate":{"type":"number","format":"double"},"p95_ms":{"anyOf":[{"type":"number","format":"double"},{"type":"null"}]},"unit":{"type":"string","enum":["spans"]}},"unevaluatedProperties":{"not":{}},"description":"ServiceMapNode contract."},"Mcp.Tools.SilentService":{"type":"object","required":["service","last_seen","usual_rate","unit"],"properties":{"service":{"type":"string"},"last_seen":{"type":"string","format":"date-time"},"usual_rate":{"anyOf":[{"type":"number","format":"double"},{"type":"null"}]},"unit":{"type":"string"}},"unevaluatedProperties":{"not":{}},"description":"SilentService contract."},"Mcp.Tools.SimilarFailure":{"type":"object","required":["failure_id","count","first_seen","releases"],"properties":{"failure_id":{"$ref":"#/$defs/Common.FailureId"},"count":{"type":"integer","format":"int64"},"first_seen":{"type":"string","format":"date-time"},"releases":{"type":"array","items":{"type":"string"}}},"unevaluatedProperties":{"not":{}},"description":"SimilarFailure contract."},"Mcp.Tools.SpanEvidenceRole":{"type":"object","required":["span_id","role"],"properties":{"span_id":{"$ref":"#/$defs/Common.SpanId"},"role":{"type":"string","enum":["matched","context"]},"self_time_ms":{"$ref":"#/$defs/Common.DurationMs"},"self_time_share":{"type":"number","format":"double"}},"unevaluatedProperties":{"not":{}},"description":"SpanEvidenceRole contract."},"Mcp.Tools.TelemetryRetention":{"type":"object","required":["oldest","days"],"properties":{"oldest":{"anyOf":[{"type":"string","format":"date-time"},{"type":"null"}]},"days":{"anyOf":[{"type":"number","format":"double"},{"type":"null"}]}},"unevaluatedProperties":{"not":{}},"description":"TelemetryRetention contract."},"Mcp.Tools.ToolError":{"type":"object","required":["code","message","retryable"],"properties":{"fields":{"type":"array","items":{"$ref":"#/$defs/Common.Errors.ValidationErrorDetail"}},"problem_type":{"$ref":"#/$defs/Common.Errors.ProblemType"},"code":{"$ref":"#/$defs/Mcp.Tools.ToolErrorCode"},"message":{"type":"string","description":"Human-readable description of this failure."},"retryable":{"type":"boolean","description":"Whether the same call can succeed when repeated unchanged."}},"unevaluatedProperties":{"not":{}},"description":"A failed tool call, carried in structuredContent.error."},"Mcp.Tools.ToolErrorCode":{"type":"string","enum":["invalid_argument","not_found","no_project_access","collector_unreachable","collector_timeout","cancelled","collector_unauthorized","collector_rate_limited","collector_rejected","collector_error","contract_mismatch","response_too_large","insufficient_scope","conflict","precondition_failed","precondition_required","internal"],"description":"Stable failure code of a qyl MCP tool result. A model branches on the code, never on the message."},"Mcp.Tools.ToolFieldError":{"type":"object","required":["field","code","message","change"],"properties":{"field":{"type":"string"},"code":{"type":"string"},"message":{"type":"string"},"change":{"type":"string"}},"unevaluatedProperties":{"not":{}},"description":"ToolFieldError contract."},"Mcp.Tools.ToolPage":{"type":"object","required":["has_more"],"properties":{"has_more":{"type":"boolean","description":"Whether more items exist beyond this page. False only when the result is complete; `next_cursor` is present exactly when this is true."},"next_cursor":{"$ref":"#/$defs/Common.Cursor","description":"Pass as `cursor` to the same tool with the same filters for the next page. Absent on the last page."}},"unevaluatedProperties":{"not":{}},"description":"Pagination members of a paged tool output."},"Mcp.Tools.ToolSession":{"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"},"failure_ids":{"type":"array","items":{"$ref":"#/$defs/Common.FailureId"},"maxItems":5},"agent_name":{"type":"string"},"models":{"type":"array","items":{"type":"string"}},"tokens_by_model":{"type":"object","additionalProperties":{"$ref":"#/$defs/Mcp.Tools.AgentTokens"}},"annotations":{"type":"array","items":{"$ref":"#/$defs/Annotations.Annotation"}}},"unevaluatedProperties":{"not":{}},"description":"ToolSession contract."},"Mcp.Tools.ToolSpan":{"type":"object","required":["role"],"properties":{"role":{"type":"string","enum":["matched","context"]},"self_time_ms":{"$ref":"#/$defs/Common.DurationMs"},"self_time_share":{"type":"number","format":"double"}},"unevaluatedProperties":{"not":{}},"allOf":[{"$ref":"#/$defs/OTel.Traces.Span"}],"description":"A span returned as evidence, with selection role and optional critical-path self time."},"Mcp.Tools.ToolTimeRange":{"type":"object","properties":{"lookback_minutes":{"type":"integer","format":"int32","minimum":1,"maximum":43200,"description":"Minutes before `end_time` (or now) when `start_time` is omitted. Default 60; list_releases defaults to 10080 (7 days). Maximum 43200 (30 days)."},"start_time":{"type":"string","format":"date-time","description":"Start of the window (inclusive), RFC 3339."},"end_time":{"type":"string","format":"date-time","description":"End of the window (exclusive), RFC 3339."}},"unevaluatedProperties":{"not":{}},"description":"Time-range members of a tool input. Omit all three for the tool\'s default window ending now; the result\'s `window` reports the bounds that were applied, so a follow-up call can pass them as `start_time` and `end_time` to keep the same window."},"Mcp.Tools.ToolTrace":{"type":"object","required":["spans"],"properties":{"spans":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.ToolSpan"}}},"unevaluatedProperties":{"not":{}},"allOf":[{"$ref":"#/$defs/OTel.Traces.TraceSummary"}],"description":"Full trace evidence with the selection role on every returned span."},"Mcp.Tools.ToolTraceSummary":{"type":"object","required":["trace_id","span_count","duration_ns","start_time","end_time","services","has_error","root_error","contained_error","failure_ids","annotation_labels"],"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"},"root_error":{"type":"boolean"},"contained_error":{"type":"boolean"},"failure_ids":{"type":"array","items":{"$ref":"#/$defs/Common.FailureId"}},"annotation_labels":{"type":"array","items":{"type":"string"}}},"unevaluatedProperties":{"not":{}},"description":"ToolTraceSummary contract."},"Mcp.Tools.TraceDivergence":{"type":"object","required":["a_span","b_span","kind"],"properties":{"a_span":{"anyOf":[{"$ref":"#/$defs/Mcp.Tools.EvidenceSpan"},{"type":"null"}]},"b_span":{"anyOf":[{"$ref":"#/$defs/Mcp.Tools.EvidenceSpan"},{"type":"null"}]},"kind":{"type":"string","enum":["missing","extra","status","attribute","duration"]},"attribute":{"type":"string"}},"unevaluatedProperties":{"not":{}},"description":"TraceDivergence contract."},"Mcp.Tools.TraceGroup":{"type":"object","required":["key","count","example_trace_ids"],"properties":{"key":{"type":"string"},"count":{"type":"integer","format":"int64"},"example_trace_ids":{"type":"array","items":{"$ref":"#/$defs/Common.TraceId"},"maxItems":3}},"unevaluatedProperties":{"not":{}},"description":"TraceGroup contract."},"Mcp.Tools.TraceLinkAvailability":{"type":"object","required":["trace_id","span_id","available"],"properties":{"trace_id":{"$ref":"#/$defs/Common.TraceId"},"span_id":{"$ref":"#/$defs/Common.SpanId"},"available":{"type":"boolean"}},"unevaluatedProperties":{"not":{}},"description":"TraceLinkAvailability contract."},"Mcp.Tools.TraceOmitted":{"type":"object","required":["matched","context"],"properties":{"matched":{"type":"integer","format":"int64"},"context":{"type":"integer","format":"int64"}},"unevaluatedProperties":{"not":{}},"description":"TraceOmitted contract."},"Mcp.Tools.TriageFailure":{"type":"object","required":["failure_id","signature","change","count","baseline_count","affected_traces","services","first_seen"],"properties":{"failure_id":{"$ref":"#/$defs/Common.FailureId"},"signature":{"type":"string"},"change":{"$ref":"#/$defs/Mcp.Tools.FailureChange"},"count":{"type":"integer","format":"int64"},"baseline_count":{"type":"integer","format":"int64"},"affected_traces":{"type":"integer","format":"int64"},"services":{"type":"array","items":{"type":"string"}},"first_seen":{"type":"string","format":"date-time"},"example_trace_id":{"$ref":"#/$defs/Common.TraceId"},"coinciding_release":{"$ref":"#/$defs/Mcp.Tools.FailureRelease"}},"unevaluatedProperties":{"not":{}},"description":"TriageFailure contract."},"Mcp.Tools.TriageInput":{"type":"object","properties":{"lookback_minutes":{"type":"integer","format":"int32","minimum":1,"maximum":43200,"description":"Minutes before `end_time` (or now) when `start_time` is omitted. Default 60; list_releases defaults to 10080 (7 days). Maximum 43200 (30 days)."},"start_time":{"type":"string","format":"date-time","description":"Start of the window (inclusive), RFC 3339."},"end_time":{"type":"string","format":"date-time","description":"End of the window (exclusive), RFC 3339."},"matchers":{"type":"array","items":{"$ref":"#/$defs/Common.TelemetryMatcher"},"maxItems":32,"description":"Attribute predicates that every matched span, resource or log must satisfy; up to 32. Omit for no filtering. discover_attributes lists the keys and values that are recorded."},"cursor":{"$ref":"#/$defs/Common.Cursor"},"service_name":{"type":"string"},"environment":{"type":"string"},"limit":{"type":"integer","format":"int32","minimum":1,"maximum":50,"description":"Ranked failures to return, 1 to 50. Default 10; new failures keep reserved slots ahead of ongoing ones."},"baseline":{"$ref":"#/$defs/Mcp.Tools.AnalysisBaseline"}},"unevaluatedProperties":{"not":{}},"description":"TriageInput contract."},"Mcp.Tools.TriageOutput":{"type":"object","required":["window","coverage","has_more","failures","regressions","releases","silent_services"],"properties":{"window":{"$ref":"#/$defs/Common.ToolWindow"},"coverage":{"$ref":"#/$defs/Common.ToolCoverage"},"page_totals":{"type":"object","additionalProperties":{"type":"integer","format":"int64"},"description":"Item totals by paged collection path. Omitted totals are unknown, not zero."},"has_more":{"type":"boolean","description":"Whether more items exist beyond this page. False only when the result is complete; `next_cursor` is present exactly when this is true."},"next_cursor":{"$ref":"#/$defs/Common.Cursor","description":"Pass as `cursor` to the same tool with the same filters for the next page. Absent on the last page."},"failures":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.TriageFailure"}},"regressions":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.TriageRegression"}},"releases":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.FailureRelease"}},"silent_services":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.SilentService"}},"error":{"$ref":"#/$defs/Mcp.Tools.ToolError"}},"unevaluatedProperties":{"not":{}},"description":"TriageOutput contract."},"Mcp.Tools.TriageRegression":{"type":"object","required":["service","operation","measure","value","baseline_value","denominator","unit"],"properties":{"service":{"type":"string"},"operation":{"type":"string"},"measure":{"type":"string","enum":["error_rate","p95_ms","throughput"]},"value":{"type":"number","format":"double"},"baseline_value":{"type":"number","format":"double"},"denominator":{"type":"integer","format":"int64"},"unit":{"type":"string"}},"unevaluatedProperties":{"not":{}},"description":"TriageRegression contract."},"Mcp.Tools.UpdateAnnotationInput":{"type":"object","required":["id","etag"],"properties":{"id":{"$ref":"#/$defs/Common.ResourceId"},"etag":{"$ref":"#/$defs/Common.ETag","description":"The annotation\'s current `etag`, sent as If-Match."},"labels":{"type":"array","items":{"$ref":"#/$defs/Annotations.AnnotationLabel"},"maxItems":10},"classification":{"$ref":"#/$defs/Annotations.AnnotationClassification"},"text":{"type":"string","minLength":1,"maxLength":2000,"description":"The new note, plain text, at most 2000 characters."}},"unevaluatedProperties":{"not":{}},"description":"Input for update_annotation."},"Mcp.Tools.UpdateFailureStatusInput":{"type":"object","required":["failure_id","etag","status"],"properties":{"failure_id":{"$ref":"#/$defs/Common.FailureId"},"etag":{"$ref":"#/$defs/Common.ETag"},"status":{"$ref":"#/$defs/Mcp.Tools.FailureStatus"},"ignore_until":{"type":"string","format":"date-time"},"assignee":{"type":"string","maxLength":256}},"unevaluatedProperties":{"not":{}},"description":"UpdateFailureStatusInput contract."},"Mcp.Tools.UpdateFailureStatusOutput":{"type":"object","required":["failure"],"properties":{"failure":{"$ref":"#/$defs/Mcp.Tools.FailureSummary"},"error":{"$ref":"#/$defs/Mcp.Tools.ToolError"}},"unevaluatedProperties":{"not":{}},"description":"UpdateFailureStatusOutput contract."},"Mcp.Tools.UpdateSavedQueryInput":{"type":"object","required":["id","etag"],"properties":{"id":{"$ref":"#/$defs/Common.ResourceId"},"etag":{"$ref":"#/$defs/Common.ETag","description":"The saved query\'s current `etag`, sent as If-Match."},"name":{"type":"string","minLength":1,"maxLength":200,"description":"New name, unique within the project; a duplicate is refused with 409."},"description":{"type":"string","maxLength":2000},"filter":{"$ref":"#/$defs/SavedQueries.SavedQueryFilter"}},"unevaluatedProperties":{"not":{}},"description":"Input for update_saved_query."},"Mcp.Tools.VerificationNeeds":{"type":"object","required":["requests","minutes"],"properties":{"requests":{"type":"integer","format":"int64"},"minutes":{"type":"number","format":"double"}},"unevaluatedProperties":{"not":{}},"description":"VerificationNeeds contract."},"Mcp.Tools.VerificationPeriod":{"type":"object","required":["window","occurrences","requests","rate","unit"],"properties":{"window":{"$ref":"#/$defs/Common.ToolWindow"},"occurrences":{"type":"integer","format":"int64"},"requests":{"type":"integer","format":"int64"},"rate":{"anyOf":[{"type":"number","format":"double"},{"type":"null"}]},"unit":{"type":"string","enum":["requests"]}},"unevaluatedProperties":{"not":{}},"description":"VerificationPeriod contract."},"Mcp.Tools.VerifyFixInput":{"type":"object","properties":{"lookback_minutes":{"type":"integer","format":"int32","minimum":1,"maximum":43200,"description":"Minutes before `end_time` (or now) when `start_time` is omitted. Default 60; list_releases defaults to 10080 (7 days). Maximum 43200 (30 days)."},"start_time":{"type":"string","format":"date-time","description":"Start of the window (inclusive), RFC 3339."},"end_time":{"type":"string","format":"date-time","description":"End of the window (exclusive), RFC 3339."},"matchers":{"type":"array","items":{"$ref":"#/$defs/Common.TelemetryMatcher"},"maxItems":32,"description":"Attribute predicates that every matched span, resource or log must satisfy; up to 32. Omit for no filtering. discover_attributes lists the keys and values that are recorded."},"limit":{"type":"integer","format":"int32","minimum":1,"maximum":200,"description":"Items per page. Omit for the tool\'s default: 20 groups for aggregate_telemetry, 100 for list_failures, discover_attributes, get_mcp_stats and the span and log collections of context tools. `has_more` and `next_cursor` continue the same query."},"cursor":{"$ref":"#/$defs/Common.Cursor"},"failure_id":{"$ref":"#/$defs/Common.FailureId"},"since":{"type":"string","format":"date-time"},"release":{"type":"string"},"min_requests":{"type":"integer","format":"int32"},"min_minutes":{"type":"integer","format":"int32"},"verify_id":{"$ref":"#/$defs/Common.VerifyId"}},"unevaluatedProperties":{"not":{}},"description":"VerifyFixInput contract."},"Mcp.Tools.VerifyFixOutput":{"type":"object","required":["window","coverage","has_more","verdict","before","after","recurrences","guardrails","verify_id"],"properties":{"window":{"$ref":"#/$defs/Common.ToolWindow"},"coverage":{"$ref":"#/$defs/Common.ToolCoverage"},"page_totals":{"type":"object","additionalProperties":{"type":"integer","format":"int64"},"description":"Item totals by paged collection path. Omitted totals are unknown, not zero."},"has_more":{"type":"boolean","description":"Whether more items exist beyond this page. False only when the result is complete; `next_cursor` is present exactly when this is true."},"next_cursor":{"$ref":"#/$defs/Common.Cursor","description":"Pass as `cursor` to the same tool with the same filters for the next page. Absent on the last page."},"verdict":{"type":"string","enum":["passed","failed","pending","inconclusive"]},"before":{"$ref":"#/$defs/Mcp.Tools.VerificationPeriod"},"after":{"$ref":"#/$defs/Mcp.Tools.VerificationPeriod"},"needs":{"$ref":"#/$defs/Mcp.Tools.VerificationNeeds"},"recurrences":{"type":"array","items":{"$ref":"#/$defs/Common.TraceId"},"maxItems":3},"guardrails":{"type":"array","items":{"$ref":"#/$defs/Mcp.Tools.TriageFailure"}},"verify_id":{"$ref":"#/$defs/Common.VerifyId"},"error":{"$ref":"#/$defs/Mcp.Tools.ToolError"}},"unevaluatedProperties":{"not":{}},"description":"VerifyFixOutput contract."},"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.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.Logs.LogRecord":{"type":"object","required":["severity_number","body","resource"],"properties":{"time_unix_nano":{"$ref":"#/$defs/Common.UnixNanos","description":"Timestamp when the event occurred (nanoseconds since epoch). Absent when the source timestamp is unknown; use observed_time_unix_nano as the display fallback when present."},"observed_time_unix_nano":{"$ref":"#/$defs/Common.UnixNanos","description":"Timestamp when the log was observed/collected (nanoseconds since epoch). Absent when a historical record did not capture it."},"severity_number":{"$ref":"#/$defs/OTel.Enums.SeverityNumber","description":"Severity number (1-24)"},"severity_text":{"type":"string","description":"Severity text exactly as supplied by the producer; classification uses severity_number."},"body":{"$ref":"#/$defs/Common.AttributeValue","description":"Log body: the OTLP AnyValue, projected exactly like an attribute value"},"attributes":{"type":"array","items":{"$ref":"#/$defs/Common.Attribute"},"description":"Log attributes"},"dropped_attributes_count":{"$ref":"#/$defs/Common.Count","description":"Dropped attributes count"},"flags":{"$ref":"#/$defs/Common.OtlpFlags","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.Metrics.MetricAggregation":{"type":"string","enum":["avg","min","max","sum","count","last","p50","p90","p95","p99"],"description":"Server-side reducer applied to the points falling in one time bucket."},"OTel.Metrics.MetricAttributeMatcher":{"type":"object","required":["key","op"],"properties":{"key":{"type":"string","minLength":1,"maxLength":256},"op":{"$ref":"#/$defs/Common.MatcherOp"},"value":{"$ref":"#/$defs/Common.MatcherValue"},"values":{"type":"array","items":{"$ref":"#/$defs/Common.MatcherValue"},"minItems":1,"maxItems":256},"scope":{"$ref":"#/$defs/Common.MatcherScope"}},"unevaluatedProperties":{"not":{}},"description":"One structured attribute matcher. Tool inputs and saved queries carry\\nmatchers in this form; the HTTP routes keep their `key=value` string\\nparameters, and a client serializes each matcher to one of them."},"OTel.Metrics.MetricBucket":{"type":"object","required":["bucket_start","value","point_count"],"properties":{"bucket_start":{"type":"string","format":"date-time","description":"Inclusive start of the bucket, aligned to the query\'s step from the query\'s start."},"value":{"anyOf":[{"type":"number","format":"double"},{"type":"null"}],"description":"The aggregation applied to the points in this bucket. Null when the bucket\\nholds no value: either no point landed in it, or every point that did was\\nan OTLP `NO_RECORDED_VALUE` marker."},"point_count":{"type":"integer","format":"int64","description":"Number of stored points folded into this bucket."}},"unevaluatedProperties":{"not":{}},"description":"One aggregated time bucket of a metric range query."},"OTel.Metrics.MetricCount":{"type":"string","format":"uint64","description":"An unsigned OTLP count encoded as a decimal string to preserve all 64 bits.","pattern":"^(?:0|[1-9][0-9]{0,18}|1[0-7][0-9]{18}|18[0-3][0-9]{17}|184[0-3][0-9]{16}|1844[0-5][0-9]{15}|18446[0-6][0-9]{14}|184467[0-3][0-9]{13}|1844674[0-3][0-9]{12}|184467440[0-6][0-9]{10}|1844674407[0-2][0-9]{9}|18446744073[0-6][0-9]{8}|1844674407370[0-8][0-9]{6}|18446744073709[0-4][0-9]{5}|184467440737095[0-4][0-9]{4}|18446744073709550[0-9]{3}|18446744073709551[0-5][0-9]{2}|1844674407370955160[0-9]{1}|1844674407370955161[0-4]|18446744073709551615)$","maxLength":20},"OTel.Metrics.MetricDescriptor":{"type":"object","required":["has_conflict","instrument_id","name","kind","temporality","monotonic","series_count","last_seen"],"properties":{"has_conflict":{"type":"boolean","description":"Whether this resource/scope/name group contains incompatible recorded descriptors. The conflicts array lists the actual variants."},"instrument_id":{"type":"string","description":"Stable catalog group identifier, derived from resource, instrumentation scope and metric name."},"resource":{"$ref":"#/$defs/OTel.Resource.Resource","description":"Resource that owns this metric group, when recorded."},"instrumentation_scope":{"$ref":"#/$defs/Common.InstrumentationScope","description":"Instrumentation scope that owns this metric group, when recorded."},"supported_aggregations":{"type":"array","items":{"$ref":"#/$defs/OTel.Metrics.MetricAggregation"}},"services":{"type":"array","items":{"type":"string"}},"conflicts":{"type":"array","items":{"$ref":"#/$defs/OTel.Metrics.MetricDescriptorConflict"}},"name":{"type":"string","description":"Instrument name, e.g. `http.server.request.duration`."},"kind":{"$ref":"#/$defs/OTel.Metrics.MetricKind"},"temporality":{"$ref":"#/$defs/OTel.Metrics.MetricTemporality"},"monotonic":{"type":"boolean","description":"Whether a sum only ever increases. Meaningless for other kinds."},"unit":{"type":"string","description":"UCUM unit as reported by the producer, e.g. `s` or `{request}`."},"description":{"type":"string","description":"Producer-supplied description of the instrument."},"series_count":{"type":"integer","format":"int64","description":"Number of distinct attribute streams recorded under this name."},"last_seen":{"type":"string","format":"date-time","description":"Timestamp of the most recent point recorded under this name."}},"unevaluatedProperties":{"not":{}},"description":"One resource, instrumentation scope and metric name recorded for a project.\\nIncompatible instrument descriptors within that group are reported as conflicts.\\nThe primary descriptor is an actual recorded variant, never a combination of variants."},"OTel.Metrics.MetricDescriptorConflict":{"type":"object","required":["kind","temporality","monotonic","services"],"properties":{"kind":{"$ref":"#/$defs/OTel.Metrics.MetricKind"},"temporality":{"$ref":"#/$defs/OTel.Metrics.MetricTemporality"},"monotonic":{"type":"boolean"},"unit":{"type":"string"},"services":{"type":"array","items":{"type":"string"}}},"unevaluatedProperties":{"not":{}},"description":"MetricDescriptorConflict contract."},"OTel.Metrics.MetricExemplar":{"type":"object","required":["time_unix_nano","value","filtered_attributes"],"properties":{"time_unix_nano":{"$ref":"#/$defs/Common.UnixNanos"},"value":{"$ref":"#/$defs/OTel.Metrics.MetricNumberValue"},"filtered_attributes":{"type":"array","items":{"$ref":"#/$defs/Common.Attribute"}},"trace_id":{"$ref":"#/$defs/Common.TraceId"},"span_id":{"$ref":"#/$defs/Common.SpanId"}},"unevaluatedProperties":{"not":{}},"description":"One original metric exemplar, in producer order."},"OTel.Metrics.MetricExponentialBuckets":{"type":"object","required":["offset","bucket_counts"],"properties":{"offset":{"type":"integer","format":"int32"},"bucket_counts":{"type":"array","items":{"$ref":"#/$defs/OTel.Metrics.MetricCount"}}},"unevaluatedProperties":{"not":{}},"description":"Native exponential-histogram buckets. Each count corresponds to offset plus its array index."},"OTel.Metrics.MetricExponentialHistogramPointData":{"type":"object","required":["type","count","scale","zero_count","zero_threshold"],"properties":{"type":{"type":"string","enum":["exponential_histogram"]},"count":{"$ref":"#/$defs/OTel.Metrics.MetricCount"},"sum":{"$ref":"#/$defs/Common.AttributeDouble"},"min":{"$ref":"#/$defs/Common.AttributeDouble"},"max":{"$ref":"#/$defs/Common.AttributeDouble"},"scale":{"type":"integer","format":"int32"},"zero_count":{"$ref":"#/$defs/OTel.Metrics.MetricCount"},"zero_threshold":{"$ref":"#/$defs/Common.AttributeDouble"},"positive":{"$ref":"#/$defs/OTel.Metrics.MetricExponentialBuckets"},"negative":{"$ref":"#/$defs/OTel.Metrics.MetricExponentialBuckets"}},"unevaluatedProperties":{"not":{}},"description":"An original exponential histogram. Its native scale and buckets are never reconstructed from explicit bounds."},"OTel.Metrics.MetricHistogramPointData":{"type":"object","required":["type","count","explicit_bounds","bucket_counts"],"properties":{"type":{"type":"string","enum":["histogram"]},"count":{"$ref":"#/$defs/OTel.Metrics.MetricCount"},"sum":{"$ref":"#/$defs/Common.AttributeDouble"},"min":{"$ref":"#/$defs/Common.AttributeDouble"},"max":{"$ref":"#/$defs/Common.AttributeDouble"},"explicit_bounds":{"type":"array","items":{"$ref":"#/$defs/Common.AttributeDouble"}},"bucket_counts":{"type":"array","items":{"$ref":"#/$defs/OTel.Metrics.MetricCount"}}},"unevaluatedProperties":{"not":{}},"description":"An original explicit histogram, before any query projection or interpolation."},"OTel.Metrics.MetricKind":{"type":"string","enum":["gauge","sum","histogram","exponential_histogram","summary"],"description":"Shape of a stored metric stream."},"OTel.Metrics.MetricMatcherOp":{"type":"string","enum":["eq","neq","in","prefix","contains","exists","gt","gte","lt","lte"],"description":"How a structured attribute matcher compares an attribute value."},"OTel.Metrics.MetricNumberPointData":{"type":"object","required":["type"],"properties":{"type":{"type":"string","enum":["number"]},"value":{"$ref":"#/$defs/OTel.Metrics.MetricNumberValue"}},"unevaluatedProperties":{"not":{}},"description":"The numeric oneof of a gauge or sum point."},"OTel.Metrics.MetricNumberValue":{"type":"object","oneOf":[{"$ref":"#/$defs/Common.AttributeIntValue"},{"$ref":"#/$defs/Common.AttributeDoubleValue"}],"discriminator":{"propertyName":"type","mapping":{"int":"#/components/schemas/Common.AttributeIntValue","double":"#/components/schemas/Common.AttributeDoubleValue"}},"description":"A numeric OTLP value. Integers preserve all signed 64 bits; doubles retain named non-finite values."},"OTel.Metrics.MetricPoint":{"type":"object","required":["observation_id","has_conflict","series_id","time_unix_nano","attributes","data"],"properties":{"observation_id":{"type":"string","description":"Stable identifier of this original observation. Identical export retries retain the same identity."},"has_conflict":{"type":"boolean","description":"Whether a different measurement was recorded at the same series timestamp. Exemplar or metadata enrichment alone is not a measurement conflict."},"series_id":{"type":"string"},"time_unix_nano":{"$ref":"#/$defs/Common.UnixNanos"},"start_time_unix_nano":{"$ref":"#/$defs/Common.UnixNanos","description":"Start timestamp when known; an omitted start is never replaced with an invented interval."},"flags":{"$ref":"#/$defs/Common.OtlpFlags"},"attributes":{"type":"array","items":{"$ref":"#/$defs/Common.Attribute"}},"data":{"anyOf":[{"$ref":"#/$defs/OTel.Metrics.MetricPointData"},{"type":"null"}]},"exemplars":{"type":"array","items":{"$ref":"#/$defs/OTel.Metrics.MetricExemplar"}},"historical_exemplar_trace_ids":{"type":"array","items":{"$ref":"#/$defs/Common.TraceId"},"description":"Trace links retained by an older collector that did not record complete exemplars. These do not claim a known exemplar value, timestamp, span or attributes."},"instrument_metadata":{"type":"array","items":{"$ref":"#/$defs/Common.Attribute"},"description":"Original non-identifying instrument metadata attached to this point\'s export."},"resource_dropped_attributes_count":{"$ref":"#/$defs/Common.Count","description":"Resource attribute drop count from this observation\'s export; absent on historical records that did not retain it."},"scope_dropped_attributes_count":{"$ref":"#/$defs/Common.Count","description":"Instrumentation scope attribute drop count from this observation\'s export; absent on historical records that did not retain it."},"projection":{"$ref":"#/$defs/OTel.Metrics.MetricPointProjection"},"projection_unavailable_reason":{"type":"string","description":"Why this original point cannot be represented by the derived aggregate projection, when applicable."}},"unevaluatedProperties":{"not":{}},"description":"A stored point from one exact metric series. Null data means an older record did\\nnot retain the original representation; the collector does not invent it from\\nnormalized values. Absent flags, exemplars or metadata mean historically unknown,\\nwhile zero flags and an empty array are known producer values on new records."},"OTel.Metrics.MetricPointData":{"type":"object","oneOf":[{"$ref":"#/$defs/OTel.Metrics.MetricNumberPointData"},{"$ref":"#/$defs/OTel.Metrics.MetricHistogramPointData"},{"$ref":"#/$defs/OTel.Metrics.MetricExponentialHistogramPointData"},{"$ref":"#/$defs/OTel.Metrics.MetricSummaryPointData"}],"discriminator":{"propertyName":"type","mapping":{"number":"#/components/schemas/OTel.Metrics.MetricNumberPointData","histogram":"#/components/schemas/OTel.Metrics.MetricHistogramPointData","exponential_histogram":"#/components/schemas/OTel.Metrics.MetricExponentialHistogramPointData","summary":"#/components/schemas/OTel.Metrics.MetricSummaryPointData"}},"description":"The original typed OTLP point data, independent of the collector\'s derived aggregate columns."},"OTel.Metrics.MetricPointProjection":{"type":"object","properties":{"value":{"$ref":"#/$defs/Common.AttributeDouble"},"count":{"$ref":"#/$defs/OTel.Metrics.MetricCount"},"sum":{"$ref":"#/$defs/Common.AttributeDouble"},"min":{"$ref":"#/$defs/Common.AttributeDouble"},"max":{"$ref":"#/$defs/Common.AttributeDouble"},"explicit_bounds":{"type":"array","items":{"$ref":"#/$defs/Common.AttributeDouble"}},"bucket_counts":{"type":"array","items":{"$ref":"#/$defs/OTel.Metrics.MetricCount"}}},"unevaluatedProperties":{"not":{}},"description":"A derived, potentially approximate query projection. This is not the original OTLP point."},"OTel.Metrics.MetricQuantileValue":{"type":"object","required":["quantile","value"],"properties":{"quantile":{"type":"number","format":"double","minimum":0,"maximum":1},"value":{"$ref":"#/$defs/Common.AttributeDouble"}},"unevaluatedProperties":{"not":{}},"description":"An original summary quantile and its producer-supplied estimate."},"OTel.Metrics.MetricQueryResult":{"type":"object","required":["numeric_representation","approximate","name","kind","aggregation","step_ms","start_time","end_time","series","truncated"],"properties":{"numeric_representation":{"type":"string","enum":["float64"],"description":"Aggregate buckets use a potentially approximate float64 projection. Read original points for exact signed int64 and native histogram data."},"approximate":{"type":"boolean","description":"Whether the reducer estimates or interpolates values, beyond the stated numeric representation."},"name":{"type":"string","description":"Instrument name the query ran against."},"kind":{"$ref":"#/$defs/OTel.Metrics.MetricKind"},"unit":{"type":"string"},"aggregation":{"$ref":"#/$defs/OTel.Metrics.MetricAggregation"},"step_ms":{"type":"integer","format":"int64","description":"Bucket width actually used, which may be widened from the requested step."},"start_time":{"type":"string","format":"date-time"},"end_time":{"type":"string","format":"date-time"},"series":{"type":"array","items":{"$ref":"#/$defs/OTel.Metrics.MetricSeriesResult"}},"truncated":{"type":"boolean","description":"Whether streams were dropped because the result exceeded the series limit."}},"unevaluatedProperties":{"not":{}},"description":"The answer to a metric range query: what was asked, and the streams it produced."},"OTel.Metrics.MetricSeries":{"type":"object","required":["series_id","name","kind","attributes","first_seen","last_seen"],"properties":{"new":{"type":"boolean"},"stale":{"type":"boolean"},"series_id":{"type":"string","description":"Stable identifier for this stream, derived from its instrument descriptor, attributes, resource and instrumentation scope."},"name":{"type":"string","description":"Instrument name this series belongs to."},"kind":{"$ref":"#/$defs/OTel.Metrics.MetricKind"},"attributes":{"type":"array","items":{"$ref":"#/$defs/Common.Attribute"},"description":"The attributes that distinguish this series from others under the same name."},"service_name":{"type":"string"},"resource":{"$ref":"#/$defs/OTel.Resource.Resource","description":"Resource that emitted this stream, with its attributes and schema URL."},"instrumentation_scope":{"$ref":"#/$defs/Common.InstrumentationScope","description":"Instrumentation scope that owns this instrument; distinct scopes never merge into one series."},"unit":{"type":"string"},"first_seen":{"type":"string","format":"date-time"},"last_seen":{"type":"string","format":"date-time"}},"unevaluatedProperties":{"not":{}},"description":"One distinct attribute stream recorded under a metric name."},"OTel.Metrics.MetricSeriesResult":{"type":"object","required":["attributes","buckets"],"properties":{"attributes":{"type":"array","items":{"$ref":"#/$defs/Common.Attribute"},"description":"The grouping key that produced this stream."},"buckets":{"type":"array","items":{"$ref":"#/$defs/OTel.Metrics.MetricBucket"}}},"unevaluatedProperties":{"not":{}},"description":"One result stream of a metric range query. With no `group_by` the whole\\nresult is a single stream whose `attributes` are empty; with `group_by` there\\nis one stream per distinct combination of the requested attribute values."},"OTel.Metrics.MetricSummaryPointData":{"type":"object","required":["type","count","sum","quantile_values"],"properties":{"type":{"type":"string","enum":["summary"]},"count":{"$ref":"#/$defs/OTel.Metrics.MetricCount"},"sum":{"$ref":"#/$defs/Common.AttributeDouble"},"quantile_values":{"type":"array","items":{"$ref":"#/$defs/OTel.Metrics.MetricQuantileValue"}}},"unevaluatedProperties":{"not":{}},"description":"An original OTLP summary. Query reducers must explicitly support summaries rather than invent histogram buckets."},"OTel.Metrics.MetricTemporality":{"type":"string","enum":["unspecified","delta","cumulative"],"description":"How successive points of a sum or histogram relate to each other."},"OTel.Resource.Resource":{"type":"object","required":["service_name"],"properties":{"service_name":{"type":"string","description":"Service name used by the Collector\'s service queries."},"attributes":{"type":"array","items":{"$ref":"#/$defs/Common.Attribute"},"description":"Resource attributes, including service, deployment, host, cloud and process metadata."},"schema_url":{"type":"string","description":"Resource schema URL supplied by the producer."},"dropped_attributes_count":{"$ref":"#/$defs/Common.Count","description":"Number of resource attributes dropped by the producer."},"entity_refs":{"type":"array","items":{"$ref":"#/$defs/Common.EntityRef"},"description":"Entities participating in this resource, keyed by its attributes."}},"unevaluatedProperties":{"not":{}},"description":"The telemetry producer and its resource attributes. Attribute names and values follow the producer\'s semantic-convention schema; the API does not duplicate that vocabulary."},"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":{"$ref":"#/$defs/Common.OtlpFlags","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"}},"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":{"$ref":"#/$defs/Common.OtlpFlags","description":"Link flags"}},"unevaluatedProperties":{"not":{}},"description":"Link to another span (e.g., batch processing)"},"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"],"description":"Kind of process supervised by the local qyl runner. MCP connections belong to the Workbench API."},"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"}},"unevaluatedProperties":{"not":{}},"description":"Current client-visible state of one runner resource."},"SavedQueries.SavedLogQueryFilter":{"type":"object","required":["signal"],"properties":{"matchers":{"type":"array","items":{"$ref":"#/$defs/Common.TelemetryMatcher"},"maxItems":32},"signal":{"type":"string","enum":["logs"]},"lookback_minutes":{"type":"integer","format":"int32","minimum":1,"maximum":43200,"description":"Window ending at the time of the run, in minutes. Omitted, the run\'s own `start_time`/`end_time` or the last 60 minutes apply."},"service_name":{"type":"string","minLength":1,"maxLength":256},"severity_min":{"$ref":"#/$defs/OTel.Enums.SeverityNumber"},"session_id":{"$ref":"#/$defs/Common.SessionId"},"trace_id":{"$ref":"#/$defs/Common.TraceId"},"query":{"type":"string","minLength":1,"maxLength":1024,"description":"Substring searched in the log body."}},"unevaluatedProperties":{"not":{}},"description":"A saved filter over log records."},"SavedQueries.SavedLogQueryRun":{"type":"object","required":["signal","items","has_more"],"properties":{"signal":{"type":"string","enum":["logs"]},"items":{"type":"array","items":{"$ref":"#/$defs/OTel.Logs.LogRecord"}},"next_cursor":{"$ref":"#/$defs/Common.Cursor","description":"Pass back as `cursor` for the next page of the same run. Absent on the last page."},"has_more":{"type":"boolean","description":"Whether more items follow this page. `next_cursor` is present exactly when this is true."}},"unevaluatedProperties":{"not":{}},"description":"One page of log records produced by a saved log query."},"SavedQueries.SavedMetricQueryFilter":{"type":"object","required":["signal","metric_name"],"properties":{"series_id":{"type":"string","minLength":1,"description":"Select one exact metric series, when the query must disambiguate instruments."},"signal":{"type":"string","enum":["metrics"]},"lookback_minutes":{"type":"integer","format":"int32","minimum":1,"maximum":43200,"description":"Window ending at the time of the run, in minutes. Omitted, the run\'s own `start_time`/`end_time` or the last 60 minutes apply."},"metric_name":{"type":"string","minLength":1,"maxLength":256},"aggregation":{"$ref":"#/$defs/OTel.Metrics.MetricAggregation","default":"avg"},"step_ms":{"type":"integer","format":"int64","minimum":1,"maximum":86400000,"description":"Bucket width in integer milliseconds.","default":60000},"group_by":{"type":"array","items":{"type":"string"},"maxItems":16,"description":"Attribute keys to split the result by."},"matchers":{"type":"array","items":{"$ref":"#/$defs/OTel.Metrics.MetricAttributeMatcher"},"maxItems":32,"description":"Attribute matchers a series must all satisfy."}},"unevaluatedProperties":{"not":{}},"description":"A saved metric range query."},"SavedQueries.SavedMetricQueryRun":{"type":"object","required":["signal","result"],"properties":{"signal":{"type":"string","enum":["metrics"]},"result":{"$ref":"#/$defs/OTel.Metrics.MetricQueryResult"}},"unevaluatedProperties":{"not":{}},"description":"The range-query result produced by a saved metric query."},"SavedQueries.SavedQuery":{"type":"object","required":["name","filter"],"properties":{"name":{"type":"string","minLength":1,"maxLength":200,"description":"Unique within the project; a duplicate is refused with 409."},"description":{"type":"string","maxLength":2000},"filter":{"$ref":"#/$defs/SavedQueries.SavedQueryFilter"}},"unevaluatedProperties":{"not":{}},"allOf":[{"$ref":"#/$defs/Common.ResourceBase"}],"description":"A named filter for traces, logs or metrics, owned by one project."},"SavedQueries.SavedQueryCreateRequest":{"type":"object","required":["name","filter"],"properties":{"name":{"type":"string","minLength":1,"maxLength":200,"description":"Unique within the project; a duplicate is refused with 409."},"description":{"type":"string","maxLength":2000},"filter":{"$ref":"#/$defs/SavedQueries.SavedQueryFilter"}},"unevaluatedProperties":{"not":{}},"description":"Body of POST /api/v1/saved-queries: the `Lifecycle.Create` members of SavedQuery."},"SavedQueries.SavedQueryFilter":{"oneOf":[{"$ref":"#/$defs/SavedQueries.SavedTraceQueryFilter"},{"$ref":"#/$defs/SavedQueries.SavedLogQueryFilter"},{"$ref":"#/$defs/SavedQueries.SavedMetricQueryFilter"}],"description":"Exactly one structured filter; `signal` selects which."},"SavedQueries.SavedQueryRunRequest":{"type":"object","properties":{"start_time":{"type":"string","format":"date-time","description":"Overrides the saved look-back window together with `end_time`."},"end_time":{"type":"string","format":"date-time"},"limit":{"$ref":"#/$defs/Common.Pagination.PageLimit","description":"Page size for trace and log runs; 100 when omitted.","default":100},"cursor":{"$ref":"#/$defs/Common.Cursor","description":"`next_cursor` of a previous run of the same saved query."}},"unevaluatedProperties":{"not":{}},"description":"Optional overrides for one run of a saved query."},"SavedQueries.SavedQueryRunResult":{"oneOf":[{"$ref":"#/$defs/SavedQueries.SavedTraceQueryRun"},{"$ref":"#/$defs/SavedQueries.SavedLogQueryRun"},{"$ref":"#/$defs/SavedQueries.SavedMetricQueryRun"}],"description":"The result of running a saved query; `signal` matches the query\'s filter."},"SavedQueries.SavedQuerySignal":{"type":"string","enum":["traces","logs","metrics"],"description":"The telemetry signal a saved query reads."},"SavedQueries.SavedQueryUpdateRequest":{"type":"object","properties":{"name":{"type":"string","minLength":1,"maxLength":200,"description":"New name, unique within the project; a duplicate is refused with 409."},"description":{"type":"string","maxLength":2000},"filter":{"$ref":"#/$defs/SavedQueries.SavedQueryFilter"}},"unevaluatedProperties":{"not":{}},"description":"Body of PATCH /api/v1/saved-queries/{saved_query_id}: the `Lifecycle.Update` members of SavedQuery, each optional; omitted members keep their value."},"SavedQueries.SavedQueryWindow":{"type":"object","properties":{"lookback_minutes":{"type":"integer","format":"int32","minimum":1,"maximum":43200,"description":"Window ending at the time of the run, in minutes. Omitted, the run\'s own `start_time`/`end_time` or the last 60 minutes apply."}},"unevaluatedProperties":{"not":{}},"description":"Look-back window shared by every saved-query filter."},"SavedQueries.SavedTraceQueryFilter":{"type":"object","required":["signal"],"properties":{"matchers":{"type":"array","items":{"$ref":"#/$defs/Common.TelemetryMatcher"},"maxItems":32},"signal":{"type":"string","enum":["traces"]},"lookback_minutes":{"type":"integer","format":"int32","minimum":1,"maximum":43200,"description":"Window ending at the time of the run, in minutes. Omitted, the run\'s own `start_time`/`end_time` or the last 60 minutes apply."},"service_name":{"type":"string","minLength":1,"maxLength":256},"errors_only":{"type":"boolean","description":"Keep only traces with at least one error span."}},"unevaluatedProperties":{"not":{}},"description":"A saved filter over traces."},"SavedQueries.SavedTraceQueryRun":{"type":"object","required":["signal","items","has_more"],"properties":{"signal":{"type":"string","enum":["traces"]},"items":{"type":"array","items":{"$ref":"#/$defs/OTel.Traces.TraceSummary"}},"next_cursor":{"$ref":"#/$defs/Common.Cursor","description":"Pass back as `cursor` for the next page of the same run. Absent on the last page."},"has_more":{"type":"boolean","description":"Whether more items follow this page. `next_cursor` is present exactly when this is true."}},"unevaluatedProperties":{"not":{}},"description":"One page of trace summaries produced by a saved trace query, like list_traces; get_trace reads one full span tree."},"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"],"properties":{"type":{"type":"string","enum":["log"]},"data":{"$ref":"#/$defs/OTel.Logs.LogRecord"},"timestamp":{"type":"string","format":"date-time","description":"Event timestamp, falling back to the observed timestamp. Absent when both are historically unknown; this is not the stream emission time."}},"unevaluatedProperties":{"not":{}},"description":"One log delivered by the collector\'s live stream."},"UpdateFailureStatusRequest":{"type":"object","required":["status"],"properties":{"status":{"$ref":"#/$defs/Mcp.Tools.FailureStatus"},"ignore_until":{"type":"string","format":"date-time"},"assignee":{"type":"string","maxLength":256}},"unevaluatedProperties":{"not":{}},"description":"Mutable status and assignee of a failure; its telemetry fingerprint never changes."},"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":{"$ref":"#/$defs/Common.Cursor","description":"Cursor of the next page, passed back as the `cursor` query parameter. Absent on the last page."}},"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":{"$ref":"#/$defs/Common.Cursor","description":"Cursor of the next page, passed back as the `cursor` query parameter. Absent on the last page."}},"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":{"$ref":"#/$defs/Common.Cursor","description":"Cursor of the next page, passed back as the `cursor` query parameter. Absent on the last page."}},"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":{"$ref":"#/$defs/Common.Cursor","description":"Cursor of the next page, passed back as the `cursor` query parameter. Absent on the last page."}},"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":{"$ref":"#/$defs/Common.Cursor","description":"Cursor of the next page, passed back as the `cursor` query parameter. Absent on the last page."}},"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."},"Operations.AnnotationsApi_create.Request":{"$ref":"#/$defs/Annotations.AnnotationCreateRequest"},"Operations.AnnotationsApi_create.Response.201":{"$ref":"#/$defs/Annotations.Annotation"},"Operations.AnnotationsApi_create.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.AnnotationsApi_create.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.AnnotationsApi_create.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.AnnotationsApi_create.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.AnnotationsApi_create.Response.409":{"$ref":"#/$defs/Common.Errors.ConflictError"},"Operations.AnnotationsApi_create.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.AnnotationsApi_delete.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.AnnotationsApi_delete.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.AnnotationsApi_delete.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.AnnotationsApi_delete.Response.412":{"$ref":"#/$defs/Common.Errors.PreconditionFailedError"},"Operations.AnnotationsApi_delete.Response.428":{"$ref":"#/$defs/Common.Errors.PreconditionRequiredError"},"Operations.AnnotationsApi_delete.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.AnnotationsApi_get.Response.200":{"$ref":"#/$defs/Annotations.Annotation"},"Operations.AnnotationsApi_get.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.AnnotationsApi_get.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.AnnotationsApi_get.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.AnnotationsApi_list.Response.200":{"type":"object","required":["items","has_more"],"properties":{"items":{"type":"array","items":{"$ref":"#/$defs/Annotations.Annotation"},"description":"The items of this page."},"next_cursor":{"$ref":"#/$defs/Common.Cursor","description":"Cursor of the next page, passed back as the `cursor` query parameter. Absent on the last page."},"has_more":{"type":"boolean","description":"Whether more items follow this page. `next_cursor` is present exactly when this is true."}},"unevaluatedProperties":{"not":{}},"description":"One page of a list operation."},"Operations.AnnotationsApi_list.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.AnnotationsApi_list.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.AnnotationsApi_list.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.AnnotationsApi_update.Request":{"$ref":"#/$defs/Annotations.AnnotationUpdateRequest"},"Operations.AnnotationsApi_update.Response.200":{"$ref":"#/$defs/Annotations.Annotation"},"Operations.AnnotationsApi_update.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.AnnotationsApi_update.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.AnnotationsApi_update.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.AnnotationsApi_update.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.AnnotationsApi_update.Response.412":{"$ref":"#/$defs/Common.Errors.PreconditionFailedError"},"Operations.AnnotationsApi_update.Response.428":{"$ref":"#/$defs/Common.Errors.PreconditionRequiredError"},"Operations.AnnotationsApi_update.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.FailuresApi_update.Request":{"$ref":"#/$defs/UpdateFailureStatusRequest"},"Operations.FailuresApi_update.Response.200":{"$ref":"#/$defs/Mcp.Tools.UpdateFailureStatusOutput"},"Operations.FailuresApi_update.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.FailuresApi_update.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.FailuresApi_update.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.FailuresApi_update.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.FailuresApi_update.Response.412":{"$ref":"#/$defs/Common.Errors.PreconditionFailedError"},"Operations.FailuresApi_update.Response.428":{"$ref":"#/$defs/Common.Errors.PreconditionRequiredError"},"Operations.FailuresApi_update.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.LogsApi_list.Response.200":{"type":"object","required":["items","has_more"],"properties":{"items":{"type":"array","items":{"$ref":"#/$defs/OTel.Logs.LogRecord"},"description":"The items of this page."},"next_cursor":{"$ref":"#/$defs/Common.Cursor","description":"Cursor of the next page, passed back as the `cursor` query parameter. Absent on the last page."},"has_more":{"type":"boolean","description":"Whether more items follow this page. `next_cursor` is present exactly when this is true."}},"unevaluatedProperties":{"not":{}},"description":"One page of a list operation."},"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.MetricsApi_list.Response.200":{"type":"object","required":["items","has_more"],"properties":{"items":{"type":"array","items":{"$ref":"#/$defs/OTel.Metrics.MetricDescriptor"},"description":"The items of this page."},"next_cursor":{"$ref":"#/$defs/Common.Cursor","description":"Cursor of the next page, passed back as the `cursor` query parameter. Absent on the last page."},"has_more":{"type":"boolean","description":"Whether more items follow this page. `next_cursor` is present exactly when this is true."}},"unevaluatedProperties":{"not":{}},"description":"One page of a list operation."},"Operations.MetricsApi_list.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.MetricsApi_list.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.MetricsApi_list.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.MetricsApi_listPoints.Response.200":{"type":"object","required":["items","has_more"],"properties":{"items":{"type":"array","items":{"$ref":"#/$defs/OTel.Metrics.MetricPoint"},"description":"The items of this page."},"next_cursor":{"$ref":"#/$defs/Common.Cursor","description":"Cursor of the next page, passed back as the `cursor` query parameter. Absent on the last page."},"has_more":{"type":"boolean","description":"Whether more items follow this page. `next_cursor` is present exactly when this is true."}},"unevaluatedProperties":{"not":{}},"description":"One page of a list operation."},"Operations.MetricsApi_listPoints.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.MetricsApi_listPoints.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.MetricsApi_listPoints.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.MetricsApi_listPoints.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.MetricsApi_listSeries.Response.200":{"type":"object","required":["items","has_more"],"properties":{"items":{"type":"array","items":{"$ref":"#/$defs/OTel.Metrics.MetricSeries"},"description":"The items of this page."},"next_cursor":{"$ref":"#/$defs/Common.Cursor","description":"Cursor of the next page, passed back as the `cursor` query parameter. Absent on the last page."},"has_more":{"type":"boolean","description":"Whether more items follow this page. `next_cursor` is present exactly when this is true."}},"unevaluatedProperties":{"not":{}},"description":"One page of a list operation."},"Operations.MetricsApi_listSeries.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.MetricsApi_listSeries.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.MetricsApi_listSeries.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.MetricsApi_listSeries.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.MetricsApi_query.Response.200":{"$ref":"#/$defs/OTel.Metrics.MetricQueryResult"},"Operations.MetricsApi_query.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.MetricsApi_query.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.MetricsApi_query.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.MetricsApi_query.Response.409":{"$ref":"#/$defs/Common.Errors.ConflictError"},"Operations.MetricsApi_query.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.SavedQueriesApi_create.Request":{"$ref":"#/$defs/SavedQueries.SavedQueryCreateRequest"},"Operations.SavedQueriesApi_create.Response.201":{"$ref":"#/$defs/SavedQueries.SavedQuery"},"Operations.SavedQueriesApi_create.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.SavedQueriesApi_create.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.SavedQueriesApi_create.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.SavedQueriesApi_create.Response.409":{"$ref":"#/$defs/Common.Errors.ConflictError"},"Operations.SavedQueriesApi_create.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.SavedQueriesApi_delete.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.SavedQueriesApi_delete.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.SavedQueriesApi_delete.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.SavedQueriesApi_delete.Response.412":{"$ref":"#/$defs/Common.Errors.PreconditionFailedError"},"Operations.SavedQueriesApi_delete.Response.428":{"$ref":"#/$defs/Common.Errors.PreconditionRequiredError"},"Operations.SavedQueriesApi_delete.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.SavedQueriesApi_get.Response.200":{"$ref":"#/$defs/SavedQueries.SavedQuery"},"Operations.SavedQueriesApi_get.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.SavedQueriesApi_get.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.SavedQueriesApi_get.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.SavedQueriesApi_list.Response.200":{"type":"object","required":["items","has_more"],"properties":{"items":{"type":"array","items":{"$ref":"#/$defs/SavedQueries.SavedQuery"},"description":"The items of this page."},"next_cursor":{"$ref":"#/$defs/Common.Cursor","description":"Cursor of the next page, passed back as the `cursor` query parameter. Absent on the last page."},"has_more":{"type":"boolean","description":"Whether more items follow this page. `next_cursor` is present exactly when this is true."}},"unevaluatedProperties":{"not":{}},"description":"One page of a list operation."},"Operations.SavedQueriesApi_list.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.SavedQueriesApi_list.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.SavedQueriesApi_list.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.SavedQueriesApi_run.Request":{"$ref":"#/$defs/SavedQueries.SavedQueryRunRequest"},"Operations.SavedQueriesApi_run.Response.200":{"$ref":"#/$defs/SavedQueries.SavedQueryRunResult"},"Operations.SavedQueriesApi_run.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.SavedQueriesApi_run.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.SavedQueriesApi_run.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.SavedQueriesApi_run.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.SavedQueriesApi_update.Request":{"$ref":"#/$defs/SavedQueries.SavedQueryUpdateRequest"},"Operations.SavedQueriesApi_update.Response.200":{"$ref":"#/$defs/SavedQueries.SavedQuery"},"Operations.SavedQueriesApi_update.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.SavedQueriesApi_update.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.SavedQueriesApi_update.Response.403":{"$ref":"#/$defs/Common.Errors.ForbiddenError"},"Operations.SavedQueriesApi_update.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.SavedQueriesApi_update.Response.409":{"$ref":"#/$defs/Common.Errors.ConflictError"},"Operations.SavedQueriesApi_update.Response.412":{"$ref":"#/$defs/Common.Errors.PreconditionFailedError"},"Operations.SavedQueriesApi_update.Response.428":{"$ref":"#/$defs/Common.Errors.PreconditionRequiredError"},"Operations.SavedQueriesApi_update.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"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":"The items of this page."},"next_cursor":{"$ref":"#/$defs/Common.Cursor","description":"Cursor of the next page, passed back as the `cursor` query parameter. Absent on the last page."},"has_more":{"type":"boolean","description":"Whether more items follow this page. `next_cursor` is present exactly when this is true."}},"unevaluatedProperties":{"not":{}},"description":"One page of a list operation."},"Operations.SessionsApi_getTraces.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"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":"The items of this page."},"next_cursor":{"$ref":"#/$defs/Common.Cursor","description":"Cursor of the next page, passed back as the `cursor` query parameter. Absent on the last page."},"has_more":{"type":"boolean","description":"Whether more items follow this page. `next_cursor` is present exactly when this is true."}},"unevaluatedProperties":{"not":{}},"description":"One page of a list operation."},"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":"The items of this page."},"next_cursor":{"$ref":"#/$defs/Common.Cursor","description":"Cursor of the next page, passed back as the `cursor` query parameter. Absent on the last page."},"has_more":{"type":"boolean","description":"Whether more items follow this page. `next_cursor` is present exactly when this is true."}},"unevaluatedProperties":{"not":{}},"description":"One page of a list operation."},"Operations.TracesApi_getSpans.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"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":"The items of this page."},"next_cursor":{"$ref":"#/$defs/Common.Cursor","description":"Cursor of the next page, passed back as the `cursor` query parameter. Absent on the last page."},"has_more":{"type":"boolean","description":"Whether more items follow this page. `next_cursor` is present exactly when this is true."}},"unevaluatedProperties":{"not":{}},"description":"One page of a list operation."},"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.analysis_aggregate_telemetry.Request":{"$ref":"#/$defs/Mcp.Tools.AggregateTelemetryInput"},"Operations.analysis_aggregate_telemetry.Response.200":{"$ref":"#/$defs/Mcp.Tools.AggregateTelemetryOutput"},"Operations.analysis_aggregate_telemetry.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.analysis_aggregate_telemetry.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.analysis_aggregate_telemetry.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.analysis_aggregate_telemetry.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.analysis_check_telemetry_health.Request":{"$ref":"#/$defs/Mcp.Tools.CheckTelemetryHealthInput"},"Operations.analysis_check_telemetry_health.Response.200":{"$ref":"#/$defs/Mcp.Tools.CheckTelemetryHealthOutput"},"Operations.analysis_check_telemetry_health.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.analysis_check_telemetry_health.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.analysis_check_telemetry_health.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.analysis_check_telemetry_health.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.analysis_ci_log.Request":{"$ref":"#/$defs/Mcp.Tools.CiLogInput"},"Operations.analysis_ci_log.Response.200":{"$ref":"#/$defs/Mcp.Tools.CiLogOutput"},"Operations.analysis_ci_log.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.analysis_ci_log.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.analysis_ci_log.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.analysis_ci_log.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.analysis_compare_groups.Request":{"$ref":"#/$defs/Mcp.Tools.CompareGroupsInput"},"Operations.analysis_compare_groups.Response.200":{"$ref":"#/$defs/Mcp.Tools.CompareGroupsOutput"},"Operations.analysis_compare_groups.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.analysis_compare_groups.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.analysis_compare_groups.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.analysis_compare_groups.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.analysis_compare_traces.Request":{"$ref":"#/$defs/Mcp.Tools.CompareTracesInput"},"Operations.analysis_compare_traces.Response.200":{"$ref":"#/$defs/Mcp.Tools.CompareTracesOutput"},"Operations.analysis_compare_traces.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.analysis_compare_traces.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.analysis_compare_traces.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.analysis_compare_traces.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.analysis_discover_attributes.Request":{"$ref":"#/$defs/Mcp.Tools.DiscoverAttributesInput"},"Operations.analysis_discover_attributes.Response.200":{"$ref":"#/$defs/Mcp.Tools.DiscoverAttributesOutput"},"Operations.analysis_discover_attributes.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.analysis_discover_attributes.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.analysis_discover_attributes.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.analysis_discover_attributes.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.analysis_display_mcp_dashboard.Request":{"$ref":"#/$defs/Mcp.Tools.DisplayMcpDashboardInput"},"Operations.analysis_display_mcp_dashboard.Response.200":{"$ref":"#/$defs/Mcp.Tools.DisplayMcpDashboardOutput"},"Operations.analysis_display_mcp_dashboard.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.analysis_display_mcp_dashboard.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.analysis_display_mcp_dashboard.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.analysis_display_mcp_dashboard.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.analysis_display_traces.Request":{"$ref":"#/$defs/Mcp.Tools.DisplayTracesInput"},"Operations.analysis_display_traces.Response.200":{"$ref":"#/$defs/Mcp.Tools.DisplayTracesOutput"},"Operations.analysis_display_traces.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.analysis_display_traces.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.analysis_display_traces.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.analysis_display_traces.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.analysis_fetch_telemetry.Request":{"$ref":"#/$defs/Mcp.Tools.FetchTelemetryInput"},"Operations.analysis_fetch_telemetry.Response.200":{"$ref":"#/$defs/Mcp.Tools.FetchTelemetryOutput"},"Operations.analysis_fetch_telemetry.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.analysis_fetch_telemetry.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.analysis_fetch_telemetry.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.analysis_fetch_telemetry.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.analysis_get_agent_run.Request":{"$ref":"#/$defs/Mcp.Tools.GetAgentRunInput"},"Operations.analysis_get_agent_run.Response.200":{"$ref":"#/$defs/Mcp.Tools.GetAgentRunOutput"},"Operations.analysis_get_agent_run.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.analysis_get_agent_run.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.analysis_get_agent_run.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.analysis_get_agent_run.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.analysis_get_failure_context.Request":{"$ref":"#/$defs/Mcp.Tools.GetFailureContextInput"},"Operations.analysis_get_failure_context.Response.200":{"$ref":"#/$defs/Mcp.Tools.GetFailureContextOutput"},"Operations.analysis_get_failure_context.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.analysis_get_failure_context.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.analysis_get_failure_context.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.analysis_get_failure_context.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.analysis_get_mcp_stats.Request":{"$ref":"#/$defs/Mcp.Tools.GetMcpStatsInput"},"Operations.analysis_get_mcp_stats.Response.200":{"$ref":"#/$defs/Mcp.Tools.GetMcpStatsOutput"},"Operations.analysis_get_mcp_stats.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.analysis_get_mcp_stats.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.analysis_get_mcp_stats.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.analysis_get_mcp_stats.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.analysis_get_metric_series.Request":{"$ref":"#/$defs/Mcp.Tools.GetMetricSeriesInput"},"Operations.analysis_get_metric_series.Response.200":{"$ref":"#/$defs/Mcp.Tools.GetMetricSeriesOutput"},"Operations.analysis_get_metric_series.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.analysis_get_metric_series.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.analysis_get_metric_series.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.analysis_get_metric_series.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.analysis_get_service_map.Request":{"$ref":"#/$defs/Mcp.Tools.GetServiceMapInput"},"Operations.analysis_get_service_map.Response.200":{"$ref":"#/$defs/Mcp.Tools.GetServiceMapOutput"},"Operations.analysis_get_service_map.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.analysis_get_service_map.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.analysis_get_service_map.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.analysis_get_service_map.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.analysis_get_trace.Request":{"$ref":"#/$defs/Mcp.Tools.GetTraceInput"},"Operations.analysis_get_trace.Response.200":{"$ref":"#/$defs/Mcp.Tools.GetTraceOutput"},"Operations.analysis_get_trace.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.analysis_get_trace.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.analysis_get_trace.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.analysis_get_trace.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.analysis_list_failures.Request":{"$ref":"#/$defs/Mcp.Tools.ListFailuresInput"},"Operations.analysis_list_failures.Response.200":{"$ref":"#/$defs/Mcp.Tools.ListFailuresOutput"},"Operations.analysis_list_failures.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.analysis_list_failures.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.analysis_list_failures.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.analysis_list_failures.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.analysis_list_metrics.Request":{"$ref":"#/$defs/Mcp.Tools.ListMetricsInput"},"Operations.analysis_list_metrics.Response.200":{"$ref":"#/$defs/Mcp.Tools.ListMetricsOutput"},"Operations.analysis_list_metrics.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.analysis_list_metrics.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.analysis_list_metrics.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.analysis_list_metrics.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.analysis_list_releases.Request":{"$ref":"#/$defs/Mcp.Tools.ListReleasesInput"},"Operations.analysis_list_releases.Response.200":{"$ref":"#/$defs/Mcp.Tools.ListReleasesOutput"},"Operations.analysis_list_releases.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.analysis_list_releases.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.analysis_list_releases.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.analysis_list_releases.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.analysis_list_saved_queries.Request":{"$ref":"#/$defs/Mcp.Tools.ListSavedQueriesInput"},"Operations.analysis_list_saved_queries.Response.200":{"$ref":"#/$defs/Mcp.Tools.ListSavedQueriesOutput"},"Operations.analysis_list_saved_queries.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.analysis_list_saved_queries.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.analysis_list_saved_queries.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.analysis_list_saved_queries.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.analysis_list_sessions.Request":{"$ref":"#/$defs/Mcp.Tools.ListSessionsInput"},"Operations.analysis_list_sessions.Response.200":{"$ref":"#/$defs/Mcp.Tools.ListSessionsOutput"},"Operations.analysis_list_sessions.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.analysis_list_sessions.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.analysis_list_sessions.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.analysis_list_sessions.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.analysis_list_traces.Request":{"$ref":"#/$defs/Mcp.Tools.ListTracesInput"},"Operations.analysis_list_traces.Response.200":{"$ref":"#/$defs/Mcp.Tools.ListTracesOutput"},"Operations.analysis_list_traces.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.analysis_list_traces.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.analysis_list_traces.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.analysis_list_traces.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.analysis_query_metric.Request":{"$ref":"#/$defs/Mcp.Tools.QueryMetricInput"},"Operations.analysis_query_metric.Response.200":{"$ref":"#/$defs/Mcp.Tools.QueryMetricOutput"},"Operations.analysis_query_metric.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.analysis_query_metric.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.analysis_query_metric.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.analysis_query_metric.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.analysis_run_saved_query.Request":{"$ref":"#/$defs/Mcp.Tools.RunSavedQueryInput"},"Operations.analysis_run_saved_query.Response.200":{"$ref":"#/$defs/Mcp.Tools.RunSavedQueryOutput"},"Operations.analysis_run_saved_query.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.analysis_run_saved_query.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.analysis_run_saved_query.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.analysis_run_saved_query.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.analysis_search_logs.Request":{"$ref":"#/$defs/Mcp.Tools.SearchLogsInput"},"Operations.analysis_search_logs.Response.200":{"$ref":"#/$defs/Mcp.Tools.SearchLogsOutput"},"Operations.analysis_search_logs.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.analysis_search_logs.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.analysis_search_logs.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.analysis_search_logs.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.analysis_triage.Request":{"$ref":"#/$defs/Mcp.Tools.TriageInput"},"Operations.analysis_triage.Response.200":{"$ref":"#/$defs/Mcp.Tools.TriageOutput"},"Operations.analysis_triage.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.analysis_triage.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.analysis_triage.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.analysis_triage.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"Operations.analysis_verify_fix.Request":{"$ref":"#/$defs/Mcp.Tools.VerifyFixInput"},"Operations.analysis_verify_fix.Response.200":{"$ref":"#/$defs/Mcp.Tools.VerifyFixOutput"},"Operations.analysis_verify_fix.Response.400":{"$ref":"#/$defs/Common.Errors.ValidationError"},"Operations.analysis_verify_fix.Response.401":{"$ref":"#/$defs/Common.Errors.UnauthorizedError"},"Operations.analysis_verify_fix.Response.404":{"$ref":"#/$defs/Common.Errors.NotFoundError"},"Operations.analysis_verify_fix.Response.500":{"$ref":"#/$defs/Common.Errors.InternalServerError"},"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"}}')};function By(e){if(typeof e!=`object`||!e||Array.isArray(e))throw Error(`Published Qyl JSON Schema root must be an object`);let t=e,n=Uy(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=Vy(t,a),r={};if(n.length>0){let e;for(let t of n){let n=Wy(r.properties),i=Wy(t.properties),a=Gy(r.required),o=Gy(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={...Wy(r.properties),...c(t.properties)};let i=[...new Set([...Gy(r.required),...Gy(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),r},s=e=>Array.isArray(e)?e.map(s):typeof e==`object`&&e?o(e):e,c=e=>{let t=Wy(e);return Object.fromEntries(Object.entries(t).map(([e,t])=>[e,s(t)]))},l=e=>!Ky(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 Vy(e,t){if(e.type!==`object`||!Array.isArray(e.allOf))return[];let n=e.allOf.map(e=>Hy(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 Hy(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 Uy(e,t){if(typeof e!=`object`||!e||Array.isArray(e))throw Error(`Published Qyl JSON Schema ${t} must be an object`);return e}function Wy(e){return typeof e==`object`&&e&&!Array.isArray(e)?e:{}}function Gy(e){return Array.isArray(e)&&e.every(e=>typeof e==`string`)?e:[]}function Ky(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 qy=By(zy),Jy=Uy(qy.$defs,`$defs`),Yy=new Map;function Q(e){return Xy(e)}function Xy(e){let t=Yy.get(e);if(t)return t;if(!Object.hasOwn(Jy,e))throw Error(`Published Qyl JSON Schema has no '${e}' definition`);let n=sp({$schema:qy.$schema,$defs:Jy,$ref:`#/$defs/${e}`});return Yy.set(e,n),n}Object.freeze(Object.keys(Jy).sort()),typeof zy.$id==`string`&&zy.$id,Q(`OTel.Traces.Span`),Q(`OTel.Traces.TraceSummary`),Q(`OTel.Traces.Trace`),Q(`OTel.Logs.LogRecord`),Q(`Domains.Observe.Session.SessionEntity`),Q(`Operations.TracesApi_list.Response.200`),Q(`Operations.TracesApi_getSpans.Response.200`),Q(`Operations.SessionsApi_getTraces.Response.200`),Q(`Operations.LogsApi_list.Response.200`),Q(`Operations.SessionsApi_list.Response.200`),Q(`OTel.Metrics.MetricDescriptor`),Q(`OTel.Metrics.MetricSeries`),Q(`Operations.MetricsApi_query.Response.200`),Q(`Operations.MetricsApi_list.Response.200`),Q(`Operations.MetricsApi_listSeries.Response.200`),Q(`Common.Errors.ProblemDetails`),Q(`Mcp.Tools.McpDataMode`),Q(`Mcp.Tools.McpDashboardStats`);var Zy=Q(`Mcp.Tools.DisplayTracesInput`),Qy=Q(`Mcp.Tools.DisplayTracesOutput`);Q(`Mcp.Tools.DisplayMcpDashboardInput`),Q(`Mcp.Tools.DisplayMcpDashboardOutput`),Q(`Mcp.Tools.ToolError`),Q(`Mcp.Tools.ListMetricsInput`),Q(`Mcp.Tools.ListMetricsOutput`),Q(`Mcp.Tools.GetMetricSeriesInput`),Q(`Mcp.Tools.GetMetricSeriesOutput`),Q(`Mcp.Tools.QueryMetricInput`),Q(`Mcp.Tools.QueryMetricOutput`),Q(`Mcp.Tools.ListTracesInput`),Q(`Mcp.Tools.ListTracesOutput`),Q(`Mcp.Tools.GetTraceInput`),Q(`Mcp.Tools.GetTraceOutput`),Q(`Mcp.Tools.ListSessionsInput`),Q(`Mcp.Tools.ListSessionsOutput`),Q(`Mcp.Tools.SearchLogsInput`),Q(`Mcp.Tools.SearchLogsOutput`),Q(`Mcp.Tools.FetchTelemetryInput`);var $y=Q(`Mcp.Tools.FetchTelemetryOutput`);Q(`Mcp.Tools.CiRunSummary`),Q(`Mcp.Tools.CiPhase`),Q(`Mcp.Tools.CiLogOutput`),Q(`Runner.RunnerResourceState`),Q(`Runner.RunnerLogLine`),Q(`Workbench.WorkbenchSessionId`),Q(`Workbench.WorkbenchWorkspaceId`),Q(`Workbench.WorkbenchServerId`),Q(`Workbench.WorkbenchExecutionId`),Q(`Workbench.WorkbenchEvaluationRunId`),Q(`Workbench.WorkbenchTestCaseId`),Q(`Workbench.WorkbenchSuiteId`),Q(`Workbench.WorkbenchEvaluationExportId`),Q(`Workbench.WorkbenchPrincipalIdentity`),Q(`Workbench.WorkbenchSession`),Q(`Workbench.WorkbenchSessionBootstrapResponse`),Q(`Workbench.WorkbenchWorkspace`),Q(`Workbench.WorkbenchWorkspaceCreateRequest`),Q(`Workbench.WorkbenchWorkspaceUpdateRequest`),Q(`Workbench.WorkbenchWorkspaceListResponse`),Q(`Workbench.WorkbenchToolInputMode`),Q(`Workbench.WorkbenchWorkspacePreferences`),Q(`Workbench.WorkbenchWorkspacePreferencesUpdateRequest`),Q(`Workbench.WorkbenchTransportKind`),Q(`Workbench.WorkbenchHeaderSecretScheme`),Q(`Workbench.WorkbenchSecretReference`),Q(`Workbench.WorkbenchEnvironmentSecretReference`),Q(`Workbench.WorkbenchHeaderSecretReference`),Q(`Workbench.WorkbenchStdioServerConfiguration`),Q(`Workbench.WorkbenchStreamableHttpServerConfiguration`),Q(`Workbench.WorkbenchBuiltinServerConfiguration`),Q(`Workbench.WorkbenchServerConfiguration`),Q(`Workbench.WorkbenchErrorCategory`),Q(`Workbench.WorkbenchError`),Q(`Workbench.WorkbenchInitializationSnapshot`),Q(`Workbench.WorkbenchConnectionStatus`),Q(`Workbench.WorkbenchConnectionSnapshot`),Q(`Workbench.WorkbenchServer`),Q(`Workbench.WorkbenchServerCreateRequest`),Q(`Workbench.WorkbenchServerUpdateRequest`),Q(`Workbench.WorkbenchServerListResponse`),Q(`Workbench.WorkbenchServerActionAccepted`),Q(`Workbench.WorkbenchDiscoveryCollection`),Q(`Workbench.WorkbenchDiscoverySnapshot`),Q(`Workbench.WorkbenchProtocolDirection`),Q(`Workbench.WorkbenchProtocolEventKind`),Q(`Workbench.WorkbenchProtocolEvent`),Q(`Workbench.WorkbenchProtocolEventPage`),Q(`Workbench.WorkbenchProtocolEvents`),Q(`Workbench.WorkbenchExecutionEffect`),Q(`Workbench.WorkbenchExecutionStatus`),Q(`Workbench.WorkbenchExecutionConfirmationRequest`),Q(`Workbench.WorkbenchExecutionConfirmationEvidence`),Q(`Workbench.WorkbenchExecutionRequest`),Q(`Workbench.WorkbenchExecutionTokenUsage`),Q(`Workbench.WorkbenchExecutionCost`),Q(`Workbench.WorkbenchTelemetryCorrelation`),Q(`Workbench.WorkbenchExecutionUpdateEvents`),Q(`Workbench.WorkbenchExecutionRecord`),Q(`Workbench.WorkbenchExecutionAccepted`),Q(`Workbench.WorkbenchExecutionCancelRequest`),Q(`Workbench.WorkbenchExecutionPage`),Q(`Workbench.WorkbenchTelemetryAvailability`),Q(`Workbench.WorkbenchTelemetrySignalAvailability`),Q(`Workbench.WorkbenchTelemetrySignalSummary`),Q(`Workbench.WorkbenchExecutionTelemetryResponse`),Q(`Workbench.WorkbenchAssertionStatus`),Q(`Workbench.WorkbenchStatusAssertion`),Q(`Workbench.WorkbenchExactAssertion`),Q(`Workbench.WorkbenchPartialAssertion`),Q(`Workbench.WorkbenchSchemaAssertion`),Q(`Workbench.WorkbenchPatternAssertion`),Q(`Workbench.WorkbenchLatencyAssertion`),Q(`Workbench.WorkbenchTestAssertion`),Q(`Workbench.WorkbenchTestCase`),Q(`Workbench.WorkbenchTestCaseCreateRequest`),Q(`Workbench.WorkbenchTestCaseUpdateRequest`),Q(`Workbench.WorkbenchTestCasePage`),Q(`Workbench.WorkbenchTestSuite`),Q(`Workbench.WorkbenchTestSuiteCreateRequest`),Q(`Workbench.WorkbenchTestSuiteUpdateRequest`),Q(`Workbench.WorkbenchTestSuitePage`),Q(`Workbench.WorkbenchEvaluationResultStatus`),Q(`Workbench.WorkbenchEvaluationRunStatus`),Q(`Workbench.WorkbenchRegressionStatus`),Q(`Workbench.WorkbenchEvaluationRunRequest`),Q(`Workbench.WorkbenchTestCaseRunRequest`),Q(`Workbench.WorkbenchSuiteRunRequest`),Q(`Workbench.WorkbenchAssertionResult`),Q(`Workbench.WorkbenchEvaluationTestCaseSnapshot`),Q(`Workbench.WorkbenchEvaluationSuiteSnapshot`),Q(`Workbench.WorkbenchEvaluationTestResult`),Q(`Workbench.WorkbenchEvaluationSummary`),Q(`Workbench.WorkbenchEvaluationRun`),Q(`Workbench.WorkbenchEvaluationRunAccepted`),Q(`Workbench.WorkbenchEvaluationRunPage`),Q(`Workbench.WorkbenchEvaluationComparisonRequest`),Q(`Workbench.WorkbenchEvaluationTestComparison`),Q(`Workbench.WorkbenchEvaluationRunComparison`),Q(`Workbench.WorkbenchEvaluationExportFormat`),Q(`Workbench.WorkbenchEvaluationExportStatus`),Q(`Workbench.WorkbenchEvaluationExportRequest`),Q(`Workbench.WorkbenchEvaluationExport`),Q(`Workbench.WorkbenchEvaluationJsonExportPayload`),Q(`Workbench.WorkbenchEvaluationReportExportPayload`),Q(`Workbench.WorkbenchEvaluationExportPayload`),Q(`Workbench.WorkbenchEvaluationExportArtifact`),Q(`Workbench.WorkbenchEvaluationExportAccepted`),Q(`Common.Errors.UnauthorizedError`),Q(`Common.Errors.ForbiddenError`),Q(`Common.Errors.NotFoundError`),Q(`Common.Errors.ValidationError`),Q(`Common.Errors.ConflictError`),Q(`Common.Errors.BadGatewayError`),Q(`Common.Errors.ServiceUnavailableError`),Q(`Common.Errors.InternalServerError`);function eb(e,t){if(e===null)return t.emptyValue();if(typeof e==`string`)return t.stringValue(e);if(typeof e==`boolean`)return t.boolValue(e);if(Array.isArray(e))return t.arrayValue(e);switch(e.type){case`int`:return t.int(e);case`double`:return t.double(e);case`bytes`:return t.bytes(e);case`kvlist`:return t.kvlist(e);default:throw TypeError(`AttributeObjectValue has unknown type tag '${String(e.type)}'.`)}}function tb(e){return eb(e,{emptyValue:()=>null,stringValue:e=>e,boolValue:e=>e,arrayValue:e=>e.map(tb),int:e=>e.value,double:e=>e.value,bytes:e=>({type:`bytes`,base64:e.base64}),kvlist:e=>Object.fromEntries(Object.entries(e.values).map(([e,t])=>[e,tb(t)]))})}function nb(e){let t=tb(e);return t===null?`null`:typeof t==`string`?t:typeof t==`boolean`||typeof t==`number`?String(t):JSON.stringify(t)}var rb=`qyl/traceQuery`;function ib(e,t){let n=Zy.safeParse(e._meta?.[rb]);return n.success?n.data:t}function ab(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}}function ob(e,t){if(e.replaceChildren(),e.hidden=t===void 0,!t)return;let n=document.createElement(`h3`);n.textContent=t.comparable?`Execution comparison`:t.reason??`Executions are not comparable`,e.appendChild(n);let r=t.first_divergence;if(r){let t=document.createElement(`p`);t.textContent=`First divergence: ${r.kind}${r.attribute?` (${r.attribute})`:``}`,e.appendChild(t)}for(let n of t.aligned){let t=document.createElement(`div`);t.className=`comparison-pair`,(n.a_span.span_id===r?.a_span?.span_id||n.b_span.span_id===r?.b_span?.span_id)&&t.classList.add(`first-divergence`);for(let[e,r]of[[`A`,n.a_span],[`B`,n.b_span]]){let n=document.createElement(`div`);n.className=`comparison-span`,n.textContent=`${e}: ${r.service} / ${r.name} · ${r.status} · ${r.duration_ms} ms`,t.appendChild(n)}e.appendChild(t)}for(let n of t.unmatched){let t=document.createElement(`p`);t.textContent=`Unmatched: ${n.service} / ${n.name} · ${n.status} · ${n.duration_ms} ms`,e.appendChild(t)}}function sb(e,t,n){let r=document.createElement(`section`);r.className=`trace-actions`;let i=document.createElement(`button`);i.type=`button`,i.textContent=`Notes`;let a=document.createElement(`button`);a.type=`button`,a.textContent=`Bookmark`;let o=document.createElement(`div`);o.className=`annotation-editor`,o.hidden=!0;let s=document.createElement(`p`);s.setAttribute(`role`,`status`);let c=()=>t()?{kind:`span`,trace_id:e.trace_id,span_id:t()}:{kind:`trace`,trace_id:e.trace_id};async function l(e,t){let r=await n({name:e,arguments:t});if(r.isError)throw Error(Fy(r)??`Unable to save annotation`);let i=Q(`Mcp.Tools.AnnotationOutput`).parse(r.structuredContent).annotation;if(!i)throw Error(`Collector did not return the saved annotation`);return i}function u(e){let t=document.createElement(`form`),n=document.createElement(`textarea`);n.maxLength=2e3,n.required=!0,n.setAttribute(`aria-label`,`Annotation text`),n.value=e?.text??``;let r=document.createElement(`input`);r.setAttribute(`aria-label`,`Labels separated by commas`),r.placeholder=`Labels, separated by commas`,r.value=e?.labels?.join(`, `)??``;let i=document.createElement(`select`);i.setAttribute(`aria-label`,`Annotation classification`);for(let e of[`note`,`hypothesis`,`finding`,`rejected`]){let t=document.createElement(`option`);t.value=e,t.textContent=e,i.appendChild(t)}i.value=e?.classification??`note`;let a=document.createElement(`button`);a.type=`submit`,a.textContent=e?`Update note`:`Add note`,t.append(n,r,i,a);let o=crypto.randomUUID();return t.addEventListener(`submit`,d=>{(async()=>{d.preventDefault(),a.disabled=!0;try{let a={text:n.value,labels:r.value.split(`,`).map(e=>e.trim()).filter(Boolean),classification:i.value};if(a.labels.length>10||a.labels.some(e=>e.length>64))throw Error(`Use at most 10 labels of at most 64 characters.`);let d=e?await l(`update_annotation`,{id:e.id,etag:e.etag,...a}):await l(`create_annotation`,{target:c(),idempotency_key:o,...a});s.textContent=`Note saved.`,t.replaceWith(u(d))}catch(e){s.textContent=e instanceof Error?e.message:String(e)}finally{a.disabled=!1}})()}),t}return i.addEventListener(`click`,()=>{(async()=>{if(o.hidden=!o.hidden,!o.hidden&&!(o.childElementCount>0)){o.replaceChildren(u());try{let t=await n({name:`get_trace`,arguments:{trace_id:e.trace_id,max_spans:1}});if(t.isError)throw Error(Fy(t)??`Unable to read notes`);let r=Q(`Mcp.Tools.GetTraceOutput`).parse(t.structuredContent);for(let e of r.annotations??[])o.appendChild(u(e))}catch(e){s.textContent=e instanceof Error?e.message:String(e)}}})()}),a.addEventListener(`click`,()=>{(async()=>{a.disabled=!0;try{await l(`create_annotation`,{target:c(),text:`Bookmarked execution`,labels:[`bookmark`],classification:`note`}),s.textContent=`Bookmark saved.`}catch(e){s.textContent=e instanceof Error?e.message:String(e)}finally{a.disabled=!1}})()}),r.append(i,a,s,o),r}var $={traceQuery:Zy.parse({}),traces:[],comparison:void 0,selectedTraceId:void 0,selectedSpanId:void 0,activeTab:`waterfall`,logsCache:new Map,busy:!1,logsRequestSeq:0},cb=new Map,lb,ub=document.querySelector(`.main`),db=document.getElementById(`trace-count-label`),fb=document.getElementById(`refresh-btn`),pb=document.getElementById(`empty-refresh-btn`),mb=document.getElementById(`retry-btn`),hb=document.getElementById(`banner`),gb=document.getElementById(`state-loading`),_b=document.getElementById(`loading-text`),vb=document.getElementById(`state-empty`),yb=document.getElementById(`state-error`),bb=document.getElementById(`error-message`),xb=document.getElementById(`explorer`),Sb=document.getElementById(`trace-list`),Cb=document.getElementById(`trace-view-empty`),wb=document.getElementById(`trace-view-body`),Tb=document.getElementById(`trace-title`),Eb=document.getElementById(`trace-status-badge`),Db=document.getElementById(`trace-id-label`),Ob=document.getElementById(`trace-duration-label`),kb=document.getElementById(`trace-span-count-label`),Ab=document.getElementById(`trace-services`),jb=document.getElementById(`tab-waterfall`),Mb=document.getElementById(`tab-logs`),Nb=document.getElementById(`waterfall-panel`),Pb=document.getElementById(`time-ruler`),Fb=document.getElementById(`span-rows`),Ib=document.getElementById(`logs-panel`),Lb=document.getElementById(`logs-state`),Rb=document.getElementById(`logs-list`),zb=document.getElementById(`detail-panel`),Bb=document.getElementById(`detail-title`),Vb=document.getElementById(`detail-body`),Hb=document.getElementById(`detail-close-btn`),Ub=document.createElement(`section`);Ub.className=`trace-comparison`,Ub.hidden=!0,wb.prepend(Ub);var Wb=document.createElement(`div`);wb.insertBefore(Wb,Ub.nextSibling);var Gb={0:`Unspecified`,1:`Internal`,2:`Server`,3:`Client`,4:`Producer`,5:`Consumer`};function Kb(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 qb(e){let t=e.resource?.service_name;return typeof t==`string`&&t?t:`unknown`}function Jb(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 Yb(e,t){return Number(BigInt(t)-BigInt(e))}function Xb(e){return!Number.isFinite(e)||e<0?`—`:e<1e3?`${Math.round(e)} ns`:e<1e6?`${Iy(e/1e3)} µs`:e<1e9?`${Iy(e/1e6)} ms`:`${Iy(e/1e9)} s`}function Zb(e){return e.length>8?e.slice(0,8):e}function Qb(e){if(e===void 0)return`unknown`;let t=BigInt(e),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 $b(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`[unserializable]`}}var ex=new Ay({name:`qyl Trace Explorer`,version:Ry});ex.onteardown=async()=>(console.info(`App is being torn down`),{}),ex.ontoolinput=e=>{let t=Zy.safeParse(e.arguments??{});if(!t.success){lb=void 0,ix(`Received invalid trace query parameters.`);return}let n=t.data;lb=n,_b.textContent=typeof n.trace_id==`string`&&n.trace_id?`Loading trace ${Zb(n.trace_id)}…`:typeof n.session_id==`string`&&n.session_id?`Loading session ${n.session_id}…`:`Loading traces…`,rx(`loading`)},ex.ontoolresult=e=>{let t=tx(e);t?($.traceQuery=ib(e,lb??$.traceQuery),lb=void 0,ux(t)):(lb=void 0,ix(Fy(e)??`Received an invalid tool result.`))},ex.ontoolcancelled=()=>{lb=void 0,rx($.traces.length>0?`explorer`:`empty`)},ex.onerror=console.error,ex.onhostcontextchanged=e=>Py(e,ub);function tx(e){let t=Qy.safeParse(e.structuredContent);return t.success?t.data:null}function nx(e){let t=$y.safeParse(e.structuredContent);return t.success&&t.data.logs!==void 0?{logs:t.data.logs}:null}function rx(e){gb.hidden=e!==`loading`,vb.hidden=e!==`empty`,yb.hidden=e!==`error`,xb.hidden=e!==`explorer`}function ix(e){bb.textContent=e,rx(`error`)}var ax;function ox(e){hb.textContent=e,hb.hidden=!1,ax&&clearTimeout(ax),ax=setTimeout(()=>{hb.hidden=!0},6e3)}function sx(){let e=$.traces.length;db.textContent=e===0?``:`${e} trace${e===1?``:`s`}`}function cx(){return $.traces.find(e=>e.trace_id===$.selectedTraceId)}function lx(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 ux(e){$.traces=e.traces,$.logsCache.clear();let t=e.selected_span_id??$.traceQuery.selected_span_id??$.selectedSpanId;$.comparison=e.comparison;let n=e.selected_trace_id??$.selectedTraceId;$.selectedTraceId=$.traces.some(e=>e.trace_id===n)?n:$.traces[0]?.trace_id,$.selectedSpanId=cx()?.spans.some(e=>e.span_id===t)?t:void 0,$.selectedSpanId||Dx(),sx(),hx(),gx(),rx($.traces.length===0?`empty`:`explorer`)}function dx(e){$.selectedTraceId!==e&&($.selectedTraceId=e,$.selectedSpanId=void 0,$.traceQuery={...$.traceQuery},delete $.traceQuery.selected_span_id,$.activeTab=`waterfall`,Dx(),hx(),gx())}function fx(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&&(dx(r.trace_id),Sb.querySelector(`[data-trace-id="${CSS.escape(r.trace_id)}"]`)?.scrollIntoView({block:`nearest`}))}function px(e){let t=document.createElement(`span`);return t.className=`service-chip`,t.textContent=e,t}function mx(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=lx(e),r.title=lx(e),n.appendChild(r);let i=document.createElement(`span`);i.className=`trace-row-duration mono`,i.textContent=Xb(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=Zb(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(px(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`,()=>dx(e.trace_id)),t}function hx(){let e=document.createDocumentFragment();for(let t of $.traces)e.appendChild(mx(t));Sb.replaceChildren(e)}function gx(){let e=cx();if(Cb.hidden=!!e,wb.hidden=!e,!e)return;Tb.textContent=lx(e),Eb.textContent=e.has_error?`Error`:`OK`,Eb.className=`trace-status-badge ${e.has_error?`error`:`ok`}`,Db.textContent=e.trace_id,Ob.textContent=Xb(Number(e.duration_ns)),kb.textContent=`${e.span_count} span${e.span_count===1?``:`s`}`;let t=document.createDocumentFragment();for(let n of e.services)t.appendChild(px(n));Ab.replaceChildren(t),_x(),xx(e),ob(Ub,$.comparison);let n=cb.get(e.trace_id);n||(n=sb(e,()=>$.selectedSpanId,e=>ex.callServerTool(e)),cb.set(e.trace_id,n),cb.size>20&&cb.delete(cb.keys().next().value)),Wb.replaceChildren(n);let r=e.spans.find(e=>e.span_id===$.selectedSpanId);r&&Ex(r,ab(e.spans).traceStartNs),$.activeTab===`logs`&&kx(e)}function _x(){let e=$.activeTab===`logs`;jb.classList.toggle(`active`,!e),jb.setAttribute(`aria-selected`,String(!e)),Mb.classList.toggle(`active`,e),Mb.setAttribute(`aria-selected`,String(e)),Nb.hidden=e,Ib.hidden=!e}function vx(e){if($.activeTab===e)return;$.activeTab=e,_x();let t=cx();e===`logs`&&t&&kx(t)}function yx(e){Pb.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?Xb(t/4*e):`0 ns`,Pb.appendChild(r)}}function bx(e,t){let{span:n,depth:r}=e,i=Kb(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}, ${Xb(Yb(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=qb(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=Xb(Yb(n.start_time_unix_nano,n.end_time_unix_nano)),d.appendChild(p),o.appendChild(d);let h=()=>Ex(n,t);return o.addEventListener(`click`,h),o.addEventListener(`keydown`,e=>{e.key===`Enter`&&e.target===o&&h()}),o}function xx(e){let t=ab(e.spans);yx(t.totalNs);let n=document.createDocumentFragment();for(let e of t.rows)n.appendChild(bx(e,t.traceStartNs));if(Fb.replaceChildren(n),t.rows.length===0){let e=document.createElement(`div`);e.className=`logs-state`,e.textContent=`This trace has no spans.`,Fb.appendChild(e)}}function Sx(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 Cx(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 wx(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=$b(e.value),n.append(t,r)}e.appendChild(n)}function Tx(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=`+${Xb(Math.max(0,Yb(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=$b(i),a.appendChild(e)}else{let e=document.createElement(`span`);e.className=`attr-value mono`,e.textContent=$b(i),a.appendChild(e)}n.appendChild(a)}return n}function Ex(e,t){$.selectedSpanId=e.span_id,$.traceQuery={...$.traceQuery,selected_span_id:e.span_id};for(let t of Fb.querySelectorAll(`.span-row`))t.classList.toggle(`selected`,t.dataset.spanId===e.span_id);Bb.textContent=e.name;let n=document.createDocumentFragment(),r=document.createElement(`div`);r.className=`detail-stats`,r.appendChild(Cx(`Service`,qb(e))),r.appendChild(Cx(`Kind`,Gb[e.kind]??String(e.kind))),r.appendChild(Cx(`Evidence`,e.role)),e.self_time_ms!==void 0&&r.appendChild(Cx(`Self time`,`${e.self_time_ms} ms`)),r.appendChild(Cx(`Duration`,Xb(Yb(e.start_time_unix_nano,e.end_time_unix_nano)))),r.appendChild(Cx(`Offset`,`+${Xb(Math.max(0,Yb(t,e.start_time_unix_nano)))}`));let i=e.status?.code??0,a=i===2?`Error`:i===1?`OK`:`Unset`;r.appendChild(Cx(`Status`,a,i===2?`status-error`:i===1?`status-ok`:`status-unset`)),r.appendChild(Cx(`Start`,Qb(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(Cx(`Tokens`,`${s===void 0?`—`:Ly(s)} in · ${c===void 0?`—`:Ly(c)} out`)),n.appendChild(r),e.status?.message){let{section:t,body:r}=Sx(`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}=Sx(`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}=Sx(`Attributes (${p.length})`);wx(t,p),n.appendChild(e)}let m=e.events??[];if(m.length>0){let{section:t,body:r}=Sx(`Events (${m.length})`);for(let t of m)r.appendChild(Tx(t,e.start_time_unix_nano));n.appendChild(t)}Vb.replaceChildren(n),zb.hidden=!1,Vb.scrollTop=0}function Dx(){if(!zb.hidden){zb.hidden=!0,$.selectedSpanId=void 0,$.traceQuery={...$.traceQuery},delete $.traceQuery.selected_span_id;for(let e of Fb.querySelectorAll(`.span-row.selected`))e.classList.remove(`selected`)}}function Ox(e){Lb.hidden=e.length>0,e.length===0&&(Lb.textContent=`No logs recorded for this trace.`);let t=document.createDocumentFragment(),n=e=>[e.time_unix_nano,e.observed_time_unix_nano].find(e=>e!==void 0&&BigInt(e)!==0n),r=[...e].sort((e,t)=>{let r=n(e),i=n(t);return r===void 0?i===void 0?0:1:i===void 0?-1:Yb(i,r)});for(let e of r){let{label:r,cls:i}=Jb(e),a=document.createElement(`div`);a.className=`log-row severity-${i}`;let o=document.createElement(`span`);o.className=`log-time mono dim`,o.textContent=Qb(n(e)),a.appendChild(o);let s=document.createElement(`span`);s.className=`log-severity`,s.textContent=r,a.appendChild(s);let c=document.createElement(`span`);c.className=`log-body mono`,c.textContent=nb(e.body),a.appendChild(c),t.appendChild(a)}Rb.replaceChildren(t)}async function kx(e){let t=$.logsCache.get(e.trace_id);if(t){Ox(t);return}let n=++$.logsRequestSeq;Rb.replaceChildren(),Lb.hidden=!1,Lb.textContent=`Loading logs…`;try{let t=await ex.callServerTool({name:`fetch_telemetry`,arguments:{view:`logs`,trace_id:e.trace_id,limit:100}});if(t.isError)throw Error(Fy(t)??`fetch_telemetry failed`);let r=nx(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`&&Ox(r.logs)}catch(t){if(n!==$.logsRequestSeq||$.selectedTraceId!==e.trace_id)return;Lb.hidden=!1,Lb.textContent=`Couldn't load logs: ${t instanceof Error?t.message:String(t)}`}}async function Ax(){if($.busy)return;$.busy=!0,fb.disabled=!0,fb.classList.add(`spinning`);let e=$.traces.length>0;e||(_b.textContent=`Loading traces…`,rx(`loading`));try{let e=await ex.callServerTool({name:`display_traces`,arguments:{...$.traceQuery}});if(e.isError)throw Error(Fy(e)??`display_traces failed`);let t=tx(e);if(!t)throw Error(`display_traces returned an invalid payload`);$.traceQuery=ib(e,$.traceQuery),ux(t)}catch(t){e?(rx(`explorer`),ox(`Refresh failed: ${t instanceof Error?t.message:String(t)}`)):ix(t instanceof Error?t.message:String(t))}finally{$.busy=!1,fb.disabled=!1,fb.classList.remove(`spinning`)}}fb.addEventListener(`click`,()=>void Ax()),pb.addEventListener(`click`,()=>void Ax()),mb.addEventListener(`click`,()=>void Ax()),Hb.addEventListener(`click`,Dx),jb.addEventListener(`click`,()=>vx(`waterfall`)),Mb.addEventListener(`click`,()=>vx(`logs`)),window.addEventListener(`keydown`,e=>{if(e.key===`Escape`)Dx();else if(e.key===`ArrowDown`||e.key===`ArrowUp`){if(xb.hidden)return;e.preventDefault(),fx(e.key===`ArrowDown`?1:-1)}}),ex.connect().then(()=>{let e=ex.getHostContext();e&&Py(e,ub)}).catch(e=>{ix(e instanceof Error?e.message:String(e))});</script>
63
63
  <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)}.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:row;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-width:0;min-height:0;display:flex;overflow-y:auto}.trace-view-body>*{flex-shrink:0}.trace-view-body>.waterfall-panel,.trace-view-body>.logs-panel{flex:1 0 240px;min-height:240px}.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{background-color:var(--color-background-primary);border-left:var(--border-width-regular) solid var(--q-border);flex-direction:column;flex:none;width:min(360px,45%);animation:.16s ease-out detail-slide-in;display:flex;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)}.trace-view{flex-direction:column}.detail-panel{border-left:none;border-top:var(--border-width-regular) solid var(--q-border);width:100%;max-height:45%}}.trace-comparison{border-bottom:1px solid var(--color-border-primary,#444);padding:12px}.comparison-pair{grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:8px;margin:6px 0;display:grid}.comparison-span{overflow-wrap:anywhere;border:1px solid var(--color-border-primary,#444);border-radius:5px;padding:8px}.first-divergence .comparison-span{background:#d8993815;border-color:#d89938}.trace-actions{flex-wrap:wrap;gap:8px;padding:8px 12px;display:flex}.trace-actions button{cursor:pointer;padding:6px 10px}.trace-actions p{margin:4px 0}.annotation-editor{width:100%}.annotation-editor form{flex-wrap:wrap;gap:8px;padding:8px 0;display:flex}.annotation-editor textarea{width:100%;min-height:72px}.annotation-editor input{flex:1;min-width:0}@media (width<=640px){.comparison-pair{grid-template-columns:minmax(0,1fr)}}
64
64
  /*$vite$:1*/</style>
65
65
  </head>