@openrouter/sdk 0.13.56 → 0.13.57
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/byokproviderslug.d.ts +1 -0
- package/esm/models/byokproviderslug.js +1 -0
- package/esm/models/imagegenerationproviderpreferences.d.ts +6 -0
- package/esm/models/imagegenerationproviderpreferences.js +1 -0
- package/esm/models/operations/listbyokkeys.d.ts +1 -0
- package/esm/models/operations/listbyokkeys.js +1 -0
- package/esm/models/providername.d.ts +1 -0
- package/esm/models/providername.js +1 -0
- package/esm/models/provideroptions.d.ts +6 -0
- package/esm/models/provideroptions.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 +6 -6
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.13.
|
|
52
|
+
readonly sdkVersion: "0.13.57";
|
|
53
53
|
readonly genVersion: "2.884.4";
|
|
54
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.13.
|
|
54
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.13.57 2.884.4 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.13.
|
|
29
|
+
sdkVersion: "0.13.57",
|
|
30
30
|
genVersion: "2.884.4",
|
|
31
|
-
userAgent: "speakeasy-sdk/typescript 0.13.
|
|
31
|
+
userAgent: "speakeasy-sdk/typescript 0.13.57 2.884.4 1.0.0 @openrouter/sdk",
|
|
32
32
|
};
|
|
33
33
|
//# sourceMappingURL=config.js.map
|
|
@@ -188,6 +188,9 @@ export type ImageGenerationProviderPreferencesOptions = {
|
|
|
188
188
|
klusterai?: {
|
|
189
189
|
[k: string]: any | null;
|
|
190
190
|
} | undefined;
|
|
191
|
+
krea?: {
|
|
192
|
+
[k: string]: any | null;
|
|
193
|
+
} | undefined;
|
|
191
194
|
lambda?: {
|
|
192
195
|
[k: string]: any | null;
|
|
193
196
|
} | undefined;
|
|
@@ -602,6 +605,9 @@ export type ImageGenerationProviderPreferencesOptions$Outbound = {
|
|
|
602
605
|
klusterai?: {
|
|
603
606
|
[k: string]: any | null;
|
|
604
607
|
} | undefined;
|
|
608
|
+
krea?: {
|
|
609
|
+
[k: string]: any | null;
|
|
610
|
+
} | undefined;
|
|
605
611
|
lambda?: {
|
|
606
612
|
[k: string]: any | null;
|
|
607
613
|
} | undefined;
|
|
@@ -79,6 +79,7 @@ export const ImageGenerationProviderPreferencesOptions$outboundSchema = z.object
|
|
|
79
79
|
ioNet: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
80
80
|
ionstream: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
81
81
|
klusterai: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
82
|
+
krea: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
82
83
|
lambda: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
83
84
|
lepton: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
84
85
|
liquid: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
@@ -183,6 +183,9 @@ export type ProviderOptions = {
|
|
|
183
183
|
klusterai?: {
|
|
184
184
|
[k: string]: any | null;
|
|
185
185
|
} | undefined;
|
|
186
|
+
krea?: {
|
|
187
|
+
[k: string]: any | null;
|
|
188
|
+
} | undefined;
|
|
186
189
|
lambda?: {
|
|
187
190
|
[k: string]: any | null;
|
|
188
191
|
} | undefined;
|
|
@@ -552,6 +555,9 @@ export type ProviderOptions$Outbound = {
|
|
|
552
555
|
klusterai?: {
|
|
553
556
|
[k: string]: any | null;
|
|
554
557
|
} | undefined;
|
|
558
|
+
krea?: {
|
|
559
|
+
[k: string]: any | null;
|
|
560
|
+
} | undefined;
|
|
555
561
|
lambda?: {
|
|
556
562
|
[k: string]: any | null;
|
|
557
563
|
} | undefined;
|
|
@@ -66,6 +66,7 @@ export const ProviderOptions$outboundSchema = z.object({
|
|
|
66
66
|
ioNet: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
67
67
|
ionstream: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
68
68
|
klusterai: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
69
|
+
krea: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
69
70
|
lambda: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
70
71
|
lepton: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
71
72
|
liquid: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
@@ -204,6 +204,9 @@ export type VideoGenerationRequestOptions = {
|
|
|
204
204
|
klusterai?: {
|
|
205
205
|
[k: string]: any | null;
|
|
206
206
|
} | undefined;
|
|
207
|
+
krea?: {
|
|
208
|
+
[k: string]: any | null;
|
|
209
|
+
} | undefined;
|
|
207
210
|
lambda?: {
|
|
208
211
|
[k: string]: any | null;
|
|
209
212
|
} | undefined;
|
|
@@ -640,6 +643,9 @@ export type VideoGenerationRequestOptions$Outbound = {
|
|
|
640
643
|
klusterai?: {
|
|
641
644
|
[k: string]: any | null;
|
|
642
645
|
} | undefined;
|
|
646
|
+
krea?: {
|
|
647
|
+
[k: string]: any | null;
|
|
648
|
+
} | undefined;
|
|
643
649
|
lambda?: {
|
|
644
650
|
[k: string]: any | null;
|
|
645
651
|
} | undefined;
|
|
@@ -96,6 +96,7 @@ export const VideoGenerationRequestOptions$outboundSchema = z.object({
|
|
|
96
96
|
ioNet: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
97
97
|
ionstream: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
98
98
|
klusterai: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
99
|
+
krea: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
99
100
|
lambda: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
100
101
|
lepton: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
101
102
|
liquid: 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.13.
|
|
3
|
+
"version": "0.13.57",
|
|
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
|
+
"prepare": "npm run build",
|
|
76
77
|
"test": "vitest --run --project unit",
|
|
77
|
-
"test:e2e": "vitest --run --project e2e",
|
|
78
78
|
"test:transit": "exit 0",
|
|
79
|
-
"test:watch": "vitest --watch --project unit",
|
|
80
79
|
"typecheck:transit": "exit 0",
|
|
81
|
-
"compile": "tsc",
|
|
82
80
|
"postinstall": "node scripts/check-types.js || true",
|
|
83
|
-
"
|
|
84
|
-
"
|
|
81
|
+
"test:e2e": "vitest --run --project e2e",
|
|
82
|
+
"test:watch": "vitest --watch --project unit",
|
|
83
|
+
"typecheck": "tsc --noEmit",
|
|
84
|
+
"compile": "tsc"
|
|
85
85
|
},
|
|
86
86
|
"peerDependencies": {},
|
|
87
87
|
"devDependencies": {
|