@openrouter/sdk 0.12.19 → 0.12.20
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/chatwebsearchshorthand.d.ts +1 -1
- package/esm/models/outputmodality.d.ts +1 -1
- package/esm/models/outputmodality.js +1 -1
- package/esm/models/providername.d.ts +1 -0
- package/esm/models/providername.js +1 -0
- package/esm/models/providerresponse.d.ts +1 -0
- package/esm/models/providerresponse.js +1 -0
- package/esm/models/searchqualitylevel.d.ts +2 -2
- package/esm/models/searchqualitylevel.js +1 -1
- package/esm/models/speechrequest.d.ts +6 -0
- package/esm/models/speechrequest.js +2 -0
- package/esm/models/videogenerationrequest.d.ts +6 -0
- package/esm/models/videogenerationrequest.js +2 -0
- package/esm/models/websearchconfig.d.ts +1 -1
- package/jsr.json +1 -1
- package/package.json +4 -4
package/esm/lib/config.d.ts
CHANGED
|
@@ -49,8 +49,8 @@ export declare function serverURLFromOptions(options: SDKOptions): URL | null;
|
|
|
49
49
|
export declare const SDK_METADATA: {
|
|
50
50
|
readonly language: "typescript";
|
|
51
51
|
readonly openapiDocVersion: "1.0.0";
|
|
52
|
-
readonly sdkVersion: "0.12.
|
|
52
|
+
readonly sdkVersion: "0.12.20";
|
|
53
53
|
readonly genVersion: "2.879.1";
|
|
54
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.12.
|
|
54
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.12.20 2.879.1 1.0.0 @openrouter/sdk";
|
|
55
55
|
};
|
|
56
56
|
//# sourceMappingURL=config.d.ts.map
|
package/esm/lib/config.js
CHANGED
|
@@ -26,8 +26,8 @@ export function serverURLFromOptions(options) {
|
|
|
26
26
|
export const SDK_METADATA = {
|
|
27
27
|
language: "typescript",
|
|
28
28
|
openapiDocVersion: "1.0.0",
|
|
29
|
-
sdkVersion: "0.12.
|
|
29
|
+
sdkVersion: "0.12.20",
|
|
30
30
|
genVersion: "2.879.1",
|
|
31
|
-
userAgent: "speakeasy-sdk/typescript 0.12.
|
|
31
|
+
userAgent: "speakeasy-sdk/typescript 0.12.20 2.879.1 1.0.0 @openrouter/sdk",
|
|
32
32
|
};
|
|
33
33
|
//# sourceMappingURL=config.js.map
|
|
@@ -37,7 +37,7 @@ export type ChatWebSearchShorthand = {
|
|
|
37
37
|
maxTotalResults?: number | undefined;
|
|
38
38
|
parameters?: WebSearchConfig | undefined;
|
|
39
39
|
/**
|
|
40
|
-
* How much context to retrieve per result. Defaults to medium (15000 chars).
|
|
40
|
+
* How much context to retrieve per result. Defaults to medium (15000 chars). Applies to Exa and Parallel engines; ignored with native provider search and Firecrawl.
|
|
41
41
|
*/
|
|
42
42
|
searchContextSize?: SearchQualityLevel | undefined;
|
|
43
43
|
type: ChatWebSearchShorthandType;
|
|
@@ -7,7 +7,7 @@ export declare const OutputModality: {
|
|
|
7
7
|
readonly Audio: "audio";
|
|
8
8
|
readonly Video: "video";
|
|
9
9
|
readonly Rerank: "rerank";
|
|
10
|
-
readonly
|
|
10
|
+
readonly Speech: "speech";
|
|
11
11
|
};
|
|
12
12
|
export type OutputModality = OpenEnum<typeof OutputModality>;
|
|
13
13
|
/** @internal */
|
|
@@ -86,6 +86,7 @@ export declare const ProviderResponseProviderName: {
|
|
|
86
86
|
readonly Morph: "Morph";
|
|
87
87
|
readonly NCompass: "NCompass";
|
|
88
88
|
readonly Nebius: "Nebius";
|
|
89
|
+
readonly NexAGI: "Nex AGI";
|
|
89
90
|
readonly NextBit: "NextBit";
|
|
90
91
|
readonly Novita: "Novita";
|
|
91
92
|
readonly Nvidia: "Nvidia";
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as z from "zod/v4";
|
|
2
2
|
import { OpenEnum } from "../types/enums.js";
|
|
3
3
|
/**
|
|
4
|
-
* How much context to retrieve per result. Defaults to medium (15000 chars).
|
|
4
|
+
* How much context to retrieve per result. Defaults to medium (15000 chars). Applies to Exa and Parallel engines; ignored with native provider search and Firecrawl.
|
|
5
5
|
*/
|
|
6
6
|
export declare const SearchQualityLevel: {
|
|
7
7
|
readonly Low: "low";
|
|
@@ -9,7 +9,7 @@ export declare const SearchQualityLevel: {
|
|
|
9
9
|
readonly High: "high";
|
|
10
10
|
};
|
|
11
11
|
/**
|
|
12
|
-
* How much context to retrieve per result. Defaults to medium (15000 chars).
|
|
12
|
+
* How much context to retrieve per result. Defaults to medium (15000 chars). Applies to Exa and Parallel engines; ignored with native provider search and Firecrawl.
|
|
13
13
|
*/
|
|
14
14
|
export type SearchQualityLevel = OpenEnum<typeof SearchQualityLevel>;
|
|
15
15
|
/** @internal */
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import * as openEnums from "../types/enums.js";
|
|
6
6
|
/**
|
|
7
|
-
* How much context to retrieve per result. Defaults to medium (15000 chars).
|
|
7
|
+
* How much context to retrieve per result. Defaults to medium (15000 chars). Applies to Exa and Parallel engines; ignored with native provider search and Firecrawl.
|
|
8
8
|
*/
|
|
9
9
|
export const SearchQualityLevel = {
|
|
10
10
|
Low: "low",
|
|
@@ -217,6 +217,9 @@ export type SpeechRequestOptions = {
|
|
|
217
217
|
nebius?: {
|
|
218
218
|
[k: string]: any | null;
|
|
219
219
|
} | undefined;
|
|
220
|
+
nexAgi?: {
|
|
221
|
+
[k: string]: any | null;
|
|
222
|
+
} | undefined;
|
|
220
223
|
nextbit?: {
|
|
221
224
|
[k: string]: any | null;
|
|
222
225
|
} | undefined;
|
|
@@ -590,6 +593,9 @@ export type SpeechRequestOptions$Outbound = {
|
|
|
590
593
|
nebius?: {
|
|
591
594
|
[k: string]: any | null;
|
|
592
595
|
} | undefined;
|
|
596
|
+
"nex-agi"?: {
|
|
597
|
+
[k: string]: any | null;
|
|
598
|
+
} | undefined;
|
|
593
599
|
nextbit?: {
|
|
594
600
|
[k: string]: any | null;
|
|
595
601
|
} | undefined;
|
|
@@ -85,6 +85,7 @@ export const SpeechRequestOptions$outboundSchema = z.object({
|
|
|
85
85
|
morph: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
86
86
|
ncompass: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
87
87
|
nebius: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
88
|
+
nexAgi: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
88
89
|
nextbit: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
89
90
|
nineteen: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
90
91
|
novita: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
@@ -138,6 +139,7 @@ export const SpeechRequestOptions$outboundSchema = z.object({
|
|
|
138
139
|
ioNet: "io-net",
|
|
139
140
|
lynnPrivate: "lynn-private",
|
|
140
141
|
mancerOld: "mancer-old",
|
|
142
|
+
nexAgi: "nex-agi",
|
|
141
143
|
openInference: "open-inference",
|
|
142
144
|
sambanovaCloaked: "sambanova-cloaked",
|
|
143
145
|
sfCompute: "sf-compute",
|
|
@@ -235,6 +235,9 @@ export type VideoGenerationRequestOptions = {
|
|
|
235
235
|
nebius?: {
|
|
236
236
|
[k: string]: any | null;
|
|
237
237
|
} | undefined;
|
|
238
|
+
nexAgi?: {
|
|
239
|
+
[k: string]: any | null;
|
|
240
|
+
} | undefined;
|
|
238
241
|
nextbit?: {
|
|
239
242
|
[k: string]: any | null;
|
|
240
243
|
} | undefined;
|
|
@@ -625,6 +628,9 @@ export type VideoGenerationRequestOptions$Outbound = {
|
|
|
625
628
|
nebius?: {
|
|
626
629
|
[k: string]: any | null;
|
|
627
630
|
} | undefined;
|
|
631
|
+
"nex-agi"?: {
|
|
632
|
+
[k: string]: any | null;
|
|
633
|
+
} | undefined;
|
|
628
634
|
nextbit?: {
|
|
629
635
|
[k: string]: any | null;
|
|
630
636
|
} | undefined;
|
|
@@ -105,6 +105,7 @@ export const VideoGenerationRequestOptions$outboundSchema = z.object({
|
|
|
105
105
|
morph: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
106
106
|
ncompass: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
107
107
|
nebius: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
108
|
+
nexAgi: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
108
109
|
nextbit: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
109
110
|
nineteen: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
110
111
|
novita: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
@@ -158,6 +159,7 @@ export const VideoGenerationRequestOptions$outboundSchema = z.object({
|
|
|
158
159
|
ioNet: "io-net",
|
|
159
160
|
lynnPrivate: "lynn-private",
|
|
160
161
|
mancerOld: "mancer-old",
|
|
162
|
+
nexAgi: "nex-agi",
|
|
161
163
|
openInference: "open-inference",
|
|
162
164
|
sambanovaCloaked: "sambanova-cloaked",
|
|
163
165
|
sfCompute: "sf-compute",
|
|
@@ -24,7 +24,7 @@ export type WebSearchConfig = {
|
|
|
24
24
|
*/
|
|
25
25
|
maxTotalResults?: number | undefined;
|
|
26
26
|
/**
|
|
27
|
-
* How much context to retrieve per result. Defaults to medium (15000 chars).
|
|
27
|
+
* How much context to retrieve per result. Defaults to medium (15000 chars). Applies to Exa and Parallel engines; ignored with native provider search and Firecrawl.
|
|
28
28
|
*/
|
|
29
29
|
searchContextSize?: SearchQualityLevel | undefined;
|
|
30
30
|
/**
|
package/jsr.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openrouter/sdk",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.20",
|
|
4
4
|
"author": "OpenRouter",
|
|
5
5
|
"description": "The OpenRouter TypeScript SDK is a type-safe toolkit for building AI applications with access to 300+ language models through a unified API.",
|
|
6
6
|
"keywords": [
|
|
@@ -69,15 +69,15 @@
|
|
|
69
69
|
"lint": "eslint --cache --max-warnings=0 src",
|
|
70
70
|
"build": "tsc",
|
|
71
71
|
"prepublishOnly": "npm run build",
|
|
72
|
+
"test:transit": "exit 0",
|
|
72
73
|
"compile": "tsc",
|
|
73
74
|
"postinstall": "node scripts/check-types.js || true",
|
|
74
75
|
"prepare": "npm run build",
|
|
75
76
|
"test": "vitest --run --project unit",
|
|
76
|
-
"test:transit": "exit 0",
|
|
77
77
|
"test:watch": "vitest --watch --project unit",
|
|
78
78
|
"typecheck": "tsc --noEmit",
|
|
79
|
-
"
|
|
80
|
-
"
|
|
79
|
+
"typecheck:transit": "exit 0",
|
|
80
|
+
"test:e2e": "vitest --run --project e2e"
|
|
81
81
|
},
|
|
82
82
|
"peerDependencies": {},
|
|
83
83
|
"devDependencies": {
|