@hebo-ai/gateway 0.9.1 → 0.9.2

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 (212) hide show
  1. package/README.md +82 -4
  2. package/package.json +31 -31
  3. package/dist/config.d.ts +0 -2
  4. package/dist/config.js +0 -111
  5. package/dist/endpoints/chat-completions/converters.d.ts +0 -26
  6. package/dist/endpoints/chat-completions/converters.js +0 -524
  7. package/dist/endpoints/chat-completions/handler.d.ts +0 -2
  8. package/dist/endpoints/chat-completions/handler.js +0 -149
  9. package/dist/endpoints/chat-completions/index.d.ts +0 -4
  10. package/dist/endpoints/chat-completions/index.js +0 -4
  11. package/dist/endpoints/chat-completions/otel.d.ts +0 -5
  12. package/dist/endpoints/chat-completions/otel.js +0 -175
  13. package/dist/endpoints/chat-completions/schema.d.ts +0 -1170
  14. package/dist/endpoints/chat-completions/schema.js +0 -252
  15. package/dist/endpoints/conversations/converters.d.ts +0 -8
  16. package/dist/endpoints/conversations/converters.js +0 -29
  17. package/dist/endpoints/conversations/handler.d.ts +0 -2
  18. package/dist/endpoints/conversations/handler.js +0 -276
  19. package/dist/endpoints/conversations/index.d.ts +0 -3
  20. package/dist/endpoints/conversations/index.js +0 -3
  21. package/dist/endpoints/conversations/schema.d.ts +0 -1511
  22. package/dist/endpoints/conversations/schema.js +0 -74
  23. package/dist/endpoints/conversations/storage/dialects/greptime.d.ts +0 -10
  24. package/dist/endpoints/conversations/storage/dialects/greptime.js +0 -87
  25. package/dist/endpoints/conversations/storage/dialects/mysql.d.ts +0 -12
  26. package/dist/endpoints/conversations/storage/dialects/mysql.js +0 -118
  27. package/dist/endpoints/conversations/storage/dialects/postgres.d.ts +0 -16
  28. package/dist/endpoints/conversations/storage/dialects/postgres.js +0 -185
  29. package/dist/endpoints/conversations/storage/dialects/sqlite.d.ts +0 -11
  30. package/dist/endpoints/conversations/storage/dialects/sqlite.js +0 -176
  31. package/dist/endpoints/conversations/storage/dialects/types.d.ts +0 -42
  32. package/dist/endpoints/conversations/storage/dialects/types.js +0 -0
  33. package/dist/endpoints/conversations/storage/dialects/utils.d.ts +0 -25
  34. package/dist/endpoints/conversations/storage/dialects/utils.js +0 -80
  35. package/dist/endpoints/conversations/storage/memory.d.ts +0 -25
  36. package/dist/endpoints/conversations/storage/memory.js +0 -200
  37. package/dist/endpoints/conversations/storage/sql.d.ts +0 -33
  38. package/dist/endpoints/conversations/storage/sql.js +0 -278
  39. package/dist/endpoints/conversations/storage/types.d.ts +0 -39
  40. package/dist/endpoints/conversations/storage/types.js +0 -0
  41. package/dist/endpoints/embeddings/converters.d.ts +0 -10
  42. package/dist/endpoints/embeddings/converters.js +0 -31
  43. package/dist/endpoints/embeddings/handler.d.ts +0 -2
  44. package/dist/endpoints/embeddings/handler.js +0 -104
  45. package/dist/endpoints/embeddings/index.d.ts +0 -4
  46. package/dist/endpoints/embeddings/index.js +0 -4
  47. package/dist/endpoints/embeddings/otel.d.ts +0 -5
  48. package/dist/endpoints/embeddings/otel.js +0 -29
  49. package/dist/endpoints/embeddings/schema.d.ts +0 -44
  50. package/dist/endpoints/embeddings/schema.js +0 -29
  51. package/dist/endpoints/models/converters.d.ts +0 -6
  52. package/dist/endpoints/models/converters.js +0 -42
  53. package/dist/endpoints/models/handler.d.ts +0 -2
  54. package/dist/endpoints/models/handler.js +0 -29
  55. package/dist/endpoints/models/index.d.ts +0 -3
  56. package/dist/endpoints/models/index.js +0 -3
  57. package/dist/endpoints/models/schema.d.ts +0 -42
  58. package/dist/endpoints/models/schema.js +0 -31
  59. package/dist/endpoints/responses/converters.d.ts +0 -17
  60. package/dist/endpoints/responses/converters.js +0 -1034
  61. package/dist/endpoints/responses/handler.d.ts +0 -2
  62. package/dist/endpoints/responses/handler.js +0 -137
  63. package/dist/endpoints/responses/index.d.ts +0 -4
  64. package/dist/endpoints/responses/index.js +0 -4
  65. package/dist/endpoints/responses/otel.d.ts +0 -6
  66. package/dist/endpoints/responses/otel.js +0 -221
  67. package/dist/endpoints/responses/schema.d.ts +0 -2109
  68. package/dist/endpoints/responses/schema.js +0 -314
  69. package/dist/endpoints/shared/converters.d.ts +0 -56
  70. package/dist/endpoints/shared/converters.js +0 -179
  71. package/dist/endpoints/shared/schema.d.ts +0 -70
  72. package/dist/endpoints/shared/schema.js +0 -46
  73. package/dist/errors/ai-sdk.d.ts +0 -2
  74. package/dist/errors/ai-sdk.js +0 -52
  75. package/dist/errors/gateway.d.ts +0 -5
  76. package/dist/errors/gateway.js +0 -13
  77. package/dist/errors/openai.d.ts +0 -15
  78. package/dist/errors/openai.js +0 -40
  79. package/dist/errors/utils.d.ts +0 -22
  80. package/dist/errors/utils.js +0 -44
  81. package/dist/gateway.d.ts +0 -11
  82. package/dist/gateway.js +0 -44
  83. package/dist/index.d.ts +0 -11
  84. package/dist/index.js +0 -10
  85. package/dist/lifecycle.d.ts +0 -3
  86. package/dist/lifecycle.js +0 -113
  87. package/dist/logger/default.d.ts +0 -4
  88. package/dist/logger/default.js +0 -81
  89. package/dist/logger/index.d.ts +0 -11
  90. package/dist/logger/index.js +0 -25
  91. package/dist/middleware/common.d.ts +0 -12
  92. package/dist/middleware/common.js +0 -146
  93. package/dist/middleware/debug.d.ts +0 -3
  94. package/dist/middleware/debug.js +0 -27
  95. package/dist/middleware/matcher.d.ts +0 -28
  96. package/dist/middleware/matcher.js +0 -118
  97. package/dist/middleware/utils.d.ts +0 -2
  98. package/dist/middleware/utils.js +0 -24
  99. package/dist/models/amazon/index.d.ts +0 -2
  100. package/dist/models/amazon/index.js +0 -2
  101. package/dist/models/amazon/middleware.d.ts +0 -3
  102. package/dist/models/amazon/middleware.js +0 -68
  103. package/dist/models/amazon/presets.d.ts +0 -345
  104. package/dist/models/amazon/presets.js +0 -80
  105. package/dist/models/anthropic/index.d.ts +0 -2
  106. package/dist/models/anthropic/index.js +0 -2
  107. package/dist/models/anthropic/middleware.d.ts +0 -5
  108. package/dist/models/anthropic/middleware.js +0 -127
  109. package/dist/models/anthropic/presets.d.ts +0 -711
  110. package/dist/models/anthropic/presets.js +0 -140
  111. package/dist/models/catalog.d.ts +0 -4
  112. package/dist/models/catalog.js +0 -8
  113. package/dist/models/cohere/index.d.ts +0 -2
  114. package/dist/models/cohere/index.js +0 -2
  115. package/dist/models/cohere/middleware.d.ts +0 -3
  116. package/dist/models/cohere/middleware.js +0 -62
  117. package/dist/models/cohere/presets.d.ts +0 -411
  118. package/dist/models/cohere/presets.js +0 -134
  119. package/dist/models/google/index.d.ts +0 -2
  120. package/dist/models/google/index.js +0 -2
  121. package/dist/models/google/middleware.d.ts +0 -8
  122. package/dist/models/google/middleware.js +0 -117
  123. package/dist/models/google/presets.d.ts +0 -403
  124. package/dist/models/google/presets.js +0 -88
  125. package/dist/models/meta/index.d.ts +0 -1
  126. package/dist/models/meta/index.js +0 -1
  127. package/dist/models/meta/presets.d.ts +0 -483
  128. package/dist/models/meta/presets.js +0 -105
  129. package/dist/models/openai/index.d.ts +0 -2
  130. package/dist/models/openai/index.js +0 -2
  131. package/dist/models/openai/middleware.d.ts +0 -4
  132. package/dist/models/openai/middleware.js +0 -88
  133. package/dist/models/openai/presets.d.ts +0 -1319
  134. package/dist/models/openai/presets.js +0 -277
  135. package/dist/models/types.d.ts +0 -20
  136. package/dist/models/types.js +0 -92
  137. package/dist/models/voyage/index.d.ts +0 -2
  138. package/dist/models/voyage/index.js +0 -2
  139. package/dist/models/voyage/middleware.d.ts +0 -2
  140. package/dist/models/voyage/middleware.js +0 -19
  141. package/dist/models/voyage/presets.d.ts +0 -436
  142. package/dist/models/voyage/presets.js +0 -85
  143. package/dist/providers/anthropic/canonical.d.ts +0 -3
  144. package/dist/providers/anthropic/canonical.js +0 -9
  145. package/dist/providers/anthropic/index.d.ts +0 -1
  146. package/dist/providers/anthropic/index.js +0 -1
  147. package/dist/providers/bedrock/canonical.d.ts +0 -17
  148. package/dist/providers/bedrock/canonical.js +0 -61
  149. package/dist/providers/bedrock/index.d.ts +0 -2
  150. package/dist/providers/bedrock/index.js +0 -2
  151. package/dist/providers/bedrock/middleware.d.ts +0 -5
  152. package/dist/providers/bedrock/middleware.js +0 -137
  153. package/dist/providers/cohere/canonical.d.ts +0 -3
  154. package/dist/providers/cohere/canonical.js +0 -17
  155. package/dist/providers/cohere/index.d.ts +0 -1
  156. package/dist/providers/cohere/index.js +0 -1
  157. package/dist/providers/groq/canonical.d.ts +0 -3
  158. package/dist/providers/groq/canonical.js +0 -12
  159. package/dist/providers/groq/index.d.ts +0 -2
  160. package/dist/providers/groq/index.js +0 -2
  161. package/dist/providers/groq/middleware.d.ts +0 -2
  162. package/dist/providers/groq/middleware.js +0 -31
  163. package/dist/providers/openai/canonical.d.ts +0 -3
  164. package/dist/providers/openai/canonical.js +0 -8
  165. package/dist/providers/openai/index.d.ts +0 -1
  166. package/dist/providers/openai/index.js +0 -1
  167. package/dist/providers/registry.d.ts +0 -24
  168. package/dist/providers/registry.js +0 -103
  169. package/dist/providers/types.d.ts +0 -7
  170. package/dist/providers/types.js +0 -11
  171. package/dist/providers/vertex/canonical.d.ts +0 -3
  172. package/dist/providers/vertex/canonical.js +0 -8
  173. package/dist/providers/vertex/index.d.ts +0 -2
  174. package/dist/providers/vertex/index.js +0 -2
  175. package/dist/providers/vertex/middleware.d.ts +0 -2
  176. package/dist/providers/vertex/middleware.js +0 -47
  177. package/dist/providers/voyage/canonical.d.ts +0 -3
  178. package/dist/providers/voyage/canonical.js +0 -7
  179. package/dist/providers/voyage/index.d.ts +0 -1
  180. package/dist/providers/voyage/index.js +0 -1
  181. package/dist/telemetry/ai-sdk.d.ts +0 -2
  182. package/dist/telemetry/ai-sdk.js +0 -31
  183. package/dist/telemetry/baggage.d.ts +0 -1
  184. package/dist/telemetry/baggage.js +0 -24
  185. package/dist/telemetry/fetch.d.ts +0 -2
  186. package/dist/telemetry/fetch.js +0 -49
  187. package/dist/telemetry/gen-ai.d.ts +0 -6
  188. package/dist/telemetry/gen-ai.js +0 -78
  189. package/dist/telemetry/http.d.ts +0 -3
  190. package/dist/telemetry/http.js +0 -54
  191. package/dist/telemetry/index.d.ts +0 -1
  192. package/dist/telemetry/index.js +0 -1
  193. package/dist/telemetry/memory.d.ts +0 -2
  194. package/dist/telemetry/memory.js +0 -43
  195. package/dist/telemetry/span.d.ts +0 -13
  196. package/dist/telemetry/span.js +0 -60
  197. package/dist/types.d.ts +0 -216
  198. package/dist/types.js +0 -2
  199. package/dist/utils/env.d.ts +0 -2
  200. package/dist/utils/env.js +0 -7
  201. package/dist/utils/headers.d.ts +0 -4
  202. package/dist/utils/headers.js +0 -22
  203. package/dist/utils/preset.d.ts +0 -10
  204. package/dist/utils/preset.js +0 -41
  205. package/dist/utils/request.d.ts +0 -2
  206. package/dist/utils/request.js +0 -43
  207. package/dist/utils/response.d.ts +0 -6
  208. package/dist/utils/response.js +0 -55
  209. package/dist/utils/stream.d.ts +0 -9
  210. package/dist/utils/stream.js +0 -100
  211. package/dist/utils/url.d.ts +0 -4
  212. package/dist/utils/url.js +0 -21
@@ -1,1511 +0,0 @@
1
- import * as z from "zod";
2
- /**
3
- * --- Entities ---
4
- */
5
- export declare const ConversationItemSchema: z.ZodIntersection<z.ZodObject<{
6
- id: z.ZodString;
7
- object: z.ZodLiteral<"conversation.item">;
8
- created_at: z.ZodNumber;
9
- }, z.core.$loose>, z.ZodDiscriminatedUnion<[z.ZodDiscriminatedUnion<[z.ZodObject<{
10
- type: z.ZodLiteral<"message">;
11
- id: z.ZodOptional<z.ZodString>;
12
- status: z.ZodOptional<z.ZodEnum<{
13
- in_progress: "in_progress";
14
- completed: "completed";
15
- incomplete: "incomplete";
16
- }>>;
17
- extra_content: z.ZodOptional<z.ZodType<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown, z.core.$ZodTypeInternals<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown>>>;
18
- cache_control: z.ZodOptional<z.ZodObject<{
19
- type: z.ZodLiteral<"ephemeral">;
20
- ttl: z.ZodOptional<z.ZodString>;
21
- }, z.core.$strip>>;
22
- role: z.ZodLiteral<"user">;
23
- content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
24
- type: z.ZodLiteral<"input_text">;
25
- text: z.ZodString;
26
- }, z.core.$strip>, z.ZodObject<{
27
- type: z.ZodLiteral<"input_image">;
28
- image_url: z.ZodString;
29
- file_id: z.ZodOptional<z.ZodString>;
30
- detail: z.ZodOptional<z.ZodEnum<{
31
- low: "low";
32
- high: "high";
33
- auto: "auto";
34
- }>>;
35
- }, z.core.$strip>, z.ZodObject<{
36
- type: z.ZodLiteral<"input_image">;
37
- file_id: z.ZodString;
38
- image_url: z.ZodOptional<z.ZodString>;
39
- detail: z.ZodOptional<z.ZodEnum<{
40
- low: "low";
41
- high: "high";
42
- auto: "auto";
43
- }>>;
44
- }, z.core.$strip>, z.ZodObject<{
45
- type: z.ZodLiteral<"input_file">;
46
- file_data: z.ZodString;
47
- file_id: z.ZodOptional<z.ZodString>;
48
- file_url: z.ZodOptional<z.ZodString>;
49
- filename: z.ZodOptional<z.ZodString>;
50
- }, z.core.$strip>, z.ZodObject<{
51
- type: z.ZodLiteral<"input_file">;
52
- file_id: z.ZodString;
53
- file_data: z.ZodOptional<z.ZodString>;
54
- file_url: z.ZodOptional<z.ZodString>;
55
- filename: z.ZodOptional<z.ZodString>;
56
- }, z.core.$strip>, z.ZodObject<{
57
- type: z.ZodLiteral<"input_file">;
58
- file_url: z.ZodString;
59
- file_data: z.ZodOptional<z.ZodString>;
60
- file_id: z.ZodOptional<z.ZodString>;
61
- filename: z.ZodOptional<z.ZodString>;
62
- }, z.core.$strip>, z.ZodObject<{
63
- type: z.ZodLiteral<"input_audio">;
64
- input_audio: z.ZodObject<{
65
- data: z.ZodString;
66
- format: z.ZodEnum<{
67
- "x-aac": "x-aac";
68
- flac: "flac";
69
- mp3: "mp3";
70
- m4a: "m4a";
71
- mpeg: "mpeg";
72
- mpga: "mpga";
73
- mp4: "mp4";
74
- ogg: "ogg";
75
- pcm: "pcm";
76
- wav: "wav";
77
- webm: "webm";
78
- }>;
79
- }, z.core.$strip>;
80
- cache_control: z.ZodOptional<z.ZodObject<{
81
- type: z.ZodLiteral<"ephemeral">;
82
- ttl: z.ZodOptional<z.ZodString>;
83
- }, z.core.$strip>>;
84
- }, z.core.$strip>]>>]>;
85
- }, z.core.$strip>, z.ZodObject<{
86
- type: z.ZodLiteral<"message">;
87
- id: z.ZodOptional<z.ZodString>;
88
- status: z.ZodOptional<z.ZodEnum<{
89
- in_progress: "in_progress";
90
- completed: "completed";
91
- incomplete: "incomplete";
92
- }>>;
93
- extra_content: z.ZodOptional<z.ZodType<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown, z.core.$ZodTypeInternals<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown>>>;
94
- cache_control: z.ZodOptional<z.ZodObject<{
95
- type: z.ZodLiteral<"ephemeral">;
96
- ttl: z.ZodOptional<z.ZodString>;
97
- }, z.core.$strip>>;
98
- role: z.ZodLiteral<"assistant">;
99
- content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodObject<{
100
- type: z.ZodLiteral<"output_text">;
101
- text: z.ZodString;
102
- annotations: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
103
- }, z.core.$strip>>]>;
104
- }, z.core.$strip>, z.ZodObject<{
105
- type: z.ZodLiteral<"message">;
106
- id: z.ZodOptional<z.ZodString>;
107
- status: z.ZodOptional<z.ZodEnum<{
108
- in_progress: "in_progress";
109
- completed: "completed";
110
- incomplete: "incomplete";
111
- }>>;
112
- extra_content: z.ZodOptional<z.ZodType<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown, z.core.$ZodTypeInternals<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown>>>;
113
- cache_control: z.ZodOptional<z.ZodObject<{
114
- type: z.ZodLiteral<"ephemeral">;
115
- ttl: z.ZodOptional<z.ZodString>;
116
- }, z.core.$strip>>;
117
- role: z.ZodLiteral<"system">;
118
- content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
119
- type: z.ZodLiteral<"input_text">;
120
- text: z.ZodString;
121
- }, z.core.$strip>, z.ZodObject<{
122
- type: z.ZodLiteral<"input_image">;
123
- image_url: z.ZodString;
124
- file_id: z.ZodOptional<z.ZodString>;
125
- detail: z.ZodOptional<z.ZodEnum<{
126
- low: "low";
127
- high: "high";
128
- auto: "auto";
129
- }>>;
130
- }, z.core.$strip>, z.ZodObject<{
131
- type: z.ZodLiteral<"input_image">;
132
- file_id: z.ZodString;
133
- image_url: z.ZodOptional<z.ZodString>;
134
- detail: z.ZodOptional<z.ZodEnum<{
135
- low: "low";
136
- high: "high";
137
- auto: "auto";
138
- }>>;
139
- }, z.core.$strip>, z.ZodObject<{
140
- type: z.ZodLiteral<"input_file">;
141
- file_data: z.ZodString;
142
- file_id: z.ZodOptional<z.ZodString>;
143
- file_url: z.ZodOptional<z.ZodString>;
144
- filename: z.ZodOptional<z.ZodString>;
145
- }, z.core.$strip>, z.ZodObject<{
146
- type: z.ZodLiteral<"input_file">;
147
- file_id: z.ZodString;
148
- file_data: z.ZodOptional<z.ZodString>;
149
- file_url: z.ZodOptional<z.ZodString>;
150
- filename: z.ZodOptional<z.ZodString>;
151
- }, z.core.$strip>, z.ZodObject<{
152
- type: z.ZodLiteral<"input_file">;
153
- file_url: z.ZodString;
154
- file_data: z.ZodOptional<z.ZodString>;
155
- file_id: z.ZodOptional<z.ZodString>;
156
- filename: z.ZodOptional<z.ZodString>;
157
- }, z.core.$strip>, z.ZodObject<{
158
- type: z.ZodLiteral<"input_audio">;
159
- input_audio: z.ZodObject<{
160
- data: z.ZodString;
161
- format: z.ZodEnum<{
162
- "x-aac": "x-aac";
163
- flac: "flac";
164
- mp3: "mp3";
165
- m4a: "m4a";
166
- mpeg: "mpeg";
167
- mpga: "mpga";
168
- mp4: "mp4";
169
- ogg: "ogg";
170
- pcm: "pcm";
171
- wav: "wav";
172
- webm: "webm";
173
- }>;
174
- }, z.core.$strip>;
175
- cache_control: z.ZodOptional<z.ZodObject<{
176
- type: z.ZodLiteral<"ephemeral">;
177
- ttl: z.ZodOptional<z.ZodString>;
178
- }, z.core.$strip>>;
179
- }, z.core.$strip>]>>]>;
180
- }, z.core.$strip>, z.ZodObject<{
181
- type: z.ZodLiteral<"message">;
182
- id: z.ZodOptional<z.ZodString>;
183
- status: z.ZodOptional<z.ZodEnum<{
184
- in_progress: "in_progress";
185
- completed: "completed";
186
- incomplete: "incomplete";
187
- }>>;
188
- extra_content: z.ZodOptional<z.ZodType<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown, z.core.$ZodTypeInternals<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown>>>;
189
- cache_control: z.ZodOptional<z.ZodObject<{
190
- type: z.ZodLiteral<"ephemeral">;
191
- ttl: z.ZodOptional<z.ZodString>;
192
- }, z.core.$strip>>;
193
- role: z.ZodLiteral<"developer">;
194
- content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
195
- type: z.ZodLiteral<"input_text">;
196
- text: z.ZodString;
197
- }, z.core.$strip>, z.ZodObject<{
198
- type: z.ZodLiteral<"input_image">;
199
- image_url: z.ZodString;
200
- file_id: z.ZodOptional<z.ZodString>;
201
- detail: z.ZodOptional<z.ZodEnum<{
202
- low: "low";
203
- high: "high";
204
- auto: "auto";
205
- }>>;
206
- }, z.core.$strip>, z.ZodObject<{
207
- type: z.ZodLiteral<"input_image">;
208
- file_id: z.ZodString;
209
- image_url: z.ZodOptional<z.ZodString>;
210
- detail: z.ZodOptional<z.ZodEnum<{
211
- low: "low";
212
- high: "high";
213
- auto: "auto";
214
- }>>;
215
- }, z.core.$strip>, z.ZodObject<{
216
- type: z.ZodLiteral<"input_file">;
217
- file_data: z.ZodString;
218
- file_id: z.ZodOptional<z.ZodString>;
219
- file_url: z.ZodOptional<z.ZodString>;
220
- filename: z.ZodOptional<z.ZodString>;
221
- }, z.core.$strip>, z.ZodObject<{
222
- type: z.ZodLiteral<"input_file">;
223
- file_id: z.ZodString;
224
- file_data: z.ZodOptional<z.ZodString>;
225
- file_url: z.ZodOptional<z.ZodString>;
226
- filename: z.ZodOptional<z.ZodString>;
227
- }, z.core.$strip>, z.ZodObject<{
228
- type: z.ZodLiteral<"input_file">;
229
- file_url: z.ZodString;
230
- file_data: z.ZodOptional<z.ZodString>;
231
- file_id: z.ZodOptional<z.ZodString>;
232
- filename: z.ZodOptional<z.ZodString>;
233
- }, z.core.$strip>, z.ZodObject<{
234
- type: z.ZodLiteral<"input_audio">;
235
- input_audio: z.ZodObject<{
236
- data: z.ZodString;
237
- format: z.ZodEnum<{
238
- "x-aac": "x-aac";
239
- flac: "flac";
240
- mp3: "mp3";
241
- m4a: "m4a";
242
- mpeg: "mpeg";
243
- mpga: "mpga";
244
- mp4: "mp4";
245
- ogg: "ogg";
246
- pcm: "pcm";
247
- wav: "wav";
248
- webm: "webm";
249
- }>;
250
- }, z.core.$strip>;
251
- cache_control: z.ZodOptional<z.ZodObject<{
252
- type: z.ZodLiteral<"ephemeral">;
253
- ttl: z.ZodOptional<z.ZodString>;
254
- }, z.core.$strip>>;
255
- }, z.core.$strip>]>>]>;
256
- }, z.core.$strip>], "role">, z.ZodObject<{
257
- type: z.ZodLiteral<"function_call">;
258
- id: z.ZodOptional<z.ZodString>;
259
- call_id: z.ZodString;
260
- name: z.ZodString;
261
- arguments: z.ZodString;
262
- status: z.ZodOptional<z.ZodEnum<{
263
- in_progress: "in_progress";
264
- completed: "completed";
265
- incomplete: "incomplete";
266
- }>>;
267
- extra_content: z.ZodOptional<z.ZodType<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown, z.core.$ZodTypeInternals<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown>>>;
268
- cache_control: z.ZodOptional<z.ZodObject<{
269
- type: z.ZodLiteral<"ephemeral">;
270
- ttl: z.ZodOptional<z.ZodString>;
271
- }, z.core.$strip>>;
272
- }, z.core.$strip>, z.ZodObject<{
273
- type: z.ZodLiteral<"function_call_output">;
274
- id: z.ZodOptional<z.ZodString>;
275
- call_id: z.ZodString;
276
- output: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
277
- type: z.ZodLiteral<"input_text">;
278
- text: z.ZodString;
279
- }, z.core.$strip>, z.ZodObject<{
280
- type: z.ZodLiteral<"input_image">;
281
- image_url: z.ZodString;
282
- file_id: z.ZodOptional<z.ZodString>;
283
- detail: z.ZodOptional<z.ZodEnum<{
284
- low: "low";
285
- high: "high";
286
- auto: "auto";
287
- }>>;
288
- }, z.core.$strip>, z.ZodObject<{
289
- type: z.ZodLiteral<"input_image">;
290
- file_id: z.ZodString;
291
- image_url: z.ZodOptional<z.ZodString>;
292
- detail: z.ZodOptional<z.ZodEnum<{
293
- low: "low";
294
- high: "high";
295
- auto: "auto";
296
- }>>;
297
- }, z.core.$strip>, z.ZodObject<{
298
- type: z.ZodLiteral<"input_file">;
299
- file_data: z.ZodString;
300
- file_id: z.ZodOptional<z.ZodString>;
301
- file_url: z.ZodOptional<z.ZodString>;
302
- filename: z.ZodOptional<z.ZodString>;
303
- }, z.core.$strip>, z.ZodObject<{
304
- type: z.ZodLiteral<"input_file">;
305
- file_id: z.ZodString;
306
- file_data: z.ZodOptional<z.ZodString>;
307
- file_url: z.ZodOptional<z.ZodString>;
308
- filename: z.ZodOptional<z.ZodString>;
309
- }, z.core.$strip>, z.ZodObject<{
310
- type: z.ZodLiteral<"input_file">;
311
- file_url: z.ZodString;
312
- file_data: z.ZodOptional<z.ZodString>;
313
- file_id: z.ZodOptional<z.ZodString>;
314
- filename: z.ZodOptional<z.ZodString>;
315
- }, z.core.$strip>, z.ZodObject<{
316
- type: z.ZodLiteral<"input_audio">;
317
- input_audio: z.ZodObject<{
318
- data: z.ZodString;
319
- format: z.ZodEnum<{
320
- "x-aac": "x-aac";
321
- flac: "flac";
322
- mp3: "mp3";
323
- m4a: "m4a";
324
- mpeg: "mpeg";
325
- mpga: "mpga";
326
- mp4: "mp4";
327
- ogg: "ogg";
328
- pcm: "pcm";
329
- wav: "wav";
330
- webm: "webm";
331
- }>;
332
- }, z.core.$strip>;
333
- cache_control: z.ZodOptional<z.ZodObject<{
334
- type: z.ZodLiteral<"ephemeral">;
335
- ttl: z.ZodOptional<z.ZodString>;
336
- }, z.core.$strip>>;
337
- }, z.core.$strip>]>>]>;
338
- status: z.ZodOptional<z.ZodEnum<{
339
- in_progress: "in_progress";
340
- completed: "completed";
341
- incomplete: "incomplete";
342
- }>>;
343
- extra_content: z.ZodOptional<z.ZodType<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown, z.core.$ZodTypeInternals<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown>>>;
344
- cache_control: z.ZodOptional<z.ZodObject<{
345
- type: z.ZodLiteral<"ephemeral">;
346
- ttl: z.ZodOptional<z.ZodString>;
347
- }, z.core.$strip>>;
348
- }, z.core.$strip>, z.ZodObject<{
349
- type: z.ZodLiteral<"reasoning">;
350
- id: z.ZodOptional<z.ZodString>;
351
- summary: z.ZodArray<z.ZodObject<{
352
- type: z.ZodLiteral<"summary_text">;
353
- text: z.ZodString;
354
- }, z.core.$strip>>;
355
- content: z.ZodOptional<z.ZodArray<z.ZodObject<{
356
- type: z.ZodLiteral<"reasoning_text">;
357
- text: z.ZodString;
358
- }, z.core.$strip>>>;
359
- encrypted_content: z.ZodOptional<z.ZodString>;
360
- status: z.ZodOptional<z.ZodEnum<{
361
- in_progress: "in_progress";
362
- completed: "completed";
363
- incomplete: "incomplete";
364
- }>>;
365
- extra_content: z.ZodOptional<z.ZodType<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown, z.core.$ZodTypeInternals<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown>>>;
366
- }, z.core.$strip>], "type">>;
367
- export type ConversationItem = z.infer<typeof ConversationItemSchema>;
368
- export declare const ConversationSchema: z.ZodObject<{
369
- id: z.ZodString;
370
- object: z.ZodLiteral<"conversation">;
371
- created_at: z.ZodNumber;
372
- metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
373
- }, z.core.$strip>;
374
- export type Conversation = z.infer<typeof ConversationSchema>;
375
- export declare const ConversationDeletedSchema: z.ZodObject<{
376
- id: z.ZodString;
377
- deleted: z.ZodBoolean;
378
- object: z.ZodLiteral<"conversation.deleted">;
379
- }, z.core.$strip>;
380
- export type ConversationDeleted = z.infer<typeof ConversationDeletedSchema>;
381
- /**
382
- * --- API ---
383
- */
384
- export declare const ConversationCreateParamsSchema: z.ZodObject<{
385
- items: z.ZodOptional<z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodDiscriminatedUnion<[z.ZodObject<{
386
- type: z.ZodLiteral<"message">;
387
- id: z.ZodOptional<z.ZodString>;
388
- status: z.ZodOptional<z.ZodEnum<{
389
- in_progress: "in_progress";
390
- completed: "completed";
391
- incomplete: "incomplete";
392
- }>>;
393
- extra_content: z.ZodOptional<z.ZodType<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown, z.core.$ZodTypeInternals<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown>>>;
394
- cache_control: z.ZodOptional<z.ZodObject<{
395
- type: z.ZodLiteral<"ephemeral">;
396
- ttl: z.ZodOptional<z.ZodString>;
397
- }, z.core.$strip>>;
398
- role: z.ZodLiteral<"user">;
399
- content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
400
- type: z.ZodLiteral<"input_text">;
401
- text: z.ZodString;
402
- }, z.core.$strip>, z.ZodObject<{
403
- type: z.ZodLiteral<"input_image">;
404
- image_url: z.ZodString;
405
- file_id: z.ZodOptional<z.ZodString>;
406
- detail: z.ZodOptional<z.ZodEnum<{
407
- low: "low";
408
- high: "high";
409
- auto: "auto";
410
- }>>;
411
- }, z.core.$strip>, z.ZodObject<{
412
- type: z.ZodLiteral<"input_image">;
413
- file_id: z.ZodString;
414
- image_url: 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_file">;
422
- file_data: z.ZodString;
423
- file_id: z.ZodOptional<z.ZodString>;
424
- file_url: z.ZodOptional<z.ZodString>;
425
- filename: z.ZodOptional<z.ZodString>;
426
- }, z.core.$strip>, z.ZodObject<{
427
- type: z.ZodLiteral<"input_file">;
428
- file_id: z.ZodString;
429
- file_data: z.ZodOptional<z.ZodString>;
430
- file_url: z.ZodOptional<z.ZodString>;
431
- filename: z.ZodOptional<z.ZodString>;
432
- }, z.core.$strip>, z.ZodObject<{
433
- type: z.ZodLiteral<"input_file">;
434
- file_url: z.ZodString;
435
- file_data: z.ZodOptional<z.ZodString>;
436
- file_id: z.ZodOptional<z.ZodString>;
437
- filename: z.ZodOptional<z.ZodString>;
438
- }, z.core.$strip>, z.ZodObject<{
439
- type: z.ZodLiteral<"input_audio">;
440
- input_audio: z.ZodObject<{
441
- data: z.ZodString;
442
- format: z.ZodEnum<{
443
- "x-aac": "x-aac";
444
- flac: "flac";
445
- mp3: "mp3";
446
- m4a: "m4a";
447
- mpeg: "mpeg";
448
- mpga: "mpga";
449
- mp4: "mp4";
450
- ogg: "ogg";
451
- pcm: "pcm";
452
- wav: "wav";
453
- webm: "webm";
454
- }>;
455
- }, z.core.$strip>;
456
- cache_control: z.ZodOptional<z.ZodObject<{
457
- type: z.ZodLiteral<"ephemeral">;
458
- ttl: z.ZodOptional<z.ZodString>;
459
- }, z.core.$strip>>;
460
- }, z.core.$strip>]>>]>;
461
- }, z.core.$strip>, z.ZodObject<{
462
- type: z.ZodLiteral<"message">;
463
- id: z.ZodOptional<z.ZodString>;
464
- status: z.ZodOptional<z.ZodEnum<{
465
- in_progress: "in_progress";
466
- completed: "completed";
467
- incomplete: "incomplete";
468
- }>>;
469
- extra_content: z.ZodOptional<z.ZodType<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown, z.core.$ZodTypeInternals<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown>>>;
470
- cache_control: z.ZodOptional<z.ZodObject<{
471
- type: z.ZodLiteral<"ephemeral">;
472
- ttl: z.ZodOptional<z.ZodString>;
473
- }, z.core.$strip>>;
474
- role: z.ZodLiteral<"assistant">;
475
- content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodObject<{
476
- type: z.ZodLiteral<"output_text">;
477
- text: z.ZodString;
478
- annotations: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
479
- }, z.core.$strip>>]>;
480
- }, z.core.$strip>, z.ZodObject<{
481
- type: z.ZodLiteral<"message">;
482
- id: z.ZodOptional<z.ZodString>;
483
- status: z.ZodOptional<z.ZodEnum<{
484
- in_progress: "in_progress";
485
- completed: "completed";
486
- incomplete: "incomplete";
487
- }>>;
488
- extra_content: z.ZodOptional<z.ZodType<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown, z.core.$ZodTypeInternals<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown>>>;
489
- cache_control: z.ZodOptional<z.ZodObject<{
490
- type: z.ZodLiteral<"ephemeral">;
491
- ttl: z.ZodOptional<z.ZodString>;
492
- }, z.core.$strip>>;
493
- role: z.ZodLiteral<"system">;
494
- content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
495
- type: z.ZodLiteral<"input_text">;
496
- text: z.ZodString;
497
- }, z.core.$strip>, z.ZodObject<{
498
- type: z.ZodLiteral<"input_image">;
499
- image_url: z.ZodString;
500
- file_id: z.ZodOptional<z.ZodString>;
501
- detail: z.ZodOptional<z.ZodEnum<{
502
- low: "low";
503
- high: "high";
504
- auto: "auto";
505
- }>>;
506
- }, z.core.$strip>, z.ZodObject<{
507
- type: z.ZodLiteral<"input_image">;
508
- file_id: z.ZodString;
509
- image_url: z.ZodOptional<z.ZodString>;
510
- detail: z.ZodOptional<z.ZodEnum<{
511
- low: "low";
512
- high: "high";
513
- auto: "auto";
514
- }>>;
515
- }, z.core.$strip>, z.ZodObject<{
516
- type: z.ZodLiteral<"input_file">;
517
- file_data: z.ZodString;
518
- file_id: z.ZodOptional<z.ZodString>;
519
- file_url: z.ZodOptional<z.ZodString>;
520
- filename: z.ZodOptional<z.ZodString>;
521
- }, z.core.$strip>, z.ZodObject<{
522
- type: z.ZodLiteral<"input_file">;
523
- file_id: z.ZodString;
524
- file_data: z.ZodOptional<z.ZodString>;
525
- file_url: z.ZodOptional<z.ZodString>;
526
- filename: z.ZodOptional<z.ZodString>;
527
- }, z.core.$strip>, z.ZodObject<{
528
- type: z.ZodLiteral<"input_file">;
529
- file_url: z.ZodString;
530
- file_data: z.ZodOptional<z.ZodString>;
531
- file_id: z.ZodOptional<z.ZodString>;
532
- filename: z.ZodOptional<z.ZodString>;
533
- }, z.core.$strip>, z.ZodObject<{
534
- type: z.ZodLiteral<"input_audio">;
535
- input_audio: z.ZodObject<{
536
- data: z.ZodString;
537
- format: z.ZodEnum<{
538
- "x-aac": "x-aac";
539
- flac: "flac";
540
- mp3: "mp3";
541
- m4a: "m4a";
542
- mpeg: "mpeg";
543
- mpga: "mpga";
544
- mp4: "mp4";
545
- ogg: "ogg";
546
- pcm: "pcm";
547
- wav: "wav";
548
- webm: "webm";
549
- }>;
550
- }, z.core.$strip>;
551
- cache_control: z.ZodOptional<z.ZodObject<{
552
- type: z.ZodLiteral<"ephemeral">;
553
- ttl: z.ZodOptional<z.ZodString>;
554
- }, z.core.$strip>>;
555
- }, z.core.$strip>]>>]>;
556
- }, z.core.$strip>, z.ZodObject<{
557
- type: z.ZodLiteral<"message">;
558
- id: z.ZodOptional<z.ZodString>;
559
- status: z.ZodOptional<z.ZodEnum<{
560
- in_progress: "in_progress";
561
- completed: "completed";
562
- incomplete: "incomplete";
563
- }>>;
564
- extra_content: z.ZodOptional<z.ZodType<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown, z.core.$ZodTypeInternals<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown>>>;
565
- cache_control: z.ZodOptional<z.ZodObject<{
566
- type: z.ZodLiteral<"ephemeral">;
567
- ttl: z.ZodOptional<z.ZodString>;
568
- }, z.core.$strip>>;
569
- role: z.ZodLiteral<"developer">;
570
- content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
571
- type: z.ZodLiteral<"input_text">;
572
- text: z.ZodString;
573
- }, z.core.$strip>, z.ZodObject<{
574
- type: z.ZodLiteral<"input_image">;
575
- image_url: z.ZodString;
576
- file_id: z.ZodOptional<z.ZodString>;
577
- detail: z.ZodOptional<z.ZodEnum<{
578
- low: "low";
579
- high: "high";
580
- auto: "auto";
581
- }>>;
582
- }, z.core.$strip>, z.ZodObject<{
583
- type: z.ZodLiteral<"input_image">;
584
- file_id: z.ZodString;
585
- image_url: z.ZodOptional<z.ZodString>;
586
- detail: z.ZodOptional<z.ZodEnum<{
587
- low: "low";
588
- high: "high";
589
- auto: "auto";
590
- }>>;
591
- }, z.core.$strip>, z.ZodObject<{
592
- type: z.ZodLiteral<"input_file">;
593
- file_data: z.ZodString;
594
- file_id: z.ZodOptional<z.ZodString>;
595
- file_url: z.ZodOptional<z.ZodString>;
596
- filename: z.ZodOptional<z.ZodString>;
597
- }, z.core.$strip>, z.ZodObject<{
598
- type: z.ZodLiteral<"input_file">;
599
- file_id: z.ZodString;
600
- file_data: z.ZodOptional<z.ZodString>;
601
- file_url: z.ZodOptional<z.ZodString>;
602
- filename: z.ZodOptional<z.ZodString>;
603
- }, z.core.$strip>, z.ZodObject<{
604
- type: z.ZodLiteral<"input_file">;
605
- file_url: z.ZodString;
606
- file_data: z.ZodOptional<z.ZodString>;
607
- file_id: z.ZodOptional<z.ZodString>;
608
- filename: z.ZodOptional<z.ZodString>;
609
- }, z.core.$strip>, z.ZodObject<{
610
- type: z.ZodLiteral<"input_audio">;
611
- input_audio: z.ZodObject<{
612
- data: z.ZodString;
613
- format: z.ZodEnum<{
614
- "x-aac": "x-aac";
615
- flac: "flac";
616
- mp3: "mp3";
617
- m4a: "m4a";
618
- mpeg: "mpeg";
619
- mpga: "mpga";
620
- mp4: "mp4";
621
- ogg: "ogg";
622
- pcm: "pcm";
623
- wav: "wav";
624
- webm: "webm";
625
- }>;
626
- }, z.core.$strip>;
627
- cache_control: z.ZodOptional<z.ZodObject<{
628
- type: z.ZodLiteral<"ephemeral">;
629
- ttl: z.ZodOptional<z.ZodString>;
630
- }, z.core.$strip>>;
631
- }, z.core.$strip>]>>]>;
632
- }, z.core.$strip>], "role">, z.ZodObject<{
633
- type: z.ZodLiteral<"function_call">;
634
- id: z.ZodOptional<z.ZodString>;
635
- call_id: z.ZodString;
636
- name: z.ZodString;
637
- arguments: z.ZodString;
638
- status: z.ZodOptional<z.ZodEnum<{
639
- in_progress: "in_progress";
640
- completed: "completed";
641
- incomplete: "incomplete";
642
- }>>;
643
- extra_content: z.ZodOptional<z.ZodType<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown, z.core.$ZodTypeInternals<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown>>>;
644
- cache_control: z.ZodOptional<z.ZodObject<{
645
- type: z.ZodLiteral<"ephemeral">;
646
- ttl: z.ZodOptional<z.ZodString>;
647
- }, z.core.$strip>>;
648
- }, z.core.$strip>, z.ZodObject<{
649
- type: z.ZodLiteral<"function_call_output">;
650
- id: z.ZodOptional<z.ZodString>;
651
- call_id: z.ZodString;
652
- output: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
653
- type: z.ZodLiteral<"input_text">;
654
- text: z.ZodString;
655
- }, z.core.$strip>, z.ZodObject<{
656
- type: z.ZodLiteral<"input_image">;
657
- image_url: z.ZodString;
658
- file_id: z.ZodOptional<z.ZodString>;
659
- detail: z.ZodOptional<z.ZodEnum<{
660
- low: "low";
661
- high: "high";
662
- auto: "auto";
663
- }>>;
664
- }, z.core.$strip>, z.ZodObject<{
665
- type: z.ZodLiteral<"input_image">;
666
- file_id: z.ZodString;
667
- image_url: z.ZodOptional<z.ZodString>;
668
- detail: z.ZodOptional<z.ZodEnum<{
669
- low: "low";
670
- high: "high";
671
- auto: "auto";
672
- }>>;
673
- }, z.core.$strip>, z.ZodObject<{
674
- type: z.ZodLiteral<"input_file">;
675
- file_data: z.ZodString;
676
- file_id: z.ZodOptional<z.ZodString>;
677
- file_url: z.ZodOptional<z.ZodString>;
678
- filename: z.ZodOptional<z.ZodString>;
679
- }, z.core.$strip>, z.ZodObject<{
680
- type: z.ZodLiteral<"input_file">;
681
- file_id: z.ZodString;
682
- file_data: z.ZodOptional<z.ZodString>;
683
- file_url: z.ZodOptional<z.ZodString>;
684
- filename: z.ZodOptional<z.ZodString>;
685
- }, z.core.$strip>, z.ZodObject<{
686
- type: z.ZodLiteral<"input_file">;
687
- file_url: z.ZodString;
688
- file_data: z.ZodOptional<z.ZodString>;
689
- file_id: z.ZodOptional<z.ZodString>;
690
- filename: z.ZodOptional<z.ZodString>;
691
- }, z.core.$strip>, z.ZodObject<{
692
- type: z.ZodLiteral<"input_audio">;
693
- input_audio: z.ZodObject<{
694
- data: z.ZodString;
695
- format: z.ZodEnum<{
696
- "x-aac": "x-aac";
697
- flac: "flac";
698
- mp3: "mp3";
699
- m4a: "m4a";
700
- mpeg: "mpeg";
701
- mpga: "mpga";
702
- mp4: "mp4";
703
- ogg: "ogg";
704
- pcm: "pcm";
705
- wav: "wav";
706
- webm: "webm";
707
- }>;
708
- }, z.core.$strip>;
709
- cache_control: z.ZodOptional<z.ZodObject<{
710
- type: z.ZodLiteral<"ephemeral">;
711
- ttl: z.ZodOptional<z.ZodString>;
712
- }, z.core.$strip>>;
713
- }, z.core.$strip>]>>]>;
714
- status: z.ZodOptional<z.ZodEnum<{
715
- in_progress: "in_progress";
716
- completed: "completed";
717
- incomplete: "incomplete";
718
- }>>;
719
- extra_content: z.ZodOptional<z.ZodType<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown, z.core.$ZodTypeInternals<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown>>>;
720
- cache_control: z.ZodOptional<z.ZodObject<{
721
- type: z.ZodLiteral<"ephemeral">;
722
- ttl: z.ZodOptional<z.ZodString>;
723
- }, z.core.$strip>>;
724
- }, z.core.$strip>, z.ZodObject<{
725
- type: z.ZodLiteral<"reasoning">;
726
- id: z.ZodOptional<z.ZodString>;
727
- summary: z.ZodArray<z.ZodObject<{
728
- type: z.ZodLiteral<"summary_text">;
729
- text: z.ZodString;
730
- }, z.core.$strip>>;
731
- content: z.ZodOptional<z.ZodArray<z.ZodObject<{
732
- type: z.ZodLiteral<"reasoning_text">;
733
- text: z.ZodString;
734
- }, z.core.$strip>>>;
735
- encrypted_content: z.ZodOptional<z.ZodString>;
736
- status: z.ZodOptional<z.ZodEnum<{
737
- in_progress: "in_progress";
738
- completed: "completed";
739
- incomplete: "incomplete";
740
- }>>;
741
- extra_content: z.ZodOptional<z.ZodType<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown, z.core.$ZodTypeInternals<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown>>>;
742
- }, z.core.$strip>], "type">>>;
743
- metadata: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>>;
744
- }, z.core.$strip>;
745
- export type ConversationCreateParams = z.infer<typeof ConversationCreateParamsSchema>;
746
- export declare const ConversationUpdateBodySchema: z.ZodObject<{
747
- metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
748
- }, z.core.$strip>;
749
- export type ConversationUpdateBody = z.infer<typeof ConversationUpdateBodySchema>;
750
- export declare const ConversationItemsAddBodySchema: z.ZodObject<{
751
- items: z.ZodArray<z.ZodDiscriminatedUnion<[z.ZodDiscriminatedUnion<[z.ZodObject<{
752
- type: z.ZodLiteral<"message">;
753
- id: z.ZodOptional<z.ZodString>;
754
- status: z.ZodOptional<z.ZodEnum<{
755
- in_progress: "in_progress";
756
- completed: "completed";
757
- incomplete: "incomplete";
758
- }>>;
759
- extra_content: z.ZodOptional<z.ZodType<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown, z.core.$ZodTypeInternals<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown>>>;
760
- cache_control: z.ZodOptional<z.ZodObject<{
761
- type: z.ZodLiteral<"ephemeral">;
762
- ttl: z.ZodOptional<z.ZodString>;
763
- }, z.core.$strip>>;
764
- role: z.ZodLiteral<"user">;
765
- content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
766
- type: z.ZodLiteral<"input_text">;
767
- text: z.ZodString;
768
- }, z.core.$strip>, z.ZodObject<{
769
- type: z.ZodLiteral<"input_image">;
770
- image_url: z.ZodString;
771
- file_id: z.ZodOptional<z.ZodString>;
772
- detail: z.ZodOptional<z.ZodEnum<{
773
- low: "low";
774
- high: "high";
775
- auto: "auto";
776
- }>>;
777
- }, z.core.$strip>, z.ZodObject<{
778
- type: z.ZodLiteral<"input_image">;
779
- file_id: z.ZodString;
780
- image_url: z.ZodOptional<z.ZodString>;
781
- detail: z.ZodOptional<z.ZodEnum<{
782
- low: "low";
783
- high: "high";
784
- auto: "auto";
785
- }>>;
786
- }, z.core.$strip>, z.ZodObject<{
787
- type: z.ZodLiteral<"input_file">;
788
- file_data: z.ZodString;
789
- file_id: z.ZodOptional<z.ZodString>;
790
- file_url: z.ZodOptional<z.ZodString>;
791
- filename: z.ZodOptional<z.ZodString>;
792
- }, z.core.$strip>, z.ZodObject<{
793
- type: z.ZodLiteral<"input_file">;
794
- file_id: z.ZodString;
795
- file_data: z.ZodOptional<z.ZodString>;
796
- file_url: z.ZodOptional<z.ZodString>;
797
- filename: z.ZodOptional<z.ZodString>;
798
- }, z.core.$strip>, z.ZodObject<{
799
- type: z.ZodLiteral<"input_file">;
800
- file_url: z.ZodString;
801
- file_data: z.ZodOptional<z.ZodString>;
802
- file_id: z.ZodOptional<z.ZodString>;
803
- filename: z.ZodOptional<z.ZodString>;
804
- }, z.core.$strip>, z.ZodObject<{
805
- type: z.ZodLiteral<"input_audio">;
806
- input_audio: z.ZodObject<{
807
- data: z.ZodString;
808
- format: z.ZodEnum<{
809
- "x-aac": "x-aac";
810
- flac: "flac";
811
- mp3: "mp3";
812
- m4a: "m4a";
813
- mpeg: "mpeg";
814
- mpga: "mpga";
815
- mp4: "mp4";
816
- ogg: "ogg";
817
- pcm: "pcm";
818
- wav: "wav";
819
- webm: "webm";
820
- }>;
821
- }, z.core.$strip>;
822
- cache_control: z.ZodOptional<z.ZodObject<{
823
- type: z.ZodLiteral<"ephemeral">;
824
- ttl: z.ZodOptional<z.ZodString>;
825
- }, z.core.$strip>>;
826
- }, z.core.$strip>]>>]>;
827
- }, z.core.$strip>, z.ZodObject<{
828
- type: z.ZodLiteral<"message">;
829
- id: z.ZodOptional<z.ZodString>;
830
- status: z.ZodOptional<z.ZodEnum<{
831
- in_progress: "in_progress";
832
- completed: "completed";
833
- incomplete: "incomplete";
834
- }>>;
835
- extra_content: z.ZodOptional<z.ZodType<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown, z.core.$ZodTypeInternals<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown>>>;
836
- cache_control: z.ZodOptional<z.ZodObject<{
837
- type: z.ZodLiteral<"ephemeral">;
838
- ttl: z.ZodOptional<z.ZodString>;
839
- }, z.core.$strip>>;
840
- role: z.ZodLiteral<"assistant">;
841
- content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodObject<{
842
- type: z.ZodLiteral<"output_text">;
843
- text: z.ZodString;
844
- annotations: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
845
- }, z.core.$strip>>]>;
846
- }, z.core.$strip>, z.ZodObject<{
847
- type: z.ZodLiteral<"message">;
848
- id: z.ZodOptional<z.ZodString>;
849
- status: z.ZodOptional<z.ZodEnum<{
850
- in_progress: "in_progress";
851
- completed: "completed";
852
- incomplete: "incomplete";
853
- }>>;
854
- extra_content: z.ZodOptional<z.ZodType<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown, z.core.$ZodTypeInternals<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown>>>;
855
- cache_control: z.ZodOptional<z.ZodObject<{
856
- type: z.ZodLiteral<"ephemeral">;
857
- ttl: z.ZodOptional<z.ZodString>;
858
- }, z.core.$strip>>;
859
- role: z.ZodLiteral<"system">;
860
- content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
861
- type: z.ZodLiteral<"input_text">;
862
- text: z.ZodString;
863
- }, z.core.$strip>, z.ZodObject<{
864
- type: z.ZodLiteral<"input_image">;
865
- image_url: z.ZodString;
866
- file_id: z.ZodOptional<z.ZodString>;
867
- detail: z.ZodOptional<z.ZodEnum<{
868
- low: "low";
869
- high: "high";
870
- auto: "auto";
871
- }>>;
872
- }, z.core.$strip>, z.ZodObject<{
873
- type: z.ZodLiteral<"input_image">;
874
- file_id: z.ZodString;
875
- image_url: z.ZodOptional<z.ZodString>;
876
- detail: z.ZodOptional<z.ZodEnum<{
877
- low: "low";
878
- high: "high";
879
- auto: "auto";
880
- }>>;
881
- }, z.core.$strip>, z.ZodObject<{
882
- type: z.ZodLiteral<"input_file">;
883
- file_data: z.ZodString;
884
- file_id: z.ZodOptional<z.ZodString>;
885
- file_url: z.ZodOptional<z.ZodString>;
886
- filename: z.ZodOptional<z.ZodString>;
887
- }, z.core.$strip>, z.ZodObject<{
888
- type: z.ZodLiteral<"input_file">;
889
- file_id: z.ZodString;
890
- file_data: z.ZodOptional<z.ZodString>;
891
- file_url: z.ZodOptional<z.ZodString>;
892
- filename: z.ZodOptional<z.ZodString>;
893
- }, z.core.$strip>, z.ZodObject<{
894
- type: z.ZodLiteral<"input_file">;
895
- file_url: z.ZodString;
896
- file_data: z.ZodOptional<z.ZodString>;
897
- file_id: z.ZodOptional<z.ZodString>;
898
- filename: z.ZodOptional<z.ZodString>;
899
- }, z.core.$strip>, z.ZodObject<{
900
- type: z.ZodLiteral<"input_audio">;
901
- input_audio: z.ZodObject<{
902
- data: z.ZodString;
903
- format: z.ZodEnum<{
904
- "x-aac": "x-aac";
905
- flac: "flac";
906
- mp3: "mp3";
907
- m4a: "m4a";
908
- mpeg: "mpeg";
909
- mpga: "mpga";
910
- mp4: "mp4";
911
- ogg: "ogg";
912
- pcm: "pcm";
913
- wav: "wav";
914
- webm: "webm";
915
- }>;
916
- }, z.core.$strip>;
917
- cache_control: z.ZodOptional<z.ZodObject<{
918
- type: z.ZodLiteral<"ephemeral">;
919
- ttl: z.ZodOptional<z.ZodString>;
920
- }, z.core.$strip>>;
921
- }, z.core.$strip>]>>]>;
922
- }, z.core.$strip>, z.ZodObject<{
923
- type: z.ZodLiteral<"message">;
924
- id: z.ZodOptional<z.ZodString>;
925
- status: z.ZodOptional<z.ZodEnum<{
926
- in_progress: "in_progress";
927
- completed: "completed";
928
- incomplete: "incomplete";
929
- }>>;
930
- extra_content: z.ZodOptional<z.ZodType<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown, z.core.$ZodTypeInternals<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown>>>;
931
- cache_control: z.ZodOptional<z.ZodObject<{
932
- type: z.ZodLiteral<"ephemeral">;
933
- ttl: z.ZodOptional<z.ZodString>;
934
- }, z.core.$strip>>;
935
- role: z.ZodLiteral<"developer">;
936
- content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
937
- type: z.ZodLiteral<"input_text">;
938
- text: z.ZodString;
939
- }, z.core.$strip>, z.ZodObject<{
940
- type: z.ZodLiteral<"input_image">;
941
- image_url: z.ZodString;
942
- file_id: z.ZodOptional<z.ZodString>;
943
- detail: z.ZodOptional<z.ZodEnum<{
944
- low: "low";
945
- high: "high";
946
- auto: "auto";
947
- }>>;
948
- }, z.core.$strip>, z.ZodObject<{
949
- type: z.ZodLiteral<"input_image">;
950
- file_id: z.ZodString;
951
- image_url: z.ZodOptional<z.ZodString>;
952
- detail: z.ZodOptional<z.ZodEnum<{
953
- low: "low";
954
- high: "high";
955
- auto: "auto";
956
- }>>;
957
- }, z.core.$strip>, z.ZodObject<{
958
- type: z.ZodLiteral<"input_file">;
959
- file_data: z.ZodString;
960
- file_id: z.ZodOptional<z.ZodString>;
961
- file_url: z.ZodOptional<z.ZodString>;
962
- filename: z.ZodOptional<z.ZodString>;
963
- }, z.core.$strip>, z.ZodObject<{
964
- type: z.ZodLiteral<"input_file">;
965
- file_id: z.ZodString;
966
- file_data: z.ZodOptional<z.ZodString>;
967
- file_url: z.ZodOptional<z.ZodString>;
968
- filename: z.ZodOptional<z.ZodString>;
969
- }, z.core.$strip>, z.ZodObject<{
970
- type: z.ZodLiteral<"input_file">;
971
- file_url: z.ZodString;
972
- file_data: z.ZodOptional<z.ZodString>;
973
- file_id: z.ZodOptional<z.ZodString>;
974
- filename: z.ZodOptional<z.ZodString>;
975
- }, z.core.$strip>, z.ZodObject<{
976
- type: z.ZodLiteral<"input_audio">;
977
- input_audio: z.ZodObject<{
978
- data: z.ZodString;
979
- format: z.ZodEnum<{
980
- "x-aac": "x-aac";
981
- flac: "flac";
982
- mp3: "mp3";
983
- m4a: "m4a";
984
- mpeg: "mpeg";
985
- mpga: "mpga";
986
- mp4: "mp4";
987
- ogg: "ogg";
988
- pcm: "pcm";
989
- wav: "wav";
990
- webm: "webm";
991
- }>;
992
- }, z.core.$strip>;
993
- cache_control: z.ZodOptional<z.ZodObject<{
994
- type: z.ZodLiteral<"ephemeral">;
995
- ttl: z.ZodOptional<z.ZodString>;
996
- }, z.core.$strip>>;
997
- }, z.core.$strip>]>>]>;
998
- }, z.core.$strip>], "role">, z.ZodObject<{
999
- type: z.ZodLiteral<"function_call">;
1000
- id: z.ZodOptional<z.ZodString>;
1001
- call_id: z.ZodString;
1002
- name: z.ZodString;
1003
- arguments: z.ZodString;
1004
- status: z.ZodOptional<z.ZodEnum<{
1005
- in_progress: "in_progress";
1006
- completed: "completed";
1007
- incomplete: "incomplete";
1008
- }>>;
1009
- extra_content: z.ZodOptional<z.ZodType<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown, z.core.$ZodTypeInternals<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown>>>;
1010
- cache_control: z.ZodOptional<z.ZodObject<{
1011
- type: z.ZodLiteral<"ephemeral">;
1012
- ttl: z.ZodOptional<z.ZodString>;
1013
- }, z.core.$strip>>;
1014
- }, z.core.$strip>, z.ZodObject<{
1015
- type: z.ZodLiteral<"function_call_output">;
1016
- id: z.ZodOptional<z.ZodString>;
1017
- call_id: z.ZodString;
1018
- output: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1019
- type: z.ZodLiteral<"input_text">;
1020
- text: z.ZodString;
1021
- }, z.core.$strip>, z.ZodObject<{
1022
- type: z.ZodLiteral<"input_image">;
1023
- image_url: z.ZodString;
1024
- file_id: z.ZodOptional<z.ZodString>;
1025
- detail: z.ZodOptional<z.ZodEnum<{
1026
- low: "low";
1027
- high: "high";
1028
- auto: "auto";
1029
- }>>;
1030
- }, z.core.$strip>, z.ZodObject<{
1031
- type: z.ZodLiteral<"input_image">;
1032
- file_id: z.ZodString;
1033
- image_url: z.ZodOptional<z.ZodString>;
1034
- detail: z.ZodOptional<z.ZodEnum<{
1035
- low: "low";
1036
- high: "high";
1037
- auto: "auto";
1038
- }>>;
1039
- }, z.core.$strip>, z.ZodObject<{
1040
- type: z.ZodLiteral<"input_file">;
1041
- file_data: z.ZodString;
1042
- file_id: z.ZodOptional<z.ZodString>;
1043
- file_url: z.ZodOptional<z.ZodString>;
1044
- filename: z.ZodOptional<z.ZodString>;
1045
- }, z.core.$strip>, z.ZodObject<{
1046
- type: z.ZodLiteral<"input_file">;
1047
- file_id: z.ZodString;
1048
- file_data: z.ZodOptional<z.ZodString>;
1049
- file_url: z.ZodOptional<z.ZodString>;
1050
- filename: z.ZodOptional<z.ZodString>;
1051
- }, z.core.$strip>, z.ZodObject<{
1052
- type: z.ZodLiteral<"input_file">;
1053
- file_url: z.ZodString;
1054
- file_data: z.ZodOptional<z.ZodString>;
1055
- file_id: z.ZodOptional<z.ZodString>;
1056
- filename: z.ZodOptional<z.ZodString>;
1057
- }, z.core.$strip>, z.ZodObject<{
1058
- type: z.ZodLiteral<"input_audio">;
1059
- input_audio: z.ZodObject<{
1060
- data: z.ZodString;
1061
- format: z.ZodEnum<{
1062
- "x-aac": "x-aac";
1063
- flac: "flac";
1064
- mp3: "mp3";
1065
- m4a: "m4a";
1066
- mpeg: "mpeg";
1067
- mpga: "mpga";
1068
- mp4: "mp4";
1069
- ogg: "ogg";
1070
- pcm: "pcm";
1071
- wav: "wav";
1072
- webm: "webm";
1073
- }>;
1074
- }, z.core.$strip>;
1075
- cache_control: z.ZodOptional<z.ZodObject<{
1076
- type: z.ZodLiteral<"ephemeral">;
1077
- ttl: z.ZodOptional<z.ZodString>;
1078
- }, z.core.$strip>>;
1079
- }, z.core.$strip>]>>]>;
1080
- status: z.ZodOptional<z.ZodEnum<{
1081
- in_progress: "in_progress";
1082
- completed: "completed";
1083
- incomplete: "incomplete";
1084
- }>>;
1085
- extra_content: z.ZodOptional<z.ZodType<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown, z.core.$ZodTypeInternals<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown>>>;
1086
- cache_control: z.ZodOptional<z.ZodObject<{
1087
- type: z.ZodLiteral<"ephemeral">;
1088
- ttl: z.ZodOptional<z.ZodString>;
1089
- }, z.core.$strip>>;
1090
- }, z.core.$strip>, z.ZodObject<{
1091
- type: z.ZodLiteral<"reasoning">;
1092
- id: z.ZodOptional<z.ZodString>;
1093
- summary: z.ZodArray<z.ZodObject<{
1094
- type: z.ZodLiteral<"summary_text">;
1095
- text: z.ZodString;
1096
- }, z.core.$strip>>;
1097
- content: z.ZodOptional<z.ZodArray<z.ZodObject<{
1098
- type: z.ZodLiteral<"reasoning_text">;
1099
- text: z.ZodString;
1100
- }, z.core.$strip>>>;
1101
- encrypted_content: z.ZodOptional<z.ZodString>;
1102
- status: z.ZodOptional<z.ZodEnum<{
1103
- in_progress: "in_progress";
1104
- completed: "completed";
1105
- incomplete: "incomplete";
1106
- }>>;
1107
- extra_content: z.ZodOptional<z.ZodType<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown, z.core.$ZodTypeInternals<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown>>>;
1108
- }, z.core.$strip>], "type">>;
1109
- }, z.core.$strip>;
1110
- export type ConversationItemsAddBody = z.infer<typeof ConversationItemsAddBodySchema>;
1111
- export declare const ConversationItemListSchema: z.ZodObject<{
1112
- object: z.ZodLiteral<"list">;
1113
- data: z.ZodArray<z.ZodIntersection<z.ZodObject<{
1114
- id: z.ZodString;
1115
- object: z.ZodLiteral<"conversation.item">;
1116
- created_at: z.ZodNumber;
1117
- }, z.core.$loose>, z.ZodDiscriminatedUnion<[z.ZodDiscriminatedUnion<[z.ZodObject<{
1118
- type: z.ZodLiteral<"message">;
1119
- id: z.ZodOptional<z.ZodString>;
1120
- status: z.ZodOptional<z.ZodEnum<{
1121
- in_progress: "in_progress";
1122
- completed: "completed";
1123
- incomplete: "incomplete";
1124
- }>>;
1125
- extra_content: z.ZodOptional<z.ZodType<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown, z.core.$ZodTypeInternals<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown>>>;
1126
- cache_control: z.ZodOptional<z.ZodObject<{
1127
- type: z.ZodLiteral<"ephemeral">;
1128
- ttl: z.ZodOptional<z.ZodString>;
1129
- }, z.core.$strip>>;
1130
- role: z.ZodLiteral<"user">;
1131
- content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1132
- type: z.ZodLiteral<"input_text">;
1133
- text: z.ZodString;
1134
- }, z.core.$strip>, z.ZodObject<{
1135
- type: z.ZodLiteral<"input_image">;
1136
- image_url: z.ZodString;
1137
- file_id: z.ZodOptional<z.ZodString>;
1138
- detail: z.ZodOptional<z.ZodEnum<{
1139
- low: "low";
1140
- high: "high";
1141
- auto: "auto";
1142
- }>>;
1143
- }, z.core.$strip>, z.ZodObject<{
1144
- type: z.ZodLiteral<"input_image">;
1145
- file_id: z.ZodString;
1146
- image_url: z.ZodOptional<z.ZodString>;
1147
- detail: z.ZodOptional<z.ZodEnum<{
1148
- low: "low";
1149
- high: "high";
1150
- auto: "auto";
1151
- }>>;
1152
- }, z.core.$strip>, z.ZodObject<{
1153
- type: z.ZodLiteral<"input_file">;
1154
- file_data: z.ZodString;
1155
- file_id: z.ZodOptional<z.ZodString>;
1156
- file_url: z.ZodOptional<z.ZodString>;
1157
- filename: z.ZodOptional<z.ZodString>;
1158
- }, z.core.$strip>, z.ZodObject<{
1159
- type: z.ZodLiteral<"input_file">;
1160
- file_id: z.ZodString;
1161
- file_data: z.ZodOptional<z.ZodString>;
1162
- file_url: z.ZodOptional<z.ZodString>;
1163
- filename: z.ZodOptional<z.ZodString>;
1164
- }, z.core.$strip>, z.ZodObject<{
1165
- type: z.ZodLiteral<"input_file">;
1166
- file_url: z.ZodString;
1167
- file_data: z.ZodOptional<z.ZodString>;
1168
- file_id: z.ZodOptional<z.ZodString>;
1169
- filename: z.ZodOptional<z.ZodString>;
1170
- }, z.core.$strip>, z.ZodObject<{
1171
- type: z.ZodLiteral<"input_audio">;
1172
- input_audio: z.ZodObject<{
1173
- data: z.ZodString;
1174
- format: z.ZodEnum<{
1175
- "x-aac": "x-aac";
1176
- flac: "flac";
1177
- mp3: "mp3";
1178
- m4a: "m4a";
1179
- mpeg: "mpeg";
1180
- mpga: "mpga";
1181
- mp4: "mp4";
1182
- ogg: "ogg";
1183
- pcm: "pcm";
1184
- wav: "wav";
1185
- webm: "webm";
1186
- }>;
1187
- }, z.core.$strip>;
1188
- cache_control: z.ZodOptional<z.ZodObject<{
1189
- type: z.ZodLiteral<"ephemeral">;
1190
- ttl: z.ZodOptional<z.ZodString>;
1191
- }, z.core.$strip>>;
1192
- }, z.core.$strip>]>>]>;
1193
- }, z.core.$strip>, z.ZodObject<{
1194
- type: z.ZodLiteral<"message">;
1195
- id: z.ZodOptional<z.ZodString>;
1196
- status: z.ZodOptional<z.ZodEnum<{
1197
- in_progress: "in_progress";
1198
- completed: "completed";
1199
- incomplete: "incomplete";
1200
- }>>;
1201
- extra_content: z.ZodOptional<z.ZodType<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown, z.core.$ZodTypeInternals<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown>>>;
1202
- cache_control: z.ZodOptional<z.ZodObject<{
1203
- type: z.ZodLiteral<"ephemeral">;
1204
- ttl: z.ZodOptional<z.ZodString>;
1205
- }, z.core.$strip>>;
1206
- role: z.ZodLiteral<"assistant">;
1207
- content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodObject<{
1208
- type: z.ZodLiteral<"output_text">;
1209
- text: z.ZodString;
1210
- annotations: z.ZodOptional<z.ZodArray<z.ZodUnknown>>;
1211
- }, z.core.$strip>>]>;
1212
- }, z.core.$strip>, z.ZodObject<{
1213
- type: z.ZodLiteral<"message">;
1214
- id: z.ZodOptional<z.ZodString>;
1215
- status: z.ZodOptional<z.ZodEnum<{
1216
- in_progress: "in_progress";
1217
- completed: "completed";
1218
- incomplete: "incomplete";
1219
- }>>;
1220
- extra_content: z.ZodOptional<z.ZodType<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown, z.core.$ZodTypeInternals<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown>>>;
1221
- cache_control: z.ZodOptional<z.ZodObject<{
1222
- type: z.ZodLiteral<"ephemeral">;
1223
- ttl: z.ZodOptional<z.ZodString>;
1224
- }, z.core.$strip>>;
1225
- role: z.ZodLiteral<"system">;
1226
- content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1227
- type: z.ZodLiteral<"input_text">;
1228
- text: z.ZodString;
1229
- }, z.core.$strip>, z.ZodObject<{
1230
- type: z.ZodLiteral<"input_image">;
1231
- image_url: z.ZodString;
1232
- file_id: z.ZodOptional<z.ZodString>;
1233
- detail: z.ZodOptional<z.ZodEnum<{
1234
- low: "low";
1235
- high: "high";
1236
- auto: "auto";
1237
- }>>;
1238
- }, z.core.$strip>, z.ZodObject<{
1239
- type: z.ZodLiteral<"input_image">;
1240
- file_id: z.ZodString;
1241
- image_url: z.ZodOptional<z.ZodString>;
1242
- detail: z.ZodOptional<z.ZodEnum<{
1243
- low: "low";
1244
- high: "high";
1245
- auto: "auto";
1246
- }>>;
1247
- }, z.core.$strip>, z.ZodObject<{
1248
- type: z.ZodLiteral<"input_file">;
1249
- file_data: z.ZodString;
1250
- file_id: z.ZodOptional<z.ZodString>;
1251
- file_url: z.ZodOptional<z.ZodString>;
1252
- filename: z.ZodOptional<z.ZodString>;
1253
- }, z.core.$strip>, z.ZodObject<{
1254
- type: z.ZodLiteral<"input_file">;
1255
- file_id: z.ZodString;
1256
- file_data: z.ZodOptional<z.ZodString>;
1257
- file_url: z.ZodOptional<z.ZodString>;
1258
- filename: z.ZodOptional<z.ZodString>;
1259
- }, z.core.$strip>, z.ZodObject<{
1260
- type: z.ZodLiteral<"input_file">;
1261
- file_url: z.ZodString;
1262
- file_data: z.ZodOptional<z.ZodString>;
1263
- file_id: z.ZodOptional<z.ZodString>;
1264
- filename: z.ZodOptional<z.ZodString>;
1265
- }, z.core.$strip>, z.ZodObject<{
1266
- type: z.ZodLiteral<"input_audio">;
1267
- input_audio: z.ZodObject<{
1268
- data: z.ZodString;
1269
- format: z.ZodEnum<{
1270
- "x-aac": "x-aac";
1271
- flac: "flac";
1272
- mp3: "mp3";
1273
- m4a: "m4a";
1274
- mpeg: "mpeg";
1275
- mpga: "mpga";
1276
- mp4: "mp4";
1277
- ogg: "ogg";
1278
- pcm: "pcm";
1279
- wav: "wav";
1280
- webm: "webm";
1281
- }>;
1282
- }, z.core.$strip>;
1283
- cache_control: z.ZodOptional<z.ZodObject<{
1284
- type: z.ZodLiteral<"ephemeral">;
1285
- ttl: z.ZodOptional<z.ZodString>;
1286
- }, z.core.$strip>>;
1287
- }, z.core.$strip>]>>]>;
1288
- }, z.core.$strip>, z.ZodObject<{
1289
- type: z.ZodLiteral<"message">;
1290
- id: z.ZodOptional<z.ZodString>;
1291
- status: z.ZodOptional<z.ZodEnum<{
1292
- in_progress: "in_progress";
1293
- completed: "completed";
1294
- incomplete: "incomplete";
1295
- }>>;
1296
- extra_content: z.ZodOptional<z.ZodType<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown, z.core.$ZodTypeInternals<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown>>>;
1297
- cache_control: z.ZodOptional<z.ZodObject<{
1298
- type: z.ZodLiteral<"ephemeral">;
1299
- ttl: z.ZodOptional<z.ZodString>;
1300
- }, z.core.$strip>>;
1301
- role: z.ZodLiteral<"developer">;
1302
- content: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1303
- type: z.ZodLiteral<"input_text">;
1304
- text: z.ZodString;
1305
- }, z.core.$strip>, z.ZodObject<{
1306
- type: z.ZodLiteral<"input_image">;
1307
- image_url: z.ZodString;
1308
- file_id: z.ZodOptional<z.ZodString>;
1309
- detail: z.ZodOptional<z.ZodEnum<{
1310
- low: "low";
1311
- high: "high";
1312
- auto: "auto";
1313
- }>>;
1314
- }, z.core.$strip>, z.ZodObject<{
1315
- type: z.ZodLiteral<"input_image">;
1316
- file_id: z.ZodString;
1317
- image_url: z.ZodOptional<z.ZodString>;
1318
- detail: z.ZodOptional<z.ZodEnum<{
1319
- low: "low";
1320
- high: "high";
1321
- auto: "auto";
1322
- }>>;
1323
- }, z.core.$strip>, z.ZodObject<{
1324
- type: z.ZodLiteral<"input_file">;
1325
- file_data: z.ZodString;
1326
- file_id: z.ZodOptional<z.ZodString>;
1327
- file_url: z.ZodOptional<z.ZodString>;
1328
- filename: z.ZodOptional<z.ZodString>;
1329
- }, z.core.$strip>, z.ZodObject<{
1330
- type: z.ZodLiteral<"input_file">;
1331
- file_id: z.ZodString;
1332
- file_data: z.ZodOptional<z.ZodString>;
1333
- file_url: z.ZodOptional<z.ZodString>;
1334
- filename: z.ZodOptional<z.ZodString>;
1335
- }, z.core.$strip>, z.ZodObject<{
1336
- type: z.ZodLiteral<"input_file">;
1337
- file_url: z.ZodString;
1338
- file_data: z.ZodOptional<z.ZodString>;
1339
- file_id: z.ZodOptional<z.ZodString>;
1340
- filename: z.ZodOptional<z.ZodString>;
1341
- }, z.core.$strip>, z.ZodObject<{
1342
- type: z.ZodLiteral<"input_audio">;
1343
- input_audio: z.ZodObject<{
1344
- data: z.ZodString;
1345
- format: z.ZodEnum<{
1346
- "x-aac": "x-aac";
1347
- flac: "flac";
1348
- mp3: "mp3";
1349
- m4a: "m4a";
1350
- mpeg: "mpeg";
1351
- mpga: "mpga";
1352
- mp4: "mp4";
1353
- ogg: "ogg";
1354
- pcm: "pcm";
1355
- wav: "wav";
1356
- webm: "webm";
1357
- }>;
1358
- }, z.core.$strip>;
1359
- cache_control: z.ZodOptional<z.ZodObject<{
1360
- type: z.ZodLiteral<"ephemeral">;
1361
- ttl: z.ZodOptional<z.ZodString>;
1362
- }, z.core.$strip>>;
1363
- }, z.core.$strip>]>>]>;
1364
- }, z.core.$strip>], "role">, z.ZodObject<{
1365
- type: z.ZodLiteral<"function_call">;
1366
- id: z.ZodOptional<z.ZodString>;
1367
- call_id: z.ZodString;
1368
- name: z.ZodString;
1369
- arguments: z.ZodString;
1370
- status: z.ZodOptional<z.ZodEnum<{
1371
- in_progress: "in_progress";
1372
- completed: "completed";
1373
- incomplete: "incomplete";
1374
- }>>;
1375
- extra_content: z.ZodOptional<z.ZodType<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown, z.core.$ZodTypeInternals<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown>>>;
1376
- cache_control: z.ZodOptional<z.ZodObject<{
1377
- type: z.ZodLiteral<"ephemeral">;
1378
- ttl: z.ZodOptional<z.ZodString>;
1379
- }, z.core.$strip>>;
1380
- }, z.core.$strip>, z.ZodObject<{
1381
- type: z.ZodLiteral<"function_call_output">;
1382
- id: z.ZodOptional<z.ZodString>;
1383
- call_id: z.ZodString;
1384
- output: z.ZodUnion<readonly [z.ZodString, z.ZodArray<z.ZodUnion<readonly [z.ZodObject<{
1385
- type: z.ZodLiteral<"input_text">;
1386
- text: z.ZodString;
1387
- }, z.core.$strip>, z.ZodObject<{
1388
- type: z.ZodLiteral<"input_image">;
1389
- image_url: z.ZodString;
1390
- file_id: z.ZodOptional<z.ZodString>;
1391
- detail: z.ZodOptional<z.ZodEnum<{
1392
- low: "low";
1393
- high: "high";
1394
- auto: "auto";
1395
- }>>;
1396
- }, z.core.$strip>, z.ZodObject<{
1397
- type: z.ZodLiteral<"input_image">;
1398
- file_id: z.ZodString;
1399
- image_url: z.ZodOptional<z.ZodString>;
1400
- detail: z.ZodOptional<z.ZodEnum<{
1401
- low: "low";
1402
- high: "high";
1403
- auto: "auto";
1404
- }>>;
1405
- }, z.core.$strip>, z.ZodObject<{
1406
- type: z.ZodLiteral<"input_file">;
1407
- file_data: z.ZodString;
1408
- file_id: z.ZodOptional<z.ZodString>;
1409
- file_url: z.ZodOptional<z.ZodString>;
1410
- filename: z.ZodOptional<z.ZodString>;
1411
- }, z.core.$strip>, z.ZodObject<{
1412
- type: z.ZodLiteral<"input_file">;
1413
- file_id: z.ZodString;
1414
- file_data: z.ZodOptional<z.ZodString>;
1415
- file_url: z.ZodOptional<z.ZodString>;
1416
- filename: z.ZodOptional<z.ZodString>;
1417
- }, z.core.$strip>, z.ZodObject<{
1418
- type: z.ZodLiteral<"input_file">;
1419
- file_url: z.ZodString;
1420
- file_data: z.ZodOptional<z.ZodString>;
1421
- file_id: z.ZodOptional<z.ZodString>;
1422
- filename: z.ZodOptional<z.ZodString>;
1423
- }, z.core.$strip>, z.ZodObject<{
1424
- type: z.ZodLiteral<"input_audio">;
1425
- input_audio: z.ZodObject<{
1426
- data: z.ZodString;
1427
- format: z.ZodEnum<{
1428
- "x-aac": "x-aac";
1429
- flac: "flac";
1430
- mp3: "mp3";
1431
- m4a: "m4a";
1432
- mpeg: "mpeg";
1433
- mpga: "mpga";
1434
- mp4: "mp4";
1435
- ogg: "ogg";
1436
- pcm: "pcm";
1437
- wav: "wav";
1438
- webm: "webm";
1439
- }>;
1440
- }, z.core.$strip>;
1441
- cache_control: z.ZodOptional<z.ZodObject<{
1442
- type: z.ZodLiteral<"ephemeral">;
1443
- ttl: z.ZodOptional<z.ZodString>;
1444
- }, z.core.$strip>>;
1445
- }, z.core.$strip>]>>]>;
1446
- status: z.ZodOptional<z.ZodEnum<{
1447
- in_progress: "in_progress";
1448
- completed: "completed";
1449
- incomplete: "incomplete";
1450
- }>>;
1451
- extra_content: z.ZodOptional<z.ZodType<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown, z.core.$ZodTypeInternals<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown>>>;
1452
- cache_control: z.ZodOptional<z.ZodObject<{
1453
- type: z.ZodLiteral<"ephemeral">;
1454
- ttl: z.ZodOptional<z.ZodString>;
1455
- }, z.core.$strip>>;
1456
- }, z.core.$strip>, z.ZodObject<{
1457
- type: z.ZodLiteral<"reasoning">;
1458
- id: z.ZodOptional<z.ZodString>;
1459
- summary: z.ZodArray<z.ZodObject<{
1460
- type: z.ZodLiteral<"summary_text">;
1461
- text: z.ZodString;
1462
- }, z.core.$strip>>;
1463
- content: z.ZodOptional<z.ZodArray<z.ZodObject<{
1464
- type: z.ZodLiteral<"reasoning_text">;
1465
- text: z.ZodString;
1466
- }, z.core.$strip>>>;
1467
- encrypted_content: z.ZodOptional<z.ZodString>;
1468
- status: z.ZodOptional<z.ZodEnum<{
1469
- in_progress: "in_progress";
1470
- completed: "completed";
1471
- incomplete: "incomplete";
1472
- }>>;
1473
- extra_content: z.ZodOptional<z.ZodType<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown, z.core.$ZodTypeInternals<import("@ai-sdk/provider").SharedV3ProviderMetadata, unknown>>>;
1474
- }, z.core.$strip>], "type">>>;
1475
- has_more: z.ZodBoolean;
1476
- first_id: z.ZodOptional<z.ZodString>;
1477
- last_id: z.ZodOptional<z.ZodString>;
1478
- }, z.core.$strip>;
1479
- export type ConversationItemList = z.infer<typeof ConversationItemListSchema>;
1480
- export declare const ConversationListSchema: z.ZodObject<{
1481
- object: z.ZodLiteral<"list">;
1482
- data: z.ZodArray<z.ZodObject<{
1483
- id: z.ZodString;
1484
- object: z.ZodLiteral<"conversation">;
1485
- created_at: z.ZodNumber;
1486
- metadata: z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>;
1487
- }, z.core.$strip>>;
1488
- has_more: z.ZodBoolean;
1489
- first_id: z.ZodOptional<z.ZodString>;
1490
- last_id: z.ZodOptional<z.ZodString>;
1491
- }, z.core.$strip>;
1492
- export type ConversationList = z.infer<typeof ConversationListSchema>;
1493
- export declare const ConversationItemListParamsSchema: z.ZodObject<{
1494
- after: z.ZodOptional<z.ZodString>;
1495
- limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
1496
- order: z.ZodDefault<z.ZodEnum<{
1497
- asc: "asc";
1498
- desc: "desc";
1499
- }>>;
1500
- }, z.core.$strip>;
1501
- export type ConversationItemListParams = z.infer<typeof ConversationItemListParamsSchema>;
1502
- export declare const ConversationListParamsSchema: z.ZodPipe<z.ZodTransform<unknown, unknown>, z.ZodObject<{
1503
- after: z.ZodOptional<z.ZodString>;
1504
- limit: z.ZodDefault<z.ZodCoercedNumber<unknown>>;
1505
- order: z.ZodDefault<z.ZodEnum<{
1506
- asc: "asc";
1507
- desc: "desc";
1508
- }>>;
1509
- metadata: z.ZodOptional<z.ZodOptional<z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodString>>>>;
1510
- }, z.core.$strip>>;
1511
- export type ConversationListParams = z.infer<typeof ConversationListParamsSchema>;