@openrouter/sdk 1.5.118 → 1.5.120
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.
- package/esm/funcs/sttCreateTranscriptionMultipart.js +3 -0
- package/esm/funcs/ttsGetModel.d.ts +19 -0
- package/esm/funcs/ttsGetModel.js +101 -0
- package/esm/funcs/ttsListModels.d.ts +19 -0
- package/esm/funcs/ttsListModels.js +91 -0
- package/esm/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/models/index.d.ts +11 -0
- package/esm/models/index.js +11 -0
- package/esm/models/operations/createaudiotranscriptionsmultipart.d.ts +5 -0
- package/esm/models/operations/createaudiotranscriptionsmultipart.js +1 -0
- package/esm/models/operations/getspeechmodel.d.ts +63 -0
- package/esm/models/operations/getspeechmodel.js +21 -0
- package/esm/models/operations/index.d.ts +2 -0
- package/esm/models/operations/index.js +2 -0
- package/esm/models/operations/listspeechmodels.d.ts +53 -0
- package/esm/models/operations/listspeechmodels.js +19 -0
- package/esm/models/speechenumparameter.d.ts +18 -0
- package/esm/models/speechenumparameter.js +19 -0
- package/esm/models/speechinputmodality.d.ts +89 -0
- package/esm/models/speechinputmodality.js +86 -0
- package/esm/models/speechmodelendpoint.d.ts +24 -0
- package/esm/models/speechmodelendpoint.js +26 -0
- package/esm/models/speechmodelresponse.d.ts +31 -0
- package/esm/models/speechmodelresponse.js +28 -0
- package/esm/models/speechmodelslistresponse.d.ts +14 -0
- package/esm/models/speechmodelslistresponse.js +14 -0
- package/esm/models/speechoutputmodality.d.ts +19 -0
- package/esm/models/speechoutputmodality.js +25 -0
- package/esm/models/speechrangeparameter.d.ts +22 -0
- package/esm/models/speechrangeparameter.js +20 -0
- package/esm/models/speechreferencecount.d.ts +19 -0
- package/esm/models/speechreferencecount.js +20 -0
- package/esm/models/speechsupportedparameters.d.ts +23 -0
- package/esm/models/speechsupportedparameters.js +25 -0
- package/esm/models/speechunknownparameter.d.ts +17 -0
- package/esm/models/speechunknownparameter.js +18 -0
- package/esm/models/speechvoiceparameter.d.ts +38 -0
- package/esm/models/speechvoiceparameter.js +30 -0
- package/esm/models/sttrequest.d.ts +5 -0
- package/esm/models/sttrequest.js +1 -0
- package/esm/sdk/tts.d.ts +15 -0
- package/esm/sdk/tts.js +20 -0
- package/jsr.json +1 -1
- package/package.json +7 -7
package/esm/sdk/tts.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ClientSDK, RequestOptions } from "../lib/sdks.js";
|
|
2
|
+
import * as models from "../models/index.js";
|
|
2
3
|
import * as operations from "../models/operations/index.js";
|
|
3
4
|
export declare class TTS extends ClientSDK {
|
|
4
5
|
/**
|
|
@@ -8,5 +9,19 @@ export declare class TTS extends ClientSDK {
|
|
|
8
9
|
* Synthesizes audio from the input text. Returns a raw audio bytestream in the requested format (e.g. mp3, pcm, wav).
|
|
9
10
|
*/
|
|
10
11
|
createSpeech(request: operations.CreateAudioSpeechRequest, options?: RequestOptions): Promise<ReadableStream<Uint8Array>>;
|
|
12
|
+
/**
|
|
13
|
+
* List text-to-speech models
|
|
14
|
+
*
|
|
15
|
+
* @remarks
|
|
16
|
+
* 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.
|
|
17
|
+
*/
|
|
18
|
+
listModels(request?: operations.ListSpeechModelsRequest | undefined, options?: RequestOptions): Promise<models.SpeechModelsListResponse>;
|
|
19
|
+
/**
|
|
20
|
+
* Get a text-to-speech model
|
|
21
|
+
*
|
|
22
|
+
* @remarks
|
|
23
|
+
* Returns a text-to-speech model with each endpoint's own inputs and speech output parameters.
|
|
24
|
+
*/
|
|
25
|
+
getModel(request: operations.GetSpeechModelRequest, options?: RequestOptions): Promise<models.SpeechModelResponse>;
|
|
11
26
|
}
|
|
12
27
|
//# sourceMappingURL=tts.d.ts.map
|
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
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openrouter/sdk",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.120",
|
|
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
|
-
"postinstall": "node scripts/check-types.js || true",
|
|
77
|
-
"prepare": "npm run build",
|
|
78
|
-
"test": "vitest --run --project unit",
|
|
79
76
|
"test:transit": "exit 0",
|
|
80
|
-
"typecheck": "tsc --noEmit",
|
|
81
|
-
"test:e2e": "vitest --run --project e2e",
|
|
82
77
|
"test:watch": "vitest --watch --project unit",
|
|
83
78
|
"typecheck:transit": "exit 0",
|
|
84
|
-
"
|
|
79
|
+
"postinstall": "node scripts/check-types.js || true",
|
|
80
|
+
"test": "vitest --run --project unit",
|
|
81
|
+
"typecheck": "tsc --noEmit",
|
|
82
|
+
"compile": "node --max-old-space-size=8192 ./node_modules/typescript/bin/tsc && node scripts/unbarrel-imports.js",
|
|
83
|
+
"prepare": "npm run build",
|
|
84
|
+
"test:e2e": "vitest --run --project e2e"
|
|
85
85
|
},
|
|
86
86
|
"peerDependencies": {
|
|
87
87
|
|