@hebo-ai/gateway 0.9.2 → 0.9.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (213) hide show
  1. package/dist/config.d.ts +2 -0
  2. package/dist/config.js +125 -0
  3. package/dist/endpoints/chat-completions/converters.d.ts +26 -0
  4. package/dist/endpoints/chat-completions/converters.js +525 -0
  5. package/dist/endpoints/chat-completions/handler.d.ts +2 -0
  6. package/dist/endpoints/chat-completions/handler.js +152 -0
  7. package/dist/endpoints/chat-completions/index.d.ts +4 -0
  8. package/dist/endpoints/chat-completions/index.js +4 -0
  9. package/dist/endpoints/chat-completions/otel.d.ts +5 -0
  10. package/dist/endpoints/chat-completions/otel.js +177 -0
  11. package/dist/endpoints/chat-completions/schema.d.ts +1170 -0
  12. package/dist/endpoints/chat-completions/schema.js +252 -0
  13. package/dist/endpoints/conversations/converters.d.ts +8 -0
  14. package/dist/endpoints/conversations/converters.js +29 -0
  15. package/dist/endpoints/conversations/handler.d.ts +2 -0
  16. package/dist/endpoints/conversations/handler.js +259 -0
  17. package/dist/endpoints/conversations/index.d.ts +3 -0
  18. package/dist/endpoints/conversations/index.js +3 -0
  19. package/dist/endpoints/conversations/schema.d.ts +1511 -0
  20. package/dist/endpoints/conversations/schema.js +74 -0
  21. package/dist/endpoints/conversations/storage/dialects/greptime.d.ts +10 -0
  22. package/dist/endpoints/conversations/storage/dialects/greptime.js +87 -0
  23. package/dist/endpoints/conversations/storage/dialects/mysql.d.ts +12 -0
  24. package/dist/endpoints/conversations/storage/dialects/mysql.js +118 -0
  25. package/dist/endpoints/conversations/storage/dialects/postgres.d.ts +16 -0
  26. package/dist/endpoints/conversations/storage/dialects/postgres.js +185 -0
  27. package/dist/endpoints/conversations/storage/dialects/sqlite.d.ts +11 -0
  28. package/dist/endpoints/conversations/storage/dialects/sqlite.js +176 -0
  29. package/dist/endpoints/conversations/storage/dialects/types.d.ts +42 -0
  30. package/dist/endpoints/conversations/storage/dialects/types.js +0 -0
  31. package/dist/endpoints/conversations/storage/dialects/utils.d.ts +25 -0
  32. package/dist/endpoints/conversations/storage/dialects/utils.js +80 -0
  33. package/dist/endpoints/conversations/storage/memory.d.ts +25 -0
  34. package/dist/endpoints/conversations/storage/memory.js +200 -0
  35. package/dist/endpoints/conversations/storage/sql.d.ts +33 -0
  36. package/dist/endpoints/conversations/storage/sql.js +276 -0
  37. package/dist/endpoints/conversations/storage/types.d.ts +39 -0
  38. package/dist/endpoints/conversations/storage/types.js +0 -0
  39. package/dist/endpoints/embeddings/converters.d.ts +10 -0
  40. package/dist/endpoints/embeddings/converters.js +31 -0
  41. package/dist/endpoints/embeddings/handler.d.ts +2 -0
  42. package/dist/endpoints/embeddings/handler.js +99 -0
  43. package/dist/endpoints/embeddings/index.d.ts +4 -0
  44. package/dist/endpoints/embeddings/index.js +4 -0
  45. package/dist/endpoints/embeddings/otel.d.ts +5 -0
  46. package/dist/endpoints/embeddings/otel.js +29 -0
  47. package/dist/endpoints/embeddings/schema.d.ts +44 -0
  48. package/dist/endpoints/embeddings/schema.js +29 -0
  49. package/dist/endpoints/models/converters.d.ts +6 -0
  50. package/dist/endpoints/models/converters.js +42 -0
  51. package/dist/endpoints/models/handler.d.ts +2 -0
  52. package/dist/endpoints/models/handler.js +29 -0
  53. package/dist/endpoints/models/index.d.ts +3 -0
  54. package/dist/endpoints/models/index.js +3 -0
  55. package/dist/endpoints/models/schema.d.ts +42 -0
  56. package/dist/endpoints/models/schema.js +31 -0
  57. package/dist/endpoints/responses/converters.d.ts +17 -0
  58. package/dist/endpoints/responses/converters.js +1037 -0
  59. package/dist/endpoints/responses/handler.d.ts +2 -0
  60. package/dist/endpoints/responses/handler.js +141 -0
  61. package/dist/endpoints/responses/index.d.ts +4 -0
  62. package/dist/endpoints/responses/index.js +4 -0
  63. package/dist/endpoints/responses/otel.d.ts +6 -0
  64. package/dist/endpoints/responses/otel.js +225 -0
  65. package/dist/endpoints/responses/schema.d.ts +2109 -0
  66. package/dist/endpoints/responses/schema.js +314 -0
  67. package/dist/endpoints/shared/converters.d.ts +56 -0
  68. package/dist/endpoints/shared/converters.js +180 -0
  69. package/dist/endpoints/shared/schema.d.ts +70 -0
  70. package/dist/endpoints/shared/schema.js +46 -0
  71. package/dist/errors/ai-sdk.d.ts +2 -0
  72. package/dist/errors/ai-sdk.js +52 -0
  73. package/dist/errors/gateway.d.ts +5 -0
  74. package/dist/errors/gateway.js +13 -0
  75. package/dist/errors/openai.d.ts +15 -0
  76. package/dist/errors/openai.js +40 -0
  77. package/dist/errors/utils.d.ts +24 -0
  78. package/dist/errors/utils.js +46 -0
  79. package/dist/gateway.d.ts +11 -0
  80. package/dist/gateway.js +44 -0
  81. package/dist/index.d.ts +11 -0
  82. package/dist/index.js +10 -0
  83. package/dist/lifecycle.d.ts +3 -0
  84. package/dist/lifecycle.js +114 -0
  85. package/dist/logger/default.d.ts +4 -0
  86. package/dist/logger/default.js +81 -0
  87. package/dist/logger/index.d.ts +11 -0
  88. package/dist/logger/index.js +25 -0
  89. package/dist/middleware/common.d.ts +12 -0
  90. package/dist/middleware/common.js +146 -0
  91. package/dist/middleware/debug.d.ts +3 -0
  92. package/dist/middleware/debug.js +27 -0
  93. package/dist/middleware/matcher.d.ts +28 -0
  94. package/dist/middleware/matcher.js +118 -0
  95. package/dist/middleware/utils.d.ts +2 -0
  96. package/dist/middleware/utils.js +24 -0
  97. package/dist/models/amazon/index.d.ts +2 -0
  98. package/dist/models/amazon/index.js +2 -0
  99. package/dist/models/amazon/middleware.d.ts +3 -0
  100. package/dist/models/amazon/middleware.js +69 -0
  101. package/dist/models/amazon/presets.d.ts +345 -0
  102. package/dist/models/amazon/presets.js +80 -0
  103. package/dist/models/anthropic/index.d.ts +2 -0
  104. package/dist/models/anthropic/index.js +2 -0
  105. package/dist/models/anthropic/middleware.d.ts +5 -0
  106. package/dist/models/anthropic/middleware.js +128 -0
  107. package/dist/models/anthropic/presets.d.ts +711 -0
  108. package/dist/models/anthropic/presets.js +140 -0
  109. package/dist/models/catalog.d.ts +4 -0
  110. package/dist/models/catalog.js +8 -0
  111. package/dist/models/cohere/index.d.ts +2 -0
  112. package/dist/models/cohere/index.js +2 -0
  113. package/dist/models/cohere/middleware.d.ts +3 -0
  114. package/dist/models/cohere/middleware.js +62 -0
  115. package/dist/models/cohere/presets.d.ts +411 -0
  116. package/dist/models/cohere/presets.js +134 -0
  117. package/dist/models/google/index.d.ts +2 -0
  118. package/dist/models/google/index.js +2 -0
  119. package/dist/models/google/middleware.d.ts +8 -0
  120. package/dist/models/google/middleware.js +118 -0
  121. package/dist/models/google/presets.d.ts +815 -0
  122. package/dist/models/google/presets.js +184 -0
  123. package/dist/models/meta/index.d.ts +1 -0
  124. package/dist/models/meta/index.js +1 -0
  125. package/dist/models/meta/presets.d.ts +483 -0
  126. package/dist/models/meta/presets.js +105 -0
  127. package/dist/models/openai/index.d.ts +2 -0
  128. package/dist/models/openai/index.js +2 -0
  129. package/dist/models/openai/middleware.d.ts +4 -0
  130. package/dist/models/openai/middleware.js +89 -0
  131. package/dist/models/openai/presets.d.ts +1319 -0
  132. package/dist/models/openai/presets.js +277 -0
  133. package/dist/models/types.d.ts +20 -0
  134. package/dist/models/types.js +100 -0
  135. package/dist/models/voyage/index.d.ts +2 -0
  136. package/dist/models/voyage/index.js +2 -0
  137. package/dist/models/voyage/middleware.d.ts +2 -0
  138. package/dist/models/voyage/middleware.js +19 -0
  139. package/dist/models/voyage/presets.d.ts +436 -0
  140. package/dist/models/voyage/presets.js +85 -0
  141. package/dist/providers/anthropic/canonical.d.ts +3 -0
  142. package/dist/providers/anthropic/canonical.js +9 -0
  143. package/dist/providers/anthropic/index.d.ts +1 -0
  144. package/dist/providers/anthropic/index.js +1 -0
  145. package/dist/providers/bedrock/canonical.d.ts +17 -0
  146. package/dist/providers/bedrock/canonical.js +64 -0
  147. package/dist/providers/bedrock/index.d.ts +2 -0
  148. package/dist/providers/bedrock/index.js +2 -0
  149. package/dist/providers/bedrock/middleware.d.ts +5 -0
  150. package/dist/providers/bedrock/middleware.js +133 -0
  151. package/dist/providers/cohere/canonical.d.ts +3 -0
  152. package/dist/providers/cohere/canonical.js +17 -0
  153. package/dist/providers/cohere/index.d.ts +1 -0
  154. package/dist/providers/cohere/index.js +1 -0
  155. package/dist/providers/groq/canonical.d.ts +3 -0
  156. package/dist/providers/groq/canonical.js +12 -0
  157. package/dist/providers/groq/index.d.ts +2 -0
  158. package/dist/providers/groq/index.js +2 -0
  159. package/dist/providers/groq/middleware.d.ts +2 -0
  160. package/dist/providers/groq/middleware.js +30 -0
  161. package/dist/providers/openai/canonical.d.ts +3 -0
  162. package/dist/providers/openai/canonical.js +8 -0
  163. package/dist/providers/openai/index.d.ts +1 -0
  164. package/dist/providers/openai/index.js +1 -0
  165. package/dist/providers/registry.d.ts +24 -0
  166. package/dist/providers/registry.js +103 -0
  167. package/dist/providers/types.d.ts +7 -0
  168. package/dist/providers/types.js +11 -0
  169. package/dist/providers/vertex/canonical.d.ts +3 -0
  170. package/dist/providers/vertex/canonical.js +8 -0
  171. package/dist/providers/vertex/index.d.ts +2 -0
  172. package/dist/providers/vertex/index.js +2 -0
  173. package/dist/providers/vertex/middleware.d.ts +2 -0
  174. package/dist/providers/vertex/middleware.js +47 -0
  175. package/dist/providers/voyage/canonical.d.ts +3 -0
  176. package/dist/providers/voyage/canonical.js +7 -0
  177. package/dist/providers/voyage/index.d.ts +1 -0
  178. package/dist/providers/voyage/index.js +1 -0
  179. package/dist/telemetry/ai-sdk.d.ts +2 -0
  180. package/dist/telemetry/ai-sdk.js +31 -0
  181. package/dist/telemetry/baggage.d.ts +1 -0
  182. package/dist/telemetry/baggage.js +24 -0
  183. package/dist/telemetry/fetch.d.ts +2 -0
  184. package/dist/telemetry/fetch.js +49 -0
  185. package/dist/telemetry/gen-ai.d.ts +7 -0
  186. package/dist/telemetry/gen-ai.js +112 -0
  187. package/dist/telemetry/http.d.ts +3 -0
  188. package/dist/telemetry/http.js +54 -0
  189. package/dist/telemetry/index.d.ts +1 -0
  190. package/dist/telemetry/index.js +1 -0
  191. package/dist/telemetry/memory.d.ts +2 -0
  192. package/dist/telemetry/memory.js +43 -0
  193. package/dist/telemetry/span.d.ts +13 -0
  194. package/dist/telemetry/span.js +60 -0
  195. package/dist/types.d.ts +231 -0
  196. package/dist/types.js +2 -0
  197. package/dist/utils/body.d.ts +19 -0
  198. package/dist/utils/body.js +99 -0
  199. package/dist/utils/env.d.ts +2 -0
  200. package/dist/utils/env.js +7 -0
  201. package/dist/utils/headers.d.ts +4 -0
  202. package/dist/utils/headers.js +22 -0
  203. package/dist/utils/preset.d.ts +10 -0
  204. package/dist/utils/preset.js +41 -0
  205. package/dist/utils/request.d.ts +2 -0
  206. package/dist/utils/request.js +43 -0
  207. package/dist/utils/response.d.ts +6 -0
  208. package/dist/utils/response.js +55 -0
  209. package/dist/utils/stream.d.ts +9 -0
  210. package/dist/utils/stream.js +100 -0
  211. package/dist/utils/url.d.ts +4 -0
  212. package/dist/utils/url.js +21 -0
  213. package/package.json +1 -1
@@ -0,0 +1,2109 @@
1
+ import * as z from "zod";
2
+ import type { SseErrorFrame, SseFrame } from "../../utils/stream";
3
+ export declare const ResponsesMetadataSchema: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
4
+ export type ResponsesMetadata = z.infer<typeof ResponsesMetadataSchema>;
5
+ export declare const ResponsesItemStatusSchema: z.ZodEnum<{
6
+ in_progress: "in_progress";
7
+ completed: "completed";
8
+ incomplete: "incomplete";
9
+ }>;
10
+ export type ResponsesItemStatus = z.infer<typeof ResponsesItemStatusSchema>;
11
+ export declare const ResponsesImageDetailSchema: z.ZodEnum<{
12
+ low: "low";
13
+ high: "high";
14
+ auto: "auto";
15
+ }>;
16
+ export type ResponsesImageDetail = z.infer<typeof ResponsesImageDetailSchema>;
17
+ /**
18
+ * --- Messaging Content & Items ---
19
+ */
20
+ export declare const ResponsesInputTextSchema: z.ZodObject<{
21
+ type: z.ZodLiteral<"input_text">;
22
+ text: z.ZodString;
23
+ }, z.core.$strip>;
24
+ export type ResponsesInputText = z.infer<typeof ResponsesInputTextSchema>;
25
+ export declare const ResponsesInputImageSchema: z.ZodUnion<readonly [z.ZodObject<{
26
+ type: z.ZodLiteral<"input_image">;
27
+ image_url: z.ZodString;
28
+ file_id: z.ZodOptional<z.ZodString>;
29
+ detail: z.ZodOptional<z.ZodEnum<{
30
+ low: "low";
31
+ high: "high";
32
+ auto: "auto";
33
+ }>>;
34
+ }, z.core.$strip>, z.ZodObject<{
35
+ type: z.ZodLiteral<"input_image">;
36
+ file_id: z.ZodString;
37
+ image_url: z.ZodOptional<z.ZodString>;
38
+ detail: z.ZodOptional<z.ZodEnum<{
39
+ low: "low";
40
+ high: "high";
41
+ auto: "auto";
42
+ }>>;
43
+ }, z.core.$strip>]>;
44
+ export type ResponsesInputImage = z.infer<typeof ResponsesInputImageSchema>;
45
+ export declare const ResponsesInputFileSchema: z.ZodUnion<readonly [z.ZodObject<{
46
+ type: z.ZodLiteral<"input_file">;
47
+ file_data: z.ZodString;
48
+ file_id: z.ZodOptional<z.ZodString>;
49
+ file_url: z.ZodOptional<z.ZodString>;
50
+ filename: z.ZodOptional<z.ZodString>;
51
+ }, z.core.$strip>, z.ZodObject<{
52
+ type: z.ZodLiteral<"input_file">;
53
+ file_id: z.ZodString;
54
+ file_data: z.ZodOptional<z.ZodString>;
55
+ file_url: z.ZodOptional<z.ZodString>;
56
+ filename: z.ZodOptional<z.ZodString>;
57
+ }, z.core.$strip>, z.ZodObject<{
58
+ type: z.ZodLiteral<"input_file">;
59
+ file_url: z.ZodString;
60
+ file_data: z.ZodOptional<z.ZodString>;
61
+ file_id: z.ZodOptional<z.ZodString>;
62
+ filename: z.ZodOptional<z.ZodString>;
63
+ }, z.core.$strip>]>;
64
+ export type ResponsesInputFile = z.infer<typeof ResponsesInputFileSchema>;
65
+ export declare const ResponsesInputContentSchema: z.ZodUnion<readonly [z.ZodObject<{
66
+ type: z.ZodLiteral<"input_text">;
67
+ text: z.ZodString;
68
+ }, z.core.$strip>, z.ZodObject<{
69
+ type: z.ZodLiteral<"input_image">;
70
+ image_url: z.ZodString;
71
+ file_id: z.ZodOptional<z.ZodString>;
72
+ detail: z.ZodOptional<z.ZodEnum<{
73
+ low: "low";
74
+ high: "high";
75
+ auto: "auto";
76
+ }>>;
77
+ }, z.core.$strip>, z.ZodObject<{
78
+ type: z.ZodLiteral<"input_image">;
79
+ file_id: z.ZodString;
80
+ image_url: z.ZodOptional<z.ZodString>;
81
+ detail: z.ZodOptional<z.ZodEnum<{
82
+ low: "low";
83
+ high: "high";
84
+ auto: "auto";
85
+ }>>;
86
+ }, z.core.$strip>, z.ZodObject<{
87
+ type: z.ZodLiteral<"input_file">;
88
+ file_data: z.ZodString;
89
+ file_id: z.ZodOptional<z.ZodString>;
90
+ file_url: z.ZodOptional<z.ZodString>;
91
+ filename: z.ZodOptional<z.ZodString>;
92
+ }, z.core.$strip>, z.ZodObject<{
93
+ type: z.ZodLiteral<"input_file">;
94
+ file_id: z.ZodString;
95
+ file_data: z.ZodOptional<z.ZodString>;
96
+ file_url: z.ZodOptional<z.ZodString>;
97
+ filename: z.ZodOptional<z.ZodString>;
98
+ }, z.core.$strip>, z.ZodObject<{
99
+ type: z.ZodLiteral<"input_file">;
100
+ file_url: z.ZodString;
101
+ file_data: z.ZodOptional<z.ZodString>;
102
+ file_id: z.ZodOptional<z.ZodString>;
103
+ filename: z.ZodOptional<z.ZodString>;
104
+ }, z.core.$strip>, z.ZodObject<{
105
+ type: z.ZodLiteral<"input_audio">;
106
+ input_audio: z.ZodObject<{
107
+ data: z.ZodString;
108
+ format: z.ZodEnum<{
109
+ "x-aac": "x-aac";
110
+ flac: "flac";
111
+ mp3: "mp3";
112
+ m4a: "m4a";
113
+ mpeg: "mpeg";
114
+ mpga: "mpga";
115
+ mp4: "mp4";
116
+ ogg: "ogg";
117
+ pcm: "pcm";
118
+ wav: "wav";
119
+ webm: "webm";
120
+ }>;
121
+ }, z.core.$strip>;
122
+ cache_control: z.ZodOptional<z.ZodObject<{
123
+ type: z.ZodLiteral<"ephemeral">;
124
+ ttl: z.ZodOptional<z.ZodString>;
125
+ }, z.core.$strip>>;
126
+ }, z.core.$strip>]>;
127
+ export type ResponsesInputContent = z.infer<typeof ResponsesInputContentSchema>;
128
+ export declare const ResponsesOutputTextSchema: z.ZodObject<{
129
+ type: z.ZodLiteral<"output_text">;
130
+ text: z.ZodString;
131
+ annotations: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
132
+ }, z.core.$strip>;
133
+ export type ResponsesOutputText = z.infer<typeof ResponsesOutputTextSchema>;
134
+ export declare const ResponsesMessageItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
135
+ type: z.ZodLiteral<"message">;
136
+ id: z.ZodOptional<z.ZodString>;
137
+ status: z.ZodOptional<z.ZodEnum<{
138
+ in_progress: "in_progress";
139
+ completed: "completed";
140
+ incomplete: "incomplete";
141
+ }>>;
142
+ extra_content: z.ZodOptional<z.ZodType<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown, z.core.$ZodTypeInternals<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown>>>;
143
+ cache_control: z.ZodOptional<z.ZodObject<{
144
+ type: z.ZodLiteral<"ephemeral">;
145
+ ttl: z.ZodOptional<z.ZodString>;
146
+ }, z.core.$strip>>;
147
+ role: z.ZodLiteral<"user">;
148
+ content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
149
+ type: z.ZodLiteral<"input_text">;
150
+ text: z.ZodString;
151
+ }, z.core.$strip>, z.ZodObject<{
152
+ type: z.ZodLiteral<"input_image">;
153
+ image_url: z.ZodString;
154
+ file_id: z.ZodOptional<z.ZodString>;
155
+ detail: z.ZodOptional<z.ZodEnum<{
156
+ low: "low";
157
+ high: "high";
158
+ auto: "auto";
159
+ }>>;
160
+ }, z.core.$strip>, z.ZodObject<{
161
+ type: z.ZodLiteral<"input_image">;
162
+ file_id: z.ZodString;
163
+ image_url: z.ZodOptional<z.ZodString>;
164
+ detail: z.ZodOptional<z.ZodEnum<{
165
+ low: "low";
166
+ high: "high";
167
+ auto: "auto";
168
+ }>>;
169
+ }, z.core.$strip>, z.ZodObject<{
170
+ type: z.ZodLiteral<"input_file">;
171
+ file_data: z.ZodString;
172
+ file_id: z.ZodOptional<z.ZodString>;
173
+ file_url: z.ZodOptional<z.ZodString>;
174
+ filename: z.ZodOptional<z.ZodString>;
175
+ }, z.core.$strip>, z.ZodObject<{
176
+ type: z.ZodLiteral<"input_file">;
177
+ file_id: z.ZodString;
178
+ file_data: z.ZodOptional<z.ZodString>;
179
+ file_url: z.ZodOptional<z.ZodString>;
180
+ filename: z.ZodOptional<z.ZodString>;
181
+ }, z.core.$strip>, z.ZodObject<{
182
+ type: z.ZodLiteral<"input_file">;
183
+ file_url: z.ZodString;
184
+ file_data: z.ZodOptional<z.ZodString>;
185
+ file_id: z.ZodOptional<z.ZodString>;
186
+ filename: z.ZodOptional<z.ZodString>;
187
+ }, z.core.$strip>, z.ZodObject<{
188
+ type: z.ZodLiteral<"input_audio">;
189
+ input_audio: z.ZodObject<{
190
+ data: z.ZodString;
191
+ format: z.ZodEnum<{
192
+ "x-aac": "x-aac";
193
+ flac: "flac";
194
+ mp3: "mp3";
195
+ m4a: "m4a";
196
+ mpeg: "mpeg";
197
+ mpga: "mpga";
198
+ mp4: "mp4";
199
+ ogg: "ogg";
200
+ pcm: "pcm";
201
+ wav: "wav";
202
+ webm: "webm";
203
+ }>;
204
+ }, z.core.$strip>;
205
+ cache_control: z.ZodOptional<z.ZodObject<{
206
+ type: z.ZodLiteral<"ephemeral">;
207
+ ttl: z.ZodOptional<z.ZodString>;
208
+ }, z.core.$strip>>;
209
+ }, z.core.$strip>]>>]>;
210
+ }, z.core.$strip>, z.ZodObject<{
211
+ type: z.ZodLiteral<"message">;
212
+ id: z.ZodOptional<z.ZodString>;
213
+ status: z.ZodOptional<z.ZodEnum<{
214
+ in_progress: "in_progress";
215
+ completed: "completed";
216
+ incomplete: "incomplete";
217
+ }>>;
218
+ extra_content: z.ZodOptional<z.ZodType<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown, z.core.$ZodTypeInternals<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown>>>;
219
+ cache_control: z.ZodOptional<z.ZodObject<{
220
+ type: z.ZodLiteral<"ephemeral">;
221
+ ttl: z.ZodOptional<z.ZodString>;
222
+ }, z.core.$strip>>;
223
+ role: z.ZodLiteral<"assistant">;
224
+ content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodObject<{
225
+ type: z.ZodLiteral<"output_text">;
226
+ text: z.ZodString;
227
+ annotations: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
228
+ }, z.core.$strip>>]>;
229
+ }, z.core.$strip>, z.ZodObject<{
230
+ type: z.ZodLiteral<"message">;
231
+ id: z.ZodOptional<z.ZodString>;
232
+ status: z.ZodOptional<z.ZodEnum<{
233
+ in_progress: "in_progress";
234
+ completed: "completed";
235
+ incomplete: "incomplete";
236
+ }>>;
237
+ extra_content: z.ZodOptional<z.ZodType<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown, z.core.$ZodTypeInternals<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown>>>;
238
+ cache_control: z.ZodOptional<z.ZodObject<{
239
+ type: z.ZodLiteral<"ephemeral">;
240
+ ttl: z.ZodOptional<z.ZodString>;
241
+ }, z.core.$strip>>;
242
+ role: z.ZodLiteral<"system">;
243
+ content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
244
+ type: z.ZodLiteral<"input_text">;
245
+ text: z.ZodString;
246
+ }, z.core.$strip>, z.ZodObject<{
247
+ type: z.ZodLiteral<"input_image">;
248
+ image_url: z.ZodString;
249
+ file_id: z.ZodOptional<z.ZodString>;
250
+ detail: z.ZodOptional<z.ZodEnum<{
251
+ low: "low";
252
+ high: "high";
253
+ auto: "auto";
254
+ }>>;
255
+ }, z.core.$strip>, z.ZodObject<{
256
+ type: z.ZodLiteral<"input_image">;
257
+ file_id: z.ZodString;
258
+ image_url: z.ZodOptional<z.ZodString>;
259
+ detail: z.ZodOptional<z.ZodEnum<{
260
+ low: "low";
261
+ high: "high";
262
+ auto: "auto";
263
+ }>>;
264
+ }, z.core.$strip>, z.ZodObject<{
265
+ type: z.ZodLiteral<"input_file">;
266
+ file_data: z.ZodString;
267
+ file_id: z.ZodOptional<z.ZodString>;
268
+ file_url: z.ZodOptional<z.ZodString>;
269
+ filename: z.ZodOptional<z.ZodString>;
270
+ }, z.core.$strip>, z.ZodObject<{
271
+ type: z.ZodLiteral<"input_file">;
272
+ file_id: z.ZodString;
273
+ file_data: z.ZodOptional<z.ZodString>;
274
+ file_url: z.ZodOptional<z.ZodString>;
275
+ filename: z.ZodOptional<z.ZodString>;
276
+ }, z.core.$strip>, z.ZodObject<{
277
+ type: z.ZodLiteral<"input_file">;
278
+ file_url: z.ZodString;
279
+ file_data: z.ZodOptional<z.ZodString>;
280
+ file_id: z.ZodOptional<z.ZodString>;
281
+ filename: z.ZodOptional<z.ZodString>;
282
+ }, z.core.$strip>, z.ZodObject<{
283
+ type: z.ZodLiteral<"input_audio">;
284
+ input_audio: z.ZodObject<{
285
+ data: z.ZodString;
286
+ format: z.ZodEnum<{
287
+ "x-aac": "x-aac";
288
+ flac: "flac";
289
+ mp3: "mp3";
290
+ m4a: "m4a";
291
+ mpeg: "mpeg";
292
+ mpga: "mpga";
293
+ mp4: "mp4";
294
+ ogg: "ogg";
295
+ pcm: "pcm";
296
+ wav: "wav";
297
+ webm: "webm";
298
+ }>;
299
+ }, z.core.$strip>;
300
+ cache_control: z.ZodOptional<z.ZodObject<{
301
+ type: z.ZodLiteral<"ephemeral">;
302
+ ttl: z.ZodOptional<z.ZodString>;
303
+ }, z.core.$strip>>;
304
+ }, z.core.$strip>]>>]>;
305
+ }, z.core.$strip>, z.ZodObject<{
306
+ type: z.ZodLiteral<"message">;
307
+ id: z.ZodOptional<z.ZodString>;
308
+ status: z.ZodOptional<z.ZodEnum<{
309
+ in_progress: "in_progress";
310
+ completed: "completed";
311
+ incomplete: "incomplete";
312
+ }>>;
313
+ extra_content: z.ZodOptional<z.ZodType<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown, z.core.$ZodTypeInternals<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown>>>;
314
+ cache_control: z.ZodOptional<z.ZodObject<{
315
+ type: z.ZodLiteral<"ephemeral">;
316
+ ttl: z.ZodOptional<z.ZodString>;
317
+ }, z.core.$strip>>;
318
+ role: z.ZodLiteral<"developer">;
319
+ content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
320
+ type: z.ZodLiteral<"input_text">;
321
+ text: z.ZodString;
322
+ }, z.core.$strip>, z.ZodObject<{
323
+ type: z.ZodLiteral<"input_image">;
324
+ image_url: z.ZodString;
325
+ file_id: z.ZodOptional<z.ZodString>;
326
+ detail: z.ZodOptional<z.ZodEnum<{
327
+ low: "low";
328
+ high: "high";
329
+ auto: "auto";
330
+ }>>;
331
+ }, z.core.$strip>, z.ZodObject<{
332
+ type: z.ZodLiteral<"input_image">;
333
+ file_id: z.ZodString;
334
+ image_url: z.ZodOptional<z.ZodString>;
335
+ detail: z.ZodOptional<z.ZodEnum<{
336
+ low: "low";
337
+ high: "high";
338
+ auto: "auto";
339
+ }>>;
340
+ }, z.core.$strip>, z.ZodObject<{
341
+ type: z.ZodLiteral<"input_file">;
342
+ file_data: z.ZodString;
343
+ file_id: z.ZodOptional<z.ZodString>;
344
+ file_url: z.ZodOptional<z.ZodString>;
345
+ filename: z.ZodOptional<z.ZodString>;
346
+ }, z.core.$strip>, z.ZodObject<{
347
+ type: z.ZodLiteral<"input_file">;
348
+ file_id: z.ZodString;
349
+ file_data: z.ZodOptional<z.ZodString>;
350
+ file_url: z.ZodOptional<z.ZodString>;
351
+ filename: z.ZodOptional<z.ZodString>;
352
+ }, z.core.$strip>, z.ZodObject<{
353
+ type: z.ZodLiteral<"input_file">;
354
+ file_url: z.ZodString;
355
+ file_data: z.ZodOptional<z.ZodString>;
356
+ file_id: z.ZodOptional<z.ZodString>;
357
+ filename: z.ZodOptional<z.ZodString>;
358
+ }, z.core.$strip>, z.ZodObject<{
359
+ type: z.ZodLiteral<"input_audio">;
360
+ input_audio: z.ZodObject<{
361
+ data: z.ZodString;
362
+ format: z.ZodEnum<{
363
+ "x-aac": "x-aac";
364
+ flac: "flac";
365
+ mp3: "mp3";
366
+ m4a: "m4a";
367
+ mpeg: "mpeg";
368
+ mpga: "mpga";
369
+ mp4: "mp4";
370
+ ogg: "ogg";
371
+ pcm: "pcm";
372
+ wav: "wav";
373
+ webm: "webm";
374
+ }>;
375
+ }, z.core.$strip>;
376
+ cache_control: z.ZodOptional<z.ZodObject<{
377
+ type: z.ZodLiteral<"ephemeral">;
378
+ ttl: z.ZodOptional<z.ZodString>;
379
+ }, z.core.$strip>>;
380
+ }, z.core.$strip>]>>]>;
381
+ }, z.core.$strip>], "role">;
382
+ export type ResponsesMessageItem = z.infer<typeof ResponsesMessageItemSchema>;
383
+ /**
384
+ * --- Function ---
385
+ */
386
+ export declare const ResponsesFunctionCallSchema: z.ZodObject<{
387
+ type: z.ZodLiteral<"function_call">;
388
+ id: z.ZodOptional<z.ZodString>;
389
+ call_id: z.ZodString;
390
+ name: z.ZodString;
391
+ arguments: z.ZodString;
392
+ status: z.ZodOptional<z.ZodEnum<{
393
+ in_progress: "in_progress";
394
+ completed: "completed";
395
+ incomplete: "incomplete";
396
+ }>>;
397
+ extra_content: z.ZodOptional<z.ZodType<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown, z.core.$ZodTypeInternals<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown>>>;
398
+ cache_control: z.ZodOptional<z.ZodObject<{
399
+ type: z.ZodLiteral<"ephemeral">;
400
+ ttl: z.ZodOptional<z.ZodString>;
401
+ }, z.core.$strip>>;
402
+ }, z.core.$strip>;
403
+ export type ResponsesFunctionCall = z.infer<typeof ResponsesFunctionCallSchema>;
404
+ export declare const ResponsesFunctionCallOutputSchema: z.ZodObject<{
405
+ type: z.ZodLiteral<"function_call_output">;
406
+ id: z.ZodOptional<z.ZodString>;
407
+ call_id: z.ZodString;
408
+ output: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
409
+ type: z.ZodLiteral<"input_text">;
410
+ text: z.ZodString;
411
+ }, z.core.$strip>, z.ZodObject<{
412
+ type: z.ZodLiteral<"input_image">;
413
+ image_url: z.ZodString;
414
+ file_id: z.ZodOptional<z.ZodString>;
415
+ detail: z.ZodOptional<z.ZodEnum<{
416
+ low: "low";
417
+ high: "high";
418
+ auto: "auto";
419
+ }>>;
420
+ }, z.core.$strip>, z.ZodObject<{
421
+ type: z.ZodLiteral<"input_image">;
422
+ file_id: z.ZodString;
423
+ image_url: z.ZodOptional<z.ZodString>;
424
+ detail: z.ZodOptional<z.ZodEnum<{
425
+ low: "low";
426
+ high: "high";
427
+ auto: "auto";
428
+ }>>;
429
+ }, z.core.$strip>, z.ZodObject<{
430
+ type: z.ZodLiteral<"input_file">;
431
+ file_data: z.ZodString;
432
+ file_id: z.ZodOptional<z.ZodString>;
433
+ file_url: z.ZodOptional<z.ZodString>;
434
+ filename: z.ZodOptional<z.ZodString>;
435
+ }, z.core.$strip>, z.ZodObject<{
436
+ type: z.ZodLiteral<"input_file">;
437
+ file_id: z.ZodString;
438
+ file_data: z.ZodOptional<z.ZodString>;
439
+ file_url: z.ZodOptional<z.ZodString>;
440
+ filename: z.ZodOptional<z.ZodString>;
441
+ }, z.core.$strip>, z.ZodObject<{
442
+ type: z.ZodLiteral<"input_file">;
443
+ file_url: z.ZodString;
444
+ file_data: z.ZodOptional<z.ZodString>;
445
+ file_id: z.ZodOptional<z.ZodString>;
446
+ filename: z.ZodOptional<z.ZodString>;
447
+ }, z.core.$strip>, z.ZodObject<{
448
+ type: z.ZodLiteral<"input_audio">;
449
+ input_audio: z.ZodObject<{
450
+ data: z.ZodString;
451
+ format: z.ZodEnum<{
452
+ "x-aac": "x-aac";
453
+ flac: "flac";
454
+ mp3: "mp3";
455
+ m4a: "m4a";
456
+ mpeg: "mpeg";
457
+ mpga: "mpga";
458
+ mp4: "mp4";
459
+ ogg: "ogg";
460
+ pcm: "pcm";
461
+ wav: "wav";
462
+ webm: "webm";
463
+ }>;
464
+ }, z.core.$strip>;
465
+ cache_control: z.ZodOptional<z.ZodObject<{
466
+ type: z.ZodLiteral<"ephemeral">;
467
+ ttl: z.ZodOptional<z.ZodString>;
468
+ }, z.core.$strip>>;
469
+ }, z.core.$strip>]>>]>;
470
+ status: z.ZodOptional<z.ZodEnum<{
471
+ in_progress: "in_progress";
472
+ completed: "completed";
473
+ incomplete: "incomplete";
474
+ }>>;
475
+ extra_content: z.ZodOptional<z.ZodType<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown, z.core.$ZodTypeInternals<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown>>>;
476
+ cache_control: z.ZodOptional<z.ZodObject<{
477
+ type: z.ZodLiteral<"ephemeral">;
478
+ ttl: z.ZodOptional<z.ZodString>;
479
+ }, z.core.$strip>>;
480
+ }, z.core.$strip>;
481
+ export type ResponsesFunctionCallOutput = z.infer<typeof ResponsesFunctionCallOutputSchema>;
482
+ /**
483
+ * --- Reasoning ---
484
+ */
485
+ export declare const ResponsesSummaryTextSchema: z.ZodObject<{
486
+ type: z.ZodLiteral<"summary_text">;
487
+ text: z.ZodString;
488
+ }, z.core.$strip>;
489
+ export type ResponsesSummaryText = z.infer<typeof ResponsesSummaryTextSchema>;
490
+ export declare const ResponsesReasoningTextSchema: z.ZodObject<{
491
+ type: z.ZodLiteral<"reasoning_text">;
492
+ text: z.ZodString;
493
+ }, z.core.$strip>;
494
+ export type ResponsesReasoningText = z.infer<typeof ResponsesReasoningTextSchema>;
495
+ export declare const ResponsesReasoningItemSchema: z.ZodObject<{
496
+ type: z.ZodLiteral<"reasoning">;
497
+ id: z.ZodOptional<z.ZodString>;
498
+ summary: z.ZodArray<z.ZodObject<{
499
+ type: z.ZodLiteral<"summary_text">;
500
+ text: z.ZodString;
501
+ }, z.core.$strip>>;
502
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{
503
+ type: z.ZodLiteral<"reasoning_text">;
504
+ text: z.ZodString;
505
+ }, z.core.$strip>>>;
506
+ encrypted_content: z.ZodOptional<z.ZodString>;
507
+ status: z.ZodOptional<z.ZodEnum<{
508
+ in_progress: "in_progress";
509
+ completed: "completed";
510
+ incomplete: "incomplete";
511
+ }>>;
512
+ extra_content: z.ZodOptional<z.ZodType<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown, z.core.$ZodTypeInternals<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown>>>;
513
+ }, z.core.$strip>;
514
+ export type ResponsesReasoningItem = z.infer<typeof ResponsesReasoningItemSchema>;
515
+ /**
516
+ * --- Input Items ---
517
+ */
518
+ export declare const ResponsesInputItemSchema: z.ZodDiscriminatedUnion<[z.ZodDiscriminatedUnion<[z.ZodObject<{
519
+ type: z.ZodLiteral<"message">;
520
+ id: z.ZodOptional<z.ZodString>;
521
+ status: z.ZodOptional<z.ZodEnum<{
522
+ in_progress: "in_progress";
523
+ completed: "completed";
524
+ incomplete: "incomplete";
525
+ }>>;
526
+ extra_content: z.ZodOptional<z.ZodType<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown, z.core.$ZodTypeInternals<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown>>>;
527
+ cache_control: z.ZodOptional<z.ZodObject<{
528
+ type: z.ZodLiteral<"ephemeral">;
529
+ ttl: z.ZodOptional<z.ZodString>;
530
+ }, z.core.$strip>>;
531
+ role: z.ZodLiteral<"user">;
532
+ content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
533
+ type: z.ZodLiteral<"input_text">;
534
+ text: z.ZodString;
535
+ }, z.core.$strip>, z.ZodObject<{
536
+ type: z.ZodLiteral<"input_image">;
537
+ image_url: z.ZodString;
538
+ file_id: z.ZodOptional<z.ZodString>;
539
+ detail: z.ZodOptional<z.ZodEnum<{
540
+ low: "low";
541
+ high: "high";
542
+ auto: "auto";
543
+ }>>;
544
+ }, z.core.$strip>, z.ZodObject<{
545
+ type: z.ZodLiteral<"input_image">;
546
+ file_id: z.ZodString;
547
+ image_url: z.ZodOptional<z.ZodString>;
548
+ detail: z.ZodOptional<z.ZodEnum<{
549
+ low: "low";
550
+ high: "high";
551
+ auto: "auto";
552
+ }>>;
553
+ }, z.core.$strip>, z.ZodObject<{
554
+ type: z.ZodLiteral<"input_file">;
555
+ file_data: z.ZodString;
556
+ file_id: z.ZodOptional<z.ZodString>;
557
+ file_url: z.ZodOptional<z.ZodString>;
558
+ filename: z.ZodOptional<z.ZodString>;
559
+ }, z.core.$strip>, z.ZodObject<{
560
+ type: z.ZodLiteral<"input_file">;
561
+ file_id: z.ZodString;
562
+ file_data: z.ZodOptional<z.ZodString>;
563
+ file_url: z.ZodOptional<z.ZodString>;
564
+ filename: z.ZodOptional<z.ZodString>;
565
+ }, z.core.$strip>, z.ZodObject<{
566
+ type: z.ZodLiteral<"input_file">;
567
+ file_url: z.ZodString;
568
+ file_data: z.ZodOptional<z.ZodString>;
569
+ file_id: z.ZodOptional<z.ZodString>;
570
+ filename: z.ZodOptional<z.ZodString>;
571
+ }, z.core.$strip>, z.ZodObject<{
572
+ type: z.ZodLiteral<"input_audio">;
573
+ input_audio: z.ZodObject<{
574
+ data: z.ZodString;
575
+ format: z.ZodEnum<{
576
+ "x-aac": "x-aac";
577
+ flac: "flac";
578
+ mp3: "mp3";
579
+ m4a: "m4a";
580
+ mpeg: "mpeg";
581
+ mpga: "mpga";
582
+ mp4: "mp4";
583
+ ogg: "ogg";
584
+ pcm: "pcm";
585
+ wav: "wav";
586
+ webm: "webm";
587
+ }>;
588
+ }, z.core.$strip>;
589
+ cache_control: z.ZodOptional<z.ZodObject<{
590
+ type: z.ZodLiteral<"ephemeral">;
591
+ ttl: z.ZodOptional<z.ZodString>;
592
+ }, z.core.$strip>>;
593
+ }, z.core.$strip>]>>]>;
594
+ }, z.core.$strip>, z.ZodObject<{
595
+ type: z.ZodLiteral<"message">;
596
+ id: z.ZodOptional<z.ZodString>;
597
+ status: z.ZodOptional<z.ZodEnum<{
598
+ in_progress: "in_progress";
599
+ completed: "completed";
600
+ incomplete: "incomplete";
601
+ }>>;
602
+ extra_content: z.ZodOptional<z.ZodType<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown, z.core.$ZodTypeInternals<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown>>>;
603
+ cache_control: z.ZodOptional<z.ZodObject<{
604
+ type: z.ZodLiteral<"ephemeral">;
605
+ ttl: z.ZodOptional<z.ZodString>;
606
+ }, z.core.$strip>>;
607
+ role: z.ZodLiteral<"assistant">;
608
+ content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodObject<{
609
+ type: z.ZodLiteral<"output_text">;
610
+ text: z.ZodString;
611
+ annotations: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
612
+ }, z.core.$strip>>]>;
613
+ }, z.core.$strip>, z.ZodObject<{
614
+ type: z.ZodLiteral<"message">;
615
+ id: z.ZodOptional<z.ZodString>;
616
+ status: z.ZodOptional<z.ZodEnum<{
617
+ in_progress: "in_progress";
618
+ completed: "completed";
619
+ incomplete: "incomplete";
620
+ }>>;
621
+ extra_content: z.ZodOptional<z.ZodType<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown, z.core.$ZodTypeInternals<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown>>>;
622
+ cache_control: z.ZodOptional<z.ZodObject<{
623
+ type: z.ZodLiteral<"ephemeral">;
624
+ ttl: z.ZodOptional<z.ZodString>;
625
+ }, z.core.$strip>>;
626
+ role: z.ZodLiteral<"system">;
627
+ content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
628
+ type: z.ZodLiteral<"input_text">;
629
+ text: z.ZodString;
630
+ }, z.core.$strip>, z.ZodObject<{
631
+ type: z.ZodLiteral<"input_image">;
632
+ image_url: z.ZodString;
633
+ file_id: z.ZodOptional<z.ZodString>;
634
+ detail: z.ZodOptional<z.ZodEnum<{
635
+ low: "low";
636
+ high: "high";
637
+ auto: "auto";
638
+ }>>;
639
+ }, z.core.$strip>, z.ZodObject<{
640
+ type: z.ZodLiteral<"input_image">;
641
+ file_id: z.ZodString;
642
+ image_url: z.ZodOptional<z.ZodString>;
643
+ detail: z.ZodOptional<z.ZodEnum<{
644
+ low: "low";
645
+ high: "high";
646
+ auto: "auto";
647
+ }>>;
648
+ }, z.core.$strip>, z.ZodObject<{
649
+ type: z.ZodLiteral<"input_file">;
650
+ file_data: z.ZodString;
651
+ file_id: z.ZodOptional<z.ZodString>;
652
+ file_url: z.ZodOptional<z.ZodString>;
653
+ filename: z.ZodOptional<z.ZodString>;
654
+ }, z.core.$strip>, z.ZodObject<{
655
+ type: z.ZodLiteral<"input_file">;
656
+ file_id: z.ZodString;
657
+ file_data: z.ZodOptional<z.ZodString>;
658
+ file_url: z.ZodOptional<z.ZodString>;
659
+ filename: z.ZodOptional<z.ZodString>;
660
+ }, z.core.$strip>, z.ZodObject<{
661
+ type: z.ZodLiteral<"input_file">;
662
+ file_url: z.ZodString;
663
+ file_data: z.ZodOptional<z.ZodString>;
664
+ file_id: z.ZodOptional<z.ZodString>;
665
+ filename: z.ZodOptional<z.ZodString>;
666
+ }, z.core.$strip>, z.ZodObject<{
667
+ type: z.ZodLiteral<"input_audio">;
668
+ input_audio: z.ZodObject<{
669
+ data: z.ZodString;
670
+ format: z.ZodEnum<{
671
+ "x-aac": "x-aac";
672
+ flac: "flac";
673
+ mp3: "mp3";
674
+ m4a: "m4a";
675
+ mpeg: "mpeg";
676
+ mpga: "mpga";
677
+ mp4: "mp4";
678
+ ogg: "ogg";
679
+ pcm: "pcm";
680
+ wav: "wav";
681
+ webm: "webm";
682
+ }>;
683
+ }, z.core.$strip>;
684
+ cache_control: z.ZodOptional<z.ZodObject<{
685
+ type: z.ZodLiteral<"ephemeral">;
686
+ ttl: z.ZodOptional<z.ZodString>;
687
+ }, z.core.$strip>>;
688
+ }, z.core.$strip>]>>]>;
689
+ }, z.core.$strip>, z.ZodObject<{
690
+ type: z.ZodLiteral<"message">;
691
+ id: z.ZodOptional<z.ZodString>;
692
+ status: z.ZodOptional<z.ZodEnum<{
693
+ in_progress: "in_progress";
694
+ completed: "completed";
695
+ incomplete: "incomplete";
696
+ }>>;
697
+ extra_content: z.ZodOptional<z.ZodType<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown, z.core.$ZodTypeInternals<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown>>>;
698
+ cache_control: z.ZodOptional<z.ZodObject<{
699
+ type: z.ZodLiteral<"ephemeral">;
700
+ ttl: z.ZodOptional<z.ZodString>;
701
+ }, z.core.$strip>>;
702
+ role: z.ZodLiteral<"developer">;
703
+ content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
704
+ type: z.ZodLiteral<"input_text">;
705
+ text: z.ZodString;
706
+ }, z.core.$strip>, z.ZodObject<{
707
+ type: z.ZodLiteral<"input_image">;
708
+ image_url: z.ZodString;
709
+ file_id: z.ZodOptional<z.ZodString>;
710
+ detail: z.ZodOptional<z.ZodEnum<{
711
+ low: "low";
712
+ high: "high";
713
+ auto: "auto";
714
+ }>>;
715
+ }, z.core.$strip>, z.ZodObject<{
716
+ type: z.ZodLiteral<"input_image">;
717
+ file_id: z.ZodString;
718
+ image_url: z.ZodOptional<z.ZodString>;
719
+ detail: z.ZodOptional<z.ZodEnum<{
720
+ low: "low";
721
+ high: "high";
722
+ auto: "auto";
723
+ }>>;
724
+ }, z.core.$strip>, z.ZodObject<{
725
+ type: z.ZodLiteral<"input_file">;
726
+ file_data: z.ZodString;
727
+ file_id: z.ZodOptional<z.ZodString>;
728
+ file_url: z.ZodOptional<z.ZodString>;
729
+ filename: z.ZodOptional<z.ZodString>;
730
+ }, z.core.$strip>, z.ZodObject<{
731
+ type: z.ZodLiteral<"input_file">;
732
+ file_id: z.ZodString;
733
+ file_data: z.ZodOptional<z.ZodString>;
734
+ file_url: z.ZodOptional<z.ZodString>;
735
+ filename: z.ZodOptional<z.ZodString>;
736
+ }, z.core.$strip>, z.ZodObject<{
737
+ type: z.ZodLiteral<"input_file">;
738
+ file_url: z.ZodString;
739
+ file_data: z.ZodOptional<z.ZodString>;
740
+ file_id: z.ZodOptional<z.ZodString>;
741
+ filename: z.ZodOptional<z.ZodString>;
742
+ }, z.core.$strip>, z.ZodObject<{
743
+ type: z.ZodLiteral<"input_audio">;
744
+ input_audio: z.ZodObject<{
745
+ data: z.ZodString;
746
+ format: z.ZodEnum<{
747
+ "x-aac": "x-aac";
748
+ flac: "flac";
749
+ mp3: "mp3";
750
+ m4a: "m4a";
751
+ mpeg: "mpeg";
752
+ mpga: "mpga";
753
+ mp4: "mp4";
754
+ ogg: "ogg";
755
+ pcm: "pcm";
756
+ wav: "wav";
757
+ webm: "webm";
758
+ }>;
759
+ }, z.core.$strip>;
760
+ cache_control: z.ZodOptional<z.ZodObject<{
761
+ type: z.ZodLiteral<"ephemeral">;
762
+ ttl: z.ZodOptional<z.ZodString>;
763
+ }, z.core.$strip>>;
764
+ }, z.core.$strip>]>>]>;
765
+ }, z.core.$strip>], "role">, z.ZodObject<{
766
+ type: z.ZodLiteral<"function_call">;
767
+ id: z.ZodOptional<z.ZodString>;
768
+ call_id: z.ZodString;
769
+ name: z.ZodString;
770
+ arguments: z.ZodString;
771
+ status: z.ZodOptional<z.ZodEnum<{
772
+ in_progress: "in_progress";
773
+ completed: "completed";
774
+ incomplete: "incomplete";
775
+ }>>;
776
+ extra_content: z.ZodOptional<z.ZodType<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown, z.core.$ZodTypeInternals<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown>>>;
777
+ cache_control: z.ZodOptional<z.ZodObject<{
778
+ type: z.ZodLiteral<"ephemeral">;
779
+ ttl: z.ZodOptional<z.ZodString>;
780
+ }, z.core.$strip>>;
781
+ }, z.core.$strip>, z.ZodObject<{
782
+ type: z.ZodLiteral<"function_call_output">;
783
+ id: z.ZodOptional<z.ZodString>;
784
+ call_id: z.ZodString;
785
+ output: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
786
+ type: z.ZodLiteral<"input_text">;
787
+ text: z.ZodString;
788
+ }, z.core.$strip>, z.ZodObject<{
789
+ type: z.ZodLiteral<"input_image">;
790
+ image_url: z.ZodString;
791
+ file_id: z.ZodOptional<z.ZodString>;
792
+ detail: z.ZodOptional<z.ZodEnum<{
793
+ low: "low";
794
+ high: "high";
795
+ auto: "auto";
796
+ }>>;
797
+ }, z.core.$strip>, z.ZodObject<{
798
+ type: z.ZodLiteral<"input_image">;
799
+ file_id: z.ZodString;
800
+ image_url: z.ZodOptional<z.ZodString>;
801
+ detail: z.ZodOptional<z.ZodEnum<{
802
+ low: "low";
803
+ high: "high";
804
+ auto: "auto";
805
+ }>>;
806
+ }, z.core.$strip>, z.ZodObject<{
807
+ type: z.ZodLiteral<"input_file">;
808
+ file_data: z.ZodString;
809
+ file_id: z.ZodOptional<z.ZodString>;
810
+ file_url: z.ZodOptional<z.ZodString>;
811
+ filename: z.ZodOptional<z.ZodString>;
812
+ }, z.core.$strip>, z.ZodObject<{
813
+ type: z.ZodLiteral<"input_file">;
814
+ file_id: z.ZodString;
815
+ file_data: z.ZodOptional<z.ZodString>;
816
+ file_url: z.ZodOptional<z.ZodString>;
817
+ filename: z.ZodOptional<z.ZodString>;
818
+ }, z.core.$strip>, z.ZodObject<{
819
+ type: z.ZodLiteral<"input_file">;
820
+ file_url: z.ZodString;
821
+ file_data: z.ZodOptional<z.ZodString>;
822
+ file_id: z.ZodOptional<z.ZodString>;
823
+ filename: z.ZodOptional<z.ZodString>;
824
+ }, z.core.$strip>, z.ZodObject<{
825
+ type: z.ZodLiteral<"input_audio">;
826
+ input_audio: z.ZodObject<{
827
+ data: z.ZodString;
828
+ format: z.ZodEnum<{
829
+ "x-aac": "x-aac";
830
+ flac: "flac";
831
+ mp3: "mp3";
832
+ m4a: "m4a";
833
+ mpeg: "mpeg";
834
+ mpga: "mpga";
835
+ mp4: "mp4";
836
+ ogg: "ogg";
837
+ pcm: "pcm";
838
+ wav: "wav";
839
+ webm: "webm";
840
+ }>;
841
+ }, z.core.$strip>;
842
+ cache_control: z.ZodOptional<z.ZodObject<{
843
+ type: z.ZodLiteral<"ephemeral">;
844
+ ttl: z.ZodOptional<z.ZodString>;
845
+ }, z.core.$strip>>;
846
+ }, z.core.$strip>]>>]>;
847
+ status: z.ZodOptional<z.ZodEnum<{
848
+ in_progress: "in_progress";
849
+ completed: "completed";
850
+ incomplete: "incomplete";
851
+ }>>;
852
+ extra_content: z.ZodOptional<z.ZodType<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown, z.core.$ZodTypeInternals<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown>>>;
853
+ cache_control: z.ZodOptional<z.ZodObject<{
854
+ type: z.ZodLiteral<"ephemeral">;
855
+ ttl: z.ZodOptional<z.ZodString>;
856
+ }, z.core.$strip>>;
857
+ }, z.core.$strip>, z.ZodObject<{
858
+ type: z.ZodLiteral<"reasoning">;
859
+ id: z.ZodOptional<z.ZodString>;
860
+ summary: z.ZodArray<z.ZodObject<{
861
+ type: z.ZodLiteral<"summary_text">;
862
+ text: z.ZodString;
863
+ }, z.core.$strip>>;
864
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{
865
+ type: z.ZodLiteral<"reasoning_text">;
866
+ text: z.ZodString;
867
+ }, z.core.$strip>>>;
868
+ encrypted_content: z.ZodOptional<z.ZodString>;
869
+ status: z.ZodOptional<z.ZodEnum<{
870
+ in_progress: "in_progress";
871
+ completed: "completed";
872
+ incomplete: "incomplete";
873
+ }>>;
874
+ extra_content: z.ZodOptional<z.ZodType<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown, z.core.$ZodTypeInternals<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown>>>;
875
+ }, z.core.$strip>], "type">;
876
+ export type ResponsesInputItem = z.infer<typeof ResponsesInputItemSchema>;
877
+ import { CacheControlSchema as ResponsesCacheControlSchema, ReasoningEffortSchema as ResponsesReasoningEffortSchema, ReasoningConfigSchema as ResponsesReasoningConfigSchema, ServiceTierSchema as ResponsesServiceTierSchema, ProviderMetadataSchema as ResponsesProviderMetadataSchema, type CacheControl as ResponsesCacheControl, type ReasoningEffort as ResponsesReasoningEffort, type ReasoningConfig as ResponsesReasoningConfig, type ServiceTier as ResponsesServiceTier, type ProviderMetadata as ResponsesProviderMetadata, ContentPartAudioSchema as ResponsesInputAudioSchema, type ContentPartAudio as ResponsesInputAudio } from "../shared/schema";
878
+ export { ResponsesCacheControlSchema, type ResponsesCacheControl, ResponsesReasoningEffortSchema, type ResponsesReasoningEffort, ResponsesReasoningConfigSchema, type ResponsesReasoningConfig, ResponsesServiceTierSchema, type ResponsesServiceTier, ResponsesProviderMetadataSchema, type ResponsesProviderMetadata, ResponsesInputAudioSchema, type ResponsesInputAudio, };
879
+ /**
880
+ * --- Tools ---
881
+ */
882
+ export declare const ResponsesToolSchema: z.ZodObject<{
883
+ type: z.ZodLiteral<"function">;
884
+ name: z.ZodString;
885
+ description: z.ZodOptional<z.ZodString>;
886
+ parameters: z.ZodRecord<z.ZodString, z.ZodUnknown>;
887
+ strict: z.ZodOptional<z.ZodBoolean>;
888
+ }, z.core.$strip>;
889
+ export type ResponsesTool = z.infer<typeof ResponsesToolSchema>;
890
+ export declare const ResponsesToolChoiceSchema: z.ZodUnion<readonly [z.ZodEnum<{
891
+ none: "none";
892
+ auto: "auto";
893
+ required: "required";
894
+ validated: "validated";
895
+ }>, z.ZodObject<{
896
+ type: z.ZodLiteral<"function">;
897
+ name: z.ZodString;
898
+ }, z.core.$strip>, z.ZodObject<{
899
+ type: z.ZodLiteral<"allowed_tools">;
900
+ allowed_tools: z.ZodObject<{
901
+ mode: z.ZodEnum<{
902
+ none: "none";
903
+ auto: "auto";
904
+ required: "required";
905
+ }>;
906
+ tools: z.ZodArray<z.ZodObject<{
907
+ type: z.ZodLiteral<"function">;
908
+ name: z.ZodString;
909
+ }, z.core.$strip>>;
910
+ }, z.core.$strip>;
911
+ }, z.core.$strip>]>;
912
+ export type ResponsesToolChoice = z.infer<typeof ResponsesToolChoiceSchema>;
913
+ /**
914
+ * --- Text Output Config ---
915
+ */
916
+ export declare const ResponsesTextFormatJsonSchema: z.ZodObject<{
917
+ type: z.ZodLiteral<"json_schema">;
918
+ name: z.ZodString;
919
+ description: z.ZodOptional<z.ZodString>;
920
+ schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
921
+ strict: z.ZodOptional<z.ZodBoolean>;
922
+ }, z.core.$strip>;
923
+ export declare const ResponsesTextFormatTextSchema: z.ZodObject<{
924
+ type: z.ZodLiteral<"text">;
925
+ }, z.core.$strip>;
926
+ export declare const ResponsesTextFormatSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
927
+ type: z.ZodLiteral<"json_schema">;
928
+ name: z.ZodString;
929
+ description: z.ZodOptional<z.ZodString>;
930
+ schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
931
+ strict: z.ZodOptional<z.ZodBoolean>;
932
+ }, z.core.$strip>, z.ZodObject<{
933
+ type: z.ZodLiteral<"text">;
934
+ }, z.core.$strip>], "type">;
935
+ export declare const ResponsesTextConfigSchema: z.ZodObject<{
936
+ format: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
937
+ type: z.ZodLiteral<"json_schema">;
938
+ name: z.ZodString;
939
+ description: z.ZodOptional<z.ZodString>;
940
+ schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
941
+ strict: z.ZodOptional<z.ZodBoolean>;
942
+ }, z.core.$strip>, z.ZodObject<{
943
+ type: z.ZodLiteral<"text">;
944
+ }, z.core.$strip>], "type">>;
945
+ }, z.core.$strip>;
946
+ export type ResponsesTextConfig = z.infer<typeof ResponsesTextConfigSchema>;
947
+ /**
948
+ * --- Request Body ---
949
+ */
950
+ declare const ResponsesInputsSchema: z.ZodObject<{
951
+ input: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodDiscriminatedUnion<[z.ZodObject<{
952
+ type: z.ZodLiteral<"message">;
953
+ id: z.ZodOptional<z.ZodString>;
954
+ status: z.ZodOptional<z.ZodEnum<{
955
+ in_progress: "in_progress";
956
+ completed: "completed";
957
+ incomplete: "incomplete";
958
+ }>>;
959
+ extra_content: z.ZodOptional<z.ZodType<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown, z.core.$ZodTypeInternals<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown>>>;
960
+ cache_control: z.ZodOptional<z.ZodObject<{
961
+ type: z.ZodLiteral<"ephemeral">;
962
+ ttl: z.ZodOptional<z.ZodString>;
963
+ }, z.core.$strip>>;
964
+ role: z.ZodLiteral<"user">;
965
+ content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
966
+ type: z.ZodLiteral<"input_text">;
967
+ text: z.ZodString;
968
+ }, z.core.$strip>, z.ZodObject<{
969
+ type: z.ZodLiteral<"input_image">;
970
+ image_url: z.ZodString;
971
+ file_id: z.ZodOptional<z.ZodString>;
972
+ detail: z.ZodOptional<z.ZodEnum<{
973
+ low: "low";
974
+ high: "high";
975
+ auto: "auto";
976
+ }>>;
977
+ }, z.core.$strip>, z.ZodObject<{
978
+ type: z.ZodLiteral<"input_image">;
979
+ file_id: z.ZodString;
980
+ image_url: z.ZodOptional<z.ZodString>;
981
+ detail: z.ZodOptional<z.ZodEnum<{
982
+ low: "low";
983
+ high: "high";
984
+ auto: "auto";
985
+ }>>;
986
+ }, z.core.$strip>, z.ZodObject<{
987
+ type: z.ZodLiteral<"input_file">;
988
+ file_data: z.ZodString;
989
+ file_id: z.ZodOptional<z.ZodString>;
990
+ file_url: z.ZodOptional<z.ZodString>;
991
+ filename: z.ZodOptional<z.ZodString>;
992
+ }, z.core.$strip>, z.ZodObject<{
993
+ type: z.ZodLiteral<"input_file">;
994
+ file_id: z.ZodString;
995
+ file_data: z.ZodOptional<z.ZodString>;
996
+ file_url: z.ZodOptional<z.ZodString>;
997
+ filename: z.ZodOptional<z.ZodString>;
998
+ }, z.core.$strip>, z.ZodObject<{
999
+ type: z.ZodLiteral<"input_file">;
1000
+ file_url: z.ZodString;
1001
+ file_data: z.ZodOptional<z.ZodString>;
1002
+ file_id: z.ZodOptional<z.ZodString>;
1003
+ filename: z.ZodOptional<z.ZodString>;
1004
+ }, z.core.$strip>, z.ZodObject<{
1005
+ type: z.ZodLiteral<"input_audio">;
1006
+ input_audio: z.ZodObject<{
1007
+ data: z.ZodString;
1008
+ format: z.ZodEnum<{
1009
+ "x-aac": "x-aac";
1010
+ flac: "flac";
1011
+ mp3: "mp3";
1012
+ m4a: "m4a";
1013
+ mpeg: "mpeg";
1014
+ mpga: "mpga";
1015
+ mp4: "mp4";
1016
+ ogg: "ogg";
1017
+ pcm: "pcm";
1018
+ wav: "wav";
1019
+ webm: "webm";
1020
+ }>;
1021
+ }, z.core.$strip>;
1022
+ cache_control: z.ZodOptional<z.ZodObject<{
1023
+ type: z.ZodLiteral<"ephemeral">;
1024
+ ttl: z.ZodOptional<z.ZodString>;
1025
+ }, z.core.$strip>>;
1026
+ }, z.core.$strip>]>>]>;
1027
+ }, z.core.$strip>, z.ZodObject<{
1028
+ type: z.ZodLiteral<"message">;
1029
+ id: z.ZodOptional<z.ZodString>;
1030
+ status: z.ZodOptional<z.ZodEnum<{
1031
+ in_progress: "in_progress";
1032
+ completed: "completed";
1033
+ incomplete: "incomplete";
1034
+ }>>;
1035
+ extra_content: z.ZodOptional<z.ZodType<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown, z.core.$ZodTypeInternals<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown>>>;
1036
+ cache_control: z.ZodOptional<z.ZodObject<{
1037
+ type: z.ZodLiteral<"ephemeral">;
1038
+ ttl: z.ZodOptional<z.ZodString>;
1039
+ }, z.core.$strip>>;
1040
+ role: z.ZodLiteral<"assistant">;
1041
+ content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodObject<{
1042
+ type: z.ZodLiteral<"output_text">;
1043
+ text: z.ZodString;
1044
+ annotations: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
1045
+ }, z.core.$strip>>]>;
1046
+ }, z.core.$strip>, z.ZodObject<{
1047
+ type: z.ZodLiteral<"message">;
1048
+ id: z.ZodOptional<z.ZodString>;
1049
+ status: z.ZodOptional<z.ZodEnum<{
1050
+ in_progress: "in_progress";
1051
+ completed: "completed";
1052
+ incomplete: "incomplete";
1053
+ }>>;
1054
+ extra_content: z.ZodOptional<z.ZodType<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown, z.core.$ZodTypeInternals<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown>>>;
1055
+ cache_control: z.ZodOptional<z.ZodObject<{
1056
+ type: z.ZodLiteral<"ephemeral">;
1057
+ ttl: z.ZodOptional<z.ZodString>;
1058
+ }, z.core.$strip>>;
1059
+ role: z.ZodLiteral<"system">;
1060
+ content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1061
+ type: z.ZodLiteral<"input_text">;
1062
+ text: z.ZodString;
1063
+ }, z.core.$strip>, z.ZodObject<{
1064
+ type: z.ZodLiteral<"input_image">;
1065
+ image_url: z.ZodString;
1066
+ file_id: z.ZodOptional<z.ZodString>;
1067
+ detail: z.ZodOptional<z.ZodEnum<{
1068
+ low: "low";
1069
+ high: "high";
1070
+ auto: "auto";
1071
+ }>>;
1072
+ }, z.core.$strip>, z.ZodObject<{
1073
+ type: z.ZodLiteral<"input_image">;
1074
+ file_id: z.ZodString;
1075
+ image_url: z.ZodOptional<z.ZodString>;
1076
+ detail: z.ZodOptional<z.ZodEnum<{
1077
+ low: "low";
1078
+ high: "high";
1079
+ auto: "auto";
1080
+ }>>;
1081
+ }, z.core.$strip>, z.ZodObject<{
1082
+ type: z.ZodLiteral<"input_file">;
1083
+ file_data: z.ZodString;
1084
+ file_id: z.ZodOptional<z.ZodString>;
1085
+ file_url: z.ZodOptional<z.ZodString>;
1086
+ filename: z.ZodOptional<z.ZodString>;
1087
+ }, z.core.$strip>, z.ZodObject<{
1088
+ type: z.ZodLiteral<"input_file">;
1089
+ file_id: z.ZodString;
1090
+ file_data: z.ZodOptional<z.ZodString>;
1091
+ file_url: z.ZodOptional<z.ZodString>;
1092
+ filename: z.ZodOptional<z.ZodString>;
1093
+ }, z.core.$strip>, z.ZodObject<{
1094
+ type: z.ZodLiteral<"input_file">;
1095
+ file_url: z.ZodString;
1096
+ file_data: z.ZodOptional<z.ZodString>;
1097
+ file_id: z.ZodOptional<z.ZodString>;
1098
+ filename: z.ZodOptional<z.ZodString>;
1099
+ }, z.core.$strip>, z.ZodObject<{
1100
+ type: z.ZodLiteral<"input_audio">;
1101
+ input_audio: z.ZodObject<{
1102
+ data: z.ZodString;
1103
+ format: z.ZodEnum<{
1104
+ "x-aac": "x-aac";
1105
+ flac: "flac";
1106
+ mp3: "mp3";
1107
+ m4a: "m4a";
1108
+ mpeg: "mpeg";
1109
+ mpga: "mpga";
1110
+ mp4: "mp4";
1111
+ ogg: "ogg";
1112
+ pcm: "pcm";
1113
+ wav: "wav";
1114
+ webm: "webm";
1115
+ }>;
1116
+ }, z.core.$strip>;
1117
+ cache_control: z.ZodOptional<z.ZodObject<{
1118
+ type: z.ZodLiteral<"ephemeral">;
1119
+ ttl: z.ZodOptional<z.ZodString>;
1120
+ }, z.core.$strip>>;
1121
+ }, z.core.$strip>]>>]>;
1122
+ }, z.core.$strip>, z.ZodObject<{
1123
+ type: z.ZodLiteral<"message">;
1124
+ id: z.ZodOptional<z.ZodString>;
1125
+ status: z.ZodOptional<z.ZodEnum<{
1126
+ in_progress: "in_progress";
1127
+ completed: "completed";
1128
+ incomplete: "incomplete";
1129
+ }>>;
1130
+ extra_content: z.ZodOptional<z.ZodType<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown, z.core.$ZodTypeInternals<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown>>>;
1131
+ cache_control: z.ZodOptional<z.ZodObject<{
1132
+ type: z.ZodLiteral<"ephemeral">;
1133
+ ttl: z.ZodOptional<z.ZodString>;
1134
+ }, z.core.$strip>>;
1135
+ role: z.ZodLiteral<"developer">;
1136
+ content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1137
+ type: z.ZodLiteral<"input_text">;
1138
+ text: z.ZodString;
1139
+ }, z.core.$strip>, z.ZodObject<{
1140
+ type: z.ZodLiteral<"input_image">;
1141
+ image_url: z.ZodString;
1142
+ file_id: z.ZodOptional<z.ZodString>;
1143
+ detail: z.ZodOptional<z.ZodEnum<{
1144
+ low: "low";
1145
+ high: "high";
1146
+ auto: "auto";
1147
+ }>>;
1148
+ }, z.core.$strip>, z.ZodObject<{
1149
+ type: z.ZodLiteral<"input_image">;
1150
+ file_id: z.ZodString;
1151
+ image_url: z.ZodOptional<z.ZodString>;
1152
+ detail: z.ZodOptional<z.ZodEnum<{
1153
+ low: "low";
1154
+ high: "high";
1155
+ auto: "auto";
1156
+ }>>;
1157
+ }, z.core.$strip>, z.ZodObject<{
1158
+ type: z.ZodLiteral<"input_file">;
1159
+ file_data: z.ZodString;
1160
+ file_id: z.ZodOptional<z.ZodString>;
1161
+ file_url: z.ZodOptional<z.ZodString>;
1162
+ filename: z.ZodOptional<z.ZodString>;
1163
+ }, z.core.$strip>, z.ZodObject<{
1164
+ type: z.ZodLiteral<"input_file">;
1165
+ file_id: z.ZodString;
1166
+ file_data: z.ZodOptional<z.ZodString>;
1167
+ file_url: z.ZodOptional<z.ZodString>;
1168
+ filename: z.ZodOptional<z.ZodString>;
1169
+ }, z.core.$strip>, z.ZodObject<{
1170
+ type: z.ZodLiteral<"input_file">;
1171
+ file_url: z.ZodString;
1172
+ file_data: z.ZodOptional<z.ZodString>;
1173
+ file_id: z.ZodOptional<z.ZodString>;
1174
+ filename: z.ZodOptional<z.ZodString>;
1175
+ }, z.core.$strip>, z.ZodObject<{
1176
+ type: z.ZodLiteral<"input_audio">;
1177
+ input_audio: z.ZodObject<{
1178
+ data: z.ZodString;
1179
+ format: z.ZodEnum<{
1180
+ "x-aac": "x-aac";
1181
+ flac: "flac";
1182
+ mp3: "mp3";
1183
+ m4a: "m4a";
1184
+ mpeg: "mpeg";
1185
+ mpga: "mpga";
1186
+ mp4: "mp4";
1187
+ ogg: "ogg";
1188
+ pcm: "pcm";
1189
+ wav: "wav";
1190
+ webm: "webm";
1191
+ }>;
1192
+ }, z.core.$strip>;
1193
+ cache_control: z.ZodOptional<z.ZodObject<{
1194
+ type: z.ZodLiteral<"ephemeral">;
1195
+ ttl: z.ZodOptional<z.ZodString>;
1196
+ }, z.core.$strip>>;
1197
+ }, z.core.$strip>]>>]>;
1198
+ }, z.core.$strip>], "role">, z.ZodObject<{
1199
+ type: z.ZodLiteral<"function_call">;
1200
+ id: z.ZodOptional<z.ZodString>;
1201
+ call_id: z.ZodString;
1202
+ name: z.ZodString;
1203
+ arguments: z.ZodString;
1204
+ status: z.ZodOptional<z.ZodEnum<{
1205
+ in_progress: "in_progress";
1206
+ completed: "completed";
1207
+ incomplete: "incomplete";
1208
+ }>>;
1209
+ extra_content: z.ZodOptional<z.ZodType<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown, z.core.$ZodTypeInternals<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown>>>;
1210
+ cache_control: z.ZodOptional<z.ZodObject<{
1211
+ type: z.ZodLiteral<"ephemeral">;
1212
+ ttl: z.ZodOptional<z.ZodString>;
1213
+ }, z.core.$strip>>;
1214
+ }, z.core.$strip>, z.ZodObject<{
1215
+ type: z.ZodLiteral<"function_call_output">;
1216
+ id: z.ZodOptional<z.ZodString>;
1217
+ call_id: z.ZodString;
1218
+ output: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1219
+ type: z.ZodLiteral<"input_text">;
1220
+ text: z.ZodString;
1221
+ }, z.core.$strip>, z.ZodObject<{
1222
+ type: z.ZodLiteral<"input_image">;
1223
+ image_url: z.ZodString;
1224
+ file_id: z.ZodOptional<z.ZodString>;
1225
+ detail: z.ZodOptional<z.ZodEnum<{
1226
+ low: "low";
1227
+ high: "high";
1228
+ auto: "auto";
1229
+ }>>;
1230
+ }, z.core.$strip>, z.ZodObject<{
1231
+ type: z.ZodLiteral<"input_image">;
1232
+ file_id: z.ZodString;
1233
+ image_url: z.ZodOptional<z.ZodString>;
1234
+ detail: z.ZodOptional<z.ZodEnum<{
1235
+ low: "low";
1236
+ high: "high";
1237
+ auto: "auto";
1238
+ }>>;
1239
+ }, z.core.$strip>, z.ZodObject<{
1240
+ type: z.ZodLiteral<"input_file">;
1241
+ file_data: z.ZodString;
1242
+ file_id: z.ZodOptional<z.ZodString>;
1243
+ file_url: z.ZodOptional<z.ZodString>;
1244
+ filename: z.ZodOptional<z.ZodString>;
1245
+ }, z.core.$strip>, z.ZodObject<{
1246
+ type: z.ZodLiteral<"input_file">;
1247
+ file_id: z.ZodString;
1248
+ file_data: z.ZodOptional<z.ZodString>;
1249
+ file_url: z.ZodOptional<z.ZodString>;
1250
+ filename: z.ZodOptional<z.ZodString>;
1251
+ }, z.core.$strip>, z.ZodObject<{
1252
+ type: z.ZodLiteral<"input_file">;
1253
+ file_url: z.ZodString;
1254
+ file_data: z.ZodOptional<z.ZodString>;
1255
+ file_id: z.ZodOptional<z.ZodString>;
1256
+ filename: z.ZodOptional<z.ZodString>;
1257
+ }, z.core.$strip>, z.ZodObject<{
1258
+ type: z.ZodLiteral<"input_audio">;
1259
+ input_audio: z.ZodObject<{
1260
+ data: z.ZodString;
1261
+ format: z.ZodEnum<{
1262
+ "x-aac": "x-aac";
1263
+ flac: "flac";
1264
+ mp3: "mp3";
1265
+ m4a: "m4a";
1266
+ mpeg: "mpeg";
1267
+ mpga: "mpga";
1268
+ mp4: "mp4";
1269
+ ogg: "ogg";
1270
+ pcm: "pcm";
1271
+ wav: "wav";
1272
+ webm: "webm";
1273
+ }>;
1274
+ }, z.core.$strip>;
1275
+ cache_control: z.ZodOptional<z.ZodObject<{
1276
+ type: z.ZodLiteral<"ephemeral">;
1277
+ ttl: z.ZodOptional<z.ZodString>;
1278
+ }, z.core.$strip>>;
1279
+ }, z.core.$strip>]>>]>;
1280
+ status: z.ZodOptional<z.ZodEnum<{
1281
+ in_progress: "in_progress";
1282
+ completed: "completed";
1283
+ incomplete: "incomplete";
1284
+ }>>;
1285
+ extra_content: z.ZodOptional<z.ZodType<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown, z.core.$ZodTypeInternals<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown>>>;
1286
+ cache_control: z.ZodOptional<z.ZodObject<{
1287
+ type: z.ZodLiteral<"ephemeral">;
1288
+ ttl: z.ZodOptional<z.ZodString>;
1289
+ }, z.core.$strip>>;
1290
+ }, z.core.$strip>, z.ZodObject<{
1291
+ type: z.ZodLiteral<"reasoning">;
1292
+ id: z.ZodOptional<z.ZodString>;
1293
+ summary: z.ZodArray<z.ZodObject<{
1294
+ type: z.ZodLiteral<"summary_text">;
1295
+ text: z.ZodString;
1296
+ }, z.core.$strip>>;
1297
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{
1298
+ type: z.ZodLiteral<"reasoning_text">;
1299
+ text: z.ZodString;
1300
+ }, z.core.$strip>>>;
1301
+ encrypted_content: z.ZodOptional<z.ZodString>;
1302
+ status: z.ZodOptional<z.ZodEnum<{
1303
+ in_progress: "in_progress";
1304
+ completed: "completed";
1305
+ incomplete: "incomplete";
1306
+ }>>;
1307
+ extra_content: z.ZodOptional<z.ZodType<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown, z.core.$ZodTypeInternals<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown>>>;
1308
+ }, z.core.$strip>], "type">>]>;
1309
+ instructions: z.ZodOptional<z.ZodString>;
1310
+ tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
1311
+ type: z.ZodLiteral<"function">;
1312
+ name: z.ZodString;
1313
+ description: z.ZodOptional<z.ZodString>;
1314
+ parameters: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1315
+ strict: z.ZodOptional<z.ZodBoolean>;
1316
+ }, z.core.$strip>>>;
1317
+ tool_choice: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
1318
+ none: "none";
1319
+ auto: "auto";
1320
+ required: "required";
1321
+ validated: "validated";
1322
+ }>, z.ZodObject<{
1323
+ type: z.ZodLiteral<"function">;
1324
+ name: z.ZodString;
1325
+ }, z.core.$strip>, z.ZodObject<{
1326
+ type: z.ZodLiteral<"allowed_tools">;
1327
+ allowed_tools: z.ZodObject<{
1328
+ mode: z.ZodEnum<{
1329
+ none: "none";
1330
+ auto: "auto";
1331
+ required: "required";
1332
+ }>;
1333
+ tools: z.ZodArray<z.ZodObject<{
1334
+ type: z.ZodLiteral<"function">;
1335
+ name: z.ZodString;
1336
+ }, z.core.$strip>>;
1337
+ }, z.core.$strip>;
1338
+ }, z.core.$strip>]>>;
1339
+ max_tool_calls: z.ZodOptional<z.ZodNumber>;
1340
+ text: z.ZodOptional<z.ZodObject<{
1341
+ format: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1342
+ type: z.ZodLiteral<"json_schema">;
1343
+ name: z.ZodString;
1344
+ description: z.ZodOptional<z.ZodString>;
1345
+ schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1346
+ strict: z.ZodOptional<z.ZodBoolean>;
1347
+ }, z.core.$strip>, z.ZodObject<{
1348
+ type: z.ZodLiteral<"text">;
1349
+ }, z.core.$strip>], "type">>;
1350
+ }, z.core.$strip>>;
1351
+ temperature: z.ZodOptional<z.ZodNumber>;
1352
+ top_p: z.ZodOptional<z.ZodNumber>;
1353
+ frequency_penalty: z.ZodOptional<z.ZodNumber>;
1354
+ presence_penalty: z.ZodOptional<z.ZodNumber>;
1355
+ max_output_tokens: z.ZodOptional<z.ZodNumber>;
1356
+ reasoning: z.ZodOptional<z.ZodObject<{
1357
+ enabled: z.ZodOptional<z.ZodBoolean>;
1358
+ effort: z.ZodOptional<z.ZodEnum<{
1359
+ none: "none";
1360
+ minimal: "minimal";
1361
+ low: "low";
1362
+ medium: "medium";
1363
+ high: "high";
1364
+ xhigh: "xhigh";
1365
+ }>>;
1366
+ max_tokens: z.ZodOptional<z.ZodNumber>;
1367
+ exclude: z.ZodOptional<z.ZodBoolean>;
1368
+ }, z.core.$strip>>;
1369
+ prompt_cache_key: z.ZodOptional<z.ZodString>;
1370
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
1371
+ service_tier: z.ZodOptional<z.ZodEnum<{
1372
+ default: "default";
1373
+ auto: "auto";
1374
+ flex: "flex";
1375
+ scale: "scale";
1376
+ priority: "priority";
1377
+ }>>;
1378
+ parallel_tool_calls: z.ZodOptional<z.ZodBoolean>;
1379
+ cache_control: z.ZodOptional<z.ZodObject<{
1380
+ type: z.ZodLiteral<"ephemeral">;
1381
+ ttl: z.ZodOptional<z.ZodString>;
1382
+ }, z.core.$strip>>;
1383
+ reasoning_effort: z.ZodOptional<z.ZodEnum<{
1384
+ none: "none";
1385
+ minimal: "minimal";
1386
+ low: "low";
1387
+ medium: "medium";
1388
+ high: "high";
1389
+ xhigh: "xhigh";
1390
+ }>>;
1391
+ extra_body: z.ZodOptional<z.ZodType<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown, z.core.$ZodTypeInternals<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown>>>;
1392
+ }, z.core.$strip>;
1393
+ export type ResponsesInputs = z.infer<typeof ResponsesInputsSchema>;
1394
+ export declare const ResponsesBodySchema: z.ZodObject<{
1395
+ input: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodDiscriminatedUnion<[z.ZodObject<{
1396
+ type: z.ZodLiteral<"message">;
1397
+ id: z.ZodOptional<z.ZodString>;
1398
+ status: z.ZodOptional<z.ZodEnum<{
1399
+ in_progress: "in_progress";
1400
+ completed: "completed";
1401
+ incomplete: "incomplete";
1402
+ }>>;
1403
+ extra_content: z.ZodOptional<z.ZodType<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown, z.core.$ZodTypeInternals<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown>>>;
1404
+ cache_control: z.ZodOptional<z.ZodObject<{
1405
+ type: z.ZodLiteral<"ephemeral">;
1406
+ ttl: z.ZodOptional<z.ZodString>;
1407
+ }, z.core.$strip>>;
1408
+ role: z.ZodLiteral<"user">;
1409
+ content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1410
+ type: z.ZodLiteral<"input_text">;
1411
+ text: z.ZodString;
1412
+ }, z.core.$strip>, z.ZodObject<{
1413
+ type: z.ZodLiteral<"input_image">;
1414
+ image_url: z.ZodString;
1415
+ file_id: z.ZodOptional<z.ZodString>;
1416
+ detail: z.ZodOptional<z.ZodEnum<{
1417
+ low: "low";
1418
+ high: "high";
1419
+ auto: "auto";
1420
+ }>>;
1421
+ }, z.core.$strip>, z.ZodObject<{
1422
+ type: z.ZodLiteral<"input_image">;
1423
+ file_id: z.ZodString;
1424
+ image_url: z.ZodOptional<z.ZodString>;
1425
+ detail: z.ZodOptional<z.ZodEnum<{
1426
+ low: "low";
1427
+ high: "high";
1428
+ auto: "auto";
1429
+ }>>;
1430
+ }, z.core.$strip>, z.ZodObject<{
1431
+ type: z.ZodLiteral<"input_file">;
1432
+ file_data: z.ZodString;
1433
+ file_id: z.ZodOptional<z.ZodString>;
1434
+ file_url: z.ZodOptional<z.ZodString>;
1435
+ filename: z.ZodOptional<z.ZodString>;
1436
+ }, z.core.$strip>, z.ZodObject<{
1437
+ type: z.ZodLiteral<"input_file">;
1438
+ file_id: z.ZodString;
1439
+ file_data: z.ZodOptional<z.ZodString>;
1440
+ file_url: z.ZodOptional<z.ZodString>;
1441
+ filename: z.ZodOptional<z.ZodString>;
1442
+ }, z.core.$strip>, z.ZodObject<{
1443
+ type: z.ZodLiteral<"input_file">;
1444
+ file_url: z.ZodString;
1445
+ file_data: z.ZodOptional<z.ZodString>;
1446
+ file_id: z.ZodOptional<z.ZodString>;
1447
+ filename: z.ZodOptional<z.ZodString>;
1448
+ }, z.core.$strip>, z.ZodObject<{
1449
+ type: z.ZodLiteral<"input_audio">;
1450
+ input_audio: z.ZodObject<{
1451
+ data: z.ZodString;
1452
+ format: z.ZodEnum<{
1453
+ "x-aac": "x-aac";
1454
+ flac: "flac";
1455
+ mp3: "mp3";
1456
+ m4a: "m4a";
1457
+ mpeg: "mpeg";
1458
+ mpga: "mpga";
1459
+ mp4: "mp4";
1460
+ ogg: "ogg";
1461
+ pcm: "pcm";
1462
+ wav: "wav";
1463
+ webm: "webm";
1464
+ }>;
1465
+ }, z.core.$strip>;
1466
+ cache_control: z.ZodOptional<z.ZodObject<{
1467
+ type: z.ZodLiteral<"ephemeral">;
1468
+ ttl: z.ZodOptional<z.ZodString>;
1469
+ }, z.core.$strip>>;
1470
+ }, z.core.$strip>]>>]>;
1471
+ }, z.core.$strip>, z.ZodObject<{
1472
+ type: z.ZodLiteral<"message">;
1473
+ id: z.ZodOptional<z.ZodString>;
1474
+ status: z.ZodOptional<z.ZodEnum<{
1475
+ in_progress: "in_progress";
1476
+ completed: "completed";
1477
+ incomplete: "incomplete";
1478
+ }>>;
1479
+ extra_content: z.ZodOptional<z.ZodType<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown, z.core.$ZodTypeInternals<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown>>>;
1480
+ cache_control: z.ZodOptional<z.ZodObject<{
1481
+ type: z.ZodLiteral<"ephemeral">;
1482
+ ttl: z.ZodOptional<z.ZodString>;
1483
+ }, z.core.$strip>>;
1484
+ role: z.ZodLiteral<"assistant">;
1485
+ content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodObject<{
1486
+ type: z.ZodLiteral<"output_text">;
1487
+ text: z.ZodString;
1488
+ annotations: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
1489
+ }, z.core.$strip>>]>;
1490
+ }, z.core.$strip>, z.ZodObject<{
1491
+ type: z.ZodLiteral<"message">;
1492
+ id: z.ZodOptional<z.ZodString>;
1493
+ status: z.ZodOptional<z.ZodEnum<{
1494
+ in_progress: "in_progress";
1495
+ completed: "completed";
1496
+ incomplete: "incomplete";
1497
+ }>>;
1498
+ extra_content: z.ZodOptional<z.ZodType<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown, z.core.$ZodTypeInternals<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown>>>;
1499
+ cache_control: z.ZodOptional<z.ZodObject<{
1500
+ type: z.ZodLiteral<"ephemeral">;
1501
+ ttl: z.ZodOptional<z.ZodString>;
1502
+ }, z.core.$strip>>;
1503
+ role: z.ZodLiteral<"system">;
1504
+ content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1505
+ type: z.ZodLiteral<"input_text">;
1506
+ text: z.ZodString;
1507
+ }, z.core.$strip>, z.ZodObject<{
1508
+ type: z.ZodLiteral<"input_image">;
1509
+ image_url: z.ZodString;
1510
+ file_id: z.ZodOptional<z.ZodString>;
1511
+ detail: z.ZodOptional<z.ZodEnum<{
1512
+ low: "low";
1513
+ high: "high";
1514
+ auto: "auto";
1515
+ }>>;
1516
+ }, z.core.$strip>, z.ZodObject<{
1517
+ type: z.ZodLiteral<"input_image">;
1518
+ file_id: z.ZodString;
1519
+ image_url: z.ZodOptional<z.ZodString>;
1520
+ detail: z.ZodOptional<z.ZodEnum<{
1521
+ low: "low";
1522
+ high: "high";
1523
+ auto: "auto";
1524
+ }>>;
1525
+ }, z.core.$strip>, z.ZodObject<{
1526
+ type: z.ZodLiteral<"input_file">;
1527
+ file_data: z.ZodString;
1528
+ file_id: z.ZodOptional<z.ZodString>;
1529
+ file_url: z.ZodOptional<z.ZodString>;
1530
+ filename: z.ZodOptional<z.ZodString>;
1531
+ }, z.core.$strip>, z.ZodObject<{
1532
+ type: z.ZodLiteral<"input_file">;
1533
+ file_id: z.ZodString;
1534
+ file_data: z.ZodOptional<z.ZodString>;
1535
+ file_url: z.ZodOptional<z.ZodString>;
1536
+ filename: z.ZodOptional<z.ZodString>;
1537
+ }, z.core.$strip>, z.ZodObject<{
1538
+ type: z.ZodLiteral<"input_file">;
1539
+ file_url: z.ZodString;
1540
+ file_data: z.ZodOptional<z.ZodString>;
1541
+ file_id: z.ZodOptional<z.ZodString>;
1542
+ filename: z.ZodOptional<z.ZodString>;
1543
+ }, z.core.$strip>, z.ZodObject<{
1544
+ type: z.ZodLiteral<"input_audio">;
1545
+ input_audio: z.ZodObject<{
1546
+ data: z.ZodString;
1547
+ format: z.ZodEnum<{
1548
+ "x-aac": "x-aac";
1549
+ flac: "flac";
1550
+ mp3: "mp3";
1551
+ m4a: "m4a";
1552
+ mpeg: "mpeg";
1553
+ mpga: "mpga";
1554
+ mp4: "mp4";
1555
+ ogg: "ogg";
1556
+ pcm: "pcm";
1557
+ wav: "wav";
1558
+ webm: "webm";
1559
+ }>;
1560
+ }, z.core.$strip>;
1561
+ cache_control: z.ZodOptional<z.ZodObject<{
1562
+ type: z.ZodLiteral<"ephemeral">;
1563
+ ttl: z.ZodOptional<z.ZodString>;
1564
+ }, z.core.$strip>>;
1565
+ }, z.core.$strip>]>>]>;
1566
+ }, z.core.$strip>, z.ZodObject<{
1567
+ type: z.ZodLiteral<"message">;
1568
+ id: z.ZodOptional<z.ZodString>;
1569
+ status: z.ZodOptional<z.ZodEnum<{
1570
+ in_progress: "in_progress";
1571
+ completed: "completed";
1572
+ incomplete: "incomplete";
1573
+ }>>;
1574
+ extra_content: z.ZodOptional<z.ZodType<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown, z.core.$ZodTypeInternals<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown>>>;
1575
+ cache_control: z.ZodOptional<z.ZodObject<{
1576
+ type: z.ZodLiteral<"ephemeral">;
1577
+ ttl: z.ZodOptional<z.ZodString>;
1578
+ }, z.core.$strip>>;
1579
+ role: z.ZodLiteral<"developer">;
1580
+ content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1581
+ type: z.ZodLiteral<"input_text">;
1582
+ text: z.ZodString;
1583
+ }, z.core.$strip>, z.ZodObject<{
1584
+ type: z.ZodLiteral<"input_image">;
1585
+ image_url: z.ZodString;
1586
+ file_id: z.ZodOptional<z.ZodString>;
1587
+ detail: z.ZodOptional<z.ZodEnum<{
1588
+ low: "low";
1589
+ high: "high";
1590
+ auto: "auto";
1591
+ }>>;
1592
+ }, z.core.$strip>, z.ZodObject<{
1593
+ type: z.ZodLiteral<"input_image">;
1594
+ file_id: z.ZodString;
1595
+ image_url: z.ZodOptional<z.ZodString>;
1596
+ detail: z.ZodOptional<z.ZodEnum<{
1597
+ low: "low";
1598
+ high: "high";
1599
+ auto: "auto";
1600
+ }>>;
1601
+ }, z.core.$strip>, z.ZodObject<{
1602
+ type: z.ZodLiteral<"input_file">;
1603
+ file_data: z.ZodString;
1604
+ file_id: z.ZodOptional<z.ZodString>;
1605
+ file_url: z.ZodOptional<z.ZodString>;
1606
+ filename: z.ZodOptional<z.ZodString>;
1607
+ }, z.core.$strip>, z.ZodObject<{
1608
+ type: z.ZodLiteral<"input_file">;
1609
+ file_id: z.ZodString;
1610
+ file_data: z.ZodOptional<z.ZodString>;
1611
+ file_url: z.ZodOptional<z.ZodString>;
1612
+ filename: z.ZodOptional<z.ZodString>;
1613
+ }, z.core.$strip>, z.ZodObject<{
1614
+ type: z.ZodLiteral<"input_file">;
1615
+ file_url: z.ZodString;
1616
+ file_data: z.ZodOptional<z.ZodString>;
1617
+ file_id: z.ZodOptional<z.ZodString>;
1618
+ filename: z.ZodOptional<z.ZodString>;
1619
+ }, z.core.$strip>, z.ZodObject<{
1620
+ type: z.ZodLiteral<"input_audio">;
1621
+ input_audio: z.ZodObject<{
1622
+ data: z.ZodString;
1623
+ format: z.ZodEnum<{
1624
+ "x-aac": "x-aac";
1625
+ flac: "flac";
1626
+ mp3: "mp3";
1627
+ m4a: "m4a";
1628
+ mpeg: "mpeg";
1629
+ mpga: "mpga";
1630
+ mp4: "mp4";
1631
+ ogg: "ogg";
1632
+ pcm: "pcm";
1633
+ wav: "wav";
1634
+ webm: "webm";
1635
+ }>;
1636
+ }, z.core.$strip>;
1637
+ cache_control: z.ZodOptional<z.ZodObject<{
1638
+ type: z.ZodLiteral<"ephemeral">;
1639
+ ttl: z.ZodOptional<z.ZodString>;
1640
+ }, z.core.$strip>>;
1641
+ }, z.core.$strip>]>>]>;
1642
+ }, z.core.$strip>], "role">, z.ZodObject<{
1643
+ type: z.ZodLiteral<"function_call">;
1644
+ id: z.ZodOptional<z.ZodString>;
1645
+ call_id: z.ZodString;
1646
+ name: z.ZodString;
1647
+ arguments: z.ZodString;
1648
+ status: z.ZodOptional<z.ZodEnum<{
1649
+ in_progress: "in_progress";
1650
+ completed: "completed";
1651
+ incomplete: "incomplete";
1652
+ }>>;
1653
+ extra_content: z.ZodOptional<z.ZodType<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown, z.core.$ZodTypeInternals<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown>>>;
1654
+ cache_control: z.ZodOptional<z.ZodObject<{
1655
+ type: z.ZodLiteral<"ephemeral">;
1656
+ ttl: z.ZodOptional<z.ZodString>;
1657
+ }, z.core.$strip>>;
1658
+ }, z.core.$strip>, z.ZodObject<{
1659
+ type: z.ZodLiteral<"function_call_output">;
1660
+ id: z.ZodOptional<z.ZodString>;
1661
+ call_id: z.ZodString;
1662
+ output: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1663
+ type: z.ZodLiteral<"input_text">;
1664
+ text: z.ZodString;
1665
+ }, z.core.$strip>, z.ZodObject<{
1666
+ type: z.ZodLiteral<"input_image">;
1667
+ image_url: z.ZodString;
1668
+ file_id: z.ZodOptional<z.ZodString>;
1669
+ detail: z.ZodOptional<z.ZodEnum<{
1670
+ low: "low";
1671
+ high: "high";
1672
+ auto: "auto";
1673
+ }>>;
1674
+ }, z.core.$strip>, z.ZodObject<{
1675
+ type: z.ZodLiteral<"input_image">;
1676
+ file_id: z.ZodString;
1677
+ image_url: z.ZodOptional<z.ZodString>;
1678
+ detail: z.ZodOptional<z.ZodEnum<{
1679
+ low: "low";
1680
+ high: "high";
1681
+ auto: "auto";
1682
+ }>>;
1683
+ }, z.core.$strip>, z.ZodObject<{
1684
+ type: z.ZodLiteral<"input_file">;
1685
+ file_data: z.ZodString;
1686
+ file_id: z.ZodOptional<z.ZodString>;
1687
+ file_url: z.ZodOptional<z.ZodString>;
1688
+ filename: z.ZodOptional<z.ZodString>;
1689
+ }, z.core.$strip>, z.ZodObject<{
1690
+ type: z.ZodLiteral<"input_file">;
1691
+ file_id: z.ZodString;
1692
+ file_data: z.ZodOptional<z.ZodString>;
1693
+ file_url: z.ZodOptional<z.ZodString>;
1694
+ filename: z.ZodOptional<z.ZodString>;
1695
+ }, z.core.$strip>, z.ZodObject<{
1696
+ type: z.ZodLiteral<"input_file">;
1697
+ file_url: z.ZodString;
1698
+ file_data: z.ZodOptional<z.ZodString>;
1699
+ file_id: z.ZodOptional<z.ZodString>;
1700
+ filename: z.ZodOptional<z.ZodString>;
1701
+ }, z.core.$strip>, z.ZodObject<{
1702
+ type: z.ZodLiteral<"input_audio">;
1703
+ input_audio: z.ZodObject<{
1704
+ data: z.ZodString;
1705
+ format: z.ZodEnum<{
1706
+ "x-aac": "x-aac";
1707
+ flac: "flac";
1708
+ mp3: "mp3";
1709
+ m4a: "m4a";
1710
+ mpeg: "mpeg";
1711
+ mpga: "mpga";
1712
+ mp4: "mp4";
1713
+ ogg: "ogg";
1714
+ pcm: "pcm";
1715
+ wav: "wav";
1716
+ webm: "webm";
1717
+ }>;
1718
+ }, z.core.$strip>;
1719
+ cache_control: z.ZodOptional<z.ZodObject<{
1720
+ type: z.ZodLiteral<"ephemeral">;
1721
+ ttl: z.ZodOptional<z.ZodString>;
1722
+ }, z.core.$strip>>;
1723
+ }, z.core.$strip>]>>]>;
1724
+ status: z.ZodOptional<z.ZodEnum<{
1725
+ in_progress: "in_progress";
1726
+ completed: "completed";
1727
+ incomplete: "incomplete";
1728
+ }>>;
1729
+ extra_content: z.ZodOptional<z.ZodType<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown, z.core.$ZodTypeInternals<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown>>>;
1730
+ cache_control: z.ZodOptional<z.ZodObject<{
1731
+ type: z.ZodLiteral<"ephemeral">;
1732
+ ttl: z.ZodOptional<z.ZodString>;
1733
+ }, z.core.$strip>>;
1734
+ }, z.core.$strip>, z.ZodObject<{
1735
+ type: z.ZodLiteral<"reasoning">;
1736
+ id: z.ZodOptional<z.ZodString>;
1737
+ summary: z.ZodArray<z.ZodObject<{
1738
+ type: z.ZodLiteral<"summary_text">;
1739
+ text: z.ZodString;
1740
+ }, z.core.$strip>>;
1741
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{
1742
+ type: z.ZodLiteral<"reasoning_text">;
1743
+ text: z.ZodString;
1744
+ }, z.core.$strip>>>;
1745
+ encrypted_content: z.ZodOptional<z.ZodString>;
1746
+ status: z.ZodOptional<z.ZodEnum<{
1747
+ in_progress: "in_progress";
1748
+ completed: "completed";
1749
+ incomplete: "incomplete";
1750
+ }>>;
1751
+ extra_content: z.ZodOptional<z.ZodType<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown, z.core.$ZodTypeInternals<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown>>>;
1752
+ }, z.core.$strip>], "type">>]>;
1753
+ instructions: z.ZodOptional<z.ZodString>;
1754
+ tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
1755
+ type: z.ZodLiteral<"function">;
1756
+ name: z.ZodString;
1757
+ description: z.ZodOptional<z.ZodString>;
1758
+ parameters: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1759
+ strict: z.ZodOptional<z.ZodBoolean>;
1760
+ }, z.core.$strip>>>;
1761
+ tool_choice: z.ZodOptional<z.ZodUnion<readonly [z.ZodEnum<{
1762
+ none: "none";
1763
+ auto: "auto";
1764
+ required: "required";
1765
+ validated: "validated";
1766
+ }>, z.ZodObject<{
1767
+ type: z.ZodLiteral<"function">;
1768
+ name: z.ZodString;
1769
+ }, z.core.$strip>, z.ZodObject<{
1770
+ type: z.ZodLiteral<"allowed_tools">;
1771
+ allowed_tools: z.ZodObject<{
1772
+ mode: z.ZodEnum<{
1773
+ none: "none";
1774
+ auto: "auto";
1775
+ required: "required";
1776
+ }>;
1777
+ tools: z.ZodArray<z.ZodObject<{
1778
+ type: z.ZodLiteral<"function">;
1779
+ name: z.ZodString;
1780
+ }, z.core.$strip>>;
1781
+ }, z.core.$strip>;
1782
+ }, z.core.$strip>]>>;
1783
+ max_tool_calls: z.ZodOptional<z.ZodNumber>;
1784
+ text: z.ZodOptional<z.ZodObject<{
1785
+ format: z.ZodOptional<z.ZodDiscriminatedUnion<[z.ZodObject<{
1786
+ type: z.ZodLiteral<"json_schema">;
1787
+ name: z.ZodString;
1788
+ description: z.ZodOptional<z.ZodString>;
1789
+ schema: z.ZodRecord<z.ZodString, z.ZodUnknown>;
1790
+ strict: z.ZodOptional<z.ZodBoolean>;
1791
+ }, z.core.$strip>, z.ZodObject<{
1792
+ type: z.ZodLiteral<"text">;
1793
+ }, z.core.$strip>], "type">>;
1794
+ }, z.core.$strip>>;
1795
+ temperature: z.ZodOptional<z.ZodNumber>;
1796
+ top_p: z.ZodOptional<z.ZodNumber>;
1797
+ frequency_penalty: z.ZodOptional<z.ZodNumber>;
1798
+ presence_penalty: z.ZodOptional<z.ZodNumber>;
1799
+ max_output_tokens: z.ZodOptional<z.ZodNumber>;
1800
+ reasoning: z.ZodOptional<z.ZodObject<{
1801
+ enabled: z.ZodOptional<z.ZodBoolean>;
1802
+ effort: z.ZodOptional<z.ZodEnum<{
1803
+ none: "none";
1804
+ minimal: "minimal";
1805
+ low: "low";
1806
+ medium: "medium";
1807
+ high: "high";
1808
+ xhigh: "xhigh";
1809
+ }>>;
1810
+ max_tokens: z.ZodOptional<z.ZodNumber>;
1811
+ exclude: z.ZodOptional<z.ZodBoolean>;
1812
+ }, z.core.$strip>>;
1813
+ prompt_cache_key: z.ZodOptional<z.ZodString>;
1814
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
1815
+ service_tier: z.ZodOptional<z.ZodEnum<{
1816
+ default: "default";
1817
+ auto: "auto";
1818
+ flex: "flex";
1819
+ scale: "scale";
1820
+ priority: "priority";
1821
+ }>>;
1822
+ parallel_tool_calls: z.ZodOptional<z.ZodBoolean>;
1823
+ cache_control: z.ZodOptional<z.ZodObject<{
1824
+ type: z.ZodLiteral<"ephemeral">;
1825
+ ttl: z.ZodOptional<z.ZodString>;
1826
+ }, z.core.$strip>>;
1827
+ reasoning_effort: z.ZodOptional<z.ZodEnum<{
1828
+ none: "none";
1829
+ minimal: "minimal";
1830
+ low: "low";
1831
+ medium: "medium";
1832
+ high: "high";
1833
+ xhigh: "xhigh";
1834
+ }>>;
1835
+ extra_body: z.ZodOptional<z.ZodType<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown, z.core.$ZodTypeInternals<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown>>>;
1836
+ model: z.ZodString;
1837
+ stream: z.ZodOptional<z.ZodBoolean>;
1838
+ }, z.core.$strip>;
1839
+ export type ResponsesBody = z.infer<typeof ResponsesBodySchema>;
1840
+ /**
1841
+ * --- Output Items ---
1842
+ */
1843
+ export declare const ResponsesOutputMessageSchema: z.ZodObject<{
1844
+ type: z.ZodLiteral<"message">;
1845
+ id: z.ZodString;
1846
+ role: z.ZodLiteral<"assistant">;
1847
+ status: z.ZodEnum<{
1848
+ in_progress: "in_progress";
1849
+ completed: "completed";
1850
+ incomplete: "incomplete";
1851
+ }>;
1852
+ content: z.ZodArray<z.ZodObject<{
1853
+ type: z.ZodLiteral<"output_text">;
1854
+ text: z.ZodString;
1855
+ annotations: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
1856
+ }, z.core.$strip>>;
1857
+ extra_content: z.ZodOptional<z.ZodType<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown, z.core.$ZodTypeInternals<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown>>>;
1858
+ }, z.core.$strip>;
1859
+ export type ResponsesOutputMessage = z.infer<typeof ResponsesOutputMessageSchema>;
1860
+ export declare const ResponsesOutputItemSchema: z.ZodDiscriminatedUnion<[z.ZodObject<{
1861
+ type: z.ZodLiteral<"message">;
1862
+ id: z.ZodString;
1863
+ role: z.ZodLiteral<"assistant">;
1864
+ status: z.ZodEnum<{
1865
+ in_progress: "in_progress";
1866
+ completed: "completed";
1867
+ incomplete: "incomplete";
1868
+ }>;
1869
+ content: z.ZodArray<z.ZodObject<{
1870
+ type: z.ZodLiteral<"output_text">;
1871
+ text: z.ZodString;
1872
+ annotations: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
1873
+ }, z.core.$strip>>;
1874
+ extra_content: z.ZodOptional<z.ZodType<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown, z.core.$ZodTypeInternals<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown>>>;
1875
+ }, z.core.$strip>, z.ZodObject<{
1876
+ type: z.ZodLiteral<"function_call">;
1877
+ id: z.ZodOptional<z.ZodString>;
1878
+ call_id: z.ZodString;
1879
+ name: z.ZodString;
1880
+ arguments: z.ZodString;
1881
+ status: z.ZodOptional<z.ZodEnum<{
1882
+ in_progress: "in_progress";
1883
+ completed: "completed";
1884
+ incomplete: "incomplete";
1885
+ }>>;
1886
+ extra_content: z.ZodOptional<z.ZodType<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown, z.core.$ZodTypeInternals<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown>>>;
1887
+ cache_control: z.ZodOptional<z.ZodObject<{
1888
+ type: z.ZodLiteral<"ephemeral">;
1889
+ ttl: z.ZodOptional<z.ZodString>;
1890
+ }, z.core.$strip>>;
1891
+ }, z.core.$strip>, z.ZodObject<{
1892
+ type: z.ZodLiteral<"reasoning">;
1893
+ id: z.ZodOptional<z.ZodString>;
1894
+ summary: z.ZodArray<z.ZodObject<{
1895
+ type: z.ZodLiteral<"summary_text">;
1896
+ text: z.ZodString;
1897
+ }, z.core.$strip>>;
1898
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{
1899
+ type: z.ZodLiteral<"reasoning_text">;
1900
+ text: z.ZodString;
1901
+ }, z.core.$strip>>>;
1902
+ encrypted_content: z.ZodOptional<z.ZodString>;
1903
+ status: z.ZodOptional<z.ZodEnum<{
1904
+ in_progress: "in_progress";
1905
+ completed: "completed";
1906
+ incomplete: "incomplete";
1907
+ }>>;
1908
+ extra_content: z.ZodOptional<z.ZodType<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown, z.core.$ZodTypeInternals<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown>>>;
1909
+ }, z.core.$strip>], "type">;
1910
+ export type ResponsesOutputItem = z.infer<typeof ResponsesOutputItemSchema>;
1911
+ /**
1912
+ * --- Response Usage ---
1913
+ */
1914
+ export declare const ResponsesUsageSchema: z.ZodObject<{
1915
+ input_tokens: z.ZodNumber;
1916
+ output_tokens: z.ZodNumber;
1917
+ total_tokens: z.ZodNumber;
1918
+ input_tokens_details: z.ZodOptional<z.ZodObject<{
1919
+ cached_tokens: z.ZodOptional<z.ZodNumber>;
1920
+ }, z.core.$strip>>;
1921
+ output_tokens_details: z.ZodOptional<z.ZodObject<{
1922
+ reasoning_tokens: z.ZodOptional<z.ZodNumber>;
1923
+ }, z.core.$strip>>;
1924
+ }, z.core.$strip>;
1925
+ export type ResponsesUsage = z.infer<typeof ResponsesUsageSchema>;
1926
+ /**
1927
+ * --- Response Object ---
1928
+ */
1929
+ export declare const ResponsesStatusSchema: z.ZodEnum<{
1930
+ in_progress: "in_progress";
1931
+ completed: "completed";
1932
+ incomplete: "incomplete";
1933
+ failed: "failed";
1934
+ }>;
1935
+ export type ResponsesStatus = z.infer<typeof ResponsesStatusSchema>;
1936
+ export declare const ResponsesSchema: z.ZodObject<{
1937
+ id: z.ZodString;
1938
+ object: z.ZodLiteral<"response">;
1939
+ status: z.ZodEnum<{
1940
+ in_progress: "in_progress";
1941
+ completed: "completed";
1942
+ incomplete: "incomplete";
1943
+ failed: "failed";
1944
+ }>;
1945
+ model: z.ZodString;
1946
+ output: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodObject<{
1947
+ type: z.ZodLiteral<"message">;
1948
+ id: z.ZodString;
1949
+ role: z.ZodLiteral<"assistant">;
1950
+ status: z.ZodEnum<{
1951
+ in_progress: "in_progress";
1952
+ completed: "completed";
1953
+ incomplete: "incomplete";
1954
+ }>;
1955
+ content: z.ZodArray<z.ZodObject<{
1956
+ type: z.ZodLiteral<"output_text">;
1957
+ text: z.ZodString;
1958
+ annotations: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
1959
+ }, z.core.$strip>>;
1960
+ extra_content: z.ZodOptional<z.ZodType<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown, z.core.$ZodTypeInternals<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown>>>;
1961
+ }, z.core.$strip>, z.ZodObject<{
1962
+ type: z.ZodLiteral<"function_call">;
1963
+ id: z.ZodOptional<z.ZodString>;
1964
+ call_id: z.ZodString;
1965
+ name: z.ZodString;
1966
+ arguments: z.ZodString;
1967
+ status: z.ZodOptional<z.ZodEnum<{
1968
+ in_progress: "in_progress";
1969
+ completed: "completed";
1970
+ incomplete: "incomplete";
1971
+ }>>;
1972
+ extra_content: z.ZodOptional<z.ZodType<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown, z.core.$ZodTypeInternals<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown>>>;
1973
+ cache_control: z.ZodOptional<z.ZodObject<{
1974
+ type: z.ZodLiteral<"ephemeral">;
1975
+ ttl: z.ZodOptional<z.ZodString>;
1976
+ }, z.core.$strip>>;
1977
+ }, z.core.$strip>, z.ZodObject<{
1978
+ type: z.ZodLiteral<"reasoning">;
1979
+ id: z.ZodOptional<z.ZodString>;
1980
+ summary: z.ZodArray<z.ZodObject<{
1981
+ type: z.ZodLiteral<"summary_text">;
1982
+ text: z.ZodString;
1983
+ }, z.core.$strip>>;
1984
+ content: z.ZodOptional<z.ZodArray<z.ZodObject<{
1985
+ type: z.ZodLiteral<"reasoning_text">;
1986
+ text: z.ZodString;
1987
+ }, z.core.$strip>>>;
1988
+ encrypted_content: z.ZodOptional<z.ZodString>;
1989
+ status: z.ZodOptional<z.ZodEnum<{
1990
+ in_progress: "in_progress";
1991
+ completed: "completed";
1992
+ incomplete: "incomplete";
1993
+ }>>;
1994
+ extra_content: z.ZodOptional<z.ZodType<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown, z.core.$ZodTypeInternals<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown>>>;
1995
+ }, z.core.$strip>], "type">>;
1996
+ usage: z.ZodNullable<z.ZodObject<{
1997
+ input_tokens: z.ZodNumber;
1998
+ output_tokens: z.ZodNumber;
1999
+ total_tokens: z.ZodNumber;
2000
+ input_tokens_details: z.ZodOptional<z.ZodObject<{
2001
+ cached_tokens: z.ZodOptional<z.ZodNumber>;
2002
+ }, z.core.$strip>>;
2003
+ output_tokens_details: z.ZodOptional<z.ZodObject<{
2004
+ reasoning_tokens: z.ZodOptional<z.ZodNumber>;
2005
+ }, z.core.$strip>>;
2006
+ }, z.core.$strip>>;
2007
+ incomplete_details: z.ZodOptional<z.ZodNullable<z.ZodObject<{
2008
+ reason: z.ZodString;
2009
+ }, z.core.$strip>>>;
2010
+ created_at: z.ZodNumber;
2011
+ completed_at: z.ZodNullable<z.ZodNumber>;
2012
+ service_tier: z.ZodOptional<z.ZodEnum<{
2013
+ default: "default";
2014
+ auto: "auto";
2015
+ flex: "flex";
2016
+ scale: "scale";
2017
+ priority: "priority";
2018
+ }>>;
2019
+ metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
2020
+ provider_metadata: z.ZodOptional<z.ZodType<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown, z.core.$ZodTypeInternals<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown>>>;
2021
+ }, z.core.$strip>;
2022
+ export type Responses = z.infer<typeof ResponsesSchema>;
2023
+ /**
2024
+ * --- Stream Event Types ---
2025
+ */
2026
+ export type ResponseCreatedEvent = SseFrame<{
2027
+ type: "response.created";
2028
+ response: Responses;
2029
+ }, "response.created">;
2030
+ export type ResponseInProgressEvent = SseFrame<{
2031
+ type: "response.in_progress";
2032
+ response: Responses;
2033
+ }, "response.in_progress">;
2034
+ export type ResponseOutputItemAddedEvent = SseFrame<{
2035
+ type: "response.output_item.added";
2036
+ output_index: number;
2037
+ item: ResponsesOutputItem;
2038
+ }, "response.output_item.added">;
2039
+ export type ResponseContentPartAddedEvent = SseFrame<{
2040
+ type: "response.content_part.added";
2041
+ item_id: string;
2042
+ output_index: number;
2043
+ content_index: number;
2044
+ part: ResponsesOutputText;
2045
+ }, "response.content_part.added">;
2046
+ export type ResponseReasoningSummaryPartAddedEvent = SseFrame<{
2047
+ type: "response.reasoning_summary_part.added";
2048
+ item_id: string;
2049
+ output_index: number;
2050
+ summary_index: number;
2051
+ part: ResponsesSummaryText;
2052
+ }, "response.reasoning_summary_part.added">;
2053
+ export type ResponseOutputTextDeltaEvent = SseFrame<{
2054
+ type: "response.output_text.delta";
2055
+ item_id: string;
2056
+ output_index: number;
2057
+ content_index: number;
2058
+ delta: string;
2059
+ }, "response.output_text.delta">;
2060
+ export type ResponseReasoningSummaryTextDeltaEvent = SseFrame<{
2061
+ type: "response.reasoning_summary_text.delta";
2062
+ item_id: string;
2063
+ output_index: number;
2064
+ summary_index: number;
2065
+ delta: string;
2066
+ }, "response.reasoning_summary_text.delta">;
2067
+ export type ResponseContentPartDoneEvent = SseFrame<{
2068
+ type: "response.content_part.done";
2069
+ item_id: string;
2070
+ output_index: number;
2071
+ content_index: number;
2072
+ part: ResponsesOutputText;
2073
+ }, "response.content_part.done">;
2074
+ export type ResponseReasoningSummaryPartDoneEvent = SseFrame<{
2075
+ type: "response.reasoning_summary_part.done";
2076
+ item_id: string;
2077
+ output_index: number;
2078
+ summary_index: number;
2079
+ part: ResponsesSummaryText;
2080
+ }, "response.reasoning_summary_part.done">;
2081
+ export type ResponseOutputItemDoneEvent = SseFrame<{
2082
+ type: "response.output_item.done";
2083
+ output_index: number;
2084
+ item: ResponsesOutputItem;
2085
+ }, "response.output_item.done">;
2086
+ export type ResponseFunctionCallArgumentsDeltaEvent = SseFrame<{
2087
+ type: "response.function_call_arguments.delta";
2088
+ output_index: number;
2089
+ item_id: string;
2090
+ call_id: string;
2091
+ delta: string;
2092
+ }, "response.function_call_arguments.delta">;
2093
+ export type ResponseFunctionCallArgumentsDoneEvent = SseFrame<{
2094
+ type: "response.function_call_arguments.done";
2095
+ output_index: number;
2096
+ item_id: string;
2097
+ call_id: string;
2098
+ arguments: string;
2099
+ }, "response.function_call_arguments.done">;
2100
+ export type ResponseCompletedEvent = SseFrame<{
2101
+ type: "response.completed";
2102
+ response: Responses;
2103
+ }, "response.completed">;
2104
+ export type ResponseFailedEvent = SseFrame<{
2105
+ type: "response.failed";
2106
+ response: Responses;
2107
+ }, "response.failed">;
2108
+ export type ResponsesStreamEvent = ResponseCreatedEvent | ResponseInProgressEvent | ResponseOutputItemAddedEvent | ResponseContentPartAddedEvent | ResponseReasoningSummaryPartAddedEvent | ResponseOutputTextDeltaEvent | ResponseReasoningSummaryTextDeltaEvent | ResponseContentPartDoneEvent | ResponseReasoningSummaryPartDoneEvent | ResponseOutputItemDoneEvent | ResponseFunctionCallArgumentsDeltaEvent | ResponseFunctionCallArgumentsDoneEvent | ResponseCompletedEvent | ResponseFailedEvent;
2109
+ export type ResponsesStream = ReadableStream<ResponsesStreamEvent | SseErrorFrame>;