@openrouter/sdk 1.0.4 → 1.0.6
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/imagegenerationproviderpreferences.d.ts +12 -0
- package/esm/models/imagegenerationproviderpreferences.js +2 -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 +12 -0
- package/esm/models/provideroptions.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: "1.0.
|
|
52
|
+
readonly sdkVersion: "1.0.6";
|
|
53
53
|
readonly genVersion: "2.914.0";
|
|
54
|
-
readonly userAgent: "speakeasy-sdk/typescript 1.0.
|
|
54
|
+
readonly userAgent: "speakeasy-sdk/typescript 1.0.6 2.914.0 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: "1.0.
|
|
29
|
+
sdkVersion: "1.0.6",
|
|
30
30
|
genVersion: "2.914.0",
|
|
31
|
-
userAgent: "speakeasy-sdk/typescript 1.0.
|
|
31
|
+
userAgent: "speakeasy-sdk/typescript 1.0.6 2.914.0 1.0.0 @openrouter/sdk",
|
|
32
32
|
};
|
|
33
33
|
//# sourceMappingURL=config.js.map
|
|
@@ -26,6 +26,7 @@ export declare const BYOKProviderSlug: {
|
|
|
26
26
|
readonly Clarifai: "clarifai";
|
|
27
27
|
readonly Cloudflare: "cloudflare";
|
|
28
28
|
readonly Cohere: "cohere";
|
|
29
|
+
readonly Coreweave: "coreweave";
|
|
29
30
|
readonly Crusoe: "crusoe";
|
|
30
31
|
readonly Darkbloom: "darkbloom";
|
|
31
32
|
readonly Decart: "decart";
|
|
@@ -79,6 +80,7 @@ export declare const BYOKProviderSlug: {
|
|
|
79
80
|
readonly Recraft: "recraft";
|
|
80
81
|
readonly Reka: "reka";
|
|
81
82
|
readonly Relace: "relace";
|
|
83
|
+
readonly Runway: "runway";
|
|
82
84
|
readonly SailResearch: "sail-research";
|
|
83
85
|
readonly Sakana: "sakana";
|
|
84
86
|
readonly Sambanova: "sambanova";
|
|
@@ -29,6 +29,7 @@ export const BYOKProviderSlug = {
|
|
|
29
29
|
Clarifai: "clarifai",
|
|
30
30
|
Cloudflare: "cloudflare",
|
|
31
31
|
Cohere: "cohere",
|
|
32
|
+
Coreweave: "coreweave",
|
|
32
33
|
Crusoe: "crusoe",
|
|
33
34
|
Darkbloom: "darkbloom",
|
|
34
35
|
Decart: "decart",
|
|
@@ -82,6 +83,7 @@ export const BYOKProviderSlug = {
|
|
|
82
83
|
Recraft: "recraft",
|
|
83
84
|
Reka: "reka",
|
|
84
85
|
Relace: "relace",
|
|
86
|
+
Runway: "runway",
|
|
85
87
|
SailResearch: "sail-research",
|
|
86
88
|
Sakana: "sakana",
|
|
87
89
|
Sambanova: "sambanova",
|
|
@@ -86,6 +86,9 @@ export type ImageGenerationProviderPreferencesOptions = {
|
|
|
86
86
|
cohere?: {
|
|
87
87
|
[k: string]: any;
|
|
88
88
|
} | undefined;
|
|
89
|
+
coreweave?: {
|
|
90
|
+
[k: string]: any;
|
|
91
|
+
} | undefined;
|
|
89
92
|
crofai?: {
|
|
90
93
|
[k: string]: any;
|
|
91
94
|
} | undefined;
|
|
@@ -308,6 +311,9 @@ export type ImageGenerationProviderPreferencesOptions = {
|
|
|
308
311
|
replicate?: {
|
|
309
312
|
[k: string]: any;
|
|
310
313
|
} | undefined;
|
|
314
|
+
runway?: {
|
|
315
|
+
[k: string]: any;
|
|
316
|
+
} | undefined;
|
|
311
317
|
sailResearch?: {
|
|
312
318
|
[k: string]: any;
|
|
313
319
|
} | undefined;
|
|
@@ -509,6 +515,9 @@ export type ImageGenerationProviderPreferencesOptions$Outbound = {
|
|
|
509
515
|
cohere?: {
|
|
510
516
|
[k: string]: any;
|
|
511
517
|
} | undefined;
|
|
518
|
+
coreweave?: {
|
|
519
|
+
[k: string]: any;
|
|
520
|
+
} | undefined;
|
|
512
521
|
crofai?: {
|
|
513
522
|
[k: string]: any;
|
|
514
523
|
} | undefined;
|
|
@@ -731,6 +740,9 @@ export type ImageGenerationProviderPreferencesOptions$Outbound = {
|
|
|
731
740
|
replicate?: {
|
|
732
741
|
[k: string]: any;
|
|
733
742
|
} | undefined;
|
|
743
|
+
runway?: {
|
|
744
|
+
[k: string]: any;
|
|
745
|
+
} | undefined;
|
|
734
746
|
"sail-research"?: {
|
|
735
747
|
[k: string]: any;
|
|
736
748
|
} | undefined;
|
|
@@ -45,6 +45,7 @@ export const ImageGenerationProviderPreferencesOptions$outboundSchema = z.object
|
|
|
45
45
|
clarifai: z.record(z.string(), z.any()).optional(),
|
|
46
46
|
cloudflare: z.record(z.string(), z.any()).optional(),
|
|
47
47
|
cohere: z.record(z.string(), z.any()).optional(),
|
|
48
|
+
coreweave: z.record(z.string(), z.any()).optional(),
|
|
48
49
|
crofai: z.record(z.string(), z.any()).optional(),
|
|
49
50
|
crucible: z.record(z.string(), z.any()).optional(),
|
|
50
51
|
crusoe: z.record(z.string(), z.any()).optional(),
|
|
@@ -119,6 +120,7 @@ export const ImageGenerationProviderPreferencesOptions$outboundSchema = z.object
|
|
|
119
120
|
reka: z.record(z.string(), z.any()).optional(),
|
|
120
121
|
relace: z.record(z.string(), z.any()).optional(),
|
|
121
122
|
replicate: z.record(z.string(), z.any()).optional(),
|
|
123
|
+
runway: z.record(z.string(), z.any()).optional(),
|
|
122
124
|
sailResearch: z.record(z.string(), z.any()).optional(),
|
|
123
125
|
sakana: z.record(z.string(), z.any()).optional(),
|
|
124
126
|
sambanova: z.record(z.string(), z.any()).optional(),
|
|
@@ -50,6 +50,7 @@ export declare const Provider: {
|
|
|
50
50
|
readonly Clarifai: "clarifai";
|
|
51
51
|
readonly Cloudflare: "cloudflare";
|
|
52
52
|
readonly Cohere: "cohere";
|
|
53
|
+
readonly Coreweave: "coreweave";
|
|
53
54
|
readonly Crusoe: "crusoe";
|
|
54
55
|
readonly Darkbloom: "darkbloom";
|
|
55
56
|
readonly Decart: "decart";
|
|
@@ -103,6 +104,7 @@ export declare const Provider: {
|
|
|
103
104
|
readonly Recraft: "recraft";
|
|
104
105
|
readonly Reka: "reka";
|
|
105
106
|
readonly Relace: "relace";
|
|
107
|
+
readonly Runway: "runway";
|
|
106
108
|
readonly SailResearch: "sail-research";
|
|
107
109
|
readonly Sakana: "sakana";
|
|
108
110
|
readonly Sambanova: "sambanova";
|
|
@@ -33,6 +33,7 @@ export const Provider = {
|
|
|
33
33
|
Clarifai: "clarifai",
|
|
34
34
|
Cloudflare: "cloudflare",
|
|
35
35
|
Cohere: "cohere",
|
|
36
|
+
Coreweave: "coreweave",
|
|
36
37
|
Crusoe: "crusoe",
|
|
37
38
|
Darkbloom: "darkbloom",
|
|
38
39
|
Decart: "decart",
|
|
@@ -86,6 +87,7 @@ export const Provider = {
|
|
|
86
87
|
Recraft: "recraft",
|
|
87
88
|
Reka: "reka",
|
|
88
89
|
Relace: "relace",
|
|
90
|
+
Runway: "runway",
|
|
89
91
|
SailResearch: "sail-research",
|
|
90
92
|
Sakana: "sakana",
|
|
91
93
|
Sambanova: "sambanova",
|
|
@@ -23,6 +23,7 @@ export declare const ProviderName: {
|
|
|
23
23
|
readonly Clarifai: "Clarifai";
|
|
24
24
|
readonly Cloudflare: "Cloudflare";
|
|
25
25
|
readonly Cohere: "Cohere";
|
|
26
|
+
readonly CoreWeave: "CoreWeave";
|
|
26
27
|
readonly Crucible: "Crucible";
|
|
27
28
|
readonly Crusoe: "Crusoe";
|
|
28
29
|
readonly Darkbloom: "Darkbloom";
|
|
@@ -94,6 +95,7 @@ export declare const ProviderName: {
|
|
|
94
95
|
readonly WandB: "WandB";
|
|
95
96
|
readonly Quiver: "Quiver";
|
|
96
97
|
readonly Krea: "Krea";
|
|
98
|
+
readonly Runway: "Runway";
|
|
97
99
|
readonly Xiaomi: "Xiaomi";
|
|
98
100
|
readonly XAI: "xAI";
|
|
99
101
|
readonly ZAi: "Z.AI";
|
|
@@ -26,6 +26,7 @@ export const ProviderName = {
|
|
|
26
26
|
Clarifai: "Clarifai",
|
|
27
27
|
Cloudflare: "Cloudflare",
|
|
28
28
|
Cohere: "Cohere",
|
|
29
|
+
CoreWeave: "CoreWeave",
|
|
29
30
|
Crucible: "Crucible",
|
|
30
31
|
Crusoe: "Crusoe",
|
|
31
32
|
Darkbloom: "Darkbloom",
|
|
@@ -97,6 +98,7 @@ export const ProviderName = {
|
|
|
97
98
|
WandB: "WandB",
|
|
98
99
|
Quiver: "Quiver",
|
|
99
100
|
Krea: "Krea",
|
|
101
|
+
Runway: "Runway",
|
|
100
102
|
Xiaomi: "Xiaomi",
|
|
101
103
|
XAI: "xAI",
|
|
102
104
|
ZAi: "Z.AI",
|
|
@@ -81,6 +81,9 @@ export type ProviderOptions = {
|
|
|
81
81
|
cohere?: {
|
|
82
82
|
[k: string]: any;
|
|
83
83
|
} | undefined;
|
|
84
|
+
coreweave?: {
|
|
85
|
+
[k: string]: any;
|
|
86
|
+
} | undefined;
|
|
84
87
|
crofai?: {
|
|
85
88
|
[k: string]: any;
|
|
86
89
|
} | undefined;
|
|
@@ -303,6 +306,9 @@ export type ProviderOptions = {
|
|
|
303
306
|
replicate?: {
|
|
304
307
|
[k: string]: any;
|
|
305
308
|
} | undefined;
|
|
309
|
+
runway?: {
|
|
310
|
+
[k: string]: any;
|
|
311
|
+
} | undefined;
|
|
306
312
|
sailResearch?: {
|
|
307
313
|
[k: string]: any;
|
|
308
314
|
} | undefined;
|
|
@@ -459,6 +465,9 @@ export type ProviderOptions$Outbound = {
|
|
|
459
465
|
cohere?: {
|
|
460
466
|
[k: string]: any;
|
|
461
467
|
} | undefined;
|
|
468
|
+
coreweave?: {
|
|
469
|
+
[k: string]: any;
|
|
470
|
+
} | undefined;
|
|
462
471
|
crofai?: {
|
|
463
472
|
[k: string]: any;
|
|
464
473
|
} | undefined;
|
|
@@ -681,6 +690,9 @@ export type ProviderOptions$Outbound = {
|
|
|
681
690
|
replicate?: {
|
|
682
691
|
[k: string]: any;
|
|
683
692
|
} | undefined;
|
|
693
|
+
runway?: {
|
|
694
|
+
[k: string]: any;
|
|
695
|
+
} | undefined;
|
|
684
696
|
"sail-research"?: {
|
|
685
697
|
[k: string]: any;
|
|
686
698
|
} | undefined;
|
|
@@ -32,6 +32,7 @@ export const ProviderOptions$outboundSchema = z.object({
|
|
|
32
32
|
clarifai: z.record(z.string(), z.any()).optional(),
|
|
33
33
|
cloudflare: z.record(z.string(), z.any()).optional(),
|
|
34
34
|
cohere: z.record(z.string(), z.any()).optional(),
|
|
35
|
+
coreweave: z.record(z.string(), z.any()).optional(),
|
|
35
36
|
crofai: z.record(z.string(), z.any()).optional(),
|
|
36
37
|
crucible: z.record(z.string(), z.any()).optional(),
|
|
37
38
|
crusoe: z.record(z.string(), z.any()).optional(),
|
|
@@ -106,6 +107,7 @@ export const ProviderOptions$outboundSchema = z.object({
|
|
|
106
107
|
reka: z.record(z.string(), z.any()).optional(),
|
|
107
108
|
relace: z.record(z.string(), z.any()).optional(),
|
|
108
109
|
replicate: z.record(z.string(), z.any()).optional(),
|
|
110
|
+
runway: z.record(z.string(), z.any()).optional(),
|
|
109
111
|
sailResearch: z.record(z.string(), z.any()).optional(),
|
|
110
112
|
sakana: z.record(z.string(), z.any()).optional(),
|
|
111
113
|
sambanova: z.record(z.string(), z.any()).optional(),
|
|
@@ -56,6 +56,7 @@ export declare const ProviderResponseProviderName: {
|
|
|
56
56
|
readonly Clarifai: "Clarifai";
|
|
57
57
|
readonly Cloudflare: "Cloudflare";
|
|
58
58
|
readonly Cohere: "Cohere";
|
|
59
|
+
readonly CoreWeave: "CoreWeave";
|
|
59
60
|
readonly Crucible: "Crucible";
|
|
60
61
|
readonly Crusoe: "Crusoe";
|
|
61
62
|
readonly Darkbloom: "Darkbloom";
|
|
@@ -127,6 +128,7 @@ export declare const ProviderResponseProviderName: {
|
|
|
127
128
|
readonly WandB: "WandB";
|
|
128
129
|
readonly Quiver: "Quiver";
|
|
129
130
|
readonly Krea: "Krea";
|
|
131
|
+
readonly Runway: "Runway";
|
|
130
132
|
readonly Xiaomi: "Xiaomi";
|
|
131
133
|
readonly XAI: "xAI";
|
|
132
134
|
readonly ZAi: "Z.AI";
|
|
@@ -60,6 +60,7 @@ export const ProviderResponseProviderName = {
|
|
|
60
60
|
Clarifai: "Clarifai",
|
|
61
61
|
Cloudflare: "Cloudflare",
|
|
62
62
|
Cohere: "Cohere",
|
|
63
|
+
CoreWeave: "CoreWeave",
|
|
63
64
|
Crucible: "Crucible",
|
|
64
65
|
Crusoe: "Crusoe",
|
|
65
66
|
Darkbloom: "Darkbloom",
|
|
@@ -131,6 +132,7 @@ export const ProviderResponseProviderName = {
|
|
|
131
132
|
WandB: "WandB",
|
|
132
133
|
Quiver: "Quiver",
|
|
133
134
|
Krea: "Krea",
|
|
135
|
+
Runway: "Runway",
|
|
134
136
|
Xiaomi: "Xiaomi",
|
|
135
137
|
XAI: "xAI",
|
|
136
138
|
ZAi: "Z.AI",
|
|
@@ -102,6 +102,9 @@ export type VideoGenerationRequestOptions = {
|
|
|
102
102
|
cohere?: {
|
|
103
103
|
[k: string]: any;
|
|
104
104
|
} | undefined;
|
|
105
|
+
coreweave?: {
|
|
106
|
+
[k: string]: any;
|
|
107
|
+
} | undefined;
|
|
105
108
|
crofai?: {
|
|
106
109
|
[k: string]: any;
|
|
107
110
|
} | undefined;
|
|
@@ -324,6 +327,9 @@ export type VideoGenerationRequestOptions = {
|
|
|
324
327
|
replicate?: {
|
|
325
328
|
[k: string]: any;
|
|
326
329
|
} | undefined;
|
|
330
|
+
runway?: {
|
|
331
|
+
[k: string]: any;
|
|
332
|
+
} | undefined;
|
|
327
333
|
sailResearch?: {
|
|
328
334
|
[k: string]: any;
|
|
329
335
|
} | undefined;
|
|
@@ -550,6 +556,9 @@ export type VideoGenerationRequestOptions$Outbound = {
|
|
|
550
556
|
cohere?: {
|
|
551
557
|
[k: string]: any;
|
|
552
558
|
} | undefined;
|
|
559
|
+
coreweave?: {
|
|
560
|
+
[k: string]: any;
|
|
561
|
+
} | undefined;
|
|
553
562
|
crofai?: {
|
|
554
563
|
[k: string]: any;
|
|
555
564
|
} | undefined;
|
|
@@ -772,6 +781,9 @@ export type VideoGenerationRequestOptions$Outbound = {
|
|
|
772
781
|
replicate?: {
|
|
773
782
|
[k: string]: any;
|
|
774
783
|
} | undefined;
|
|
784
|
+
runway?: {
|
|
785
|
+
[k: string]: any;
|
|
786
|
+
} | undefined;
|
|
775
787
|
"sail-research"?: {
|
|
776
788
|
[k: string]: any;
|
|
777
789
|
} | undefined;
|
|
@@ -62,6 +62,7 @@ export const VideoGenerationRequestOptions$outboundSchema = z.object({
|
|
|
62
62
|
clarifai: z.record(z.string(), z.any()).optional(),
|
|
63
63
|
cloudflare: z.record(z.string(), z.any()).optional(),
|
|
64
64
|
cohere: z.record(z.string(), z.any()).optional(),
|
|
65
|
+
coreweave: z.record(z.string(), z.any()).optional(),
|
|
65
66
|
crofai: z.record(z.string(), z.any()).optional(),
|
|
66
67
|
crucible: z.record(z.string(), z.any()).optional(),
|
|
67
68
|
crusoe: z.record(z.string(), z.any()).optional(),
|
|
@@ -136,6 +137,7 @@ export const VideoGenerationRequestOptions$outboundSchema = z.object({
|
|
|
136
137
|
reka: z.record(z.string(), z.any()).optional(),
|
|
137
138
|
relace: z.record(z.string(), z.any()).optional(),
|
|
138
139
|
replicate: z.record(z.string(), z.any()).optional(),
|
|
140
|
+
runway: z.record(z.string(), z.any()).optional(),
|
|
139
141
|
sailResearch: z.record(z.string(), z.any()).optional(),
|
|
140
142
|
sakana: z.record(z.string(), z.any()).optional(),
|
|
141
143
|
sambanova: 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.0.
|
|
3
|
+
"version": "1.0.6",
|
|
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": [
|
|
@@ -74,14 +74,14 @@
|
|
|
74
74
|
"build": "tsc",
|
|
75
75
|
"prepublishOnly": "npm run build",
|
|
76
76
|
"test": "vitest --run --project unit",
|
|
77
|
-
"test:
|
|
77
|
+
"test:e2e": "vitest --run --project e2e",
|
|
78
78
|
"test:watch": "vitest --watch --project unit",
|
|
79
79
|
"typecheck": "tsc --noEmit",
|
|
80
|
-
"prepare": "npm run build",
|
|
81
|
-
"test:e2e": "vitest --run --project e2e",
|
|
82
80
|
"typecheck:transit": "exit 0",
|
|
81
|
+
"test:transit": "exit 0",
|
|
83
82
|
"compile": "tsc",
|
|
84
|
-
"postinstall": "node scripts/check-types.js || true"
|
|
83
|
+
"postinstall": "node scripts/check-types.js || true",
|
|
84
|
+
"prepare": "npm run build"
|
|
85
85
|
},
|
|
86
86
|
"peerDependencies": {},
|
|
87
87
|
"devDependencies": {
|