@@ -175,12 +175,14 @@ export const ClientCapabilitiesSchema = z
175175 * Present if the client supports listing roots.
176176 */
177177 roots : z . optional (
178- z . object ( {
179- /**
180- * Whether the client supports notifications for changes to the roots list.
181- */
182- listChanged : z . optional ( z . boolean ( ) ) ,
183- } ) . passthrough ( ) ,
178+ z
179+ . object ( {
180+ /**
181+ * Whether the client supports notifications for changes to the roots list.
182+ */
183+ listChanged : z . optional ( z . boolean ( ) ) ,
184+ } )
185+ . passthrough ( ) ,
184186 ) ,
185187 } )
186188 . passthrough ( ) ;
@@ -643,7 +645,11 @@ export const EmbeddedResourceSchema = z
643645export const PromptMessageSchema = z
644646 . object ( {
645647 role : z . enum ( [ "user" , "assistant" ] ) ,
646- content : z . union ( [ TextContentSchema , ImageContentSchema , EmbeddedResourceSchema ] ) ,
648+ content : z . union ( [
649+ TextContentSchema ,
650+ ImageContentSchema ,
651+ EmbeddedResourceSchema ,
652+ ] ) ,
647653 } )
648654 . passthrough ( ) ;
649655
@@ -709,7 +715,9 @@ export const ListToolsResultSchema = PaginatedResultSchema.extend({
709715 * The server's response to a tool call.
710716 */
711717export const CallToolResultSchema = ResultSchema . extend ( {
712- content : z . array ( z . union ( [ TextContentSchema , ImageContentSchema , EmbeddedResourceSchema ] ) ) ,
718+ content : z . array (
719+ z . union ( [ TextContentSchema , ImageContentSchema , EmbeddedResourceSchema ] ) ,
720+ ) ,
713721 isError : z . boolean ( ) ,
714722} ) ;
715723
@@ -743,7 +751,7 @@ export const LoggingLevelSchema = z.enum([
743751 "error" ,
744752 "critical" ,
745753 "alert" ,
746- "emergency"
754+ "emergency" ,
747755] ) ;
748756
749757/**
@@ -989,6 +997,7 @@ export const ClientRequestSchema = z.union([
989997 GetPromptRequestSchema ,
990998 ListPromptsRequestSchema ,
991999 ListResourcesRequestSchema ,
1000+ ListResourceTemplatesRequestSchema ,
9921001 ReadResourceRequestSchema ,
9931002 SubscribeRequestSchema ,
9941003 UnsubscribeRequestSchema ,
@@ -1032,6 +1041,7 @@ export const ServerResultSchema = z.union([
10321041 GetPromptResultSchema ,
10331042 ListPromptsResultSchema ,
10341043 ListResourcesResultSchema ,
1044+ ListResourceTemplatesResultSchema ,
10351045 ReadResourceResultSchema ,
10361046 CallToolResultSchema ,
10371047 ListToolsResultSchema ,
0 commit comments