@openrouter/sdk 0.12.7 → 0.12.9
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/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/videogenerationrequest.d.ts +6 -0
- package/esm/models/videogenerationrequest.js +1 -0
- package/jsr.json +1 -1
- package/package.json +5 -5
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.9";
|
|
53
53
|
readonly genVersion: "2.879.1";
|
|
54
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.12.
|
|
54
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.12.9 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.9",
|
|
30
30
|
genVersion: "2.879.1",
|
|
31
|
-
userAgent: "speakeasy-sdk/typescript 0.12.
|
|
31
|
+
userAgent: "speakeasy-sdk/typescript 0.12.9 2.879.1 1.0.0 @openrouter/sdk",
|
|
32
32
|
};
|
|
33
33
|
//# sourceMappingURL=config.js.map
|
|
@@ -6,6 +6,7 @@ export declare const ProviderName: {
|
|
|
6
6
|
readonly AionLabs: "AionLabs";
|
|
7
7
|
readonly Alibaba: "Alibaba";
|
|
8
8
|
readonly Ambient: "Ambient";
|
|
9
|
+
readonly Baidu: "Baidu";
|
|
9
10
|
readonly AmazonBedrock: "Amazon Bedrock";
|
|
10
11
|
readonly AmazonNova: "Amazon Nova";
|
|
11
12
|
readonly Anthropic: "Anthropic";
|
|
@@ -39,6 +39,7 @@ export declare const ProviderResponseProviderName: {
|
|
|
39
39
|
readonly AionLabs: "AionLabs";
|
|
40
40
|
readonly Alibaba: "Alibaba";
|
|
41
41
|
readonly Ambient: "Ambient";
|
|
42
|
+
readonly Baidu: "Baidu";
|
|
42
43
|
readonly AmazonBedrock: "Amazon Bedrock";
|
|
43
44
|
readonly AmazonNova: "Amazon Nova";
|
|
44
45
|
readonly Anthropic: "Anthropic";
|
|
@@ -67,6 +67,9 @@ export type Options = {
|
|
|
67
67
|
azure?: {
|
|
68
68
|
[k: string]: any | null;
|
|
69
69
|
} | undefined;
|
|
70
|
+
baidu?: {
|
|
71
|
+
[k: string]: any | null;
|
|
72
|
+
} | undefined;
|
|
70
73
|
baseten?: {
|
|
71
74
|
[k: string]: any | null;
|
|
72
75
|
} | undefined;
|
|
@@ -454,6 +457,9 @@ export type Options$Outbound = {
|
|
|
454
457
|
azure?: {
|
|
455
458
|
[k: string]: any | null;
|
|
456
459
|
} | undefined;
|
|
460
|
+
baidu?: {
|
|
461
|
+
[k: string]: any | null;
|
|
462
|
+
} | undefined;
|
|
457
463
|
baseten?: {
|
|
458
464
|
[k: string]: any | null;
|
|
459
465
|
} | undefined;
|
|
@@ -50,6 +50,7 @@ export const Options$outboundSchema = z
|
|
|
50
50
|
atoma: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
51
51
|
avian: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
52
52
|
azure: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
53
|
+
baidu: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
53
54
|
baseten: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
54
55
|
blackForestLabs: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
55
56
|
byteplus: z.record(z.string(), z.nullable(z.any())).optional(),
|
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.9",
|
|
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
|
-
"
|
|
72
|
+
"typecheck:transit": "exit 0",
|
|
73
73
|
"prepare": "npm run build",
|
|
74
74
|
"test:watch": "vitest --watch --project unit",
|
|
75
|
+
"typecheck": "tsc --noEmit",
|
|
76
|
+
"compile": "tsc",
|
|
75
77
|
"postinstall": "node scripts/check-types.js || true",
|
|
76
78
|
"test": "vitest --run --project unit",
|
|
77
79
|
"test:e2e": "vitest --run --project e2e",
|
|
78
|
-
"test:transit": "exit 0"
|
|
79
|
-
"typecheck": "tsc --noEmit",
|
|
80
|
-
"typecheck:transit": "exit 0"
|
|
80
|
+
"test:transit": "exit 0"
|
|
81
81
|
},
|
|
82
82
|
"peerDependencies": {},
|
|
83
83
|
"devDependencies": {
|