@arizeai/phoenix-client 5.9.0 → 6.0.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 (198) hide show
  1. package/dist/esm/__generated__/api/v1.d.ts +190 -0
  2. package/dist/esm/__generated__/api/v1.d.ts.map +1 -1
  3. package/dist/esm/schemas/jsonLiteralSchema.d.ts +1 -1
  4. package/dist/esm/schemas/jsonLiteralSchema.d.ts.map +1 -1
  5. package/dist/esm/schemas/jsonLiteralSchema.js +1 -1
  6. package/dist/esm/schemas/jsonLiteralSchema.js.map +1 -1
  7. package/dist/esm/schemas/jsonSchema.d.ts +28 -126
  8. package/dist/esm/schemas/jsonSchema.d.ts.map +1 -1
  9. package/dist/esm/schemas/jsonSchema.js +5 -11
  10. package/dist/esm/schemas/jsonSchema.js.map +1 -1
  11. package/dist/esm/schemas/llm/anthropic/converters.d.ts +205 -1344
  12. package/dist/esm/schemas/llm/anthropic/converters.d.ts.map +1 -1
  13. package/dist/esm/schemas/llm/anthropic/messagePartSchemas.d.ts +45 -217
  14. package/dist/esm/schemas/llm/anthropic/messagePartSchemas.d.ts.map +1 -1
  15. package/dist/esm/schemas/llm/anthropic/messageSchemas.d.ts +87 -725
  16. package/dist/esm/schemas/llm/anthropic/messageSchemas.d.ts.map +1 -1
  17. package/dist/esm/schemas/llm/anthropic/messageSchemas.js +3 -13
  18. package/dist/esm/schemas/llm/anthropic/messageSchemas.js.map +1 -1
  19. package/dist/esm/schemas/llm/anthropic/toolCallSchemas.d.ts +4 -24
  20. package/dist/esm/schemas/llm/anthropic/toolCallSchemas.d.ts.map +1 -1
  21. package/dist/esm/schemas/llm/anthropic/toolChoiceSchemas.d.ts +4 -18
  22. package/dist/esm/schemas/llm/anthropic/toolChoiceSchemas.d.ts.map +1 -1
  23. package/dist/esm/schemas/llm/anthropic/toolSchemas.d.ts +29 -169
  24. package/dist/esm/schemas/llm/anthropic/toolSchemas.d.ts.map +1 -1
  25. package/dist/esm/schemas/llm/constants.d.ts +836 -8952
  26. package/dist/esm/schemas/llm/constants.d.ts.map +1 -1
  27. package/dist/esm/schemas/llm/converters.d.ts +3564 -36028
  28. package/dist/esm/schemas/llm/converters.d.ts.map +1 -1
  29. package/dist/esm/schemas/llm/converters.js +8 -0
  30. package/dist/esm/schemas/llm/converters.js.map +1 -1
  31. package/dist/esm/schemas/llm/openai/converters.d.ts +559 -5065
  32. package/dist/esm/schemas/llm/openai/converters.d.ts.map +1 -1
  33. package/dist/esm/schemas/llm/openai/messagePartSchemas.d.ts +7 -47
  34. package/dist/esm/schemas/llm/openai/messagePartSchemas.d.ts.map +1 -1
  35. package/dist/esm/schemas/llm/openai/messageSchemas.d.ts +51 -665
  36. package/dist/esm/schemas/llm/openai/messageSchemas.d.ts.map +1 -1
  37. package/dist/esm/schemas/llm/openai/messageSchemas.js +12 -24
  38. package/dist/esm/schemas/llm/openai/messageSchemas.js.map +1 -1
  39. package/dist/esm/schemas/llm/openai/responseFormatSchema.d.ts +30 -218
  40. package/dist/esm/schemas/llm/openai/responseFormatSchema.d.ts.map +1 -1
  41. package/dist/esm/schemas/llm/openai/toolCallSchemas.d.ts +6 -54
  42. package/dist/esm/schemas/llm/openai/toolCallSchemas.d.ts.map +1 -1
  43. package/dist/esm/schemas/llm/openai/toolCallSchemas.js +2 -3
  44. package/dist/esm/schemas/llm/openai/toolCallSchemas.js.map +1 -1
  45. package/dist/esm/schemas/llm/openai/toolChoiceSchemas.d.ts +3 -17
  46. package/dist/esm/schemas/llm/openai/toolChoiceSchemas.d.ts.map +1 -1
  47. package/dist/esm/schemas/llm/openai/toolSchemas.d.ts +33 -1254
  48. package/dist/esm/schemas/llm/openai/toolSchemas.d.ts.map +1 -1
  49. package/dist/esm/schemas/llm/openai/toolSchemas.js +3 -6
  50. package/dist/esm/schemas/llm/openai/toolSchemas.js.map +1 -1
  51. package/dist/esm/schemas/llm/phoenixPrompt/converters.d.ts +105 -696
  52. package/dist/esm/schemas/llm/phoenixPrompt/converters.d.ts.map +1 -1
  53. package/dist/esm/schemas/llm/phoenixPrompt/messagePartSchemas.d.ts +13 -89
  54. package/dist/esm/schemas/llm/phoenixPrompt/messagePartSchemas.d.ts.map +1 -1
  55. package/dist/esm/schemas/llm/phoenixPrompt/messagePartSchemas.js +1 -1
  56. package/dist/esm/schemas/llm/phoenixPrompt/messagePartSchemas.js.map +1 -1
  57. package/dist/esm/schemas/llm/phoenixPrompt/messageSchemas.d.ts +41 -165
  58. package/dist/esm/schemas/llm/phoenixPrompt/messageSchemas.d.ts.map +1 -1
  59. package/dist/esm/schemas/llm/phoenixPrompt/responseFormatSchema.d.ts +2 -28
  60. package/dist/esm/schemas/llm/phoenixPrompt/responseFormatSchema.d.ts.map +1 -1
  61. package/dist/esm/schemas/llm/phoenixPrompt/responseFormatSchema.js +1 -1
  62. package/dist/esm/schemas/llm/phoenixPrompt/responseFormatSchema.js.map +1 -1
  63. package/dist/esm/schemas/llm/phoenixPrompt/toolCallSchemas.d.ts +2 -26
  64. package/dist/esm/schemas/llm/phoenixPrompt/toolCallSchemas.d.ts.map +1 -1
  65. package/dist/esm/schemas/llm/phoenixPrompt/toolChoiceSchemas.d.ts +5 -23
  66. package/dist/esm/schemas/llm/phoenixPrompt/toolChoiceSchemas.d.ts.map +1 -1
  67. package/dist/esm/schemas/llm/phoenixPrompt/toolSchemas.d.ts +2 -28
  68. package/dist/esm/schemas/llm/phoenixPrompt/toolSchemas.d.ts.map +1 -1
  69. package/dist/esm/schemas/llm/phoenixPrompt/toolSchemas.js +1 -1
  70. package/dist/esm/schemas/llm/phoenixPrompt/toolSchemas.js.map +1 -1
  71. package/dist/esm/schemas/llm/schemas.d.ts +172 -2608
  72. package/dist/esm/schemas/llm/schemas.d.ts.map +1 -1
  73. package/dist/esm/schemas/llm/schemas.js +2 -2
  74. package/dist/esm/schemas/llm/schemas.js.map +1 -1
  75. package/dist/esm/schemas/llm/types.d.ts +8 -8
  76. package/dist/esm/schemas/llm/types.d.ts.map +1 -1
  77. package/dist/esm/schemas/llm/utils.d.ts +2 -2
  78. package/dist/esm/schemas/llm/utils.d.ts.map +1 -1
  79. package/dist/esm/schemas/llm/vercel/messagePartSchemas.d.ts +13 -105
  80. package/dist/esm/schemas/llm/vercel/messagePartSchemas.d.ts.map +1 -1
  81. package/dist/esm/schemas/llm/vercel/messageSchemas.d.ts +20 -137
  82. package/dist/esm/schemas/llm/vercel/messageSchemas.d.ts.map +1 -1
  83. package/dist/esm/schemas/llm/vercel/toolChoiceSchemas.d.ts +2 -8
  84. package/dist/esm/schemas/llm/vercel/toolChoiceSchemas.d.ts.map +1 -1
  85. package/dist/esm/schemas/llm/vercel/toolSchemas.d.ts +2 -26
  86. package/dist/esm/schemas/llm/vercel/toolSchemas.d.ts.map +1 -1
  87. package/dist/esm/tsconfig.esm.tsbuildinfo +1 -1
  88. package/dist/esm/utils/formatPromptMessages.d.ts.map +1 -1
  89. package/dist/esm/utils/getPromptBySelector.d.ts.map +1 -1
  90. package/dist/esm/utils/schemaMatches.d.ts +1 -1
  91. package/dist/esm/utils/schemaMatches.d.ts.map +1 -1
  92. package/dist/src/__generated__/api/v1.d.ts +190 -0
  93. package/dist/src/__generated__/api/v1.d.ts.map +1 -1
  94. package/dist/src/schemas/jsonLiteralSchema.d.ts +1 -1
  95. package/dist/src/schemas/jsonLiteralSchema.d.ts.map +1 -1
  96. package/dist/src/schemas/jsonLiteralSchema.js +1 -1
  97. package/dist/src/schemas/jsonLiteralSchema.js.map +1 -1
  98. package/dist/src/schemas/jsonSchema.d.ts +28 -126
  99. package/dist/src/schemas/jsonSchema.d.ts.map +1 -1
  100. package/dist/src/schemas/jsonSchema.js +5 -11
  101. package/dist/src/schemas/jsonSchema.js.map +1 -1
  102. package/dist/src/schemas/llm/anthropic/converters.d.ts +205 -1344
  103. package/dist/src/schemas/llm/anthropic/converters.d.ts.map +1 -1
  104. package/dist/src/schemas/llm/anthropic/messagePartSchemas.d.ts +45 -217
  105. package/dist/src/schemas/llm/anthropic/messagePartSchemas.d.ts.map +1 -1
  106. package/dist/src/schemas/llm/anthropic/messageSchemas.d.ts +87 -725
  107. package/dist/src/schemas/llm/anthropic/messageSchemas.d.ts.map +1 -1
  108. package/dist/src/schemas/llm/anthropic/messageSchemas.js +3 -13
  109. package/dist/src/schemas/llm/anthropic/messageSchemas.js.map +1 -1
  110. package/dist/src/schemas/llm/anthropic/toolCallSchemas.d.ts +4 -24
  111. package/dist/src/schemas/llm/anthropic/toolCallSchemas.d.ts.map +1 -1
  112. package/dist/src/schemas/llm/anthropic/toolChoiceSchemas.d.ts +4 -18
  113. package/dist/src/schemas/llm/anthropic/toolChoiceSchemas.d.ts.map +1 -1
  114. package/dist/src/schemas/llm/anthropic/toolSchemas.d.ts +29 -169
  115. package/dist/src/schemas/llm/anthropic/toolSchemas.d.ts.map +1 -1
  116. package/dist/src/schemas/llm/constants.d.ts +836 -8952
  117. package/dist/src/schemas/llm/constants.d.ts.map +1 -1
  118. package/dist/src/schemas/llm/converters.d.ts +3564 -36028
  119. package/dist/src/schemas/llm/converters.d.ts.map +1 -1
  120. package/dist/src/schemas/llm/converters.js +8 -0
  121. package/dist/src/schemas/llm/converters.js.map +1 -1
  122. package/dist/src/schemas/llm/openai/converters.d.ts +559 -5065
  123. package/dist/src/schemas/llm/openai/converters.d.ts.map +1 -1
  124. package/dist/src/schemas/llm/openai/messagePartSchemas.d.ts +7 -47
  125. package/dist/src/schemas/llm/openai/messagePartSchemas.d.ts.map +1 -1
  126. package/dist/src/schemas/llm/openai/messageSchemas.d.ts +51 -665
  127. package/dist/src/schemas/llm/openai/messageSchemas.d.ts.map +1 -1
  128. package/dist/src/schemas/llm/openai/messageSchemas.js +12 -24
  129. package/dist/src/schemas/llm/openai/messageSchemas.js.map +1 -1
  130. package/dist/src/schemas/llm/openai/responseFormatSchema.d.ts +30 -218
  131. package/dist/src/schemas/llm/openai/responseFormatSchema.d.ts.map +1 -1
  132. package/dist/src/schemas/llm/openai/toolCallSchemas.d.ts +6 -54
  133. package/dist/src/schemas/llm/openai/toolCallSchemas.d.ts.map +1 -1
  134. package/dist/src/schemas/llm/openai/toolCallSchemas.js +2 -3
  135. package/dist/src/schemas/llm/openai/toolCallSchemas.js.map +1 -1
  136. package/dist/src/schemas/llm/openai/toolChoiceSchemas.d.ts +3 -17
  137. package/dist/src/schemas/llm/openai/toolChoiceSchemas.d.ts.map +1 -1
  138. package/dist/src/schemas/llm/openai/toolSchemas.d.ts +33 -1254
  139. package/dist/src/schemas/llm/openai/toolSchemas.d.ts.map +1 -1
  140. package/dist/src/schemas/llm/openai/toolSchemas.js +3 -6
  141. package/dist/src/schemas/llm/openai/toolSchemas.js.map +1 -1
  142. package/dist/src/schemas/llm/phoenixPrompt/converters.d.ts +105 -696
  143. package/dist/src/schemas/llm/phoenixPrompt/converters.d.ts.map +1 -1
  144. package/dist/src/schemas/llm/phoenixPrompt/messagePartSchemas.d.ts +13 -89
  145. package/dist/src/schemas/llm/phoenixPrompt/messagePartSchemas.d.ts.map +1 -1
  146. package/dist/src/schemas/llm/phoenixPrompt/messagePartSchemas.js +1 -1
  147. package/dist/src/schemas/llm/phoenixPrompt/messagePartSchemas.js.map +1 -1
  148. package/dist/src/schemas/llm/phoenixPrompt/messageSchemas.d.ts +41 -165
  149. package/dist/src/schemas/llm/phoenixPrompt/messageSchemas.d.ts.map +1 -1
  150. package/dist/src/schemas/llm/phoenixPrompt/responseFormatSchema.d.ts +2 -28
  151. package/dist/src/schemas/llm/phoenixPrompt/responseFormatSchema.d.ts.map +1 -1
  152. package/dist/src/schemas/llm/phoenixPrompt/responseFormatSchema.js +1 -1
  153. package/dist/src/schemas/llm/phoenixPrompt/responseFormatSchema.js.map +1 -1
  154. package/dist/src/schemas/llm/phoenixPrompt/toolCallSchemas.d.ts +2 -26
  155. package/dist/src/schemas/llm/phoenixPrompt/toolCallSchemas.d.ts.map +1 -1
  156. package/dist/src/schemas/llm/phoenixPrompt/toolChoiceSchemas.d.ts +5 -23
  157. package/dist/src/schemas/llm/phoenixPrompt/toolChoiceSchemas.d.ts.map +1 -1
  158. package/dist/src/schemas/llm/phoenixPrompt/toolSchemas.d.ts +2 -28
  159. package/dist/src/schemas/llm/phoenixPrompt/toolSchemas.d.ts.map +1 -1
  160. package/dist/src/schemas/llm/phoenixPrompt/toolSchemas.js +1 -1
  161. package/dist/src/schemas/llm/phoenixPrompt/toolSchemas.js.map +1 -1
  162. package/dist/src/schemas/llm/schemas.d.ts +172 -2608
  163. package/dist/src/schemas/llm/schemas.d.ts.map +1 -1
  164. package/dist/src/schemas/llm/schemas.js +2 -2
  165. package/dist/src/schemas/llm/schemas.js.map +1 -1
  166. package/dist/src/schemas/llm/types.d.ts +8 -8
  167. package/dist/src/schemas/llm/types.d.ts.map +1 -1
  168. package/dist/src/schemas/llm/utils.d.ts +2 -2
  169. package/dist/src/schemas/llm/utils.d.ts.map +1 -1
  170. package/dist/src/schemas/llm/vercel/messagePartSchemas.d.ts +13 -105
  171. package/dist/src/schemas/llm/vercel/messagePartSchemas.d.ts.map +1 -1
  172. package/dist/src/schemas/llm/vercel/messageSchemas.d.ts +20 -137
  173. package/dist/src/schemas/llm/vercel/messageSchemas.d.ts.map +1 -1
  174. package/dist/src/schemas/llm/vercel/toolChoiceSchemas.d.ts +2 -8
  175. package/dist/src/schemas/llm/vercel/toolChoiceSchemas.d.ts.map +1 -1
  176. package/dist/src/schemas/llm/vercel/toolSchemas.d.ts +2 -26
  177. package/dist/src/schemas/llm/vercel/toolSchemas.d.ts.map +1 -1
  178. package/dist/src/utils/formatPromptMessages.d.ts.map +1 -1
  179. package/dist/src/utils/getPromptBySelector.d.ts.map +1 -1
  180. package/dist/src/utils/schemaMatches.d.ts +1 -1
  181. package/dist/src/utils/schemaMatches.d.ts.map +1 -1
  182. package/dist/tsconfig.tsbuildinfo +1 -1
  183. package/package.json +4 -5
  184. package/src/__generated__/api/v1.ts +190 -0
  185. package/src/schemas/jsonLiteralSchema.ts +1 -1
  186. package/src/schemas/jsonSchema.ts +18 -25
  187. package/src/schemas/llm/anthropic/messageSchemas.ts +6 -15
  188. package/src/schemas/llm/converters.ts +40 -16
  189. package/src/schemas/llm/openai/messageSchemas.ts +35 -47
  190. package/src/schemas/llm/openai/toolCallSchemas.ts +2 -3
  191. package/src/schemas/llm/openai/toolSchemas.ts +22 -25
  192. package/src/schemas/llm/phoenixPrompt/messagePartSchemas.ts +1 -1
  193. package/src/schemas/llm/phoenixPrompt/responseFormatSchema.ts +1 -1
  194. package/src/schemas/llm/phoenixPrompt/toolSchemas.ts +1 -1
  195. package/src/schemas/llm/schemas.ts +2 -2
  196. package/src/schemas/llm/types.ts +13 -13
  197. package/src/schemas/llm/utils.ts +7 -7
  198. package/src/utils/schemaMatches.ts +1 -1
@@ -4,792 +4,154 @@ import z from "zod";
4
4
  * Anthropic Message Schemas
5
5
  *
6
6
  */
7
- export declare const anthropicMessageRoleSchema: z.ZodEnum<["user", "assistant"]>;
7
+ export declare const anthropicMessageRoleSchema: z.ZodEnum<{
8
+ user: "user";
9
+ assistant: "assistant";
10
+ }>;
8
11
  export type AnthropicMessageRole = z.infer<typeof anthropicMessageRoleSchema>;
9
12
  /**
10
13
  * TODO: rewrite as discriminated union
11
14
  */
12
15
  export declare const anthropicMessageSchema: z.ZodObject<{
13
- role: z.ZodEnum<["user", "assistant"]>;
14
- content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
16
+ role: z.ZodEnum<{
17
+ user: "user";
18
+ assistant: "assistant";
19
+ }>;
20
+ content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
15
21
  type: z.ZodLiteral<"text">;
16
22
  text: z.ZodString;
17
- }, "strip", z.ZodTypeAny, {
18
- text: string;
19
- type: "text";
20
- }, {
21
- text: string;
22
- type: "text";
23
- }>, z.ZodObject<{
23
+ }, z.core.$strip>, z.ZodObject<{
24
24
  type: z.ZodLiteral<"image">;
25
25
  source: z.ZodObject<{
26
26
  data: z.ZodString;
27
- media_type: z.ZodEnum<["image/jpeg", "image/png", "image/gif", "image/webp"]>;
28
- type: z.ZodLiteral<"base64">;
29
- }, "strip", z.ZodTypeAny, {
30
- data: string;
31
- type: "base64";
32
- media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
33
- }, {
34
- data: string;
35
- type: "base64";
36
- media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
37
- }>;
38
- }, "strip", z.ZodTypeAny, {
39
- type: "image";
40
- source: {
41
- data: string;
42
- type: "base64";
43
- media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
44
- };
45
- }, {
46
- type: "image";
47
- source: {
48
- data: string;
49
- type: "base64";
50
- media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
51
- };
52
- }>, z.ZodObject<{
53
- id: z.ZodString;
54
- type: z.ZodLiteral<"tool_use">;
55
- name: z.ZodString;
56
- input: z.ZodType<import("../../jsonLiteralSchema.js").JSONLiteral, z.ZodTypeDef, import("../../jsonLiteralSchema.js").JSONLiteral>;
57
- }, "strip", z.ZodTypeAny, {
58
- name: string;
59
- id: string;
60
- input: import("../../jsonLiteralSchema.js").JSONLiteral;
61
- type: "tool_use";
62
- }, {
63
- name: string;
64
- id: string;
65
- input: import("../../jsonLiteralSchema.js").JSONLiteral;
66
- type: "tool_use";
67
- }>, z.ZodObject<{
68
- type: z.ZodLiteral<"tool_result">;
69
- tool_use_id: z.ZodString;
70
- content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodUnion<[z.ZodObject<{
71
- type: z.ZodLiteral<"text">;
72
- text: z.ZodString;
73
- }, "strip", z.ZodTypeAny, {
74
- text: string;
75
- type: "text";
76
- }, {
77
- text: string;
78
- type: "text";
79
- }>, z.ZodObject<{
80
- type: z.ZodLiteral<"image">;
81
- source: z.ZodObject<{
82
- data: z.ZodString;
83
- media_type: z.ZodEnum<["image/jpeg", "image/png", "image/gif", "image/webp"]>;
84
- type: z.ZodLiteral<"base64">;
85
- }, "strip", z.ZodTypeAny, {
86
- data: string;
87
- type: "base64";
88
- media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
89
- }, {
90
- data: string;
91
- type: "base64";
92
- media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
27
+ media_type: z.ZodEnum<{
28
+ "image/jpeg": "image/jpeg";
29
+ "image/png": "image/png";
30
+ "image/gif": "image/gif";
31
+ "image/webp": "image/webp";
93
32
  }>;
94
- }, "strip", z.ZodTypeAny, {
95
- type: "image";
96
- source: {
97
- data: string;
98
- type: "base64";
99
- media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
100
- };
101
- }, {
102
- type: "image";
103
- source: {
104
- data: string;
105
- type: "base64";
106
- media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
107
- };
108
- }>]>, "many">]>;
109
- is_error: z.ZodOptional<z.ZodBoolean>;
110
- }, "strip", z.ZodTypeAny, {
111
- content: string | ({
112
- text: string;
113
- type: "text";
114
- } | {
115
- type: "image";
116
- source: {
117
- data: string;
118
- type: "base64";
119
- media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
120
- };
121
- })[];
122
- type: "tool_result";
123
- tool_use_id: string;
124
- is_error?: boolean | undefined;
125
- }, {
126
- content: string | ({
127
- text: string;
128
- type: "text";
129
- } | {
130
- type: "image";
131
- source: {
132
- data: string;
133
- type: "base64";
134
- media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
135
- };
136
- })[];
137
- type: "tool_result";
138
- tool_use_id: string;
139
- is_error?: boolean | undefined;
140
- }>]>, "many">]>;
141
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
142
- role: z.ZodEnum<["user", "assistant"]>;
143
- content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
144
- type: z.ZodLiteral<"text">;
145
- text: z.ZodString;
146
- }, "strip", z.ZodTypeAny, {
147
- text: string;
148
- type: "text";
149
- }, {
150
- text: string;
151
- type: "text";
152
- }>, z.ZodObject<{
153
- type: z.ZodLiteral<"image">;
154
- source: z.ZodObject<{
155
- data: z.ZodString;
156
- media_type: z.ZodEnum<["image/jpeg", "image/png", "image/gif", "image/webp"]>;
157
33
  type: z.ZodLiteral<"base64">;
158
- }, "strip", z.ZodTypeAny, {
159
- data: string;
160
- type: "base64";
161
- media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
162
- }, {
163
- data: string;
164
- type: "base64";
165
- media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
166
- }>;
167
- }, "strip", z.ZodTypeAny, {
168
- type: "image";
169
- source: {
170
- data: string;
171
- type: "base64";
172
- media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
173
- };
174
- }, {
175
- type: "image";
176
- source: {
177
- data: string;
178
- type: "base64";
179
- media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
180
- };
181
- }>, z.ZodObject<{
34
+ }, z.core.$strip>;
35
+ }, z.core.$strip>, z.ZodObject<{
182
36
  id: z.ZodString;
183
37
  type: z.ZodLiteral<"tool_use">;
184
38
  name: z.ZodString;
185
- input: z.ZodType<import("../../jsonLiteralSchema.js").JSONLiteral, z.ZodTypeDef, import("../../jsonLiteralSchema.js").JSONLiteral>;
186
- }, "strip", z.ZodTypeAny, {
187
- name: string;
188
- id: string;
189
- input: import("../../jsonLiteralSchema.js").JSONLiteral;
190
- type: "tool_use";
191
- }, {
192
- name: string;
193
- id: string;
194
- input: import("../../jsonLiteralSchema.js").JSONLiteral;
195
- type: "tool_use";
196
- }>, z.ZodObject<{
39
+ input: z.ZodType<import("../../jsonLiteralSchema.js").JSONLiteral, unknown, z.core.$ZodTypeInternals<import("../../jsonLiteralSchema.js").JSONLiteral, unknown>>;
40
+ }, z.core.$strip>, z.ZodObject<{
197
41
  type: z.ZodLiteral<"tool_result">;
198
42
  tool_use_id: z.ZodString;
199
- content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodUnion<[z.ZodObject<{
43
+ content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
200
44
  type: z.ZodLiteral<"text">;
201
45
  text: z.ZodString;
202
- }, "strip", z.ZodTypeAny, {
203
- text: string;
204
- type: "text";
205
- }, {
206
- text: string;
207
- type: "text";
208
- }>, z.ZodObject<{
46
+ }, z.core.$strip>, z.ZodObject<{
209
47
  type: z.ZodLiteral<"image">;
210
48
  source: z.ZodObject<{
211
49
  data: z.ZodString;
212
- media_type: z.ZodEnum<["image/jpeg", "image/png", "image/gif", "image/webp"]>;
50
+ media_type: z.ZodEnum<{
51
+ "image/jpeg": "image/jpeg";
52
+ "image/png": "image/png";
53
+ "image/gif": "image/gif";
54
+ "image/webp": "image/webp";
55
+ }>;
213
56
  type: z.ZodLiteral<"base64">;
214
- }, "strip", z.ZodTypeAny, {
215
- data: string;
216
- type: "base64";
217
- media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
218
- }, {
219
- data: string;
220
- type: "base64";
221
- media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
222
- }>;
223
- }, "strip", z.ZodTypeAny, {
224
- type: "image";
225
- source: {
226
- data: string;
227
- type: "base64";
228
- media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
229
- };
230
- }, {
231
- type: "image";
232
- source: {
233
- data: string;
234
- type: "base64";
235
- media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
236
- };
237
- }>]>, "many">]>;
57
+ }, z.core.$strip>;
58
+ }, z.core.$strip>]>>]>;
238
59
  is_error: z.ZodOptional<z.ZodBoolean>;
239
- }, "strip", z.ZodTypeAny, {
240
- content: string | ({
241
- text: string;
242
- type: "text";
243
- } | {
244
- type: "image";
245
- source: {
246
- data: string;
247
- type: "base64";
248
- media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
249
- };
250
- })[];
251
- type: "tool_result";
252
- tool_use_id: string;
253
- is_error?: boolean | undefined;
254
- }, {
255
- content: string | ({
256
- text: string;
257
- type: "text";
258
- } | {
259
- type: "image";
260
- source: {
261
- data: string;
262
- type: "base64";
263
- media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
264
- };
265
- })[];
266
- type: "tool_result";
267
- tool_use_id: string;
268
- is_error?: boolean | undefined;
269
- }>]>, "many">]>;
270
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
271
- role: z.ZodEnum<["user", "assistant"]>;
272
- content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
273
- type: z.ZodLiteral<"text">;
274
- text: z.ZodString;
275
- }, "strip", z.ZodTypeAny, {
276
- text: string;
277
- type: "text";
278
- }, {
279
- text: string;
280
- type: "text";
281
- }>, z.ZodObject<{
282
- type: z.ZodLiteral<"image">;
283
- source: z.ZodObject<{
284
- data: z.ZodString;
285
- media_type: z.ZodEnum<["image/jpeg", "image/png", "image/gif", "image/webp"]>;
286
- type: z.ZodLiteral<"base64">;
287
- }, "strip", z.ZodTypeAny, {
288
- data: string;
289
- type: "base64";
290
- media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
291
- }, {
292
- data: string;
293
- type: "base64";
294
- media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
295
- }>;
296
- }, "strip", z.ZodTypeAny, {
297
- type: "image";
298
- source: {
299
- data: string;
300
- type: "base64";
301
- media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
302
- };
303
- }, {
304
- type: "image";
305
- source: {
306
- data: string;
307
- type: "base64";
308
- media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
309
- };
310
- }>, z.ZodObject<{
311
- id: z.ZodString;
312
- type: z.ZodLiteral<"tool_use">;
313
- name: z.ZodString;
314
- input: z.ZodType<import("../../jsonLiteralSchema.js").JSONLiteral, z.ZodTypeDef, import("../../jsonLiteralSchema.js").JSONLiteral>;
315
- }, "strip", z.ZodTypeAny, {
316
- name: string;
317
- id: string;
318
- input: import("../../jsonLiteralSchema.js").JSONLiteral;
319
- type: "tool_use";
320
- }, {
321
- name: string;
322
- id: string;
323
- input: import("../../jsonLiteralSchema.js").JSONLiteral;
324
- type: "tool_use";
325
- }>, z.ZodObject<{
326
- type: z.ZodLiteral<"tool_result">;
327
- tool_use_id: z.ZodString;
328
- content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodUnion<[z.ZodObject<{
329
- type: z.ZodLiteral<"text">;
330
- text: z.ZodString;
331
- }, "strip", z.ZodTypeAny, {
332
- text: string;
333
- type: "text";
334
- }, {
335
- text: string;
336
- type: "text";
337
- }>, z.ZodObject<{
338
- type: z.ZodLiteral<"image">;
339
- source: z.ZodObject<{
340
- data: z.ZodString;
341
- media_type: z.ZodEnum<["image/jpeg", "image/png", "image/gif", "image/webp"]>;
342
- type: z.ZodLiteral<"base64">;
343
- }, "strip", z.ZodTypeAny, {
344
- data: string;
345
- type: "base64";
346
- media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
347
- }, {
348
- data: string;
349
- type: "base64";
350
- media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
351
- }>;
352
- }, "strip", z.ZodTypeAny, {
353
- type: "image";
354
- source: {
355
- data: string;
356
- type: "base64";
357
- media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
358
- };
359
- }, {
360
- type: "image";
361
- source: {
362
- data: string;
363
- type: "base64";
364
- media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
365
- };
366
- }>]>, "many">]>;
367
- is_error: z.ZodOptional<z.ZodBoolean>;
368
- }, "strip", z.ZodTypeAny, {
369
- content: string | ({
370
- text: string;
371
- type: "text";
372
- } | {
373
- type: "image";
374
- source: {
375
- data: string;
376
- type: "base64";
377
- media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
378
- };
379
- })[];
380
- type: "tool_result";
381
- tool_use_id: string;
382
- is_error?: boolean | undefined;
383
- }, {
384
- content: string | ({
385
- text: string;
386
- type: "text";
387
- } | {
388
- type: "image";
389
- source: {
390
- data: string;
391
- type: "base64";
392
- media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
393
- };
394
- })[];
395
- type: "tool_result";
396
- tool_use_id: string;
397
- is_error?: boolean | undefined;
398
- }>]>, "many">]>;
399
- }, z.ZodTypeAny, "passthrough">>;
60
+ }, z.core.$strip>], "type">>]>;
61
+ }, z.core.$loose>;
400
62
  export type AnthropicMessage = z.infer<typeof anthropicMessageSchema>;
401
63
  export declare const anthropicMessagesSchema: z.ZodArray<z.ZodObject<{
402
- role: z.ZodEnum<["user", "assistant"]>;
403
- content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
64
+ role: z.ZodEnum<{
65
+ user: "user";
66
+ assistant: "assistant";
67
+ }>;
68
+ content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
404
69
  type: z.ZodLiteral<"text">;
405
70
  text: z.ZodString;
406
- }, "strip", z.ZodTypeAny, {
407
- text: string;
408
- type: "text";
409
- }, {
410
- text: string;
411
- type: "text";
412
- }>, z.ZodObject<{
71
+ }, z.core.$strip>, z.ZodObject<{
413
72
  type: z.ZodLiteral<"image">;
414
73
  source: z.ZodObject<{
415
74
  data: z.ZodString;
416
- media_type: z.ZodEnum<["image/jpeg", "image/png", "image/gif", "image/webp"]>;
417
- type: z.ZodLiteral<"base64">;
418
- }, "strip", z.ZodTypeAny, {
419
- data: string;
420
- type: "base64";
421
- media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
422
- }, {
423
- data: string;
424
- type: "base64";
425
- media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
426
- }>;
427
- }, "strip", z.ZodTypeAny, {
428
- type: "image";
429
- source: {
430
- data: string;
431
- type: "base64";
432
- media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
433
- };
434
- }, {
435
- type: "image";
436
- source: {
437
- data: string;
438
- type: "base64";
439
- media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
440
- };
441
- }>, z.ZodObject<{
442
- id: z.ZodString;
443
- type: z.ZodLiteral<"tool_use">;
444
- name: z.ZodString;
445
- input: z.ZodType<import("../../jsonLiteralSchema.js").JSONLiteral, z.ZodTypeDef, import("../../jsonLiteralSchema.js").JSONLiteral>;
446
- }, "strip", z.ZodTypeAny, {
447
- name: string;
448
- id: string;
449
- input: import("../../jsonLiteralSchema.js").JSONLiteral;
450
- type: "tool_use";
451
- }, {
452
- name: string;
453
- id: string;
454
- input: import("../../jsonLiteralSchema.js").JSONLiteral;
455
- type: "tool_use";
456
- }>, z.ZodObject<{
457
- type: z.ZodLiteral<"tool_result">;
458
- tool_use_id: z.ZodString;
459
- content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodUnion<[z.ZodObject<{
460
- type: z.ZodLiteral<"text">;
461
- text: z.ZodString;
462
- }, "strip", z.ZodTypeAny, {
463
- text: string;
464
- type: "text";
465
- }, {
466
- text: string;
467
- type: "text";
468
- }>, z.ZodObject<{
469
- type: z.ZodLiteral<"image">;
470
- source: z.ZodObject<{
471
- data: z.ZodString;
472
- media_type: z.ZodEnum<["image/jpeg", "image/png", "image/gif", "image/webp"]>;
473
- type: z.ZodLiteral<"base64">;
474
- }, "strip", z.ZodTypeAny, {
475
- data: string;
476
- type: "base64";
477
- media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
478
- }, {
479
- data: string;
480
- type: "base64";
481
- media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
75
+ media_type: z.ZodEnum<{
76
+ "image/jpeg": "image/jpeg";
77
+ "image/png": "image/png";
78
+ "image/gif": "image/gif";
79
+ "image/webp": "image/webp";
482
80
  }>;
483
- }, "strip", z.ZodTypeAny, {
484
- type: "image";
485
- source: {
486
- data: string;
487
- type: "base64";
488
- media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
489
- };
490
- }, {
491
- type: "image";
492
- source: {
493
- data: string;
494
- type: "base64";
495
- media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
496
- };
497
- }>]>, "many">]>;
498
- is_error: z.ZodOptional<z.ZodBoolean>;
499
- }, "strip", z.ZodTypeAny, {
500
- content: string | ({
501
- text: string;
502
- type: "text";
503
- } | {
504
- type: "image";
505
- source: {
506
- data: string;
507
- type: "base64";
508
- media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
509
- };
510
- })[];
511
- type: "tool_result";
512
- tool_use_id: string;
513
- is_error?: boolean | undefined;
514
- }, {
515
- content: string | ({
516
- text: string;
517
- type: "text";
518
- } | {
519
- type: "image";
520
- source: {
521
- data: string;
522
- type: "base64";
523
- media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
524
- };
525
- })[];
526
- type: "tool_result";
527
- tool_use_id: string;
528
- is_error?: boolean | undefined;
529
- }>]>, "many">]>;
530
- }, "passthrough", z.ZodTypeAny, z.objectOutputType<{
531
- role: z.ZodEnum<["user", "assistant"]>;
532
- content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
533
- type: z.ZodLiteral<"text">;
534
- text: z.ZodString;
535
- }, "strip", z.ZodTypeAny, {
536
- text: string;
537
- type: "text";
538
- }, {
539
- text: string;
540
- type: "text";
541
- }>, z.ZodObject<{
542
- type: z.ZodLiteral<"image">;
543
- source: z.ZodObject<{
544
- data: z.ZodString;
545
- media_type: z.ZodEnum<["image/jpeg", "image/png", "image/gif", "image/webp"]>;
546
81
  type: z.ZodLiteral<"base64">;
547
- }, "strip", z.ZodTypeAny, {
548
- data: string;
549
- type: "base64";
550
- media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
551
- }, {
552
- data: string;
553
- type: "base64";
554
- media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
555
- }>;
556
- }, "strip", z.ZodTypeAny, {
557
- type: "image";
558
- source: {
559
- data: string;
560
- type: "base64";
561
- media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
562
- };
563
- }, {
564
- type: "image";
565
- source: {
566
- data: string;
567
- type: "base64";
568
- media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
569
- };
570
- }>, z.ZodObject<{
82
+ }, z.core.$strip>;
83
+ }, z.core.$strip>, z.ZodObject<{
571
84
  id: z.ZodString;
572
85
  type: z.ZodLiteral<"tool_use">;
573
86
  name: z.ZodString;
574
- input: z.ZodType<import("../../jsonLiteralSchema.js").JSONLiteral, z.ZodTypeDef, import("../../jsonLiteralSchema.js").JSONLiteral>;
575
- }, "strip", z.ZodTypeAny, {
576
- name: string;
577
- id: string;
578
- input: import("../../jsonLiteralSchema.js").JSONLiteral;
579
- type: "tool_use";
580
- }, {
581
- name: string;
582
- id: string;
583
- input: import("../../jsonLiteralSchema.js").JSONLiteral;
584
- type: "tool_use";
585
- }>, z.ZodObject<{
87
+ input: z.ZodType<import("../../jsonLiteralSchema.js").JSONLiteral, unknown, z.core.$ZodTypeInternals<import("../../jsonLiteralSchema.js").JSONLiteral, unknown>>;
88
+ }, z.core.$strip>, z.ZodObject<{
586
89
  type: z.ZodLiteral<"tool_result">;
587
90
  tool_use_id: z.ZodString;
588
- content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodUnion<[z.ZodObject<{
91
+ content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
589
92
  type: z.ZodLiteral<"text">;
590
93
  text: z.ZodString;
591
- }, "strip", z.ZodTypeAny, {
592
- text: string;
593
- type: "text";
594
- }, {
595
- text: string;
596
- type: "text";
597
- }>, z.ZodObject<{
94
+ }, z.core.$strip>, z.ZodObject<{
598
95
  type: z.ZodLiteral<"image">;
599
96
  source: z.ZodObject<{
600
97
  data: z.ZodString;
601
- media_type: z.ZodEnum<["image/jpeg", "image/png", "image/gif", "image/webp"]>;
98
+ media_type: z.ZodEnum<{
99
+ "image/jpeg": "image/jpeg";
100
+ "image/png": "image/png";
101
+ "image/gif": "image/gif";
102
+ "image/webp": "image/webp";
103
+ }>;
602
104
  type: z.ZodLiteral<"base64">;
603
- }, "strip", z.ZodTypeAny, {
604
- data: string;
605
- type: "base64";
606
- media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
607
- }, {
608
- data: string;
609
- type: "base64";
610
- media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
611
- }>;
612
- }, "strip", z.ZodTypeAny, {
613
- type: "image";
614
- source: {
615
- data: string;
616
- type: "base64";
617
- media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
618
- };
619
- }, {
620
- type: "image";
621
- source: {
622
- data: string;
623
- type: "base64";
624
- media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
625
- };
626
- }>]>, "many">]>;
105
+ }, z.core.$strip>;
106
+ }, z.core.$strip>]>>]>;
627
107
  is_error: z.ZodOptional<z.ZodBoolean>;
628
- }, "strip", z.ZodTypeAny, {
629
- content: string | ({
630
- text: string;
631
- type: "text";
632
- } | {
633
- type: "image";
634
- source: {
635
- data: string;
636
- type: "base64";
637
- media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
638
- };
639
- })[];
640
- type: "tool_result";
641
- tool_use_id: string;
642
- is_error?: boolean | undefined;
643
- }, {
644
- content: string | ({
645
- text: string;
646
- type: "text";
647
- } | {
648
- type: "image";
649
- source: {
650
- data: string;
651
- type: "base64";
652
- media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
653
- };
654
- })[];
655
- type: "tool_result";
656
- tool_use_id: string;
657
- is_error?: boolean | undefined;
658
- }>]>, "many">]>;
659
- }, z.ZodTypeAny, "passthrough">, z.objectInputType<{
660
- role: z.ZodEnum<["user", "assistant"]>;
661
- content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodDiscriminatedUnion<"type", [z.ZodObject<{
108
+ }, z.core.$strip>], "type">>]>;
109
+ }, z.core.$loose>>;
110
+ export declare const anthropicMessagesJSONSchema: z.core.ZodStandardJSONSchemaPayload<z.ZodArray<z.ZodObject<{
111
+ role: z.ZodEnum<{
112
+ user: "user";
113
+ assistant: "assistant";
114
+ }>;
115
+ content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
662
116
  type: z.ZodLiteral<"text">;
663
117
  text: z.ZodString;
664
- }, "strip", z.ZodTypeAny, {
665
- text: string;
666
- type: "text";
667
- }, {
668
- text: string;
669
- type: "text";
670
- }>, z.ZodObject<{
118
+ }, z.core.$strip>, z.ZodObject<{
671
119
  type: z.ZodLiteral<"image">;
672
120
  source: z.ZodObject<{
673
121
  data: z.ZodString;
674
- media_type: z.ZodEnum<["image/jpeg", "image/png", "image/gif", "image/webp"]>;
122
+ media_type: z.ZodEnum<{
123
+ "image/jpeg": "image/jpeg";
124
+ "image/png": "image/png";
125
+ "image/gif": "image/gif";
126
+ "image/webp": "image/webp";
127
+ }>;
675
128
  type: z.ZodLiteral<"base64">;
676
- }, "strip", z.ZodTypeAny, {
677
- data: string;
678
- type: "base64";
679
- media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
680
- }, {
681
- data: string;
682
- type: "base64";
683
- media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
684
- }>;
685
- }, "strip", z.ZodTypeAny, {
686
- type: "image";
687
- source: {
688
- data: string;
689
- type: "base64";
690
- media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
691
- };
692
- }, {
693
- type: "image";
694
- source: {
695
- data: string;
696
- type: "base64";
697
- media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
698
- };
699
- }>, z.ZodObject<{
129
+ }, z.core.$strip>;
130
+ }, z.core.$strip>, z.ZodObject<{
700
131
  id: z.ZodString;
701
132
  type: z.ZodLiteral<"tool_use">;
702
133
  name: z.ZodString;
703
- input: z.ZodType<import("../../jsonLiteralSchema.js").JSONLiteral, z.ZodTypeDef, import("../../jsonLiteralSchema.js").JSONLiteral>;
704
- }, "strip", z.ZodTypeAny, {
705
- name: string;
706
- id: string;
707
- input: import("../../jsonLiteralSchema.js").JSONLiteral;
708
- type: "tool_use";
709
- }, {
710
- name: string;
711
- id: string;
712
- input: import("../../jsonLiteralSchema.js").JSONLiteral;
713
- type: "tool_use";
714
- }>, z.ZodObject<{
134
+ input: z.ZodType<import("../../jsonLiteralSchema.js").JSONLiteral, unknown, z.core.$ZodTypeInternals<import("../../jsonLiteralSchema.js").JSONLiteral, unknown>>;
135
+ }, z.core.$strip>, z.ZodObject<{
715
136
  type: z.ZodLiteral<"tool_result">;
716
137
  tool_use_id: z.ZodString;
717
- content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodUnion<[z.ZodObject<{
138
+ content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
718
139
  type: z.ZodLiteral<"text">;
719
140
  text: z.ZodString;
720
- }, "strip", z.ZodTypeAny, {
721
- text: string;
722
- type: "text";
723
- }, {
724
- text: string;
725
- type: "text";
726
- }>, z.ZodObject<{
141
+ }, z.core.$strip>, z.ZodObject<{
727
142
  type: z.ZodLiteral<"image">;
728
143
  source: z.ZodObject<{
729
144
  data: z.ZodString;
730
- media_type: z.ZodEnum<["image/jpeg", "image/png", "image/gif", "image/webp"]>;
145
+ media_type: z.ZodEnum<{
146
+ "image/jpeg": "image/jpeg";
147
+ "image/png": "image/png";
148
+ "image/gif": "image/gif";
149
+ "image/webp": "image/webp";
150
+ }>;
731
151
  type: z.ZodLiteral<"base64">;
732
- }, "strip", z.ZodTypeAny, {
733
- data: string;
734
- type: "base64";
735
- media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
736
- }, {
737
- data: string;
738
- type: "base64";
739
- media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
740
- }>;
741
- }, "strip", z.ZodTypeAny, {
742
- type: "image";
743
- source: {
744
- data: string;
745
- type: "base64";
746
- media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
747
- };
748
- }, {
749
- type: "image";
750
- source: {
751
- data: string;
752
- type: "base64";
753
- media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
754
- };
755
- }>]>, "many">]>;
152
+ }, z.core.$strip>;
153
+ }, z.core.$strip>]>>]>;
756
154
  is_error: z.ZodOptional<z.ZodBoolean>;
757
- }, "strip", z.ZodTypeAny, {
758
- content: string | ({
759
- text: string;
760
- type: "text";
761
- } | {
762
- type: "image";
763
- source: {
764
- data: string;
765
- type: "base64";
766
- media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
767
- };
768
- })[];
769
- type: "tool_result";
770
- tool_use_id: string;
771
- is_error?: boolean | undefined;
772
- }, {
773
- content: string | ({
774
- text: string;
775
- type: "text";
776
- } | {
777
- type: "image";
778
- source: {
779
- data: string;
780
- type: "base64";
781
- media_type: "image/jpeg" | "image/png" | "image/gif" | "image/webp";
782
- };
783
- })[];
784
- type: "tool_result";
785
- tool_use_id: string;
786
- is_error?: boolean | undefined;
787
- }>]>, "many">]>;
788
- }, z.ZodTypeAny, "passthrough">>, "many">;
789
- export declare const anthropicMessagesJSONSchema: import("zod-to-json-schema").JsonSchema7Type & {
790
- $schema?: string | undefined;
791
- definitions?: {
792
- [key: string]: import("zod-to-json-schema").JsonSchema7Type;
793
- } | undefined;
794
- };
155
+ }, z.core.$strip>], "type">>]>;
156
+ }, z.core.$loose>>>;
795
157
  //# sourceMappingURL=messageSchemas.d.ts.map