@zuplo/cli 7.14.6 → 7.14.8

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.
Files changed (68) hide show
  1. package/node_modules/@zuplo/core/customer.cli.minified.js +95 -95
  2. package/node_modules/@zuplo/core/index.minified.js +100 -100
  3. package/node_modules/@zuplo/core/package.json +1 -1
  4. package/node_modules/@zuplo/graphql/package.json +1 -1
  5. package/node_modules/@zuplo/openapi-tools/package.json +1 -1
  6. package/node_modules/@zuplo/otel/package.json +1 -1
  7. package/node_modules/@zuplo/runtime/out/esm/{chunk-VIH2ISEH.js → chunk-2HVCLUM4.js} +2 -2
  8. package/node_modules/@zuplo/runtime/out/esm/{chunk-VIH2ISEH.js.map → chunk-2HVCLUM4.js.map} +1 -1
  9. package/node_modules/@zuplo/runtime/out/esm/{chunk-G2O2ZIL3.js → chunk-6R2COTV6.js} +2 -2
  10. package/node_modules/@zuplo/runtime/out/esm/{chunk-JORDKCQ5.js → chunk-DB6LKZ36.js} +97 -97
  11. package/node_modules/@zuplo/runtime/out/esm/chunk-DB6LKZ36.js.map +1 -0
  12. package/node_modules/@zuplo/runtime/out/esm/{chunk-AEVCZW3D.js → chunk-PY52EHDX.js} +2 -2
  13. package/node_modules/@zuplo/runtime/out/esm/{chunk-LDA754KZ.js → chunk-SNTU476S.js} +2 -2
  14. package/node_modules/@zuplo/runtime/out/esm/index.js +1 -1
  15. package/node_modules/@zuplo/runtime/out/esm/mcp/messages/index.js +1 -1
  16. package/node_modules/@zuplo/runtime/out/esm/mcp-gateway/index.js +8 -8
  17. package/node_modules/@zuplo/runtime/out/esm/mcp-gateway/index.js.map +1 -1
  18. package/node_modules/@zuplo/runtime/out/esm/mocks/index.js +1 -1
  19. package/node_modules/@zuplo/runtime/out/esm/sdks/aws/index.js +1 -1
  20. package/node_modules/@zuplo/runtime/out/types/index.d.ts +14 -5
  21. package/node_modules/@zuplo/runtime/out/types/internal/index.d.ts +14 -5
  22. package/node_modules/@zuplo/runtime/out/types/mcp-gateway/index.d.ts +40 -0
  23. package/node_modules/@zuplo/runtime/package.json +1 -1
  24. package/node_modules/hono/dist/adapter/aws-lambda/handler.js +1 -1
  25. package/node_modules/hono/dist/cjs/adapter/aws-lambda/handler.js +1 -1
  26. package/node_modules/hono/dist/cjs/adapter/bun/serve-static.js +1 -1
  27. package/node_modules/hono/dist/cjs/adapter/bun/websocket.js +1 -1
  28. package/node_modules/hono/dist/cjs/client/fetch-result-please.js +1 -1
  29. package/node_modules/hono/dist/cjs/helper/accepts/accepts.js +2 -1
  30. package/node_modules/hono/dist/cjs/helper/ssg/ssg.js +5 -3
  31. package/node_modules/hono/dist/cjs/jsx/base.js +49 -30
  32. package/node_modules/hono/dist/cjs/jsx/components.js +2 -2
  33. package/node_modules/hono/dist/cjs/jsx/constants.js +2 -0
  34. package/node_modules/hono/dist/cjs/jsx/jsx-runtime.js +13 -17
  35. package/node_modules/hono/dist/cjs/middleware/etag/index.js +3 -1
  36. package/node_modules/hono/dist/cjs/middleware/pretty-json/index.js +1 -0
  37. package/node_modules/hono/dist/cjs/middleware/timing/timing.js +4 -3
  38. package/node_modules/hono/dist/cjs/utils/cookie.js +2 -2
  39. package/node_modules/hono/dist/cjs/utils/mime.js +1 -1
  40. package/node_modules/hono/dist/cjs/utils/url.js +1 -1
  41. package/node_modules/hono/dist/client/fetch-result-please.js +1 -1
  42. package/node_modules/hono/dist/helper/accepts/accepts.js +2 -1
  43. package/node_modules/hono/dist/helper/ssg/ssg.js +5 -3
  44. package/node_modules/hono/dist/jsx/base.js +49 -32
  45. package/node_modules/hono/dist/jsx/components.js +2 -2
  46. package/node_modules/hono/dist/jsx/constants.js +2 -1
  47. package/node_modules/hono/dist/jsx/jsx-runtime.js +15 -19
  48. package/node_modules/hono/dist/middleware/etag/index.js +3 -1
  49. package/node_modules/hono/dist/middleware/language/language.js +1 -1
  50. package/node_modules/hono/dist/middleware/pretty-json/index.js +1 -0
  51. package/node_modules/hono/dist/middleware/timing/timing.js +4 -3
  52. package/node_modules/hono/dist/types/helper/factory/index.d.ts +1 -1
  53. package/node_modules/hono/dist/types/helper/ssg/ssg.d.ts +6 -1
  54. package/node_modules/hono/dist/types/jsx/base.d.ts +4 -2
  55. package/node_modules/hono/dist/types/jsx/constants.d.ts +1 -0
  56. package/node_modules/hono/dist/types/jsx/jsx-runtime.d.ts +2 -1
  57. package/node_modules/hono/dist/types/utils/cookie.d.ts +1 -1
  58. package/node_modules/hono/dist/utils/cookie.js +2 -2
  59. package/node_modules/hono/dist/utils/mime.js +1 -1
  60. package/node_modules/hono/dist/utils/url.js +1 -1
  61. package/node_modules/hono/package.json +1 -1
  62. package/package.json +11 -11
  63. package/node_modules/@zuplo/runtime/out/esm/chunk-JORDKCQ5.js.map +0 -1
  64. /package/node_modules/@zuplo/runtime/out/esm/{chunk-VIH2ISEH.js.LEGAL.txt → chunk-2HVCLUM4.js.LEGAL.txt} +0 -0
  65. /package/node_modules/@zuplo/runtime/out/esm/{chunk-G2O2ZIL3.js.map → chunk-6R2COTV6.js.map} +0 -0
  66. /package/node_modules/@zuplo/runtime/out/esm/{chunk-JORDKCQ5.js.LEGAL.txt → chunk-DB6LKZ36.js.LEGAL.txt} +0 -0
  67. /package/node_modules/@zuplo/runtime/out/esm/{chunk-AEVCZW3D.js.map → chunk-PY52EHDX.js.map} +0 -0
  68. /package/node_modules/@zuplo/runtime/out/esm/{chunk-LDA754KZ.js.map → chunk-SNTU476S.js.map} +0 -0
@@ -22,5 +22,5 @@
22
22
  * DEALINGS IN THE SOFTWARE.
23
23
  *--------------------------------------------------------------------------------------------*/
24
24
 
25
- import{a as g}from"./chunk-A3QGJZO7.js";import{$ as T}from"./chunk-VIH2ISEH.js";import{a as r}from"./chunk-TYV53J3B.js";var P=class e extends Request{static{r(this,"ZuploRequest")}#t=void 0;#e;#n;constructor(t,n,s){super(t,n);let o=n?.params;this.#n=s,o?this.#e=o:t instanceof e?this.#e=t.#e:this.#e={};let a=n?.user;a?this.user=a:t instanceof e&&(this.user=t.user)}get originalRequest(){return this.#n??null}get query(){if(this.#t===void 0){let t={},n=new URL(this.url).searchParams;for(let[s,o]of n.entries())t[s]=o;this.#t=t}return g(this.#t)}get params(){return g(this.#e)}user};function h(){return T.instance.build.COMPATIBILITY_FLAGS.mcpProtocolVersion20260728===!0}r(h,"isMcp20260728Enabled");var S="2026-07-28",A="io.modelcontextprotocol/protocolVersion",U="io.modelcontextprotocol/clientCapabilities",B="io.modelcontextprotocol/clientInfo",W="io.modelcontextprotocol/serverInfo",Z=-32022,Q=/^\d{4}-\d{2}-\d{2}$/;function I(e){return typeof e=="string"&&Q.test(e)&&e>=S}r(I,"isModernProtocolVersion");function f(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}r(f,"isRecord");function k(e){if(!f(e)||!f(e.params))return;let t=e.params._meta;return f(t)?t:void 0}r(k,"readRequestMeta");function L(e){let t=k(e)?.[A];return typeof t=="string"?t:void 0}r(L,"readEnvelopeProtocolVersion");function X(e){let t=k(e)?.[U];return f(t)?t:void 0}r(X,"readEnvelopeClientCapabilities");function x(e,t){if(Array.isArray(t))return!1;let n=e.get("mcp-protocol-version"),s=L(t);return n!==null&&I(n)||s!==void 0&&I(s)}r(x,"isModernMcpRequest");var ee="zuplo_upstream_connect";var M="2.0",R=-32600,N=-32602,re=-32603,oe=-32001,b=10*1024*1024;function c(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}r(c,"isRecord");function y(e){return typeof e=="string"||typeof e=="number"}r(y,"isRequestId");function p(e){return e===null?"null":Array.isArray(e)?"an array":typeof e=="object"?"an object":typeof e=="string"?JSON.stringify(e.length>40?`${e.slice(0,40)}\u2026`:e):String(e)}r(p,"describeValue");function i(e){if(!(e===void 0||c(e)))return`params must be an object when present (got ${p(e)}).`}r(i,"optionalObjectParams");function u(e,t){return n=>{if(!c(n))return`params must be an object with a string \`${e}\` (got ${p(n)}). Example: ${t}`;if(typeof n[e]!="string")return`params.${e} must be a string (got ${p(n[e])}). Example: ${t}`}}r(u,"requireStringField");var v={initialize:i,ping:i,"tools/list":i,"tools/call":u("name",'{"name":"my_tool","arguments":{}}'),"prompts/list":i,"prompts/get":u("name",'{"name":"my_prompt"}'),"resources/list":i,"resources/templates/list":i,"resources/read":u("uri",'{"uri":"file:///a.txt"}'),"resources/subscribe":u("uri",'{"uri":"file:///a.txt"}'),"resources/unsubscribe":u("uri",'{"uri":"file:///a.txt"}'),"completion/complete":i,"logging/setLevel":u("level",'{"level":"info"}'),"server/discover":i,"subscriptions/listen":i,"tasks/get":u("taskId",'{"taskId":"task-123"}'),"tasks/update":u("taskId",'{"taskId":"task-123"}'),"tasks/cancel":u("taskId",'{"taskId":"task-123"}')},C={"notifications/initialized":i,"notifications/cancelled":i,"notifications/progress":i,"notifications/roots/list_changed":i,"notifications/subscriptions/acknowledged":i},j=new Set(["server/discover","subscriptions/listen","tasks/get","tasks/update","tasks/cancel"]),$=new Set(["notifications/subscriptions/acknowledged"]);function V(e,t){return Object.hasOwn(v,e)&&(t||!j.has(e))}r(V,"isKnownRequestMethod");function w(e,t){return Object.hasOwn(C,e)&&(t||!$.has(e))}r(w,"isKnownNotificationMethod");function l(e){return{type:"invalid",...e.method===void 0?{}:{method:e.method},id:e.id,error:{code:e.code,message:e.message},raw:e.raw}}r(l,"invalidMessage");function m(e){return y(e)?e:null}r(m,"usableId");function K(e,t,n,s){if(V(t,s)){let o=v[t](e.params);if(o!==void 0)return l({raw:e,method:t,id:n,code:N,message:`Invalid params for \`${t}\`: ${o}`});let a=e.params===void 0?{}:e.params;return{type:"request",method:t,id:n,params:a,raw:e}}return{type:"request",method:t,id:n,params:e.params,raw:e}}r(K,"classifyRequest");function Y(e,t,n){if(w(t,n)){let s=C[t](e.params);if(s!==void 0)return l({raw:e,method:t,id:null,code:N,message:`Invalid params for \`${t}\`: ${s}`});let o=e.params===void 0?{}:e.params;return{type:"notification",method:t,params:o,raw:e}}return{type:"notification",method:t,params:e.params,raw:e}}r(Y,"classifyNotification");function _(e,t=!1){if(!c(e)||e.jsonrpc!==M)return l({raw:e,id:m(c(e)?e.id:void 0),code:R,message:`Invalid Request: batch member is not a JSON-RPC 2.0 message (got ${p(e)}). Every member must include \`"jsonrpc":"2.0"\`.`});let n=e.method;if(typeof n=="string"){if(!("id"in e))return Y(e,n,t);let s=e.id;return y(s)?K(e,n,s,t):l({raw:e,method:n,id:null,code:R,message:`Invalid Request: request id must be a string or number (got ${p(s)}). The gateway cannot correlate a reply to this id \u2014 omit \`id\` to send a notification instead.`})}if(n!==void 0)return l({raw:e,id:m(e.id),code:R,message:`Invalid Request: method must be a string (got ${p(n)}).`});if("result"in e&&y(e.id)&&c(e.result))return{type:"result",id:e.id,result:e.result,raw:e};if("error"in e){let s=e.error;if(c(s)&&typeof s.code=="number"&&typeof s.message=="string"){let o={code:s.code,message:s.message,...s.data===void 0?{}:{data:s.data}};return{type:"error",id:m(e.id),error:o,raw:e}}}return l({raw:e,id:m(e.id),code:R,message:"Invalid Request: message has no `method` and is not a valid JSON-RPC result or error."})}r(_,"classifyMember");var D=new WeakMap,q=new WeakMap;function ie(e){return q.get(e)}r(ie,"getEnvelopeText");async function G(e){let t=e.headers.get("content-type");if(t===null||!t.toLowerCase().includes("json"))return null;let n=e.headers.get("content-length");if(n!==null&&Number(n)>b)return null;let s;try{s=await e.clone().text()}catch{return null}if(s.length>b)return null;let o;try{o=JSON.parse(s)}catch{return null}let a=e.headers.get("mcp-protocol-version");if(Array.isArray(o)){if(o.length>0&&!o.some(d=>c(d)&&d.jsonrpc===M))return null;let O={transport:"json",shape:"batch",messages:o.map(d=>_(d)),...a===null?{}:{protocolVersion:a}};return q.set(O,s),O}if(!c(o)||o.jsonrpc!==M)return null;let E={transport:"json",shape:"single",messages:[_(o,h()&&x(e.headers,o))],...a===null?{}:{protocolVersion:a}};return q.set(E,s),E}r(G,"parseEnvelope");function ae(e){let t=D.get(e);return t===void 0&&(t=G(e),D.set(e,t)),t}r(ae,"getRequest");export{P as a,h as b,S as c,A as d,U as e,B as f,W as g,Z as h,I as i,L as j,X as k,x as l,ee as m,M as n,R as o,re as p,oe as q,c as r,y as s,ie as t,ae as u};
26
- //# sourceMappingURL=chunk-AEVCZW3D.js.map
25
+ import{a as g}from"./chunk-A3QGJZO7.js";import{$ as T}from"./chunk-2HVCLUM4.js";import{a as r}from"./chunk-TYV53J3B.js";var P=class e extends Request{static{r(this,"ZuploRequest")}#t=void 0;#e;#n;constructor(t,n,s){super(t,n);let o=n?.params;this.#n=s,o?this.#e=o:t instanceof e?this.#e=t.#e:this.#e={};let a=n?.user;a?this.user=a:t instanceof e&&(this.user=t.user)}get originalRequest(){return this.#n??null}get query(){if(this.#t===void 0){let t={},n=new URL(this.url).searchParams;for(let[s,o]of n.entries())t[s]=o;this.#t=t}return g(this.#t)}get params(){return g(this.#e)}user};function h(){return T.instance.build.COMPATIBILITY_FLAGS.mcpProtocolVersion20260728===!0}r(h,"isMcp20260728Enabled");var S="2026-07-28",A="io.modelcontextprotocol/protocolVersion",U="io.modelcontextprotocol/clientCapabilities",B="io.modelcontextprotocol/clientInfo",W="io.modelcontextprotocol/serverInfo",Z=-32022,Q=/^\d{4}-\d{2}-\d{2}$/;function I(e){return typeof e=="string"&&Q.test(e)&&e>=S}r(I,"isModernProtocolVersion");function f(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}r(f,"isRecord");function k(e){if(!f(e)||!f(e.params))return;let t=e.params._meta;return f(t)?t:void 0}r(k,"readRequestMeta");function L(e){let t=k(e)?.[A];return typeof t=="string"?t:void 0}r(L,"readEnvelopeProtocolVersion");function X(e){let t=k(e)?.[U];return f(t)?t:void 0}r(X,"readEnvelopeClientCapabilities");function x(e,t){if(Array.isArray(t))return!1;let n=e.get("mcp-protocol-version"),s=L(t);return n!==null&&I(n)||s!==void 0&&I(s)}r(x,"isModernMcpRequest");var ee="zuplo_upstream_connect";var M="2.0",R=-32600,N=-32602,re=-32603,oe=-32001,b=10*1024*1024;function c(e){return e!==null&&typeof e=="object"&&!Array.isArray(e)}r(c,"isRecord");function y(e){return typeof e=="string"||typeof e=="number"}r(y,"isRequestId");function p(e){return e===null?"null":Array.isArray(e)?"an array":typeof e=="object"?"an object":typeof e=="string"?JSON.stringify(e.length>40?`${e.slice(0,40)}\u2026`:e):String(e)}r(p,"describeValue");function i(e){if(!(e===void 0||c(e)))return`params must be an object when present (got ${p(e)}).`}r(i,"optionalObjectParams");function u(e,t){return n=>{if(!c(n))return`params must be an object with a string \`${e}\` (got ${p(n)}). Example: ${t}`;if(typeof n[e]!="string")return`params.${e} must be a string (got ${p(n[e])}). Example: ${t}`}}r(u,"requireStringField");var v={initialize:i,ping:i,"tools/list":i,"tools/call":u("name",'{"name":"my_tool","arguments":{}}'),"prompts/list":i,"prompts/get":u("name",'{"name":"my_prompt"}'),"resources/list":i,"resources/templates/list":i,"resources/read":u("uri",'{"uri":"file:///a.txt"}'),"resources/subscribe":u("uri",'{"uri":"file:///a.txt"}'),"resources/unsubscribe":u("uri",'{"uri":"file:///a.txt"}'),"completion/complete":i,"logging/setLevel":u("level",'{"level":"info"}'),"server/discover":i,"subscriptions/listen":i,"tasks/get":u("taskId",'{"taskId":"task-123"}'),"tasks/update":u("taskId",'{"taskId":"task-123"}'),"tasks/cancel":u("taskId",'{"taskId":"task-123"}')},C={"notifications/initialized":i,"notifications/cancelled":i,"notifications/progress":i,"notifications/roots/list_changed":i,"notifications/subscriptions/acknowledged":i},j=new Set(["server/discover","subscriptions/listen","tasks/get","tasks/update","tasks/cancel"]),$=new Set(["notifications/subscriptions/acknowledged"]);function V(e,t){return Object.hasOwn(v,e)&&(t||!j.has(e))}r(V,"isKnownRequestMethod");function w(e,t){return Object.hasOwn(C,e)&&(t||!$.has(e))}r(w,"isKnownNotificationMethod");function l(e){return{type:"invalid",...e.method===void 0?{}:{method:e.method},id:e.id,error:{code:e.code,message:e.message},raw:e.raw}}r(l,"invalidMessage");function m(e){return y(e)?e:null}r(m,"usableId");function K(e,t,n,s){if(V(t,s)){let o=v[t](e.params);if(o!==void 0)return l({raw:e,method:t,id:n,code:N,message:`Invalid params for \`${t}\`: ${o}`});let a=e.params===void 0?{}:e.params;return{type:"request",method:t,id:n,params:a,raw:e}}return{type:"request",method:t,id:n,params:e.params,raw:e}}r(K,"classifyRequest");function Y(e,t,n){if(w(t,n)){let s=C[t](e.params);if(s!==void 0)return l({raw:e,method:t,id:null,code:N,message:`Invalid params for \`${t}\`: ${s}`});let o=e.params===void 0?{}:e.params;return{type:"notification",method:t,params:o,raw:e}}return{type:"notification",method:t,params:e.params,raw:e}}r(Y,"classifyNotification");function _(e,t=!1){if(!c(e)||e.jsonrpc!==M)return l({raw:e,id:m(c(e)?e.id:void 0),code:R,message:`Invalid Request: batch member is not a JSON-RPC 2.0 message (got ${p(e)}). Every member must include \`"jsonrpc":"2.0"\`.`});let n=e.method;if(typeof n=="string"){if(!("id"in e))return Y(e,n,t);let s=e.id;return y(s)?K(e,n,s,t):l({raw:e,method:n,id:null,code:R,message:`Invalid Request: request id must be a string or number (got ${p(s)}). The gateway cannot correlate a reply to this id \u2014 omit \`id\` to send a notification instead.`})}if(n!==void 0)return l({raw:e,id:m(e.id),code:R,message:`Invalid Request: method must be a string (got ${p(n)}).`});if("result"in e&&y(e.id)&&c(e.result))return{type:"result",id:e.id,result:e.result,raw:e};if("error"in e){let s=e.error;if(c(s)&&typeof s.code=="number"&&typeof s.message=="string"){let o={code:s.code,message:s.message,...s.data===void 0?{}:{data:s.data}};return{type:"error",id:m(e.id),error:o,raw:e}}}return l({raw:e,id:m(e.id),code:R,message:"Invalid Request: message has no `method` and is not a valid JSON-RPC result or error."})}r(_,"classifyMember");var D=new WeakMap,q=new WeakMap;function ie(e){return q.get(e)}r(ie,"getEnvelopeText");async function G(e){let t=e.headers.get("content-type");if(t===null||!t.toLowerCase().includes("json"))return null;let n=e.headers.get("content-length");if(n!==null&&Number(n)>b)return null;let s;try{s=await e.clone().text()}catch{return null}if(s.length>b)return null;let o;try{o=JSON.parse(s)}catch{return null}let a=e.headers.get("mcp-protocol-version");if(Array.isArray(o)){if(o.length>0&&!o.some(d=>c(d)&&d.jsonrpc===M))return null;let O={transport:"json",shape:"batch",messages:o.map(d=>_(d)),...a===null?{}:{protocolVersion:a}};return q.set(O,s),O}if(!c(o)||o.jsonrpc!==M)return null;let E={transport:"json",shape:"single",messages:[_(o,h()&&x(e.headers,o))],...a===null?{}:{protocolVersion:a}};return q.set(E,s),E}r(G,"parseEnvelope");function ae(e){let t=D.get(e);return t===void 0&&(t=G(e),D.set(e,t)),t}r(ae,"getRequest");export{P as a,h as b,S as c,A as d,U as e,B as f,W as g,Z as h,I as i,L as j,X as k,x as l,ee as m,M as n,R as o,re as p,oe as q,c as r,y as s,ie as t,ae as u};
26
+ //# sourceMappingURL=chunk-PY52EHDX.js.map
@@ -22,5 +22,5 @@
22
22
  * DEALINGS IN THE SOFTWARE.
23
23
  *--------------------------------------------------------------------------------------------*/
24
24
 
25
- import{a as x,n as O,o as H,p as I,q as N,r as h,s as C,u as b}from"./chunk-AEVCZW3D.js";import{a as l}from"./chunk-TYV53J3B.js";function f(n,e){return{jsonrpc:O,id:n,error:{code:e.code,message:e.message,...e.data===void 0?{}:{data:e.data}}}}l(f,"errorReply");function v(n,e){return{jsonrpc:O,id:n,result:e}}l(v,"resultReply");function q(n,e){return e.length===0?new Response(null,{status:202}):Response.json(n==="single"?e[0]:e)}l(q,"replyResponse");function A(n){return n.type==="request"}l(A,"isRequestType");function $(n,e,o){let a=o===void 0?void 0:e,i=o===void 0?e:o;if(a!==void 0&&!n.messages.includes(a))throw new Error("createErrorResponse: the message must be one of envelope.messages from the same getRequest() parse.");let t=[];for(let c of n.messages)if(c.type==="request"){let r=a===void 0||c===a?i:{code:N,message:"Not processed"};t.push(f(c.id,r))}else c.type==="invalid"&&t.push(f(c.id,c.error));return q(n.shape,t)}l($,"createErrorResponse");function S(n,e,o){let a=n.messages.filter(A);if(a.length!==1||a[0]!==e)throw new Error("createResultResponse: the message must be the envelope's only request. For batches with multiple requests use processMessages, which forwards the rest and stitches replies by id.");let i=[];for(let t of n.messages)t===e?i.push(v(e.id,o)):t.type==="invalid"&&i.push(f(t.id,t.error));return q(n.shape,i)}l(S,"createResultResponse");function j(n,e){if(n===void 0)return;let o=n,a=Object.hasOwn(n,e)?o[e]:void 0;return a!==void 0?a:Object.hasOwn(n,"*")?o["*"]:void 0}l(j,"pickHandler");function T(n){return typeof n=="string"?`s:${n}`:`n:${n}`}l(T,"idKey");function D(n){let e=new Set;for(let o of n.messages){if(o.type!=="request")continue;let a=T(o.id);if(e.has(a))return o.id;e.add(a)}}l(D,"findDuplicateRequestId");async function K(n){let{response:e,plan:o,context:a,policyName:i}=n,t=(e.headers.get("content-type")??"").toLowerCase(),c=[];if(t.includes("json"))try{let p=await e.clone().text();if(p.trim().length>0){let u=JSON.parse(p);c=Array.isArray(u)?u:[u]}}catch{return a.log.warn(`MCP policy "${i}": upstream JSON response could not be parsed; locally generated replies were not merged.`),e}else if(e.body!==null)return a.log.warn(`MCP policy "${i}": upstream response is "${t||"unknown"}"; locally generated replies were not merged.`),e;if(c.length>0&&!c.every(p=>h(p)&&p.jsonrpc==="2.0"))return a.log.warn(`MCP policy "${i}": upstream response body is not JSON-RPC; locally generated replies were not merged.`),e;let r=new Map,y=[];for(let p of c){let u=h(p)?p.id:void 0,s=C(u)?T(u):void 0;s===void 0||r.has(s)?y.push(p):r.set(s,p)}let d=[];for(let p of o)if(p.action==="local")d.push(p.reply);else if(p.action==="forward"&&p.replyId!==void 0){let u=T(p.replyId),s=r.get(u);s===void 0?a.log.warn(`MCP policy "${i}": upstream returned no reply for request id ${JSON.stringify(p.replyId)}; the gateway does not synthesize results, so the gap is passed through.`):(r.delete(u),d.push(s))}let R=[...r.values(),...y];R.length>0&&(a.log.warn(`MCP policy "${i}": upstream returned ${R.length} repl${R.length===1?"y":"ies"} with unexpected or duplicate ids; appended after the correlated replies.`),d.push(...R));let m=new Headers(e.headers);m.delete("content-length"),m.set("content-type","application/json");let P=e.status===202||e.status===204?200:e.status;return new Response(JSON.stringify(d),{status:P,headers:m})}l(K,"stitchResponse");function J(n){return async(e,o,a,i)=>{let t=await b(e);if(t===null)return e;if(t.shape==="batch"&&t.messages.length===0)return Response.json(f(null,{code:H,message:"Invalid Request: batch must not be empty."}));let c=D(t);if(c!==void 0){let s=t.messages.filter(g=>g.type==="request").map(g=>f(g.id??null,{code:H,message:`Invalid Request: duplicate request id ${JSON.stringify(c)} in batch. Ids must be unique so replies can be correlated.`}));return q(t.shape,s)}let r=[],y=0,d=!1;for(let s of t.messages)switch(s.type){case"invalid":{r.push({action:"local",reply:f(s.id,s.error)}),y+=1,d=!0;break}case"result":case"error":{r.push({action:"forward",wire:s.raw,replyId:void 0});break}case"request":case"notification":{let g=j(n.requests,s.method),w=s.type==="request",k=w?s.id:void 0;if(g===void 0){r.push({action:"forward",wire:s.raw,replyId:k});break}let M;try{M=await g({message:s,request:e,context:o,envelope:t,options:a,policyName:i})}catch(E){if(o.log.error(`MCP message handler for "${s.method}" threw in policy "${i}"; failing only this message.`,E),M=w?{error:{code:I,message:"Internal error"}}:void 0,!w){r.push({action:"drop"}),d=!0;break}}if(M===void 0)r.push({action:"forward",wire:s.raw,replyId:k});else if("params"in M){if(!h(M.params)){o.log.error(`MCP message handler for "${s.method}" in policy "${i}" returned a non-object params verdict; failing only this message.`),w?(r.push({action:"local",reply:f(s.id,{code:I,message:"Internal error"})}),y+=1):r.push({action:"drop"}),d=!0;break}let E=h(s.raw)?s.raw:{};r.push({action:"forward",wire:{...E,params:M.params},replyId:k}),d=!0}else"error"in M?(w?(r.push({action:"local",reply:f(s.id,M.error)}),y+=1):r.push({action:"drop"}),d=!0):"result"in M?(w?(r.push({action:"local",reply:v(s.id,M.result)}),y+=1):(o.log.warn(`MCP message handler for "${s.method}" in policy "${i}" returned a result for a notification; notifications have no replies, dropping the message.`),r.push({action:"drop"})),d=!0):r.push({action:"forward",wire:s.raw,replyId:k});break}}let R=r.filter(s=>s.action==="forward");if(R.length===0){let s=[];for(let g of r)g.action==="local"&&s.push(g.reply);return q(t.shape,s)}if(!d)return e;let m=R.map(s=>s.wire),P=JSON.stringify(t.shape==="single"?m[0]:m),p=new Headers(e.headers);p.delete("content-length");let u=new x(e,{body:P,headers:p});return y>0&&o.addResponseSendingHook(s=>K({response:s,plan:r,context:o,policyName:i})),u}}l(J,"processMessages");export{$ as a,S as b,J as c};
26
- //# sourceMappingURL=chunk-LDA754KZ.js.map
25
+ import{a as x,n as O,o as H,p as I,q as N,r as h,s as C,u as b}from"./chunk-PY52EHDX.js";import{a as l}from"./chunk-TYV53J3B.js";function f(n,e){return{jsonrpc:O,id:n,error:{code:e.code,message:e.message,...e.data===void 0?{}:{data:e.data}}}}l(f,"errorReply");function v(n,e){return{jsonrpc:O,id:n,result:e}}l(v,"resultReply");function q(n,e){return e.length===0?new Response(null,{status:202}):Response.json(n==="single"?e[0]:e)}l(q,"replyResponse");function A(n){return n.type==="request"}l(A,"isRequestType");function $(n,e,o){let a=o===void 0?void 0:e,i=o===void 0?e:o;if(a!==void 0&&!n.messages.includes(a))throw new Error("createErrorResponse: the message must be one of envelope.messages from the same getRequest() parse.");let t=[];for(let c of n.messages)if(c.type==="request"){let r=a===void 0||c===a?i:{code:N,message:"Not processed"};t.push(f(c.id,r))}else c.type==="invalid"&&t.push(f(c.id,c.error));return q(n.shape,t)}l($,"createErrorResponse");function S(n,e,o){let a=n.messages.filter(A);if(a.length!==1||a[0]!==e)throw new Error("createResultResponse: the message must be the envelope's only request. For batches with multiple requests use processMessages, which forwards the rest and stitches replies by id.");let i=[];for(let t of n.messages)t===e?i.push(v(e.id,o)):t.type==="invalid"&&i.push(f(t.id,t.error));return q(n.shape,i)}l(S,"createResultResponse");function j(n,e){if(n===void 0)return;let o=n,a=Object.hasOwn(n,e)?o[e]:void 0;return a!==void 0?a:Object.hasOwn(n,"*")?o["*"]:void 0}l(j,"pickHandler");function T(n){return typeof n=="string"?`s:${n}`:`n:${n}`}l(T,"idKey");function D(n){let e=new Set;for(let o of n.messages){if(o.type!=="request")continue;let a=T(o.id);if(e.has(a))return o.id;e.add(a)}}l(D,"findDuplicateRequestId");async function K(n){let{response:e,plan:o,context:a,policyName:i}=n,t=(e.headers.get("content-type")??"").toLowerCase(),c=[];if(t.includes("json"))try{let p=await e.clone().text();if(p.trim().length>0){let u=JSON.parse(p);c=Array.isArray(u)?u:[u]}}catch{return a.log.warn(`MCP policy "${i}": upstream JSON response could not be parsed; locally generated replies were not merged.`),e}else if(e.body!==null)return a.log.warn(`MCP policy "${i}": upstream response is "${t||"unknown"}"; locally generated replies were not merged.`),e;if(c.length>0&&!c.every(p=>h(p)&&p.jsonrpc==="2.0"))return a.log.warn(`MCP policy "${i}": upstream response body is not JSON-RPC; locally generated replies were not merged.`),e;let r=new Map,y=[];for(let p of c){let u=h(p)?p.id:void 0,s=C(u)?T(u):void 0;s===void 0||r.has(s)?y.push(p):r.set(s,p)}let d=[];for(let p of o)if(p.action==="local")d.push(p.reply);else if(p.action==="forward"&&p.replyId!==void 0){let u=T(p.replyId),s=r.get(u);s===void 0?a.log.warn(`MCP policy "${i}": upstream returned no reply for request id ${JSON.stringify(p.replyId)}; the gateway does not synthesize results, so the gap is passed through.`):(r.delete(u),d.push(s))}let R=[...r.values(),...y];R.length>0&&(a.log.warn(`MCP policy "${i}": upstream returned ${R.length} repl${R.length===1?"y":"ies"} with unexpected or duplicate ids; appended after the correlated replies.`),d.push(...R));let m=new Headers(e.headers);m.delete("content-length"),m.set("content-type","application/json");let P=e.status===202||e.status===204?200:e.status;return new Response(JSON.stringify(d),{status:P,headers:m})}l(K,"stitchResponse");function J(n){return async(e,o,a,i)=>{let t=await b(e);if(t===null)return e;if(t.shape==="batch"&&t.messages.length===0)return Response.json(f(null,{code:H,message:"Invalid Request: batch must not be empty."}));let c=D(t);if(c!==void 0){let s=t.messages.filter(g=>g.type==="request").map(g=>f(g.id??null,{code:H,message:`Invalid Request: duplicate request id ${JSON.stringify(c)} in batch. Ids must be unique so replies can be correlated.`}));return q(t.shape,s)}let r=[],y=0,d=!1;for(let s of t.messages)switch(s.type){case"invalid":{r.push({action:"local",reply:f(s.id,s.error)}),y+=1,d=!0;break}case"result":case"error":{r.push({action:"forward",wire:s.raw,replyId:void 0});break}case"request":case"notification":{let g=j(n.requests,s.method),w=s.type==="request",k=w?s.id:void 0;if(g===void 0){r.push({action:"forward",wire:s.raw,replyId:k});break}let M;try{M=await g({message:s,request:e,context:o,envelope:t,options:a,policyName:i})}catch(E){if(o.log.error(`MCP message handler for "${s.method}" threw in policy "${i}"; failing only this message.`,E),M=w?{error:{code:I,message:"Internal error"}}:void 0,!w){r.push({action:"drop"}),d=!0;break}}if(M===void 0)r.push({action:"forward",wire:s.raw,replyId:k});else if("params"in M){if(!h(M.params)){o.log.error(`MCP message handler for "${s.method}" in policy "${i}" returned a non-object params verdict; failing only this message.`),w?(r.push({action:"local",reply:f(s.id,{code:I,message:"Internal error"})}),y+=1):r.push({action:"drop"}),d=!0;break}let E=h(s.raw)?s.raw:{};r.push({action:"forward",wire:{...E,params:M.params},replyId:k}),d=!0}else"error"in M?(w?(r.push({action:"local",reply:f(s.id,M.error)}),y+=1):r.push({action:"drop"}),d=!0):"result"in M?(w?(r.push({action:"local",reply:v(s.id,M.result)}),y+=1):(o.log.warn(`MCP message handler for "${s.method}" in policy "${i}" returned a result for a notification; notifications have no replies, dropping the message.`),r.push({action:"drop"})),d=!0):r.push({action:"forward",wire:s.raw,replyId:k});break}}let R=r.filter(s=>s.action==="forward");if(R.length===0){let s=[];for(let g of r)g.action==="local"&&s.push(g.reply);return q(t.shape,s)}if(!d)return e;let m=R.map(s=>s.wire),P=JSON.stringify(t.shape==="single"?m[0]:m),p=new Headers(e.headers);p.delete("content-length");let u=new x(e,{body:P,headers:p});return y>0&&o.addResponseSendingHook(s=>K({response:s,plan:r,context:o,policyName:i})),u}}l(J,"processMessages");export{$ as a,S as b,J as c};
26
+ //# sourceMappingURL=chunk-SNTU476S.js.map
@@ -22,5 +22,5 @@
22
22
  * DEALINGS IN THE SOFTWARE.
23
23
  *--------------------------------------------------------------------------------------------*/
24
24
 
25
- import{$d as ht,$e as cr,$h as cs,A as J,Ae as Rt,Af as Rr,Ai as Js,B as K,Be as qt,Bf as qr,Bi as Ks,Ce as vt,Cf as vr,Ci as Ms,D as M,De as zt,Df as zr,Di as Ns,E as N,Ee as Gt,Ei as Os,F as O,Fe as It,Fi as Qs,Ge as Jt,Gi as Vs,He as Kt,Hi as Ws,I as Q,Ie as Mt,Ii as Xs,J as V,Je as Nt,Ji as Ys,K as W,Ke as Ot,Ki as Zs,L as X,Le as Qt,Li as _s,Me as Vt,Mi as te,Ne as Wt,Ni as re,O as Y,Oe as Xt,Oh as Xr,P as Z,Pe as Yt,Ph as Yr,Qe as Zt,Qh as Zr,R as _,Re as _t,Rh as _r,S as tt,Se as tr,Sh as ts,Te as rr,Th as rs,U as rt,Ue as sr,Uh as ss,V as st,Ve as er,Vh as es,W as et,We as or,Wh as os,X as ot,Xe as ar,Xh as as,Y as at,Yd as it,Ye as nr,Yh as ns,Z as nt,Zd as pt,Ze as ir,Zh as is,_d as ct,_e as pr,_h as ps,a as y,ae as mt,af as hr,ai as hs,be as gt,bf as mr,bi as ms,c as b,cf as gr,ci as gs,d as l,de as dt,df as dr,di as ds,e as j,ee as ut,ef as ur,eg as Gr,ei as us,f as B,fe as ft,ff as fr,fg as Ir,fi as fs,g as C,ge as xt,gf as xr,gg as Jr,gi as xs,h as D,he as yt,hf as yr,hg as Kr,hi as ys,i as E,ie as wt,if as wr,ig as Mr,ii as Bs,j as H,je as At,jf as Ar,jg as Nr,ji as Cs,k as P,ke as bt,kf as br,kg as Or,ki as Ds,l as S,le as lt,lf as lr,lg as Qr,li as Es,m as T,me as jt,mf as jr,mg as Vr,mi as Hs,n,ne as Bt,nf as Br,ng as Wr,ni as Ps,o as U,oe as Ct,of as Cr,oi as Ss,p as $,pe as Dt,pf as Dr,pi as Ts,q as k,qe as Et,qf as Er,qi as Us,r as F,re as Ht,rf as Hr,ri as $s,s as L,se as Pt,sf as Pr,si as ks,t as R,te as St,tf as Sr,ti as Fs,u as q,ue as Tt,uf as Tr,ui as Ls,ve as Ut,vf as Ur,vi as Rs,w as v,we as $t,wf as $r,wi as qs,xe as kt,xf as kr,xi as vs,y as G,ye as Ft,yf as Fr,yi as Gs,z as I,ze as Lt,zf as Lr,zi as Is}from"./chunk-JORDKCQ5.js";import{p as ws,q as As,r as bs,s as ls,t as js}from"./chunk-VP5Q3DEN.js";import{a as z}from"./chunk-AEVCZW3D.js";import"./chunk-A3QGJZO7.js";import{E as w,F as A,M as zs}from"./chunk-G2O2ZIL3.js";import{a as x}from"./chunk-UKQQD2JN.js";import{_ as f,c as a,d as u}from"./chunk-VIH2ISEH.js";import{a as t}from"./chunk-TYV53J3B.js";var e=["sha-1","sha-256","sha-384","sha-512"],r=class{static{t(this,"BaseCryptoBeta")}};var o=class extends r{static{t(this,"WorkerCryptoBeta")}async digest(s,p){if(n("runtime.crypto-beta"),!e.includes(s.toLowerCase()))throw new a(`Algorithm ${s} is not supported. Try using ${e.join(", ")}`);let c=new TextEncoder().encode(p),h=await crypto.subtle.digest(s,c);return Array.from(new Uint8Array(h)).map(m=>m.toString(16).padStart(2,"0")).join("")}};export{Jt as AIGatewayAkamaiFirewallInboundPolicy,Kt as AIGatewayAuthInboundPolicy,Kt as AIGatewayAuthV2InboundPolicy,Mt as AIGatewayConfigurationExecutorInboundPolicy,Mt as AIGatewayConfigurationExecutorV2InboundPolicy,Nt as AIGatewayConfigurationLoaderInboundPolicy,Nt as AIGatewayConfigurationLoaderV2InboundPolicy,Ot as AIGatewayDlpInboundPolicy,Qt as AIGatewayFallbackModelInboundPolicy,Qt as AIGatewayFallbackModelV2InboundPolicy,Vt as AIGatewayGalileoTracingInboundPolicy,qr as AIGatewayInternalOnlyInboundPolicy,Wt as AIGatewayLoadBalancingInboundPolicy,tt as AIGatewayMeteringInboundPolicy,tt as AIGatewayMeteringV2InboundPolicy,Xt as AIGatewayModelFilteringInboundPolicy,Xt as AIGatewayModelFilteringV2InboundPolicy,Yt as AIGatewayModelOverrideInboundPolicy,l as AIGatewayModelRouting,b as AIGatewayModels,Zt as AIGatewayOpikTracingInboundPolicy,_t as AIGatewayPromptInjectionPolicy,tr as AIGatewaySemanticCacheInboundPolicy,tr as AIGatewaySemanticCacheV2InboundPolicy,T as AIGatewaySmartRouter,rr as AIGatewaySmartRouterInboundPolicy,ft as AWSLoggingPlugin,Jt as AkamaiAIFirewallV2InboundPolicy,Lt as AkamaiApiSecurityPlugin,sr as AkamaiFirewallForAiInboundPolicy,er as AkamaiFirewallForAiOutboundPolicy,ar as AmberfloMeteringInboundPolicy,or as AmberfloMeteringPolicy,ir as ApiAuthKeyInboundPolicy,te as ApiKeyConsumerClient,nr as ApiKeyInboundPolicy,Tt as AuditLogDataStaxProvider,pr as AuditLogInboundPolicy,Ut as AuditLogPlugin,hr as Auth0JwtInboundPolicy,mr as AuthZenInboundPolicy,et as AwsLambdaHandlerExtensions,gr as AxiomaticsAuthZInboundPolicy,qt as AzureBlobPlugin,vt as AzureEventHubsRequestLoggerPlugin,J as BackgroundDispatchError,Rt as BackgroundDispatcher,re as BackgroundLoader,dr as BasicAuthInboundPolicy,ms as BasicRateLimitInboundPolicy,K as BatchDispatch,ur as BrownoutInboundPolicy,fr as CachingInboundPolicy,xr as CdnCacheControlOutboundPolicy,yr as ChangeMethodInboundPolicy,wr as ClearHeadersInboundPolicy,Ar as ClearHeadersOutboundPolicy,br as ClerkJwtInboundPolicy,lr as CognitoJwtInboundPolicy,Zt as CometOpikTracingV2InboundPolicy,jr as ComplexRateLimitInboundPolicy,Br as CompositeInboundPolicy,Cr as CompositeOutboundPolicy,Dr as ConcurrencyLimitInboundPolicy,u as ConfigurationError,G as ContentTypes,x as ContextData,o as CryptoBeta,Er as CurityPhantomTokenInboundPolicy,V as DataDogLoggingPlugin,Bt as DataDogMetricsPlugin,Hr as DataLossPreventionInboundPolicy,Pr as DataLossPreventionOutboundPolicy,xt as DynaTraceLoggingPlugin,Ct as DynatraceMetricsPlugin,Sr as FirebaseJwtInboundPolicy,Tr as FormDataToJsonInboundPolicy,Vt as GalileoTracingV2InboundPolicy,Ur as GeoFilterInboundPolicy,Q as GoogleCloudLoggingPlugin,Fr as GraphqlAnalyticsOutboundPolicy,_ as Handler,Lr as HttpDeprecationOutboundPolicy,q as HttpProblems,F as HttpStatusCode,Gt as HydrolixRequestLoggerPlugin,N as InboundPolicy,Rr as InternalOnlyInboundPolicy,vr as IpAddressRestrictionInboundPolicy,zr as JWTScopeValidationInboundPolicy,$t as JwtServicePlugin,yt as LokiLoggingPlugin,X as LookupResult,ss as MTLSAuthInboundPolicy,Xr as McpAuth0OAuthInboundPolicy,Gr as McpClerkOAuthInboundPolicy,Ir as McpCognitoOAuthInboundPolicy,Jr as McpEntraOAuthInboundPolicy,kt as McpGatewayOAuthProtectedResourcePlugin,Kr as McpGoogleOAuthInboundPolicy,Mr as McpKeycloakOAuthInboundPolicy,Nr as McpLogtoOAuthInboundPolicy,Yr as McpOAuthInboundPolicy,Or as McpOktaOAuthInboundPolicy,Qr as McpOneLoginOAuthInboundPolicy,Vr as McpPingOAuthInboundPolicy,Wr as McpWorkosOAuthInboundPolicy,A as MemoryZoneReadThroughCache,Zr as MockApiInboundPolicy,ts as MoesifInboundPolicy,rs as MonetizationInboundPolicy,wt as NewRelicLoggingPlugin,Dt as NewRelicMetricsPlugin,Ft as OAuthProtectedResourcePlugin,Et as OTelMetricsPlugin,es as OktaFGAAuthZInboundPolicy,os as OktaJwtInboundPolicy,as as OpenFGAAuthZInboundPolicy,cr as OpenIdJwtInboundPolicy,ns as OpenMeterInboundPolicy,O as OutboundPolicy,R as ProblemResponseFormatter,is as PromptInjectionDetectionOutboundPolicy,ps as PropelAuthJwtInboundPolicy,cs as QueryParamToHeaderInboundPolicy,hs as QuotaInboundPolicy,ms as RateLimitInboundPolicy,gs as ReadmeMetricsInboundPolicy,ds as RemoveHeadersInboundPolicy,us as RemoveHeadersOutboundPolicy,fs as RemoveQueryParamsInboundPolicy,xs as ReplaceStringOutboundPolicy,It as RequestLoggerPlugin,ys as RequestSizeLimitInboundPolicy,Bs as RequestValidationInboundPolicy,Ds as RequireOriginInboundPolicy,Es as RequireUserClaimsInboundPolicy,Y as ResponseSendingEvent,Z as ResponseSentEvent,a as RuntimeError,f as SYSTEM_LOGGER,Cs as SchemaBasedRequestValidation,Hs as SecretMaskingOutboundPolicy,k as SemanticAttributes,Ps as SemanticCacheInboundPolicy,_s as ServiceProviderImpl,Ss as SetBodyInboundPolicy,Ts as SetHeadersInboundPolicy,Us as SetHeadersOutboundPolicy,$s as SetQueryParamsInboundPolicy,ks as SetStatusOutboundPolicy,Fs as SetUpstreamApiKeyInboundPolicy,Ls as SleepInboundPolicy,At as SplunkLoggingPlugin,$ as StreamingZoneCache,Rs as StripeWebhookVerificationInboundPolicy,bt as SumoLogicLoggingPlugin,qs as SupabaseJwtInboundPolicy,M as SystemRouteName,v as TelemetryPlugin,vs as TrafficSplittingInboundPolicy,Gs as UpstreamAwsFederatedAuthInboundPolicy,Is as UpstreamAwsServiceAuthInboundPolicy,Js as UpstreamAzureAdServiceAuthInboundPolicy,Ks as UpstreamFirebaseAdminAuthInboundPolicy,Ms as UpstreamFirebaseUserAuthInboundPolicy,Ns as UpstreamGcpFederatedAuthInboundPolicy,Os as UpstreamGcpJwtInboundPolicy,Qs as UpstreamGcpServiceAuthInboundPolicy,Vs as UpstreamOAuthClientCredentialsInboundPolicy,Ws as UpstreamZuploJwtAuthInboundPolicy,lt as VMWareLogInsightLoggingPlugin,Xs as ValidateJsonSchemaInbound,Ys as WebBotAuthInboundPolicy,Zs as XmlToJsonOutboundPolicy,w as ZoneCache,jt as ZuploMcpSdk,z as ZuploRequest,zs as ZuploServices,rt as aiGatewayHandler,st as aiGatewayHandlerV2,U as apiServices,ot as awsLambdaHandler,Ht as buildCacheOperationBase,zt as defaultGenerateHydrolixEntry,Pt as emitCacheOperation,St as emitCacheOperationLate,y as environment,H as extractAllText,$r as extractGraphqlErrors,S as extractStreamTextDelta,E as flattenMessageContent,j as getFormat,As as getIdForParameterSchema,ls as getIdForRefSchema,bs as getIdForRequestBodySchema,ws as getRawOperationDataIdentifierName,B as getRequestBody,C as getResponseBody,P as getStreamEvents,D as getUsage,L as httpStatuses,at as legacyDevPortalHandler,it as mcpServerHandler,pt as openApiSpecHandler,W as recordGraphqlCacheState,ct as redirectHandler,nt as redirectLegacyDevPortal,kr as responseHasGraphqlErrors,js as sanitizedIdentifierName,I as serialize,_r as setMoesifContext,n as trackFeature,mt as urlForwardHandler,gt as urlRewriteHandler,ut as webSocketHandler,dt as webSocketPipelineHandler,ht as zuploServiceProxy};
25
+ import{$d as ct,$e as pr,$h as ps,A as J,Ae as Lt,Af as Lr,Ai as Is,B as K,Be as Rt,Bf as Rr,Bi as Js,Ce as qt,Cf as qr,Ci as Ks,D as M,De as vt,Df as vr,Di as Ms,E as N,Ee as zt,Ef as zr,Ei as Ns,F as O,Fe as Gt,Fi as Os,Ge as It,Gi as Qs,He as Jt,Hi as Vs,I as Q,Ie as Kt,Ii as Ws,J as V,Je as Mt,Ji as Xs,K as W,Ke as Nt,Ki as Ys,L as X,Le as Ot,Li as Zs,Me as Qt,Mi as _s,Ne as Vt,Ni as te,O as Y,Oe as Wt,Oi as re,P as Z,Pe as Xt,Ph as Xr,Qe as Yt,Qh as Yr,R as _,Re as Zt,Rh as Zr,S as tt,Se as _t,Sh as _r,Te as tr,Th as ts,U as rt,Ue as rr,Uh as rs,V as st,Ve as sr,Vh as ss,W as et,We as er,Wh as es,X as ot,Xe as or,Xh as os,Y as at,Ye as ar,Yh as as,Z as nt,Zd as it,Ze as nr,Zh as ns,_d as pt,_e as ir,_h as is,a as y,ae as ht,af as cr,ai as cs,be as mt,bf as hr,bi as hs,c as b,ce as gt,cf as mr,ci as ms,d as l,df as gr,di as gs,e as j,ee as dt,ef as dr,ei as ds,f as B,fe as ut,ff as ur,fg as Gr,fi as us,g as C,ge as ft,gf as fr,gg as Ir,gi as fs,h as D,he as xt,hf as xr,hg as Jr,hi as xs,i as E,ie as yt,if as yr,ig as Kr,ii as ys,j as H,je as wt,jf as wr,jg as Mr,ji as Bs,k as P,ke as At,kf as Ar,kg as Nr,ki as Cs,l as S,le as bt,lf as br,lg as Or,li as Ds,m as T,me as lt,mf as lr,mg as Qr,mi as Es,n,ne as jt,nf as jr,ng as Vr,ni as Hs,o as U,oe as Bt,of as Br,og as Wr,oi as Ps,p as $,pe as Ct,pf as Cr,pi as Ss,q as k,qe as Dt,qf as Dr,qi as Ts,r as F,re as Et,rf as Er,ri as Us,s as L,se as Ht,sf as Hr,si as $s,t as R,te as Pt,tf as Pr,ti as ks,u as q,ue as St,uf as Sr,ui as Fs,ve as Tt,vf as Tr,vi as Ls,w as v,we as Ut,wf as Ur,wi as Rs,xe as $t,xf as $r,xi as qs,y as G,ye as kt,yf as kr,yi as vs,z as I,ze as Ft,zf as Fr,zi as Gs}from"./chunk-DB6LKZ36.js";import{p as ws,q as As,r as bs,s as ls,t as js}from"./chunk-VP5Q3DEN.js";import{a as z}from"./chunk-PY52EHDX.js";import"./chunk-A3QGJZO7.js";import{E as w,F as A,M as zs}from"./chunk-6R2COTV6.js";import{a as x}from"./chunk-UKQQD2JN.js";import{_ as f,c as a,d as u}from"./chunk-2HVCLUM4.js";import{a as t}from"./chunk-TYV53J3B.js";var e=["sha-1","sha-256","sha-384","sha-512"],r=class{static{t(this,"BaseCryptoBeta")}};var o=class extends r{static{t(this,"WorkerCryptoBeta")}async digest(s,p){if(n("runtime.crypto-beta"),!e.includes(s.toLowerCase()))throw new a(`Algorithm ${s} is not supported. Try using ${e.join(", ")}`);let c=new TextEncoder().encode(p),h=await crypto.subtle.digest(s,c);return Array.from(new Uint8Array(h)).map(m=>m.toString(16).padStart(2,"0")).join("")}};export{Jt as AIGatewayAkamaiFirewallInboundPolicy,Kt as AIGatewayAuthInboundPolicy,Kt as AIGatewayAuthV2InboundPolicy,Mt as AIGatewayConfigurationExecutorInboundPolicy,Mt as AIGatewayConfigurationExecutorV2InboundPolicy,Nt as AIGatewayConfigurationLoaderInboundPolicy,Nt as AIGatewayConfigurationLoaderV2InboundPolicy,Ot as AIGatewayDlpInboundPolicy,Qt as AIGatewayFallbackModelInboundPolicy,Qt as AIGatewayFallbackModelV2InboundPolicy,Vt as AIGatewayGalileoTracingInboundPolicy,qr as AIGatewayInternalOnlyInboundPolicy,Wt as AIGatewayLoadBalancingInboundPolicy,tt as AIGatewayMeteringInboundPolicy,tt as AIGatewayMeteringV2InboundPolicy,Xt as AIGatewayModelFilteringInboundPolicy,Xt as AIGatewayModelFilteringV2InboundPolicy,Yt as AIGatewayModelOverrideInboundPolicy,l as AIGatewayModelRouting,b as AIGatewayModels,Zt as AIGatewayOpikTracingInboundPolicy,_t as AIGatewayPromptInjectionPolicy,tr as AIGatewaySemanticCacheInboundPolicy,tr as AIGatewaySemanticCacheV2InboundPolicy,T as AIGatewaySmartRouter,rr as AIGatewaySmartRouterInboundPolicy,ft as AWSLoggingPlugin,Jt as AkamaiAIFirewallV2InboundPolicy,Lt as AkamaiApiSecurityPlugin,sr as AkamaiFirewallForAiInboundPolicy,er as AkamaiFirewallForAiOutboundPolicy,ar as AmberfloMeteringInboundPolicy,or as AmberfloMeteringPolicy,ir as ApiAuthKeyInboundPolicy,te as ApiKeyConsumerClient,nr as ApiKeyInboundPolicy,Tt as AuditLogDataStaxProvider,pr as AuditLogInboundPolicy,Ut as AuditLogPlugin,hr as Auth0JwtInboundPolicy,mr as AuthZenInboundPolicy,et as AwsLambdaHandlerExtensions,gr as AxiomaticsAuthZInboundPolicy,qt as AzureBlobPlugin,vt as AzureEventHubsRequestLoggerPlugin,J as BackgroundDispatchError,Rt as BackgroundDispatcher,re as BackgroundLoader,dr as BasicAuthInboundPolicy,ms as BasicRateLimitInboundPolicy,K as BatchDispatch,ur as BrownoutInboundPolicy,fr as CachingInboundPolicy,xr as CdnCacheControlOutboundPolicy,yr as ChangeMethodInboundPolicy,wr as ClearHeadersInboundPolicy,Ar as ClearHeadersOutboundPolicy,br as ClerkJwtInboundPolicy,lr as CognitoJwtInboundPolicy,Zt as CometOpikTracingV2InboundPolicy,jr as ComplexRateLimitInboundPolicy,Br as CompositeInboundPolicy,Cr as CompositeOutboundPolicy,Dr as ConcurrencyLimitInboundPolicy,u as ConfigurationError,G as ContentTypes,x as ContextData,o as CryptoBeta,Er as CurityPhantomTokenInboundPolicy,V as DataDogLoggingPlugin,Bt as DataDogMetricsPlugin,Hr as DataLossPreventionInboundPolicy,Pr as DataLossPreventionOutboundPolicy,xt as DynaTraceLoggingPlugin,Ct as DynatraceMetricsPlugin,Sr as FirebaseJwtInboundPolicy,Tr as FormDataToJsonInboundPolicy,Vt as GalileoTracingV2InboundPolicy,Ur as GeoFilterInboundPolicy,Q as GoogleCloudLoggingPlugin,Fr as GraphqlAnalyticsOutboundPolicy,_ as Handler,Lr as HttpDeprecationOutboundPolicy,q as HttpProblems,F as HttpStatusCode,Gt as HydrolixRequestLoggerPlugin,N as InboundPolicy,Rr as InternalOnlyInboundPolicy,vr as IpAddressRestrictionInboundPolicy,zr as JWTScopeValidationInboundPolicy,$t as JwtServicePlugin,yt as LokiLoggingPlugin,X as LookupResult,ss as MTLSAuthInboundPolicy,Xr as McpAuth0OAuthInboundPolicy,Gr as McpClerkOAuthInboundPolicy,Ir as McpCognitoOAuthInboundPolicy,Jr as McpEntraOAuthInboundPolicy,kt as McpGatewayOAuthProtectedResourcePlugin,Kr as McpGoogleOAuthInboundPolicy,Mr as McpKeycloakOAuthInboundPolicy,Nr as McpLogtoOAuthInboundPolicy,Yr as McpOAuthInboundPolicy,Or as McpOktaOAuthInboundPolicy,Qr as McpOneLoginOAuthInboundPolicy,Vr as McpPingOAuthInboundPolicy,Wr as McpWorkosOAuthInboundPolicy,A as MemoryZoneReadThroughCache,Zr as MockApiInboundPolicy,ts as MoesifInboundPolicy,rs as MonetizationInboundPolicy,wt as NewRelicLoggingPlugin,Dt as NewRelicMetricsPlugin,Ft as OAuthProtectedResourcePlugin,Et as OTelMetricsPlugin,es as OktaFGAAuthZInboundPolicy,os as OktaJwtInboundPolicy,as as OpenFGAAuthZInboundPolicy,cr as OpenIdJwtInboundPolicy,ns as OpenMeterInboundPolicy,O as OutboundPolicy,R as ProblemResponseFormatter,is as PromptInjectionDetectionOutboundPolicy,ps as PropelAuthJwtInboundPolicy,cs as QueryParamToHeaderInboundPolicy,hs as QuotaInboundPolicy,ms as RateLimitInboundPolicy,gs as ReadmeMetricsInboundPolicy,ds as RemoveHeadersInboundPolicy,us as RemoveHeadersOutboundPolicy,fs as RemoveQueryParamsInboundPolicy,xs as ReplaceStringOutboundPolicy,It as RequestLoggerPlugin,ys as RequestSizeLimitInboundPolicy,Bs as RequestValidationInboundPolicy,Ds as RequireOriginInboundPolicy,Es as RequireUserClaimsInboundPolicy,Y as ResponseSendingEvent,Z as ResponseSentEvent,a as RuntimeError,f as SYSTEM_LOGGER,Cs as SchemaBasedRequestValidation,Hs as SecretMaskingOutboundPolicy,k as SemanticAttributes,Ps as SemanticCacheInboundPolicy,_s as ServiceProviderImpl,Ss as SetBodyInboundPolicy,Ts as SetHeadersInboundPolicy,Us as SetHeadersOutboundPolicy,$s as SetQueryParamsInboundPolicy,ks as SetStatusOutboundPolicy,Fs as SetUpstreamApiKeyInboundPolicy,Ls as SleepInboundPolicy,At as SplunkLoggingPlugin,$ as StreamingZoneCache,Rs as StripeWebhookVerificationInboundPolicy,bt as SumoLogicLoggingPlugin,qs as SupabaseJwtInboundPolicy,M as SystemRouteName,v as TelemetryPlugin,vs as TrafficSplittingInboundPolicy,Gs as UpstreamAwsFederatedAuthInboundPolicy,Is as UpstreamAwsServiceAuthInboundPolicy,Js as UpstreamAzureAdServiceAuthInboundPolicy,Ks as UpstreamFirebaseAdminAuthInboundPolicy,Ms as UpstreamFirebaseUserAuthInboundPolicy,Ns as UpstreamGcpFederatedAuthInboundPolicy,Os as UpstreamGcpJwtInboundPolicy,Qs as UpstreamGcpServiceAuthInboundPolicy,Vs as UpstreamOAuthClientCredentialsInboundPolicy,Ws as UpstreamZuploJwtAuthInboundPolicy,lt as VMWareLogInsightLoggingPlugin,Xs as ValidateJsonSchemaInbound,Ys as WebBotAuthInboundPolicy,Zs as XmlToJsonOutboundPolicy,w as ZoneCache,jt as ZuploMcpSdk,z as ZuploRequest,zs as ZuploServices,rt as aiGatewayHandler,st as aiGatewayHandlerV2,U as apiServices,ot as awsLambdaHandler,Ht as buildCacheOperationBase,zt as defaultGenerateHydrolixEntry,Pt as emitCacheOperation,St as emitCacheOperationLate,y as environment,H as extractAllText,$r as extractGraphqlErrors,S as extractStreamTextDelta,E as flattenMessageContent,j as getFormat,As as getIdForParameterSchema,ls as getIdForRefSchema,bs as getIdForRequestBodySchema,ws as getRawOperationDataIdentifierName,B as getRequestBody,C as getResponseBody,P as getStreamEvents,D as getUsage,L as httpStatuses,at as legacyDevPortalHandler,it as mcpServerHandler,pt as openApiSpecHandler,W as recordGraphqlCacheState,ct as redirectHandler,nt as redirectLegacyDevPortal,kr as responseHasGraphqlErrors,js as sanitizedIdentifierName,I as serialize,_r as setMoesifContext,n as trackFeature,mt as urlForwardHandler,gt as urlRewriteHandler,ut as webSocketHandler,dt as webSocketPipelineHandler,ht as zuploServiceProxy};
26
26
  //# sourceMappingURL=index.js.map
@@ -22,5 +22,5 @@
22
22
  * DEALINGS IN THE SOFTWARE.
23
23
  *--------------------------------------------------------------------------------------------*/
24
24
 
25
- import{a as b,b as c,c as d}from"../../chunk-LDA754KZ.js";import{u as a}from"../../chunk-AEVCZW3D.js";import"../../chunk-A3QGJZO7.js";import"../../chunk-VIH2ISEH.js";import"../../chunk-TYV53J3B.js";export{b as createErrorResponse,c as createResultResponse,a as getRequest,d as processMessages};
25
+ import{a as b,b as c,c as d}from"../../chunk-SNTU476S.js";import{u as a}from"../../chunk-PY52EHDX.js";import"../../chunk-A3QGJZO7.js";import"../../chunk-2HVCLUM4.js";import"../../chunk-TYV53J3B.js";export{b as createErrorResponse,c as createResultResponse,a as getRequest,d as processMessages};
26
26
  //# sourceMappingURL=index.js.map