@openrouter/sdk 0.12.1 → 0.12.2
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 +2 -0
- package/esm/models/providername.js +2 -0
- package/esm/models/providerresponse.d.ts +2 -0
- package/esm/models/providerresponse.js +2 -0
- package/esm/models/videogenerationrequest.d.ts +12 -0
- package/esm/models/videogenerationrequest.js +2 -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.2";
|
|
53
53
|
readonly genVersion: "2.879.1";
|
|
54
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.12.
|
|
54
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.12.2 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.2",
|
|
30
30
|
genVersion: "2.879.1",
|
|
31
|
-
userAgent: "speakeasy-sdk/typescript 0.12.
|
|
31
|
+
userAgent: "speakeasy-sdk/typescript 0.12.2 2.879.1 1.0.0 @openrouter/sdk",
|
|
32
32
|
};
|
|
33
33
|
//# sourceMappingURL=config.js.map
|
|
@@ -25,6 +25,7 @@ export declare const ProviderName: {
|
|
|
25
25
|
readonly Crusoe: "Crusoe";
|
|
26
26
|
readonly DeepInfra: "DeepInfra";
|
|
27
27
|
readonly DeepSeek: "DeepSeek";
|
|
28
|
+
readonly DekaLLM: "DekaLLM";
|
|
28
29
|
readonly Featherless: "Featherless";
|
|
29
30
|
readonly Fireworks: "Fireworks";
|
|
30
31
|
readonly Friendli: "Friendli";
|
|
@@ -59,6 +60,7 @@ export declare const ProviderName: {
|
|
|
59
60
|
readonly Parasail: "Parasail";
|
|
60
61
|
readonly Perplexity: "Perplexity";
|
|
61
62
|
readonly Phala: "Phala";
|
|
63
|
+
readonly Recraft: "Recraft";
|
|
62
64
|
readonly Reka: "Reka";
|
|
63
65
|
readonly Relace: "Relace";
|
|
64
66
|
readonly SambaNova: "SambaNova";
|
|
@@ -28,6 +28,7 @@ export const ProviderName = {
|
|
|
28
28
|
Crusoe: "Crusoe",
|
|
29
29
|
DeepInfra: "DeepInfra",
|
|
30
30
|
DeepSeek: "DeepSeek",
|
|
31
|
+
DekaLLM: "DekaLLM",
|
|
31
32
|
Featherless: "Featherless",
|
|
32
33
|
Fireworks: "Fireworks",
|
|
33
34
|
Friendli: "Friendli",
|
|
@@ -62,6 +63,7 @@ export const ProviderName = {
|
|
|
62
63
|
Parasail: "Parasail",
|
|
63
64
|
Perplexity: "Perplexity",
|
|
64
65
|
Phala: "Phala",
|
|
66
|
+
Recraft: "Recraft",
|
|
65
67
|
Reka: "Reka",
|
|
66
68
|
Relace: "Relace",
|
|
67
69
|
SambaNova: "SambaNova",
|
|
@@ -58,6 +58,7 @@ export declare const ProviderResponseProviderName: {
|
|
|
58
58
|
readonly Crusoe: "Crusoe";
|
|
59
59
|
readonly DeepInfra: "DeepInfra";
|
|
60
60
|
readonly DeepSeek: "DeepSeek";
|
|
61
|
+
readonly DekaLLM: "DekaLLM";
|
|
61
62
|
readonly Featherless: "Featherless";
|
|
62
63
|
readonly Fireworks: "Fireworks";
|
|
63
64
|
readonly Friendli: "Friendli";
|
|
@@ -92,6 +93,7 @@ export declare const ProviderResponseProviderName: {
|
|
|
92
93
|
readonly Parasail: "Parasail";
|
|
93
94
|
readonly Perplexity: "Perplexity";
|
|
94
95
|
readonly Phala: "Phala";
|
|
96
|
+
readonly Recraft: "Recraft";
|
|
95
97
|
readonly Reka: "Reka";
|
|
96
98
|
readonly Relace: "Relace";
|
|
97
99
|
readonly SambaNova: "SambaNova";
|
|
@@ -62,6 +62,7 @@ export const ProviderResponseProviderName = {
|
|
|
62
62
|
Crusoe: "Crusoe",
|
|
63
63
|
DeepInfra: "DeepInfra",
|
|
64
64
|
DeepSeek: "DeepSeek",
|
|
65
|
+
DekaLLM: "DekaLLM",
|
|
65
66
|
Featherless: "Featherless",
|
|
66
67
|
Fireworks: "Fireworks",
|
|
67
68
|
Friendli: "Friendli",
|
|
@@ -96,6 +97,7 @@ export const ProviderResponseProviderName = {
|
|
|
96
97
|
Parasail: "Parasail",
|
|
97
98
|
Perplexity: "Perplexity",
|
|
98
99
|
Phala: "Phala",
|
|
100
|
+
Recraft: "Recraft",
|
|
99
101
|
Reka: "Reka",
|
|
100
102
|
Relace: "Relace",
|
|
101
103
|
SambaNova: "SambaNova",
|
|
@@ -109,6 +109,9 @@ export type Options = {
|
|
|
109
109
|
deepseek?: {
|
|
110
110
|
[k: string]: any | null;
|
|
111
111
|
} | undefined;
|
|
112
|
+
dekallm?: {
|
|
113
|
+
[k: string]: any | null;
|
|
114
|
+
} | undefined;
|
|
112
115
|
enfer?: {
|
|
113
116
|
[k: string]: any | null;
|
|
114
117
|
} | undefined;
|
|
@@ -259,6 +262,9 @@ export type Options = {
|
|
|
259
262
|
phala?: {
|
|
260
263
|
[k: string]: any | null;
|
|
261
264
|
} | undefined;
|
|
265
|
+
recraft?: {
|
|
266
|
+
[k: string]: any | null;
|
|
267
|
+
} | undefined;
|
|
262
268
|
recursal?: {
|
|
263
269
|
[k: string]: any | null;
|
|
264
270
|
} | undefined;
|
|
@@ -490,6 +496,9 @@ export type Options$Outbound = {
|
|
|
490
496
|
deepseek?: {
|
|
491
497
|
[k: string]: any | null;
|
|
492
498
|
} | undefined;
|
|
499
|
+
dekallm?: {
|
|
500
|
+
[k: string]: any | null;
|
|
501
|
+
} | undefined;
|
|
493
502
|
enfer?: {
|
|
494
503
|
[k: string]: any | null;
|
|
495
504
|
} | undefined;
|
|
@@ -640,6 +649,9 @@ export type Options$Outbound = {
|
|
|
640
649
|
phala?: {
|
|
641
650
|
[k: string]: any | null;
|
|
642
651
|
} | undefined;
|
|
652
|
+
recraft?: {
|
|
653
|
+
[k: string]: any | null;
|
|
654
|
+
} | undefined;
|
|
643
655
|
recursal?: {
|
|
644
656
|
[k: string]: any | null;
|
|
645
657
|
} | undefined;
|
|
@@ -64,6 +64,7 @@ export const Options$outboundSchema = z
|
|
|
64
64
|
crusoe: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
65
65
|
deepinfra: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
66
66
|
deepseek: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
67
|
+
dekallm: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
67
68
|
enfer: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
68
69
|
fakeProvider: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
69
70
|
featherless: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
@@ -114,6 +115,7 @@ export const Options$outboundSchema = z
|
|
|
114
115
|
parasail: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
115
116
|
perplexity: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
116
117
|
phala: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
118
|
+
recraft: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
117
119
|
recursal: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
118
120
|
reflection: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
119
121
|
reka: 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.2",
|
|
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": [
|
|
@@ -70,14 +70,14 @@
|
|
|
70
70
|
"build": "tsc",
|
|
71
71
|
"prepublishOnly": "npm run build",
|
|
72
72
|
"compile": "tsc",
|
|
73
|
-
"postinstall": "node scripts/check-types.js || true",
|
|
74
|
-
"prepare": "npm run build",
|
|
75
73
|
"test": "vitest --run --project unit",
|
|
76
74
|
"test:e2e": "vitest --run --project e2e",
|
|
77
75
|
"test:transit": "exit 0",
|
|
78
|
-
"test:watch": "vitest --watch --project unit",
|
|
79
76
|
"typecheck": "tsc --noEmit",
|
|
80
|
-
"typecheck:transit": "exit 0"
|
|
77
|
+
"typecheck:transit": "exit 0",
|
|
78
|
+
"postinstall": "node scripts/check-types.js || true",
|
|
79
|
+
"prepare": "npm run build",
|
|
80
|
+
"test:watch": "vitest --watch --project unit"
|
|
81
81
|
},
|
|
82
82
|
"peerDependencies": {},
|
|
83
83
|
"devDependencies": {
|