@openrouter/sdk 1.2.26 → 1.2.27
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 +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.2.
|
|
52
|
+
readonly sdkVersion: "1.2.27";
|
|
53
53
|
readonly genVersion: "2.914.0";
|
|
54
|
-
readonly userAgent: "speakeasy-sdk/typescript 1.2.
|
|
54
|
+
readonly userAgent: "speakeasy-sdk/typescript 1.2.27 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.2.
|
|
29
|
+
sdkVersion: "1.2.27",
|
|
30
30
|
genVersion: "2.914.0",
|
|
31
|
-
userAgent: "speakeasy-sdk/typescript 1.2.
|
|
31
|
+
userAgent: "speakeasy-sdk/typescript 1.2.27 2.914.0 1.0.0 @openrouter/sdk",
|
|
32
32
|
};
|
|
33
33
|
//# sourceMappingURL=config.js.map
|
|
@@ -29,6 +29,7 @@ export declare const BYOKProviderSlug: {
|
|
|
29
29
|
readonly Coreweave: "coreweave";
|
|
30
30
|
readonly Crusoe: "crusoe";
|
|
31
31
|
readonly Darkbloom: "darkbloom";
|
|
32
|
+
readonly Databricks: "databricks";
|
|
32
33
|
readonly Decart: "decart";
|
|
33
34
|
readonly Deepgram: "deepgram";
|
|
34
35
|
readonly Deepinfra: "deepinfra";
|
|
@@ -104,6 +104,9 @@ export type ImageGenerationProviderPreferencesOptions = {
|
|
|
104
104
|
darkbloom?: {
|
|
105
105
|
[k: string]: any;
|
|
106
106
|
} | undefined;
|
|
107
|
+
databricks?: {
|
|
108
|
+
[k: string]: any;
|
|
109
|
+
} | undefined;
|
|
107
110
|
decart?: {
|
|
108
111
|
[k: string]: any;
|
|
109
112
|
} | undefined;
|
|
@@ -548,6 +551,9 @@ export type ImageGenerationProviderPreferencesOptions$Outbound = {
|
|
|
548
551
|
darkbloom?: {
|
|
549
552
|
[k: string]: any;
|
|
550
553
|
} | undefined;
|
|
554
|
+
databricks?: {
|
|
555
|
+
[k: string]: any;
|
|
556
|
+
} | undefined;
|
|
551
557
|
decart?: {
|
|
552
558
|
[k: string]: any;
|
|
553
559
|
} | undefined;
|
|
@@ -51,6 +51,7 @@ export const ImageGenerationProviderPreferencesOptions$outboundSchema = z.object
|
|
|
51
51
|
crucible: z.record(z.string(), z.any()).optional(),
|
|
52
52
|
crusoe: z.record(z.string(), z.any()).optional(),
|
|
53
53
|
darkbloom: z.record(z.string(), z.any()).optional(),
|
|
54
|
+
databricks: z.record(z.string(), z.any()).optional(),
|
|
54
55
|
decart: z.record(z.string(), z.any()).optional(),
|
|
55
56
|
deepgram: z.record(z.string(), z.any()).optional(),
|
|
56
57
|
deepinfra: z.record(z.string(), z.any()).optional(),
|
|
@@ -53,6 +53,7 @@ export declare const Provider: {
|
|
|
53
53
|
readonly Coreweave: "coreweave";
|
|
54
54
|
readonly Crusoe: "crusoe";
|
|
55
55
|
readonly Darkbloom: "darkbloom";
|
|
56
|
+
readonly Databricks: "databricks";
|
|
56
57
|
readonly Decart: "decart";
|
|
57
58
|
readonly Deepgram: "deepgram";
|
|
58
59
|
readonly Deepinfra: "deepinfra";
|
|
@@ -29,6 +29,7 @@ export declare const ProviderName: {
|
|
|
29
29
|
readonly Crucible: "Crucible";
|
|
30
30
|
readonly Crusoe: "Crusoe";
|
|
31
31
|
readonly Darkbloom: "Darkbloom";
|
|
32
|
+
readonly Databricks: "Databricks";
|
|
32
33
|
readonly Decart: "Decart";
|
|
33
34
|
readonly Deepgram: "Deepgram";
|
|
34
35
|
readonly DeepInfra: "DeepInfra";
|
|
@@ -99,6 +99,9 @@ export type ProviderOptions = {
|
|
|
99
99
|
darkbloom?: {
|
|
100
100
|
[k: string]: any;
|
|
101
101
|
} | undefined;
|
|
102
|
+
databricks?: {
|
|
103
|
+
[k: string]: any;
|
|
104
|
+
} | undefined;
|
|
102
105
|
decart?: {
|
|
103
106
|
[k: string]: any;
|
|
104
107
|
} | undefined;
|
|
@@ -498,6 +501,9 @@ export type ProviderOptions$Outbound = {
|
|
|
498
501
|
darkbloom?: {
|
|
499
502
|
[k: string]: any;
|
|
500
503
|
} | undefined;
|
|
504
|
+
databricks?: {
|
|
505
|
+
[k: string]: any;
|
|
506
|
+
} | undefined;
|
|
501
507
|
decart?: {
|
|
502
508
|
[k: string]: any;
|
|
503
509
|
} | undefined;
|
|
@@ -38,6 +38,7 @@ export const ProviderOptions$outboundSchema = z.object({
|
|
|
38
38
|
crucible: z.record(z.string(), z.any()).optional(),
|
|
39
39
|
crusoe: z.record(z.string(), z.any()).optional(),
|
|
40
40
|
darkbloom: z.record(z.string(), z.any()).optional(),
|
|
41
|
+
databricks: z.record(z.string(), z.any()).optional(),
|
|
41
42
|
decart: z.record(z.string(), z.any()).optional(),
|
|
42
43
|
deepgram: z.record(z.string(), z.any()).optional(),
|
|
43
44
|
deepinfra: z.record(z.string(), z.any()).optional(),
|
|
@@ -61,6 +61,7 @@ export declare const ProviderResponseProviderName: {
|
|
|
61
61
|
readonly Crucible: "Crucible";
|
|
62
62
|
readonly Crusoe: "Crusoe";
|
|
63
63
|
readonly Darkbloom: "Darkbloom";
|
|
64
|
+
readonly Databricks: "Databricks";
|
|
64
65
|
readonly Decart: "Decart";
|
|
65
66
|
readonly Deepgram: "Deepgram";
|
|
66
67
|
readonly DeepInfra: "DeepInfra";
|
|
@@ -120,6 +120,9 @@ export type VideoGenerationRequestOptions = {
|
|
|
120
120
|
darkbloom?: {
|
|
121
121
|
[k: string]: any;
|
|
122
122
|
} | undefined;
|
|
123
|
+
databricks?: {
|
|
124
|
+
[k: string]: any;
|
|
125
|
+
} | undefined;
|
|
123
126
|
decart?: {
|
|
124
127
|
[k: string]: any;
|
|
125
128
|
} | undefined;
|
|
@@ -590,6 +593,9 @@ export type VideoGenerationRequestOptions$Outbound = {
|
|
|
590
593
|
darkbloom?: {
|
|
591
594
|
[k: string]: any;
|
|
592
595
|
} | undefined;
|
|
596
|
+
databricks?: {
|
|
597
|
+
[k: string]: any;
|
|
598
|
+
} | undefined;
|
|
593
599
|
decart?: {
|
|
594
600
|
[k: string]: any;
|
|
595
601
|
} | undefined;
|
|
@@ -69,6 +69,7 @@ export const VideoGenerationRequestOptions$outboundSchema = z.object({
|
|
|
69
69
|
crucible: z.record(z.string(), z.any()).optional(),
|
|
70
70
|
crusoe: z.record(z.string(), z.any()).optional(),
|
|
71
71
|
darkbloom: z.record(z.string(), z.any()).optional(),
|
|
72
|
+
databricks: z.record(z.string(), z.any()).optional(),
|
|
72
73
|
decart: z.record(z.string(), z.any()).optional(),
|
|
73
74
|
deepgram: z.record(z.string(), z.any()).optional(),
|
|
74
75
|
deepinfra: 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.27",
|
|
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
|
-
"compile": "tsc",
|
|
77
|
-
"prepare": "npm run build",
|
|
78
|
-
"test:watch": "vitest --watch --project unit",
|
|
79
76
|
"postinstall": "node scripts/check-types.js || true",
|
|
77
|
+
"prepare": "npm run build",
|
|
80
78
|
"test": "vitest --run --project unit",
|
|
81
79
|
"test:e2e": "vitest --run --project e2e",
|
|
82
|
-
"test:
|
|
80
|
+
"test:watch": "vitest --watch --project unit",
|
|
83
81
|
"typecheck": "tsc --noEmit",
|
|
82
|
+
"compile": "tsc",
|
|
83
|
+
"test:transit": "exit 0",
|
|
84
84
|
"typecheck:transit": "exit 0"
|
|
85
85
|
},
|
|
86
86
|
"peerDependencies": {},
|