@openrouter/sdk 0.13.18 → 0.13.19
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/imagegenerationrequest.d.ts +10 -3
- package/esm/models/imagegenerationrequest.js +3 -1
- 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.19";
|
|
53
53
|
readonly genVersion: "2.884.4";
|
|
54
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.13.
|
|
54
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.13.19 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.19",
|
|
30
30
|
genVersion: "2.884.4",
|
|
31
|
-
userAgent: "speakeasy-sdk/typescript 0.13.
|
|
31
|
+
userAgent: "speakeasy-sdk/typescript 0.13.19 2.884.4 1.0.0 @openrouter/sdk",
|
|
32
32
|
};
|
|
33
33
|
//# sourceMappingURL=config.js.map
|
|
@@ -45,15 +45,16 @@ export declare const ImageGenerationRequestBackground: {
|
|
|
45
45
|
*/
|
|
46
46
|
export type ImageGenerationRequestBackground = OpenEnum<typeof ImageGenerationRequestBackground>;
|
|
47
47
|
/**
|
|
48
|
-
* Encoding of the returned image bytes.
|
|
48
|
+
* Encoding of the returned image bytes. Most models produce raster formats (png, jpeg, webp). SVG is supported by vectorization models (e.g. Quiver) — the SVG markup is UTF-8 base64-encoded in `b64_json`.
|
|
49
49
|
*/
|
|
50
50
|
export declare const ImageGenerationRequestOutputFormat: {
|
|
51
51
|
readonly Png: "png";
|
|
52
52
|
readonly Jpeg: "jpeg";
|
|
53
53
|
readonly Webp: "webp";
|
|
54
|
+
readonly Svg: "svg";
|
|
54
55
|
};
|
|
55
56
|
/**
|
|
56
|
-
* Encoding of the returned image bytes.
|
|
57
|
+
* Encoding of the returned image bytes. Most models produce raster formats (png, jpeg, webp). SVG is supported by vectorization models (e.g. Quiver) — the SVG markup is UTF-8 base64-encoded in `b64_json`.
|
|
57
58
|
*/
|
|
58
59
|
export type ImageGenerationRequestOutputFormat = OpenEnum<typeof ImageGenerationRequestOutputFormat>;
|
|
59
60
|
/**
|
|
@@ -330,6 +331,9 @@ export type ImageGenerationRequestOptions = {
|
|
|
330
331
|
poolside?: {
|
|
331
332
|
[k: string]: any | null;
|
|
332
333
|
} | undefined;
|
|
334
|
+
quiver?: {
|
|
335
|
+
[k: string]: any | null;
|
|
336
|
+
} | undefined;
|
|
333
337
|
recraft?: {
|
|
334
338
|
[k: string]: any | null;
|
|
335
339
|
} | undefined;
|
|
@@ -479,7 +483,7 @@ export type ImageGenerationRequest = {
|
|
|
479
483
|
*/
|
|
480
484
|
outputCompression?: number | undefined;
|
|
481
485
|
/**
|
|
482
|
-
* Encoding of the returned image bytes.
|
|
486
|
+
* Encoding of the returned image bytes. Most models produce raster formats (png, jpeg, webp). SVG is supported by vectorization models (e.g. Quiver) — the SVG markup is UTF-8 base64-encoded in `b64_json`.
|
|
483
487
|
*/
|
|
484
488
|
outputFormat?: ImageGenerationRequestOutputFormat | undefined;
|
|
485
489
|
/**
|
|
@@ -789,6 +793,9 @@ export type ImageGenerationRequestOptions$Outbound = {
|
|
|
789
793
|
poolside?: {
|
|
790
794
|
[k: string]: any | null;
|
|
791
795
|
} | undefined;
|
|
796
|
+
quiver?: {
|
|
797
|
+
[k: string]: any | null;
|
|
798
|
+
} | undefined;
|
|
792
799
|
recraft?: {
|
|
793
800
|
[k: string]: any | null;
|
|
794
801
|
} | undefined;
|
|
@@ -42,12 +42,13 @@ export const ImageGenerationRequestBackground = {
|
|
|
42
42
|
Opaque: "opaque",
|
|
43
43
|
};
|
|
44
44
|
/**
|
|
45
|
-
* Encoding of the returned image bytes.
|
|
45
|
+
* Encoding of the returned image bytes. Most models produce raster formats (png, jpeg, webp). SVG is supported by vectorization models (e.g. Quiver) — the SVG markup is UTF-8 base64-encoded in `b64_json`.
|
|
46
46
|
*/
|
|
47
47
|
export const ImageGenerationRequestOutputFormat = {
|
|
48
48
|
Png: "png",
|
|
49
49
|
Jpeg: "jpeg",
|
|
50
50
|
Webp: "webp",
|
|
51
|
+
Svg: "svg",
|
|
51
52
|
};
|
|
52
53
|
/**
|
|
53
54
|
* Rendering quality. Providers without a quality knob ignore this.
|
|
@@ -165,6 +166,7 @@ export const ImageGenerationRequestOptions$outboundSchema = z.object({
|
|
|
165
166
|
perplexity: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
166
167
|
phala: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
167
168
|
poolside: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
169
|
+
quiver: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
168
170
|
recraft: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
169
171
|
recursal: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
170
172
|
reflection: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
@@ -273,6 +273,9 @@ export type ProviderOptions = {
|
|
|
273
273
|
poolside?: {
|
|
274
274
|
[k: string]: any | null;
|
|
275
275
|
} | undefined;
|
|
276
|
+
quiver?: {
|
|
277
|
+
[k: string]: any | null;
|
|
278
|
+
} | undefined;
|
|
276
279
|
recraft?: {
|
|
277
280
|
[k: string]: any | null;
|
|
278
281
|
} | undefined;
|
|
@@ -633,6 +636,9 @@ export type ProviderOptions$Outbound = {
|
|
|
633
636
|
poolside?: {
|
|
634
637
|
[k: string]: any | null;
|
|
635
638
|
} | undefined;
|
|
639
|
+
quiver?: {
|
|
640
|
+
[k: string]: any | null;
|
|
641
|
+
} | undefined;
|
|
636
642
|
recraft?: {
|
|
637
643
|
[k: string]: any | null;
|
|
638
644
|
} | undefined;
|
|
@@ -96,6 +96,7 @@ export const ProviderOptions$outboundSchema = z.object({
|
|
|
96
96
|
perplexity: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
97
97
|
phala: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
98
98
|
poolside: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
99
|
+
quiver: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
99
100
|
recraft: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
100
101
|
recursal: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
101
102
|
reflection: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
@@ -121,6 +121,7 @@ export declare const ProviderResponseProviderName: {
|
|
|
121
121
|
readonly Venice: "Venice";
|
|
122
122
|
readonly Wafer: "Wafer";
|
|
123
123
|
readonly WandB: "WandB";
|
|
124
|
+
readonly Quiver: "Quiver";
|
|
124
125
|
readonly Xiaomi: "Xiaomi";
|
|
125
126
|
readonly XAI: "xAI";
|
|
126
127
|
readonly ZAi: "Z.AI";
|
|
@@ -294,6 +294,9 @@ export type VideoGenerationRequestOptions = {
|
|
|
294
294
|
poolside?: {
|
|
295
295
|
[k: string]: any | null;
|
|
296
296
|
} | undefined;
|
|
297
|
+
quiver?: {
|
|
298
|
+
[k: string]: any | null;
|
|
299
|
+
} | undefined;
|
|
297
300
|
recraft?: {
|
|
298
301
|
[k: string]: any | null;
|
|
299
302
|
} | undefined;
|
|
@@ -721,6 +724,9 @@ export type VideoGenerationRequestOptions$Outbound = {
|
|
|
721
724
|
poolside?: {
|
|
722
725
|
[k: string]: any | null;
|
|
723
726
|
} | undefined;
|
|
727
|
+
quiver?: {
|
|
728
|
+
[k: string]: any | null;
|
|
729
|
+
} | undefined;
|
|
724
730
|
recraft?: {
|
|
725
731
|
[k: string]: any | null;
|
|
726
732
|
} | undefined;
|
|
@@ -126,6 +126,7 @@ export const VideoGenerationRequestOptions$outboundSchema = z.object({
|
|
|
126
126
|
perplexity: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
127
127
|
phala: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
128
128
|
poolside: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
129
|
+
quiver: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
129
130
|
recraft: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
130
131
|
recursal: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
131
132
|
reflection: 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.19",
|
|
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
|
-
"
|
|
76
|
+
"prepare": "npm run build",
|
|
77
|
+
"test": "vitest --run --project unit",
|
|
78
|
+
"compile": "tsc",
|
|
79
|
+
"test:e2e": "vitest --run --project e2e",
|
|
77
80
|
"test:transit": "exit 0",
|
|
78
81
|
"test:watch": "vitest --watch --project unit",
|
|
79
82
|
"typecheck": "tsc --noEmit",
|
|
80
83
|
"typecheck:transit": "exit 0",
|
|
81
|
-
"
|
|
82
|
-
"test": "vitest --run --project unit",
|
|
83
|
-
"test:e2e": "vitest --run --project e2e",
|
|
84
|
-
"compile": "tsc"
|
|
84
|
+
"postinstall": "node scripts/check-types.js || true"
|
|
85
85
|
},
|
|
86
86
|
"peerDependencies": {},
|
|
87
87
|
"devDependencies": {
|