vibeusage 0.2.23 → 0.3.1

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 (143) hide show
  1. package/README.md +25 -20
  2. package/README.zh-CN.md +7 -2
  3. package/node_modules/@insforge/sdk/LICENSE +201 -201
  4. package/node_modules/@insforge/sdk/README.md +326 -259
  5. package/node_modules/@insforge/sdk/dist/index.d.mts +377 -182
  6. package/node_modules/@insforge/sdk/dist/index.d.ts +377 -182
  7. package/node_modules/@insforge/sdk/dist/index.js +1172 -677
  8. package/node_modules/@insforge/sdk/dist/index.js.map +1 -1
  9. package/node_modules/@insforge/sdk/dist/index.mjs +1171 -677
  10. package/node_modules/@insforge/sdk/dist/index.mjs.map +1 -1
  11. package/node_modules/@insforge/sdk/package.json +68 -68
  12. package/node_modules/@insforge/shared-schemas/dist/ai-api.schema.d.ts +1120 -43
  13. package/node_modules/@insforge/shared-schemas/dist/ai-api.schema.d.ts.map +1 -1
  14. package/node_modules/@insforge/shared-schemas/dist/ai-api.schema.js +179 -5
  15. package/node_modules/@insforge/shared-schemas/dist/ai-api.schema.js.map +1 -1
  16. package/node_modules/@insforge/shared-schemas/dist/ai.schema.d.ts +25 -25
  17. package/node_modules/@insforge/shared-schemas/dist/ai.schema.d.ts.map +1 -1
  18. package/node_modules/@insforge/shared-schemas/dist/ai.schema.js +2 -2
  19. package/node_modules/@insforge/shared-schemas/dist/ai.schema.js.map +1 -1
  20. package/node_modules/@insforge/shared-schemas/dist/auth-api.schema.d.ts +197 -51
  21. package/node_modules/@insforge/shared-schemas/dist/auth-api.schema.d.ts.map +1 -1
  22. package/node_modules/@insforge/shared-schemas/dist/auth-api.schema.js +87 -23
  23. package/node_modules/@insforge/shared-schemas/dist/auth-api.schema.js.map +1 -1
  24. package/node_modules/@insforge/shared-schemas/dist/auth.schema.d.ts +32 -3
  25. package/node_modules/@insforge/shared-schemas/dist/auth.schema.d.ts.map +1 -1
  26. package/node_modules/@insforge/shared-schemas/dist/auth.schema.js +21 -3
  27. package/node_modules/@insforge/shared-schemas/dist/auth.schema.js.map +1 -1
  28. package/node_modules/@insforge/shared-schemas/dist/cloud-events.schema.d.ts +380 -0
  29. package/node_modules/@insforge/shared-schemas/dist/cloud-events.schema.d.ts.map +1 -1
  30. package/node_modules/@insforge/shared-schemas/dist/cloud-events.schema.js +74 -0
  31. package/node_modules/@insforge/shared-schemas/dist/cloud-events.schema.js.map +1 -1
  32. package/node_modules/@insforge/shared-schemas/dist/database-api.schema.d.ts +13 -13
  33. package/node_modules/@insforge/shared-schemas/dist/database-api.schema.js +1 -1
  34. package/node_modules/@insforge/shared-schemas/dist/database-api.schema.js.map +1 -1
  35. package/node_modules/@insforge/shared-schemas/dist/deployments-api.schema.d.ts +735 -0
  36. package/node_modules/@insforge/shared-schemas/dist/deployments-api.schema.d.ts.map +1 -0
  37. package/node_modules/@insforge/shared-schemas/dist/deployments-api.schema.js +209 -0
  38. package/node_modules/@insforge/shared-schemas/dist/deployments-api.schema.js.map +1 -0
  39. package/node_modules/@insforge/shared-schemas/dist/deployments.schema.d.ts +37 -0
  40. package/node_modules/@insforge/shared-schemas/dist/deployments.schema.d.ts.map +1 -0
  41. package/node_modules/@insforge/shared-schemas/dist/deployments.schema.js +25 -0
  42. package/node_modules/@insforge/shared-schemas/dist/deployments.schema.js.map +1 -0
  43. package/node_modules/@insforge/shared-schemas/dist/docs.schema.d.ts +5 -1
  44. package/node_modules/@insforge/shared-schemas/dist/docs.schema.d.ts.map +1 -1
  45. package/node_modules/@insforge/shared-schemas/dist/docs.schema.js +34 -4
  46. package/node_modules/@insforge/shared-schemas/dist/docs.schema.js.map +1 -1
  47. package/node_modules/@insforge/shared-schemas/dist/email-api.schema.js +1 -1
  48. package/node_modules/@insforge/shared-schemas/dist/email-api.schema.js.map +1 -1
  49. package/node_modules/@insforge/shared-schemas/dist/functions-api.schema.d.ts +186 -6
  50. package/node_modules/@insforge/shared-schemas/dist/functions-api.schema.d.ts.map +1 -1
  51. package/node_modules/@insforge/shared-schemas/dist/functions-api.schema.js +21 -2
  52. package/node_modules/@insforge/shared-schemas/dist/functions-api.schema.js.map +1 -1
  53. package/node_modules/@insforge/shared-schemas/dist/functions.schema.d.ts +5 -5
  54. package/node_modules/@insforge/shared-schemas/dist/functions.schema.js +1 -1
  55. package/node_modules/@insforge/shared-schemas/dist/functions.schema.js.map +1 -1
  56. package/node_modules/@insforge/shared-schemas/dist/index.d.ts +24 -18
  57. package/node_modules/@insforge/shared-schemas/dist/index.d.ts.map +1 -1
  58. package/node_modules/@insforge/shared-schemas/dist/index.js +24 -18
  59. package/node_modules/@insforge/shared-schemas/dist/index.js.map +1 -1
  60. package/node_modules/@insforge/shared-schemas/dist/logs-api.schema.js +1 -1
  61. package/node_modules/@insforge/shared-schemas/dist/logs-api.schema.js.map +1 -1
  62. package/node_modules/@insforge/shared-schemas/dist/logs.schema.d.ts +43 -0
  63. package/node_modules/@insforge/shared-schemas/dist/logs.schema.d.ts.map +1 -1
  64. package/node_modules/@insforge/shared-schemas/dist/logs.schema.js +11 -0
  65. package/node_modules/@insforge/shared-schemas/dist/logs.schema.js.map +1 -1
  66. package/node_modules/@insforge/shared-schemas/dist/metadata.schema.d.ts +229 -172
  67. package/node_modules/@insforge/shared-schemas/dist/metadata.schema.d.ts.map +1 -1
  68. package/node_modules/@insforge/shared-schemas/dist/metadata.schema.js +27 -7
  69. package/node_modules/@insforge/shared-schemas/dist/metadata.schema.js.map +1 -1
  70. package/node_modules/@insforge/shared-schemas/dist/rate-limit-api.schema.d.ts +51 -0
  71. package/node_modules/@insforge/shared-schemas/dist/rate-limit-api.schema.d.ts.map +1 -0
  72. package/node_modules/@insforge/shared-schemas/dist/rate-limit-api.schema.js +31 -0
  73. package/node_modules/@insforge/shared-schemas/dist/rate-limit-api.schema.js.map +1 -0
  74. package/node_modules/@insforge/shared-schemas/dist/rate-limit.schema.d.ts +31 -0
  75. package/node_modules/@insforge/shared-schemas/dist/rate-limit.schema.d.ts.map +1 -0
  76. package/node_modules/@insforge/shared-schemas/dist/rate-limit.schema.js +12 -0
  77. package/node_modules/@insforge/shared-schemas/dist/rate-limit.schema.js.map +1 -0
  78. package/node_modules/@insforge/shared-schemas/dist/realtime-api.schema.d.ts +39 -20
  79. package/node_modules/@insforge/shared-schemas/dist/realtime-api.schema.d.ts.map +1 -1
  80. package/node_modules/@insforge/shared-schemas/dist/realtime-api.schema.js +5 -1
  81. package/node_modules/@insforge/shared-schemas/dist/realtime-api.schema.js.map +1 -1
  82. package/node_modules/@insforge/shared-schemas/dist/realtime.schema.d.ts +12 -4
  83. package/node_modules/@insforge/shared-schemas/dist/realtime.schema.d.ts.map +1 -1
  84. package/node_modules/@insforge/shared-schemas/dist/realtime.schema.js +6 -0
  85. package/node_modules/@insforge/shared-schemas/dist/realtime.schema.js.map +1 -1
  86. package/node_modules/@insforge/shared-schemas/dist/schedules-api.schema.d.ts +287 -0
  87. package/node_modules/@insforge/shared-schemas/dist/schedules-api.schema.d.ts.map +1 -0
  88. package/node_modules/@insforge/shared-schemas/dist/schedules-api.schema.js +81 -0
  89. package/node_modules/@insforge/shared-schemas/dist/schedules-api.schema.js.map +1 -0
  90. package/node_modules/@insforge/shared-schemas/dist/schedules.schema.d.ts +77 -0
  91. package/node_modules/@insforge/shared-schemas/dist/schedules.schema.d.ts.map +1 -0
  92. package/node_modules/@insforge/shared-schemas/dist/schedules.schema.js +36 -0
  93. package/node_modules/@insforge/shared-schemas/dist/schedules.schema.js.map +1 -0
  94. package/node_modules/@insforge/shared-schemas/dist/secrets-api.schema.d.ts +113 -0
  95. package/node_modules/@insforge/shared-schemas/dist/secrets-api.schema.d.ts.map +1 -0
  96. package/node_modules/@insforge/shared-schemas/dist/secrets-api.schema.js +31 -0
  97. package/node_modules/@insforge/shared-schemas/dist/secrets-api.schema.js.map +1 -0
  98. package/node_modules/@insforge/shared-schemas/dist/secrets.schema.d.ts +31 -0
  99. package/node_modules/@insforge/shared-schemas/dist/secrets.schema.d.ts.map +1 -0
  100. package/node_modules/@insforge/shared-schemas/dist/secrets.schema.js +13 -0
  101. package/node_modules/@insforge/shared-schemas/dist/secrets.schema.js.map +1 -0
  102. package/node_modules/@insforge/shared-schemas/dist/storage-api.schema.d.ts +27 -2
  103. package/node_modules/@insforge/shared-schemas/dist/storage-api.schema.d.ts.map +1 -1
  104. package/node_modules/@insforge/shared-schemas/dist/storage-api.schema.js +9 -1
  105. package/node_modules/@insforge/shared-schemas/dist/storage-api.schema.js.map +1 -1
  106. package/node_modules/@insforge/shared-schemas/dist/storage.schema.d.ts +17 -0
  107. package/node_modules/@insforge/shared-schemas/dist/storage.schema.d.ts.map +1 -1
  108. package/node_modules/@insforge/shared-schemas/dist/storage.schema.js +6 -0
  109. package/node_modules/@insforge/shared-schemas/dist/storage.schema.js.map +1 -1
  110. package/node_modules/@insforge/shared-schemas/package.json +2 -1
  111. package/package.json +5 -6
  112. package/src/cli.js +2 -2
  113. package/src/commands/init.js +20 -362
  114. package/src/commands/status.js +58 -51
  115. package/src/commands/sync.js +37 -25
  116. package/src/commands/uninstall.js +121 -104
  117. package/src/lib/claude-config.js +130 -35
  118. package/src/lib/diagnostics.js +88 -57
  119. package/src/lib/doctor.js +50 -0
  120. package/src/lib/insforge-client.js +13 -9
  121. package/src/lib/integrations/claude.js +106 -0
  122. package/src/lib/integrations/codex.js +88 -0
  123. package/src/lib/integrations/context.js +76 -0
  124. package/src/lib/integrations/every-code.js +88 -0
  125. package/src/lib/integrations/gemini.js +86 -0
  126. package/src/lib/integrations/index.js +85 -0
  127. package/src/lib/integrations/openclaw-legacy.js +123 -0
  128. package/src/lib/integrations/openclaw-session.js +132 -0
  129. package/src/lib/integrations/opencode.js +86 -0
  130. package/src/lib/integrations/utils.js +39 -0
  131. package/src/lib/opencode-sqlite.js +113 -0
  132. package/src/lib/opencode-usage-audit.js +3 -2
  133. package/src/lib/rollout.js +227 -1
  134. package/src/lib/runtime-config.js +7 -5
  135. package/src/lib/vibeusage-api.js +11 -7
  136. package/src/shared/copy-registry.cjs +142 -0
  137. package/src/shared/copy-registry.cjs.d.ts +33 -0
  138. package/src/shared/runtime-defaults.cjs +11 -0
  139. package/src/shared/runtime-defaults.cjs.d.ts +3 -0
  140. package/src/shared/vibeusage-function-contract.cjs +34 -0
  141. package/src/shared/vibeusage-function-contract.cjs.d.ts +4 -0
  142. package/src/commands/activate-if-needed.js +0 -41
  143. package/src/lib/activation-check.js +0 -341
@@ -34,6 +34,56 @@ export declare const imageContentSchema: z.ZodObject<{
34
34
  detail?: "auto" | "low" | "high" | undefined;
35
35
  };
36
36
  }>;
37
+ export declare const audioContentSchema: z.ZodObject<{
38
+ type: z.ZodLiteral<"input_audio">;
39
+ input_audio: z.ZodObject<{
40
+ data: z.ZodString;
41
+ format: z.ZodEnum<["wav", "mp3", "aiff", "aac", "ogg", "flac", "m4a"]>;
42
+ }, "strip", z.ZodTypeAny, {
43
+ data: string;
44
+ format: "wav" | "mp3" | "aiff" | "aac" | "ogg" | "flac" | "m4a";
45
+ }, {
46
+ data: string;
47
+ format: "wav" | "mp3" | "aiff" | "aac" | "ogg" | "flac" | "m4a";
48
+ }>;
49
+ }, "strip", z.ZodTypeAny, {
50
+ type: "input_audio";
51
+ input_audio: {
52
+ data: string;
53
+ format: "wav" | "mp3" | "aiff" | "aac" | "ogg" | "flac" | "m4a";
54
+ };
55
+ }, {
56
+ type: "input_audio";
57
+ input_audio: {
58
+ data: string;
59
+ format: "wav" | "mp3" | "aiff" | "aac" | "ogg" | "flac" | "m4a";
60
+ };
61
+ }>;
62
+ export declare const fileContentSchema: z.ZodObject<{
63
+ type: z.ZodLiteral<"file">;
64
+ file: z.ZodObject<{
65
+ filename: z.ZodString;
66
+ file_data: z.ZodString;
67
+ }, "strip", z.ZodTypeAny, {
68
+ filename: string;
69
+ file_data: string;
70
+ }, {
71
+ filename: string;
72
+ file_data: string;
73
+ }>;
74
+ }, "strip", z.ZodTypeAny, {
75
+ type: "file";
76
+ file: {
77
+ filename: string;
78
+ file_data: string;
79
+ };
80
+ }, {
81
+ type: "file";
82
+ file: {
83
+ filename: string;
84
+ file_data: string;
85
+ };
86
+ }>;
37
87
  export declare const contentSchema: z.ZodUnion<[z.ZodObject<{
38
88
  type: z.ZodLiteral<"text">;
39
89
  text: z.ZodString;
@@ -67,10 +117,149 @@ export declare const contentSchema: z.ZodUnion<[z.ZodObject<{
67
117
  url: string;
68
118
  detail?: "auto" | "low" | "high" | undefined;
69
119
  };
120
+ }>, z.ZodObject<{
121
+ type: z.ZodLiteral<"input_audio">;
122
+ input_audio: z.ZodObject<{
123
+ data: z.ZodString;
124
+ format: z.ZodEnum<["wav", "mp3", "aiff", "aac", "ogg", "flac", "m4a"]>;
125
+ }, "strip", z.ZodTypeAny, {
126
+ data: string;
127
+ format: "wav" | "mp3" | "aiff" | "aac" | "ogg" | "flac" | "m4a";
128
+ }, {
129
+ data: string;
130
+ format: "wav" | "mp3" | "aiff" | "aac" | "ogg" | "flac" | "m4a";
131
+ }>;
132
+ }, "strip", z.ZodTypeAny, {
133
+ type: "input_audio";
134
+ input_audio: {
135
+ data: string;
136
+ format: "wav" | "mp3" | "aiff" | "aac" | "ogg" | "flac" | "m4a";
137
+ };
138
+ }, {
139
+ type: "input_audio";
140
+ input_audio: {
141
+ data: string;
142
+ format: "wav" | "mp3" | "aiff" | "aac" | "ogg" | "flac" | "m4a";
143
+ };
144
+ }>, z.ZodObject<{
145
+ type: z.ZodLiteral<"file">;
146
+ file: z.ZodObject<{
147
+ filename: z.ZodString;
148
+ file_data: z.ZodString;
149
+ }, "strip", z.ZodTypeAny, {
150
+ filename: string;
151
+ file_data: string;
152
+ }, {
153
+ filename: string;
154
+ file_data: string;
155
+ }>;
156
+ }, "strip", z.ZodTypeAny, {
157
+ type: "file";
158
+ file: {
159
+ filename: string;
160
+ file_data: string;
161
+ };
162
+ }, {
163
+ type: "file";
164
+ file: {
165
+ filename: string;
166
+ file_data: string;
167
+ };
168
+ }>]>;
169
+ export declare const toolFunctionSchema: z.ZodObject<{
170
+ name: z.ZodString;
171
+ description: z.ZodOptional<z.ZodString>;
172
+ parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
173
+ }, "strip", z.ZodTypeAny, {
174
+ name: string;
175
+ description?: string | undefined;
176
+ parameters?: Record<string, unknown> | undefined;
177
+ }, {
178
+ name: string;
179
+ description?: string | undefined;
180
+ parameters?: Record<string, unknown> | undefined;
181
+ }>;
182
+ export declare const toolSchema: z.ZodObject<{
183
+ type: z.ZodLiteral<"function">;
184
+ function: z.ZodObject<{
185
+ name: z.ZodString;
186
+ description: z.ZodOptional<z.ZodString>;
187
+ parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
188
+ }, "strip", z.ZodTypeAny, {
189
+ name: string;
190
+ description?: string | undefined;
191
+ parameters?: Record<string, unknown> | undefined;
192
+ }, {
193
+ name: string;
194
+ description?: string | undefined;
195
+ parameters?: Record<string, unknown> | undefined;
196
+ }>;
197
+ }, "strip", z.ZodTypeAny, {
198
+ function: {
199
+ name: string;
200
+ description?: string | undefined;
201
+ parameters?: Record<string, unknown> | undefined;
202
+ };
203
+ type: "function";
204
+ }, {
205
+ function: {
206
+ name: string;
207
+ description?: string | undefined;
208
+ parameters?: Record<string, unknown> | undefined;
209
+ };
210
+ type: "function";
211
+ }>;
212
+ export declare const toolChoiceSchema: z.ZodUnion<[z.ZodEnum<["auto", "none", "required"]>, z.ZodObject<{
213
+ type: z.ZodLiteral<"function">;
214
+ function: z.ZodObject<{
215
+ name: z.ZodString;
216
+ }, "strip", z.ZodTypeAny, {
217
+ name: string;
218
+ }, {
219
+ name: string;
220
+ }>;
221
+ }, "strip", z.ZodTypeAny, {
222
+ function: {
223
+ name: string;
224
+ };
225
+ type: "function";
226
+ }, {
227
+ function: {
228
+ name: string;
229
+ };
230
+ type: "function";
70
231
  }>]>;
232
+ export declare const toolCallSchema: z.ZodObject<{
233
+ id: z.ZodString;
234
+ type: z.ZodLiteral<"function">;
235
+ function: z.ZodObject<{
236
+ name: z.ZodString;
237
+ arguments: z.ZodString;
238
+ }, "strip", z.ZodTypeAny, {
239
+ name: string;
240
+ arguments: string;
241
+ }, {
242
+ name: string;
243
+ arguments: string;
244
+ }>;
245
+ }, "strip", z.ZodTypeAny, {
246
+ function: {
247
+ name: string;
248
+ arguments: string;
249
+ };
250
+ type: "function";
251
+ id: string;
252
+ }, {
253
+ function: {
254
+ name: string;
255
+ arguments: string;
256
+ };
257
+ type: "function";
258
+ id: string;
259
+ }>;
71
260
  export declare const chatMessageSchema: z.ZodObject<{
72
- role: z.ZodEnum<["user", "assistant", "system"]>;
73
- content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodUnion<[z.ZodObject<{
261
+ role: z.ZodEnum<["user", "assistant", "system", "tool"]>;
262
+ content: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodUnion<[z.ZodObject<{
74
263
  type: z.ZodLiteral<"text">;
75
264
  text: z.ZodString;
76
265
  }, "strip", z.ZodTypeAny, {
@@ -103,7 +292,55 @@ export declare const chatMessageSchema: z.ZodObject<{
103
292
  url: string;
104
293
  detail?: "auto" | "low" | "high" | undefined;
105
294
  };
106
- }>]>, "many">]>;
295
+ }>, z.ZodObject<{
296
+ type: z.ZodLiteral<"input_audio">;
297
+ input_audio: z.ZodObject<{
298
+ data: z.ZodString;
299
+ format: z.ZodEnum<["wav", "mp3", "aiff", "aac", "ogg", "flac", "m4a"]>;
300
+ }, "strip", z.ZodTypeAny, {
301
+ data: string;
302
+ format: "wav" | "mp3" | "aiff" | "aac" | "ogg" | "flac" | "m4a";
303
+ }, {
304
+ data: string;
305
+ format: "wav" | "mp3" | "aiff" | "aac" | "ogg" | "flac" | "m4a";
306
+ }>;
307
+ }, "strip", z.ZodTypeAny, {
308
+ type: "input_audio";
309
+ input_audio: {
310
+ data: string;
311
+ format: "wav" | "mp3" | "aiff" | "aac" | "ogg" | "flac" | "m4a";
312
+ };
313
+ }, {
314
+ type: "input_audio";
315
+ input_audio: {
316
+ data: string;
317
+ format: "wav" | "mp3" | "aiff" | "aac" | "ogg" | "flac" | "m4a";
318
+ };
319
+ }>, z.ZodObject<{
320
+ type: z.ZodLiteral<"file">;
321
+ file: z.ZodObject<{
322
+ filename: z.ZodString;
323
+ file_data: z.ZodString;
324
+ }, "strip", z.ZodTypeAny, {
325
+ filename: string;
326
+ file_data: string;
327
+ }, {
328
+ filename: string;
329
+ file_data: string;
330
+ }>;
331
+ }, "strip", z.ZodTypeAny, {
332
+ type: "file";
333
+ file: {
334
+ filename: string;
335
+ file_data: string;
336
+ };
337
+ }, {
338
+ type: "file";
339
+ file: {
340
+ filename: string;
341
+ file_data: string;
342
+ };
343
+ }>]>, "many">]>>;
107
344
  images: z.ZodOptional<z.ZodArray<z.ZodObject<{
108
345
  url: z.ZodString;
109
346
  }, "strip", z.ZodTypeAny, {
@@ -111,8 +348,37 @@ export declare const chatMessageSchema: z.ZodObject<{
111
348
  }, {
112
349
  url: string;
113
350
  }>, "many">>;
351
+ tool_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
352
+ id: z.ZodString;
353
+ type: z.ZodLiteral<"function">;
354
+ function: z.ZodObject<{
355
+ name: z.ZodString;
356
+ arguments: z.ZodString;
357
+ }, "strip", z.ZodTypeAny, {
358
+ name: string;
359
+ arguments: string;
360
+ }, {
361
+ name: string;
362
+ arguments: string;
363
+ }>;
364
+ }, "strip", z.ZodTypeAny, {
365
+ function: {
366
+ name: string;
367
+ arguments: string;
368
+ };
369
+ type: "function";
370
+ id: string;
371
+ }, {
372
+ function: {
373
+ name: string;
374
+ arguments: string;
375
+ };
376
+ type: "function";
377
+ id: string;
378
+ }>, "many">>;
379
+ tool_call_id: z.ZodOptional<z.ZodString>;
114
380
  }, "strip", z.ZodTypeAny, {
115
- role: "user" | "assistant" | "system";
381
+ role: "user" | "assistant" | "system" | "tool";
116
382
  content: string | ({
117
383
  text: string;
118
384
  type: "text";
@@ -122,12 +388,33 @@ export declare const chatMessageSchema: z.ZodObject<{
122
388
  url: string;
123
389
  detail?: "auto" | "low" | "high" | undefined;
124
390
  };
125
- })[];
391
+ } | {
392
+ type: "input_audio";
393
+ input_audio: {
394
+ data: string;
395
+ format: "wav" | "mp3" | "aiff" | "aac" | "ogg" | "flac" | "m4a";
396
+ };
397
+ } | {
398
+ type: "file";
399
+ file: {
400
+ filename: string;
401
+ file_data: string;
402
+ };
403
+ })[] | null;
126
404
  images?: {
127
405
  url: string;
128
406
  }[] | undefined;
407
+ tool_calls?: {
408
+ function: {
409
+ name: string;
410
+ arguments: string;
411
+ };
412
+ type: "function";
413
+ id: string;
414
+ }[] | undefined;
415
+ tool_call_id?: string | undefined;
129
416
  }, {
130
- role: "user" | "assistant" | "system";
417
+ role: "user" | "assistant" | "system" | "tool";
131
418
  content: string | ({
132
419
  text: string;
133
420
  type: "text";
@@ -137,16 +424,73 @@ export declare const chatMessageSchema: z.ZodObject<{
137
424
  url: string;
138
425
  detail?: "auto" | "low" | "high" | undefined;
139
426
  };
140
- })[];
427
+ } | {
428
+ type: "input_audio";
429
+ input_audio: {
430
+ data: string;
431
+ format: "wav" | "mp3" | "aiff" | "aac" | "ogg" | "flac" | "m4a";
432
+ };
433
+ } | {
434
+ type: "file";
435
+ file: {
436
+ filename: string;
437
+ file_data: string;
438
+ };
439
+ })[] | null;
141
440
  images?: {
142
441
  url: string;
143
442
  }[] | undefined;
443
+ tool_calls?: {
444
+ function: {
445
+ name: string;
446
+ arguments: string;
447
+ };
448
+ type: "function";
449
+ id: string;
450
+ }[] | undefined;
451
+ tool_call_id?: string | undefined;
452
+ }>;
453
+ export declare const webSearchPluginSchema: z.ZodObject<{
454
+ enabled: z.ZodBoolean;
455
+ engine: z.ZodOptional<z.ZodEnum<["native", "exa"]>>;
456
+ maxResults: z.ZodOptional<z.ZodNumber>;
457
+ searchPrompt: z.ZodOptional<z.ZodString>;
458
+ }, "strip", z.ZodTypeAny, {
459
+ enabled: boolean;
460
+ engine?: "native" | "exa" | undefined;
461
+ maxResults?: number | undefined;
462
+ searchPrompt?: string | undefined;
463
+ }, {
464
+ enabled: boolean;
465
+ engine?: "native" | "exa" | undefined;
466
+ maxResults?: number | undefined;
467
+ searchPrompt?: string | undefined;
468
+ }>;
469
+ export declare const fileParserPluginSchema: z.ZodObject<{
470
+ enabled: z.ZodBoolean;
471
+ pdf: z.ZodOptional<z.ZodObject<{
472
+ engine: z.ZodOptional<z.ZodEnum<["pdf-text", "mistral-ocr", "native"]>>;
473
+ }, "strip", z.ZodTypeAny, {
474
+ engine?: "native" | "pdf-text" | "mistral-ocr" | undefined;
475
+ }, {
476
+ engine?: "native" | "pdf-text" | "mistral-ocr" | undefined;
477
+ }>>;
478
+ }, "strip", z.ZodTypeAny, {
479
+ enabled: boolean;
480
+ pdf?: {
481
+ engine?: "native" | "pdf-text" | "mistral-ocr" | undefined;
482
+ } | undefined;
483
+ }, {
484
+ enabled: boolean;
485
+ pdf?: {
486
+ engine?: "native" | "pdf-text" | "mistral-ocr" | undefined;
487
+ } | undefined;
144
488
  }>;
145
489
  export declare const chatCompletionRequestSchema: z.ZodObject<{
146
490
  model: z.ZodString;
147
491
  messages: z.ZodArray<z.ZodObject<{
148
- role: z.ZodEnum<["user", "assistant", "system"]>;
149
- content: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodUnion<[z.ZodObject<{
492
+ role: z.ZodEnum<["user", "assistant", "system", "tool"]>;
493
+ content: z.ZodNullable<z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodUnion<[z.ZodObject<{
150
494
  type: z.ZodLiteral<"text">;
151
495
  text: z.ZodString;
152
496
  }, "strip", z.ZodTypeAny, {
@@ -179,7 +523,55 @@ export declare const chatCompletionRequestSchema: z.ZodObject<{
179
523
  url: string;
180
524
  detail?: "auto" | "low" | "high" | undefined;
181
525
  };
182
- }>]>, "many">]>;
526
+ }>, z.ZodObject<{
527
+ type: z.ZodLiteral<"input_audio">;
528
+ input_audio: z.ZodObject<{
529
+ data: z.ZodString;
530
+ format: z.ZodEnum<["wav", "mp3", "aiff", "aac", "ogg", "flac", "m4a"]>;
531
+ }, "strip", z.ZodTypeAny, {
532
+ data: string;
533
+ format: "wav" | "mp3" | "aiff" | "aac" | "ogg" | "flac" | "m4a";
534
+ }, {
535
+ data: string;
536
+ format: "wav" | "mp3" | "aiff" | "aac" | "ogg" | "flac" | "m4a";
537
+ }>;
538
+ }, "strip", z.ZodTypeAny, {
539
+ type: "input_audio";
540
+ input_audio: {
541
+ data: string;
542
+ format: "wav" | "mp3" | "aiff" | "aac" | "ogg" | "flac" | "m4a";
543
+ };
544
+ }, {
545
+ type: "input_audio";
546
+ input_audio: {
547
+ data: string;
548
+ format: "wav" | "mp3" | "aiff" | "aac" | "ogg" | "flac" | "m4a";
549
+ };
550
+ }>, z.ZodObject<{
551
+ type: z.ZodLiteral<"file">;
552
+ file: z.ZodObject<{
553
+ filename: z.ZodString;
554
+ file_data: z.ZodString;
555
+ }, "strip", z.ZodTypeAny, {
556
+ filename: string;
557
+ file_data: string;
558
+ }, {
559
+ filename: string;
560
+ file_data: string;
561
+ }>;
562
+ }, "strip", z.ZodTypeAny, {
563
+ type: "file";
564
+ file: {
565
+ filename: string;
566
+ file_data: string;
567
+ };
568
+ }, {
569
+ type: "file";
570
+ file: {
571
+ filename: string;
572
+ file_data: string;
573
+ };
574
+ }>]>, "many">]>>;
183
575
  images: z.ZodOptional<z.ZodArray<z.ZodObject<{
184
576
  url: z.ZodString;
185
577
  }, "strip", z.ZodTypeAny, {
@@ -187,8 +579,37 @@ export declare const chatCompletionRequestSchema: z.ZodObject<{
187
579
  }, {
188
580
  url: string;
189
581
  }>, "many">>;
582
+ tool_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
583
+ id: z.ZodString;
584
+ type: z.ZodLiteral<"function">;
585
+ function: z.ZodObject<{
586
+ name: z.ZodString;
587
+ arguments: z.ZodString;
588
+ }, "strip", z.ZodTypeAny, {
589
+ name: string;
590
+ arguments: string;
591
+ }, {
592
+ name: string;
593
+ arguments: string;
594
+ }>;
595
+ }, "strip", z.ZodTypeAny, {
596
+ function: {
597
+ name: string;
598
+ arguments: string;
599
+ };
600
+ type: "function";
601
+ id: string;
602
+ }, {
603
+ function: {
604
+ name: string;
605
+ arguments: string;
606
+ };
607
+ type: "function";
608
+ id: string;
609
+ }>, "many">>;
610
+ tool_call_id: z.ZodOptional<z.ZodString>;
190
611
  }, "strip", z.ZodTypeAny, {
191
- role: "user" | "assistant" | "system";
612
+ role: "user" | "assistant" | "system" | "tool";
192
613
  content: string | ({
193
614
  text: string;
194
615
  type: "text";
@@ -198,12 +619,33 @@ export declare const chatCompletionRequestSchema: z.ZodObject<{
198
619
  url: string;
199
620
  detail?: "auto" | "low" | "high" | undefined;
200
621
  };
201
- })[];
622
+ } | {
623
+ type: "input_audio";
624
+ input_audio: {
625
+ data: string;
626
+ format: "wav" | "mp3" | "aiff" | "aac" | "ogg" | "flac" | "m4a";
627
+ };
628
+ } | {
629
+ type: "file";
630
+ file: {
631
+ filename: string;
632
+ file_data: string;
633
+ };
634
+ })[] | null;
202
635
  images?: {
203
636
  url: string;
204
637
  }[] | undefined;
638
+ tool_calls?: {
639
+ function: {
640
+ name: string;
641
+ arguments: string;
642
+ };
643
+ type: "function";
644
+ id: string;
645
+ }[] | undefined;
646
+ tool_call_id?: string | undefined;
205
647
  }, {
206
- role: "user" | "assistant" | "system";
648
+ role: "user" | "assistant" | "system" | "tool";
207
649
  content: string | ({
208
650
  text: string;
209
651
  type: "text";
@@ -213,19 +655,128 @@ export declare const chatCompletionRequestSchema: z.ZodObject<{
213
655
  url: string;
214
656
  detail?: "auto" | "low" | "high" | undefined;
215
657
  };
216
- })[];
658
+ } | {
659
+ type: "input_audio";
660
+ input_audio: {
661
+ data: string;
662
+ format: "wav" | "mp3" | "aiff" | "aac" | "ogg" | "flac" | "m4a";
663
+ };
664
+ } | {
665
+ type: "file";
666
+ file: {
667
+ filename: string;
668
+ file_data: string;
669
+ };
670
+ })[] | null;
217
671
  images?: {
218
672
  url: string;
219
673
  }[] | undefined;
674
+ tool_calls?: {
675
+ function: {
676
+ name: string;
677
+ arguments: string;
678
+ };
679
+ type: "function";
680
+ id: string;
681
+ }[] | undefined;
682
+ tool_call_id?: string | undefined;
220
683
  }>, "many">;
221
684
  temperature: z.ZodOptional<z.ZodNumber>;
222
685
  maxTokens: z.ZodOptional<z.ZodNumber>;
223
686
  topP: z.ZodOptional<z.ZodNumber>;
224
687
  stream: z.ZodOptional<z.ZodBoolean>;
688
+ webSearch: z.ZodOptional<z.ZodObject<{
689
+ enabled: z.ZodBoolean;
690
+ engine: z.ZodOptional<z.ZodEnum<["native", "exa"]>>;
691
+ maxResults: z.ZodOptional<z.ZodNumber>;
692
+ searchPrompt: z.ZodOptional<z.ZodString>;
693
+ }, "strip", z.ZodTypeAny, {
694
+ enabled: boolean;
695
+ engine?: "native" | "exa" | undefined;
696
+ maxResults?: number | undefined;
697
+ searchPrompt?: string | undefined;
698
+ }, {
699
+ enabled: boolean;
700
+ engine?: "native" | "exa" | undefined;
701
+ maxResults?: number | undefined;
702
+ searchPrompt?: string | undefined;
703
+ }>>;
704
+ fileParser: z.ZodOptional<z.ZodObject<{
705
+ enabled: z.ZodBoolean;
706
+ pdf: z.ZodOptional<z.ZodObject<{
707
+ engine: z.ZodOptional<z.ZodEnum<["pdf-text", "mistral-ocr", "native"]>>;
708
+ }, "strip", z.ZodTypeAny, {
709
+ engine?: "native" | "pdf-text" | "mistral-ocr" | undefined;
710
+ }, {
711
+ engine?: "native" | "pdf-text" | "mistral-ocr" | undefined;
712
+ }>>;
713
+ }, "strip", z.ZodTypeAny, {
714
+ enabled: boolean;
715
+ pdf?: {
716
+ engine?: "native" | "pdf-text" | "mistral-ocr" | undefined;
717
+ } | undefined;
718
+ }, {
719
+ enabled: boolean;
720
+ pdf?: {
721
+ engine?: "native" | "pdf-text" | "mistral-ocr" | undefined;
722
+ } | undefined;
723
+ }>>;
724
+ thinking: z.ZodOptional<z.ZodBoolean>;
725
+ tools: z.ZodOptional<z.ZodArray<z.ZodObject<{
726
+ type: z.ZodLiteral<"function">;
727
+ function: z.ZodObject<{
728
+ name: z.ZodString;
729
+ description: z.ZodOptional<z.ZodString>;
730
+ parameters: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
731
+ }, "strip", z.ZodTypeAny, {
732
+ name: string;
733
+ description?: string | undefined;
734
+ parameters?: Record<string, unknown> | undefined;
735
+ }, {
736
+ name: string;
737
+ description?: string | undefined;
738
+ parameters?: Record<string, unknown> | undefined;
739
+ }>;
740
+ }, "strip", z.ZodTypeAny, {
741
+ function: {
742
+ name: string;
743
+ description?: string | undefined;
744
+ parameters?: Record<string, unknown> | undefined;
745
+ };
746
+ type: "function";
747
+ }, {
748
+ function: {
749
+ name: string;
750
+ description?: string | undefined;
751
+ parameters?: Record<string, unknown> | undefined;
752
+ };
753
+ type: "function";
754
+ }>, "many">>;
755
+ toolChoice: z.ZodOptional<z.ZodUnion<[z.ZodEnum<["auto", "none", "required"]>, z.ZodObject<{
756
+ type: z.ZodLiteral<"function">;
757
+ function: z.ZodObject<{
758
+ name: z.ZodString;
759
+ }, "strip", z.ZodTypeAny, {
760
+ name: string;
761
+ }, {
762
+ name: string;
763
+ }>;
764
+ }, "strip", z.ZodTypeAny, {
765
+ function: {
766
+ name: string;
767
+ };
768
+ type: "function";
769
+ }, {
770
+ function: {
771
+ name: string;
772
+ };
773
+ type: "function";
774
+ }>]>>;
775
+ parallelToolCalls: z.ZodOptional<z.ZodBoolean>;
225
776
  }, "strip", z.ZodTypeAny, {
226
777
  model: string;
227
778
  messages: {
228
- role: "user" | "assistant" | "system";
779
+ role: "user" | "assistant" | "system" | "tool";
229
780
  content: string | ({
230
781
  text: string;
231
782
  type: "text";
@@ -235,19 +786,68 @@ export declare const chatCompletionRequestSchema: z.ZodObject<{
235
786
  url: string;
236
787
  detail?: "auto" | "low" | "high" | undefined;
237
788
  };
238
- })[];
789
+ } | {
790
+ type: "input_audio";
791
+ input_audio: {
792
+ data: string;
793
+ format: "wav" | "mp3" | "aiff" | "aac" | "ogg" | "flac" | "m4a";
794
+ };
795
+ } | {
796
+ type: "file";
797
+ file: {
798
+ filename: string;
799
+ file_data: string;
800
+ };
801
+ })[] | null;
239
802
  images?: {
240
803
  url: string;
241
804
  }[] | undefined;
805
+ tool_calls?: {
806
+ function: {
807
+ name: string;
808
+ arguments: string;
809
+ };
810
+ type: "function";
811
+ id: string;
812
+ }[] | undefined;
813
+ tool_call_id?: string | undefined;
242
814
  }[];
243
815
  temperature?: number | undefined;
244
816
  maxTokens?: number | undefined;
245
817
  topP?: number | undefined;
246
818
  stream?: boolean | undefined;
819
+ webSearch?: {
820
+ enabled: boolean;
821
+ engine?: "native" | "exa" | undefined;
822
+ maxResults?: number | undefined;
823
+ searchPrompt?: string | undefined;
824
+ } | undefined;
825
+ fileParser?: {
826
+ enabled: boolean;
827
+ pdf?: {
828
+ engine?: "native" | "pdf-text" | "mistral-ocr" | undefined;
829
+ } | undefined;
830
+ } | undefined;
831
+ thinking?: boolean | undefined;
832
+ tools?: {
833
+ function: {
834
+ name: string;
835
+ description?: string | undefined;
836
+ parameters?: Record<string, unknown> | undefined;
837
+ };
838
+ type: "function";
839
+ }[] | undefined;
840
+ toolChoice?: "auto" | "none" | "required" | {
841
+ function: {
842
+ name: string;
843
+ };
844
+ type: "function";
845
+ } | undefined;
846
+ parallelToolCalls?: boolean | undefined;
247
847
  }, {
248
848
  model: string;
249
849
  messages: {
250
- role: "user" | "assistant" | "system";
850
+ role: "user" | "assistant" | "system" | "tool";
251
851
  content: string | ({
252
852
  text: string;
253
853
  type: "text";
@@ -257,18 +857,303 @@ export declare const chatCompletionRequestSchema: z.ZodObject<{
257
857
  url: string;
258
858
  detail?: "auto" | "low" | "high" | undefined;
259
859
  };
260
- })[];
860
+ } | {
861
+ type: "input_audio";
862
+ input_audio: {
863
+ data: string;
864
+ format: "wav" | "mp3" | "aiff" | "aac" | "ogg" | "flac" | "m4a";
865
+ };
866
+ } | {
867
+ type: "file";
868
+ file: {
869
+ filename: string;
870
+ file_data: string;
871
+ };
872
+ })[] | null;
261
873
  images?: {
262
874
  url: string;
263
875
  }[] | undefined;
876
+ tool_calls?: {
877
+ function: {
878
+ name: string;
879
+ arguments: string;
880
+ };
881
+ type: "function";
882
+ id: string;
883
+ }[] | undefined;
884
+ tool_call_id?: string | undefined;
264
885
  }[];
265
886
  temperature?: number | undefined;
266
887
  maxTokens?: number | undefined;
267
888
  topP?: number | undefined;
268
889
  stream?: boolean | undefined;
890
+ webSearch?: {
891
+ enabled: boolean;
892
+ engine?: "native" | "exa" | undefined;
893
+ maxResults?: number | undefined;
894
+ searchPrompt?: string | undefined;
895
+ } | undefined;
896
+ fileParser?: {
897
+ enabled: boolean;
898
+ pdf?: {
899
+ engine?: "native" | "pdf-text" | "mistral-ocr" | undefined;
900
+ } | undefined;
901
+ } | undefined;
902
+ thinking?: boolean | undefined;
903
+ tools?: {
904
+ function: {
905
+ name: string;
906
+ description?: string | undefined;
907
+ parameters?: Record<string, unknown> | undefined;
908
+ };
909
+ type: "function";
910
+ }[] | undefined;
911
+ toolChoice?: "auto" | "none" | "required" | {
912
+ function: {
913
+ name: string;
914
+ };
915
+ type: "function";
916
+ } | undefined;
917
+ parallelToolCalls?: boolean | undefined;
918
+ }>;
919
+ export declare const urlCitationAnnotationSchema: z.ZodObject<{
920
+ type: z.ZodLiteral<"url_citation">;
921
+ urlCitation: z.ZodObject<{
922
+ url: z.ZodString;
923
+ title: z.ZodOptional<z.ZodString>;
924
+ content: z.ZodOptional<z.ZodString>;
925
+ startIndex: z.ZodOptional<z.ZodNumber>;
926
+ endIndex: z.ZodOptional<z.ZodNumber>;
927
+ }, "strip", z.ZodTypeAny, {
928
+ url: string;
929
+ content?: string | undefined;
930
+ title?: string | undefined;
931
+ startIndex?: number | undefined;
932
+ endIndex?: number | undefined;
933
+ }, {
934
+ url: string;
935
+ content?: string | undefined;
936
+ title?: string | undefined;
937
+ startIndex?: number | undefined;
938
+ endIndex?: number | undefined;
939
+ }>;
940
+ }, "strip", z.ZodTypeAny, {
941
+ type: "url_citation";
942
+ urlCitation: {
943
+ url: string;
944
+ content?: string | undefined;
945
+ title?: string | undefined;
946
+ startIndex?: number | undefined;
947
+ endIndex?: number | undefined;
948
+ };
949
+ }, {
950
+ type: "url_citation";
951
+ urlCitation: {
952
+ url: string;
953
+ content?: string | undefined;
954
+ title?: string | undefined;
955
+ startIndex?: number | undefined;
956
+ endIndex?: number | undefined;
957
+ };
958
+ }>;
959
+ export declare const fileAnnotationSchema: z.ZodObject<{
960
+ type: z.ZodLiteral<"file">;
961
+ file: z.ZodObject<{
962
+ filename: z.ZodString;
963
+ parsedContent: z.ZodOptional<z.ZodString>;
964
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
965
+ }, "strip", z.ZodTypeAny, {
966
+ filename: string;
967
+ parsedContent?: string | undefined;
968
+ metadata?: Record<string, unknown> | undefined;
969
+ }, {
970
+ filename: string;
971
+ parsedContent?: string | undefined;
972
+ metadata?: Record<string, unknown> | undefined;
973
+ }>;
974
+ }, "strip", z.ZodTypeAny, {
975
+ type: "file";
976
+ file: {
977
+ filename: string;
978
+ parsedContent?: string | undefined;
979
+ metadata?: Record<string, unknown> | undefined;
980
+ };
981
+ }, {
982
+ type: "file";
983
+ file: {
984
+ filename: string;
985
+ parsedContent?: string | undefined;
986
+ metadata?: Record<string, unknown> | undefined;
987
+ };
269
988
  }>;
989
+ export declare const annotationSchema: z.ZodUnion<[z.ZodObject<{
990
+ type: z.ZodLiteral<"url_citation">;
991
+ urlCitation: z.ZodObject<{
992
+ url: z.ZodString;
993
+ title: z.ZodOptional<z.ZodString>;
994
+ content: z.ZodOptional<z.ZodString>;
995
+ startIndex: z.ZodOptional<z.ZodNumber>;
996
+ endIndex: z.ZodOptional<z.ZodNumber>;
997
+ }, "strip", z.ZodTypeAny, {
998
+ url: string;
999
+ content?: string | undefined;
1000
+ title?: string | undefined;
1001
+ startIndex?: number | undefined;
1002
+ endIndex?: number | undefined;
1003
+ }, {
1004
+ url: string;
1005
+ content?: string | undefined;
1006
+ title?: string | undefined;
1007
+ startIndex?: number | undefined;
1008
+ endIndex?: number | undefined;
1009
+ }>;
1010
+ }, "strip", z.ZodTypeAny, {
1011
+ type: "url_citation";
1012
+ urlCitation: {
1013
+ url: string;
1014
+ content?: string | undefined;
1015
+ title?: string | undefined;
1016
+ startIndex?: number | undefined;
1017
+ endIndex?: number | undefined;
1018
+ };
1019
+ }, {
1020
+ type: "url_citation";
1021
+ urlCitation: {
1022
+ url: string;
1023
+ content?: string | undefined;
1024
+ title?: string | undefined;
1025
+ startIndex?: number | undefined;
1026
+ endIndex?: number | undefined;
1027
+ };
1028
+ }>, z.ZodObject<{
1029
+ type: z.ZodLiteral<"file">;
1030
+ file: z.ZodObject<{
1031
+ filename: z.ZodString;
1032
+ parsedContent: z.ZodOptional<z.ZodString>;
1033
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1034
+ }, "strip", z.ZodTypeAny, {
1035
+ filename: string;
1036
+ parsedContent?: string | undefined;
1037
+ metadata?: Record<string, unknown> | undefined;
1038
+ }, {
1039
+ filename: string;
1040
+ parsedContent?: string | undefined;
1041
+ metadata?: Record<string, unknown> | undefined;
1042
+ }>;
1043
+ }, "strip", z.ZodTypeAny, {
1044
+ type: "file";
1045
+ file: {
1046
+ filename: string;
1047
+ parsedContent?: string | undefined;
1048
+ metadata?: Record<string, unknown> | undefined;
1049
+ };
1050
+ }, {
1051
+ type: "file";
1052
+ file: {
1053
+ filename: string;
1054
+ parsedContent?: string | undefined;
1055
+ metadata?: Record<string, unknown> | undefined;
1056
+ };
1057
+ }>]>;
270
1058
  export declare const chatCompletionResponseSchema: z.ZodObject<{
271
1059
  text: z.ZodString;
1060
+ tool_calls: z.ZodOptional<z.ZodArray<z.ZodObject<{
1061
+ id: z.ZodString;
1062
+ type: z.ZodLiteral<"function">;
1063
+ function: z.ZodObject<{
1064
+ name: z.ZodString;
1065
+ arguments: z.ZodString;
1066
+ }, "strip", z.ZodTypeAny, {
1067
+ name: string;
1068
+ arguments: string;
1069
+ }, {
1070
+ name: string;
1071
+ arguments: string;
1072
+ }>;
1073
+ }, "strip", z.ZodTypeAny, {
1074
+ function: {
1075
+ name: string;
1076
+ arguments: string;
1077
+ };
1078
+ type: "function";
1079
+ id: string;
1080
+ }, {
1081
+ function: {
1082
+ name: string;
1083
+ arguments: string;
1084
+ };
1085
+ type: "function";
1086
+ id: string;
1087
+ }>, "many">>;
1088
+ annotations: z.ZodOptional<z.ZodArray<z.ZodUnion<[z.ZodObject<{
1089
+ type: z.ZodLiteral<"url_citation">;
1090
+ urlCitation: z.ZodObject<{
1091
+ url: z.ZodString;
1092
+ title: z.ZodOptional<z.ZodString>;
1093
+ content: z.ZodOptional<z.ZodString>;
1094
+ startIndex: z.ZodOptional<z.ZodNumber>;
1095
+ endIndex: z.ZodOptional<z.ZodNumber>;
1096
+ }, "strip", z.ZodTypeAny, {
1097
+ url: string;
1098
+ content?: string | undefined;
1099
+ title?: string | undefined;
1100
+ startIndex?: number | undefined;
1101
+ endIndex?: number | undefined;
1102
+ }, {
1103
+ url: string;
1104
+ content?: string | undefined;
1105
+ title?: string | undefined;
1106
+ startIndex?: number | undefined;
1107
+ endIndex?: number | undefined;
1108
+ }>;
1109
+ }, "strip", z.ZodTypeAny, {
1110
+ type: "url_citation";
1111
+ urlCitation: {
1112
+ url: string;
1113
+ content?: string | undefined;
1114
+ title?: string | undefined;
1115
+ startIndex?: number | undefined;
1116
+ endIndex?: number | undefined;
1117
+ };
1118
+ }, {
1119
+ type: "url_citation";
1120
+ urlCitation: {
1121
+ url: string;
1122
+ content?: string | undefined;
1123
+ title?: string | undefined;
1124
+ startIndex?: number | undefined;
1125
+ endIndex?: number | undefined;
1126
+ };
1127
+ }>, z.ZodObject<{
1128
+ type: z.ZodLiteral<"file">;
1129
+ file: z.ZodObject<{
1130
+ filename: z.ZodString;
1131
+ parsedContent: z.ZodOptional<z.ZodString>;
1132
+ metadata: z.ZodOptional<z.ZodRecord<z.ZodString, z.ZodUnknown>>;
1133
+ }, "strip", z.ZodTypeAny, {
1134
+ filename: string;
1135
+ parsedContent?: string | undefined;
1136
+ metadata?: Record<string, unknown> | undefined;
1137
+ }, {
1138
+ filename: string;
1139
+ parsedContent?: string | undefined;
1140
+ metadata?: Record<string, unknown> | undefined;
1141
+ }>;
1142
+ }, "strip", z.ZodTypeAny, {
1143
+ type: "file";
1144
+ file: {
1145
+ filename: string;
1146
+ parsedContent?: string | undefined;
1147
+ metadata?: Record<string, unknown> | undefined;
1148
+ };
1149
+ }, {
1150
+ type: "file";
1151
+ file: {
1152
+ filename: string;
1153
+ parsedContent?: string | undefined;
1154
+ metadata?: Record<string, unknown> | undefined;
1155
+ };
1156
+ }>]>, "many">>;
272
1157
  metadata: z.ZodOptional<z.ZodObject<{
273
1158
  model: z.ZodString;
274
1159
  usage: z.ZodOptional<z.ZodObject<{
@@ -301,6 +1186,14 @@ export declare const chatCompletionResponseSchema: z.ZodObject<{
301
1186
  }>>;
302
1187
  }, "strip", z.ZodTypeAny, {
303
1188
  text: string;
1189
+ tool_calls?: {
1190
+ function: {
1191
+ name: string;
1192
+ arguments: string;
1193
+ };
1194
+ type: "function";
1195
+ id: string;
1196
+ }[] | undefined;
304
1197
  metadata?: {
305
1198
  model: string;
306
1199
  usage?: {
@@ -309,8 +1202,33 @@ export declare const chatCompletionResponseSchema: z.ZodObject<{
309
1202
  completionTokens?: number | undefined;
310
1203
  } | undefined;
311
1204
  } | undefined;
1205
+ annotations?: ({
1206
+ type: "url_citation";
1207
+ urlCitation: {
1208
+ url: string;
1209
+ content?: string | undefined;
1210
+ title?: string | undefined;
1211
+ startIndex?: number | undefined;
1212
+ endIndex?: number | undefined;
1213
+ };
1214
+ } | {
1215
+ type: "file";
1216
+ file: {
1217
+ filename: string;
1218
+ parsedContent?: string | undefined;
1219
+ metadata?: Record<string, unknown> | undefined;
1220
+ };
1221
+ })[] | undefined;
312
1222
  }, {
313
1223
  text: string;
1224
+ tool_calls?: {
1225
+ function: {
1226
+ name: string;
1227
+ arguments: string;
1228
+ };
1229
+ type: "function";
1230
+ id: string;
1231
+ }[] | undefined;
314
1232
  metadata?: {
315
1233
  model: string;
316
1234
  usage?: {
@@ -319,6 +1237,121 @@ export declare const chatCompletionResponseSchema: z.ZodObject<{
319
1237
  completionTokens?: number | undefined;
320
1238
  } | undefined;
321
1239
  } | undefined;
1240
+ annotations?: ({
1241
+ type: "url_citation";
1242
+ urlCitation: {
1243
+ url: string;
1244
+ content?: string | undefined;
1245
+ title?: string | undefined;
1246
+ startIndex?: number | undefined;
1247
+ endIndex?: number | undefined;
1248
+ };
1249
+ } | {
1250
+ type: "file";
1251
+ file: {
1252
+ filename: string;
1253
+ parsedContent?: string | undefined;
1254
+ metadata?: Record<string, unknown> | undefined;
1255
+ };
1256
+ })[] | undefined;
1257
+ }>;
1258
+ export declare const embeddingsRequestSchema: z.ZodObject<{
1259
+ model: z.ZodString;
1260
+ input: z.ZodUnion<[z.ZodString, z.ZodArray<z.ZodString, "many">]>;
1261
+ encoding_format: z.ZodOptional<z.ZodEnum<["float", "base64"]>>;
1262
+ dimensions: z.ZodOptional<z.ZodNumber>;
1263
+ }, "strip", z.ZodTypeAny, {
1264
+ model: string;
1265
+ input: string | string[];
1266
+ encoding_format?: "float" | "base64" | undefined;
1267
+ dimensions?: number | undefined;
1268
+ }, {
1269
+ model: string;
1270
+ input: string | string[];
1271
+ encoding_format?: "float" | "base64" | undefined;
1272
+ dimensions?: number | undefined;
1273
+ }>;
1274
+ export declare const embeddingObjectSchema: z.ZodObject<{
1275
+ object: z.ZodLiteral<"embedding">;
1276
+ embedding: z.ZodUnion<[z.ZodArray<z.ZodNumber, "many">, z.ZodString]>;
1277
+ index: z.ZodNumber;
1278
+ }, "strip", z.ZodTypeAny, {
1279
+ object: "embedding";
1280
+ embedding: string | number[];
1281
+ index: number;
1282
+ }, {
1283
+ object: "embedding";
1284
+ embedding: string | number[];
1285
+ index: number;
1286
+ }>;
1287
+ export declare const embeddingsResponseSchema: z.ZodObject<{
1288
+ object: z.ZodLiteral<"list">;
1289
+ data: z.ZodArray<z.ZodObject<{
1290
+ object: z.ZodLiteral<"embedding">;
1291
+ embedding: z.ZodUnion<[z.ZodArray<z.ZodNumber, "many">, z.ZodString]>;
1292
+ index: z.ZodNumber;
1293
+ }, "strip", z.ZodTypeAny, {
1294
+ object: "embedding";
1295
+ embedding: string | number[];
1296
+ index: number;
1297
+ }, {
1298
+ object: "embedding";
1299
+ embedding: string | number[];
1300
+ index: number;
1301
+ }>, "many">;
1302
+ metadata: z.ZodOptional<z.ZodObject<{
1303
+ model: z.ZodString;
1304
+ usage: z.ZodOptional<z.ZodObject<{
1305
+ promptTokens: z.ZodOptional<z.ZodNumber>;
1306
+ totalTokens: z.ZodOptional<z.ZodNumber>;
1307
+ }, "strip", z.ZodTypeAny, {
1308
+ totalTokens?: number | undefined;
1309
+ promptTokens?: number | undefined;
1310
+ }, {
1311
+ totalTokens?: number | undefined;
1312
+ promptTokens?: number | undefined;
1313
+ }>>;
1314
+ }, "strip", z.ZodTypeAny, {
1315
+ model: string;
1316
+ usage?: {
1317
+ totalTokens?: number | undefined;
1318
+ promptTokens?: number | undefined;
1319
+ } | undefined;
1320
+ }, {
1321
+ model: string;
1322
+ usage?: {
1323
+ totalTokens?: number | undefined;
1324
+ promptTokens?: number | undefined;
1325
+ } | undefined;
1326
+ }>>;
1327
+ }, "strip", z.ZodTypeAny, {
1328
+ object: "list";
1329
+ data: {
1330
+ object: "embedding";
1331
+ embedding: string | number[];
1332
+ index: number;
1333
+ }[];
1334
+ metadata?: {
1335
+ model: string;
1336
+ usage?: {
1337
+ totalTokens?: number | undefined;
1338
+ promptTokens?: number | undefined;
1339
+ } | undefined;
1340
+ } | undefined;
1341
+ }, {
1342
+ object: "list";
1343
+ data: {
1344
+ object: "embedding";
1345
+ embedding: string | number[];
1346
+ index: number;
1347
+ }[];
1348
+ metadata?: {
1349
+ model: string;
1350
+ usage?: {
1351
+ totalTokens?: number | undefined;
1352
+ promptTokens?: number | undefined;
1353
+ } | undefined;
1354
+ } | undefined;
322
1355
  }>;
323
1356
  export declare const imageGenerationRequestSchema: z.ZodObject<{
324
1357
  model: z.ZodString;
@@ -416,43 +1449,46 @@ export declare const imageGenerationResponseSchema: z.ZodObject<{
416
1449
  }>;
417
1450
  export declare const aiModelSchema: z.ZodObject<{
418
1451
  id: z.ZodString;
419
- inputModality: z.ZodArray<z.ZodEnum<["text", "image"]>, "many">;
420
- outputModality: z.ZodArray<z.ZodEnum<["text", "image"]>, "many">;
1452
+ inputModality: z.ZodArray<z.ZodEnum<["text", "image", "audio"]>, "many">;
1453
+ outputModality: z.ZodArray<z.ZodEnum<["text", "image", "audio"]>, "many">;
421
1454
  provider: z.ZodString;
422
1455
  modelId: z.ZodString;
423
- priceLevel: z.ZodOptional<z.ZodNumber>;
1456
+ inputPrice: z.ZodOptional<z.ZodNumber>;
1457
+ outputPrice: z.ZodOptional<z.ZodNumber>;
424
1458
  }, "strip", z.ZodTypeAny, {
425
- inputModality: ("text" | "image")[];
426
- outputModality: ("text" | "image")[];
1459
+ inputModality: ("text" | "image" | "audio")[];
1460
+ outputModality: ("text" | "image" | "audio")[];
427
1461
  provider: string;
428
1462
  modelId: string;
429
1463
  id: string;
430
- priceLevel?: number | undefined;
1464
+ inputPrice?: number | undefined;
1465
+ outputPrice?: number | undefined;
431
1466
  }, {
432
- inputModality: ("text" | "image")[];
433
- outputModality: ("text" | "image")[];
1467
+ inputModality: ("text" | "image" | "audio")[];
1468
+ outputModality: ("text" | "image" | "audio")[];
434
1469
  provider: string;
435
1470
  modelId: string;
436
1471
  id: string;
437
- priceLevel?: number | undefined;
1472
+ inputPrice?: number | undefined;
1473
+ outputPrice?: number | undefined;
438
1474
  }>;
439
1475
  export declare const createAIConfigurationRequestSchema: z.ZodObject<Omit<{
440
- inputModality: z.ZodArray<z.ZodEnum<["text", "image"]>, "many">;
441
- outputModality: z.ZodArray<z.ZodEnum<["text", "image"]>, "many">;
1476
+ inputModality: z.ZodArray<z.ZodEnum<["text", "image", "audio"]>, "many">;
1477
+ outputModality: z.ZodArray<z.ZodEnum<["text", "image", "audio"]>, "many">;
442
1478
  provider: z.ZodString;
443
1479
  modelId: z.ZodString;
444
1480
  systemPrompt: z.ZodOptional<z.ZodString>;
445
1481
  } & {
446
1482
  id: z.ZodString;
447
1483
  }, "id">, "strip", z.ZodTypeAny, {
448
- inputModality: ("text" | "image")[];
449
- outputModality: ("text" | "image")[];
1484
+ inputModality: ("text" | "image" | "audio")[];
1485
+ outputModality: ("text" | "image" | "audio")[];
450
1486
  provider: string;
451
1487
  modelId: string;
452
1488
  systemPrompt?: string | undefined;
453
1489
  }, {
454
- inputModality: ("text" | "image")[];
455
- outputModality: ("text" | "image")[];
1490
+ inputModality: ("text" | "image" | "audio")[];
1491
+ outputModality: ("text" | "image" | "audio")[];
456
1492
  provider: string;
457
1493
  modelId: string;
458
1494
  systemPrompt?: string | undefined;
@@ -477,11 +1513,11 @@ export declare const listAIUsageResponseSchema: z.ZodObject<{
477
1513
  modelId: z.ZodOptional<z.ZodNullable<z.ZodString>>;
478
1514
  model: z.ZodNullable<z.ZodString>;
479
1515
  provider: z.ZodNullable<z.ZodString>;
480
- inputModality: z.ZodNullable<z.ZodArray<z.ZodEnum<["text", "image"]>, "many">>;
481
- outputModality: z.ZodNullable<z.ZodArray<z.ZodEnum<["text", "image"]>, "many">>;
1516
+ inputModality: z.ZodNullable<z.ZodArray<z.ZodEnum<["text", "image", "audio"]>, "many">>;
1517
+ outputModality: z.ZodNullable<z.ZodArray<z.ZodEnum<["text", "image", "audio"]>, "many">>;
482
1518
  }, "strip", z.ZodTypeAny, {
483
- inputModality: ("text" | "image")[] | null;
484
- outputModality: ("text" | "image")[] | null;
1519
+ inputModality: ("text" | "image" | "audio")[] | null;
1520
+ outputModality: ("text" | "image" | "audio")[] | null;
485
1521
  provider: string | null;
486
1522
  id: string;
487
1523
  configId: string;
@@ -493,8 +1529,8 @@ export declare const listAIUsageResponseSchema: z.ZodObject<{
493
1529
  imageCount?: number | undefined;
494
1530
  imageResolution?: string | undefined;
495
1531
  }, {
496
- inputModality: ("text" | "image")[] | null;
497
- outputModality: ("text" | "image")[] | null;
1532
+ inputModality: ("text" | "image" | "audio")[] | null;
1533
+ outputModality: ("text" | "image" | "audio")[] | null;
498
1534
  provider: string | null;
499
1535
  id: string;
500
1536
  configId: string;
@@ -509,8 +1545,8 @@ export declare const listAIUsageResponseSchema: z.ZodObject<{
509
1545
  total: z.ZodNumber;
510
1546
  }, "strip", z.ZodTypeAny, {
511
1547
  records: {
512
- inputModality: ("text" | "image")[] | null;
513
- outputModality: ("text" | "image")[] | null;
1548
+ inputModality: ("text" | "image" | "audio")[] | null;
1549
+ outputModality: ("text" | "image" | "audio")[] | null;
514
1550
  provider: string | null;
515
1551
  id: string;
516
1552
  configId: string;
@@ -525,8 +1561,8 @@ export declare const listAIUsageResponseSchema: z.ZodObject<{
525
1561
  total: number;
526
1562
  }, {
527
1563
  records: {
528
- inputModality: ("text" | "image")[] | null;
529
- outputModality: ("text" | "image")[] | null;
1564
+ inputModality: ("text" | "image" | "audio")[] | null;
1565
+ outputModality: ("text" | "image" | "audio")[] | null;
530
1566
  provider: string | null;
531
1567
  id: string;
532
1568
  configId: string;
@@ -569,15 +1605,56 @@ export declare const getAIUsageSummaryRequestSchema: z.ZodObject<{
569
1605
  startDate?: string | undefined;
570
1606
  endDate?: string | undefined;
571
1607
  }>;
1608
+ export declare const keySourceSchema: z.ZodEnum<["byok", "cloud", "env", "unconfigured"]>;
1609
+ export declare const gatewayConfigResponseSchema: z.ZodObject<{
1610
+ keySource: z.ZodEnum<["byok", "cloud", "env", "unconfigured"]>;
1611
+ hasByokKey: z.ZodBoolean;
1612
+ maskedKey: z.ZodOptional<z.ZodString>;
1613
+ }, "strip", z.ZodTypeAny, {
1614
+ keySource: "byok" | "cloud" | "env" | "unconfigured";
1615
+ hasByokKey: boolean;
1616
+ maskedKey?: string | undefined;
1617
+ }, {
1618
+ keySource: "byok" | "cloud" | "env" | "unconfigured";
1619
+ hasByokKey: boolean;
1620
+ maskedKey?: string | undefined;
1621
+ }>;
1622
+ export declare const setGatewayBYOKKeyRequestSchema: z.ZodObject<{
1623
+ apiKey: z.ZodString;
1624
+ }, "strip", z.ZodTypeAny, {
1625
+ apiKey: string;
1626
+ }, {
1627
+ apiKey: string;
1628
+ }>;
1629
+ export type ToolFunction = z.infer<typeof toolFunctionSchema>;
1630
+ export type Tool = z.infer<typeof toolSchema>;
1631
+ export type ToolChoice = z.infer<typeof toolChoiceSchema>;
1632
+ export type ToolCall = z.infer<typeof toolCallSchema>;
1633
+ export type TextContentSchema = z.infer<typeof textContentSchema>;
1634
+ export type ImageContentSchema = z.infer<typeof imageContentSchema>;
1635
+ export type AudioContentSchema = z.infer<typeof audioContentSchema>;
1636
+ export type FileContentSchema = z.infer<typeof fileContentSchema>;
1637
+ export type ContentSchema = z.infer<typeof contentSchema>;
572
1638
  export type ChatMessageSchema = z.infer<typeof chatMessageSchema>;
1639
+ export type WebSearchPlugin = z.infer<typeof webSearchPluginSchema>;
1640
+ export type FileParserPlugin = z.infer<typeof fileParserPluginSchema>;
1641
+ export type UrlCitationAnnotation = z.infer<typeof urlCitationAnnotationSchema>;
1642
+ export type FileAnnotation = z.infer<typeof fileAnnotationSchema>;
1643
+ export type Annotation = z.infer<typeof annotationSchema>;
573
1644
  export type ChatCompletionRequest = z.infer<typeof chatCompletionRequestSchema>;
574
1645
  export type ChatCompletionResponse = z.infer<typeof chatCompletionResponseSchema>;
575
1646
  export type ImageGenerationRequest = z.infer<typeof imageGenerationRequestSchema>;
576
1647
  export type ImageGenerationResponse = z.infer<typeof imageGenerationResponseSchema>;
1648
+ export type EmbeddingsRequest = z.infer<typeof embeddingsRequestSchema>;
1649
+ export type EmbeddingObject = z.infer<typeof embeddingObjectSchema>;
1650
+ export type EmbeddingsResponse = z.infer<typeof embeddingsResponseSchema>;
577
1651
  export type AIModelSchema = z.infer<typeof aiModelSchema>;
578
1652
  export type CreateAIConfigurationRequest = z.infer<typeof createAIConfigurationRequestSchema>;
579
1653
  export type UpdateAIConfigurationRequest = z.infer<typeof updateAIConfigurationRequestSchema>;
580
1654
  export type ListAIUsageResponse = z.infer<typeof listAIUsageResponseSchema>;
581
1655
  export type GetAIUsageRequest = z.infer<typeof getAIUsageRequestSchema>;
582
1656
  export type GetAIUsageSummaryRequest = z.infer<typeof getAIUsageSummaryRequestSchema>;
1657
+ export type KeySource = z.infer<typeof keySourceSchema>;
1658
+ export type GatewayConfigResponse = z.infer<typeof gatewayConfigResponseSchema>;
1659
+ export type SetGatewayBYOKKeyRequest = z.infer<typeof setGatewayBYOKKeyRequestSchema>;
583
1660
  //# sourceMappingURL=ai-api.schema.d.ts.map