@opencode/ai 0.0.0-dev-21614 → 0.0.0-dev-21631

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 (74) hide show
  1. package/dist/image-client.d.ts +8 -8
  2. package/dist/image.d.ts +148 -148
  3. package/dist/promise.d.ts +120 -120
  4. package/dist/protocols/alibaba-chat.d.ts +12 -12
  5. package/dist/protocols/alibaba-messages.d.ts +11 -11
  6. package/dist/protocols/alibaba-responses.d.ts +35 -35
  7. package/dist/protocols/anthropic-messages.d.ts +40 -40
  8. package/dist/protocols/bedrock-converse.d.ts +30 -30
  9. package/dist/protocols/cartesia-speech.d.ts +32 -32
  10. package/dist/protocols/cohere-chat.d.ts +7 -8
  11. package/dist/protocols/deepgram-speech.d.ts +32 -32
  12. package/dist/protocols/elevenlabs-speech.d.ts +32 -32
  13. package/dist/protocols/gemini.d.ts +34 -34
  14. package/dist/protocols/google-interactions.d.ts +14 -14
  15. package/dist/protocols/google-speech.d.ts +32 -32
  16. package/dist/protocols/google-transcription.d.ts +32 -32
  17. package/dist/protocols/meta-messages.d.ts +23 -23
  18. package/dist/protocols/meta-responses.d.ts +78 -78
  19. package/dist/protocols/mistral-chat.d.ts +68 -68
  20. package/dist/protocols/open-responses.d.ts +396 -396
  21. package/dist/protocols/openai-chat.d.ts +60 -60
  22. package/dist/protocols/openai-compatible-chat.d.ts +12 -12
  23. package/dist/protocols/openai-compatible-responses.d.ts +35 -35
  24. package/dist/protocols/openai-images.d.ts +32 -32
  25. package/dist/protocols/openai-responses.d.ts +235 -235
  26. package/dist/protocols/openai-speech.d.ts +32 -32
  27. package/dist/protocols/openai-transcription.d.ts +32 -32
  28. package/dist/protocols/utils/tool-stream.d.ts +1 -1
  29. package/dist/protocols/venice-chat.d.ts +12 -12
  30. package/dist/protocols/xai-responses.d.ts +78 -78
  31. package/dist/protocols/zai-chat.d.ts +12 -12
  32. package/dist/protocols/zai-messages.d.ts +11 -11
  33. package/dist/providers/alibaba.d.ts +69 -69
  34. package/dist/providers/amazon-bedrock-mantle.d.ts +202 -202
  35. package/dist/providers/amazon-bedrock.d.ts +15 -15
  36. package/dist/providers/anthropic-compatible.d.ts +13 -13
  37. package/dist/providers/anthropic.d.ts +13 -13
  38. package/dist/providers/azure.d.ts +106 -106
  39. package/dist/providers/baseten.d.ts +24 -24
  40. package/dist/providers/cerebras.d.ts +24 -24
  41. package/dist/providers/cloudflare-ai-gateway.d.ts +230 -227
  42. package/dist/providers/cloudflare-workers-ai.d.ts +24 -24
  43. package/dist/providers/cohere.d.ts +75 -75
  44. package/dist/providers/deepinfra.d.ts +24 -24
  45. package/dist/providers/deepseek.d.ts +24 -24
  46. package/dist/providers/digitalocean.d.ts +36 -36
  47. package/dist/providers/fireworks.d.ts +24 -24
  48. package/dist/providers/google-vertex-chat.d.ts +12 -12
  49. package/dist/providers/google-vertex-messages.d.ts +13 -13
  50. package/dist/providers/google-vertex-mistral.d.ts +17 -17
  51. package/dist/providers/google-vertex-responses.d.ts +35 -35
  52. package/dist/providers/google-vertex.d.ts +17 -17
  53. package/dist/providers/google.d.ts +17 -17
  54. package/dist/providers/groq.d.ts +24 -24
  55. package/dist/providers/meta.d.ts +179 -179
  56. package/dist/providers/minimax.d.ts +71 -71
  57. package/dist/providers/mistral.d.ts +28 -28
  58. package/dist/providers/moonshot.d.ts +202 -202
  59. package/dist/providers/openai-compatible-responses.d.ts +35 -35
  60. package/dist/providers/openai-compatible.d.ts +12 -12
  61. package/dist/providers/openai.d.ts +100 -100
  62. package/dist/providers/openrouter.d.ts +36 -36
  63. package/dist/providers/togetherai.d.ts +24 -24
  64. package/dist/providers/venice.d.ts +12 -12
  65. package/dist/providers/xai.d.ts +12 -12
  66. package/dist/providers/zai-coding-plan.d.ts +58 -58
  67. package/dist/providers/zai.d.ts +12 -12
  68. package/dist/speech-client.d.ts +8 -8
  69. package/dist/speech.d.ts +148 -148
  70. package/dist/transcription-client.d.ts +8 -8
  71. package/dist/transcription.d.ts +148 -148
  72. package/dist/video-client.d.ts +8 -8
  73. package/dist/video.d.ts +114 -114
  74. package/package.json +6 -5
@@ -28,13 +28,6 @@ export declare const routes: (Route<{
28
28
  readonly messages: readonly ({
29
29
  readonly role: "system";
30
30
  readonly content: string | readonly ({
31
- readonly type: "text";
32
- readonly text: string;
33
- readonly cache_control?: {
34
- readonly type: "ephemeral";
35
- readonly ttl?: string | undefined;
36
- } | undefined;
37
- } | {
38
31
  readonly type: "image_url";
39
32
  readonly image_url: {
40
33
  readonly url: string;
@@ -45,17 +38,17 @@ export declare const routes: (Route<{
45
38
  readonly filename: string;
46
39
  readonly file_data: string;
47
40
  };
48
- })[];
49
- } | {
50
- readonly role: "user";
51
- readonly content: string | readonly ({
41
+ } | {
52
42
  readonly type: "text";
53
43
  readonly text: string;
54
44
  readonly cache_control?: {
55
45
  readonly type: "ephemeral";
56
46
  readonly ttl?: string | undefined;
57
47
  } | undefined;
58
- } | {
48
+ })[];
49
+ } | {
50
+ readonly role: "user";
51
+ readonly content: string | readonly ({
59
52
  readonly type: "image_url";
60
53
  readonly image_url: {
61
54
  readonly url: string;
@@ -66,6 +59,13 @@ export declare const routes: (Route<{
66
59
  readonly filename: string;
67
60
  readonly file_data: string;
68
61
  };
62
+ } | {
63
+ readonly type: "text";
64
+ readonly text: string;
65
+ readonly cache_control?: {
66
+ readonly type: "ephemeral";
67
+ readonly ttl?: string | undefined;
68
+ } | undefined;
69
69
  })[];
70
70
  } | {
71
71
  readonly role: "tool";
@@ -308,12 +308,30 @@ export declare const routes: (Route<{
308
308
  } | {
309
309
  readonly role: "assistant";
310
310
  readonly content: readonly ({
311
+ readonly type: "compaction";
312
+ readonly content: string | null;
313
+ } | {
311
314
  readonly type: "text";
312
315
  readonly text: string;
313
316
  readonly cache_control?: {
314
317
  readonly type: "ephemeral";
315
318
  readonly ttl?: "1h" | "5m" | undefined;
316
319
  } | undefined;
320
+ } | {
321
+ readonly type: "thinking";
322
+ readonly thinking: string;
323
+ readonly signature: string;
324
+ readonly cache_control?: {
325
+ readonly type: "ephemeral";
326
+ readonly ttl?: "1h" | "5m" | undefined;
327
+ } | undefined;
328
+ } | {
329
+ readonly type: "redacted_thinking";
330
+ readonly data: string;
331
+ readonly cache_control?: {
332
+ readonly type: "ephemeral";
333
+ readonly ttl?: "1h" | "5m" | undefined;
334
+ } | undefined;
317
335
  } | {
318
336
  readonly type: "tool_use";
319
337
  readonly id: string;
@@ -340,24 +358,6 @@ export declare const routes: (Route<{
340
358
  readonly type: "ephemeral";
341
359
  readonly ttl?: "1h" | "5m" | undefined;
342
360
  } | undefined;
343
- } | {
344
- readonly type: "compaction";
345
- readonly content: string | null;
346
- } | {
347
- readonly type: "thinking";
348
- readonly thinking: string;
349
- readonly signature: string;
350
- readonly cache_control?: {
351
- readonly type: "ephemeral";
352
- readonly ttl?: "1h" | "5m" | undefined;
353
- } | undefined;
354
- } | {
355
- readonly type: "redacted_thinking";
356
- readonly data: string;
357
- readonly cache_control?: {
358
- readonly type: "ephemeral";
359
- readonly ttl?: "1h" | "5m" | undefined;
360
- } | undefined;
361
361
  })[];
362
362
  } | {
363
363
  readonly role: "system";
@@ -429,14 +429,6 @@ export declare const routes: (Route<{
429
429
  }, import("../route/transport/http.js").HttpPrepared<string>, import("../route/client.js").CompactionOperations | undefined> | Route<{
430
430
  readonly model: string;
431
431
  readonly input: readonly ({
432
- readonly [x: string]: unknown;
433
- readonly type: string;
434
- readonly id: string;
435
- } | {
436
- readonly type: "compaction";
437
- readonly id?: string | null | undefined;
438
- readonly encrypted_content: string;
439
- } | {
440
432
  readonly type: "configuration_update";
441
433
  readonly reasoning: {
442
434
  readonly effort: import("../schema/options.js").ReasoningEffort;
@@ -449,10 +441,45 @@ export declare const routes: (Route<{
449
441
  readonly type: "message";
450
442
  readonly role: "developer";
451
443
  readonly content: string;
444
+ } | {
445
+ readonly type: "function_call_output";
446
+ readonly call_id: string;
447
+ readonly output: string | readonly ({
448
+ readonly type: "input_text";
449
+ readonly text: string;
450
+ } | {
451
+ readonly type: "input_video";
452
+ readonly video_url: string;
453
+ } | {
454
+ readonly type: "input_image";
455
+ readonly image_url: string;
456
+ readonly detail?: string | undefined;
457
+ } | {
458
+ readonly type: "input_file";
459
+ readonly filename: string;
460
+ readonly detail?: string | undefined;
461
+ readonly file_data?: string | undefined;
462
+ readonly file_url?: string | undefined;
463
+ })[];
464
+ } | {
465
+ readonly type: "reasoning";
466
+ readonly id?: string | undefined;
467
+ readonly summary: readonly {
468
+ readonly type: "summary_text";
469
+ readonly text: string;
470
+ }[];
471
+ readonly encrypted_content?: string | null | undefined;
472
+ } | {
473
+ readonly type: "compaction";
474
+ readonly id?: string | null | undefined;
475
+ readonly encrypted_content: string;
452
476
  } | {
453
477
  readonly type: "message";
454
478
  readonly role: "user";
455
479
  readonly content: readonly ({
480
+ readonly type: "input_text";
481
+ readonly text: string;
482
+ } | {
456
483
  readonly type: "input_image";
457
484
  readonly image_url: string;
458
485
  readonly detail?: string | undefined;
@@ -462,9 +489,6 @@ export declare const routes: (Route<{
462
489
  readonly detail?: string | undefined;
463
490
  readonly file_data?: string | undefined;
464
491
  readonly file_url?: string | undefined;
465
- } | {
466
- readonly type: "input_text";
467
- readonly text: string;
468
492
  })[];
469
493
  readonly id?: string | undefined;
470
494
  readonly status?: string | undefined;
@@ -478,14 +502,6 @@ export declare const routes: (Route<{
478
502
  }[];
479
503
  readonly phase?: "commentary" | "final_answer" | null | undefined;
480
504
  readonly status?: string | undefined;
481
- } | {
482
- readonly type: "reasoning";
483
- readonly id?: string | undefined;
484
- readonly summary: readonly {
485
- readonly type: "summary_text";
486
- readonly text: string;
487
- }[];
488
- readonly encrypted_content?: string | null | undefined;
489
505
  } | {
490
506
  readonly type: "function_call";
491
507
  readonly id?: string | undefined;
@@ -493,26 +509,6 @@ export declare const routes: (Route<{
493
509
  readonly name: string;
494
510
  readonly namespace?: string | undefined;
495
511
  readonly arguments: string;
496
- } | {
497
- readonly type: "function_call_output";
498
- readonly call_id: string;
499
- readonly output: string | readonly ({
500
- readonly type: "input_image";
501
- readonly image_url: string;
502
- readonly detail?: string | undefined;
503
- } | {
504
- readonly type: "input_file";
505
- readonly filename: string;
506
- readonly detail?: string | undefined;
507
- readonly file_data?: string | undefined;
508
- readonly file_url?: string | undefined;
509
- } | {
510
- readonly type: "input_text";
511
- readonly text: string;
512
- } | {
513
- readonly type: "input_video";
514
- readonly video_url: string;
515
- })[];
516
512
  } | {
517
513
  readonly [x: string]: unknown;
518
514
  readonly type: "web_search_call";
@@ -550,6 +546,10 @@ export declare const routes: (Route<{
550
546
  readonly arguments?: string | undefined;
551
547
  readonly output?: string | null | undefined;
552
548
  readonly error?: unknown;
549
+ } | {
550
+ readonly [x: string]: unknown;
551
+ readonly type: string;
552
+ readonly id: string;
553
553
  })[];
554
554
  readonly instructions?: string | undefined;
555
555
  readonly tools?: readonly ({