@openrouter/sdk 0.13.41 → 0.13.43
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 +2 -0
- package/esm/models/byokproviderslug.js +2 -0
- package/esm/models/imagegenerationrequest.d.ts +6 -0
- package/esm/models/imagegenerationrequest.js +1 -0
- package/esm/models/operations/listbyokkeys.d.ts +2 -0
- package/esm/models/operations/listbyokkeys.js +2 -0
- package/esm/models/providername.d.ts +2 -0
- package/esm/models/providername.js +2 -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.43";
|
|
53
53
|
readonly genVersion: "2.884.4";
|
|
54
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.13.
|
|
54
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.13.43 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.43",
|
|
30
30
|
genVersion: "2.884.4",
|
|
31
|
-
userAgent: "speakeasy-sdk/typescript 0.13.
|
|
31
|
+
userAgent: "speakeasy-sdk/typescript 0.13.43 2.884.4 1.0.0 @openrouter/sdk",
|
|
32
32
|
};
|
|
33
33
|
//# sourceMappingURL=config.js.map
|
|
@@ -29,6 +29,7 @@ export declare const BYOKProviderSlug: {
|
|
|
29
29
|
readonly Crusoe: "crusoe";
|
|
30
30
|
readonly Darkbloom: "darkbloom";
|
|
31
31
|
readonly Decart: "decart";
|
|
32
|
+
readonly Deepgram: "deepgram";
|
|
32
33
|
readonly Deepinfra: "deepinfra";
|
|
33
34
|
readonly Deepseek: "deepseek";
|
|
34
35
|
readonly Dekallm: "dekallm";
|
|
@@ -52,6 +53,7 @@ export declare const BYOKProviderSlug: {
|
|
|
52
53
|
readonly Liquid: "liquid";
|
|
53
54
|
readonly Mancer: "mancer";
|
|
54
55
|
readonly Mara: "mara";
|
|
56
|
+
readonly Meta: "meta";
|
|
55
57
|
readonly Minimax: "minimax";
|
|
56
58
|
readonly Mistral: "mistral";
|
|
57
59
|
readonly Modelrun: "modelrun";
|
|
@@ -32,6 +32,7 @@ export const BYOKProviderSlug = {
|
|
|
32
32
|
Crusoe: "crusoe",
|
|
33
33
|
Darkbloom: "darkbloom",
|
|
34
34
|
Decart: "decart",
|
|
35
|
+
Deepgram: "deepgram",
|
|
35
36
|
Deepinfra: "deepinfra",
|
|
36
37
|
Deepseek: "deepseek",
|
|
37
38
|
Dekallm: "dekallm",
|
|
@@ -55,6 +56,7 @@ export const BYOKProviderSlug = {
|
|
|
55
56
|
Liquid: "liquid",
|
|
56
57
|
Mancer: "mancer",
|
|
57
58
|
Mara: "mara",
|
|
59
|
+
Meta: "meta",
|
|
58
60
|
Minimax: "minimax",
|
|
59
61
|
Mistral: "mistral",
|
|
60
62
|
Modelrun: "modelrun",
|
|
@@ -154,6 +154,9 @@ export type ImageGenerationRequestOptions = {
|
|
|
154
154
|
decart?: {
|
|
155
155
|
[k: string]: any | null;
|
|
156
156
|
} | undefined;
|
|
157
|
+
deepgram?: {
|
|
158
|
+
[k: string]: any | null;
|
|
159
|
+
} | undefined;
|
|
157
160
|
deepinfra?: {
|
|
158
161
|
[k: string]: any | null;
|
|
159
162
|
} | undefined;
|
|
@@ -616,6 +619,9 @@ export type ImageGenerationRequestOptions$Outbound = {
|
|
|
616
619
|
decart?: {
|
|
617
620
|
[k: string]: any | null;
|
|
618
621
|
} | undefined;
|
|
622
|
+
deepgram?: {
|
|
623
|
+
[k: string]: any | null;
|
|
624
|
+
} | undefined;
|
|
619
625
|
deepinfra?: {
|
|
620
626
|
[k: string]: any | null;
|
|
621
627
|
} | undefined;
|
|
@@ -107,6 +107,7 @@ export const ImageGenerationRequestOptions$outboundSchema = z.object({
|
|
|
107
107
|
crusoe: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
108
108
|
darkbloom: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
109
109
|
decart: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
110
|
+
deepgram: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
110
111
|
deepinfra: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
111
112
|
deepseek: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
112
113
|
dekallm: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
@@ -53,6 +53,7 @@ export declare const Provider: {
|
|
|
53
53
|
readonly Crusoe: "crusoe";
|
|
54
54
|
readonly Darkbloom: "darkbloom";
|
|
55
55
|
readonly Decart: "decart";
|
|
56
|
+
readonly Deepgram: "deepgram";
|
|
56
57
|
readonly Deepinfra: "deepinfra";
|
|
57
58
|
readonly Deepseek: "deepseek";
|
|
58
59
|
readonly Dekallm: "dekallm";
|
|
@@ -76,6 +77,7 @@ export declare const Provider: {
|
|
|
76
77
|
readonly Liquid: "liquid";
|
|
77
78
|
readonly Mancer: "mancer";
|
|
78
79
|
readonly Mara: "mara";
|
|
80
|
+
readonly Meta: "meta";
|
|
79
81
|
readonly Minimax: "minimax";
|
|
80
82
|
readonly Mistral: "mistral";
|
|
81
83
|
readonly Modelrun: "modelrun";
|
|
@@ -36,6 +36,7 @@ export const Provider = {
|
|
|
36
36
|
Crusoe: "crusoe",
|
|
37
37
|
Darkbloom: "darkbloom",
|
|
38
38
|
Decart: "decart",
|
|
39
|
+
Deepgram: "deepgram",
|
|
39
40
|
Deepinfra: "deepinfra",
|
|
40
41
|
Deepseek: "deepseek",
|
|
41
42
|
Dekallm: "dekallm",
|
|
@@ -59,6 +60,7 @@ export const Provider = {
|
|
|
59
60
|
Liquid: "liquid",
|
|
60
61
|
Mancer: "mancer",
|
|
61
62
|
Mara: "mara",
|
|
63
|
+
Meta: "meta",
|
|
62
64
|
Minimax: "minimax",
|
|
63
65
|
Mistral: "mistral",
|
|
64
66
|
Modelrun: "modelrun",
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as z from "zod/v4";
|
|
2
2
|
import { OpenEnum } from "../types/enums.js";
|
|
3
3
|
export declare const ProviderName: {
|
|
4
|
+
readonly Meta: "Meta";
|
|
4
5
|
readonly AkashML: "AkashML";
|
|
5
6
|
readonly Ai21: "AI21";
|
|
6
7
|
readonly AionLabs: "AionLabs";
|
|
@@ -27,6 +28,7 @@ export declare const ProviderName: {
|
|
|
27
28
|
readonly Crusoe: "Crusoe";
|
|
28
29
|
readonly Darkbloom: "Darkbloom";
|
|
29
30
|
readonly Decart: "Decart";
|
|
31
|
+
readonly Deepgram: "Deepgram";
|
|
30
32
|
readonly DeepInfra: "DeepInfra";
|
|
31
33
|
readonly DeepSeek: "DeepSeek";
|
|
32
34
|
readonly DekaLLM: "DekaLLM";
|
|
@@ -4,6 +4,7 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import * as openEnums from "../types/enums.js";
|
|
6
6
|
export const ProviderName = {
|
|
7
|
+
Meta: "Meta",
|
|
7
8
|
AkashML: "AkashML",
|
|
8
9
|
Ai21: "AI21",
|
|
9
10
|
AionLabs: "AionLabs",
|
|
@@ -30,6 +31,7 @@ export const ProviderName = {
|
|
|
30
31
|
Crusoe: "Crusoe",
|
|
31
32
|
Darkbloom: "Darkbloom",
|
|
32
33
|
Decart: "Decart",
|
|
34
|
+
Deepgram: "Deepgram",
|
|
33
35
|
DeepInfra: "DeepInfra",
|
|
34
36
|
DeepSeek: "DeepSeek",
|
|
35
37
|
DekaLLM: "DekaLLM",
|
|
@@ -96,6 +96,9 @@ export type ProviderOptions = {
|
|
|
96
96
|
decart?: {
|
|
97
97
|
[k: string]: any | null;
|
|
98
98
|
} | undefined;
|
|
99
|
+
deepgram?: {
|
|
100
|
+
[k: string]: any | null;
|
|
101
|
+
} | undefined;
|
|
99
102
|
deepinfra?: {
|
|
100
103
|
[k: string]: any | null;
|
|
101
104
|
} | undefined;
|
|
@@ -459,6 +462,9 @@ export type ProviderOptions$Outbound = {
|
|
|
459
462
|
decart?: {
|
|
460
463
|
[k: string]: any | null;
|
|
461
464
|
} | undefined;
|
|
465
|
+
deepgram?: {
|
|
466
|
+
[k: string]: any | null;
|
|
467
|
+
} | undefined;
|
|
462
468
|
deepinfra?: {
|
|
463
469
|
[k: string]: any | null;
|
|
464
470
|
} | undefined;
|
|
@@ -37,6 +37,7 @@ export const ProviderOptions$outboundSchema = z.object({
|
|
|
37
37
|
crusoe: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
38
38
|
darkbloom: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
39
39
|
decart: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
40
|
+
deepgram: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
40
41
|
deepinfra: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
41
42
|
deepseek: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
42
43
|
dekallm: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
@@ -61,6 +61,7 @@ export declare const ProviderResponseProviderName: {
|
|
|
61
61
|
readonly Crusoe: "Crusoe";
|
|
62
62
|
readonly Darkbloom: "Darkbloom";
|
|
63
63
|
readonly Decart: "Decart";
|
|
64
|
+
readonly Deepgram: "Deepgram";
|
|
64
65
|
readonly DeepInfra: "DeepInfra";
|
|
65
66
|
readonly DeepSeek: "DeepSeek";
|
|
66
67
|
readonly DekaLLM: "DekaLLM";
|
|
@@ -117,6 +117,9 @@ export type VideoGenerationRequestOptions = {
|
|
|
117
117
|
decart?: {
|
|
118
118
|
[k: string]: any | null;
|
|
119
119
|
} | undefined;
|
|
120
|
+
deepgram?: {
|
|
121
|
+
[k: string]: any | null;
|
|
122
|
+
} | undefined;
|
|
120
123
|
deepinfra?: {
|
|
121
124
|
[k: string]: any | null;
|
|
122
125
|
} | undefined;
|
|
@@ -547,6 +550,9 @@ export type VideoGenerationRequestOptions$Outbound = {
|
|
|
547
550
|
decart?: {
|
|
548
551
|
[k: string]: any | null;
|
|
549
552
|
} | undefined;
|
|
553
|
+
deepgram?: {
|
|
554
|
+
[k: string]: any | null;
|
|
555
|
+
} | undefined;
|
|
550
556
|
deepinfra?: {
|
|
551
557
|
[k: string]: any | null;
|
|
552
558
|
} | undefined;
|
|
@@ -67,6 +67,7 @@ export const VideoGenerationRequestOptions$outboundSchema = z.object({
|
|
|
67
67
|
crusoe: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
68
68
|
darkbloom: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
69
69
|
decart: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
70
|
+
deepgram: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
70
71
|
deepinfra: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
71
72
|
deepseek: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
72
73
|
dekallm: 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.43",
|
|
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,14 +73,14 @@
|
|
|
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
|
-
"test:transit": "exit 0",
|
|
79
|
-
"typecheck:transit": "exit 0",
|
|
80
|
-
"compile": "tsc",
|
|
81
76
|
"postinstall": "node scripts/check-types.js || true",
|
|
82
77
|
"test": "vitest --run --project unit",
|
|
83
78
|
"test:watch": "vitest --watch --project unit",
|
|
79
|
+
"typecheck:transit": "exit 0",
|
|
80
|
+
"compile": "tsc",
|
|
81
|
+
"prepare": "npm run build",
|
|
82
|
+
"test:e2e": "vitest --run --project e2e",
|
|
83
|
+
"test:transit": "exit 0",
|
|
84
84
|
"typecheck": "tsc --noEmit"
|
|
85
85
|
},
|
|
86
86
|
"peerDependencies": {},
|