@openrouter/sdk 1.2.138 → 1.2.139
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/lib/config.d.ts +2 -2
- package/esm/lib/config.js +2 -2
- package/esm/models/sttresponse.d.ts +4 -0
- package/esm/models/sttresponse.js +1 -0
- package/esm/models/sttword.d.ts +4 -0
- package/esm/models/sttword.js +1 -0
- package/jsr.json +1 -1
- package/package.json +4 -4
package/esm/lib/config.d.ts
CHANGED
|
@@ -50,8 +50,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
50
50
|
export declare const SDK_METADATA: {
|
|
51
51
|
readonly language: "typescript";
|
|
52
52
|
readonly openapiDocVersion: "1.0.0";
|
|
53
|
-
readonly sdkVersion: "1.2.
|
|
53
|
+
readonly sdkVersion: "1.2.139";
|
|
54
54
|
readonly genVersion: "2.914.0";
|
|
55
|
-
readonly userAgent: "speakeasy-sdk/typescript 1.2.
|
|
55
|
+
readonly userAgent: "speakeasy-sdk/typescript 1.2.139 2.914.0 1.0.0 @openrouter/sdk";
|
|
56
56
|
};
|
|
57
57
|
//# sourceMappingURL=config.d.ts.map
|
package/esm/lib/config.js
CHANGED
|
@@ -29,8 +29,8 @@ export function serverURLFromOptions(options) {
|
|
|
29
29
|
export const SDK_METADATA = {
|
|
30
30
|
language: "typescript",
|
|
31
31
|
openapiDocVersion: "1.0.0",
|
|
32
|
-
sdkVersion: "1.2.
|
|
32
|
+
sdkVersion: "1.2.139",
|
|
33
33
|
genVersion: "2.914.0",
|
|
34
|
-
userAgent: "speakeasy-sdk/typescript 1.2.
|
|
34
|
+
userAgent: "speakeasy-sdk/typescript 1.2.139 2.914.0 1.0.0 @openrouter/sdk",
|
|
35
35
|
};
|
|
36
36
|
//# sourceMappingURL=config.js.map
|
|
@@ -8,6 +8,10 @@ import { STTWord } from "./sttword.js";
|
|
|
8
8
|
* STT response containing transcribed text and optional usage statistics
|
|
9
9
|
*/
|
|
10
10
|
export type STTResponse = {
|
|
11
|
+
/**
|
|
12
|
+
* Provider confidence for the whole transcript from 0 to 1, present when response_format is verbose_json and the provider scores the full transcript
|
|
13
|
+
*/
|
|
14
|
+
confidence?: number | undefined;
|
|
11
15
|
/**
|
|
12
16
|
* Duration of the input audio in seconds, present when response_format is verbose_json
|
|
13
17
|
*/
|
|
@@ -10,6 +10,7 @@ import { STTWord$inboundSchema } from "./sttword.js";
|
|
|
10
10
|
/** @internal */
|
|
11
11
|
export const STTResponse$inboundSchema = z
|
|
12
12
|
.object({
|
|
13
|
+
confidence: z.number().optional(),
|
|
13
14
|
duration: z.number().optional(),
|
|
14
15
|
language: z.string().optional(),
|
|
15
16
|
segments: z.array(STTSegment$inboundSchema).optional(),
|
package/esm/models/sttword.d.ts
CHANGED
|
@@ -5,6 +5,10 @@ import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
|
5
5
|
* A timestamped word, returned when the provider includes word-level timestamps
|
|
6
6
|
*/
|
|
7
7
|
export type STTWord = {
|
|
8
|
+
/**
|
|
9
|
+
* Provider confidence for the word from 0 to 1, present when the provider returns per-word confidence
|
|
10
|
+
*/
|
|
11
|
+
confidence?: number | undefined;
|
|
8
12
|
/**
|
|
9
13
|
* Word end time in seconds
|
|
10
14
|
*/
|
package/esm/models/sttword.js
CHANGED
package/jsr.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openrouter/sdk",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.139",
|
|
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": "tsc",
|
|
75
75
|
"prepublishOnly": "npm run build",
|
|
76
|
-
"
|
|
76
|
+
"prepare": "npm run build",
|
|
77
77
|
"test": "vitest --run --project unit",
|
|
78
78
|
"test:e2e": "vitest --run --project e2e",
|
|
79
79
|
"test:transit": "exit 0",
|
|
80
|
-
"test:watch": "vitest --watch --project unit",
|
|
81
80
|
"typecheck:transit": "exit 0",
|
|
82
81
|
"compile": "tsc",
|
|
83
82
|
"postinstall": "node scripts/check-types.js || true",
|
|
84
|
-
"
|
|
83
|
+
"test:watch": "vitest --watch --project unit",
|
|
84
|
+
"typecheck": "tsc --noEmit"
|
|
85
85
|
},
|
|
86
86
|
"peerDependencies": {},
|
|
87
87
|
"devDependencies": {
|