@frontmcp/sdk 0.3.0 → 0.4.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.
Files changed (169) hide show
  1. package/LICENSE +201 -0
  2. package/README.md +192 -164
  3. package/package.json +7 -4
  4. package/src/__test-utils__/fixtures/hook.fixtures.d.ts +46 -0
  5. package/src/__test-utils__/fixtures/hook.fixtures.js +114 -0
  6. package/src/__test-utils__/fixtures/hook.fixtures.js.map +1 -0
  7. package/src/__test-utils__/fixtures/index.d.ts +7 -0
  8. package/src/__test-utils__/fixtures/index.js +11 -0
  9. package/src/__test-utils__/fixtures/index.js.map +1 -0
  10. package/src/__test-utils__/fixtures/plugin.fixtures.d.ts +46 -0
  11. package/src/__test-utils__/fixtures/plugin.fixtures.js +127 -0
  12. package/src/__test-utils__/fixtures/plugin.fixtures.js.map +1 -0
  13. package/src/__test-utils__/fixtures/provider.fixtures.d.ts +69 -0
  14. package/src/__test-utils__/fixtures/provider.fixtures.js +131 -0
  15. package/src/__test-utils__/fixtures/provider.fixtures.js.map +1 -0
  16. package/src/__test-utils__/fixtures/scope.fixtures.d.ts +14 -0
  17. package/src/__test-utils__/fixtures/scope.fixtures.js +59 -0
  18. package/src/__test-utils__/fixtures/scope.fixtures.js.map +1 -0
  19. package/src/__test-utils__/fixtures/tool.fixtures.d.ts +36 -0
  20. package/src/__test-utils__/fixtures/tool.fixtures.js +91 -0
  21. package/src/__test-utils__/fixtures/tool.fixtures.js.map +1 -0
  22. package/src/__test-utils__/helpers/assertion.helpers.d.ts +45 -0
  23. package/src/__test-utils__/helpers/assertion.helpers.js +153 -0
  24. package/src/__test-utils__/helpers/assertion.helpers.js.map +1 -0
  25. package/src/__test-utils__/helpers/async.helpers.d.ts +48 -0
  26. package/src/__test-utils__/helpers/async.helpers.js +112 -0
  27. package/src/__test-utils__/helpers/async.helpers.js.map +1 -0
  28. package/src/__test-utils__/helpers/index.d.ts +6 -0
  29. package/src/__test-utils__/helpers/index.js +10 -0
  30. package/src/__test-utils__/helpers/index.js.map +1 -0
  31. package/src/__test-utils__/helpers/setup.helpers.d.ts +54 -0
  32. package/src/__test-utils__/helpers/setup.helpers.js +106 -0
  33. package/src/__test-utils__/helpers/setup.helpers.js.map +1 -0
  34. package/src/__test-utils__/index.d.ts +9 -0
  35. package/src/__test-utils__/index.js +14 -0
  36. package/src/__test-utils__/index.js.map +1 -0
  37. package/src/__test-utils__/mocks/flow-instance.mock.d.ts +50 -0
  38. package/src/__test-utils__/mocks/flow-instance.mock.js +72 -0
  39. package/src/__test-utils__/mocks/flow-instance.mock.js.map +1 -0
  40. package/src/__test-utils__/mocks/hook-registry.mock.d.ts +25 -0
  41. package/src/__test-utils__/mocks/hook-registry.mock.js +65 -0
  42. package/src/__test-utils__/mocks/hook-registry.mock.js.map +1 -0
  43. package/src/__test-utils__/mocks/index.d.ts +8 -0
  44. package/src/__test-utils__/mocks/index.js +12 -0
  45. package/src/__test-utils__/mocks/index.js.map +1 -0
  46. package/src/__test-utils__/mocks/plugin-registry.mock.d.ts +43 -0
  47. package/src/__test-utils__/mocks/plugin-registry.mock.js +70 -0
  48. package/src/__test-utils__/mocks/plugin-registry.mock.js.map +1 -0
  49. package/src/__test-utils__/mocks/provider-registry.mock.d.ts +39 -0
  50. package/src/__test-utils__/mocks/provider-registry.mock.js +72 -0
  51. package/src/__test-utils__/mocks/provider-registry.mock.js.map +1 -0
  52. package/src/__test-utils__/mocks/tool-registry.mock.d.ts +43 -0
  53. package/src/__test-utils__/mocks/tool-registry.mock.js +79 -0
  54. package/src/__test-utils__/mocks/tool-registry.mock.js.map +1 -0
  55. package/src/app/app.utils.js.map +1 -1
  56. package/src/app/instances/app.local.instance.js +8 -11
  57. package/src/app/instances/app.local.instance.js.map +1 -1
  58. package/src/auth/auth.registry.d.ts +2 -2
  59. package/src/auth/auth.registry.js +3 -3
  60. package/src/auth/auth.registry.js.map +1 -1
  61. package/src/auth/flows/oauth.authorize.flow.d.ts +8 -8
  62. package/src/auth/flows/oauth.register.flow.d.ts +4 -4
  63. package/src/auth/flows/oauth.token.flow.d.ts +4 -4
  64. package/src/auth/flows/well-known.jwks.flow.d.ts +12 -12
  65. package/src/auth/flows/well-known.oauth-authorization-server.flow.d.ts +8 -8
  66. package/src/auth/flows/well-known.prm.flow.d.ts +4 -4
  67. package/src/auth/instances/instance.local-primary-auth.d.ts +3 -2
  68. package/src/auth/instances/instance.local-primary-auth.js +4 -2
  69. package/src/auth/instances/instance.local-primary-auth.js.map +1 -1
  70. package/src/auth/instances/instance.remote-primary-auth.d.ts +3 -2
  71. package/src/auth/instances/instance.remote-primary-auth.js +3 -1
  72. package/src/auth/instances/instance.remote-primary-auth.js.map +1 -1
  73. package/src/auth/jwks/jwks.service.js +0 -1
  74. package/src/auth/jwks/jwks.service.js.map +1 -1
  75. package/src/common/decorators/tool.decorator.d.ts +97 -36
  76. package/src/common/decorators/tool.decorator.js +0 -1
  77. package/src/common/decorators/tool.decorator.js.map +1 -1
  78. package/src/common/entries/scope.entry.d.ts +1 -0
  79. package/src/common/entries/scope.entry.js +6 -0
  80. package/src/common/entries/scope.entry.js.map +1 -1
  81. package/src/common/entries/tool.entry.d.ts +54 -11
  82. package/src/common/entries/tool.entry.js +19 -0
  83. package/src/common/entries/tool.entry.js.map +1 -1
  84. package/src/common/interfaces/internal/registry.interface.d.ts +10 -2
  85. package/src/common/interfaces/internal/registry.interface.js.map +1 -1
  86. package/src/common/interfaces/plugin.interface.d.ts +1 -1
  87. package/src/common/interfaces/plugin.interface.js.map +1 -1
  88. package/src/common/interfaces/tool.interface.d.ts +12 -7
  89. package/src/common/interfaces/tool.interface.js +1 -1
  90. package/src/common/interfaces/tool.interface.js.map +1 -1
  91. package/src/common/metadata/front-mcp.metadata.d.ts +145 -145
  92. package/src/common/metadata/hook.metadata.d.ts +4 -2
  93. package/src/common/metadata/hook.metadata.js.map +1 -1
  94. package/src/common/metadata/prompt.metadata.d.ts +28 -28
  95. package/src/common/metadata/prompt.metadata.js.map +1 -1
  96. package/src/common/metadata/resource.metadata.d.ts +54 -54
  97. package/src/common/metadata/tool.metadata.d.ts +190 -7
  98. package/src/common/metadata/tool.metadata.js +41 -6
  99. package/src/common/metadata/tool.metadata.js.map +1 -1
  100. package/src/common/records/scope.record.d.ts +2 -2
  101. package/src/common/records/scope.record.js.map +1 -1
  102. package/src/common/schemas/http-output.schema.d.ts +106 -106
  103. package/src/common/tokens/tool.tokens.js.map +1 -1
  104. package/src/common/types/options/logging.options.d.ts +1 -2
  105. package/src/common/types/options/logging.options.js +1 -9
  106. package/src/common/types/options/logging.options.js.map +1 -1
  107. package/src/common/types/options/server-info.options.d.ts +19 -19
  108. package/src/errors/error-handler.d.ts +65 -0
  109. package/src/errors/error-handler.js +107 -0
  110. package/src/errors/error-handler.js.map +1 -0
  111. package/src/errors/index.d.ts +2 -0
  112. package/src/errors/index.js +26 -0
  113. package/src/errors/index.js.map +1 -0
  114. package/src/errors/mcp.error.d.ts +156 -0
  115. package/src/errors/mcp.error.js +243 -0
  116. package/src/errors/mcp.error.js.map +1 -0
  117. package/src/flows/flow.instance.js +7 -6
  118. package/src/flows/flow.instance.js.map +1 -1
  119. package/src/flows/flow.registry.js +1 -1
  120. package/src/flows/flow.registry.js.map +1 -1
  121. package/src/front-mcp/front-mcp.providers.d.ts +20 -20
  122. package/src/hooks/hook.registry.d.ts +5 -3
  123. package/src/hooks/hook.registry.js +13 -1
  124. package/src/hooks/hook.registry.js.map +1 -1
  125. package/src/plugin/plugin.registry.d.ts +7 -2
  126. package/src/plugin/plugin.registry.js +23 -11
  127. package/src/plugin/plugin.registry.js.map +1 -1
  128. package/src/prompt/prompt.registry.js +1 -0
  129. package/src/prompt/prompt.registry.js.map +1 -1
  130. package/src/resource/resource.registry.js +1 -0
  131. package/src/resource/resource.registry.js.map +1 -1
  132. package/src/scope/scope.instance.js +8 -2
  133. package/src/scope/scope.instance.js.map +1 -1
  134. package/src/scope/scope.registry.js +3 -2
  135. package/src/scope/scope.registry.js.map +1 -1
  136. package/src/scope/scope.utils.js +6 -4
  137. package/src/scope/scope.utils.js.map +1 -1
  138. package/src/store/adapters/store.memory.adapter.js +3 -1
  139. package/src/store/adapters/store.memory.adapter.js.map +1 -1
  140. package/src/tool/flows/call-tool.flow.d.ts +1012 -676
  141. package/src/tool/flows/call-tool.flow.js +94 -61
  142. package/src/tool/flows/call-tool.flow.js.map +1 -1
  143. package/src/tool/flows/tools-list.flow.d.ts +347 -590
  144. package/src/tool/flows/tools-list.flow.js +76 -49
  145. package/src/tool/flows/tools-list.flow.js.map +1 -1
  146. package/src/tool/tool.instance.d.ts +27 -8
  147. package/src/tool/tool.instance.js +40 -5
  148. package/src/tool/tool.instance.js.map +1 -1
  149. package/src/tool/tool.registry.js +19 -21
  150. package/src/tool/tool.registry.js.map +1 -1
  151. package/src/tool/tool.utils.d.ts +3 -2
  152. package/src/tool/tool.utils.js +377 -14
  153. package/src/tool/tool.utils.js.map +1 -1
  154. package/src/transport/adapters/transport.sse.adapter.js +2 -1
  155. package/src/transport/adapters/transport.sse.adapter.js.map +1 -1
  156. package/src/transport/adapters/transport.streamable-http.adapter.js.map +1 -1
  157. package/src/transport/flows/handle.sse.flow.js +6 -13
  158. package/src/transport/flows/handle.sse.flow.js.map +1 -1
  159. package/src/transport/flows/handle.streamable-http.flow.js +1 -0
  160. package/src/transport/flows/handle.streamable-http.flow.js.map +1 -1
  161. package/src/transport/mcp-handlers/call-tool-request.handler.d.ts +1 -1
  162. package/src/transport/mcp-handlers/call-tool-request.handler.js +10 -5
  163. package/src/transport/mcp-handlers/call-tool-request.handler.js.map +1 -1
  164. package/src/transport/mcp-handlers/index.d.ts +151 -268
  165. package/src/transport/mcp-handlers/list-tools-request.handler.d.ts +124 -216
  166. package/src/transport/transport.local.js +1 -0
  167. package/src/transport/transport.local.js.map +1 -1
  168. package/src/utils/string.utils.js +1 -1
  169. package/src/utils/string.utils.js.map +1 -1
@@ -1,6 +1,6 @@
1
1
  import { FlowBase, FlowRunOptions, ToolContext, ToolEntry } from '../../common';
2
2
  import { z } from 'zod';
3
- import { AuthInfo } from "@modelcontextprotocol/sdk/server/auth/types.js";
3
+ import { AuthInfo } from '@modelcontextprotocol/sdk/server/auth/types.js';
4
4
  declare const inputSchema: z.ZodObject<{
5
5
  request: z.ZodObject<{} & {
6
6
  method: z.ZodLiteral<"tools/call">;
@@ -15,29 +15,19 @@ declare const inputSchema: z.ZodObject<{
15
15
  }, {
16
16
  name: z.ZodString;
17
17
  arguments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
18
- }>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
19
- _meta: z.ZodOptional<z.ZodObject<{
20
- progressToken: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
21
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
22
- progressToken: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
23
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
18
+ }>, "strip", z.ZodTypeAny, {
19
+ name: string;
20
+ _meta?: z.objectOutputType<{
24
21
  progressToken: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
25
- }, z.ZodTypeAny, "passthrough">>>;
22
+ }, z.ZodTypeAny, "passthrough"> | undefined;
23
+ arguments?: Record<string, unknown> | undefined;
26
24
  }, {
27
- name: z.ZodString;
28
- arguments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
29
- }>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
30
- _meta: z.ZodOptional<z.ZodObject<{
31
- progressToken: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
32
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
33
- progressToken: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
34
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
25
+ name: string;
26
+ _meta?: z.objectInputType<{
35
27
  progressToken: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
36
- }, z.ZodTypeAny, "passthrough">>>;
37
- }, {
38
- name: z.ZodString;
39
- arguments: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
40
- }>, z.ZodTypeAny, "passthrough">>;
28
+ }, z.ZodTypeAny, "passthrough"> | undefined;
29
+ arguments?: Record<string, unknown> | undefined;
30
+ }>;
41
31
  }, "strip", z.ZodTypeAny, {
42
32
  params: {
43
33
  name: string;
@@ -45,8 +35,6 @@ declare const inputSchema: z.ZodObject<{
45
35
  progressToken: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
46
36
  }, z.ZodTypeAny, "passthrough"> | undefined;
47
37
  arguments?: Record<string, unknown> | undefined;
48
- } & {
49
- [k: string]: unknown;
50
38
  };
51
39
  method: "tools/call";
52
40
  }, {
@@ -56,8 +44,6 @@ declare const inputSchema: z.ZodObject<{
56
44
  progressToken: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
57
45
  }, z.ZodTypeAny, "passthrough"> | undefined;
58
46
  arguments?: Record<string, unknown> | undefined;
59
- } & {
60
- [k: string]: unknown;
61
47
  };
62
48
  method: "tools/call";
63
49
  }>;
@@ -70,8 +56,6 @@ declare const inputSchema: z.ZodObject<{
70
56
  progressToken: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
71
57
  }, z.ZodTypeAny, "passthrough"> | undefined;
72
58
  arguments?: Record<string, unknown> | undefined;
73
- } & {
74
- [k: string]: unknown;
75
59
  };
76
60
  method: "tools/call";
77
61
  };
@@ -84,59 +68,57 @@ declare const inputSchema: z.ZodObject<{
84
68
  progressToken: z.ZodOptional<z.ZodUnion<[z.ZodString, z.ZodNumber]>>;
85
69
  }, z.ZodTypeAny, "passthrough"> | undefined;
86
70
  arguments?: Record<string, unknown> | undefined;
87
- } & {
88
- [k: string]: unknown;
89
71
  };
90
72
  method: "tools/call";
91
73
  };
92
74
  ctx?: any;
93
75
  }>;
94
76
  declare const outputSchema: z.ZodObject<{
95
- _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
77
+ _meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
96
78
  } & {
97
79
  content: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodObject<{
98
80
  type: z.ZodLiteral<"text">;
99
81
  text: z.ZodString;
100
- _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
101
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
102
- type: z.ZodLiteral<"text">;
103
- text: z.ZodString;
104
- _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
105
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
106
- type: z.ZodLiteral<"text">;
107
- text: z.ZodString;
108
- _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
109
- }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
110
- type: z.ZodLiteral<"image">;
111
- data: z.ZodEffects<z.ZodString, string, string>;
112
- mimeType: z.ZodString;
113
- _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
114
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
115
- type: z.ZodLiteral<"image">;
116
- data: z.ZodEffects<z.ZodString, string, string>;
117
- mimeType: z.ZodString;
118
- _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
119
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
82
+ _meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
83
+ }, "strip", z.ZodTypeAny, {
84
+ type: "text";
85
+ text: string;
86
+ _meta?: Record<string, unknown> | undefined;
87
+ }, {
88
+ type: "text";
89
+ text: string;
90
+ _meta?: Record<string, unknown> | undefined;
91
+ }>, z.ZodObject<{
120
92
  type: z.ZodLiteral<"image">;
121
93
  data: z.ZodEffects<z.ZodString, string, string>;
122
94
  mimeType: z.ZodString;
123
- _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
124
- }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
125
- type: z.ZodLiteral<"audio">;
126
- data: z.ZodEffects<z.ZodString, string, string>;
127
- mimeType: z.ZodString;
128
- _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
129
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
130
- type: z.ZodLiteral<"audio">;
131
- data: z.ZodEffects<z.ZodString, string, string>;
132
- mimeType: z.ZodString;
133
- _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
134
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
95
+ _meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
96
+ }, "strip", z.ZodTypeAny, {
97
+ type: "image";
98
+ data: string;
99
+ mimeType: string;
100
+ _meta?: Record<string, unknown> | undefined;
101
+ }, {
102
+ type: "image";
103
+ data: string;
104
+ mimeType: string;
105
+ _meta?: Record<string, unknown> | undefined;
106
+ }>, z.ZodObject<{
135
107
  type: z.ZodLiteral<"audio">;
136
108
  data: z.ZodEffects<z.ZodString, string, string>;
137
109
  mimeType: z.ZodString;
138
- _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
139
- }, z.ZodTypeAny, "passthrough">>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
110
+ _meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
111
+ }, "strip", z.ZodTypeAny, {
112
+ type: "audio";
113
+ data: string;
114
+ mimeType: string;
115
+ _meta?: Record<string, unknown> | undefined;
116
+ }, {
117
+ type: "audio";
118
+ data: string;
119
+ mimeType: string;
120
+ _meta?: Record<string, unknown> | undefined;
121
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
140
122
  name: z.ZodString;
141
123
  title: z.ZodOptional<z.ZodString>;
142
124
  }, {
@@ -149,18 +131,156 @@ declare const outputSchema: z.ZodObject<{
149
131
  src: z.ZodString;
150
132
  mimeType: z.ZodOptional<z.ZodString>;
151
133
  sizes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
152
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
153
- src: z.ZodString;
154
- mimeType: z.ZodOptional<z.ZodString>;
155
- sizes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
156
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
157
- src: z.ZodString;
158
- mimeType: z.ZodOptional<z.ZodString>;
159
- sizes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
160
- }, z.ZodTypeAny, "passthrough">>, "many">>;
134
+ }, "strip", z.ZodTypeAny, {
135
+ src: string;
136
+ mimeType?: string | undefined;
137
+ sizes?: string[] | undefined;
138
+ }, {
139
+ src: string;
140
+ mimeType?: string | undefined;
141
+ sizes?: string[] | undefined;
142
+ }>, "many">>;
161
143
  }>, {
162
144
  type: z.ZodLiteral<"resource_link">;
163
- }>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
145
+ }>, "strip", z.ZodTypeAny, {
146
+ type: "resource_link";
147
+ name: string;
148
+ uri: string;
149
+ _meta?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
150
+ mimeType?: string | undefined;
151
+ icons?: {
152
+ src: string;
153
+ mimeType?: string | undefined;
154
+ sizes?: string[] | undefined;
155
+ }[] | undefined;
156
+ title?: string | undefined;
157
+ description?: string | undefined;
158
+ }, {
159
+ type: "resource_link";
160
+ name: string;
161
+ uri: string;
162
+ _meta?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
163
+ mimeType?: string | undefined;
164
+ icons?: {
165
+ src: string;
166
+ mimeType?: string | undefined;
167
+ sizes?: string[] | undefined;
168
+ }[] | undefined;
169
+ title?: string | undefined;
170
+ description?: string | undefined;
171
+ }>, z.ZodObject<{
172
+ type: z.ZodLiteral<"resource">;
173
+ resource: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
174
+ uri: z.ZodString;
175
+ mimeType: z.ZodOptional<z.ZodString>;
176
+ _meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
177
+ }, {
178
+ text: z.ZodString;
179
+ }>, "strip", z.ZodTypeAny, {
180
+ uri: string;
181
+ text: string;
182
+ _meta?: Record<string, unknown> | undefined;
183
+ mimeType?: string | undefined;
184
+ }, {
185
+ uri: string;
186
+ text: string;
187
+ _meta?: Record<string, unknown> | undefined;
188
+ mimeType?: string | undefined;
189
+ }>, z.ZodObject<z.objectUtil.extendShape<{
190
+ uri: z.ZodString;
191
+ mimeType: z.ZodOptional<z.ZodString>;
192
+ _meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
193
+ }, {
194
+ blob: z.ZodEffects<z.ZodString, string, string>;
195
+ }>, "strip", z.ZodTypeAny, {
196
+ uri: string;
197
+ blob: string;
198
+ _meta?: Record<string, unknown> | undefined;
199
+ mimeType?: string | undefined;
200
+ }, {
201
+ uri: string;
202
+ blob: string;
203
+ _meta?: Record<string, unknown> | undefined;
204
+ mimeType?: string | undefined;
205
+ }>]>;
206
+ _meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
207
+ }, "strip", z.ZodTypeAny, {
208
+ type: "resource";
209
+ resource: {
210
+ uri: string;
211
+ text: string;
212
+ _meta?: Record<string, unknown> | undefined;
213
+ mimeType?: string | undefined;
214
+ } | {
215
+ uri: string;
216
+ blob: string;
217
+ _meta?: Record<string, unknown> | undefined;
218
+ mimeType?: string | undefined;
219
+ };
220
+ _meta?: Record<string, unknown> | undefined;
221
+ }, {
222
+ type: "resource";
223
+ resource: {
224
+ uri: string;
225
+ text: string;
226
+ _meta?: Record<string, unknown> | undefined;
227
+ mimeType?: string | undefined;
228
+ } | {
229
+ uri: string;
230
+ blob: string;
231
+ _meta?: Record<string, unknown> | undefined;
232
+ mimeType?: string | undefined;
233
+ };
234
+ _meta?: Record<string, unknown> | undefined;
235
+ }>]>, "many">>;
236
+ structuredContent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
237
+ isError: z.ZodOptional<z.ZodBoolean>;
238
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
239
+ _meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
240
+ } & {
241
+ content: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodObject<{
242
+ type: z.ZodLiteral<"text">;
243
+ text: z.ZodString;
244
+ _meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
245
+ }, "strip", z.ZodTypeAny, {
246
+ type: "text";
247
+ text: string;
248
+ _meta?: Record<string, unknown> | undefined;
249
+ }, {
250
+ type: "text";
251
+ text: string;
252
+ _meta?: Record<string, unknown> | undefined;
253
+ }>, z.ZodObject<{
254
+ type: z.ZodLiteral<"image">;
255
+ data: z.ZodEffects<z.ZodString, string, string>;
256
+ mimeType: z.ZodString;
257
+ _meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
258
+ }, "strip", z.ZodTypeAny, {
259
+ type: "image";
260
+ data: string;
261
+ mimeType: string;
262
+ _meta?: Record<string, unknown> | undefined;
263
+ }, {
264
+ type: "image";
265
+ data: string;
266
+ mimeType: string;
267
+ _meta?: Record<string, unknown> | undefined;
268
+ }>, z.ZodObject<{
269
+ type: z.ZodLiteral<"audio">;
270
+ data: z.ZodEffects<z.ZodString, string, string>;
271
+ mimeType: z.ZodString;
272
+ _meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
273
+ }, "strip", z.ZodTypeAny, {
274
+ type: "audio";
275
+ data: string;
276
+ mimeType: string;
277
+ _meta?: Record<string, unknown> | undefined;
278
+ }, {
279
+ type: "audio";
280
+ data: string;
281
+ mimeType: string;
282
+ _meta?: Record<string, unknown> | undefined;
283
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
164
284
  name: z.ZodString;
165
285
  title: z.ZodOptional<z.ZodString>;
166
286
  }, {
@@ -173,18 +293,156 @@ declare const outputSchema: z.ZodObject<{
173
293
  src: z.ZodString;
174
294
  mimeType: z.ZodOptional<z.ZodString>;
175
295
  sizes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
176
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
177
- src: z.ZodString;
178
- mimeType: z.ZodOptional<z.ZodString>;
179
- sizes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
180
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
181
- src: z.ZodString;
182
- mimeType: z.ZodOptional<z.ZodString>;
183
- sizes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
184
- }, z.ZodTypeAny, "passthrough">>, "many">>;
296
+ }, "strip", z.ZodTypeAny, {
297
+ src: string;
298
+ mimeType?: string | undefined;
299
+ sizes?: string[] | undefined;
300
+ }, {
301
+ src: string;
302
+ mimeType?: string | undefined;
303
+ sizes?: string[] | undefined;
304
+ }>, "many">>;
185
305
  }>, {
186
306
  type: z.ZodLiteral<"resource_link">;
187
- }>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
307
+ }>, "strip", z.ZodTypeAny, {
308
+ type: "resource_link";
309
+ name: string;
310
+ uri: string;
311
+ _meta?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
312
+ mimeType?: string | undefined;
313
+ icons?: {
314
+ src: string;
315
+ mimeType?: string | undefined;
316
+ sizes?: string[] | undefined;
317
+ }[] | undefined;
318
+ title?: string | undefined;
319
+ description?: string | undefined;
320
+ }, {
321
+ type: "resource_link";
322
+ name: string;
323
+ uri: string;
324
+ _meta?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
325
+ mimeType?: string | undefined;
326
+ icons?: {
327
+ src: string;
328
+ mimeType?: string | undefined;
329
+ sizes?: string[] | undefined;
330
+ }[] | undefined;
331
+ title?: string | undefined;
332
+ description?: string | undefined;
333
+ }>, z.ZodObject<{
334
+ type: z.ZodLiteral<"resource">;
335
+ resource: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
336
+ uri: z.ZodString;
337
+ mimeType: z.ZodOptional<z.ZodString>;
338
+ _meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
339
+ }, {
340
+ text: z.ZodString;
341
+ }>, "strip", z.ZodTypeAny, {
342
+ uri: string;
343
+ text: string;
344
+ _meta?: Record<string, unknown> | undefined;
345
+ mimeType?: string | undefined;
346
+ }, {
347
+ uri: string;
348
+ text: string;
349
+ _meta?: Record<string, unknown> | undefined;
350
+ mimeType?: string | undefined;
351
+ }>, z.ZodObject<z.objectUtil.extendShape<{
352
+ uri: z.ZodString;
353
+ mimeType: z.ZodOptional<z.ZodString>;
354
+ _meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
355
+ }, {
356
+ blob: z.ZodEffects<z.ZodString, string, string>;
357
+ }>, "strip", z.ZodTypeAny, {
358
+ uri: string;
359
+ blob: string;
360
+ _meta?: Record<string, unknown> | undefined;
361
+ mimeType?: string | undefined;
362
+ }, {
363
+ uri: string;
364
+ blob: string;
365
+ _meta?: Record<string, unknown> | undefined;
366
+ mimeType?: string | undefined;
367
+ }>]>;
368
+ _meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
369
+ }, "strip", z.ZodTypeAny, {
370
+ type: "resource";
371
+ resource: {
372
+ uri: string;
373
+ text: string;
374
+ _meta?: Record<string, unknown> | undefined;
375
+ mimeType?: string | undefined;
376
+ } | {
377
+ uri: string;
378
+ blob: string;
379
+ _meta?: Record<string, unknown> | undefined;
380
+ mimeType?: string | undefined;
381
+ };
382
+ _meta?: Record<string, unknown> | undefined;
383
+ }, {
384
+ type: "resource";
385
+ resource: {
386
+ uri: string;
387
+ text: string;
388
+ _meta?: Record<string, unknown> | undefined;
389
+ mimeType?: string | undefined;
390
+ } | {
391
+ uri: string;
392
+ blob: string;
393
+ _meta?: Record<string, unknown> | undefined;
394
+ mimeType?: string | undefined;
395
+ };
396
+ _meta?: Record<string, unknown> | undefined;
397
+ }>]>, "many">>;
398
+ structuredContent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
399
+ isError: z.ZodOptional<z.ZodBoolean>;
400
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
401
+ _meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
402
+ } & {
403
+ content: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodObject<{
404
+ type: z.ZodLiteral<"text">;
405
+ text: z.ZodString;
406
+ _meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
407
+ }, "strip", z.ZodTypeAny, {
408
+ type: "text";
409
+ text: string;
410
+ _meta?: Record<string, unknown> | undefined;
411
+ }, {
412
+ type: "text";
413
+ text: string;
414
+ _meta?: Record<string, unknown> | undefined;
415
+ }>, z.ZodObject<{
416
+ type: z.ZodLiteral<"image">;
417
+ data: z.ZodEffects<z.ZodString, string, string>;
418
+ mimeType: z.ZodString;
419
+ _meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
420
+ }, "strip", z.ZodTypeAny, {
421
+ type: "image";
422
+ data: string;
423
+ mimeType: string;
424
+ _meta?: Record<string, unknown> | undefined;
425
+ }, {
426
+ type: "image";
427
+ data: string;
428
+ mimeType: string;
429
+ _meta?: Record<string, unknown> | undefined;
430
+ }>, z.ZodObject<{
431
+ type: z.ZodLiteral<"audio">;
432
+ data: z.ZodEffects<z.ZodString, string, string>;
433
+ mimeType: z.ZodString;
434
+ _meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
435
+ }, "strip", z.ZodTypeAny, {
436
+ type: "audio";
437
+ data: string;
438
+ mimeType: string;
439
+ _meta?: Record<string, unknown> | undefined;
440
+ }, {
441
+ type: "audio";
442
+ data: string;
443
+ mimeType: string;
444
+ _meta?: Record<string, unknown> | undefined;
445
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
188
446
  name: z.ZodString;
189
447
  title: z.ZodOptional<z.ZodString>;
190
448
  }, {
@@ -197,655 +455,733 @@ declare const outputSchema: z.ZodObject<{
197
455
  src: z.ZodString;
198
456
  mimeType: z.ZodOptional<z.ZodString>;
199
457
  sizes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
200
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
201
- src: z.ZodString;
202
- mimeType: z.ZodOptional<z.ZodString>;
203
- sizes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
204
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
205
- src: z.ZodString;
206
- mimeType: z.ZodOptional<z.ZodString>;
207
- sizes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
208
- }, z.ZodTypeAny, "passthrough">>, "many">>;
458
+ }, "strip", z.ZodTypeAny, {
459
+ src: string;
460
+ mimeType?: string | undefined;
461
+ sizes?: string[] | undefined;
462
+ }, {
463
+ src: string;
464
+ mimeType?: string | undefined;
465
+ sizes?: string[] | undefined;
466
+ }>, "many">>;
209
467
  }>, {
210
468
  type: z.ZodLiteral<"resource_link">;
211
- }>, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
469
+ }>, "strip", z.ZodTypeAny, {
470
+ type: "resource_link";
471
+ name: string;
472
+ uri: string;
473
+ _meta?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
474
+ mimeType?: string | undefined;
475
+ icons?: {
476
+ src: string;
477
+ mimeType?: string | undefined;
478
+ sizes?: string[] | undefined;
479
+ }[] | undefined;
480
+ title?: string | undefined;
481
+ description?: string | undefined;
482
+ }, {
483
+ type: "resource_link";
484
+ name: string;
485
+ uri: string;
486
+ _meta?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
487
+ mimeType?: string | undefined;
488
+ icons?: {
489
+ src: string;
490
+ mimeType?: string | undefined;
491
+ sizes?: string[] | undefined;
492
+ }[] | undefined;
493
+ title?: string | undefined;
494
+ description?: string | undefined;
495
+ }>, z.ZodObject<{
212
496
  type: z.ZodLiteral<"resource">;
213
497
  resource: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
214
498
  uri: z.ZodString;
215
499
  mimeType: z.ZodOptional<z.ZodString>;
216
- _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
500
+ _meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
217
501
  }, {
218
502
  text: z.ZodString;
219
- }>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
220
- uri: z.ZodString;
221
- mimeType: z.ZodOptional<z.ZodString>;
222
- _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
503
+ }>, "strip", z.ZodTypeAny, {
504
+ uri: string;
505
+ text: string;
506
+ _meta?: Record<string, unknown> | undefined;
507
+ mimeType?: string | undefined;
223
508
  }, {
224
- text: z.ZodString;
225
- }>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
509
+ uri: string;
510
+ text: string;
511
+ _meta?: Record<string, unknown> | undefined;
512
+ mimeType?: string | undefined;
513
+ }>, z.ZodObject<z.objectUtil.extendShape<{
226
514
  uri: z.ZodString;
227
515
  mimeType: z.ZodOptional<z.ZodString>;
228
- _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
516
+ _meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
517
+ }, {
518
+ blob: z.ZodEffects<z.ZodString, string, string>;
519
+ }>, "strip", z.ZodTypeAny, {
520
+ uri: string;
521
+ blob: string;
522
+ _meta?: Record<string, unknown> | undefined;
523
+ mimeType?: string | undefined;
229
524
  }, {
525
+ uri: string;
526
+ blob: string;
527
+ _meta?: Record<string, unknown> | undefined;
528
+ mimeType?: string | undefined;
529
+ }>]>;
530
+ _meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
531
+ }, "strip", z.ZodTypeAny, {
532
+ type: "resource";
533
+ resource: {
534
+ uri: string;
535
+ text: string;
536
+ _meta?: Record<string, unknown> | undefined;
537
+ mimeType?: string | undefined;
538
+ } | {
539
+ uri: string;
540
+ blob: string;
541
+ _meta?: Record<string, unknown> | undefined;
542
+ mimeType?: string | undefined;
543
+ };
544
+ _meta?: Record<string, unknown> | undefined;
545
+ }, {
546
+ type: "resource";
547
+ resource: {
548
+ uri: string;
549
+ text: string;
550
+ _meta?: Record<string, unknown> | undefined;
551
+ mimeType?: string | undefined;
552
+ } | {
553
+ uri: string;
554
+ blob: string;
555
+ _meta?: Record<string, unknown> | undefined;
556
+ mimeType?: string | undefined;
557
+ };
558
+ _meta?: Record<string, unknown> | undefined;
559
+ }>]>, "many">>;
560
+ structuredContent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
561
+ isError: z.ZodOptional<z.ZodBoolean>;
562
+ }, z.ZodTypeAny, "passthrough">>;
563
+ declare const stateSchema: z.ZodObject<{
564
+ input: z.ZodObject<{
565
+ name: z.ZodString;
566
+ arguments: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
567
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
568
+ name: z.ZodString;
569
+ arguments: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
570
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
571
+ name: z.ZodString;
572
+ arguments: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
573
+ }, z.ZodTypeAny, "passthrough">>;
574
+ authInfo: z.ZodType<AuthInfo>;
575
+ tool: z.ZodType<ToolEntry<z.ZodRawShape, import("../../common").ToolOutputType, unknown, unknown>, z.ZodTypeDef, ToolEntry<z.ZodRawShape, import("../../common").ToolOutputType, unknown, unknown>>;
576
+ toolContext: z.ZodType<ToolContext<z.ZodRawShape, import("../../common").ToolOutputType, unknown, unknown>, z.ZodTypeDef, ToolContext<z.ZodRawShape, import("../../common").ToolOutputType, unknown, unknown>>;
577
+ rawOutput: z.ZodOptional<z.ZodAny>;
578
+ output: z.ZodObject<{
579
+ _meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
580
+ } & {
581
+ content: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodObject<{
582
+ type: z.ZodLiteral<"text">;
230
583
  text: z.ZodString;
231
- }>, z.ZodTypeAny, "passthrough">>, z.ZodObject<z.objectUtil.extendShape<{
232
- uri: z.ZodString;
233
- mimeType: z.ZodOptional<z.ZodString>;
234
- _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
584
+ _meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
585
+ }, "strip", z.ZodTypeAny, {
586
+ type: "text";
587
+ text: string;
588
+ _meta?: Record<string, unknown> | undefined;
235
589
  }, {
236
- blob: z.ZodEffects<z.ZodString, string, string>;
237
- }>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
238
- uri: z.ZodString;
239
- mimeType: z.ZodOptional<z.ZodString>;
240
- _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
590
+ type: "text";
591
+ text: string;
592
+ _meta?: Record<string, unknown> | undefined;
593
+ }>, z.ZodObject<{
594
+ type: z.ZodLiteral<"image">;
595
+ data: z.ZodEffects<z.ZodString, string, string>;
596
+ mimeType: z.ZodString;
597
+ _meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
598
+ }, "strip", z.ZodTypeAny, {
599
+ type: "image";
600
+ data: string;
601
+ mimeType: string;
602
+ _meta?: Record<string, unknown> | undefined;
241
603
  }, {
242
- blob: z.ZodEffects<z.ZodString, string, string>;
243
- }>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
244
- uri: z.ZodString;
245
- mimeType: z.ZodOptional<z.ZodString>;
246
- _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
604
+ type: "image";
605
+ data: string;
606
+ mimeType: string;
607
+ _meta?: Record<string, unknown> | undefined;
608
+ }>, z.ZodObject<{
609
+ type: z.ZodLiteral<"audio">;
610
+ data: z.ZodEffects<z.ZodString, string, string>;
611
+ mimeType: z.ZodString;
612
+ _meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
613
+ }, "strip", z.ZodTypeAny, {
614
+ type: "audio";
615
+ data: string;
616
+ mimeType: string;
617
+ _meta?: Record<string, unknown> | undefined;
247
618
  }, {
248
- blob: z.ZodEffects<z.ZodString, string, string>;
249
- }>, z.ZodTypeAny, "passthrough">>]>;
250
- _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
251
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
252
- type: z.ZodLiteral<"resource">;
253
- resource: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
254
- uri: z.ZodString;
255
- mimeType: z.ZodOptional<z.ZodString>;
256
- _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
619
+ type: "audio";
620
+ data: string;
621
+ mimeType: string;
622
+ _meta?: Record<string, unknown> | undefined;
623
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
624
+ name: z.ZodString;
625
+ title: z.ZodOptional<z.ZodString>;
257
626
  }, {
258
- text: z.ZodString;
259
- }>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
260
627
  uri: z.ZodString;
628
+ description: z.ZodOptional<z.ZodString>;
261
629
  mimeType: z.ZodOptional<z.ZodString>;
262
630
  _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
631
+ }>, {
632
+ icons: z.ZodOptional<z.ZodArray<z.ZodObject<{
633
+ src: z.ZodString;
634
+ mimeType: z.ZodOptional<z.ZodString>;
635
+ sizes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
636
+ }, "strip", z.ZodTypeAny, {
637
+ src: string;
638
+ mimeType?: string | undefined;
639
+ sizes?: string[] | undefined;
640
+ }, {
641
+ src: string;
642
+ mimeType?: string | undefined;
643
+ sizes?: string[] | undefined;
644
+ }>, "many">>;
645
+ }>, {
646
+ type: z.ZodLiteral<"resource_link">;
647
+ }>, "strip", z.ZodTypeAny, {
648
+ type: "resource_link";
649
+ name: string;
650
+ uri: string;
651
+ _meta?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
652
+ mimeType?: string | undefined;
653
+ icons?: {
654
+ src: string;
655
+ mimeType?: string | undefined;
656
+ sizes?: string[] | undefined;
657
+ }[] | undefined;
658
+ title?: string | undefined;
659
+ description?: string | undefined;
263
660
  }, {
264
- text: z.ZodString;
265
- }>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
266
- uri: z.ZodString;
267
- mimeType: z.ZodOptional<z.ZodString>;
268
- _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
661
+ type: "resource_link";
662
+ name: string;
663
+ uri: string;
664
+ _meta?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
665
+ mimeType?: string | undefined;
666
+ icons?: {
667
+ src: string;
668
+ mimeType?: string | undefined;
669
+ sizes?: string[] | undefined;
670
+ }[] | undefined;
671
+ title?: string | undefined;
672
+ description?: string | undefined;
673
+ }>, z.ZodObject<{
674
+ type: z.ZodLiteral<"resource">;
675
+ resource: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
676
+ uri: z.ZodString;
677
+ mimeType: z.ZodOptional<z.ZodString>;
678
+ _meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
679
+ }, {
680
+ text: z.ZodString;
681
+ }>, "strip", z.ZodTypeAny, {
682
+ uri: string;
683
+ text: string;
684
+ _meta?: Record<string, unknown> | undefined;
685
+ mimeType?: string | undefined;
686
+ }, {
687
+ uri: string;
688
+ text: string;
689
+ _meta?: Record<string, unknown> | undefined;
690
+ mimeType?: string | undefined;
691
+ }>, z.ZodObject<z.objectUtil.extendShape<{
692
+ uri: z.ZodString;
693
+ mimeType: z.ZodOptional<z.ZodString>;
694
+ _meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
695
+ }, {
696
+ blob: z.ZodEffects<z.ZodString, string, string>;
697
+ }>, "strip", z.ZodTypeAny, {
698
+ uri: string;
699
+ blob: string;
700
+ _meta?: Record<string, unknown> | undefined;
701
+ mimeType?: string | undefined;
702
+ }, {
703
+ uri: string;
704
+ blob: string;
705
+ _meta?: Record<string, unknown> | undefined;
706
+ mimeType?: string | undefined;
707
+ }>]>;
708
+ _meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
709
+ }, "strip", z.ZodTypeAny, {
710
+ type: "resource";
711
+ resource: {
712
+ uri: string;
713
+ text: string;
714
+ _meta?: Record<string, unknown> | undefined;
715
+ mimeType?: string | undefined;
716
+ } | {
717
+ uri: string;
718
+ blob: string;
719
+ _meta?: Record<string, unknown> | undefined;
720
+ mimeType?: string | undefined;
721
+ };
722
+ _meta?: Record<string, unknown> | undefined;
269
723
  }, {
724
+ type: "resource";
725
+ resource: {
726
+ uri: string;
727
+ text: string;
728
+ _meta?: Record<string, unknown> | undefined;
729
+ mimeType?: string | undefined;
730
+ } | {
731
+ uri: string;
732
+ blob: string;
733
+ _meta?: Record<string, unknown> | undefined;
734
+ mimeType?: string | undefined;
735
+ };
736
+ _meta?: Record<string, unknown> | undefined;
737
+ }>]>, "many">>;
738
+ structuredContent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
739
+ isError: z.ZodOptional<z.ZodBoolean>;
740
+ }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
741
+ _meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
742
+ } & {
743
+ content: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodObject<{
744
+ type: z.ZodLiteral<"text">;
270
745
  text: z.ZodString;
271
- }>, z.ZodTypeAny, "passthrough">>, z.ZodObject<z.objectUtil.extendShape<{
272
- uri: z.ZodString;
273
- mimeType: z.ZodOptional<z.ZodString>;
274
- _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
746
+ _meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
747
+ }, "strip", z.ZodTypeAny, {
748
+ type: "text";
749
+ text: string;
750
+ _meta?: Record<string, unknown> | undefined;
275
751
  }, {
276
- blob: z.ZodEffects<z.ZodString, string, string>;
277
- }>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
278
- uri: z.ZodString;
279
- mimeType: z.ZodOptional<z.ZodString>;
280
- _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
752
+ type: "text";
753
+ text: string;
754
+ _meta?: Record<string, unknown> | undefined;
755
+ }>, z.ZodObject<{
756
+ type: z.ZodLiteral<"image">;
757
+ data: z.ZodEffects<z.ZodString, string, string>;
758
+ mimeType: z.ZodString;
759
+ _meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
760
+ }, "strip", z.ZodTypeAny, {
761
+ type: "image";
762
+ data: string;
763
+ mimeType: string;
764
+ _meta?: Record<string, unknown> | undefined;
281
765
  }, {
282
- blob: z.ZodEffects<z.ZodString, string, string>;
283
- }>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
284
- uri: z.ZodString;
285
- mimeType: z.ZodOptional<z.ZodString>;
286
- _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
766
+ type: "image";
767
+ data: string;
768
+ mimeType: string;
769
+ _meta?: Record<string, unknown> | undefined;
770
+ }>, z.ZodObject<{
771
+ type: z.ZodLiteral<"audio">;
772
+ data: z.ZodEffects<z.ZodString, string, string>;
773
+ mimeType: z.ZodString;
774
+ _meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
775
+ }, "strip", z.ZodTypeAny, {
776
+ type: "audio";
777
+ data: string;
778
+ mimeType: string;
779
+ _meta?: Record<string, unknown> | undefined;
287
780
  }, {
288
- blob: z.ZodEffects<z.ZodString, string, string>;
289
- }>, z.ZodTypeAny, "passthrough">>]>;
290
- _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
291
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
292
- type: z.ZodLiteral<"resource">;
293
- resource: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
294
- uri: z.ZodString;
295
- mimeType: z.ZodOptional<z.ZodString>;
296
- _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
781
+ type: "audio";
782
+ data: string;
783
+ mimeType: string;
784
+ _meta?: Record<string, unknown> | undefined;
785
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
786
+ name: z.ZodString;
787
+ title: z.ZodOptional<z.ZodString>;
297
788
  }, {
298
- text: z.ZodString;
299
- }>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
300
789
  uri: z.ZodString;
790
+ description: z.ZodOptional<z.ZodString>;
301
791
  mimeType: z.ZodOptional<z.ZodString>;
302
792
  _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
793
+ }>, {
794
+ icons: z.ZodOptional<z.ZodArray<z.ZodObject<{
795
+ src: z.ZodString;
796
+ mimeType: z.ZodOptional<z.ZodString>;
797
+ sizes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
798
+ }, "strip", z.ZodTypeAny, {
799
+ src: string;
800
+ mimeType?: string | undefined;
801
+ sizes?: string[] | undefined;
802
+ }, {
803
+ src: string;
804
+ mimeType?: string | undefined;
805
+ sizes?: string[] | undefined;
806
+ }>, "many">>;
807
+ }>, {
808
+ type: z.ZodLiteral<"resource_link">;
809
+ }>, "strip", z.ZodTypeAny, {
810
+ type: "resource_link";
811
+ name: string;
812
+ uri: string;
813
+ _meta?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
814
+ mimeType?: string | undefined;
815
+ icons?: {
816
+ src: string;
817
+ mimeType?: string | undefined;
818
+ sizes?: string[] | undefined;
819
+ }[] | undefined;
820
+ title?: string | undefined;
821
+ description?: string | undefined;
303
822
  }, {
304
- text: z.ZodString;
305
- }>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
306
- uri: z.ZodString;
307
- mimeType: z.ZodOptional<z.ZodString>;
308
- _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
823
+ type: "resource_link";
824
+ name: string;
825
+ uri: string;
826
+ _meta?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
827
+ mimeType?: string | undefined;
828
+ icons?: {
829
+ src: string;
830
+ mimeType?: string | undefined;
831
+ sizes?: string[] | undefined;
832
+ }[] | undefined;
833
+ title?: string | undefined;
834
+ description?: string | undefined;
835
+ }>, z.ZodObject<{
836
+ type: z.ZodLiteral<"resource">;
837
+ resource: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
838
+ uri: z.ZodString;
839
+ mimeType: z.ZodOptional<z.ZodString>;
840
+ _meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
841
+ }, {
842
+ text: z.ZodString;
843
+ }>, "strip", z.ZodTypeAny, {
844
+ uri: string;
845
+ text: string;
846
+ _meta?: Record<string, unknown> | undefined;
847
+ mimeType?: string | undefined;
848
+ }, {
849
+ uri: string;
850
+ text: string;
851
+ _meta?: Record<string, unknown> | undefined;
852
+ mimeType?: string | undefined;
853
+ }>, z.ZodObject<z.objectUtil.extendShape<{
854
+ uri: z.ZodString;
855
+ mimeType: z.ZodOptional<z.ZodString>;
856
+ _meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
857
+ }, {
858
+ blob: z.ZodEffects<z.ZodString, string, string>;
859
+ }>, "strip", z.ZodTypeAny, {
860
+ uri: string;
861
+ blob: string;
862
+ _meta?: Record<string, unknown> | undefined;
863
+ mimeType?: string | undefined;
864
+ }, {
865
+ uri: string;
866
+ blob: string;
867
+ _meta?: Record<string, unknown> | undefined;
868
+ mimeType?: string | undefined;
869
+ }>]>;
870
+ _meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
871
+ }, "strip", z.ZodTypeAny, {
872
+ type: "resource";
873
+ resource: {
874
+ uri: string;
875
+ text: string;
876
+ _meta?: Record<string, unknown> | undefined;
877
+ mimeType?: string | undefined;
878
+ } | {
879
+ uri: string;
880
+ blob: string;
881
+ _meta?: Record<string, unknown> | undefined;
882
+ mimeType?: string | undefined;
883
+ };
884
+ _meta?: Record<string, unknown> | undefined;
309
885
  }, {
886
+ type: "resource";
887
+ resource: {
888
+ uri: string;
889
+ text: string;
890
+ _meta?: Record<string, unknown> | undefined;
891
+ mimeType?: string | undefined;
892
+ } | {
893
+ uri: string;
894
+ blob: string;
895
+ _meta?: Record<string, unknown> | undefined;
896
+ mimeType?: string | undefined;
897
+ };
898
+ _meta?: Record<string, unknown> | undefined;
899
+ }>]>, "many">>;
900
+ structuredContent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
901
+ isError: z.ZodOptional<z.ZodBoolean>;
902
+ }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
903
+ _meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
904
+ } & {
905
+ content: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodObject<{
906
+ type: z.ZodLiteral<"text">;
310
907
  text: z.ZodString;
311
- }>, z.ZodTypeAny, "passthrough">>, z.ZodObject<z.objectUtil.extendShape<{
312
- uri: z.ZodString;
313
- mimeType: z.ZodOptional<z.ZodString>;
314
- _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
908
+ _meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
909
+ }, "strip", z.ZodTypeAny, {
910
+ type: "text";
911
+ text: string;
912
+ _meta?: Record<string, unknown> | undefined;
315
913
  }, {
316
- blob: z.ZodEffects<z.ZodString, string, string>;
317
- }>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
318
- uri: z.ZodString;
319
- mimeType: z.ZodOptional<z.ZodString>;
320
- _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
914
+ type: "text";
915
+ text: string;
916
+ _meta?: Record<string, unknown> | undefined;
917
+ }>, z.ZodObject<{
918
+ type: z.ZodLiteral<"image">;
919
+ data: z.ZodEffects<z.ZodString, string, string>;
920
+ mimeType: z.ZodString;
921
+ _meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
922
+ }, "strip", z.ZodTypeAny, {
923
+ type: "image";
924
+ data: string;
925
+ mimeType: string;
926
+ _meta?: Record<string, unknown> | undefined;
927
+ }, {
928
+ type: "image";
929
+ data: string;
930
+ mimeType: string;
931
+ _meta?: Record<string, unknown> | undefined;
932
+ }>, z.ZodObject<{
933
+ type: z.ZodLiteral<"audio">;
934
+ data: z.ZodEffects<z.ZodString, string, string>;
935
+ mimeType: z.ZodString;
936
+ _meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
937
+ }, "strip", z.ZodTypeAny, {
938
+ type: "audio";
939
+ data: string;
940
+ mimeType: string;
941
+ _meta?: Record<string, unknown> | undefined;
942
+ }, {
943
+ type: "audio";
944
+ data: string;
945
+ mimeType: string;
946
+ _meta?: Record<string, unknown> | undefined;
947
+ }>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
948
+ name: z.ZodString;
949
+ title: z.ZodOptional<z.ZodString>;
321
950
  }, {
322
- blob: z.ZodEffects<z.ZodString, string, string>;
323
- }>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
324
- uri: z.ZodString;
325
- mimeType: z.ZodOptional<z.ZodString>;
326
- _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
327
- }, {
328
- blob: z.ZodEffects<z.ZodString, string, string>;
329
- }>, z.ZodTypeAny, "passthrough">>]>;
330
- _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
331
- }, z.ZodTypeAny, "passthrough">>]>, "many">>;
332
- structuredContent: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
333
- isError: z.ZodOptional<z.ZodBoolean>;
334
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
335
- _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
336
- } & {
337
- content: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodObject<{
338
- type: z.ZodLiteral<"text">;
339
- text: z.ZodString;
340
- _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
341
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
342
- type: z.ZodLiteral<"text">;
343
- text: z.ZodString;
344
- _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
345
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
346
- type: z.ZodLiteral<"text">;
347
- text: z.ZodString;
348
- _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
349
- }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
350
- type: z.ZodLiteral<"image">;
351
- data: z.ZodEffects<z.ZodString, string, string>;
352
- mimeType: z.ZodString;
353
- _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
354
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
355
- type: z.ZodLiteral<"image">;
356
- data: z.ZodEffects<z.ZodString, string, string>;
357
- mimeType: z.ZodString;
358
- _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
359
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
360
- type: z.ZodLiteral<"image">;
361
- data: z.ZodEffects<z.ZodString, string, string>;
362
- mimeType: z.ZodString;
363
- _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
364
- }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
365
- type: z.ZodLiteral<"audio">;
366
- data: z.ZodEffects<z.ZodString, string, string>;
367
- mimeType: z.ZodString;
368
- _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
369
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
370
- type: z.ZodLiteral<"audio">;
371
- data: z.ZodEffects<z.ZodString, string, string>;
372
- mimeType: z.ZodString;
373
- _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
374
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
375
- type: z.ZodLiteral<"audio">;
376
- data: z.ZodEffects<z.ZodString, string, string>;
377
- mimeType: z.ZodString;
378
- _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
379
- }, z.ZodTypeAny, "passthrough">>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
380
- name: z.ZodString;
381
- title: z.ZodOptional<z.ZodString>;
382
- }, {
383
- uri: z.ZodString;
384
- description: z.ZodOptional<z.ZodString>;
385
- mimeType: z.ZodOptional<z.ZodString>;
386
- _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
387
- }>, {
388
- icons: z.ZodOptional<z.ZodArray<z.ZodObject<{
389
- src: z.ZodString;
390
- mimeType: z.ZodOptional<z.ZodString>;
391
- sizes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
392
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
393
- src: z.ZodString;
394
- mimeType: z.ZodOptional<z.ZodString>;
395
- sizes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
396
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
397
- src: z.ZodString;
398
- mimeType: z.ZodOptional<z.ZodString>;
399
- sizes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
400
- }, z.ZodTypeAny, "passthrough">>, "many">>;
401
- }>, {
402
- type: z.ZodLiteral<"resource_link">;
403
- }>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
404
- name: z.ZodString;
405
- title: z.ZodOptional<z.ZodString>;
406
- }, {
407
- uri: z.ZodString;
408
- description: z.ZodOptional<z.ZodString>;
409
- mimeType: z.ZodOptional<z.ZodString>;
410
- _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
411
- }>, {
412
- icons: z.ZodOptional<z.ZodArray<z.ZodObject<{
413
- src: z.ZodString;
414
- mimeType: z.ZodOptional<z.ZodString>;
415
- sizes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
416
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
417
- src: z.ZodString;
418
- mimeType: z.ZodOptional<z.ZodString>;
419
- sizes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
420
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
421
- src: z.ZodString;
422
- mimeType: z.ZodOptional<z.ZodString>;
423
- sizes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
424
- }, z.ZodTypeAny, "passthrough">>, "many">>;
425
- }>, {
426
- type: z.ZodLiteral<"resource_link">;
427
- }>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
428
- name: z.ZodString;
429
- title: z.ZodOptional<z.ZodString>;
430
- }, {
431
- uri: z.ZodString;
432
- description: z.ZodOptional<z.ZodString>;
433
- mimeType: z.ZodOptional<z.ZodString>;
434
- _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
435
- }>, {
436
- icons: z.ZodOptional<z.ZodArray<z.ZodObject<{
437
- src: z.ZodString;
438
- mimeType: z.ZodOptional<z.ZodString>;
439
- sizes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
440
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
441
- src: z.ZodString;
442
- mimeType: z.ZodOptional<z.ZodString>;
443
- sizes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
444
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
445
- src: z.ZodString;
446
- mimeType: z.ZodOptional<z.ZodString>;
447
- sizes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
448
- }, z.ZodTypeAny, "passthrough">>, "many">>;
449
- }>, {
450
- type: z.ZodLiteral<"resource_link">;
451
- }>, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
452
- type: z.ZodLiteral<"resource">;
453
- resource: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
454
- uri: z.ZodString;
455
- mimeType: z.ZodOptional<z.ZodString>;
456
- _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
457
- }, {
458
- text: z.ZodString;
459
- }>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
460
- uri: z.ZodString;
461
- mimeType: z.ZodOptional<z.ZodString>;
462
- _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
463
- }, {
464
- text: z.ZodString;
465
- }>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
466
- uri: z.ZodString;
467
- mimeType: z.ZodOptional<z.ZodString>;
468
- _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
469
- }, {
470
- text: z.ZodString;
471
- }>, z.ZodTypeAny, "passthrough">>, z.ZodObject<z.objectUtil.extendShape<{
472
- uri: z.ZodString;
473
- mimeType: z.ZodOptional<z.ZodString>;
474
- _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
475
- }, {
476
- blob: z.ZodEffects<z.ZodString, string, string>;
477
- }>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
478
- uri: z.ZodString;
479
- mimeType: z.ZodOptional<z.ZodString>;
480
- _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
481
- }, {
482
- blob: z.ZodEffects<z.ZodString, string, string>;
483
- }>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
484
- uri: z.ZodString;
485
- mimeType: z.ZodOptional<z.ZodString>;
486
- _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
487
- }, {
488
- blob: z.ZodEffects<z.ZodString, string, string>;
489
- }>, z.ZodTypeAny, "passthrough">>]>;
490
- _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
491
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
492
- type: z.ZodLiteral<"resource">;
493
- resource: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
494
- uri: z.ZodString;
495
- mimeType: z.ZodOptional<z.ZodString>;
496
- _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
497
- }, {
498
- text: z.ZodString;
499
- }>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
500
- uri: z.ZodString;
501
- mimeType: z.ZodOptional<z.ZodString>;
502
- _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
503
- }, {
504
- text: z.ZodString;
505
- }>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
506
- uri: z.ZodString;
507
- mimeType: z.ZodOptional<z.ZodString>;
508
- _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
509
- }, {
510
- text: z.ZodString;
511
- }>, z.ZodTypeAny, "passthrough">>, z.ZodObject<z.objectUtil.extendShape<{
512
- uri: z.ZodString;
513
- mimeType: z.ZodOptional<z.ZodString>;
514
- _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
515
- }, {
516
- blob: z.ZodEffects<z.ZodString, string, string>;
517
- }>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
518
- uri: z.ZodString;
519
- mimeType: z.ZodOptional<z.ZodString>;
520
- _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
521
- }, {
522
- blob: z.ZodEffects<z.ZodString, string, string>;
523
- }>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
524
- uri: z.ZodString;
525
- mimeType: z.ZodOptional<z.ZodString>;
526
- _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
527
- }, {
528
- blob: z.ZodEffects<z.ZodString, string, string>;
529
- }>, z.ZodTypeAny, "passthrough">>]>;
530
- _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
531
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
532
- type: z.ZodLiteral<"resource">;
533
- resource: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
534
- uri: z.ZodString;
535
- mimeType: z.ZodOptional<z.ZodString>;
536
- _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
537
- }, {
538
- text: z.ZodString;
539
- }>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
540
- uri: z.ZodString;
541
- mimeType: z.ZodOptional<z.ZodString>;
542
- _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
543
- }, {
544
- text: z.ZodString;
545
- }>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
546
- uri: z.ZodString;
547
- mimeType: z.ZodOptional<z.ZodString>;
548
- _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
549
- }, {
550
- text: z.ZodString;
551
- }>, z.ZodTypeAny, "passthrough">>, z.ZodObject<z.objectUtil.extendShape<{
552
- uri: z.ZodString;
553
- mimeType: z.ZodOptional<z.ZodString>;
554
- _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
555
- }, {
556
- blob: z.ZodEffects<z.ZodString, string, string>;
557
- }>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
558
- uri: z.ZodString;
559
- mimeType: z.ZodOptional<z.ZodString>;
560
- _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
561
- }, {
562
- blob: z.ZodEffects<z.ZodString, string, string>;
563
- }>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
564
- uri: z.ZodString;
565
- mimeType: z.ZodOptional<z.ZodString>;
566
- _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
567
- }, {
568
- blob: z.ZodEffects<z.ZodString, string, string>;
569
- }>, z.ZodTypeAny, "passthrough">>]>;
570
- _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
571
- }, z.ZodTypeAny, "passthrough">>]>, "many">>;
572
- structuredContent: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
573
- isError: z.ZodOptional<z.ZodBoolean>;
574
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
575
- _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
576
- } & {
577
- content: z.ZodDefault<z.ZodArray<z.ZodUnion<[z.ZodObject<{
578
- type: z.ZodLiteral<"text">;
579
- text: z.ZodString;
580
- _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
581
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
582
- type: z.ZodLiteral<"text">;
583
- text: z.ZodString;
584
- _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
585
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
586
- type: z.ZodLiteral<"text">;
587
- text: z.ZodString;
588
- _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
589
- }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
590
- type: z.ZodLiteral<"image">;
591
- data: z.ZodEffects<z.ZodString, string, string>;
592
- mimeType: z.ZodString;
593
- _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
594
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
595
- type: z.ZodLiteral<"image">;
596
- data: z.ZodEffects<z.ZodString, string, string>;
597
- mimeType: z.ZodString;
598
- _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
599
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
600
- type: z.ZodLiteral<"image">;
601
- data: z.ZodEffects<z.ZodString, string, string>;
602
- mimeType: z.ZodString;
603
- _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
604
- }, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
605
- type: z.ZodLiteral<"audio">;
606
- data: z.ZodEffects<z.ZodString, string, string>;
607
- mimeType: z.ZodString;
608
- _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
609
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
610
- type: z.ZodLiteral<"audio">;
611
- data: z.ZodEffects<z.ZodString, string, string>;
612
- mimeType: z.ZodString;
613
- _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
614
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
615
- type: z.ZodLiteral<"audio">;
616
- data: z.ZodEffects<z.ZodString, string, string>;
617
- mimeType: z.ZodString;
618
- _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
619
- }, z.ZodTypeAny, "passthrough">>, z.ZodObject<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
620
- name: z.ZodString;
621
- title: z.ZodOptional<z.ZodString>;
622
- }, {
623
- uri: z.ZodString;
624
- description: z.ZodOptional<z.ZodString>;
625
- mimeType: z.ZodOptional<z.ZodString>;
626
- _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
627
- }>, {
628
- icons: z.ZodOptional<z.ZodArray<z.ZodObject<{
629
- src: z.ZodString;
630
- mimeType: z.ZodOptional<z.ZodString>;
631
- sizes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
632
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
633
- src: z.ZodString;
634
- mimeType: z.ZodOptional<z.ZodString>;
635
- sizes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
636
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
637
- src: z.ZodString;
638
- mimeType: z.ZodOptional<z.ZodString>;
639
- sizes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
640
- }, z.ZodTypeAny, "passthrough">>, "many">>;
641
- }>, {
642
- type: z.ZodLiteral<"resource_link">;
643
- }>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
644
- name: z.ZodString;
645
- title: z.ZodOptional<z.ZodString>;
646
- }, {
647
- uri: z.ZodString;
648
- description: z.ZodOptional<z.ZodString>;
649
- mimeType: z.ZodOptional<z.ZodString>;
650
- _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
651
- }>, {
652
- icons: z.ZodOptional<z.ZodArray<z.ZodObject<{
653
- src: z.ZodString;
654
- mimeType: z.ZodOptional<z.ZodString>;
655
- sizes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
656
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
657
- src: z.ZodString;
658
- mimeType: z.ZodOptional<z.ZodString>;
659
- sizes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
660
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
661
- src: z.ZodString;
662
- mimeType: z.ZodOptional<z.ZodString>;
663
- sizes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
664
- }, z.ZodTypeAny, "passthrough">>, "many">>;
665
- }>, {
666
- type: z.ZodLiteral<"resource_link">;
667
- }>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<z.objectUtil.extendShape<z.objectUtil.extendShape<{
668
- name: z.ZodString;
669
- title: z.ZodOptional<z.ZodString>;
670
- }, {
671
- uri: z.ZodString;
672
- description: z.ZodOptional<z.ZodString>;
673
- mimeType: z.ZodOptional<z.ZodString>;
674
- _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
675
- }>, {
676
- icons: z.ZodOptional<z.ZodArray<z.ZodObject<{
677
- src: z.ZodString;
678
- mimeType: z.ZodOptional<z.ZodString>;
679
- sizes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
680
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
681
- src: z.ZodString;
682
- mimeType: z.ZodOptional<z.ZodString>;
683
- sizes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
684
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
685
- src: z.ZodString;
686
- mimeType: z.ZodOptional<z.ZodString>;
687
- sizes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
688
- }, z.ZodTypeAny, "passthrough">>, "many">>;
689
- }>, {
690
- type: z.ZodLiteral<"resource_link">;
691
- }>, z.ZodTypeAny, "passthrough">>, z.ZodObject<{
692
- type: z.ZodLiteral<"resource">;
693
- resource: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
694
- uri: z.ZodString;
695
- mimeType: z.ZodOptional<z.ZodString>;
696
- _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
697
- }, {
698
- text: z.ZodString;
699
- }>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
700
- uri: z.ZodString;
701
- mimeType: z.ZodOptional<z.ZodString>;
702
- _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
703
- }, {
704
- text: z.ZodString;
705
- }>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
706
- uri: z.ZodString;
707
- mimeType: z.ZodOptional<z.ZodString>;
708
- _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
709
- }, {
710
- text: z.ZodString;
711
- }>, z.ZodTypeAny, "passthrough">>, z.ZodObject<z.objectUtil.extendShape<{
712
- uri: z.ZodString;
713
- mimeType: z.ZodOptional<z.ZodString>;
714
- _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
715
- }, {
716
- blob: z.ZodEffects<z.ZodString, string, string>;
717
- }>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
718
- uri: z.ZodString;
719
- mimeType: z.ZodOptional<z.ZodString>;
720
- _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
721
- }, {
722
- blob: z.ZodEffects<z.ZodString, string, string>;
723
- }>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
724
- uri: z.ZodString;
725
- mimeType: z.ZodOptional<z.ZodString>;
726
- _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
727
- }, {
728
- blob: z.ZodEffects<z.ZodString, string, string>;
729
- }>, z.ZodTypeAny, "passthrough">>]>;
730
- _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
731
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
732
- type: z.ZodLiteral<"resource">;
733
- resource: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
734
- uri: z.ZodString;
735
- mimeType: z.ZodOptional<z.ZodString>;
736
- _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
737
- }, {
738
- text: z.ZodString;
739
- }>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
740
- uri: z.ZodString;
741
- mimeType: z.ZodOptional<z.ZodString>;
742
- _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
743
- }, {
744
- text: z.ZodString;
745
- }>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
746
- uri: z.ZodString;
747
- mimeType: z.ZodOptional<z.ZodString>;
748
- _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
749
- }, {
750
- text: z.ZodString;
751
- }>, z.ZodTypeAny, "passthrough">>, z.ZodObject<z.objectUtil.extendShape<{
752
- uri: z.ZodString;
753
- mimeType: z.ZodOptional<z.ZodString>;
754
- _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
755
- }, {
756
- blob: z.ZodEffects<z.ZodString, string, string>;
757
- }>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
758
- uri: z.ZodString;
759
- mimeType: z.ZodOptional<z.ZodString>;
760
- _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
761
- }, {
762
- blob: z.ZodEffects<z.ZodString, string, string>;
763
- }>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
764
- uri: z.ZodString;
765
- mimeType: z.ZodOptional<z.ZodString>;
766
- _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
767
- }, {
768
- blob: z.ZodEffects<z.ZodString, string, string>;
769
- }>, z.ZodTypeAny, "passthrough">>]>;
770
- _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
771
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
772
- type: z.ZodLiteral<"resource">;
773
- resource: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
774
- uri: z.ZodString;
775
- mimeType: z.ZodOptional<z.ZodString>;
776
- _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
777
- }, {
778
- text: z.ZodString;
779
- }>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
780
- uri: z.ZodString;
781
- mimeType: z.ZodOptional<z.ZodString>;
782
- _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
783
- }, {
784
- text: z.ZodString;
785
- }>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
786
- uri: z.ZodString;
787
- mimeType: z.ZodOptional<z.ZodString>;
788
- _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
789
- }, {
790
- text: z.ZodString;
791
- }>, z.ZodTypeAny, "passthrough">>, z.ZodObject<z.objectUtil.extendShape<{
792
- uri: z.ZodString;
793
- mimeType: z.ZodOptional<z.ZodString>;
794
- _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
795
- }, {
796
- blob: z.ZodEffects<z.ZodString, string, string>;
797
- }>, "passthrough", z.ZodTypeAny, z.objectOutputType<z.objectUtil.extendShape<{
798
951
  uri: z.ZodString;
952
+ description: z.ZodOptional<z.ZodString>;
799
953
  mimeType: z.ZodOptional<z.ZodString>;
800
954
  _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
955
+ }>, {
956
+ icons: z.ZodOptional<z.ZodArray<z.ZodObject<{
957
+ src: z.ZodString;
958
+ mimeType: z.ZodOptional<z.ZodString>;
959
+ sizes: z.ZodOptional<z.ZodArray<z.ZodString, "many">>;
960
+ }, "strip", z.ZodTypeAny, {
961
+ src: string;
962
+ mimeType?: string | undefined;
963
+ sizes?: string[] | undefined;
964
+ }, {
965
+ src: string;
966
+ mimeType?: string | undefined;
967
+ sizes?: string[] | undefined;
968
+ }>, "many">>;
969
+ }>, {
970
+ type: z.ZodLiteral<"resource_link">;
971
+ }>, "strip", z.ZodTypeAny, {
972
+ type: "resource_link";
973
+ name: string;
974
+ uri: string;
975
+ _meta?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
976
+ mimeType?: string | undefined;
977
+ icons?: {
978
+ src: string;
979
+ mimeType?: string | undefined;
980
+ sizes?: string[] | undefined;
981
+ }[] | undefined;
982
+ title?: string | undefined;
983
+ description?: string | undefined;
801
984
  }, {
802
- blob: z.ZodEffects<z.ZodString, string, string>;
803
- }>, z.ZodTypeAny, "passthrough">, z.objectInputType<z.objectUtil.extendShape<{
804
- uri: z.ZodString;
805
- mimeType: z.ZodOptional<z.ZodString>;
806
- _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
985
+ type: "resource_link";
986
+ name: string;
987
+ uri: string;
988
+ _meta?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
989
+ mimeType?: string | undefined;
990
+ icons?: {
991
+ src: string;
992
+ mimeType?: string | undefined;
993
+ sizes?: string[] | undefined;
994
+ }[] | undefined;
995
+ title?: string | undefined;
996
+ description?: string | undefined;
997
+ }>, z.ZodObject<{
998
+ type: z.ZodLiteral<"resource">;
999
+ resource: z.ZodUnion<[z.ZodObject<z.objectUtil.extendShape<{
1000
+ uri: z.ZodString;
1001
+ mimeType: z.ZodOptional<z.ZodString>;
1002
+ _meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1003
+ }, {
1004
+ text: z.ZodString;
1005
+ }>, "strip", z.ZodTypeAny, {
1006
+ uri: string;
1007
+ text: string;
1008
+ _meta?: Record<string, unknown> | undefined;
1009
+ mimeType?: string | undefined;
1010
+ }, {
1011
+ uri: string;
1012
+ text: string;
1013
+ _meta?: Record<string, unknown> | undefined;
1014
+ mimeType?: string | undefined;
1015
+ }>, z.ZodObject<z.objectUtil.extendShape<{
1016
+ uri: z.ZodString;
1017
+ mimeType: z.ZodOptional<z.ZodString>;
1018
+ _meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1019
+ }, {
1020
+ blob: z.ZodEffects<z.ZodString, string, string>;
1021
+ }>, "strip", z.ZodTypeAny, {
1022
+ uri: string;
1023
+ blob: string;
1024
+ _meta?: Record<string, unknown> | undefined;
1025
+ mimeType?: string | undefined;
1026
+ }, {
1027
+ uri: string;
1028
+ blob: string;
1029
+ _meta?: Record<string, unknown> | undefined;
1030
+ mimeType?: string | undefined;
1031
+ }>]>;
1032
+ _meta: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1033
+ }, "strip", z.ZodTypeAny, {
1034
+ type: "resource";
1035
+ resource: {
1036
+ uri: string;
1037
+ text: string;
1038
+ _meta?: Record<string, unknown> | undefined;
1039
+ mimeType?: string | undefined;
1040
+ } | {
1041
+ uri: string;
1042
+ blob: string;
1043
+ _meta?: Record<string, unknown> | undefined;
1044
+ mimeType?: string | undefined;
1045
+ };
1046
+ _meta?: Record<string, unknown> | undefined;
807
1047
  }, {
808
- blob: z.ZodEffects<z.ZodString, string, string>;
809
- }>, z.ZodTypeAny, "passthrough">>]>;
810
- _meta: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
811
- }, z.ZodTypeAny, "passthrough">>]>, "many">>;
812
- structuredContent: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
813
- isError: z.ZodOptional<z.ZodBoolean>;
814
- }, z.ZodTypeAny, "passthrough">>;
815
- declare const stateSchema: z.ZodObject<{
816
- input: z.ZodObject<{
817
- name: z.ZodString;
818
- arguments: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
819
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
820
- name: z.ZodString;
821
- arguments: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
822
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
823
- name: z.ZodString;
824
- arguments: z.ZodOptional<z.ZodObject<{}, "passthrough", z.ZodTypeAny, z.objectOutputType<{}, z.ZodTypeAny, "passthrough">, z.objectInputType<{}, z.ZodTypeAny, "passthrough">>>;
1048
+ type: "resource";
1049
+ resource: {
1050
+ uri: string;
1051
+ text: string;
1052
+ _meta?: Record<string, unknown> | undefined;
1053
+ mimeType?: string | undefined;
1054
+ } | {
1055
+ uri: string;
1056
+ blob: string;
1057
+ _meta?: Record<string, unknown> | undefined;
1058
+ mimeType?: string | undefined;
1059
+ };
1060
+ _meta?: Record<string, unknown> | undefined;
1061
+ }>]>, "many">>;
1062
+ structuredContent: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1063
+ isError: z.ZodOptional<z.ZodBoolean>;
825
1064
  }, z.ZodTypeAny, "passthrough">>;
826
- authInfo: z.ZodType<AuthInfo>;
827
- tool: z.ZodType<ToolEntry<object, object>, z.ZodTypeDef, ToolEntry<object, object>>;
828
- toolContext: z.ZodType<ToolContext<unknown, unknown>, z.ZodTypeDef, ToolContext<unknown, unknown>>;
829
1065
  }, "strip", z.ZodTypeAny, {
830
- tool: ToolEntry<object, object>;
1066
+ tool: ToolEntry<z.ZodRawShape, import("../../common").ToolOutputType, unknown, unknown>;
831
1067
  input: {
832
1068
  name: string;
833
1069
  arguments?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
834
1070
  } & {
835
1071
  [k: string]: unknown;
836
1072
  };
837
- toolContext: ToolContext<unknown, unknown>;
1073
+ output: {
1074
+ content: ({
1075
+ type: "text";
1076
+ text: string;
1077
+ _meta?: Record<string, unknown> | undefined;
1078
+ } | {
1079
+ type: "image";
1080
+ data: string;
1081
+ mimeType: string;
1082
+ _meta?: Record<string, unknown> | undefined;
1083
+ } | {
1084
+ type: "audio";
1085
+ data: string;
1086
+ mimeType: string;
1087
+ _meta?: Record<string, unknown> | undefined;
1088
+ } | {
1089
+ type: "resource_link";
1090
+ name: string;
1091
+ uri: string;
1092
+ _meta?: z.objectOutputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
1093
+ mimeType?: string | undefined;
1094
+ icons?: {
1095
+ src: string;
1096
+ mimeType?: string | undefined;
1097
+ sizes?: string[] | undefined;
1098
+ }[] | undefined;
1099
+ title?: string | undefined;
1100
+ description?: string | undefined;
1101
+ } | {
1102
+ type: "resource";
1103
+ resource: {
1104
+ uri: string;
1105
+ text: string;
1106
+ _meta?: Record<string, unknown> | undefined;
1107
+ mimeType?: string | undefined;
1108
+ } | {
1109
+ uri: string;
1110
+ blob: string;
1111
+ _meta?: Record<string, unknown> | undefined;
1112
+ mimeType?: string | undefined;
1113
+ };
1114
+ _meta?: Record<string, unknown> | undefined;
1115
+ })[];
1116
+ _meta?: Record<string, unknown> | undefined;
1117
+ structuredContent?: Record<string, unknown> | undefined;
1118
+ isError?: boolean | undefined;
1119
+ } & {
1120
+ [k: string]: unknown;
1121
+ };
1122
+ toolContext: ToolContext<z.ZodRawShape, import("../../common").ToolOutputType, unknown, unknown>;
838
1123
  authInfo: AuthInfo;
1124
+ rawOutput?: any;
839
1125
  }, {
840
- tool: ToolEntry<object, object>;
1126
+ tool: ToolEntry<z.ZodRawShape, import("../../common").ToolOutputType, unknown, unknown>;
841
1127
  input: {
842
1128
  name: string;
843
1129
  arguments?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
844
1130
  } & {
845
1131
  [k: string]: unknown;
846
1132
  };
847
- toolContext: ToolContext<unknown, unknown>;
1133
+ output: {
1134
+ _meta?: Record<string, unknown> | undefined;
1135
+ content?: ({
1136
+ type: "text";
1137
+ text: string;
1138
+ _meta?: Record<string, unknown> | undefined;
1139
+ } | {
1140
+ type: "image";
1141
+ data: string;
1142
+ mimeType: string;
1143
+ _meta?: Record<string, unknown> | undefined;
1144
+ } | {
1145
+ type: "audio";
1146
+ data: string;
1147
+ mimeType: string;
1148
+ _meta?: Record<string, unknown> | undefined;
1149
+ } | {
1150
+ type: "resource_link";
1151
+ name: string;
1152
+ uri: string;
1153
+ _meta?: z.objectInputType<{}, z.ZodTypeAny, "passthrough"> | undefined;
1154
+ mimeType?: string | undefined;
1155
+ icons?: {
1156
+ src: string;
1157
+ mimeType?: string | undefined;
1158
+ sizes?: string[] | undefined;
1159
+ }[] | undefined;
1160
+ title?: string | undefined;
1161
+ description?: string | undefined;
1162
+ } | {
1163
+ type: "resource";
1164
+ resource: {
1165
+ uri: string;
1166
+ text: string;
1167
+ _meta?: Record<string, unknown> | undefined;
1168
+ mimeType?: string | undefined;
1169
+ } | {
1170
+ uri: string;
1171
+ blob: string;
1172
+ _meta?: Record<string, unknown> | undefined;
1173
+ mimeType?: string | undefined;
1174
+ };
1175
+ _meta?: Record<string, unknown> | undefined;
1176
+ })[] | undefined;
1177
+ structuredContent?: Record<string, unknown> | undefined;
1178
+ isError?: boolean | undefined;
1179
+ } & {
1180
+ [k: string]: unknown;
1181
+ };
1182
+ toolContext: ToolContext<z.ZodRawShape, import("../../common").ToolOutputType, unknown, unknown>;
848
1183
  authInfo: AuthInfo;
1184
+ rawOutput?: any;
849
1185
  }>;
850
1186
  declare const plan: {
851
1187
  readonly pre: ["parseInput", "findTool", "createToolCallContext", "acquireQuota", "acquireSemaphore"];