@frontmcp/protocol 1.11.3 → 1.12.0-rc.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/esm/index.mjs CHANGED
@@ -1,3 +1,3 @@
1
- var __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __hasOwnProp=Object.prototype.hasOwnProperty;var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:true})};var __copyProps=(to,from,except,desc)=>{if(from&&typeof from==="object"||typeof from==="function"){for(let key of __getOwnPropNames(from))if(!__hasOwnProp.call(to,key)&&key!==except)__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable})}return to};var __reExport=(target,mod,secondTarget)=>(__copyProps(target,mod,"default"),secondTarget&&__copyProps(secondTarget,mod,"default"));var index_exports={};__export(index_exports,{AjvJsonSchemaValidator:()=>AjvJsonSchemaValidator,HttpServerResponse:()=>HttpServerResponse,InMemoryTransport:()=>InMemoryTransport,IncomingMessage:()=>IncomingMessage,MCP_20260728_ADDED_METHODS:()=>MCP_20260728_ADDED_METHODS,MCP_20260728_ERROR_CODES:()=>MCP_20260728_ERROR_CODES,MCP_20260728_META:()=>MCP_20260728_META,MCP_20260728_REMOVED_METHODS:()=>MCP_20260728_REMOVED_METHODS,MCP_20260728_RETIRED_ERROR_CODES:()=>MCP_20260728_RETIRED_ERROR_CODES,McpServer:()=>Server,PROTOCOL_2026_07_28:()=>PROTOCOL_2026_07_28,SUBSCRIPTIONS_ACKNOWLEDGED_METHOD:()=>SUBSCRIPTIONS_ACKNOWLEDGED_METHOD,StdioServerTransport:()=>StdioServerTransport,StreamableHTTPServerTransport:()=>StreamableHTTPServerTransport,WebStandardStreamableHTTPServerTransport:()=>WebStandardStreamableHTTPServerTransport,isProtocol20260728:()=>isProtocol20260728,readDeclaredProtocolVersion:()=>readDeclaredProtocolVersion});var types_exports={};__reExport(types_exports,types_star);import*as types_star from"@modelcontextprotocol/sdk/types.js";__reExport(index_exports,types_exports);var PROTOCOL_2026_07_28="2026-07-28";var MCP_20260728_META={protocolVersion:"io.modelcontextprotocol/protocolVersion",clientInfo:"io.modelcontextprotocol/clientInfo",clientCapabilities:"io.modelcontextprotocol/clientCapabilities",logLevel:"io.modelcontextprotocol/logLevel",serverInfo:"io.modelcontextprotocol/serverInfo",subscriptionId:"io.modelcontextprotocol/subscriptionId"};var MCP_20260728_ERROR_CODES={headerMismatch:-32020,missingRequiredClientCapability:-32021,unsupportedProtocolVersion:-32022};var MCP_20260728_RETIRED_ERROR_CODES=[-32002,-32042];var MCP_20260728_REMOVED_METHODS=["initialize","notifications/initialized","ping","logging/setLevel","notifications/roots/list_changed","resources/subscribe","resources/unsubscribe","tasks/list","tasks/result"];var MCP_20260728_ADDED_METHODS=["server/discover","subscriptions/listen"];var SUBSCRIPTIONS_ACKNOWLEDGED_METHOD="notifications/subscriptions/acknowledged";function isProtocol20260728(version){return version===PROTOCOL_2026_07_28}function readDeclaredProtocolVersion(body){const params=body?.params;const declared=params?._meta?.[MCP_20260728_META.protocolVersion];return typeof declared==="string"?declared:void 0}import{StdioServerTransport}from"#stdio-server";import{InMemoryTransport}from"@modelcontextprotocol/sdk/inMemory.js";import{Server,AjvJsonSchemaValidator}from"#mcp-server";import{StreamableHTTPServerTransport,WebStandardStreamableHTTPServerTransport}from"#mcp-streamable-http";import{IncomingMessage,HttpServerResponse}from"#server-types";export{AjvJsonSchemaValidator,HttpServerResponse,InMemoryTransport,IncomingMessage,MCP_20260728_ADDED_METHODS,MCP_20260728_ERROR_CODES,MCP_20260728_META,MCP_20260728_REMOVED_METHODS,MCP_20260728_RETIRED_ERROR_CODES,Server as McpServer,PROTOCOL_2026_07_28,SUBSCRIPTIONS_ACKNOWLEDGED_METHOD,StdioServerTransport,StreamableHTTPServerTransport,WebStandardStreamableHTTPServerTransport,isProtocol20260728,readDeclaredProtocolVersion};
1
+ var __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __hasOwnProp=Object.prototype.hasOwnProperty;var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:true})};var __copyProps=(to,from,except,desc)=>{if(from&&typeof from==="object"||typeof from==="function"){for(let key of __getOwnPropNames(from))if(!__hasOwnProp.call(to,key)&&key!==except)__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable})}return to};var __reExport=(target,mod,secondTarget)=>(__copyProps(target,mod,"default"),secondTarget&&__copyProps(secondTarget,mod,"default"));var index_exports={};__export(index_exports,{AjvJsonSchemaValidator:()=>AjvJsonSchemaValidator,EVENTS_ERROR_CODES:()=>EVENTS_ERROR_CODES,EVENTS_EXTENSION_ID:()=>EVENTS_EXTENSION_ID,EVENTS_METHODS:()=>EVENTS_METHODS,EVENTS_NOTIFICATIONS:()=>EVENTS_NOTIFICATIONS,EVENTS_SKETCH_ERROR_CODES:()=>EVENTS_SKETCH_ERROR_CODES,EVENT_DELIVERY_ERROR_CATEGORIES:()=>EVENT_DELIVERY_ERROR_CATEGORIES,EVENT_DELIVERY_MODES:()=>EVENT_DELIVERY_MODES,EventActiveNotificationSchema:()=>EventActiveNotificationSchema,EventControlEnvelopeSchema:()=>EventControlEnvelopeSchema,EventDefinitionSchema:()=>EventDefinitionSchema,EventDeliveryErrorCategorySchema:()=>EventDeliveryErrorCategorySchema,EventDeliveryModeSchema:()=>EventDeliveryModeSchema,EventDeliveryStatusSchema:()=>EventDeliveryStatusSchema,EventErrorNotificationSchema:()=>EventErrorNotificationSchema,EventErrorSchema:()=>EventErrorSchema,EventGapEnvelopeSchema:()=>EventGapEnvelopeSchema,EventHeartbeatNotificationSchema:()=>EventHeartbeatNotificationSchema,EventOccurrenceNotificationSchema:()=>EventOccurrenceNotificationSchema,EventOccurrenceSchema:()=>EventOccurrenceSchema,EventTerminatedEnvelopeSchema:()=>EventTerminatedEnvelopeSchema,EventTerminatedNotificationSchema:()=>EventTerminatedNotificationSchema,EventVerificationEnvelopeSchema:()=>EventVerificationEnvelopeSchema,EventsListChangedNotificationSchema:()=>EventsListChangedNotificationSchema,HttpServerResponse:()=>HttpServerResponse,InMemoryTransport:()=>InMemoryTransport,IncomingMessage:()=>IncomingMessage,ListEventsRequestSchema:()=>ListEventsRequestSchema,ListEventsResultSchema:()=>ListEventsResultSchema,MCP_20260728_ADDED_METHODS:()=>MCP_20260728_ADDED_METHODS,MCP_20260728_ERROR_CODES:()=>MCP_20260728_ERROR_CODES,MCP_20260728_META:()=>MCP_20260728_META,MCP_20260728_REMOVED_METHODS:()=>MCP_20260728_REMOVED_METHODS,MCP_20260728_RETIRED_ERROR_CODES:()=>MCP_20260728_RETIRED_ERROR_CODES,MCP_SUBSCRIPTION_ID_HEADER:()=>MCP_SUBSCRIPTION_ID_HEADER,MCP_WEBHOOK_RECEIVER_WELL_KNOWN_PATH:()=>MCP_WEBHOOK_RECEIVER_WELL_KNOWN_PATH,McpServer:()=>Server,PROTOCOL_2026_07_28:()=>PROTOCOL_2026_07_28,PollEventsRequestSchema:()=>PollEventsRequestSchema,PollEventsResultSchema:()=>PollEventsResultSchema,SUBSCRIPTIONS_ACKNOWLEDGED_METHOD:()=>SUBSCRIPTIONS_ACKNOWLEDGED_METHOD,StdioServerTransport:()=>StdioServerTransport,StreamEventsRequestSchema:()=>StreamEventsRequestSchema,StreamEventsResultSchema:()=>StreamEventsResultSchema,StreamableHTTPServerTransport:()=>StreamableHTTPServerTransport,SubscribeEventRequestSchema:()=>SubscribeEventRequestSchema,SubscribeEventResultSchema:()=>SubscribeEventResultSchema,UnsubscribeEventRequestSchema:()=>UnsubscribeEventRequestSchema,UnsubscribeEventResultSchema:()=>UnsubscribeEventResultSchema,WebStandardStreamableHTTPServerTransport:()=>WebStandardStreamableHTTPServerTransport,isProtocol20260728:()=>isProtocol20260728,readDeclaredProtocolVersion:()=>readDeclaredProtocolVersion});var types_exports={};__reExport(types_exports,types_star);import*as types_star from"@modelcontextprotocol/sdk/types.js";__reExport(index_exports,types_exports);var PROTOCOL_2026_07_28="2026-07-28";var MCP_20260728_META={protocolVersion:"io.modelcontextprotocol/protocolVersion",clientInfo:"io.modelcontextprotocol/clientInfo",clientCapabilities:"io.modelcontextprotocol/clientCapabilities",logLevel:"io.modelcontextprotocol/logLevel",serverInfo:"io.modelcontextprotocol/serverInfo",subscriptionId:"io.modelcontextprotocol/subscriptionId"};var MCP_20260728_ERROR_CODES={headerMismatch:-32020,missingRequiredClientCapability:-32021,unsupportedProtocolVersion:-32022};var MCP_20260728_RETIRED_ERROR_CODES=[-32002,-32042];var MCP_20260728_REMOVED_METHODS=["initialize","notifications/initialized","ping","logging/setLevel","notifications/roots/list_changed","resources/subscribe","resources/unsubscribe","tasks/list","tasks/result"];var MCP_20260728_ADDED_METHODS=["server/discover","subscriptions/listen"];var SUBSCRIPTIONS_ACKNOWLEDGED_METHOD="notifications/subscriptions/acknowledged";function isProtocol20260728(version){return version===PROTOCOL_2026_07_28}function readDeclaredProtocolVersion(body){const params=body?.params;const declared=params?._meta?.[MCP_20260728_META.protocolVersion];return typeof declared==="string"?declared:void 0}import{internalZ as z}from"@frontmcp/lazy-zod";var EVENTS_EXTENSION_ID="io.modelcontextprotocol/events";var EVENTS_METHODS={list:"events/list",subscribe:"events/subscribe",unsubscribe:"events/unsubscribe",poll:"events/poll",stream:"events/stream"};var EVENTS_NOTIFICATIONS={listChanged:"notifications/events/list_changed",active:"notifications/events/active",event:"notifications/events/event",error:"notifications/events/error",heartbeat:"notifications/events/heartbeat",terminated:"notifications/events/terminated"};var EVENTS_ERROR_CODES={notFound:-32023,forbidden:-32024,resourceExhausted:-32025,unsupported:-32026,callbackEndpointError:-32027};var EVENTS_SKETCH_ERROR_CODES={notFound:-32011,forbidden:-32012,resourceExhausted:-32013,unsupported:-32014,callbackEndpointError:-32015};var MCP_SUBSCRIPTION_ID_HEADER="X-MCP-Subscription-Id";var MCP_WEBHOOK_RECEIVER_WELL_KNOWN_PATH="/.well-known/mcp-webhook-receiver.json";var EVENT_DELIVERY_MODES=["poll","push","webhook"];var EventDeliveryModeSchema=z.enum(EVENT_DELIVERY_MODES);var EVENT_DELIVERY_ERROR_CATEGORIES=["connection_refused","timeout","tls_error","http_4xx","http_5xx","challenge_failed"];var EventDeliveryErrorCategorySchema=z.enum(EVENT_DELIVERY_ERROR_CATEGORIES);var metaSchema=z.record(z.string(),z.unknown()).optional();var jsonObjectSchema=z.record(z.string(),z.unknown());var maxAgeMsSchema=z.number().int().nonnegative().optional();var cursorSchema=z.string().nullable().optional();var resultShape={_meta:metaSchema,resultType:z.string().optional()};var subscriptionShape={name:z.string(),arguments:jsonObjectSchema.optional()};var EventErrorSchema=z.object({code:z.number().int(),message:z.string(),data:jsonObjectSchema.optional()});var EventDefinitionSchema=z.object({name:z.string(),description:z.string().optional(),delivery:z.array(EventDeliveryModeSchema).min(1),inputSchema:jsonObjectSchema,payloadSchema:jsonObjectSchema,_meta:metaSchema});var EventOccurrenceSchema=z.object({eventId:z.string(),name:z.string(),timestamp:z.string(),data:jsonObjectSchema,cursor:cursorSchema,_meta:metaSchema});var EventDeliveryStatusSchema=z.object({active:z.boolean(),lastDeliveryAt:z.string().nullable().optional(),lastError:EventDeliveryErrorCategorySchema.nullable().optional(),failedSince:z.string().nullable().optional(),throttled:z.boolean().optional(),retryAfterMs:z.number().int().nonnegative().optional()});var ListEventsRequestSchema=z.object({method:z.literal(EVENTS_METHODS.list),params:z.object({cursor:cursorSchema,_meta:metaSchema}).optional()});var ListEventsResultSchema=z.object({...resultShape,events:z.array(EventDefinitionSchema),nextCursor:z.string().optional()});var SubscribeEventRequestSchema=z.object({method:z.literal(EVENTS_METHODS.subscribe),params:z.object({...subscriptionShape,delivery:z.object({mode:EventDeliveryModeSchema.optional(),url:z.string(),secret:z.string()}),cursor:cursorSchema,maxAgeMs:maxAgeMsSchema,ttlMs:z.number().int().nullable().optional(),_meta:metaSchema})});var SubscribeEventResultSchema=z.object({...resultShape,id:z.string(),refreshBefore:z.string().nullable(),cursor:cursorSchema,truncated:z.boolean().optional(),deliveryStatus:EventDeliveryStatusSchema.optional()});var UnsubscribeEventRequestSchema=z.object({method:z.literal(EVENTS_METHODS.unsubscribe),params:z.object({...subscriptionShape,delivery:z.object({mode:EventDeliveryModeSchema.optional(),url:z.string()}),_meta:metaSchema})});var UnsubscribeEventResultSchema=z.object(resultShape);var PollEventsRequestSchema=z.object({method:z.literal(EVENTS_METHODS.poll),params:z.object({...subscriptionShape,cursor:cursorSchema,maxAgeMs:maxAgeMsSchema,maxEvents:z.number().int().positive().optional(),_meta:metaSchema})});var PollEventsResultSchema=z.object({...resultShape,events:z.array(EventOccurrenceSchema),cursor:cursorSchema,truncated:z.boolean().optional(),hasMore:z.boolean().optional(),nextPollMs:z.number().int().nonnegative().optional()});var StreamEventsRequestSchema=z.object({method:z.literal(EVENTS_METHODS.stream),params:z.object({...subscriptionShape,cursor:cursorSchema,maxAgeMs:maxAgeMsSchema,_meta:metaSchema})});var StreamEventsResultSchema=z.object(resultShape);var EventsListChangedNotificationSchema=z.object({method:z.literal(EVENTS_NOTIFICATIONS.listChanged),params:z.object({_meta:metaSchema}).optional()});var EventActiveNotificationSchema=z.object({method:z.literal(EVENTS_NOTIFICATIONS.active),params:z.object({cursor:cursorSchema,truncated:z.boolean().optional(),_meta:metaSchema})});var EventOccurrenceNotificationSchema=z.object({method:z.literal(EVENTS_NOTIFICATIONS.event),params:EventOccurrenceSchema});var EventErrorNotificationSchema=z.object({method:z.literal(EVENTS_NOTIFICATIONS.error),params:z.object({error:EventErrorSchema,_meta:metaSchema})});var EventHeartbeatNotificationSchema=z.object({method:z.literal(EVENTS_NOTIFICATIONS.heartbeat),params:z.object({cursor:cursorSchema,_meta:metaSchema})});var EventTerminatedNotificationSchema=z.object({method:z.literal(EVENTS_NOTIFICATIONS.terminated),params:z.object({error:EventErrorSchema,_meta:metaSchema})});var EventVerificationEnvelopeSchema=z.object({type:z.literal("verification"),challenge:z.string()});var EventGapEnvelopeSchema=z.object({type:z.literal("gap"),cursor:cursorSchema});var EventTerminatedEnvelopeSchema=z.object({type:z.literal("terminated"),error:EventErrorSchema});var EventControlEnvelopeSchema=z.discriminatedUnion("type",[EventVerificationEnvelopeSchema,EventGapEnvelopeSchema,EventTerminatedEnvelopeSchema]);import{StdioServerTransport}from"#stdio-server";import{InMemoryTransport}from"@modelcontextprotocol/sdk/inMemory.js";import{Server,AjvJsonSchemaValidator}from"#mcp-server";import{StreamableHTTPServerTransport,WebStandardStreamableHTTPServerTransport}from"#mcp-streamable-http";import{IncomingMessage,HttpServerResponse}from"#server-types";export{AjvJsonSchemaValidator,EVENTS_ERROR_CODES,EVENTS_EXTENSION_ID,EVENTS_METHODS,EVENTS_NOTIFICATIONS,EVENTS_SKETCH_ERROR_CODES,EVENT_DELIVERY_ERROR_CATEGORIES,EVENT_DELIVERY_MODES,EventActiveNotificationSchema,EventControlEnvelopeSchema,EventDefinitionSchema,EventDeliveryErrorCategorySchema,EventDeliveryModeSchema,EventDeliveryStatusSchema,EventErrorNotificationSchema,EventErrorSchema,EventGapEnvelopeSchema,EventHeartbeatNotificationSchema,EventOccurrenceNotificationSchema,EventOccurrenceSchema,EventTerminatedEnvelopeSchema,EventTerminatedNotificationSchema,EventVerificationEnvelopeSchema,EventsListChangedNotificationSchema,HttpServerResponse,InMemoryTransport,IncomingMessage,ListEventsRequestSchema,ListEventsResultSchema,MCP_20260728_ADDED_METHODS,MCP_20260728_ERROR_CODES,MCP_20260728_META,MCP_20260728_REMOVED_METHODS,MCP_20260728_RETIRED_ERROR_CODES,MCP_SUBSCRIPTION_ID_HEADER,MCP_WEBHOOK_RECEIVER_WELL_KNOWN_PATH,Server as McpServer,PROTOCOL_2026_07_28,PollEventsRequestSchema,PollEventsResultSchema,SUBSCRIPTIONS_ACKNOWLEDGED_METHOD,StdioServerTransport,StreamEventsRequestSchema,StreamEventsResultSchema,StreamableHTTPServerTransport,SubscribeEventRequestSchema,SubscribeEventResultSchema,UnsubscribeEventRequestSchema,UnsubscribeEventResultSchema,WebStandardStreamableHTTPServerTransport,isProtocol20260728,readDeclaredProtocolVersion};
2
2
 
3
3
  export * from "@modelcontextprotocol/sdk/types.js";
package/index.d.ts CHANGED
@@ -8,6 +8,7 @@
8
8
  */
9
9
  export * from './types';
10
10
  export * from './types-20260728';
11
+ export * from './types-events';
11
12
  export * from './auth-types';
12
13
  export * from './shared';
13
14
  export * from './stdio';
package/index.js CHANGED
@@ -1 +1 @@
1
- "use strict";var __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __hasOwnProp=Object.prototype.hasOwnProperty;var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:true})};var __copyProps=(to,from,except,desc)=>{if(from&&typeof from==="object"||typeof from==="function"){for(let key of __getOwnPropNames(from))if(!__hasOwnProp.call(to,key)&&key!==except)__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable})}return to};var __reExport=(target,mod,secondTarget)=>(__copyProps(target,mod,"default"),secondTarget&&__copyProps(secondTarget,mod,"default"));var __toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:true}),mod);var index_exports={};__export(index_exports,{AjvJsonSchemaValidator:()=>import_mcp_server.AjvJsonSchemaValidator,HttpServerResponse:()=>import_server_types.HttpServerResponse,InMemoryTransport:()=>import_inMemory.InMemoryTransport,IncomingMessage:()=>import_server_types.IncomingMessage,MCP_20260728_ADDED_METHODS:()=>MCP_20260728_ADDED_METHODS,MCP_20260728_ERROR_CODES:()=>MCP_20260728_ERROR_CODES,MCP_20260728_META:()=>MCP_20260728_META,MCP_20260728_REMOVED_METHODS:()=>MCP_20260728_REMOVED_METHODS,MCP_20260728_RETIRED_ERROR_CODES:()=>MCP_20260728_RETIRED_ERROR_CODES,McpServer:()=>import_mcp_server.Server,PROTOCOL_2026_07_28:()=>PROTOCOL_2026_07_28,SUBSCRIPTIONS_ACKNOWLEDGED_METHOD:()=>SUBSCRIPTIONS_ACKNOWLEDGED_METHOD,StdioServerTransport:()=>import_stdio_server.StdioServerTransport,StreamableHTTPServerTransport:()=>import_mcp_streamable_http.StreamableHTTPServerTransport,WebStandardStreamableHTTPServerTransport:()=>import_mcp_streamable_http.WebStandardStreamableHTTPServerTransport,isProtocol20260728:()=>isProtocol20260728,readDeclaredProtocolVersion:()=>readDeclaredProtocolVersion});module.exports=__toCommonJS(index_exports);var types_exports={};__reExport(types_exports,require("@modelcontextprotocol/sdk/types.js"));__reExport(index_exports,types_exports,module.exports);var PROTOCOL_2026_07_28="2026-07-28";var MCP_20260728_META={protocolVersion:"io.modelcontextprotocol/protocolVersion",clientInfo:"io.modelcontextprotocol/clientInfo",clientCapabilities:"io.modelcontextprotocol/clientCapabilities",logLevel:"io.modelcontextprotocol/logLevel",serverInfo:"io.modelcontextprotocol/serverInfo",subscriptionId:"io.modelcontextprotocol/subscriptionId"};var MCP_20260728_ERROR_CODES={headerMismatch:-32020,missingRequiredClientCapability:-32021,unsupportedProtocolVersion:-32022};var MCP_20260728_RETIRED_ERROR_CODES=[-32002,-32042];var MCP_20260728_REMOVED_METHODS=["initialize","notifications/initialized","ping","logging/setLevel","notifications/roots/list_changed","resources/subscribe","resources/unsubscribe","tasks/list","tasks/result"];var MCP_20260728_ADDED_METHODS=["server/discover","subscriptions/listen"];var SUBSCRIPTIONS_ACKNOWLEDGED_METHOD="notifications/subscriptions/acknowledged";function isProtocol20260728(version){return version===PROTOCOL_2026_07_28}function readDeclaredProtocolVersion(body){const params=body?.params;const declared=params?._meta?.[MCP_20260728_META.protocolVersion];return typeof declared==="string"?declared:void 0}var import_stdio_server=require("#stdio-server");var import_inMemory=require("@modelcontextprotocol/sdk/inMemory.js");var import_mcp_server=require("#mcp-server");var import_mcp_streamable_http=require("#mcp-streamable-http");var import_server_types=require("#server-types");0&&(module.exports={AjvJsonSchemaValidator,HttpServerResponse,InMemoryTransport,IncomingMessage,MCP_20260728_ADDED_METHODS,MCP_20260728_ERROR_CODES,MCP_20260728_META,MCP_20260728_REMOVED_METHODS,MCP_20260728_RETIRED_ERROR_CODES,McpServer,PROTOCOL_2026_07_28,SUBSCRIPTIONS_ACKNOWLEDGED_METHOD,StdioServerTransport,StreamableHTTPServerTransport,WebStandardStreamableHTTPServerTransport,isProtocol20260728,readDeclaredProtocolVersion});
1
+ "use strict";var __defProp=Object.defineProperty;var __getOwnPropDesc=Object.getOwnPropertyDescriptor;var __getOwnPropNames=Object.getOwnPropertyNames;var __hasOwnProp=Object.prototype.hasOwnProperty;var __export=(target,all)=>{for(var name in all)__defProp(target,name,{get:all[name],enumerable:true})};var __copyProps=(to,from,except,desc)=>{if(from&&typeof from==="object"||typeof from==="function"){for(let key of __getOwnPropNames(from))if(!__hasOwnProp.call(to,key)&&key!==except)__defProp(to,key,{get:()=>from[key],enumerable:!(desc=__getOwnPropDesc(from,key))||desc.enumerable})}return to};var __reExport=(target,mod,secondTarget)=>(__copyProps(target,mod,"default"),secondTarget&&__copyProps(secondTarget,mod,"default"));var __toCommonJS=mod=>__copyProps(__defProp({},"__esModule",{value:true}),mod);var index_exports={};__export(index_exports,{AjvJsonSchemaValidator:()=>import_mcp_server.AjvJsonSchemaValidator,EVENTS_ERROR_CODES:()=>EVENTS_ERROR_CODES,EVENTS_EXTENSION_ID:()=>EVENTS_EXTENSION_ID,EVENTS_METHODS:()=>EVENTS_METHODS,EVENTS_NOTIFICATIONS:()=>EVENTS_NOTIFICATIONS,EVENTS_SKETCH_ERROR_CODES:()=>EVENTS_SKETCH_ERROR_CODES,EVENT_DELIVERY_ERROR_CATEGORIES:()=>EVENT_DELIVERY_ERROR_CATEGORIES,EVENT_DELIVERY_MODES:()=>EVENT_DELIVERY_MODES,EventActiveNotificationSchema:()=>EventActiveNotificationSchema,EventControlEnvelopeSchema:()=>EventControlEnvelopeSchema,EventDefinitionSchema:()=>EventDefinitionSchema,EventDeliveryErrorCategorySchema:()=>EventDeliveryErrorCategorySchema,EventDeliveryModeSchema:()=>EventDeliveryModeSchema,EventDeliveryStatusSchema:()=>EventDeliveryStatusSchema,EventErrorNotificationSchema:()=>EventErrorNotificationSchema,EventErrorSchema:()=>EventErrorSchema,EventGapEnvelopeSchema:()=>EventGapEnvelopeSchema,EventHeartbeatNotificationSchema:()=>EventHeartbeatNotificationSchema,EventOccurrenceNotificationSchema:()=>EventOccurrenceNotificationSchema,EventOccurrenceSchema:()=>EventOccurrenceSchema,EventTerminatedEnvelopeSchema:()=>EventTerminatedEnvelopeSchema,EventTerminatedNotificationSchema:()=>EventTerminatedNotificationSchema,EventVerificationEnvelopeSchema:()=>EventVerificationEnvelopeSchema,EventsListChangedNotificationSchema:()=>EventsListChangedNotificationSchema,HttpServerResponse:()=>import_server_types.HttpServerResponse,InMemoryTransport:()=>import_inMemory.InMemoryTransport,IncomingMessage:()=>import_server_types.IncomingMessage,ListEventsRequestSchema:()=>ListEventsRequestSchema,ListEventsResultSchema:()=>ListEventsResultSchema,MCP_20260728_ADDED_METHODS:()=>MCP_20260728_ADDED_METHODS,MCP_20260728_ERROR_CODES:()=>MCP_20260728_ERROR_CODES,MCP_20260728_META:()=>MCP_20260728_META,MCP_20260728_REMOVED_METHODS:()=>MCP_20260728_REMOVED_METHODS,MCP_20260728_RETIRED_ERROR_CODES:()=>MCP_20260728_RETIRED_ERROR_CODES,MCP_SUBSCRIPTION_ID_HEADER:()=>MCP_SUBSCRIPTION_ID_HEADER,MCP_WEBHOOK_RECEIVER_WELL_KNOWN_PATH:()=>MCP_WEBHOOK_RECEIVER_WELL_KNOWN_PATH,McpServer:()=>import_mcp_server.Server,PROTOCOL_2026_07_28:()=>PROTOCOL_2026_07_28,PollEventsRequestSchema:()=>PollEventsRequestSchema,PollEventsResultSchema:()=>PollEventsResultSchema,SUBSCRIPTIONS_ACKNOWLEDGED_METHOD:()=>SUBSCRIPTIONS_ACKNOWLEDGED_METHOD,StdioServerTransport:()=>import_stdio_server.StdioServerTransport,StreamEventsRequestSchema:()=>StreamEventsRequestSchema,StreamEventsResultSchema:()=>StreamEventsResultSchema,StreamableHTTPServerTransport:()=>import_mcp_streamable_http.StreamableHTTPServerTransport,SubscribeEventRequestSchema:()=>SubscribeEventRequestSchema,SubscribeEventResultSchema:()=>SubscribeEventResultSchema,UnsubscribeEventRequestSchema:()=>UnsubscribeEventRequestSchema,UnsubscribeEventResultSchema:()=>UnsubscribeEventResultSchema,WebStandardStreamableHTTPServerTransport:()=>import_mcp_streamable_http.WebStandardStreamableHTTPServerTransport,isProtocol20260728:()=>isProtocol20260728,readDeclaredProtocolVersion:()=>readDeclaredProtocolVersion});module.exports=__toCommonJS(index_exports);var types_exports={};__reExport(types_exports,require("@modelcontextprotocol/sdk/types.js"));__reExport(index_exports,types_exports,module.exports);var PROTOCOL_2026_07_28="2026-07-28";var MCP_20260728_META={protocolVersion:"io.modelcontextprotocol/protocolVersion",clientInfo:"io.modelcontextprotocol/clientInfo",clientCapabilities:"io.modelcontextprotocol/clientCapabilities",logLevel:"io.modelcontextprotocol/logLevel",serverInfo:"io.modelcontextprotocol/serverInfo",subscriptionId:"io.modelcontextprotocol/subscriptionId"};var MCP_20260728_ERROR_CODES={headerMismatch:-32020,missingRequiredClientCapability:-32021,unsupportedProtocolVersion:-32022};var MCP_20260728_RETIRED_ERROR_CODES=[-32002,-32042];var MCP_20260728_REMOVED_METHODS=["initialize","notifications/initialized","ping","logging/setLevel","notifications/roots/list_changed","resources/subscribe","resources/unsubscribe","tasks/list","tasks/result"];var MCP_20260728_ADDED_METHODS=["server/discover","subscriptions/listen"];var SUBSCRIPTIONS_ACKNOWLEDGED_METHOD="notifications/subscriptions/acknowledged";function isProtocol20260728(version){return version===PROTOCOL_2026_07_28}function readDeclaredProtocolVersion(body){const params=body?.params;const declared=params?._meta?.[MCP_20260728_META.protocolVersion];return typeof declared==="string"?declared:void 0}var import_lazy_zod=require("@frontmcp/lazy-zod");var EVENTS_EXTENSION_ID="io.modelcontextprotocol/events";var EVENTS_METHODS={list:"events/list",subscribe:"events/subscribe",unsubscribe:"events/unsubscribe",poll:"events/poll",stream:"events/stream"};var EVENTS_NOTIFICATIONS={listChanged:"notifications/events/list_changed",active:"notifications/events/active",event:"notifications/events/event",error:"notifications/events/error",heartbeat:"notifications/events/heartbeat",terminated:"notifications/events/terminated"};var EVENTS_ERROR_CODES={notFound:-32023,forbidden:-32024,resourceExhausted:-32025,unsupported:-32026,callbackEndpointError:-32027};var EVENTS_SKETCH_ERROR_CODES={notFound:-32011,forbidden:-32012,resourceExhausted:-32013,unsupported:-32014,callbackEndpointError:-32015};var MCP_SUBSCRIPTION_ID_HEADER="X-MCP-Subscription-Id";var MCP_WEBHOOK_RECEIVER_WELL_KNOWN_PATH="/.well-known/mcp-webhook-receiver.json";var EVENT_DELIVERY_MODES=["poll","push","webhook"];var EventDeliveryModeSchema=import_lazy_zod.internalZ.enum(EVENT_DELIVERY_MODES);var EVENT_DELIVERY_ERROR_CATEGORIES=["connection_refused","timeout","tls_error","http_4xx","http_5xx","challenge_failed"];var EventDeliveryErrorCategorySchema=import_lazy_zod.internalZ.enum(EVENT_DELIVERY_ERROR_CATEGORIES);var metaSchema=import_lazy_zod.internalZ.record(import_lazy_zod.internalZ.string(),import_lazy_zod.internalZ.unknown()).optional();var jsonObjectSchema=import_lazy_zod.internalZ.record(import_lazy_zod.internalZ.string(),import_lazy_zod.internalZ.unknown());var maxAgeMsSchema=import_lazy_zod.internalZ.number().int().nonnegative().optional();var cursorSchema=import_lazy_zod.internalZ.string().nullable().optional();var resultShape={_meta:metaSchema,resultType:import_lazy_zod.internalZ.string().optional()};var subscriptionShape={name:import_lazy_zod.internalZ.string(),arguments:jsonObjectSchema.optional()};var EventErrorSchema=import_lazy_zod.internalZ.object({code:import_lazy_zod.internalZ.number().int(),message:import_lazy_zod.internalZ.string(),data:jsonObjectSchema.optional()});var EventDefinitionSchema=import_lazy_zod.internalZ.object({name:import_lazy_zod.internalZ.string(),description:import_lazy_zod.internalZ.string().optional(),delivery:import_lazy_zod.internalZ.array(EventDeliveryModeSchema).min(1),inputSchema:jsonObjectSchema,payloadSchema:jsonObjectSchema,_meta:metaSchema});var EventOccurrenceSchema=import_lazy_zod.internalZ.object({eventId:import_lazy_zod.internalZ.string(),name:import_lazy_zod.internalZ.string(),timestamp:import_lazy_zod.internalZ.string(),data:jsonObjectSchema,cursor:cursorSchema,_meta:metaSchema});var EventDeliveryStatusSchema=import_lazy_zod.internalZ.object({active:import_lazy_zod.internalZ.boolean(),lastDeliveryAt:import_lazy_zod.internalZ.string().nullable().optional(),lastError:EventDeliveryErrorCategorySchema.nullable().optional(),failedSince:import_lazy_zod.internalZ.string().nullable().optional(),throttled:import_lazy_zod.internalZ.boolean().optional(),retryAfterMs:import_lazy_zod.internalZ.number().int().nonnegative().optional()});var ListEventsRequestSchema=import_lazy_zod.internalZ.object({method:import_lazy_zod.internalZ.literal(EVENTS_METHODS.list),params:import_lazy_zod.internalZ.object({cursor:cursorSchema,_meta:metaSchema}).optional()});var ListEventsResultSchema=import_lazy_zod.internalZ.object({...resultShape,events:import_lazy_zod.internalZ.array(EventDefinitionSchema),nextCursor:import_lazy_zod.internalZ.string().optional()});var SubscribeEventRequestSchema=import_lazy_zod.internalZ.object({method:import_lazy_zod.internalZ.literal(EVENTS_METHODS.subscribe),params:import_lazy_zod.internalZ.object({...subscriptionShape,delivery:import_lazy_zod.internalZ.object({mode:EventDeliveryModeSchema.optional(),url:import_lazy_zod.internalZ.string(),secret:import_lazy_zod.internalZ.string()}),cursor:cursorSchema,maxAgeMs:maxAgeMsSchema,ttlMs:import_lazy_zod.internalZ.number().int().nullable().optional(),_meta:metaSchema})});var SubscribeEventResultSchema=import_lazy_zod.internalZ.object({...resultShape,id:import_lazy_zod.internalZ.string(),refreshBefore:import_lazy_zod.internalZ.string().nullable(),cursor:cursorSchema,truncated:import_lazy_zod.internalZ.boolean().optional(),deliveryStatus:EventDeliveryStatusSchema.optional()});var UnsubscribeEventRequestSchema=import_lazy_zod.internalZ.object({method:import_lazy_zod.internalZ.literal(EVENTS_METHODS.unsubscribe),params:import_lazy_zod.internalZ.object({...subscriptionShape,delivery:import_lazy_zod.internalZ.object({mode:EventDeliveryModeSchema.optional(),url:import_lazy_zod.internalZ.string()}),_meta:metaSchema})});var UnsubscribeEventResultSchema=import_lazy_zod.internalZ.object(resultShape);var PollEventsRequestSchema=import_lazy_zod.internalZ.object({method:import_lazy_zod.internalZ.literal(EVENTS_METHODS.poll),params:import_lazy_zod.internalZ.object({...subscriptionShape,cursor:cursorSchema,maxAgeMs:maxAgeMsSchema,maxEvents:import_lazy_zod.internalZ.number().int().positive().optional(),_meta:metaSchema})});var PollEventsResultSchema=import_lazy_zod.internalZ.object({...resultShape,events:import_lazy_zod.internalZ.array(EventOccurrenceSchema),cursor:cursorSchema,truncated:import_lazy_zod.internalZ.boolean().optional(),hasMore:import_lazy_zod.internalZ.boolean().optional(),nextPollMs:import_lazy_zod.internalZ.number().int().nonnegative().optional()});var StreamEventsRequestSchema=import_lazy_zod.internalZ.object({method:import_lazy_zod.internalZ.literal(EVENTS_METHODS.stream),params:import_lazy_zod.internalZ.object({...subscriptionShape,cursor:cursorSchema,maxAgeMs:maxAgeMsSchema,_meta:metaSchema})});var StreamEventsResultSchema=import_lazy_zod.internalZ.object(resultShape);var EventsListChangedNotificationSchema=import_lazy_zod.internalZ.object({method:import_lazy_zod.internalZ.literal(EVENTS_NOTIFICATIONS.listChanged),params:import_lazy_zod.internalZ.object({_meta:metaSchema}).optional()});var EventActiveNotificationSchema=import_lazy_zod.internalZ.object({method:import_lazy_zod.internalZ.literal(EVENTS_NOTIFICATIONS.active),params:import_lazy_zod.internalZ.object({cursor:cursorSchema,truncated:import_lazy_zod.internalZ.boolean().optional(),_meta:metaSchema})});var EventOccurrenceNotificationSchema=import_lazy_zod.internalZ.object({method:import_lazy_zod.internalZ.literal(EVENTS_NOTIFICATIONS.event),params:EventOccurrenceSchema});var EventErrorNotificationSchema=import_lazy_zod.internalZ.object({method:import_lazy_zod.internalZ.literal(EVENTS_NOTIFICATIONS.error),params:import_lazy_zod.internalZ.object({error:EventErrorSchema,_meta:metaSchema})});var EventHeartbeatNotificationSchema=import_lazy_zod.internalZ.object({method:import_lazy_zod.internalZ.literal(EVENTS_NOTIFICATIONS.heartbeat),params:import_lazy_zod.internalZ.object({cursor:cursorSchema,_meta:metaSchema})});var EventTerminatedNotificationSchema=import_lazy_zod.internalZ.object({method:import_lazy_zod.internalZ.literal(EVENTS_NOTIFICATIONS.terminated),params:import_lazy_zod.internalZ.object({error:EventErrorSchema,_meta:metaSchema})});var EventVerificationEnvelopeSchema=import_lazy_zod.internalZ.object({type:import_lazy_zod.internalZ.literal("verification"),challenge:import_lazy_zod.internalZ.string()});var EventGapEnvelopeSchema=import_lazy_zod.internalZ.object({type:import_lazy_zod.internalZ.literal("gap"),cursor:cursorSchema});var EventTerminatedEnvelopeSchema=import_lazy_zod.internalZ.object({type:import_lazy_zod.internalZ.literal("terminated"),error:EventErrorSchema});var EventControlEnvelopeSchema=import_lazy_zod.internalZ.discriminatedUnion("type",[EventVerificationEnvelopeSchema,EventGapEnvelopeSchema,EventTerminatedEnvelopeSchema]);var import_stdio_server=require("#stdio-server");var import_inMemory=require("@modelcontextprotocol/sdk/inMemory.js");var import_mcp_server=require("#mcp-server");var import_mcp_streamable_http=require("#mcp-streamable-http");var import_server_types=require("#server-types");0&&(module.exports={AjvJsonSchemaValidator,EVENTS_ERROR_CODES,EVENTS_EXTENSION_ID,EVENTS_METHODS,EVENTS_NOTIFICATIONS,EVENTS_SKETCH_ERROR_CODES,EVENT_DELIVERY_ERROR_CATEGORIES,EVENT_DELIVERY_MODES,EventActiveNotificationSchema,EventControlEnvelopeSchema,EventDefinitionSchema,EventDeliveryErrorCategorySchema,EventDeliveryModeSchema,EventDeliveryStatusSchema,EventErrorNotificationSchema,EventErrorSchema,EventGapEnvelopeSchema,EventHeartbeatNotificationSchema,EventOccurrenceNotificationSchema,EventOccurrenceSchema,EventTerminatedEnvelopeSchema,EventTerminatedNotificationSchema,EventVerificationEnvelopeSchema,EventsListChangedNotificationSchema,HttpServerResponse,InMemoryTransport,IncomingMessage,ListEventsRequestSchema,ListEventsResultSchema,MCP_20260728_ADDED_METHODS,MCP_20260728_ERROR_CODES,MCP_20260728_META,MCP_20260728_REMOVED_METHODS,MCP_20260728_RETIRED_ERROR_CODES,MCP_SUBSCRIPTION_ID_HEADER,MCP_WEBHOOK_RECEIVER_WELL_KNOWN_PATH,McpServer,PROTOCOL_2026_07_28,PollEventsRequestSchema,PollEventsResultSchema,SUBSCRIPTIONS_ACKNOWLEDGED_METHOD,StdioServerTransport,StreamEventsRequestSchema,StreamEventsResultSchema,StreamableHTTPServerTransport,SubscribeEventRequestSchema,SubscribeEventResultSchema,UnsubscribeEventRequestSchema,UnsubscribeEventResultSchema,WebStandardStreamableHTTPServerTransport,isProtocol20260728,readDeclaredProtocolVersion});
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@frontmcp/protocol",
3
- "version": "1.11.3",
3
+ "version": "1.12.0-rc.1",
4
4
  "description": "Internal FrontMCP package: the single re-export point for @modelcontextprotocol/sdk types, server, client and transports",
5
5
  "author": "AgentFront <info@agentfront.dev>",
6
6
  "license": "Apache-2.0",
@@ -28,6 +28,9 @@
28
28
  "dependencies": {
29
29
  "@modelcontextprotocol/sdk": "1.32.1"
30
30
  },
31
+ "peerDependencies": {
32
+ "@frontmcp/lazy-zod": "1.12.0-rc.1"
33
+ },
31
34
  "imports": {
32
35
  "#mcp-streamable-http": {
33
36
  "types": "./node-mcp-streamable-http.js",
@@ -13,6 +13,7 @@
13
13
  * @see https://modelcontextprotocol.io/specification/2026-07-28/changelog
14
14
  */
15
15
  import type { Implementation, LoggingLevel, RequestId } from './types';
16
+ import type { EventsExtensionSettings } from './types-events';
16
17
  /** The protocol revision this module implements. */
17
18
  export declare const PROTOCOL_2026_07_28: "2026-07-28";
18
19
  export type Protocol20260728Version = typeof PROTOCOL_2026_07_28;
@@ -132,6 +133,8 @@ export interface ServerCapabilities20260728 {
132
133
  tools?: {
133
134
  listChanged?: boolean;
134
135
  };
136
+ /** The events capability as the SEP-3415 design sketch placed it, which ChatGPT reads; `extensions` holds the SEP's. */
137
+ events?: EventsExtensionSettings;
135
138
  /** Optional MCP extensions; keys are prefixed identifiers. */
136
139
  extensions?: Record<string, Record<string, unknown>>;
137
140
  }
@@ -151,6 +154,8 @@ export interface SubscriptionFilter {
151
154
  resourcesListChanged?: boolean;
152
155
  /** Replaces the removed `resources/subscribe` RPC. */
153
156
  resourceSubscriptions?: string[];
157
+ /** SEP-3415: receive `notifications/events/list_changed`. */
158
+ eventsListChanged?: boolean;
154
159
  }
155
160
  export interface SubscriptionsListenParams {
156
161
  notifications: SubscriptionFilter;
@@ -0,0 +1,337 @@
1
+ /** MCP Events extension (SEP-3415, Draft), which `@modelcontextprotocol/sdk` does not ship yet. */
2
+ import { internalZ as z } from '@frontmcp/lazy-zod';
3
+ export declare const EVENTS_EXTENSION_ID: "io.modelcontextprotocol/events";
4
+ export declare const EVENTS_METHODS: {
5
+ readonly list: "events/list";
6
+ readonly subscribe: "events/subscribe";
7
+ readonly unsubscribe: "events/unsubscribe";
8
+ readonly poll: "events/poll";
9
+ readonly stream: "events/stream";
10
+ };
11
+ export declare const EVENTS_NOTIFICATIONS: {
12
+ readonly listChanged: "notifications/events/list_changed";
13
+ readonly active: "notifications/events/active";
14
+ readonly event: "notifications/events/event";
15
+ readonly error: "notifications/events/error";
16
+ readonly heartbeat: "notifications/events/heartbeat";
17
+ readonly terminated: "notifications/events/terminated";
18
+ };
19
+ /** SEP-3415: NotFound, Forbidden, ResourceExhausted, Unsupported, CallbackEndpointError. */
20
+ export declare const EVENTS_ERROR_CODES: {
21
+ readonly notFound: -32023;
22
+ readonly forbidden: -32024;
23
+ readonly resourceExhausted: -32025;
24
+ readonly unsupported: -32026;
25
+ readonly callbackEndpointError: -32027;
26
+ };
27
+ /** The same errors as numbered by the design sketch that preceded SEP-3415, which ChatGPT implements. */
28
+ export declare const EVENTS_SKETCH_ERROR_CODES: {
29
+ readonly notFound: -32011;
30
+ readonly forbidden: -32012;
31
+ readonly resourceExhausted: -32013;
32
+ readonly unsupported: -32014;
33
+ readonly callbackEndpointError: -32015;
34
+ };
35
+ export type EventsErrorName = keyof typeof EVENTS_ERROR_CODES;
36
+ /** Header of every webhook delivery: the subscription's server-derived id. */
37
+ export declare const MCP_SUBSCRIPTION_ID_HEADER: "X-MCP-Subscription-Id";
38
+ /** Where a webhook receiver publishes the path prefixes that accept MCP deliveries. */
39
+ export declare const MCP_WEBHOOK_RECEIVER_WELL_KNOWN_PATH: "/.well-known/mcp-webhook-receiver.json";
40
+ /** The settings object of the extension in server capabilities. */
41
+ export interface EventsExtensionSettings {
42
+ listChanged?: boolean;
43
+ }
44
+ export declare const EVENT_DELIVERY_MODES: readonly ["poll", "push", "webhook"];
45
+ export declare const EventDeliveryModeSchema: import("@frontmcp/lazy-zod").ZodEnum<{
46
+ poll: "poll";
47
+ push: "push";
48
+ webhook: "webhook";
49
+ }>;
50
+ export type EventDeliveryMode = z.infer<typeof EventDeliveryModeSchema>;
51
+ export declare const EVENT_DELIVERY_ERROR_CATEGORIES: readonly ["connection_refused", "timeout", "tls_error", "http_4xx", "http_5xx", "challenge_failed"];
52
+ export declare const EventDeliveryErrorCategorySchema: import("@frontmcp/lazy-zod").ZodEnum<{
53
+ connection_refused: "connection_refused";
54
+ timeout: "timeout";
55
+ tls_error: "tls_error";
56
+ http_4xx: "http_4xx";
57
+ http_5xx: "http_5xx";
58
+ challenge_failed: "challenge_failed";
59
+ }>;
60
+ export type EventDeliveryErrorCategory = z.infer<typeof EventDeliveryErrorCategorySchema>;
61
+ export declare const EventErrorSchema: import("@frontmcp/lazy-zod").ZodObject<{
62
+ code: import("@frontmcp/lazy-zod").ZodNumber;
63
+ message: import("@frontmcp/lazy-zod").ZodString;
64
+ data: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodRecord<import("@frontmcp/lazy-zod").ZodString, import("@frontmcp/lazy-zod").ZodUnknown>>;
65
+ }, import("zod/v4/core").$strip>;
66
+ export type EventError = z.infer<typeof EventErrorSchema>;
67
+ export declare const EventDefinitionSchema: import("@frontmcp/lazy-zod").ZodObject<{
68
+ name: import("@frontmcp/lazy-zod").ZodString;
69
+ description: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodString>;
70
+ delivery: import("@frontmcp/lazy-zod").ZodArray<import("@frontmcp/lazy-zod").ZodEnum<{
71
+ poll: "poll";
72
+ push: "push";
73
+ webhook: "webhook";
74
+ }>>;
75
+ inputSchema: import("@frontmcp/lazy-zod").ZodRecord<import("@frontmcp/lazy-zod").ZodString, import("@frontmcp/lazy-zod").ZodUnknown>;
76
+ payloadSchema: import("@frontmcp/lazy-zod").ZodRecord<import("@frontmcp/lazy-zod").ZodString, import("@frontmcp/lazy-zod").ZodUnknown>;
77
+ _meta: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodRecord<import("@frontmcp/lazy-zod").ZodString, import("@frontmcp/lazy-zod").ZodUnknown>>;
78
+ }, import("zod/v4/core").$strip>;
79
+ export type EventDefinition = z.infer<typeof EventDefinitionSchema>;
80
+ export declare const EventOccurrenceSchema: import("@frontmcp/lazy-zod").ZodObject<{
81
+ eventId: import("@frontmcp/lazy-zod").ZodString;
82
+ name: import("@frontmcp/lazy-zod").ZodString;
83
+ timestamp: import("@frontmcp/lazy-zod").ZodString;
84
+ data: import("@frontmcp/lazy-zod").ZodRecord<import("@frontmcp/lazy-zod").ZodString, import("@frontmcp/lazy-zod").ZodUnknown>;
85
+ cursor: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodNullable<import("@frontmcp/lazy-zod").ZodString>>;
86
+ _meta: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodRecord<import("@frontmcp/lazy-zod").ZodString, import("@frontmcp/lazy-zod").ZodUnknown>>;
87
+ }, import("zod/v4/core").$strip>;
88
+ export type EventOccurrence = z.infer<typeof EventOccurrenceSchema>;
89
+ export declare const EventDeliveryStatusSchema: import("@frontmcp/lazy-zod").ZodObject<{
90
+ active: import("@frontmcp/lazy-zod").ZodBoolean;
91
+ lastDeliveryAt: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodNullable<import("@frontmcp/lazy-zod").ZodString>>;
92
+ lastError: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodNullable<import("@frontmcp/lazy-zod").ZodEnum<{
93
+ connection_refused: "connection_refused";
94
+ timeout: "timeout";
95
+ tls_error: "tls_error";
96
+ http_4xx: "http_4xx";
97
+ http_5xx: "http_5xx";
98
+ challenge_failed: "challenge_failed";
99
+ }>>>;
100
+ failedSince: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodNullable<import("@frontmcp/lazy-zod").ZodString>>;
101
+ throttled: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodBoolean>;
102
+ retryAfterMs: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodNumber>;
103
+ }, import("zod/v4/core").$strip>;
104
+ export type EventDeliveryStatus = z.infer<typeof EventDeliveryStatusSchema>;
105
+ export declare const ListEventsRequestSchema: import("@frontmcp/lazy-zod").ZodObject<{
106
+ method: import("@frontmcp/lazy-zod").ZodLiteral<"events/list">;
107
+ params: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodObject<{
108
+ cursor: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodNullable<import("@frontmcp/lazy-zod").ZodString>>;
109
+ _meta: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodRecord<import("@frontmcp/lazy-zod").ZodString, import("@frontmcp/lazy-zod").ZodUnknown>>;
110
+ }, import("zod/v4/core").$strip>>;
111
+ }, import("zod/v4/core").$strip>;
112
+ export type ListEventsRequest = z.infer<typeof ListEventsRequestSchema>;
113
+ export declare const ListEventsResultSchema: import("@frontmcp/lazy-zod").ZodObject<{
114
+ events: import("@frontmcp/lazy-zod").ZodArray<import("@frontmcp/lazy-zod").ZodObject<{
115
+ name: import("@frontmcp/lazy-zod").ZodString;
116
+ description: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodString>;
117
+ delivery: import("@frontmcp/lazy-zod").ZodArray<import("@frontmcp/lazy-zod").ZodEnum<{
118
+ poll: "poll";
119
+ push: "push";
120
+ webhook: "webhook";
121
+ }>>;
122
+ inputSchema: import("@frontmcp/lazy-zod").ZodRecord<import("@frontmcp/lazy-zod").ZodString, import("@frontmcp/lazy-zod").ZodUnknown>;
123
+ payloadSchema: import("@frontmcp/lazy-zod").ZodRecord<import("@frontmcp/lazy-zod").ZodString, import("@frontmcp/lazy-zod").ZodUnknown>;
124
+ _meta: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodRecord<import("@frontmcp/lazy-zod").ZodString, import("@frontmcp/lazy-zod").ZodUnknown>>;
125
+ }, import("zod/v4/core").$strip>>;
126
+ nextCursor: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodString>;
127
+ _meta: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodRecord<import("@frontmcp/lazy-zod").ZodString, import("@frontmcp/lazy-zod").ZodUnknown>>;
128
+ resultType: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodString>;
129
+ }, import("zod/v4/core").$strip>;
130
+ export type ListEventsResult = z.infer<typeof ListEventsResultSchema>;
131
+ export declare const SubscribeEventRequestSchema: import("@frontmcp/lazy-zod").ZodObject<{
132
+ method: import("@frontmcp/lazy-zod").ZodLiteral<"events/subscribe">;
133
+ params: import("@frontmcp/lazy-zod").ZodObject<{
134
+ delivery: import("@frontmcp/lazy-zod").ZodObject<{
135
+ mode: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodEnum<{
136
+ poll: "poll";
137
+ push: "push";
138
+ webhook: "webhook";
139
+ }>>;
140
+ url: import("@frontmcp/lazy-zod").ZodString;
141
+ secret: import("@frontmcp/lazy-zod").ZodString;
142
+ }, import("zod/v4/core").$strip>;
143
+ cursor: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodNullable<import("@frontmcp/lazy-zod").ZodString>>;
144
+ maxAgeMs: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodNumber>;
145
+ ttlMs: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodNullable<import("@frontmcp/lazy-zod").ZodNumber>>;
146
+ _meta: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodRecord<import("@frontmcp/lazy-zod").ZodString, import("@frontmcp/lazy-zod").ZodUnknown>>;
147
+ name: import("@frontmcp/lazy-zod").ZodString;
148
+ arguments: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodRecord<import("@frontmcp/lazy-zod").ZodString, import("@frontmcp/lazy-zod").ZodUnknown>>;
149
+ }, import("zod/v4/core").$strip>;
150
+ }, import("zod/v4/core").$strip>;
151
+ export type SubscribeEventRequest = z.infer<typeof SubscribeEventRequestSchema>;
152
+ export declare const SubscribeEventResultSchema: import("@frontmcp/lazy-zod").ZodObject<{
153
+ id: import("@frontmcp/lazy-zod").ZodString;
154
+ refreshBefore: import("@frontmcp/lazy-zod").ZodNullable<import("@frontmcp/lazy-zod").ZodString>;
155
+ cursor: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodNullable<import("@frontmcp/lazy-zod").ZodString>>;
156
+ truncated: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodBoolean>;
157
+ deliveryStatus: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodObject<{
158
+ active: import("@frontmcp/lazy-zod").ZodBoolean;
159
+ lastDeliveryAt: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodNullable<import("@frontmcp/lazy-zod").ZodString>>;
160
+ lastError: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodNullable<import("@frontmcp/lazy-zod").ZodEnum<{
161
+ connection_refused: "connection_refused";
162
+ timeout: "timeout";
163
+ tls_error: "tls_error";
164
+ http_4xx: "http_4xx";
165
+ http_5xx: "http_5xx";
166
+ challenge_failed: "challenge_failed";
167
+ }>>>;
168
+ failedSince: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodNullable<import("@frontmcp/lazy-zod").ZodString>>;
169
+ throttled: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodBoolean>;
170
+ retryAfterMs: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodNumber>;
171
+ }, import("zod/v4/core").$strip>>;
172
+ _meta: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodRecord<import("@frontmcp/lazy-zod").ZodString, import("@frontmcp/lazy-zod").ZodUnknown>>;
173
+ resultType: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodString>;
174
+ }, import("zod/v4/core").$strip>;
175
+ export type SubscribeEventResult = z.infer<typeof SubscribeEventResultSchema>;
176
+ export declare const UnsubscribeEventRequestSchema: import("@frontmcp/lazy-zod").ZodObject<{
177
+ method: import("@frontmcp/lazy-zod").ZodLiteral<"events/unsubscribe">;
178
+ params: import("@frontmcp/lazy-zod").ZodObject<{
179
+ delivery: import("@frontmcp/lazy-zod").ZodObject<{
180
+ mode: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodEnum<{
181
+ poll: "poll";
182
+ push: "push";
183
+ webhook: "webhook";
184
+ }>>;
185
+ url: import("@frontmcp/lazy-zod").ZodString;
186
+ }, import("zod/v4/core").$strip>;
187
+ _meta: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodRecord<import("@frontmcp/lazy-zod").ZodString, import("@frontmcp/lazy-zod").ZodUnknown>>;
188
+ name: import("@frontmcp/lazy-zod").ZodString;
189
+ arguments: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodRecord<import("@frontmcp/lazy-zod").ZodString, import("@frontmcp/lazy-zod").ZodUnknown>>;
190
+ }, import("zod/v4/core").$strip>;
191
+ }, import("zod/v4/core").$strip>;
192
+ export type UnsubscribeEventRequest = z.infer<typeof UnsubscribeEventRequestSchema>;
193
+ export declare const UnsubscribeEventResultSchema: import("@frontmcp/lazy-zod").ZodObject<{
194
+ _meta: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodRecord<import("@frontmcp/lazy-zod").ZodString, import("@frontmcp/lazy-zod").ZodUnknown>>;
195
+ resultType: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodString>;
196
+ }, import("zod/v4/core").$strip>;
197
+ export type UnsubscribeEventResult = z.infer<typeof UnsubscribeEventResultSchema>;
198
+ export declare const PollEventsRequestSchema: import("@frontmcp/lazy-zod").ZodObject<{
199
+ method: import("@frontmcp/lazy-zod").ZodLiteral<"events/poll">;
200
+ params: import("@frontmcp/lazy-zod").ZodObject<{
201
+ cursor: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodNullable<import("@frontmcp/lazy-zod").ZodString>>;
202
+ maxAgeMs: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodNumber>;
203
+ maxEvents: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodNumber>;
204
+ _meta: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodRecord<import("@frontmcp/lazy-zod").ZodString, import("@frontmcp/lazy-zod").ZodUnknown>>;
205
+ name: import("@frontmcp/lazy-zod").ZodString;
206
+ arguments: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodRecord<import("@frontmcp/lazy-zod").ZodString, import("@frontmcp/lazy-zod").ZodUnknown>>;
207
+ }, import("zod/v4/core").$strip>;
208
+ }, import("zod/v4/core").$strip>;
209
+ export type PollEventsRequest = z.infer<typeof PollEventsRequestSchema>;
210
+ export declare const PollEventsResultSchema: import("@frontmcp/lazy-zod").ZodObject<{
211
+ events: import("@frontmcp/lazy-zod").ZodArray<import("@frontmcp/lazy-zod").ZodObject<{
212
+ eventId: import("@frontmcp/lazy-zod").ZodString;
213
+ name: import("@frontmcp/lazy-zod").ZodString;
214
+ timestamp: import("@frontmcp/lazy-zod").ZodString;
215
+ data: import("@frontmcp/lazy-zod").ZodRecord<import("@frontmcp/lazy-zod").ZodString, import("@frontmcp/lazy-zod").ZodUnknown>;
216
+ cursor: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodNullable<import("@frontmcp/lazy-zod").ZodString>>;
217
+ _meta: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodRecord<import("@frontmcp/lazy-zod").ZodString, import("@frontmcp/lazy-zod").ZodUnknown>>;
218
+ }, import("zod/v4/core").$strip>>;
219
+ cursor: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodNullable<import("@frontmcp/lazy-zod").ZodString>>;
220
+ truncated: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodBoolean>;
221
+ hasMore: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodBoolean>;
222
+ nextPollMs: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodNumber>;
223
+ _meta: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodRecord<import("@frontmcp/lazy-zod").ZodString, import("@frontmcp/lazy-zod").ZodUnknown>>;
224
+ resultType: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodString>;
225
+ }, import("zod/v4/core").$strip>;
226
+ export type PollEventsResult = z.infer<typeof PollEventsResultSchema>;
227
+ export declare const StreamEventsRequestSchema: import("@frontmcp/lazy-zod").ZodObject<{
228
+ method: import("@frontmcp/lazy-zod").ZodLiteral<"events/stream">;
229
+ params: import("@frontmcp/lazy-zod").ZodObject<{
230
+ cursor: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodNullable<import("@frontmcp/lazy-zod").ZodString>>;
231
+ maxAgeMs: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodNumber>;
232
+ _meta: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodRecord<import("@frontmcp/lazy-zod").ZodString, import("@frontmcp/lazy-zod").ZodUnknown>>;
233
+ name: import("@frontmcp/lazy-zod").ZodString;
234
+ arguments: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodRecord<import("@frontmcp/lazy-zod").ZodString, import("@frontmcp/lazy-zod").ZodUnknown>>;
235
+ }, import("zod/v4/core").$strip>;
236
+ }, import("zod/v4/core").$strip>;
237
+ export type StreamEventsRequest = z.infer<typeof StreamEventsRequestSchema>;
238
+ export declare const StreamEventsResultSchema: import("@frontmcp/lazy-zod").ZodObject<{
239
+ _meta: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodRecord<import("@frontmcp/lazy-zod").ZodString, import("@frontmcp/lazy-zod").ZodUnknown>>;
240
+ resultType: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodString>;
241
+ }, import("zod/v4/core").$strip>;
242
+ export type StreamEventsResult = z.infer<typeof StreamEventsResultSchema>;
243
+ export declare const EventsListChangedNotificationSchema: import("@frontmcp/lazy-zod").ZodObject<{
244
+ method: import("@frontmcp/lazy-zod").ZodLiteral<"notifications/events/list_changed">;
245
+ params: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodObject<{
246
+ _meta: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodRecord<import("@frontmcp/lazy-zod").ZodString, import("@frontmcp/lazy-zod").ZodUnknown>>;
247
+ }, import("zod/v4/core").$strip>>;
248
+ }, import("zod/v4/core").$strip>;
249
+ export type EventsListChangedNotification = z.infer<typeof EventsListChangedNotificationSchema>;
250
+ export declare const EventActiveNotificationSchema: import("@frontmcp/lazy-zod").ZodObject<{
251
+ method: import("@frontmcp/lazy-zod").ZodLiteral<"notifications/events/active">;
252
+ params: import("@frontmcp/lazy-zod").ZodObject<{
253
+ cursor: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodNullable<import("@frontmcp/lazy-zod").ZodString>>;
254
+ truncated: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodBoolean>;
255
+ _meta: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodRecord<import("@frontmcp/lazy-zod").ZodString, import("@frontmcp/lazy-zod").ZodUnknown>>;
256
+ }, import("zod/v4/core").$strip>;
257
+ }, import("zod/v4/core").$strip>;
258
+ export type EventActiveNotification = z.infer<typeof EventActiveNotificationSchema>;
259
+ export declare const EventOccurrenceNotificationSchema: import("@frontmcp/lazy-zod").ZodObject<{
260
+ method: import("@frontmcp/lazy-zod").ZodLiteral<"notifications/events/event">;
261
+ params: import("@frontmcp/lazy-zod").ZodObject<{
262
+ eventId: import("@frontmcp/lazy-zod").ZodString;
263
+ name: import("@frontmcp/lazy-zod").ZodString;
264
+ timestamp: import("@frontmcp/lazy-zod").ZodString;
265
+ data: import("@frontmcp/lazy-zod").ZodRecord<import("@frontmcp/lazy-zod").ZodString, import("@frontmcp/lazy-zod").ZodUnknown>;
266
+ cursor: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodNullable<import("@frontmcp/lazy-zod").ZodString>>;
267
+ _meta: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodRecord<import("@frontmcp/lazy-zod").ZodString, import("@frontmcp/lazy-zod").ZodUnknown>>;
268
+ }, import("zod/v4/core").$strip>;
269
+ }, import("zod/v4/core").$strip>;
270
+ export type EventOccurrenceNotification = z.infer<typeof EventOccurrenceNotificationSchema>;
271
+ export declare const EventErrorNotificationSchema: import("@frontmcp/lazy-zod").ZodObject<{
272
+ method: import("@frontmcp/lazy-zod").ZodLiteral<"notifications/events/error">;
273
+ params: import("@frontmcp/lazy-zod").ZodObject<{
274
+ error: import("@frontmcp/lazy-zod").ZodObject<{
275
+ code: import("@frontmcp/lazy-zod").ZodNumber;
276
+ message: import("@frontmcp/lazy-zod").ZodString;
277
+ data: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodRecord<import("@frontmcp/lazy-zod").ZodString, import("@frontmcp/lazy-zod").ZodUnknown>>;
278
+ }, import("zod/v4/core").$strip>;
279
+ _meta: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodRecord<import("@frontmcp/lazy-zod").ZodString, import("@frontmcp/lazy-zod").ZodUnknown>>;
280
+ }, import("zod/v4/core").$strip>;
281
+ }, import("zod/v4/core").$strip>;
282
+ export type EventErrorNotification = z.infer<typeof EventErrorNotificationSchema>;
283
+ export declare const EventHeartbeatNotificationSchema: import("@frontmcp/lazy-zod").ZodObject<{
284
+ method: import("@frontmcp/lazy-zod").ZodLiteral<"notifications/events/heartbeat">;
285
+ params: import("@frontmcp/lazy-zod").ZodObject<{
286
+ cursor: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodNullable<import("@frontmcp/lazy-zod").ZodString>>;
287
+ _meta: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodRecord<import("@frontmcp/lazy-zod").ZodString, import("@frontmcp/lazy-zod").ZodUnknown>>;
288
+ }, import("zod/v4/core").$strip>;
289
+ }, import("zod/v4/core").$strip>;
290
+ export type EventHeartbeatNotification = z.infer<typeof EventHeartbeatNotificationSchema>;
291
+ export declare const EventTerminatedNotificationSchema: import("@frontmcp/lazy-zod").ZodObject<{
292
+ method: import("@frontmcp/lazy-zod").ZodLiteral<"notifications/events/terminated">;
293
+ params: import("@frontmcp/lazy-zod").ZodObject<{
294
+ error: import("@frontmcp/lazy-zod").ZodObject<{
295
+ code: import("@frontmcp/lazy-zod").ZodNumber;
296
+ message: import("@frontmcp/lazy-zod").ZodString;
297
+ data: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodRecord<import("@frontmcp/lazy-zod").ZodString, import("@frontmcp/lazy-zod").ZodUnknown>>;
298
+ }, import("zod/v4/core").$strip>;
299
+ _meta: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodRecord<import("@frontmcp/lazy-zod").ZodString, import("@frontmcp/lazy-zod").ZodUnknown>>;
300
+ }, import("zod/v4/core").$strip>;
301
+ }, import("zod/v4/core").$strip>;
302
+ export type EventTerminatedNotification = z.infer<typeof EventTerminatedNotificationSchema>;
303
+ export declare const EventVerificationEnvelopeSchema: import("@frontmcp/lazy-zod").ZodObject<{
304
+ type: import("@frontmcp/lazy-zod").ZodLiteral<"verification">;
305
+ challenge: import("@frontmcp/lazy-zod").ZodString;
306
+ }, import("zod/v4/core").$strip>;
307
+ export type EventVerificationEnvelope = z.infer<typeof EventVerificationEnvelopeSchema>;
308
+ export declare const EventGapEnvelopeSchema: import("@frontmcp/lazy-zod").ZodObject<{
309
+ type: import("@frontmcp/lazy-zod").ZodLiteral<"gap">;
310
+ cursor: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodNullable<import("@frontmcp/lazy-zod").ZodString>>;
311
+ }, import("zod/v4/core").$strip>;
312
+ export type EventGapEnvelope = z.infer<typeof EventGapEnvelopeSchema>;
313
+ export declare const EventTerminatedEnvelopeSchema: import("@frontmcp/lazy-zod").ZodObject<{
314
+ type: import("@frontmcp/lazy-zod").ZodLiteral<"terminated">;
315
+ error: import("@frontmcp/lazy-zod").ZodObject<{
316
+ code: import("@frontmcp/lazy-zod").ZodNumber;
317
+ message: import("@frontmcp/lazy-zod").ZodString;
318
+ data: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodRecord<import("@frontmcp/lazy-zod").ZodString, import("@frontmcp/lazy-zod").ZodUnknown>>;
319
+ }, import("zod/v4/core").$strip>;
320
+ }, import("zod/v4/core").$strip>;
321
+ export type EventTerminatedEnvelope = z.infer<typeof EventTerminatedEnvelopeSchema>;
322
+ /** A webhook body with a top-level `type`; a body without one is an `EventOccurrence`. */
323
+ export declare const EventControlEnvelopeSchema: import("@frontmcp/lazy-zod").ZodDiscriminatedUnion<[import("@frontmcp/lazy-zod").ZodObject<{
324
+ type: import("@frontmcp/lazy-zod").ZodLiteral<"verification">;
325
+ challenge: import("@frontmcp/lazy-zod").ZodString;
326
+ }, import("zod/v4/core").$strip>, import("@frontmcp/lazy-zod").ZodObject<{
327
+ type: import("@frontmcp/lazy-zod").ZodLiteral<"gap">;
328
+ cursor: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodNullable<import("@frontmcp/lazy-zod").ZodString>>;
329
+ }, import("zod/v4/core").$strip>, import("@frontmcp/lazy-zod").ZodObject<{
330
+ type: import("@frontmcp/lazy-zod").ZodLiteral<"terminated">;
331
+ error: import("@frontmcp/lazy-zod").ZodObject<{
332
+ code: import("@frontmcp/lazy-zod").ZodNumber;
333
+ message: import("@frontmcp/lazy-zod").ZodString;
334
+ data: import("@frontmcp/lazy-zod").ZodOptional<import("@frontmcp/lazy-zod").ZodRecord<import("@frontmcp/lazy-zod").ZodString, import("@frontmcp/lazy-zod").ZodUnknown>>;
335
+ }, import("zod/v4/core").$strip>;
336
+ }, import("zod/v4/core").$strip>], "type">;
337
+ export type EventControlEnvelope = z.infer<typeof EventControlEnvelopeSchema>;