@@ -175,12 +175,14 @@ export const ClientCapabilitiesSchema = z
175
175
* Present if the client supports listing roots.
176
176
*/
177
177
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 ( ) ,
184
186
) ,
185
187
} )
186
188
. passthrough ( ) ;
@@ -643,7 +645,11 @@ export const EmbeddedResourceSchema = z
643
645
export const PromptMessageSchema = z
644
646
. object ( {
645
647
role : z . enum ( [ "user" , "assistant" ] ) ,
646
- content : z . union ( [ TextContentSchema , ImageContentSchema , EmbeddedResourceSchema ] ) ,
648
+ content : z . union ( [
649
+ TextContentSchema ,
650
+ ImageContentSchema ,
651
+ EmbeddedResourceSchema ,
652
+ ] ) ,
647
653
} )
648
654
. passthrough ( ) ;
649
655
@@ -709,7 +715,9 @@ export const ListToolsResultSchema = PaginatedResultSchema.extend({
709
715
* The server's response to a tool call.
710
716
*/
711
717
export const CallToolResultSchema = ResultSchema . extend ( {
712
- content : z . array ( z . union ( [ TextContentSchema , ImageContentSchema , EmbeddedResourceSchema ] ) ) ,
718
+ content : z . array (
719
+ z . union ( [ TextContentSchema , ImageContentSchema , EmbeddedResourceSchema ] ) ,
720
+ ) ,
713
721
isError : z . boolean ( ) ,
714
722
} ) ;
715
723
@@ -743,7 +751,7 @@ export const LoggingLevelSchema = z.enum([
743
751
"error" ,
744
752
"critical" ,
745
753
"alert" ,
746
- "emergency"
754
+ "emergency" ,
747
755
] ) ;
748
756
749
757
/**
@@ -989,6 +997,7 @@ export const ClientRequestSchema = z.union([
989
997
GetPromptRequestSchema ,
990
998
ListPromptsRequestSchema ,
991
999
ListResourcesRequestSchema ,
1000
+ ListResourceTemplatesRequestSchema ,
992
1001
ReadResourceRequestSchema ,
993
1002
SubscribeRequestSchema ,
994
1003
UnsubscribeRequestSchema ,
@@ -1032,6 +1041,7 @@ export const ServerResultSchema = z.union([
1032
1041
GetPromptResultSchema ,
1033
1042
ListPromptsResultSchema ,
1034
1043
ListResourcesResultSchema ,
1044
+ ListResourceTemplatesResultSchema ,
1035
1045
ReadResourceResultSchema ,
1036
1046
CallToolResultSchema ,
1037
1047
ListToolsResultSchema ,
0 commit comments