@openrouter/sdk 1.2.0 → 1.2.1
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
|
@@ -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.1";
|
|
53
53
|
readonly genVersion: "2.914.0";
|
|
54
|
-
readonly userAgent: "speakeasy-sdk/typescript 1.2.
|
|
54
|
+
readonly userAgent: "speakeasy-sdk/typescript 1.2.1 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.1",
|
|
30
30
|
genVersion: "2.914.0",
|
|
31
|
-
userAgent: "speakeasy-sdk/typescript 1.2.
|
|
31
|
+
userAgent: "speakeasy-sdk/typescript 1.2.1 2.914.0 1.0.0 @openrouter/sdk",
|
|
32
32
|
};
|
|
33
33
|
//# sourceMappingURL=config.js.map
|
|
@@ -94,6 +94,7 @@ export declare const BYOKProviderSlug: {
|
|
|
94
94
|
readonly Switchpoint: "switchpoint";
|
|
95
95
|
readonly Tencent: "tencent";
|
|
96
96
|
readonly Tenstorrent: "tenstorrent";
|
|
97
|
+
readonly Thinkingmachines: "thinkingmachines";
|
|
97
98
|
readonly Together: "together";
|
|
98
99
|
readonly Upstage: "upstage";
|
|
99
100
|
readonly Venice: "venice";
|
|
@@ -365,6 +365,9 @@ export type ImageGenerationProviderPreferencesOptions = {
|
|
|
365
365
|
tenstorrent?: {
|
|
366
366
|
[k: string]: any;
|
|
367
367
|
} | undefined;
|
|
368
|
+
thinkingmachines?: {
|
|
369
|
+
[k: string]: any;
|
|
370
|
+
} | undefined;
|
|
368
371
|
together?: {
|
|
369
372
|
[k: string]: any;
|
|
370
373
|
} | undefined;
|
|
@@ -806,6 +809,9 @@ export type ImageGenerationProviderPreferencesOptions$Outbound = {
|
|
|
806
809
|
tenstorrent?: {
|
|
807
810
|
[k: string]: any;
|
|
808
811
|
} | undefined;
|
|
812
|
+
thinkingmachines?: {
|
|
813
|
+
[k: string]: any;
|
|
814
|
+
} | undefined;
|
|
809
815
|
together?: {
|
|
810
816
|
[k: string]: any;
|
|
811
817
|
} | undefined;
|
|
@@ -138,6 +138,7 @@ export const ImageGenerationProviderPreferencesOptions$outboundSchema = z.object
|
|
|
138
138
|
targon: z.record(z.string(), z.any()).optional(),
|
|
139
139
|
tencent: z.record(z.string(), z.any()).optional(),
|
|
140
140
|
tenstorrent: z.record(z.string(), z.any()).optional(),
|
|
141
|
+
thinkingmachines: z.record(z.string(), z.any()).optional(),
|
|
141
142
|
together: z.record(z.string(), z.any()).optional(),
|
|
142
143
|
togetherLite: z.record(z.string(), z.any()).optional(),
|
|
143
144
|
ubicloud: z.record(z.string(), z.any()).optional(),
|
|
@@ -118,6 +118,7 @@ export declare const Provider: {
|
|
|
118
118
|
readonly Switchpoint: "switchpoint";
|
|
119
119
|
readonly Tencent: "tencent";
|
|
120
120
|
readonly Tenstorrent: "tenstorrent";
|
|
121
|
+
readonly Thinkingmachines: "thinkingmachines";
|
|
121
122
|
readonly Together: "together";
|
|
122
123
|
readonly Upstage: "upstage";
|
|
123
124
|
readonly Venice: "venice";
|
|
@@ -91,6 +91,7 @@ export declare const ProviderName: {
|
|
|
91
91
|
readonly Switchpoint: "Switchpoint";
|
|
92
92
|
readonly Tencent: "Tencent";
|
|
93
93
|
readonly Tenstorrent: "Tenstorrent";
|
|
94
|
+
readonly ThinkingMachines: "Thinking Machines";
|
|
94
95
|
readonly Together: "Together";
|
|
95
96
|
readonly Upstage: "Upstage";
|
|
96
97
|
readonly Venice: "Venice";
|
|
@@ -360,6 +360,9 @@ export type ProviderOptions = {
|
|
|
360
360
|
tenstorrent?: {
|
|
361
361
|
[k: string]: any;
|
|
362
362
|
} | undefined;
|
|
363
|
+
thinkingmachines?: {
|
|
364
|
+
[k: string]: any;
|
|
365
|
+
} | undefined;
|
|
363
366
|
together?: {
|
|
364
367
|
[k: string]: any;
|
|
365
368
|
} | undefined;
|
|
@@ -756,6 +759,9 @@ export type ProviderOptions$Outbound = {
|
|
|
756
759
|
tenstorrent?: {
|
|
757
760
|
[k: string]: any;
|
|
758
761
|
} | undefined;
|
|
762
|
+
thinkingmachines?: {
|
|
763
|
+
[k: string]: any;
|
|
764
|
+
} | undefined;
|
|
759
765
|
together?: {
|
|
760
766
|
[k: string]: any;
|
|
761
767
|
} | undefined;
|
|
@@ -125,6 +125,7 @@ export const ProviderOptions$outboundSchema = z.object({
|
|
|
125
125
|
targon: z.record(z.string(), z.any()).optional(),
|
|
126
126
|
tencent: z.record(z.string(), z.any()).optional(),
|
|
127
127
|
tenstorrent: z.record(z.string(), z.any()).optional(),
|
|
128
|
+
thinkingmachines: z.record(z.string(), z.any()).optional(),
|
|
128
129
|
together: z.record(z.string(), z.any()).optional(),
|
|
129
130
|
togetherLite: z.record(z.string(), z.any()).optional(),
|
|
130
131
|
ubicloud: z.record(z.string(), z.any()).optional(),
|
|
@@ -123,6 +123,7 @@ export declare const ProviderResponseProviderName: {
|
|
|
123
123
|
readonly Switchpoint: "Switchpoint";
|
|
124
124
|
readonly Tencent: "Tencent";
|
|
125
125
|
readonly Tenstorrent: "Tenstorrent";
|
|
126
|
+
readonly ThinkingMachines: "Thinking Machines";
|
|
126
127
|
readonly Together: "Together";
|
|
127
128
|
readonly Upstage: "Upstage";
|
|
128
129
|
readonly Venice: "Venice";
|
|
@@ -381,6 +381,9 @@ export type VideoGenerationRequestOptions = {
|
|
|
381
381
|
tenstorrent?: {
|
|
382
382
|
[k: string]: any;
|
|
383
383
|
} | undefined;
|
|
384
|
+
thinkingmachines?: {
|
|
385
|
+
[k: string]: any;
|
|
386
|
+
} | undefined;
|
|
384
387
|
together?: {
|
|
385
388
|
[k: string]: any;
|
|
386
389
|
} | undefined;
|
|
@@ -848,6 +851,9 @@ export type VideoGenerationRequestOptions$Outbound = {
|
|
|
848
851
|
tenstorrent?: {
|
|
849
852
|
[k: string]: any;
|
|
850
853
|
} | undefined;
|
|
854
|
+
thinkingmachines?: {
|
|
855
|
+
[k: string]: any;
|
|
856
|
+
} | undefined;
|
|
851
857
|
together?: {
|
|
852
858
|
[k: string]: any;
|
|
853
859
|
} | undefined;
|
|
@@ -156,6 +156,7 @@ export const VideoGenerationRequestOptions$outboundSchema = z.object({
|
|
|
156
156
|
targon: z.record(z.string(), z.any()).optional(),
|
|
157
157
|
tencent: z.record(z.string(), z.any()).optional(),
|
|
158
158
|
tenstorrent: z.record(z.string(), z.any()).optional(),
|
|
159
|
+
thinkingmachines: z.record(z.string(), z.any()).optional(),
|
|
159
160
|
together: z.record(z.string(), z.any()).optional(),
|
|
160
161
|
togetherLite: z.record(z.string(), z.any()).optional(),
|
|
161
162
|
ubicloud: 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.1",
|
|
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
|
+
"compile": "tsc",
|
|
77
|
+
"postinstall": "node scripts/check-types.js || true",
|
|
76
78
|
"prepare": "npm run build",
|
|
77
79
|
"test": "vitest --run --project unit",
|
|
78
80
|
"test:transit": "exit 0",
|
|
79
|
-
"
|
|
81
|
+
"test:watch": "vitest --watch --project unit",
|
|
80
82
|
"typecheck:transit": "exit 0",
|
|
81
|
-
"compile": "tsc",
|
|
82
|
-
"postinstall": "node scripts/check-types.js || true",
|
|
83
83
|
"test:e2e": "vitest --run --project e2e",
|
|
84
|
-
"
|
|
84
|
+
"typecheck": "tsc --noEmit"
|
|
85
85
|
},
|
|
86
86
|
"peerDependencies": {},
|
|
87
87
|
"devDependencies": {
|