@openrouter/sdk 1.2.81 → 1.2.82
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 +7 -7
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.82";
|
|
54
54
|
readonly genVersion: "2.914.0";
|
|
55
|
-
readonly userAgent: "speakeasy-sdk/typescript 1.2.
|
|
55
|
+
readonly userAgent: "speakeasy-sdk/typescript 1.2.82 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.82",
|
|
33
33
|
genVersion: "2.914.0",
|
|
34
|
-
userAgent: "speakeasy-sdk/typescript 1.2.
|
|
34
|
+
userAgent: "speakeasy-sdk/typescript 1.2.82 2.914.0 1.0.0 @openrouter/sdk",
|
|
35
35
|
};
|
|
36
36
|
//# sourceMappingURL=config.js.map
|
|
@@ -27,6 +27,7 @@ export declare const BYOKProviderSlug: {
|
|
|
27
27
|
readonly Cloudflare: "cloudflare";
|
|
28
28
|
readonly Cohere: "cohere";
|
|
29
29
|
readonly Coreweave: "coreweave";
|
|
30
|
+
readonly Cosine: "cosine";
|
|
30
31
|
readonly Crusoe: "crusoe";
|
|
31
32
|
readonly Darkbloom: "darkbloom";
|
|
32
33
|
readonly Databricks: "databricks";
|
|
@@ -98,6 +98,9 @@ export type ImageGenerationProviderPreferencesOptions = {
|
|
|
98
98
|
coreweave?: {
|
|
99
99
|
[k: string]: any;
|
|
100
100
|
} | undefined;
|
|
101
|
+
cosine?: {
|
|
102
|
+
[k: string]: any;
|
|
103
|
+
} | undefined;
|
|
101
104
|
crofai?: {
|
|
102
105
|
[k: string]: any;
|
|
103
106
|
} | undefined;
|
|
@@ -557,6 +560,9 @@ export type ImageGenerationProviderPreferencesOptions$Outbound = {
|
|
|
557
560
|
coreweave?: {
|
|
558
561
|
[k: string]: any;
|
|
559
562
|
} | undefined;
|
|
563
|
+
cosine?: {
|
|
564
|
+
[k: string]: any;
|
|
565
|
+
} | undefined;
|
|
560
566
|
crofai?: {
|
|
561
567
|
[k: string]: any;
|
|
562
568
|
} | undefined;
|
|
@@ -49,6 +49,7 @@ export const ImageGenerationProviderPreferencesOptions$outboundSchema = z.object
|
|
|
49
49
|
cloudflare: z.record(z.string(), z.any()).optional(),
|
|
50
50
|
cohere: z.record(z.string(), z.any()).optional(),
|
|
51
51
|
coreweave: z.record(z.string(), z.any()).optional(),
|
|
52
|
+
cosine: z.record(z.string(), z.any()).optional(),
|
|
52
53
|
crofai: z.record(z.string(), z.any()).optional(),
|
|
53
54
|
crucible: z.record(z.string(), z.any()).optional(),
|
|
54
55
|
crusoe: z.record(z.string(), z.any()).optional(),
|
|
@@ -51,6 +51,7 @@ export declare const Provider: {
|
|
|
51
51
|
readonly Cloudflare: "cloudflare";
|
|
52
52
|
readonly Cohere: "cohere";
|
|
53
53
|
readonly Coreweave: "coreweave";
|
|
54
|
+
readonly Cosine: "cosine";
|
|
54
55
|
readonly Crusoe: "crusoe";
|
|
55
56
|
readonly Darkbloom: "darkbloom";
|
|
56
57
|
readonly Databricks: "databricks";
|
|
@@ -26,6 +26,7 @@ export declare const ProviderName: {
|
|
|
26
26
|
readonly Cloudflare: "Cloudflare";
|
|
27
27
|
readonly Cohere: "Cohere";
|
|
28
28
|
readonly CoreWeave: "CoreWeave";
|
|
29
|
+
readonly Cosine: "Cosine";
|
|
29
30
|
readonly Crucible: "Crucible";
|
|
30
31
|
readonly Crusoe: "Crusoe";
|
|
31
32
|
readonly Darkbloom: "Darkbloom";
|
|
@@ -93,6 +93,9 @@ export type ProviderOptions = {
|
|
|
93
93
|
coreweave?: {
|
|
94
94
|
[k: string]: any;
|
|
95
95
|
} | undefined;
|
|
96
|
+
cosine?: {
|
|
97
|
+
[k: string]: any;
|
|
98
|
+
} | undefined;
|
|
96
99
|
crofai?: {
|
|
97
100
|
[k: string]: any;
|
|
98
101
|
} | undefined;
|
|
@@ -507,6 +510,9 @@ export type ProviderOptions$Outbound = {
|
|
|
507
510
|
coreweave?: {
|
|
508
511
|
[k: string]: any;
|
|
509
512
|
} | undefined;
|
|
513
|
+
cosine?: {
|
|
514
|
+
[k: string]: any;
|
|
515
|
+
} | undefined;
|
|
510
516
|
crofai?: {
|
|
511
517
|
[k: string]: any;
|
|
512
518
|
} | undefined;
|
|
@@ -36,6 +36,7 @@ export const ProviderOptions$outboundSchema = z.object({
|
|
|
36
36
|
cloudflare: z.record(z.string(), z.any()).optional(),
|
|
37
37
|
cohere: z.record(z.string(), z.any()).optional(),
|
|
38
38
|
coreweave: z.record(z.string(), z.any()).optional(),
|
|
39
|
+
cosine: z.record(z.string(), z.any()).optional(),
|
|
39
40
|
crofai: z.record(z.string(), z.any()).optional(),
|
|
40
41
|
crucible: z.record(z.string(), z.any()).optional(),
|
|
41
42
|
crusoe: z.record(z.string(), z.any()).optional(),
|
|
@@ -58,6 +58,7 @@ export declare const ProviderResponseProviderName: {
|
|
|
58
58
|
readonly Cloudflare: "Cloudflare";
|
|
59
59
|
readonly Cohere: "Cohere";
|
|
60
60
|
readonly CoreWeave: "CoreWeave";
|
|
61
|
+
readonly Cosine: "Cosine";
|
|
61
62
|
readonly Crucible: "Crucible";
|
|
62
63
|
readonly Crusoe: "Crusoe";
|
|
63
64
|
readonly Darkbloom: "Darkbloom";
|
|
@@ -114,6 +114,9 @@ export type VideoGenerationRequestOptions = {
|
|
|
114
114
|
coreweave?: {
|
|
115
115
|
[k: string]: any;
|
|
116
116
|
} | undefined;
|
|
117
|
+
cosine?: {
|
|
118
|
+
[k: string]: any;
|
|
119
|
+
} | undefined;
|
|
117
120
|
crofai?: {
|
|
118
121
|
[k: string]: any;
|
|
119
122
|
} | undefined;
|
|
@@ -607,6 +610,9 @@ export type VideoGenerationRequestOptions$Outbound = {
|
|
|
607
610
|
coreweave?: {
|
|
608
611
|
[k: string]: any;
|
|
609
612
|
} | undefined;
|
|
613
|
+
cosine?: {
|
|
614
|
+
[k: string]: any;
|
|
615
|
+
} | undefined;
|
|
610
616
|
crofai?: {
|
|
611
617
|
[k: string]: any;
|
|
612
618
|
} | undefined;
|
|
@@ -67,6 +67,7 @@ export const VideoGenerationRequestOptions$outboundSchema = z.object({
|
|
|
67
67
|
cloudflare: z.record(z.string(), z.any()).optional(),
|
|
68
68
|
cohere: z.record(z.string(), z.any()).optional(),
|
|
69
69
|
coreweave: z.record(z.string(), z.any()).optional(),
|
|
70
|
+
cosine: z.record(z.string(), z.any()).optional(),
|
|
70
71
|
crofai: z.record(z.string(), z.any()).optional(),
|
|
71
72
|
crucible: z.record(z.string(), z.any()).optional(),
|
|
72
73
|
crusoe: 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.82",
|
|
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": [
|
|
@@ -21,8 +21,8 @@
|
|
|
21
21
|
"license": "Apache-2.0",
|
|
22
22
|
"packageManager": "pnpm@10.22.0",
|
|
23
23
|
"publishConfig": {
|
|
24
|
-
"
|
|
25
|
-
"
|
|
24
|
+
"access": "public",
|
|
25
|
+
"provenance": true
|
|
26
26
|
},
|
|
27
27
|
"type": "module",
|
|
28
28
|
"main": "./esm/index.js",
|
|
@@ -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
|
+
"postinstall": "node scripts/check-types.js || true",
|
|
77
|
+
"typecheck": "tsc --noEmit",
|
|
77
78
|
"typecheck:transit": "exit 0",
|
|
78
79
|
"prepare": "npm run build",
|
|
79
80
|
"test": "vitest --run --project unit",
|
|
80
81
|
"test:e2e": "vitest --run --project e2e",
|
|
82
|
+
"test:transit": "exit 0",
|
|
81
83
|
"test:watch": "vitest --watch --project unit",
|
|
82
|
-
"
|
|
83
|
-
"compile": "tsc",
|
|
84
|
-
"postinstall": "node scripts/check-types.js || true"
|
|
84
|
+
"compile": "tsc"
|
|
85
85
|
},
|
|
86
86
|
"peerDependencies": {},
|
|
87
87
|
"devDependencies": {
|