@openrouter/sdk 1.5.119 → 1.5.121

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 (42) hide show
  1. package/esm/funcs/ttsGetModel.d.ts +19 -0
  2. package/esm/funcs/ttsGetModel.js +101 -0
  3. package/esm/funcs/ttsListModels.d.ts +19 -0
  4. package/esm/funcs/ttsListModels.js +91 -0
  5. package/esm/lib/config.d.ts +2 -2
  6. package/esm/lib/config.js +2 -2
  7. package/esm/models/index.d.ts +11 -0
  8. package/esm/models/index.js +11 -0
  9. package/esm/models/operations/getspeechmodel.d.ts +63 -0
  10. package/esm/models/operations/getspeechmodel.js +21 -0
  11. package/esm/models/operations/index.d.ts +2 -0
  12. package/esm/models/operations/index.js +2 -0
  13. package/esm/models/operations/listspeechmodels.d.ts +53 -0
  14. package/esm/models/operations/listspeechmodels.js +19 -0
  15. package/esm/models/speechenumparameter.d.ts +18 -0
  16. package/esm/models/speechenumparameter.js +19 -0
  17. package/esm/models/speechinputmodality.d.ts +89 -0
  18. package/esm/models/speechinputmodality.js +86 -0
  19. package/esm/models/speechmodelendpoint.d.ts +24 -0
  20. package/esm/models/speechmodelendpoint.js +26 -0
  21. package/esm/models/speechmodelresponse.d.ts +31 -0
  22. package/esm/models/speechmodelresponse.js +28 -0
  23. package/esm/models/speechmodelslistresponse.d.ts +14 -0
  24. package/esm/models/speechmodelslistresponse.js +14 -0
  25. package/esm/models/speechoutputmodality.d.ts +19 -0
  26. package/esm/models/speechoutputmodality.js +25 -0
  27. package/esm/models/speechrangeparameter.d.ts +22 -0
  28. package/esm/models/speechrangeparameter.js +20 -0
  29. package/esm/models/speechreferencecount.d.ts +19 -0
  30. package/esm/models/speechreferencecount.js +20 -0
  31. package/esm/models/speechsupportedparameters.d.ts +23 -0
  32. package/esm/models/speechsupportedparameters.js +25 -0
  33. package/esm/models/speechunknownparameter.d.ts +17 -0
  34. package/esm/models/speechunknownparameter.js +18 -0
  35. package/esm/models/speechvoiceparameter.d.ts +38 -0
  36. package/esm/models/speechvoiceparameter.js +30 -0
  37. package/esm/models/videogenerationresponse.d.ts +23 -0
  38. package/esm/models/videogenerationresponse.js +14 -0
  39. package/esm/sdk/tts.d.ts +15 -0
  40. package/esm/sdk/tts.js +20 -0
  41. package/jsr.json +1 -1
  42. package/package.json +5 -5
package/esm/sdk/tts.js CHANGED
@@ -2,6 +2,8 @@
2
2
  * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
3
  */
4
4
  import { ttsCreateSpeech } from "../funcs/ttsCreateSpeech.js";
5
+ import { ttsGetModel } from "../funcs/ttsGetModel.js";
6
+ import { ttsListModels } from "../funcs/ttsListModels.js";
5
7
  import { ClientSDK } from "../lib/sdks.js";
6
8
  import { unwrapAsync } from "../types/fp.js";
7
9
  export class TTS extends ClientSDK {
@@ -14,5 +16,23 @@ export class TTS extends ClientSDK {
14
16
  async createSpeech(request, options) {
15
17
  return unwrapAsync(ttsCreateSpeech(this, request, options));
16
18
  }
19
+ /**
20
+ * List text-to-speech models
21
+ *
22
+ * @remarks
23
+ * Lists every text-to-speech model with the inputs it accepts and its speech output parameters, merged across its endpoints, plus each endpoint with its own.
24
+ */
25
+ async listModels(request, options) {
26
+ return unwrapAsync(ttsListModels(this, request, options));
27
+ }
28
+ /**
29
+ * Get a text-to-speech model
30
+ *
31
+ * @remarks
32
+ * Returns a text-to-speech model with each endpoint's own inputs and speech output parameters.
33
+ */
34
+ async getModel(request, options) {
35
+ return unwrapAsync(ttsGetModel(this, request, options));
36
+ }
17
37
  }
18
38
  //# sourceMappingURL=tts.js.map
package/jsr.json CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  {
4
4
  "name": "@openrouter/sdk",
5
- "version": "1.5.119",
5
+ "version": "1.5.121",
6
6
  "exports": {
7
7
  ".": "./src/index.ts",
8
8
  "./models/errors": "./src/models/errors/index.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openrouter/sdk",
3
- "version": "1.5.119",
3
+ "version": "1.5.121",
4
4
  "author": "OpenRouter",
5
5
  "description": "The OpenRouter TypeScript SDK is a type-safe toolkit for building AI applications with access to 400+ language models through a unified API.",
6
6
  "keywords": [
@@ -73,15 +73,15 @@
73
73
  "lint": "eslint --cache --max-warnings=0 src",
74
74
  "build": "node --max-old-space-size=8192 ./node_modules/typescript/bin/tsc && node scripts/unbarrel-imports.js",
75
75
  "prepublishOnly": "npm run build",
76
- "typecheck": "tsc --noEmit",
77
76
  "compile": "node --max-old-space-size=8192 ./node_modules/typescript/bin/tsc && node scripts/unbarrel-imports.js",
77
+ "postinstall": "node scripts/check-types.js || true",
78
78
  "prepare": "npm run build",
79
79
  "test": "vitest --run --project unit",
80
+ "test:transit": "exit 0",
80
81
  "test:e2e": "vitest --run --project e2e",
81
82
  "test:watch": "vitest --watch --project unit",
82
- "typecheck:transit": "exit 0",
83
- "postinstall": "node scripts/check-types.js || true",
84
- "test:transit": "exit 0"
83
+ "typecheck": "tsc --noEmit",
84
+ "typecheck:transit": "exit 0"
85
85
  },
86
86
  "peerDependencies": {
87
87