@openrouter/sdk 1.5.25 → 1.5.26
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/imagegenerationproviderpreferences.d.ts +1 -1
- package/esm/models/provideroptions.d.ts +1 -1
- package/esm/models/providerpreferences.d.ts +1 -1
- package/esm/models/speechrequest.d.ts +1 -1
- package/esm/models/sttrequest.d.ts +1 -1
- package/esm/models/videogenerationrequest.d.ts +1 -1
- package/jsr.json +1 -1
- package/package.json +9 -9
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.5.
|
|
53
|
+
readonly sdkVersion: "1.5.26";
|
|
54
54
|
readonly genVersion: "2.950.13";
|
|
55
|
-
readonly userAgent: "speakeasy-sdk/typescript 1.5.
|
|
55
|
+
readonly userAgent: "speakeasy-sdk/typescript 1.5.26 2.950.13 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.5.
|
|
32
|
+
sdkVersion: "1.5.26",
|
|
33
33
|
genVersion: "2.950.13",
|
|
34
|
-
userAgent: "speakeasy-sdk/typescript 1.5.
|
|
34
|
+
userAgent: "speakeasy-sdk/typescript 1.5.26 2.950.13 1.0.0 @openrouter/sdk",
|
|
35
35
|
};
|
|
36
36
|
//# sourceMappingURL=config.js.map
|
|
@@ -5,7 +5,7 @@ import { ProviderSortConfig, ProviderSortConfig$Outbound } from "./providersortc
|
|
|
5
5
|
export type ImageGenerationProviderPreferencesIgnore = ProviderName | string;
|
|
6
6
|
export type ImageGenerationProviderPreferencesOnly = ProviderName | string;
|
|
7
7
|
/**
|
|
8
|
-
* Provider-specific options keyed by provider slug. Only options for the matched provider are forwarded; the rest are ignored. Unrecognized keys are silently dropped.
|
|
8
|
+
* Provider-specific options keyed by provider slug. The provider segment is case-insensitive; an endpoint tag after `/` must match the endpoint slug exactly. Only options for the matched provider are forwarded; the rest are ignored. Unrecognized keys are silently dropped.
|
|
9
9
|
*/
|
|
10
10
|
export type ImageGenerationProviderPreferencesOptions = {
|
|
11
11
|
oneai?: {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as z from "zod/v4";
|
|
2
2
|
/**
|
|
3
|
-
* Provider-specific options keyed by provider slug. Only options for the matched provider are forwarded; the rest are ignored. Unrecognized keys are silently dropped.
|
|
3
|
+
* Provider-specific options keyed by provider slug. The provider segment is case-insensitive; an endpoint tag after `/` must match the endpoint slug exactly. Only options for the matched provider are forwarded; the rest are ignored. Unrecognized keys are silently dropped.
|
|
4
4
|
*/
|
|
5
5
|
export type ProviderOptions = {
|
|
6
6
|
oneai?: {
|
|
@@ -98,7 +98,7 @@ export type ProviderPreferences = {
|
|
|
98
98
|
*/
|
|
99
99
|
only?: Array<ProviderName | string> | null | undefined;
|
|
100
100
|
/**
|
|
101
|
-
* Provider-specific options keyed by provider slug. Only options for the matched provider are forwarded; the rest are ignored. Unrecognized keys are silently dropped.
|
|
101
|
+
* Provider-specific options keyed by provider slug. The provider segment is case-insensitive; an endpoint tag after `/` must match the endpoint slug exactly. Only options for the matched provider are forwarded; the rest are ignored. Unrecognized keys are silently dropped.
|
|
102
102
|
*/
|
|
103
103
|
options?: ProviderOptions | undefined;
|
|
104
104
|
/**
|
|
@@ -39,7 +39,7 @@ export type SpeechRequestProvider = {
|
|
|
39
39
|
*/
|
|
40
40
|
dataCollection?: SpeechRequestDataCollection | null | undefined;
|
|
41
41
|
/**
|
|
42
|
-
* Provider-specific options keyed by provider slug. Only options for the matched provider are forwarded; the rest are ignored. Unrecognized keys are silently dropped.
|
|
42
|
+
* Provider-specific options keyed by provider slug. The provider segment is case-insensitive; an endpoint tag after `/` must match the endpoint slug exactly. Only options for the matched provider are forwarded; the rest are ignored. Unrecognized keys are silently dropped.
|
|
43
43
|
*/
|
|
44
44
|
options?: ProviderOptions | undefined;
|
|
45
45
|
/**
|
|
@@ -39,7 +39,7 @@ export type STTRequestProvider = {
|
|
|
39
39
|
*/
|
|
40
40
|
dataCollection?: STTRequestDataCollection | null | undefined;
|
|
41
41
|
/**
|
|
42
|
-
* Provider-specific options keyed by provider slug. Only options for the matched provider are forwarded; the rest are ignored. Unrecognized keys are silently dropped.
|
|
42
|
+
* Provider-specific options keyed by provider slug. The provider segment is case-insensitive; an endpoint tag after `/` must match the endpoint slug exactly. Only options for the matched provider are forwarded; the rest are ignored. Unrecognized keys are silently dropped.
|
|
43
43
|
*/
|
|
44
44
|
options?: ProviderOptions | undefined;
|
|
45
45
|
/**
|
|
@@ -22,7 +22,7 @@ export declare const VideoGenerationRequestAspectRatio: {
|
|
|
22
22
|
*/
|
|
23
23
|
export type VideoGenerationRequestAspectRatio = OpenEnum<typeof VideoGenerationRequestAspectRatio>;
|
|
24
24
|
/**
|
|
25
|
-
* Provider-specific options keyed by provider slug. Only options for the matched provider are forwarded; the rest are ignored. Unrecognized keys are silently dropped.
|
|
25
|
+
* Provider-specific options keyed by provider slug. The provider segment is case-insensitive; an endpoint tag after `/` must match the endpoint slug exactly. Only options for the matched provider are forwarded; the rest are ignored. Unrecognized keys are silently dropped.
|
|
26
26
|
*/
|
|
27
27
|
export type VideoGenerationRequestOptions = {
|
|
28
28
|
oneai?: {
|
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.26",
|
|
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": [
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"license": "Apache-2.0",
|
|
22
22
|
"packageManager": "pnpm@10.22.0",
|
|
23
23
|
"publishConfig": {
|
|
24
|
-
"
|
|
25
|
-
"
|
|
24
|
+
"provenance": true,
|
|
25
|
+
"access": "public"
|
|
26
26
|
},
|
|
27
27
|
"type": "module",
|
|
28
28
|
"main": "./esm/index.js",
|
|
@@ -73,15 +73,15 @@
|
|
|
73
73
|
"lint": "eslint --cache --max-warnings=0 src",
|
|
74
74
|
"build": "tsc && node scripts/unbarrel-imports.js",
|
|
75
75
|
"prepublishOnly": "npm run build",
|
|
76
|
-
"postinstall": "node scripts/check-types.js || true",
|
|
77
|
-
"test:e2e": "vitest --run --project e2e",
|
|
78
|
-
"typecheck:transit": "exit 0",
|
|
79
|
-
"compile": "tsc && node scripts/unbarrel-imports.js",
|
|
80
76
|
"prepare": "npm run build",
|
|
81
77
|
"test": "vitest --run --project unit",
|
|
78
|
+
"typecheck": "tsc --noEmit",
|
|
79
|
+
"typecheck:transit": "exit 0",
|
|
80
|
+
"compile": "tsc && node scripts/unbarrel-imports.js",
|
|
81
|
+
"postinstall": "node scripts/check-types.js || true",
|
|
82
|
+
"test:e2e": "vitest --run --project e2e",
|
|
82
83
|
"test:transit": "exit 0",
|
|
83
|
-
"test:watch": "vitest --watch --project unit"
|
|
84
|
-
"typecheck": "tsc --noEmit"
|
|
84
|
+
"test:watch": "vitest --watch --project unit"
|
|
85
85
|
},
|
|
86
86
|
"peerDependencies": {
|
|
87
87
|
|