@openrouter/sdk 1.2.142 → 1.2.144
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
|
@@ -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.144";
|
|
54
54
|
readonly genVersion: "2.914.0";
|
|
55
|
-
readonly userAgent: "speakeasy-sdk/typescript 1.2.
|
|
55
|
+
readonly userAgent: "speakeasy-sdk/typescript 1.2.144 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.144",
|
|
33
33
|
genVersion: "2.914.0",
|
|
34
|
-
userAgent: "speakeasy-sdk/typescript 1.2.
|
|
34
|
+
userAgent: "speakeasy-sdk/typescript 1.2.144 2.914.0 1.0.0 @openrouter/sdk",
|
|
35
35
|
};
|
|
36
36
|
//# sourceMappingURL=config.js.map
|
|
@@ -106,6 +106,7 @@ export declare const BYOKProviderSlug: {
|
|
|
106
106
|
readonly Thinkingmachines: "thinkingmachines";
|
|
107
107
|
readonly Together: "together";
|
|
108
108
|
readonly Typesafe: "typesafe";
|
|
109
|
+
readonly Unbiased: "unbiased";
|
|
109
110
|
readonly Upstage: "upstage";
|
|
110
111
|
readonly Venice: "venice";
|
|
111
112
|
readonly Voyageai: "voyageai";
|
|
@@ -407,6 +407,9 @@ export type ImageGenerationProviderPreferencesOptions = {
|
|
|
407
407
|
ubicloud?: {
|
|
408
408
|
[k: string]: any;
|
|
409
409
|
} | undefined;
|
|
410
|
+
unbiased?: {
|
|
411
|
+
[k: string]: any;
|
|
412
|
+
} | undefined;
|
|
410
413
|
upstage?: {
|
|
411
414
|
[k: string]: any;
|
|
412
415
|
} | undefined;
|
|
@@ -881,6 +884,9 @@ export type ImageGenerationProviderPreferencesOptions$Outbound = {
|
|
|
881
884
|
ubicloud?: {
|
|
882
885
|
[k: string]: any;
|
|
883
886
|
} | undefined;
|
|
887
|
+
unbiased?: {
|
|
888
|
+
[k: string]: any;
|
|
889
|
+
} | undefined;
|
|
884
890
|
upstage?: {
|
|
885
891
|
[k: string]: any;
|
|
886
892
|
} | undefined;
|
|
@@ -152,6 +152,7 @@ export const ImageGenerationProviderPreferencesOptions$outboundSchema = z.object
|
|
|
152
152
|
togetherLite: z.record(z.string(), z.any()).optional(),
|
|
153
153
|
typesafe: z.record(z.string(), z.any()).optional(),
|
|
154
154
|
ubicloud: z.record(z.string(), z.any()).optional(),
|
|
155
|
+
unbiased: z.record(z.string(), z.any()).optional(),
|
|
155
156
|
upstage: z.record(z.string(), z.any()).optional(),
|
|
156
157
|
venice: z.record(z.string(), z.any()).optional(),
|
|
157
158
|
voyageai: z.record(z.string(), z.any()).optional(),
|
|
@@ -130,6 +130,7 @@ export declare const Provider: {
|
|
|
130
130
|
readonly Thinkingmachines: "thinkingmachines";
|
|
131
131
|
readonly Together: "together";
|
|
132
132
|
readonly Typesafe: "typesafe";
|
|
133
|
+
readonly Unbiased: "unbiased";
|
|
133
134
|
readonly Upstage: "upstage";
|
|
134
135
|
readonly Venice: "venice";
|
|
135
136
|
readonly Voyageai: "voyageai";
|
|
@@ -100,6 +100,7 @@ export declare const ProviderName: {
|
|
|
100
100
|
readonly Tenstorrent: "Tenstorrent";
|
|
101
101
|
readonly ThinkingMachines: "Thinking Machines";
|
|
102
102
|
readonly Together: "Together";
|
|
103
|
+
readonly Unbiased: "Unbiased";
|
|
103
104
|
readonly Upstage: "Upstage";
|
|
104
105
|
readonly Venice: "Venice";
|
|
105
106
|
readonly Wafer: "Wafer";
|
|
@@ -402,6 +402,9 @@ export type ProviderOptions = {
|
|
|
402
402
|
ubicloud?: {
|
|
403
403
|
[k: string]: any;
|
|
404
404
|
} | undefined;
|
|
405
|
+
unbiased?: {
|
|
406
|
+
[k: string]: any;
|
|
407
|
+
} | undefined;
|
|
405
408
|
upstage?: {
|
|
406
409
|
[k: string]: any;
|
|
407
410
|
} | undefined;
|
|
@@ -831,6 +834,9 @@ export type ProviderOptions$Outbound = {
|
|
|
831
834
|
ubicloud?: {
|
|
832
835
|
[k: string]: any;
|
|
833
836
|
} | undefined;
|
|
837
|
+
unbiased?: {
|
|
838
|
+
[k: string]: any;
|
|
839
|
+
} | undefined;
|
|
834
840
|
upstage?: {
|
|
835
841
|
[k: string]: any;
|
|
836
842
|
} | undefined;
|
|
@@ -139,6 +139,7 @@ export const ProviderOptions$outboundSchema = z.object({
|
|
|
139
139
|
togetherLite: z.record(z.string(), z.any()).optional(),
|
|
140
140
|
typesafe: z.record(z.string(), z.any()).optional(),
|
|
141
141
|
ubicloud: z.record(z.string(), z.any()).optional(),
|
|
142
|
+
unbiased: z.record(z.string(), z.any()).optional(),
|
|
142
143
|
upstage: z.record(z.string(), z.any()).optional(),
|
|
143
144
|
venice: z.record(z.string(), z.any()).optional(),
|
|
144
145
|
voyageai: z.record(z.string(), z.any()).optional(),
|
|
@@ -133,6 +133,7 @@ export declare const ProviderResponseProviderName: {
|
|
|
133
133
|
readonly Tenstorrent: "Tenstorrent";
|
|
134
134
|
readonly ThinkingMachines: "Thinking Machines";
|
|
135
135
|
readonly Together: "Together";
|
|
136
|
+
readonly Unbiased: "Unbiased";
|
|
136
137
|
readonly Upstage: "Upstage";
|
|
137
138
|
readonly Venice: "Venice";
|
|
138
139
|
readonly Wafer: "Wafer";
|
|
@@ -424,6 +424,9 @@ export type VideoGenerationRequestOptions = {
|
|
|
424
424
|
ubicloud?: {
|
|
425
425
|
[k: string]: any;
|
|
426
426
|
} | undefined;
|
|
427
|
+
unbiased?: {
|
|
428
|
+
[k: string]: any;
|
|
429
|
+
} | undefined;
|
|
427
430
|
upstage?: {
|
|
428
431
|
[k: string]: any;
|
|
429
432
|
} | undefined;
|
|
@@ -948,6 +951,9 @@ export type VideoGenerationRequestOptions$Outbound = {
|
|
|
948
951
|
ubicloud?: {
|
|
949
952
|
[k: string]: any;
|
|
950
953
|
} | undefined;
|
|
954
|
+
unbiased?: {
|
|
955
|
+
[k: string]: any;
|
|
956
|
+
} | undefined;
|
|
951
957
|
upstage?: {
|
|
952
958
|
[k: string]: any;
|
|
953
959
|
} | undefined;
|
|
@@ -171,6 +171,7 @@ export const VideoGenerationRequestOptions$outboundSchema = z.object({
|
|
|
171
171
|
togetherLite: z.record(z.string(), z.any()).optional(),
|
|
172
172
|
typesafe: z.record(z.string(), z.any()).optional(),
|
|
173
173
|
ubicloud: z.record(z.string(), z.any()).optional(),
|
|
174
|
+
unbiased: z.record(z.string(), z.any()).optional(),
|
|
174
175
|
upstage: z.record(z.string(), z.any()).optional(),
|
|
175
176
|
venice: z.record(z.string(), z.any()).optional(),
|
|
176
177
|
voyageai: z.record(z.string(), z.any()).optional(),
|
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.144",
|
|
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",
|
|
77
|
-
"test:e2e": "vitest --run --project e2e",
|
|
78
76
|
"test:transit": "exit 0",
|
|
77
|
+
"test:watch": "vitest --watch --project unit",
|
|
79
78
|
"typecheck:transit": "exit 0",
|
|
80
|
-
"
|
|
79
|
+
"compile": "tsc",
|
|
81
80
|
"test": "vitest --run --project unit",
|
|
82
|
-
"test:watch": "vitest --watch --project unit",
|
|
83
81
|
"typecheck": "tsc --noEmit",
|
|
84
|
-
"
|
|
82
|
+
"postinstall": "node scripts/check-types.js || true",
|
|
83
|
+
"prepare": "npm run build",
|
|
84
|
+
"test:e2e": "vitest --run --project e2e"
|
|
85
85
|
},
|
|
86
86
|
"peerDependencies": {},
|
|
87
87
|
"devDependencies": {
|