@zuplo/cli 7.15.26 → 7.15.30

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 (98) hide show
  1. package/dist/source/ai-gateway/catalog.json +170 -1
  2. package/dist/source/ai-gateway/planner.d.ts +2 -2
  3. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/jwks/remote.js +2 -2
  4. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/jwt/encrypt.js +5 -8
  5. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/jwe_decrypt.js +1 -1
  6. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/jwe_encrypt.js +2 -2
  7. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/jwt_claims_set.js +1 -1
  8. package/node_modules/@modelcontextprotocol/client/node_modules/jose/dist/webapi/lib/key.js +2 -0
  9. package/node_modules/@modelcontextprotocol/client/node_modules/jose/package.json +1 -1
  10. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/jwks/remote.js +2 -2
  11. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/jwt/encrypt.js +5 -8
  12. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/jwe_decrypt.js +1 -1
  13. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/jwe_encrypt.js +2 -2
  14. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/jwt_claims_set.js +1 -1
  15. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/dist/webapi/lib/key.js +2 -0
  16. package/node_modules/@modelcontextprotocol/sdk/node_modules/jose/package.json +1 -1
  17. package/node_modules/@posthog/core/dist/gzip.d.ts +2 -0
  18. package/node_modules/@posthog/core/dist/gzip.d.ts.map +1 -1
  19. package/node_modules/@posthog/core/dist/gzip.js +17 -1
  20. package/node_modules/@posthog/core/dist/gzip.mjs +15 -2
  21. package/node_modules/@posthog/core/package.json +2 -2
  22. package/node_modules/@posthog/core/src/gzip.ts +21 -4
  23. package/node_modules/@posthog/types/dist/posthog-config.d.ts +82 -0
  24. package/node_modules/@posthog/types/dist/posthog-config.d.ts.map +1 -1
  25. package/node_modules/@posthog/types/package.json +1 -1
  26. package/node_modules/@posthog/types/src/posthog-config.ts +84 -0
  27. package/node_modules/@zuplo/core/customer.cli.minified.js +296 -296
  28. package/node_modules/@zuplo/core/index.minified.js +305 -305
  29. package/node_modules/@zuplo/core/package.json +1 -1
  30. package/node_modules/@zuplo/graphql/package.json +1 -1
  31. package/node_modules/@zuplo/openapi-tools/package.json +1 -1
  32. package/node_modules/@zuplo/otel/package.json +1 -1
  33. package/node_modules/@zuplo/runtime/out/esm/{chunk-I65Y62VQ.js → chunk-3ITT2MYM.js} +10 -10
  34. package/node_modules/@zuplo/runtime/out/esm/chunk-3ITT2MYM.js.map +1 -0
  35. package/node_modules/@zuplo/runtime/out/esm/{chunk-5XXEIH5B.js → chunk-A7HRIAHJ.js} +2 -2
  36. package/node_modules/@zuplo/runtime/out/esm/{chunk-6KHAYHSW.js → chunk-C4ZTXG6P.js} +4 -4
  37. package/node_modules/@zuplo/runtime/out/esm/chunk-C4ZTXG6P.js.map +1 -0
  38. package/node_modules/@zuplo/runtime/out/esm/{chunk-APWLPHXH.js → chunk-JAY7SQGG.js} +2 -2
  39. package/node_modules/@zuplo/runtime/out/esm/{chunk-MWNVPFFM.js → chunk-YTDIY7PP.js} +2 -2
  40. package/node_modules/@zuplo/runtime/out/esm/index.js +1 -1
  41. package/node_modules/@zuplo/runtime/out/esm/mcp/messages/index.js +1 -1
  42. package/node_modules/@zuplo/runtime/out/esm/mcp-gateway/index.js +1 -1
  43. package/node_modules/@zuplo/runtime/out/esm/mocks/index.js +1 -1
  44. package/node_modules/@zuplo/runtime/out/esm/sdks/aws/index.js +1 -1
  45. package/node_modules/@zuplo/runtime/out/types/index.d.ts +16 -0
  46. package/node_modules/@zuplo/runtime/out/types/internal/index.d.ts +16 -0
  47. package/node_modules/@zuplo/runtime/package.json +1 -1
  48. package/node_modules/express-rate-limit/dist/index.cjs +6 -4
  49. package/node_modules/express-rate-limit/dist/index.mjs +6 -4
  50. package/node_modules/express-rate-limit/package.json +1 -1
  51. package/node_modules/fast-copy/README.md +15 -0
  52. package/node_modules/fast-copy/dist/cjs/index.cjs +33 -8
  53. package/node_modules/fast-copy/dist/cjs/index.cjs.map +1 -1
  54. package/node_modules/fast-copy/dist/es/index.mjs +33 -8
  55. package/node_modules/fast-copy/dist/es/index.mjs.map +1 -1
  56. package/node_modules/fast-copy/dist/umd/index.js +33 -8
  57. package/node_modules/fast-copy/dist/umd/index.js.map +1 -1
  58. package/node_modules/fast-copy/package.json +1 -1
  59. package/node_modules/object-inspect/CHANGELOG.md +31 -0
  60. package/node_modules/object-inspect/index.js +326 -24
  61. package/node_modules/object-inspect/package.json +22 -13
  62. package/node_modules/object-inspect/readme.markdown +4 -1
  63. package/node_modules/object-inspect/stringWidth.js +68 -0
  64. package/node_modules/object-inspect/stringWidthRanges.js +38 -0
  65. package/package.json +11 -11
  66. package/node_modules/@zuplo/runtime/out/esm/chunk-6KHAYHSW.js.map +0 -1
  67. package/node_modules/@zuplo/runtime/out/esm/chunk-I65Y62VQ.js.map +0 -1
  68. package/node_modules/object-inspect/.eslintrc +0 -53
  69. package/node_modules/object-inspect/.nycrc +0 -13
  70. package/node_modules/object-inspect/example/all.js +0 -23
  71. package/node_modules/object-inspect/example/circular.js +0 -6
  72. package/node_modules/object-inspect/example/fn.js +0 -5
  73. package/node_modules/object-inspect/example/inspect.js +0 -10
  74. package/node_modules/object-inspect/test/bigint.js +0 -58
  75. package/node_modules/object-inspect/test/browser/dom.js +0 -15
  76. package/node_modules/object-inspect/test/circular.js +0 -16
  77. package/node_modules/object-inspect/test/deep.js +0 -12
  78. package/node_modules/object-inspect/test/element.js +0 -53
  79. package/node_modules/object-inspect/test/err.js +0 -48
  80. package/node_modules/object-inspect/test/fakes.js +0 -29
  81. package/node_modules/object-inspect/test/fn.js +0 -76
  82. package/node_modules/object-inspect/test/global.js +0 -17
  83. package/node_modules/object-inspect/test/has.js +0 -15
  84. package/node_modules/object-inspect/test/holes.js +0 -15
  85. package/node_modules/object-inspect/test/indent-option.js +0 -271
  86. package/node_modules/object-inspect/test/inspect.js +0 -139
  87. package/node_modules/object-inspect/test/lowbyte.js +0 -12
  88. package/node_modules/object-inspect/test/number.js +0 -58
  89. package/node_modules/object-inspect/test/quoteStyle.js +0 -26
  90. package/node_modules/object-inspect/test/toStringTag.js +0 -40
  91. package/node_modules/object-inspect/test/undef.js +0 -12
  92. package/node_modules/object-inspect/test/values.js +0 -261
  93. package/node_modules/object-inspect/test-core-js.js +0 -26
  94. /package/node_modules/@zuplo/runtime/out/esm/{chunk-I65Y62VQ.js.LEGAL.txt → chunk-3ITT2MYM.js.LEGAL.txt} +0 -0
  95. /package/node_modules/@zuplo/runtime/out/esm/{chunk-5XXEIH5B.js.map → chunk-A7HRIAHJ.js.map} +0 -0
  96. /package/node_modules/@zuplo/runtime/out/esm/{chunk-6KHAYHSW.js.LEGAL.txt → chunk-C4ZTXG6P.js.LEGAL.txt} +0 -0
  97. /package/node_modules/@zuplo/runtime/out/esm/{chunk-APWLPHXH.js.map → chunk-JAY7SQGG.js.map} +0 -0
  98. /package/node_modules/@zuplo/runtime/out/esm/{chunk-MWNVPFFM.js.map → chunk-YTDIY7PP.js.map} +0 -0
@@ -9,5 +9,5 @@
9
9
  * See https://zuplo.com/legal/eula for more information.
10
10
  */
11
11
 
12
- import{a as g}from"./chunk-R6UNMRUU.js";import{X as T}from"./chunk-I65Y62VQ.js";import{a as r}from"./chunk-VXPFMOL5.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};
13
- //# sourceMappingURL=chunk-APWLPHXH.js.map
12
+ import{a as g}from"./chunk-R6UNMRUU.js";import{X as T}from"./chunk-3ITT2MYM.js";import{a as r}from"./chunk-VXPFMOL5.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};
13
+ //# sourceMappingURL=chunk-JAY7SQGG.js.map
@@ -9,5 +9,5 @@
9
9
  * See https://zuplo.com/legal/eula for more information.
10
10
  */
11
11
 
12
- 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-APWLPHXH.js";import{a as l}from"./chunk-VXPFMOL5.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};
13
- //# sourceMappingURL=chunk-MWNVPFFM.js.map
12
+ 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-JAY7SQGG.js";import{a as l}from"./chunk-VXPFMOL5.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};
13
+ //# sourceMappingURL=chunk-YTDIY7PP.js.map
@@ -9,5 +9,5 @@
9
9
  * See https://zuplo.com/legal/eula for more information.
10
10
  */
11
11
 
12
- import{$ as at,$e as cr,$h as cs,A as F,Ae as Rt,Af as Rr,Ai as Is,B as L,Be as qt,Bf as qr,Bi as Js,C as R,Ce as vt,Cf as vr,Ci as Ks,D as q,De as zt,Df as zr,Di as Ns,Ee as Gt,Ef as Gr,Ei as Os,F as v,Fe as It,Ff as Ir,Fi as Qs,Ge as Jt,Gf as Jr,Gi as Vs,H as N,He as Kt,Hf as Kr,Hi as Ws,I as O,Ie as Mt,If as Mr,Ii as Xs,J as Q,Je as Nt,Ji as Ys,K as V,Ke as Ot,Ki as Zs,Le as Qt,Li as _s,M as W,Me as Vt,Mi as te,N as X,Ne as Wt,Ni as re,O as Y,Oe as Xt,Oi as se,Pe as Yt,Pi as ee,Qe as Zt,Qi as oe,R as Z,Re as _t,Ri as ae,S as _,Se as tr,Si as ne,T as tt,Te as rr,Th as rs,Ti as ie,U as rt,Ue as sr,Uh as ss,Ve as er,Vh as es,We as or,Wh as os,X as st,Xe as ar,Xh as as,Y as et,Ye as nr,Yh as ns,Ze as ir,Zh as is,_ as ot,_e as pr,_h as ps,a as y,af as hr,ai as hs,ba as nt,be as gt,bf as mr,bi as ms,c as b,ca as it,ce as dt,cf as gr,ci as gs,d as l,da as pt,de as ut,df as dr,di as ds,e as j,ea as ct,ee as ft,ef as ur,ei as us,f as B,fa as ht,fe as xt,ff as fr,fi as fs,g as C,ga as mt,ge as yt,gf as xr,gi as xs,h as D,hf as yr,hi as ys,i as E,ie as wt,if as wr,ii as ws,j as H,je as At,jf as Ar,jg as Nr,ji as As,k as P,ke as bt,kf as br,kg as Or,ki as bs,l as S,le as lt,lf as lr,lg as Qr,li as ls,m as T,me as jt,mf as jr,mg as Vr,mi as js,n as U,ne as Bt,nf as Br,ng as Wr,ni as Ps,o as $,oe as Ct,of as Cr,og as Xr,oi as Ss,pe as Dt,pf as Dr,pg as Yr,pi as Ts,qe as Et,qf as Er,qg as Zr,qi as Us,re as Ht,rf as Hr,rg as _r,ri as $s,se as Pt,sf as Pr,sg as ts,si as ks,te as St,tf as Sr,ti as Fs,ue as Tt,uf as Tr,ui as Ls,ve as Ut,vf as Ur,vi as Rs,we as $t,wf as $r,wi as qs,xe as kt,xf as kr,xi as vs,ye as Ft,yf as Fr,yi as zs,z as k,ze as Lt,zf as Lr,zi as Gs}from"./chunk-6KHAYHSW.js";import{B as J,C as K,c as n,oa as Bs,p as z,pa as Cs,qa as Ds,ra as Es,sa as Hs,t as G,w as I}from"./chunk-KZBZ5KM5.js";import{a as M}from"./chunk-APWLPHXH.js";import"./chunk-R6UNMRUU.js";import{E as w,F as A,M as Ms}from"./chunk-5XXEIH5B.js";import{a as x}from"./chunk-5JGLAPFA.js";import{W as f}from"./chunk-I65Y62VQ.js";import{a as t,g as a,h as u}from"./chunk-VXPFMOL5.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{Qt as AIGatewayAkamaiFirewallInboundPolicy,Vt as AIGatewayAuthInboundPolicy,Vt as AIGatewayAuthV2InboundPolicy,Wt as AIGatewayConfigurationExecutorInboundPolicy,Wt as AIGatewayConfigurationExecutorV2InboundPolicy,Xt as AIGatewayConfigurationLoaderInboundPolicy,Xt as AIGatewayConfigurationLoaderV2InboundPolicy,Yt as AIGatewayDlpInboundPolicy,Zt as AIGatewayFallbackModelInboundPolicy,Zt as AIGatewayFallbackModelV2InboundPolicy,_t as AIGatewayGalileoTracingInboundPolicy,Jr as AIGatewayInternalOnlyInboundPolicy,tr as AIGatewayLoadBalancingInboundPolicy,at as AIGatewayMeteringInboundPolicy,at as AIGatewayMeteringV2InboundPolicy,rr as AIGatewayModelFilteringInboundPolicy,rr as AIGatewayModelFilteringV2InboundPolicy,sr as AIGatewayModelOverrideInboundPolicy,l as AIGatewayModelRouting,b as AIGatewayModels,er as AIGatewayOpikTracingInboundPolicy,or as AIGatewayPromptInjectionPolicy,ar as AIGatewaySemanticCacheInboundPolicy,ar as AIGatewaySemanticCacheV2InboundPolicy,T as AIGatewaySmartRouter,nr as AIGatewaySmartRouterInboundPolicy,bt as AWSLoggingPlugin,Qt as AkamaiAIFirewallV2InboundPolicy,Gt as AkamaiApiSecurityPlugin,ir as AkamaiFirewallForAiInboundPolicy,pr as AkamaiFirewallForAiOutboundPolicy,hr as AmberfloMeteringInboundPolicy,cr as AmberfloMeteringPolicy,gr as ApiAuthKeyInboundPolicy,ne as ApiKeyConsumerClient,mr as ApiKeyInboundPolicy,Lt as AuditLogDataStaxProvider,dr as AuditLogInboundPolicy,Rt as AuditLogPlugin,fr as Auth0JwtInboundPolicy,xr as AuthZenInboundPolicy,pt as AwsLambdaHandlerExtensions,yr as AxiomaticsAuthZInboundPolicy,Jt as AzureBlobPlugin,Kt as AzureEventHubsRequestLoggerPlugin,Q as BackgroundDispatchError,It as BackgroundDispatcher,ie as BackgroundLoader,wr as BasicAuthInboundPolicy,xs as BasicRateLimitInboundPolicy,V as BatchDispatch,Ar as BrownoutInboundPolicy,br as CachingInboundPolicy,lr as CdnCacheControlOutboundPolicy,jr as ChangeMethodInboundPolicy,Br as ClearHeadersInboundPolicy,Cr as ClearHeadersOutboundPolicy,Dr as ClerkJwtInboundPolicy,Er as CognitoJwtInboundPolicy,er as CometOpikTracingV2InboundPolicy,Hr as ComplexRateLimitInboundPolicy,Pr as CompositeInboundPolicy,Sr as CompositeOutboundPolicy,Tr as ConcurrencyLimitInboundPolicy,u as ConfigurationError,N as ContentTypes,x as ContextData,o as CryptoBeta,Ur as CurityPhantomTokenInboundPolicy,_ as DataDogLoggingPlugin,Pt as DataDogMetricsPlugin,$r as DataLossPreventionInboundPolicy,kr as DataLossPreventionOutboundPolicy,lt as DynaTraceLoggingPlugin,St as DynatraceMetricsPlugin,Fr as FirebaseJwtInboundPolicy,Lr as FormDataToJsonInboundPolicy,_t as GalileoTracingV2InboundPolicy,Rr as GeoFilterInboundPolicy,Z as GoogleCloudLoggingPlugin,zr as GraphqlAnalyticsOutboundPolicy,ot as Handler,Gr as HttpDeprecationOutboundPolicy,q as HttpProblems,F as HttpStatusCode,Nt as HydrolixRequestLoggerPlugin,X as InboundPolicy,Ir as InternalOnlyInboundPolicy,Kr as IpAddressRestrictionInboundPolicy,Mr as JWTScopeValidationInboundPolicy,qt as JwtServicePlugin,jt as LokiLoggingPlugin,rt as LookupResult,is as MTLSAuthInboundPolicy,rs as McpAuth0OAuthInboundPolicy,Nr as McpClerkOAuthInboundPolicy,Or as McpCognitoOAuthInboundPolicy,Qr as McpEntraOAuthInboundPolicy,vt as McpGatewayOAuthProtectedResourcePlugin,Vr as McpGoogleOAuthInboundPolicy,Wr as McpKeycloakOAuthInboundPolicy,Xr as McpLogtoOAuthInboundPolicy,ss as McpOAuthInboundPolicy,Yr as McpOktaOAuthInboundPolicy,Zr as McpOneLoginOAuthInboundPolicy,_r as McpPingOAuthInboundPolicy,ts as McpWorkosOAuthInboundPolicy,A as MemoryZoneReadThroughCache,es as MockApiInboundPolicy,as as MoesifInboundPolicy,ns as MonetizationInboundPolicy,Bt as NewRelicLoggingPlugin,Tt as NewRelicMetricsPlugin,zt as OAuthProtectedResourcePlugin,Ut as OTelMetricsPlugin,ps as OktaFGAAuthZInboundPolicy,cs as OktaJwtInboundPolicy,hs as OpenFGAAuthZInboundPolicy,ur as OpenIdJwtInboundPolicy,ms as OpenMeterInboundPolicy,Y as OutboundPolicy,R as ProblemResponseFormatter,gs as PromptInjectionDetectionOutboundPolicy,ds as PropelAuthJwtInboundPolicy,us as QueryParamToHeaderInboundPolicy,fs as QuotaInboundPolicy,z as REDACTION_FAILED_PLACEHOLDER,xs as RateLimitInboundPolicy,ys as ReadmeMetricsInboundPolicy,ws as RemoveHeadersInboundPolicy,As as RemoveHeadersOutboundPolicy,bs as RemoveQueryParamsInboundPolicy,ls as ReplaceStringOutboundPolicy,Ot as RequestLoggerPlugin,js as RequestSizeLimitInboundPolicy,Ps as RequestValidationInboundPolicy,Ts as RequireOriginInboundPolicy,Us as RequireUserClaimsInboundPolicy,st as ResponseSendingEvent,et as ResponseSentEvent,a as RuntimeError,f as SYSTEM_LOGGER,Ss as SchemaBasedRequestValidation,$s as SecretMaskingOutboundPolicy,k as SemanticAttributes,ks as SemanticCacheInboundPolicy,ae as ServiceProviderImpl,Fs as SetBodyInboundPolicy,Ls as SetHeadersInboundPolicy,Rs as SetHeadersOutboundPolicy,qs as SetQueryParamsInboundPolicy,vs as SetStatusOutboundPolicy,zs as SetUpstreamApiKeyInboundPolicy,Gs as SleepInboundPolicy,Ct as SplunkLoggingPlugin,$ as StreamingZoneCache,Is as StripeWebhookVerificationInboundPolicy,Dt as SumoLogicLoggingPlugin,Js as SupabaseJwtInboundPolicy,W as SystemRouteName,v as TelemetryPlugin,Ks as TrafficSplittingInboundPolicy,Ns as UpstreamAwsFederatedAuthInboundPolicy,Os as UpstreamAwsServiceAuthInboundPolicy,Qs as UpstreamAzureAdServiceAuthInboundPolicy,Vs as UpstreamFirebaseAdminAuthInboundPolicy,Ws as UpstreamFirebaseUserAuthInboundPolicy,Xs as UpstreamGcpFederatedAuthInboundPolicy,Ys as UpstreamGcpJwtInboundPolicy,Zs as UpstreamGcpServiceAuthInboundPolicy,_s as UpstreamOAuthClientCredentialsInboundPolicy,te as UpstreamZuploJwtAuthInboundPolicy,Et as VMWareLogInsightLoggingPlugin,re as ValidateJsonSchemaInbound,se as WebBotAuthInboundPolicy,ee as XmlToJsonOutboundPolicy,w as ZoneCache,Ht as ZuploMcpSdk,M as ZuploRequest,Ms as ZuploServices,nt as aiGatewayHandler,it as aiGatewayHandlerV2,U as apiServices,ct as awsLambdaHandler,$t as buildCacheOperationBase,I as createRedactionBudget,oe as createRedactor,Mt as defaultGenerateHydrolixEntry,kt as emitCacheOperation,Ft as emitCacheOperationLate,y as environment,H as extractAllText,qr as extractGraphqlErrors,S as extractStreamTextDelta,E as flattenMessageContent,j as getFormat,Cs as getIdForParameterSchema,Es as getIdForRefSchema,Ds as getIdForRequestBodySchema,Bs as getRawOperationDataIdentifierName,B as getRequestBody,C as getResponseBody,P as getStreamEvents,D as getUsage,G as hasTelemetryRedactors,L as httpStatuses,ht as legacyDevPortalHandler,gt as mcpServerHandler,dt as openApiSpecHandler,tt as recordGraphqlCacheState,J as redactTelemetryAttributes,K as redactTelemetryString,ut as redirectHandler,mt as redirectLegacyDevPortal,vr as responseHasGraphqlErrors,Hs as sanitizedIdentifierName,O as serialize,os as setMoesifContext,n as trackFeature,xt as urlForwardHandler,yt as urlRewriteHandler,At as webSocketHandler,wt as webSocketPipelineHandler,ft as zuploServiceProxy};
12
+ import{$ as at,$e as cr,$h as cs,A as F,Ae as Rt,Af as Rr,Ai as Is,B as L,Be as qt,Bf as qr,Bi as Js,C as R,Ce as vt,Cf as vr,Ci as Ks,D as q,De as zt,Df as zr,Di as Ns,Ee as Gt,Ef as Gr,Ei as Os,F as v,Fe as It,Ff as Ir,Fi as Qs,Ge as Jt,Gf as Jr,Gi as Vs,H as N,He as Kt,Hf as Kr,Hi as Ws,I as O,Ie as Mt,If as Mr,Ii as Xs,J as Q,Je as Nt,Ji as Ys,K as V,Ke as Ot,Ki as Zs,Le as Qt,Li as _s,M as W,Me as Vt,Mi as te,N as X,Ne as Wt,Ni as re,O as Y,Oe as Xt,Oi as se,Pe as Yt,Pi as ee,Qe as Zt,Qi as oe,R as Z,Re as _t,Ri as ae,S as _,Se as tr,Si as ne,T as tt,Te as rr,Th as rs,Ti as ie,U as rt,Ue as sr,Uh as ss,Ve as er,Vh as es,We as or,Wh as os,X as st,Xe as ar,Xh as as,Y as et,Ye as nr,Yh as ns,Ze as ir,Zh as is,_ as ot,_e as pr,_h as ps,a as y,af as hr,ai as hs,ba as nt,be as gt,bf as mr,bi as ms,c as b,ca as it,ce as dt,cf as gr,ci as gs,d as l,da as pt,de as ut,df as dr,di as ds,e as j,ea as ct,ee as ft,ef as ur,ei as us,f as B,fa as ht,fe as xt,ff as fr,fi as fs,g as C,ga as mt,ge as yt,gf as xr,gi as xs,h as D,hf as yr,hi as ys,i as E,ie as wt,if as wr,ii as ws,j as H,je as At,jf as Ar,jg as Nr,ji as As,k as P,ke as bt,kf as br,kg as Or,ki as bs,l as S,le as lt,lf as lr,lg as Qr,li as ls,m as T,me as jt,mf as jr,mg as Vr,mi as js,n as U,ne as Bt,nf as Br,ng as Wr,ni as Ps,o as $,oe as Ct,of as Cr,og as Xr,oi as Ss,pe as Dt,pf as Dr,pg as Yr,pi as Ts,qe as Et,qf as Er,qg as Zr,qi as Us,re as Ht,rf as Hr,rg as _r,ri as $s,se as Pt,sf as Pr,sg as ts,si as ks,te as St,tf as Sr,ti as Fs,ue as Tt,uf as Tr,ui as Ls,ve as Ut,vf as Ur,vi as Rs,we as $t,wf as $r,wi as qs,xe as kt,xf as kr,xi as vs,ye as Ft,yf as Fr,yi as zs,z as k,ze as Lt,zf as Lr,zi as Gs}from"./chunk-C4ZTXG6P.js";import{B as J,C as K,c as n,oa as Bs,p as z,pa as Cs,qa as Ds,ra as Es,sa as Hs,t as G,w as I}from"./chunk-KZBZ5KM5.js";import{a as M}from"./chunk-JAY7SQGG.js";import"./chunk-R6UNMRUU.js";import{E as w,F as A,M as Ms}from"./chunk-A7HRIAHJ.js";import{a as x}from"./chunk-5JGLAPFA.js";import{W as f}from"./chunk-3ITT2MYM.js";import{a as t,g as a,h as u}from"./chunk-VXPFMOL5.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{Qt as AIGatewayAkamaiFirewallInboundPolicy,Vt as AIGatewayAuthInboundPolicy,Vt as AIGatewayAuthV2InboundPolicy,Wt as AIGatewayConfigurationExecutorInboundPolicy,Wt as AIGatewayConfigurationExecutorV2InboundPolicy,Xt as AIGatewayConfigurationLoaderInboundPolicy,Xt as AIGatewayConfigurationLoaderV2InboundPolicy,Yt as AIGatewayDlpInboundPolicy,Zt as AIGatewayFallbackModelInboundPolicy,Zt as AIGatewayFallbackModelV2InboundPolicy,_t as AIGatewayGalileoTracingInboundPolicy,Jr as AIGatewayInternalOnlyInboundPolicy,tr as AIGatewayLoadBalancingInboundPolicy,at as AIGatewayMeteringInboundPolicy,at as AIGatewayMeteringV2InboundPolicy,rr as AIGatewayModelFilteringInboundPolicy,rr as AIGatewayModelFilteringV2InboundPolicy,sr as AIGatewayModelOverrideInboundPolicy,l as AIGatewayModelRouting,b as AIGatewayModels,er as AIGatewayOpikTracingInboundPolicy,or as AIGatewayPromptInjectionPolicy,ar as AIGatewaySemanticCacheInboundPolicy,ar as AIGatewaySemanticCacheV2InboundPolicy,T as AIGatewaySmartRouter,nr as AIGatewaySmartRouterInboundPolicy,bt as AWSLoggingPlugin,Qt as AkamaiAIFirewallV2InboundPolicy,Gt as AkamaiApiSecurityPlugin,ir as AkamaiFirewallForAiInboundPolicy,pr as AkamaiFirewallForAiOutboundPolicy,hr as AmberfloMeteringInboundPolicy,cr as AmberfloMeteringPolicy,gr as ApiAuthKeyInboundPolicy,ne as ApiKeyConsumerClient,mr as ApiKeyInboundPolicy,Lt as AuditLogDataStaxProvider,dr as AuditLogInboundPolicy,Rt as AuditLogPlugin,fr as Auth0JwtInboundPolicy,xr as AuthZenInboundPolicy,pt as AwsLambdaHandlerExtensions,yr as AxiomaticsAuthZInboundPolicy,Jt as AzureBlobPlugin,Kt as AzureEventHubsRequestLoggerPlugin,Q as BackgroundDispatchError,It as BackgroundDispatcher,ie as BackgroundLoader,wr as BasicAuthInboundPolicy,xs as BasicRateLimitInboundPolicy,V as BatchDispatch,Ar as BrownoutInboundPolicy,br as CachingInboundPolicy,lr as CdnCacheControlOutboundPolicy,jr as ChangeMethodInboundPolicy,Br as ClearHeadersInboundPolicy,Cr as ClearHeadersOutboundPolicy,Dr as ClerkJwtInboundPolicy,Er as CognitoJwtInboundPolicy,er as CometOpikTracingV2InboundPolicy,Hr as ComplexRateLimitInboundPolicy,Pr as CompositeInboundPolicy,Sr as CompositeOutboundPolicy,Tr as ConcurrencyLimitInboundPolicy,u as ConfigurationError,N as ContentTypes,x as ContextData,o as CryptoBeta,Ur as CurityPhantomTokenInboundPolicy,_ as DataDogLoggingPlugin,Pt as DataDogMetricsPlugin,$r as DataLossPreventionInboundPolicy,kr as DataLossPreventionOutboundPolicy,lt as DynaTraceLoggingPlugin,St as DynatraceMetricsPlugin,Fr as FirebaseJwtInboundPolicy,Lr as FormDataToJsonInboundPolicy,_t as GalileoTracingV2InboundPolicy,Rr as GeoFilterInboundPolicy,Z as GoogleCloudLoggingPlugin,zr as GraphqlAnalyticsOutboundPolicy,ot as Handler,Gr as HttpDeprecationOutboundPolicy,q as HttpProblems,F as HttpStatusCode,Nt as HydrolixRequestLoggerPlugin,X as InboundPolicy,Ir as InternalOnlyInboundPolicy,Kr as IpAddressRestrictionInboundPolicy,Mr as JWTScopeValidationInboundPolicy,qt as JwtServicePlugin,jt as LokiLoggingPlugin,rt as LookupResult,is as MTLSAuthInboundPolicy,rs as McpAuth0OAuthInboundPolicy,Nr as McpClerkOAuthInboundPolicy,Or as McpCognitoOAuthInboundPolicy,Qr as McpEntraOAuthInboundPolicy,vt as McpGatewayOAuthProtectedResourcePlugin,Vr as McpGoogleOAuthInboundPolicy,Wr as McpKeycloakOAuthInboundPolicy,Xr as McpLogtoOAuthInboundPolicy,ss as McpOAuthInboundPolicy,Yr as McpOktaOAuthInboundPolicy,Zr as McpOneLoginOAuthInboundPolicy,_r as McpPingOAuthInboundPolicy,ts as McpWorkosOAuthInboundPolicy,A as MemoryZoneReadThroughCache,es as MockApiInboundPolicy,as as MoesifInboundPolicy,ns as MonetizationInboundPolicy,Bt as NewRelicLoggingPlugin,Tt as NewRelicMetricsPlugin,zt as OAuthProtectedResourcePlugin,Ut as OTelMetricsPlugin,ps as OktaFGAAuthZInboundPolicy,cs as OktaJwtInboundPolicy,hs as OpenFGAAuthZInboundPolicy,ur as OpenIdJwtInboundPolicy,ms as OpenMeterInboundPolicy,Y as OutboundPolicy,R as ProblemResponseFormatter,gs as PromptInjectionDetectionOutboundPolicy,ds as PropelAuthJwtInboundPolicy,us as QueryParamToHeaderInboundPolicy,fs as QuotaInboundPolicy,z as REDACTION_FAILED_PLACEHOLDER,xs as RateLimitInboundPolicy,ys as ReadmeMetricsInboundPolicy,ws as RemoveHeadersInboundPolicy,As as RemoveHeadersOutboundPolicy,bs as RemoveQueryParamsInboundPolicy,ls as ReplaceStringOutboundPolicy,Ot as RequestLoggerPlugin,js as RequestSizeLimitInboundPolicy,Ps as RequestValidationInboundPolicy,Ts as RequireOriginInboundPolicy,Us as RequireUserClaimsInboundPolicy,st as ResponseSendingEvent,et as ResponseSentEvent,a as RuntimeError,f as SYSTEM_LOGGER,Ss as SchemaBasedRequestValidation,$s as SecretMaskingOutboundPolicy,k as SemanticAttributes,ks as SemanticCacheInboundPolicy,ae as ServiceProviderImpl,Fs as SetBodyInboundPolicy,Ls as SetHeadersInboundPolicy,Rs as SetHeadersOutboundPolicy,qs as SetQueryParamsInboundPolicy,vs as SetStatusOutboundPolicy,zs as SetUpstreamApiKeyInboundPolicy,Gs as SleepInboundPolicy,Ct as SplunkLoggingPlugin,$ as StreamingZoneCache,Is as StripeWebhookVerificationInboundPolicy,Dt as SumoLogicLoggingPlugin,Js as SupabaseJwtInboundPolicy,W as SystemRouteName,v as TelemetryPlugin,Ks as TrafficSplittingInboundPolicy,Ns as UpstreamAwsFederatedAuthInboundPolicy,Os as UpstreamAwsServiceAuthInboundPolicy,Qs as UpstreamAzureAdServiceAuthInboundPolicy,Vs as UpstreamFirebaseAdminAuthInboundPolicy,Ws as UpstreamFirebaseUserAuthInboundPolicy,Xs as UpstreamGcpFederatedAuthInboundPolicy,Ys as UpstreamGcpJwtInboundPolicy,Zs as UpstreamGcpServiceAuthInboundPolicy,_s as UpstreamOAuthClientCredentialsInboundPolicy,te as UpstreamZuploJwtAuthInboundPolicy,Et as VMWareLogInsightLoggingPlugin,re as ValidateJsonSchemaInbound,se as WebBotAuthInboundPolicy,ee as XmlToJsonOutboundPolicy,w as ZoneCache,Ht as ZuploMcpSdk,M as ZuploRequest,Ms as ZuploServices,nt as aiGatewayHandler,it as aiGatewayHandlerV2,U as apiServices,ct as awsLambdaHandler,$t as buildCacheOperationBase,I as createRedactionBudget,oe as createRedactor,Mt as defaultGenerateHydrolixEntry,kt as emitCacheOperation,Ft as emitCacheOperationLate,y as environment,H as extractAllText,qr as extractGraphqlErrors,S as extractStreamTextDelta,E as flattenMessageContent,j as getFormat,Cs as getIdForParameterSchema,Es as getIdForRefSchema,Ds as getIdForRequestBodySchema,Bs as getRawOperationDataIdentifierName,B as getRequestBody,C as getResponseBody,P as getStreamEvents,D as getUsage,G as hasTelemetryRedactors,L as httpStatuses,ht as legacyDevPortalHandler,gt as mcpServerHandler,dt as openApiSpecHandler,tt as recordGraphqlCacheState,J as redactTelemetryAttributes,K as redactTelemetryString,ut as redirectHandler,mt as redirectLegacyDevPortal,vr as responseHasGraphqlErrors,Hs as sanitizedIdentifierName,O as serialize,os as setMoesifContext,n as trackFeature,xt as urlForwardHandler,yt as urlRewriteHandler,At as webSocketHandler,wt as webSocketPipelineHandler,ft as zuploServiceProxy};
13
13
  //# sourceMappingURL=index.js.map
@@ -9,5 +9,5 @@
9
9
  * See https://zuplo.com/legal/eula for more information.
10
10
  */
11
11
 
12
- import{a as b,b as c,c as d}from"../../chunk-MWNVPFFM.js";import{u as a}from"../../chunk-APWLPHXH.js";import"../../chunk-R6UNMRUU.js";import"../../chunk-I65Y62VQ.js";import"../../chunk-VXPFMOL5.js";export{b as createErrorResponse,c as createResultResponse,a as getRequest,d as processMessages};
12
+ import{a as b,b as c,c as d}from"../../chunk-YTDIY7PP.js";import{u as a}from"../../chunk-JAY7SQGG.js";import"../../chunk-R6UNMRUU.js";import"../../chunk-3ITT2MYM.js";import"../../chunk-VXPFMOL5.js";export{b as createErrorResponse,c as createResultResponse,a as getRequest,d as processMessages};
13
13
  //# sourceMappingURL=index.js.map