@mastra/client-js 1.17.0-alpha.3 → 1.17.0

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.
@@ -12640,6 +12640,9 @@ export type GetMcpServerIdTools_Response = {
12640
12640
  inputSchema: unknown;
12641
12641
  outputSchema?: unknown | undefined;
12642
12642
  toolType?: string | undefined;
12643
+ _meta?: {
12644
+ [key: string]: unknown;
12645
+ } | undefined;
12643
12646
  }[];
12644
12647
  };
12645
12648
  export type GetMcpServerIdTools_Request = Simplify<(GetMcpServerIdTools_PathParams extends never ? {} : {
@@ -12673,6 +12676,9 @@ export type GetMcpServerIdToolsToolId_Response = {
12673
12676
  inputSchema: unknown;
12674
12677
  outputSchema?: unknown | undefined;
12675
12678
  toolType?: string | undefined;
12679
+ _meta?: {
12680
+ [key: string]: unknown;
12681
+ } | undefined;
12676
12682
  };
12677
12683
  export type GetMcpServerIdToolsToolId_Request = Simplify<(GetMcpServerIdToolsToolId_PathParams extends never ? {} : {
12678
12684
  params: GetMcpServerIdToolsToolId_PathParams;
@@ -12724,6 +12730,74 @@ export interface PostMcpServerIdToolsToolIdExecute_RouteContract {
12724
12730
  response: PostMcpServerIdToolsToolIdExecute_Response;
12725
12731
  responseType: 'json';
12726
12732
  }
12733
+ export type GetMcpServerIdResources_PathParams = {
12734
+ /** MCP server ID */
12735
+ serverId: string;
12736
+ };
12737
+ export type GetMcpServerIdResources_Response = {
12738
+ resources: {
12739
+ uri: string;
12740
+ name: string;
12741
+ description?: string | undefined;
12742
+ mimeType?: string | undefined;
12743
+ _meta?: {
12744
+ [key: string]: unknown;
12745
+ } | undefined;
12746
+ }[];
12747
+ };
12748
+ export type GetMcpServerIdResources_Request = Simplify<(GetMcpServerIdResources_PathParams extends never ? {} : {
12749
+ params: GetMcpServerIdResources_PathParams;
12750
+ }) & (never extends never ? {} : {} extends never ? {
12751
+ query?: never;
12752
+ } : {
12753
+ query: never;
12754
+ }) & (never extends never ? {} : {} extends never ? {
12755
+ body?: never;
12756
+ } : {
12757
+ body: never;
12758
+ })>;
12759
+ export interface GetMcpServerIdResources_RouteContract {
12760
+ pathParams: GetMcpServerIdResources_PathParams;
12761
+ queryParams: never;
12762
+ body: never;
12763
+ request: GetMcpServerIdResources_Request;
12764
+ response: GetMcpServerIdResources_Response;
12765
+ responseType: 'json';
12766
+ }
12767
+ export type PostMcpServerIdResourcesRead_PathParams = {
12768
+ /** MCP server ID */
12769
+ serverId: string;
12770
+ };
12771
+ export type PostMcpServerIdResourcesRead_Body = {
12772
+ /** Resource URI to read */
12773
+ uri: string;
12774
+ };
12775
+ export type PostMcpServerIdResourcesRead_Response = {
12776
+ contents: {
12777
+ uri: string;
12778
+ text?: string | undefined;
12779
+ blob?: string | undefined;
12780
+ }[];
12781
+ };
12782
+ export type PostMcpServerIdResourcesRead_Request = Simplify<(PostMcpServerIdResourcesRead_PathParams extends never ? {} : {
12783
+ params: PostMcpServerIdResourcesRead_PathParams;
12784
+ }) & (never extends never ? {} : {} extends never ? {
12785
+ query?: never;
12786
+ } : {
12787
+ query: never;
12788
+ }) & (PostMcpServerIdResourcesRead_Body extends never ? {} : {} extends PostMcpServerIdResourcesRead_Body ? {
12789
+ body?: PostMcpServerIdResourcesRead_Body;
12790
+ } : {
12791
+ body: PostMcpServerIdResourcesRead_Body;
12792
+ })>;
12793
+ export interface PostMcpServerIdResourcesRead_RouteContract {
12794
+ pathParams: PostMcpServerIdResourcesRead_PathParams;
12795
+ queryParams: never;
12796
+ body: PostMcpServerIdResourcesRead_Body;
12797
+ request: PostMcpServerIdResourcesRead_Request;
12798
+ response: PostMcpServerIdResourcesRead_Response;
12799
+ responseType: 'json';
12800
+ }
12727
12801
  export type AllMcpServerIdMcp_PathParams = {
12728
12802
  /** MCP server ID */
12729
12803
  serverId: string;
@@ -41591,6 +41665,8 @@ export interface RouteTypes {
41591
41665
  'GET /mcp/:serverId/tools': GetMcpServerIdTools_RouteContract;
41592
41666
  'GET /mcp/:serverId/tools/:toolId': GetMcpServerIdToolsToolId_RouteContract;
41593
41667
  'POST /mcp/:serverId/tools/:toolId/execute': PostMcpServerIdToolsToolIdExecute_RouteContract;
41668
+ 'GET /mcp/:serverId/resources': GetMcpServerIdResources_RouteContract;
41669
+ 'POST /mcp/:serverId/resources/read': PostMcpServerIdResourcesRead_RouteContract;
41594
41670
  'ALL /mcp/:serverId/mcp': AllMcpServerIdMcp_RouteContract;
41595
41671
  'ALL /mcp/:serverId/sse': AllMcpServerIdSse_RouteContract;
41596
41672
  'POST /mcp/:serverId/messages': PostMcpServerIdMessages_RouteContract;
@@ -41994,6 +42070,12 @@ export interface Client {
41994
42070
  '/mcp/:serverId/messages': {
41995
42071
  POST: PostMcpServerIdMessages_RouteContract;
41996
42072
  };
42073
+ '/mcp/:serverId/resources': {
42074
+ GET: GetMcpServerIdResources_RouteContract;
42075
+ };
42076
+ '/mcp/:serverId/resources/read': {
42077
+ POST: PostMcpServerIdResourcesRead_RouteContract;
42078
+ };
41997
42079
  '/mcp/:serverId/sse': {
41998
42080
  ALL: AllMcpServerIdSse_RouteContract;
41999
42081
  };