@modelcontextprotocol/sdk 1.0.2 → 1.0.4

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/dist/types.d.ts CHANGED
@@ -11380,6 +11380,982 @@ export declare const CallToolResultSchema: z.ZodObject<z.objectUtil.extendShape<
11380
11380
  }, z.ZodTypeAny, "passthrough">>]>, "many">;
11381
11381
  isError: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
11382
11382
  }>, z.ZodTypeAny, "passthrough">>;
11383
+ /**
11384
+ * CallToolResultSchema extended with backwards compatibility to protocol version 2024-10-07.
11385
+ */
11386
+ export declare const CompatibilityCallToolResultSchema: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
11387
+ /**
11388
+ * This result property is reserved by the protocol to allow clients and servers to attach additional metadata to their responses.
11389
+ */
11390
+ _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
11391
+ }, {
11392
+ content: z.ZodArray<z.ZodUnion<[z.ZodObject<{
11393
+ type: z.ZodLiteral<"text">;
11394
+ /**
11395
+ * The text content of the message.
11396
+ */
11397
+ text: z.ZodString;
11398
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
11399
+ type: z.ZodLiteral<"text">;
11400
+ /**
11401
+ * The text content of the message.
11402
+ */
11403
+ text: z.ZodString;
11404
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
11405
+ type: z.ZodLiteral<"text">;
11406
+ /**
11407
+ * The text content of the message.
11408
+ */
11409
+ text: z.ZodString;
11410
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
11411
+ type: z.ZodLiteral<"image">;
11412
+ /**
11413
+ * The base64-encoded image data.
11414
+ */
11415
+ data: z.ZodString;
11416
+ /**
11417
+ * The MIME type of the image. Different providers may support different image types.
11418
+ */
11419
+ mimeType: z.ZodString;
11420
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
11421
+ type: z.ZodLiteral<"image">;
11422
+ /**
11423
+ * The base64-encoded image data.
11424
+ */
11425
+ data: z.ZodString;
11426
+ /**
11427
+ * The MIME type of the image. Different providers may support different image types.
11428
+ */
11429
+ mimeType: z.ZodString;
11430
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
11431
+ type: z.ZodLiteral<"image">;
11432
+ /**
11433
+ * The base64-encoded image data.
11434
+ */
11435
+ data: z.ZodString;
11436
+ /**
11437
+ * The MIME type of the image. Different providers may support different image types.
11438
+ */
11439
+ mimeType: z.ZodString;
11440
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
11441
+ type: z.ZodLiteral<"resource">;
11442
+ resource: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
11443
+ /**
11444
+ * The URI of this resource.
11445
+ */
11446
+ uri: z.ZodString;
11447
+ /**
11448
+ * The MIME type of this resource, if known.
11449
+ */
11450
+ mimeType: z.ZodOptional<z.ZodString>;
11451
+ }, {
11452
+ /**
11453
+ * The text of the item. This must only be set if the item can actually be represented as text (not binary data).
11454
+ */
11455
+ text: z.ZodString;
11456
+ }>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
11457
+ /**
11458
+ * The URI of this resource.
11459
+ */
11460
+ uri: z.ZodString;
11461
+ /**
11462
+ * The MIME type of this resource, if known.
11463
+ */
11464
+ mimeType: z.ZodOptional<z.ZodString>;
11465
+ }, {
11466
+ /**
11467
+ * The text of the item. This must only be set if the item can actually be represented as text (not binary data).
11468
+ */
11469
+ text: z.ZodString;
11470
+ }>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
11471
+ /**
11472
+ * The URI of this resource.
11473
+ */
11474
+ uri: z.ZodString;
11475
+ /**
11476
+ * The MIME type of this resource, if known.
11477
+ */
11478
+ mimeType: z.ZodOptional<z.ZodString>;
11479
+ }, {
11480
+ /**
11481
+ * The text of the item. This must only be set if the item can actually be represented as text (not binary data).
11482
+ */
11483
+ text: z.ZodString;
11484
+ }>, z.ZodTypeAny, "passthrough">>, z.ZodObject<z.objectUtil.extendShape<{
11485
+ /**
11486
+ * The URI of this resource.
11487
+ */
11488
+ uri: z.ZodString;
11489
+ /**
11490
+ * The MIME type of this resource, if known.
11491
+ */
11492
+ mimeType: z.ZodOptional<z.ZodString>;
11493
+ }, {
11494
+ /**
11495
+ * A base64-encoded string representing the binary data of the item.
11496
+ */
11497
+ blob: z.ZodString;
11498
+ }>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
11499
+ /**
11500
+ * The URI of this resource.
11501
+ */
11502
+ uri: z.ZodString;
11503
+ /**
11504
+ * The MIME type of this resource, if known.
11505
+ */
11506
+ mimeType: z.ZodOptional<z.ZodString>;
11507
+ }, {
11508
+ /**
11509
+ * A base64-encoded string representing the binary data of the item.
11510
+ */
11511
+ blob: z.ZodString;
11512
+ }>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
11513
+ /**
11514
+ * The URI of this resource.
11515
+ */
11516
+ uri: z.ZodString;
11517
+ /**
11518
+ * The MIME type of this resource, if known.
11519
+ */
11520
+ mimeType: z.ZodOptional<z.ZodString>;
11521
+ }, {
11522
+ /**
11523
+ * A base64-encoded string representing the binary data of the item.
11524
+ */
11525
+ blob: z.ZodString;
11526
+ }>, z.ZodTypeAny, "passthrough">>]>;
11527
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
11528
+ type: z.ZodLiteral<"resource">;
11529
+ resource: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
11530
+ /**
11531
+ * The URI of this resource.
11532
+ */
11533
+ uri: z.ZodString;
11534
+ /**
11535
+ * The MIME type of this resource, if known.
11536
+ */
11537
+ mimeType: z.ZodOptional<z.ZodString>;
11538
+ }, {
11539
+ /**
11540
+ * The text of the item. This must only be set if the item can actually be represented as text (not binary data).
11541
+ */
11542
+ text: z.ZodString;
11543
+ }>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
11544
+ /**
11545
+ * The URI of this resource.
11546
+ */
11547
+ uri: z.ZodString;
11548
+ /**
11549
+ * The MIME type of this resource, if known.
11550
+ */
11551
+ mimeType: z.ZodOptional<z.ZodString>;
11552
+ }, {
11553
+ /**
11554
+ * The text of the item. This must only be set if the item can actually be represented as text (not binary data).
11555
+ */
11556
+ text: z.ZodString;
11557
+ }>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
11558
+ /**
11559
+ * The URI of this resource.
11560
+ */
11561
+ uri: z.ZodString;
11562
+ /**
11563
+ * The MIME type of this resource, if known.
11564
+ */
11565
+ mimeType: z.ZodOptional<z.ZodString>;
11566
+ }, {
11567
+ /**
11568
+ * The text of the item. This must only be set if the item can actually be represented as text (not binary data).
11569
+ */
11570
+ text: z.ZodString;
11571
+ }>, z.ZodTypeAny, "passthrough">>, z.ZodObject<z.objectUtil.extendShape<{
11572
+ /**
11573
+ * The URI of this resource.
11574
+ */
11575
+ uri: z.ZodString;
11576
+ /**
11577
+ * The MIME type of this resource, if known.
11578
+ */
11579
+ mimeType: z.ZodOptional<z.ZodString>;
11580
+ }, {
11581
+ /**
11582
+ * A base64-encoded string representing the binary data of the item.
11583
+ */
11584
+ blob: z.ZodString;
11585
+ }>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
11586
+ /**
11587
+ * The URI of this resource.
11588
+ */
11589
+ uri: z.ZodString;
11590
+ /**
11591
+ * The MIME type of this resource, if known.
11592
+ */
11593
+ mimeType: z.ZodOptional<z.ZodString>;
11594
+ }, {
11595
+ /**
11596
+ * A base64-encoded string representing the binary data of the item.
11597
+ */
11598
+ blob: z.ZodString;
11599
+ }>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
11600
+ /**
11601
+ * The URI of this resource.
11602
+ */
11603
+ uri: z.ZodString;
11604
+ /**
11605
+ * The MIME type of this resource, if known.
11606
+ */
11607
+ mimeType: z.ZodOptional<z.ZodString>;
11608
+ }, {
11609
+ /**
11610
+ * A base64-encoded string representing the binary data of the item.
11611
+ */
11612
+ blob: z.ZodString;
11613
+ }>, z.ZodTypeAny, "passthrough">>]>;
11614
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
11615
+ type: z.ZodLiteral<"resource">;
11616
+ resource: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
11617
+ /**
11618
+ * The URI of this resource.
11619
+ */
11620
+ uri: z.ZodString;
11621
+ /**
11622
+ * The MIME type of this resource, if known.
11623
+ */
11624
+ mimeType: z.ZodOptional<z.ZodString>;
11625
+ }, {
11626
+ /**
11627
+ * The text of the item. This must only be set if the item can actually be represented as text (not binary data).
11628
+ */
11629
+ text: z.ZodString;
11630
+ }>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
11631
+ /**
11632
+ * The URI of this resource.
11633
+ */
11634
+ uri: z.ZodString;
11635
+ /**
11636
+ * The MIME type of this resource, if known.
11637
+ */
11638
+ mimeType: z.ZodOptional<z.ZodString>;
11639
+ }, {
11640
+ /**
11641
+ * The text of the item. This must only be set if the item can actually be represented as text (not binary data).
11642
+ */
11643
+ text: z.ZodString;
11644
+ }>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
11645
+ /**
11646
+ * The URI of this resource.
11647
+ */
11648
+ uri: z.ZodString;
11649
+ /**
11650
+ * The MIME type of this resource, if known.
11651
+ */
11652
+ mimeType: z.ZodOptional<z.ZodString>;
11653
+ }, {
11654
+ /**
11655
+ * The text of the item. This must only be set if the item can actually be represented as text (not binary data).
11656
+ */
11657
+ text: z.ZodString;
11658
+ }>, z.ZodTypeAny, "passthrough">>, z.ZodObject<z.objectUtil.extendShape<{
11659
+ /**
11660
+ * The URI of this resource.
11661
+ */
11662
+ uri: z.ZodString;
11663
+ /**
11664
+ * The MIME type of this resource, if known.
11665
+ */
11666
+ mimeType: z.ZodOptional<z.ZodString>;
11667
+ }, {
11668
+ /**
11669
+ * A base64-encoded string representing the binary data of the item.
11670
+ */
11671
+ blob: z.ZodString;
11672
+ }>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
11673
+ /**
11674
+ * The URI of this resource.
11675
+ */
11676
+ uri: z.ZodString;
11677
+ /**
11678
+ * The MIME type of this resource, if known.
11679
+ */
11680
+ mimeType: z.ZodOptional<z.ZodString>;
11681
+ }, {
11682
+ /**
11683
+ * A base64-encoded string representing the binary data of the item.
11684
+ */
11685
+ blob: z.ZodString;
11686
+ }>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
11687
+ /**
11688
+ * The URI of this resource.
11689
+ */
11690
+ uri: z.ZodString;
11691
+ /**
11692
+ * The MIME type of this resource, if known.
11693
+ */
11694
+ mimeType: z.ZodOptional<z.ZodString>;
11695
+ }, {
11696
+ /**
11697
+ * A base64-encoded string representing the binary data of the item.
11698
+ */
11699
+ blob: z.ZodString;
11700
+ }>, z.ZodTypeAny, "passthrough">>]>;
11701
+ }, z.ZodTypeAny, "passthrough">>]>, "many">;
11702
+ isError: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
11703
+ }>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
11704
+ /**
11705
+ * This result property is reserved by the protocol to allow clients and servers to attach additional metadata to their responses.
11706
+ */
11707
+ _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
11708
+ }, {
11709
+ content: z.ZodArray<z.ZodUnion<[z.ZodObject<{
11710
+ type: z.ZodLiteral<"text">;
11711
+ /**
11712
+ * The text content of the message.
11713
+ */
11714
+ text: z.ZodString;
11715
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
11716
+ type: z.ZodLiteral<"text">;
11717
+ /**
11718
+ * The text content of the message.
11719
+ */
11720
+ text: z.ZodString;
11721
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
11722
+ type: z.ZodLiteral<"text">;
11723
+ /**
11724
+ * The text content of the message.
11725
+ */
11726
+ text: z.ZodString;
11727
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
11728
+ type: z.ZodLiteral<"image">;
11729
+ /**
11730
+ * The base64-encoded image data.
11731
+ */
11732
+ data: z.ZodString;
11733
+ /**
11734
+ * The MIME type of the image. Different providers may support different image types.
11735
+ */
11736
+ mimeType: z.ZodString;
11737
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
11738
+ type: z.ZodLiteral<"image">;
11739
+ /**
11740
+ * The base64-encoded image data.
11741
+ */
11742
+ data: z.ZodString;
11743
+ /**
11744
+ * The MIME type of the image. Different providers may support different image types.
11745
+ */
11746
+ mimeType: z.ZodString;
11747
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
11748
+ type: z.ZodLiteral<"image">;
11749
+ /**
11750
+ * The base64-encoded image data.
11751
+ */
11752
+ data: z.ZodString;
11753
+ /**
11754
+ * The MIME type of the image. Different providers may support different image types.
11755
+ */
11756
+ mimeType: z.ZodString;
11757
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
11758
+ type: z.ZodLiteral<"resource">;
11759
+ resource: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
11760
+ /**
11761
+ * The URI of this resource.
11762
+ */
11763
+ uri: z.ZodString;
11764
+ /**
11765
+ * The MIME type of this resource, if known.
11766
+ */
11767
+ mimeType: z.ZodOptional<z.ZodString>;
11768
+ }, {
11769
+ /**
11770
+ * The text of the item. This must only be set if the item can actually be represented as text (not binary data).
11771
+ */
11772
+ text: z.ZodString;
11773
+ }>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
11774
+ /**
11775
+ * The URI of this resource.
11776
+ */
11777
+ uri: z.ZodString;
11778
+ /**
11779
+ * The MIME type of this resource, if known.
11780
+ */
11781
+ mimeType: z.ZodOptional<z.ZodString>;
11782
+ }, {
11783
+ /**
11784
+ * The text of the item. This must only be set if the item can actually be represented as text (not binary data).
11785
+ */
11786
+ text: z.ZodString;
11787
+ }>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
11788
+ /**
11789
+ * The URI of this resource.
11790
+ */
11791
+ uri: z.ZodString;
11792
+ /**
11793
+ * The MIME type of this resource, if known.
11794
+ */
11795
+ mimeType: z.ZodOptional<z.ZodString>;
11796
+ }, {
11797
+ /**
11798
+ * The text of the item. This must only be set if the item can actually be represented as text (not binary data).
11799
+ */
11800
+ text: z.ZodString;
11801
+ }>, z.ZodTypeAny, "passthrough">>, z.ZodObject<z.objectUtil.extendShape<{
11802
+ /**
11803
+ * The URI of this resource.
11804
+ */
11805
+ uri: z.ZodString;
11806
+ /**
11807
+ * The MIME type of this resource, if known.
11808
+ */
11809
+ mimeType: z.ZodOptional<z.ZodString>;
11810
+ }, {
11811
+ /**
11812
+ * A base64-encoded string representing the binary data of the item.
11813
+ */
11814
+ blob: z.ZodString;
11815
+ }>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
11816
+ /**
11817
+ * The URI of this resource.
11818
+ */
11819
+ uri: z.ZodString;
11820
+ /**
11821
+ * The MIME type of this resource, if known.
11822
+ */
11823
+ mimeType: z.ZodOptional<z.ZodString>;
11824
+ }, {
11825
+ /**
11826
+ * A base64-encoded string representing the binary data of the item.
11827
+ */
11828
+ blob: z.ZodString;
11829
+ }>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
11830
+ /**
11831
+ * The URI of this resource.
11832
+ */
11833
+ uri: z.ZodString;
11834
+ /**
11835
+ * The MIME type of this resource, if known.
11836
+ */
11837
+ mimeType: z.ZodOptional<z.ZodString>;
11838
+ }, {
11839
+ /**
11840
+ * A base64-encoded string representing the binary data of the item.
11841
+ */
11842
+ blob: z.ZodString;
11843
+ }>, z.ZodTypeAny, "passthrough">>]>;
11844
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
11845
+ type: z.ZodLiteral<"resource">;
11846
+ resource: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
11847
+ /**
11848
+ * The URI of this resource.
11849
+ */
11850
+ uri: z.ZodString;
11851
+ /**
11852
+ * The MIME type of this resource, if known.
11853
+ */
11854
+ mimeType: z.ZodOptional<z.ZodString>;
11855
+ }, {
11856
+ /**
11857
+ * The text of the item. This must only be set if the item can actually be represented as text (not binary data).
11858
+ */
11859
+ text: z.ZodString;
11860
+ }>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
11861
+ /**
11862
+ * The URI of this resource.
11863
+ */
11864
+ uri: z.ZodString;
11865
+ /**
11866
+ * The MIME type of this resource, if known.
11867
+ */
11868
+ mimeType: z.ZodOptional<z.ZodString>;
11869
+ }, {
11870
+ /**
11871
+ * The text of the item. This must only be set if the item can actually be represented as text (not binary data).
11872
+ */
11873
+ text: z.ZodString;
11874
+ }>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
11875
+ /**
11876
+ * The URI of this resource.
11877
+ */
11878
+ uri: z.ZodString;
11879
+ /**
11880
+ * The MIME type of this resource, if known.
11881
+ */
11882
+ mimeType: z.ZodOptional<z.ZodString>;
11883
+ }, {
11884
+ /**
11885
+ * The text of the item. This must only be set if the item can actually be represented as text (not binary data).
11886
+ */
11887
+ text: z.ZodString;
11888
+ }>, z.ZodTypeAny, "passthrough">>, z.ZodObject<z.objectUtil.extendShape<{
11889
+ /**
11890
+ * The URI of this resource.
11891
+ */
11892
+ uri: z.ZodString;
11893
+ /**
11894
+ * The MIME type of this resource, if known.
11895
+ */
11896
+ mimeType: z.ZodOptional<z.ZodString>;
11897
+ }, {
11898
+ /**
11899
+ * A base64-encoded string representing the binary data of the item.
11900
+ */
11901
+ blob: z.ZodString;
11902
+ }>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
11903
+ /**
11904
+ * The URI of this resource.
11905
+ */
11906
+ uri: z.ZodString;
11907
+ /**
11908
+ * The MIME type of this resource, if known.
11909
+ */
11910
+ mimeType: z.ZodOptional<z.ZodString>;
11911
+ }, {
11912
+ /**
11913
+ * A base64-encoded string representing the binary data of the item.
11914
+ */
11915
+ blob: z.ZodString;
11916
+ }>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
11917
+ /**
11918
+ * The URI of this resource.
11919
+ */
11920
+ uri: z.ZodString;
11921
+ /**
11922
+ * The MIME type of this resource, if known.
11923
+ */
11924
+ mimeType: z.ZodOptional<z.ZodString>;
11925
+ }, {
11926
+ /**
11927
+ * A base64-encoded string representing the binary data of the item.
11928
+ */
11929
+ blob: z.ZodString;
11930
+ }>, z.ZodTypeAny, "passthrough">>]>;
11931
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
11932
+ type: z.ZodLiteral<"resource">;
11933
+ resource: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
11934
+ /**
11935
+ * The URI of this resource.
11936
+ */
11937
+ uri: z.ZodString;
11938
+ /**
11939
+ * The MIME type of this resource, if known.
11940
+ */
11941
+ mimeType: z.ZodOptional<z.ZodString>;
11942
+ }, {
11943
+ /**
11944
+ * The text of the item. This must only be set if the item can actually be represented as text (not binary data).
11945
+ */
11946
+ text: z.ZodString;
11947
+ }>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
11948
+ /**
11949
+ * The URI of this resource.
11950
+ */
11951
+ uri: z.ZodString;
11952
+ /**
11953
+ * The MIME type of this resource, if known.
11954
+ */
11955
+ mimeType: z.ZodOptional<z.ZodString>;
11956
+ }, {
11957
+ /**
11958
+ * The text of the item. This must only be set if the item can actually be represented as text (not binary data).
11959
+ */
11960
+ text: z.ZodString;
11961
+ }>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
11962
+ /**
11963
+ * The URI of this resource.
11964
+ */
11965
+ uri: z.ZodString;
11966
+ /**
11967
+ * The MIME type of this resource, if known.
11968
+ */
11969
+ mimeType: z.ZodOptional<z.ZodString>;
11970
+ }, {
11971
+ /**
11972
+ * The text of the item. This must only be set if the item can actually be represented as text (not binary data).
11973
+ */
11974
+ text: z.ZodString;
11975
+ }>, z.ZodTypeAny, "passthrough">>, z.ZodObject<z.objectUtil.extendShape<{
11976
+ /**
11977
+ * The URI of this resource.
11978
+ */
11979
+ uri: z.ZodString;
11980
+ /**
11981
+ * The MIME type of this resource, if known.
11982
+ */
11983
+ mimeType: z.ZodOptional<z.ZodString>;
11984
+ }, {
11985
+ /**
11986
+ * A base64-encoded string representing the binary data of the item.
11987
+ */
11988
+ blob: z.ZodString;
11989
+ }>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
11990
+ /**
11991
+ * The URI of this resource.
11992
+ */
11993
+ uri: z.ZodString;
11994
+ /**
11995
+ * The MIME type of this resource, if known.
11996
+ */
11997
+ mimeType: z.ZodOptional<z.ZodString>;
11998
+ }, {
11999
+ /**
12000
+ * A base64-encoded string representing the binary data of the item.
12001
+ */
12002
+ blob: z.ZodString;
12003
+ }>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
12004
+ /**
12005
+ * The URI of this resource.
12006
+ */
12007
+ uri: z.ZodString;
12008
+ /**
12009
+ * The MIME type of this resource, if known.
12010
+ */
12011
+ mimeType: z.ZodOptional<z.ZodString>;
12012
+ }, {
12013
+ /**
12014
+ * A base64-encoded string representing the binary data of the item.
12015
+ */
12016
+ blob: z.ZodString;
12017
+ }>, z.ZodTypeAny, "passthrough">>]>;
12018
+ }, z.ZodTypeAny, "passthrough">>]>, "many">;
12019
+ isError: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
12020
+ }>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
12021
+ /**
12022
+ * This result property is reserved by the protocol to allow clients and servers to attach additional metadata to their responses.
12023
+ */
12024
+ _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
12025
+ }, {
12026
+ content: z.ZodArray<z.ZodUnion<[z.ZodObject<{
12027
+ type: z.ZodLiteral<"text">;
12028
+ /**
12029
+ * The text content of the message.
12030
+ */
12031
+ text: z.ZodString;
12032
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
12033
+ type: z.ZodLiteral<"text">;
12034
+ /**
12035
+ * The text content of the message.
12036
+ */
12037
+ text: z.ZodString;
12038
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
12039
+ type: z.ZodLiteral<"text">;
12040
+ /**
12041
+ * The text content of the message.
12042
+ */
12043
+ text: z.ZodString;
12044
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
12045
+ type: z.ZodLiteral<"image">;
12046
+ /**
12047
+ * The base64-encoded image data.
12048
+ */
12049
+ data: z.ZodString;
12050
+ /**
12051
+ * The MIME type of the image. Different providers may support different image types.
12052
+ */
12053
+ mimeType: z.ZodString;
12054
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
12055
+ type: z.ZodLiteral<"image">;
12056
+ /**
12057
+ * The base64-encoded image data.
12058
+ */
12059
+ data: z.ZodString;
12060
+ /**
12061
+ * The MIME type of the image. Different providers may support different image types.
12062
+ */
12063
+ mimeType: z.ZodString;
12064
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
12065
+ type: z.ZodLiteral<"image">;
12066
+ /**
12067
+ * The base64-encoded image data.
12068
+ */
12069
+ data: z.ZodString;
12070
+ /**
12071
+ * The MIME type of the image. Different providers may support different image types.
12072
+ */
12073
+ mimeType: z.ZodString;
12074
+ }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
12075
+ type: z.ZodLiteral<"resource">;
12076
+ resource: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
12077
+ /**
12078
+ * The URI of this resource.
12079
+ */
12080
+ uri: z.ZodString;
12081
+ /**
12082
+ * The MIME type of this resource, if known.
12083
+ */
12084
+ mimeType: z.ZodOptional<z.ZodString>;
12085
+ }, {
12086
+ /**
12087
+ * The text of the item. This must only be set if the item can actually be represented as text (not binary data).
12088
+ */
12089
+ text: z.ZodString;
12090
+ }>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
12091
+ /**
12092
+ * The URI of this resource.
12093
+ */
12094
+ uri: z.ZodString;
12095
+ /**
12096
+ * The MIME type of this resource, if known.
12097
+ */
12098
+ mimeType: z.ZodOptional<z.ZodString>;
12099
+ }, {
12100
+ /**
12101
+ * The text of the item. This must only be set if the item can actually be represented as text (not binary data).
12102
+ */
12103
+ text: z.ZodString;
12104
+ }>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
12105
+ /**
12106
+ * The URI of this resource.
12107
+ */
12108
+ uri: z.ZodString;
12109
+ /**
12110
+ * The MIME type of this resource, if known.
12111
+ */
12112
+ mimeType: z.ZodOptional<z.ZodString>;
12113
+ }, {
12114
+ /**
12115
+ * The text of the item. This must only be set if the item can actually be represented as text (not binary data).
12116
+ */
12117
+ text: z.ZodString;
12118
+ }>, z.ZodTypeAny, "passthrough">>, z.ZodObject<z.objectUtil.extendShape<{
12119
+ /**
12120
+ * The URI of this resource.
12121
+ */
12122
+ uri: z.ZodString;
12123
+ /**
12124
+ * The MIME type of this resource, if known.
12125
+ */
12126
+ mimeType: z.ZodOptional<z.ZodString>;
12127
+ }, {
12128
+ /**
12129
+ * A base64-encoded string representing the binary data of the item.
12130
+ */
12131
+ blob: z.ZodString;
12132
+ }>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
12133
+ /**
12134
+ * The URI of this resource.
12135
+ */
12136
+ uri: z.ZodString;
12137
+ /**
12138
+ * The MIME type of this resource, if known.
12139
+ */
12140
+ mimeType: z.ZodOptional<z.ZodString>;
12141
+ }, {
12142
+ /**
12143
+ * A base64-encoded string representing the binary data of the item.
12144
+ */
12145
+ blob: z.ZodString;
12146
+ }>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
12147
+ /**
12148
+ * The URI of this resource.
12149
+ */
12150
+ uri: z.ZodString;
12151
+ /**
12152
+ * The MIME type of this resource, if known.
12153
+ */
12154
+ mimeType: z.ZodOptional<z.ZodString>;
12155
+ }, {
12156
+ /**
12157
+ * A base64-encoded string representing the binary data of the item.
12158
+ */
12159
+ blob: z.ZodString;
12160
+ }>, z.ZodTypeAny, "passthrough">>]>;
12161
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
12162
+ type: z.ZodLiteral<"resource">;
12163
+ resource: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
12164
+ /**
12165
+ * The URI of this resource.
12166
+ */
12167
+ uri: z.ZodString;
12168
+ /**
12169
+ * The MIME type of this resource, if known.
12170
+ */
12171
+ mimeType: z.ZodOptional<z.ZodString>;
12172
+ }, {
12173
+ /**
12174
+ * The text of the item. This must only be set if the item can actually be represented as text (not binary data).
12175
+ */
12176
+ text: z.ZodString;
12177
+ }>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
12178
+ /**
12179
+ * The URI of this resource.
12180
+ */
12181
+ uri: z.ZodString;
12182
+ /**
12183
+ * The MIME type of this resource, if known.
12184
+ */
12185
+ mimeType: z.ZodOptional<z.ZodString>;
12186
+ }, {
12187
+ /**
12188
+ * The text of the item. This must only be set if the item can actually be represented as text (not binary data).
12189
+ */
12190
+ text: z.ZodString;
12191
+ }>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
12192
+ /**
12193
+ * The URI of this resource.
12194
+ */
12195
+ uri: z.ZodString;
12196
+ /**
12197
+ * The MIME type of this resource, if known.
12198
+ */
12199
+ mimeType: z.ZodOptional<z.ZodString>;
12200
+ }, {
12201
+ /**
12202
+ * The text of the item. This must only be set if the item can actually be represented as text (not binary data).
12203
+ */
12204
+ text: z.ZodString;
12205
+ }>, z.ZodTypeAny, "passthrough">>, z.ZodObject<z.objectUtil.extendShape<{
12206
+ /**
12207
+ * The URI of this resource.
12208
+ */
12209
+ uri: z.ZodString;
12210
+ /**
12211
+ * The MIME type of this resource, if known.
12212
+ */
12213
+ mimeType: z.ZodOptional<z.ZodString>;
12214
+ }, {
12215
+ /**
12216
+ * A base64-encoded string representing the binary data of the item.
12217
+ */
12218
+ blob: z.ZodString;
12219
+ }>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
12220
+ /**
12221
+ * The URI of this resource.
12222
+ */
12223
+ uri: z.ZodString;
12224
+ /**
12225
+ * The MIME type of this resource, if known.
12226
+ */
12227
+ mimeType: z.ZodOptional<z.ZodString>;
12228
+ }, {
12229
+ /**
12230
+ * A base64-encoded string representing the binary data of the item.
12231
+ */
12232
+ blob: z.ZodString;
12233
+ }>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
12234
+ /**
12235
+ * The URI of this resource.
12236
+ */
12237
+ uri: z.ZodString;
12238
+ /**
12239
+ * The MIME type of this resource, if known.
12240
+ */
12241
+ mimeType: z.ZodOptional<z.ZodString>;
12242
+ }, {
12243
+ /**
12244
+ * A base64-encoded string representing the binary data of the item.
12245
+ */
12246
+ blob: z.ZodString;
12247
+ }>, z.ZodTypeAny, "passthrough">>]>;
12248
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
12249
+ type: z.ZodLiteral<"resource">;
12250
+ resource: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
12251
+ /**
12252
+ * The URI of this resource.
12253
+ */
12254
+ uri: z.ZodString;
12255
+ /**
12256
+ * The MIME type of this resource, if known.
12257
+ */
12258
+ mimeType: z.ZodOptional<z.ZodString>;
12259
+ }, {
12260
+ /**
12261
+ * The text of the item. This must only be set if the item can actually be represented as text (not binary data).
12262
+ */
12263
+ text: z.ZodString;
12264
+ }>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
12265
+ /**
12266
+ * The URI of this resource.
12267
+ */
12268
+ uri: z.ZodString;
12269
+ /**
12270
+ * The MIME type of this resource, if known.
12271
+ */
12272
+ mimeType: z.ZodOptional<z.ZodString>;
12273
+ }, {
12274
+ /**
12275
+ * The text of the item. This must only be set if the item can actually be represented as text (not binary data).
12276
+ */
12277
+ text: z.ZodString;
12278
+ }>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
12279
+ /**
12280
+ * The URI of this resource.
12281
+ */
12282
+ uri: z.ZodString;
12283
+ /**
12284
+ * The MIME type of this resource, if known.
12285
+ */
12286
+ mimeType: z.ZodOptional<z.ZodString>;
12287
+ }, {
12288
+ /**
12289
+ * The text of the item. This must only be set if the item can actually be represented as text (not binary data).
12290
+ */
12291
+ text: z.ZodString;
12292
+ }>, z.ZodTypeAny, "passthrough">>, z.ZodObject<z.objectUtil.extendShape<{
12293
+ /**
12294
+ * The URI of this resource.
12295
+ */
12296
+ uri: z.ZodString;
12297
+ /**
12298
+ * The MIME type of this resource, if known.
12299
+ */
12300
+ mimeType: z.ZodOptional<z.ZodString>;
12301
+ }, {
12302
+ /**
12303
+ * A base64-encoded string representing the binary data of the item.
12304
+ */
12305
+ blob: z.ZodString;
12306
+ }>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
12307
+ /**
12308
+ * The URI of this resource.
12309
+ */
12310
+ uri: z.ZodString;
12311
+ /**
12312
+ * The MIME type of this resource, if known.
12313
+ */
12314
+ mimeType: z.ZodOptional<z.ZodString>;
12315
+ }, {
12316
+ /**
12317
+ * A base64-encoded string representing the binary data of the item.
12318
+ */
12319
+ blob: z.ZodString;
12320
+ }>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
12321
+ /**
12322
+ * The URI of this resource.
12323
+ */
12324
+ uri: z.ZodString;
12325
+ /**
12326
+ * The MIME type of this resource, if known.
12327
+ */
12328
+ mimeType: z.ZodOptional<z.ZodString>;
12329
+ }, {
12330
+ /**
12331
+ * A base64-encoded string representing the binary data of the item.
12332
+ */
12333
+ blob: z.ZodString;
12334
+ }>, z.ZodTypeAny, "passthrough">>]>;
12335
+ }, z.ZodTypeAny, "passthrough">>]>, "many">;
12336
+ isError: z.ZodOptional<z.ZodDefault<z.ZodBoolean>>;
12337
+ }>, z.ZodTypeAny, "passthrough">>, z.ZodObject<z.objectUtil.extendShape<{
12338
+ /**
12339
+ * This result property is reserved by the protocol to allow clients and servers to attach additional metadata to their responses.
12340
+ */
12341
+ _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
12342
+ }, {
12343
+ toolResult: z.ZodUnknown;
12344
+ }>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
12345
+ /**
12346
+ * This result property is reserved by the protocol to allow clients and servers to attach additional metadata to their responses.
12347
+ */
12348
+ _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
12349
+ }, {
12350
+ toolResult: z.ZodUnknown;
12351
+ }>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
12352
+ /**
12353
+ * This result property is reserved by the protocol to allow clients and servers to attach additional metadata to their responses.
12354
+ */
12355
+ _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
12356
+ }, {
12357
+ toolResult: z.ZodUnknown;
12358
+ }>, z.ZodTypeAny, "passthrough">>]>;
11383
12359
  /**
11384
12360
  * Used by the client to invoke a tool provided by the server.
11385
12361
  */
@@ -25423,6 +26399,7 @@ export type Tool = z.infer<typeof ToolSchema>;
25423
26399
  export type ListToolsRequest = z.infer<typeof ListToolsRequestSchema>;
25424
26400
  export type ListToolsResult = z.infer<typeof ListToolsResultSchema>;
25425
26401
  export type CallToolResult = z.infer<typeof CallToolResultSchema>;
26402
+ export type CompatibilityCallToolResult = z.infer<typeof CompatibilityCallToolResultSchema>;
25426
26403
  export type CallToolRequest = z.infer<typeof CallToolRequestSchema>;
25427
26404
  export type ToolListChangedNotification = z.infer<typeof ToolListChangedNotificationSchema>;
25428
26405
  export type LoggingLevel = z.infer<typeof LoggingLevelSchema>;