@openrouter/sdk 0.12.23 → 0.12.25

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 (34) hide show
  1. package/esm/funcs/sttCreateTranscription.d.ts +19 -0
  2. package/esm/funcs/sttCreateTranscription.js +110 -0
  3. package/esm/lib/config.d.ts +2 -2
  4. package/esm/lib/config.js +2 -2
  5. package/esm/models/index.d.ts +5 -0
  6. package/esm/models/index.js +5 -0
  7. package/esm/models/operations/createaudiotranscriptions.d.ts +56 -0
  8. package/esm/models/operations/createaudiotranscriptions.js +23 -0
  9. package/esm/models/operations/index.d.ts +1 -0
  10. package/esm/models/operations/index.js +1 -0
  11. package/esm/models/outputwebsearchcallitem.d.ts +10 -10
  12. package/esm/models/outputwebsearchcallitem.js +10 -11
  13. package/esm/models/outputwebsearchservertoolitem.d.ts +61 -5
  14. package/esm/models/outputwebsearchservertoolitem.js +59 -5
  15. package/esm/models/provideroptions.d.ts +667 -0
  16. package/esm/models/provideroptions.js +146 -0
  17. package/esm/models/speechrequest.d.ts +3 -667
  18. package/esm/models/speechrequest.js +2 -140
  19. package/esm/models/sttinputaudio.d.ts +23 -0
  20. package/esm/models/sttinputaudio.js +14 -0
  21. package/esm/models/sttrequest.d.ts +56 -0
  22. package/esm/models/sttrequest.js +31 -0
  23. package/esm/models/sttresponse.d.ts +21 -0
  24. package/esm/models/sttresponse.js +17 -0
  25. package/esm/models/sttusage.d.ts +32 -0
  26. package/esm/models/sttusage.js +25 -0
  27. package/esm/models/videogenerationrequest.d.ts +6 -9
  28. package/esm/models/videogenerationrequest.js +5 -5
  29. package/esm/sdk/sdk.d.ts +3 -0
  30. package/esm/sdk/sdk.js +4 -0
  31. package/esm/sdk/stt.d.ts +13 -0
  32. package/esm/sdk/stt.js +19 -0
  33. package/jsr.json +1 -1
  34. package/package.json +5 -5
@@ -1,337 +1,6 @@
1
1
  import * as z from "zod/v4";
2
2
  import { OpenEnum } from "../types/enums.js";
3
- /**
4
- * Provider-specific options keyed by provider slug. The options for the matched provider are spread into the upstream request body.
5
- */
6
- export type SpeechRequestOptions = {
7
- oneai?: {
8
- [k: string]: any | null;
9
- } | undefined;
10
- ai21?: {
11
- [k: string]: any | null;
12
- } | undefined;
13
- aionLabs?: {
14
- [k: string]: any | null;
15
- } | undefined;
16
- akashml?: {
17
- [k: string]: any | null;
18
- } | undefined;
19
- alibaba?: {
20
- [k: string]: any | null;
21
- } | undefined;
22
- amazonBedrock?: {
23
- [k: string]: any | null;
24
- } | undefined;
25
- amazonNova?: {
26
- [k: string]: any | null;
27
- } | undefined;
28
- ambient?: {
29
- [k: string]: any | null;
30
- } | undefined;
31
- anthropic?: {
32
- [k: string]: any | null;
33
- } | undefined;
34
- anyscale?: {
35
- [k: string]: any | null;
36
- } | undefined;
37
- arceeAi?: {
38
- [k: string]: any | null;
39
- } | undefined;
40
- atlasCloud?: {
41
- [k: string]: any | null;
42
- } | undefined;
43
- atoma?: {
44
- [k: string]: any | null;
45
- } | undefined;
46
- avian?: {
47
- [k: string]: any | null;
48
- } | undefined;
49
- azure?: {
50
- [k: string]: any | null;
51
- } | undefined;
52
- baidu?: {
53
- [k: string]: any | null;
54
- } | undefined;
55
- baseten?: {
56
- [k: string]: any | null;
57
- } | undefined;
58
- blackForestLabs?: {
59
- [k: string]: any | null;
60
- } | undefined;
61
- byteplus?: {
62
- [k: string]: any | null;
63
- } | undefined;
64
- centml?: {
65
- [k: string]: any | null;
66
- } | undefined;
67
- cerebras?: {
68
- [k: string]: any | null;
69
- } | undefined;
70
- chutes?: {
71
- [k: string]: any | null;
72
- } | undefined;
73
- cirrascale?: {
74
- [k: string]: any | null;
75
- } | undefined;
76
- clarifai?: {
77
- [k: string]: any | null;
78
- } | undefined;
79
- cloudflare?: {
80
- [k: string]: any | null;
81
- } | undefined;
82
- cohere?: {
83
- [k: string]: any | null;
84
- } | undefined;
85
- crofai?: {
86
- [k: string]: any | null;
87
- } | undefined;
88
- crusoe?: {
89
- [k: string]: any | null;
90
- } | undefined;
91
- deepinfra?: {
92
- [k: string]: any | null;
93
- } | undefined;
94
- deepseek?: {
95
- [k: string]: any | null;
96
- } | undefined;
97
- dekallm?: {
98
- [k: string]: any | null;
99
- } | undefined;
100
- enfer?: {
101
- [k: string]: any | null;
102
- } | undefined;
103
- fakeProvider?: {
104
- [k: string]: any | null;
105
- } | undefined;
106
- featherless?: {
107
- [k: string]: any | null;
108
- } | undefined;
109
- fireworks?: {
110
- [k: string]: any | null;
111
- } | undefined;
112
- friendli?: {
113
- [k: string]: any | null;
114
- } | undefined;
115
- gmicloud?: {
116
- [k: string]: any | null;
117
- } | undefined;
118
- googleAiStudio?: {
119
- [k: string]: any | null;
120
- } | undefined;
121
- googleVertex?: {
122
- [k: string]: any | null;
123
- } | undefined;
124
- gopomelo?: {
125
- [k: string]: any | null;
126
- } | undefined;
127
- groq?: {
128
- [k: string]: any | null;
129
- } | undefined;
130
- huggingface?: {
131
- [k: string]: any | null;
132
- } | undefined;
133
- hyperbolic?: {
134
- [k: string]: any | null;
135
- } | undefined;
136
- hyperbolicQuantized?: {
137
- [k: string]: any | null;
138
- } | undefined;
139
- inception?: {
140
- [k: string]: any | null;
141
- } | undefined;
142
- inceptron?: {
143
- [k: string]: any | null;
144
- } | undefined;
145
- inferenceNet?: {
146
- [k: string]: any | null;
147
- } | undefined;
148
- infermatic?: {
149
- [k: string]: any | null;
150
- } | undefined;
151
- inflection?: {
152
- [k: string]: any | null;
153
- } | undefined;
154
- inocloud?: {
155
- [k: string]: any | null;
156
- } | undefined;
157
- ioNet?: {
158
- [k: string]: any | null;
159
- } | undefined;
160
- ionstream?: {
161
- [k: string]: any | null;
162
- } | undefined;
163
- klusterai?: {
164
- [k: string]: any | null;
165
- } | undefined;
166
- lambda?: {
167
- [k: string]: any | null;
168
- } | undefined;
169
- lepton?: {
170
- [k: string]: any | null;
171
- } | undefined;
172
- liquid?: {
173
- [k: string]: any | null;
174
- } | undefined;
175
- lynn?: {
176
- [k: string]: any | null;
177
- } | undefined;
178
- lynnPrivate?: {
179
- [k: string]: any | null;
180
- } | undefined;
181
- mancer?: {
182
- [k: string]: any | null;
183
- } | undefined;
184
- mancerOld?: {
185
- [k: string]: any | null;
186
- } | undefined;
187
- mara?: {
188
- [k: string]: any | null;
189
- } | undefined;
190
- meta?: {
191
- [k: string]: any | null;
192
- } | undefined;
193
- minimax?: {
194
- [k: string]: any | null;
195
- } | undefined;
196
- mistral?: {
197
- [k: string]: any | null;
198
- } | undefined;
199
- modal?: {
200
- [k: string]: any | null;
201
- } | undefined;
202
- modelrun?: {
203
- [k: string]: any | null;
204
- } | undefined;
205
- modular?: {
206
- [k: string]: any | null;
207
- } | undefined;
208
- moonshotai?: {
209
- [k: string]: any | null;
210
- } | undefined;
211
- morph?: {
212
- [k: string]: any | null;
213
- } | undefined;
214
- ncompass?: {
215
- [k: string]: any | null;
216
- } | undefined;
217
- nebius?: {
218
- [k: string]: any | null;
219
- } | undefined;
220
- nexAgi?: {
221
- [k: string]: any | null;
222
- } | undefined;
223
- nextbit?: {
224
- [k: string]: any | null;
225
- } | undefined;
226
- nineteen?: {
227
- [k: string]: any | null;
228
- } | undefined;
229
- novita?: {
230
- [k: string]: any | null;
231
- } | undefined;
232
- nvidia?: {
233
- [k: string]: any | null;
234
- } | undefined;
235
- octoai?: {
236
- [k: string]: any | null;
237
- } | undefined;
238
- openInference?: {
239
- [k: string]: any | null;
240
- } | undefined;
241
- openai?: {
242
- [k: string]: any | null;
243
- } | undefined;
244
- parasail?: {
245
- [k: string]: any | null;
246
- } | undefined;
247
- perplexity?: {
248
- [k: string]: any | null;
249
- } | undefined;
250
- phala?: {
251
- [k: string]: any | null;
252
- } | undefined;
253
- poolside?: {
254
- [k: string]: any | null;
255
- } | undefined;
256
- recraft?: {
257
- [k: string]: any | null;
258
- } | undefined;
259
- recursal?: {
260
- [k: string]: any | null;
261
- } | undefined;
262
- reflection?: {
263
- [k: string]: any | null;
264
- } | undefined;
265
- reka?: {
266
- [k: string]: any | null;
267
- } | undefined;
268
- relace?: {
269
- [k: string]: any | null;
270
- } | undefined;
271
- replicate?: {
272
- [k: string]: any | null;
273
- } | undefined;
274
- sambanova?: {
275
- [k: string]: any | null;
276
- } | undefined;
277
- sambanovaCloaked?: {
278
- [k: string]: any | null;
279
- } | undefined;
280
- seed?: {
281
- [k: string]: any | null;
282
- } | undefined;
283
- sfCompute?: {
284
- [k: string]: any | null;
285
- } | undefined;
286
- siliconflow?: {
287
- [k: string]: any | null;
288
- } | undefined;
289
- sourceful?: {
290
- [k: string]: any | null;
291
- } | undefined;
292
- stealth?: {
293
- [k: string]: any | null;
294
- } | undefined;
295
- stepfun?: {
296
- [k: string]: any | null;
297
- } | undefined;
298
- streamlake?: {
299
- [k: string]: any | null;
300
- } | undefined;
301
- switchpoint?: {
302
- [k: string]: any | null;
303
- } | undefined;
304
- targon?: {
305
- [k: string]: any | null;
306
- } | undefined;
307
- together?: {
308
- [k: string]: any | null;
309
- } | undefined;
310
- togetherLite?: {
311
- [k: string]: any | null;
312
- } | undefined;
313
- ubicloud?: {
314
- [k: string]: any | null;
315
- } | undefined;
316
- upstage?: {
317
- [k: string]: any | null;
318
- } | undefined;
319
- venice?: {
320
- [k: string]: any | null;
321
- } | undefined;
322
- wandb?: {
323
- [k: string]: any | null;
324
- } | undefined;
325
- xai?: {
326
- [k: string]: any | null;
327
- } | undefined;
328
- xiaomi?: {
329
- [k: string]: any | null;
330
- } | undefined;
331
- zAi?: {
332
- [k: string]: any | null;
333
- } | undefined;
334
- };
3
+ import { ProviderOptions, ProviderOptions$Outbound } from "./provideroptions.js";
335
4
  /**
336
5
  * Provider-specific passthrough configuration
337
6
  */
@@ -339,7 +8,7 @@ export type SpeechRequestProvider = {
339
8
  /**
340
9
  * Provider-specific options keyed by provider slug. The options for the matched provider are spread into the upstream request body.
341
10
  */
342
- options?: SpeechRequestOptions | undefined;
11
+ options?: ProviderOptions | undefined;
343
12
  };
344
13
  /**
345
14
  * Audio output format
@@ -382,341 +51,8 @@ export type SpeechRequest = {
382
51
  voice: string;
383
52
  };
384
53
  /** @internal */
385
- export type SpeechRequestOptions$Outbound = {
386
- "01ai"?: {
387
- [k: string]: any | null;
388
- } | undefined;
389
- ai21?: {
390
- [k: string]: any | null;
391
- } | undefined;
392
- "aion-labs"?: {
393
- [k: string]: any | null;
394
- } | undefined;
395
- akashml?: {
396
- [k: string]: any | null;
397
- } | undefined;
398
- alibaba?: {
399
- [k: string]: any | null;
400
- } | undefined;
401
- "amazon-bedrock"?: {
402
- [k: string]: any | null;
403
- } | undefined;
404
- "amazon-nova"?: {
405
- [k: string]: any | null;
406
- } | undefined;
407
- ambient?: {
408
- [k: string]: any | null;
409
- } | undefined;
410
- anthropic?: {
411
- [k: string]: any | null;
412
- } | undefined;
413
- anyscale?: {
414
- [k: string]: any | null;
415
- } | undefined;
416
- "arcee-ai"?: {
417
- [k: string]: any | null;
418
- } | undefined;
419
- "atlas-cloud"?: {
420
- [k: string]: any | null;
421
- } | undefined;
422
- atoma?: {
423
- [k: string]: any | null;
424
- } | undefined;
425
- avian?: {
426
- [k: string]: any | null;
427
- } | undefined;
428
- azure?: {
429
- [k: string]: any | null;
430
- } | undefined;
431
- baidu?: {
432
- [k: string]: any | null;
433
- } | undefined;
434
- baseten?: {
435
- [k: string]: any | null;
436
- } | undefined;
437
- "black-forest-labs"?: {
438
- [k: string]: any | null;
439
- } | undefined;
440
- byteplus?: {
441
- [k: string]: any | null;
442
- } | undefined;
443
- centml?: {
444
- [k: string]: any | null;
445
- } | undefined;
446
- cerebras?: {
447
- [k: string]: any | null;
448
- } | undefined;
449
- chutes?: {
450
- [k: string]: any | null;
451
- } | undefined;
452
- cirrascale?: {
453
- [k: string]: any | null;
454
- } | undefined;
455
- clarifai?: {
456
- [k: string]: any | null;
457
- } | undefined;
458
- cloudflare?: {
459
- [k: string]: any | null;
460
- } | undefined;
461
- cohere?: {
462
- [k: string]: any | null;
463
- } | undefined;
464
- crofai?: {
465
- [k: string]: any | null;
466
- } | undefined;
467
- crusoe?: {
468
- [k: string]: any | null;
469
- } | undefined;
470
- deepinfra?: {
471
- [k: string]: any | null;
472
- } | undefined;
473
- deepseek?: {
474
- [k: string]: any | null;
475
- } | undefined;
476
- dekallm?: {
477
- [k: string]: any | null;
478
- } | undefined;
479
- enfer?: {
480
- [k: string]: any | null;
481
- } | undefined;
482
- "fake-provider"?: {
483
- [k: string]: any | null;
484
- } | undefined;
485
- featherless?: {
486
- [k: string]: any | null;
487
- } | undefined;
488
- fireworks?: {
489
- [k: string]: any | null;
490
- } | undefined;
491
- friendli?: {
492
- [k: string]: any | null;
493
- } | undefined;
494
- gmicloud?: {
495
- [k: string]: any | null;
496
- } | undefined;
497
- "google-ai-studio"?: {
498
- [k: string]: any | null;
499
- } | undefined;
500
- "google-vertex"?: {
501
- [k: string]: any | null;
502
- } | undefined;
503
- gopomelo?: {
504
- [k: string]: any | null;
505
- } | undefined;
506
- groq?: {
507
- [k: string]: any | null;
508
- } | undefined;
509
- huggingface?: {
510
- [k: string]: any | null;
511
- } | undefined;
512
- hyperbolic?: {
513
- [k: string]: any | null;
514
- } | undefined;
515
- "hyperbolic-quantized"?: {
516
- [k: string]: any | null;
517
- } | undefined;
518
- inception?: {
519
- [k: string]: any | null;
520
- } | undefined;
521
- inceptron?: {
522
- [k: string]: any | null;
523
- } | undefined;
524
- "inference-net"?: {
525
- [k: string]: any | null;
526
- } | undefined;
527
- infermatic?: {
528
- [k: string]: any | null;
529
- } | undefined;
530
- inflection?: {
531
- [k: string]: any | null;
532
- } | undefined;
533
- inocloud?: {
534
- [k: string]: any | null;
535
- } | undefined;
536
- "io-net"?: {
537
- [k: string]: any | null;
538
- } | undefined;
539
- ionstream?: {
540
- [k: string]: any | null;
541
- } | undefined;
542
- klusterai?: {
543
- [k: string]: any | null;
544
- } | undefined;
545
- lambda?: {
546
- [k: string]: any | null;
547
- } | undefined;
548
- lepton?: {
549
- [k: string]: any | null;
550
- } | undefined;
551
- liquid?: {
552
- [k: string]: any | null;
553
- } | undefined;
554
- lynn?: {
555
- [k: string]: any | null;
556
- } | undefined;
557
- "lynn-private"?: {
558
- [k: string]: any | null;
559
- } | undefined;
560
- mancer?: {
561
- [k: string]: any | null;
562
- } | undefined;
563
- "mancer-old"?: {
564
- [k: string]: any | null;
565
- } | undefined;
566
- mara?: {
567
- [k: string]: any | null;
568
- } | undefined;
569
- meta?: {
570
- [k: string]: any | null;
571
- } | undefined;
572
- minimax?: {
573
- [k: string]: any | null;
574
- } | undefined;
575
- mistral?: {
576
- [k: string]: any | null;
577
- } | undefined;
578
- modal?: {
579
- [k: string]: any | null;
580
- } | undefined;
581
- modelrun?: {
582
- [k: string]: any | null;
583
- } | undefined;
584
- modular?: {
585
- [k: string]: any | null;
586
- } | undefined;
587
- moonshotai?: {
588
- [k: string]: any | null;
589
- } | undefined;
590
- morph?: {
591
- [k: string]: any | null;
592
- } | undefined;
593
- ncompass?: {
594
- [k: string]: any | null;
595
- } | undefined;
596
- nebius?: {
597
- [k: string]: any | null;
598
- } | undefined;
599
- "nex-agi"?: {
600
- [k: string]: any | null;
601
- } | undefined;
602
- nextbit?: {
603
- [k: string]: any | null;
604
- } | undefined;
605
- nineteen?: {
606
- [k: string]: any | null;
607
- } | undefined;
608
- novita?: {
609
- [k: string]: any | null;
610
- } | undefined;
611
- nvidia?: {
612
- [k: string]: any | null;
613
- } | undefined;
614
- octoai?: {
615
- [k: string]: any | null;
616
- } | undefined;
617
- "open-inference"?: {
618
- [k: string]: any | null;
619
- } | undefined;
620
- openai?: {
621
- [k: string]: any | null;
622
- } | undefined;
623
- parasail?: {
624
- [k: string]: any | null;
625
- } | undefined;
626
- perplexity?: {
627
- [k: string]: any | null;
628
- } | undefined;
629
- phala?: {
630
- [k: string]: any | null;
631
- } | undefined;
632
- poolside?: {
633
- [k: string]: any | null;
634
- } | undefined;
635
- recraft?: {
636
- [k: string]: any | null;
637
- } | undefined;
638
- recursal?: {
639
- [k: string]: any | null;
640
- } | undefined;
641
- reflection?: {
642
- [k: string]: any | null;
643
- } | undefined;
644
- reka?: {
645
- [k: string]: any | null;
646
- } | undefined;
647
- relace?: {
648
- [k: string]: any | null;
649
- } | undefined;
650
- replicate?: {
651
- [k: string]: any | null;
652
- } | undefined;
653
- sambanova?: {
654
- [k: string]: any | null;
655
- } | undefined;
656
- "sambanova-cloaked"?: {
657
- [k: string]: any | null;
658
- } | undefined;
659
- seed?: {
660
- [k: string]: any | null;
661
- } | undefined;
662
- "sf-compute"?: {
663
- [k: string]: any | null;
664
- } | undefined;
665
- siliconflow?: {
666
- [k: string]: any | null;
667
- } | undefined;
668
- sourceful?: {
669
- [k: string]: any | null;
670
- } | undefined;
671
- stealth?: {
672
- [k: string]: any | null;
673
- } | undefined;
674
- stepfun?: {
675
- [k: string]: any | null;
676
- } | undefined;
677
- streamlake?: {
678
- [k: string]: any | null;
679
- } | undefined;
680
- switchpoint?: {
681
- [k: string]: any | null;
682
- } | undefined;
683
- targon?: {
684
- [k: string]: any | null;
685
- } | undefined;
686
- together?: {
687
- [k: string]: any | null;
688
- } | undefined;
689
- "together-lite"?: {
690
- [k: string]: any | null;
691
- } | undefined;
692
- ubicloud?: {
693
- [k: string]: any | null;
694
- } | undefined;
695
- upstage?: {
696
- [k: string]: any | null;
697
- } | undefined;
698
- venice?: {
699
- [k: string]: any | null;
700
- } | undefined;
701
- wandb?: {
702
- [k: string]: any | null;
703
- } | undefined;
704
- xai?: {
705
- [k: string]: any | null;
706
- } | undefined;
707
- xiaomi?: {
708
- [k: string]: any | null;
709
- } | undefined;
710
- "z-ai"?: {
711
- [k: string]: any | null;
712
- } | undefined;
713
- };
714
- /** @internal */
715
- export declare const SpeechRequestOptions$outboundSchema: z.ZodType<SpeechRequestOptions$Outbound, SpeechRequestOptions>;
716
- export declare function speechRequestOptionsToJSON(speechRequestOptions: SpeechRequestOptions): string;
717
- /** @internal */
718
54
  export type SpeechRequestProvider$Outbound = {
719
- options?: SpeechRequestOptions$Outbound | undefined;
55
+ options?: ProviderOptions$Outbound | undefined;
720
56
  };
721
57
  /** @internal */
722
58
  export declare const SpeechRequestProvider$outboundSchema: z.ZodType<SpeechRequestProvider$Outbound, SpeechRequestProvider>;