@zuplo/runtime 6.51.45 → 6.51.46

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.
@@ -22,4 +22,4 @@
22
22
  * DEALINGS IN THE SOFTWARE.
23
23
  *--------------------------------------------------------------------------------------------*/
24
24
 
25
- import{c as e,d as t,f as a,g as o,h as r,i,j as n}from"../chunk-TPMH5PF5.js";import"../chunk-PPV7V43C.js";export{o as getIdForParameterSchema,i as getIdForRefSchema,r as getIdForRequestBodySchema,a as getRawOperationDataIdentifierName,e as isRestrictedEnvVariableName,t as isZuploReadableEnvVariableName,n as sanitizedIdentifierName};
25
+ import{c as e,d as t,f as a,g as o,h as r,i,j as n}from"../chunk-DXTRQA6T.js";import"../chunk-GIIYBL5U.js";export{o as getIdForParameterSchema,i as getIdForRefSchema,r as getIdForRequestBodySchema,a as getRawOperationDataIdentifierName,e as isRestrictedEnvVariableName,t as isZuploReadableEnvVariableName,n as sanitizedIdentifierName};
@@ -22,4 +22,4 @@
22
22
  * DEALINGS IN THE SOFTWARE.
23
23
  *--------------------------------------------------------------------------------------------*/
24
24
 
25
- import{a as t}from"../chunk-PPV7V43C.js";function l(s={request:new Request("https://api.example.com")}){let e=[];function o(r){e.push(Promise.resolve(r))}return t(o,"waitUntil"),{context:new i({event:{waitUntil:o},route:s.route}),invokeResponse:t(async()=>{await Promise.all(e)},"invokeResponse")}}t(l,"createMockContext");var p={path:"/",methods:["GET"],handler:{module:{},export:"default"},raw:t(()=>({}),"raw")},i=class extends EventTarget{static{t(this,"MockZuploContext")}#e;contextId;requestId;log;route;custom;incomingRequestProperties;parentContext;constructor({event:e,route:o=p,parentContext:n}){super(),this.requestId=crypto.randomUUID(),this.contextId=crypto.randomUUID(),this.log={info:console.info,log:console.log,debug:console.debug,warn:console.warn,error:console.error},this.custom={},this.route=o,this.incomingRequestProperties={asn:1234,asOrganization:"ORGANIZATION",city:"Seattle",region:"Washington",regionCode:"WA",colo:"SEA",continent:"NA",country:"US",postalCode:"98004",metroCode:"SEA",latitude:void 0,longitude:void 0,timezone:void 0,httpProtocol:void 0},this.parentContext=n,this.#e=e}waitUntil(e){this.#e.waitUntil(e)}invokeInboundPolicy(e,o){throw new Error("Not implemented")}invokeOutboundPolicy(e,o,n){throw new Error("Not implemented")}invokeRoute(e,o){throw new Error("Not implemented")}addResponseSendingHook(e){throw new Error("Not implemented")}addResponseSendingFinalHook(e){throw new Error("Not implemented")}addEventListener(e,o,n){let u=t(r=>{try{typeof o=="function"?o(r):o.handleEvent(r)}catch(d){throw this.log.error(`Error invoking event ${e}. See following logs for details.`),d}},"wrapped");super.addEventListener(e,u,n)}};export{i as MockZuploContext,l as createMockContext};
25
+ import{a as t}from"../chunk-GIIYBL5U.js";function l(s={request:new Request("https://api.example.com")}){let e=[];function o(r){e.push(Promise.resolve(r))}return t(o,"waitUntil"),{context:new i({event:{waitUntil:o},route:s.route}),invokeResponse:t(async()=>{await Promise.all(e)},"invokeResponse")}}t(l,"createMockContext");var p={path:"/",methods:["GET"],handler:{module:{},export:"default"},raw:t(()=>({}),"raw")},i=class extends EventTarget{static{t(this,"MockZuploContext")}#e;contextId;requestId;log;route;custom;incomingRequestProperties;parentContext;constructor({event:e,route:o=p,parentContext:n}){super(),this.requestId=crypto.randomUUID(),this.contextId=crypto.randomUUID(),this.log={info:console.info,log:console.log,debug:console.debug,warn:console.warn,error:console.error},this.custom={},this.route=o,this.incomingRequestProperties={asn:1234,asOrganization:"ORGANIZATION",city:"Seattle",region:"Washington",regionCode:"WA",colo:"SEA",continent:"NA",country:"US",postalCode:"98004",metroCode:"SEA",latitude:void 0,longitude:void 0,timezone:void 0,httpProtocol:void 0},this.parentContext=n,this.#e=e}waitUntil(e){this.#e.waitUntil(e)}invokeInboundPolicy(e,o){throw new Error("Not implemented")}invokeOutboundPolicy(e,o,n){throw new Error("Not implemented")}invokeRoute(e,o){throw new Error("Not implemented")}addResponseSendingHook(e){throw new Error("Not implemented")}addResponseSendingFinalHook(e){throw new Error("Not implemented")}addEventListener(e,o,n){let u=t(r=>{try{typeof o=="function"?o(r):o.handleEvent(r)}catch(d){throw this.log.error(`Error invoking event ${e}. See following logs for details.`),d}},"wrapped");super.addEventListener(e,u,n)}};export{i as MockZuploContext,l as createMockContext};
@@ -1013,6 +1013,9 @@ declare interface BuildRouteConfiguration {
1013
1013
  * @deprecated This property is deprecated. Use route.raw() instead.
1014
1014
  */
1015
1015
  custom?: any;
1016
+ mcp?: {
1017
+ enabled?: boolean;
1018
+ };
1016
1019
  policies?: {
1017
1020
  inbound?: string[];
1018
1021
  outbound?: string[];
@@ -17,6 +17,9 @@ declare interface BuildRouteConfiguration {
17
17
  * @deprecated This property is deprecated. Use route.raw() instead.
18
18
  */
19
19
  custom?: any;
20
+ mcp?: {
21
+ enabled?: boolean;
22
+ };
20
23
  policies?: {
21
24
  inbound?: string[];
22
25
  outbound?: string[];
@@ -15,6 +15,9 @@ declare interface BuildRouteConfiguration {
15
15
  * @deprecated This property is deprecated. Use route.raw() instead.
16
16
  */
17
17
  custom?: any;
18
+ mcp?: {
19
+ enabled?: boolean;
20
+ };
18
21
  policies?: {
19
22
  inbound?: string[];
20
23
  outbound?: string[];
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@zuplo/runtime",
3
3
  "type": "module",
4
- "version": "6.51.45",
4
+ "version": "6.51.46",
5
5
  "repository": "https://github.com/zuplo/zuplo",
6
6
  "author": "Zuplo, Inc.",
7
7
  "exports": {
@@ -36,6 +36,7 @@
36
36
  "bs58": "^6.0.0",
37
37
  "cookie": "^1.0.1",
38
38
  "jose": "^5.6.3",
39
- "path-to-regexp": "^6.3.0"
39
+ "path-to-regexp": "^6.3.0",
40
+ "zod": "3.25.27"
40
41
  }
41
42
  }