@openrouter/sdk 1.2.121 → 1.2.122
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.122";
|
|
54
54
|
readonly genVersion: "2.914.0";
|
|
55
|
-
readonly userAgent: "speakeasy-sdk/typescript 1.2.
|
|
55
|
+
readonly userAgent: "speakeasy-sdk/typescript 1.2.122 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.122",
|
|
33
33
|
genVersion: "2.914.0",
|
|
34
|
-
userAgent: "speakeasy-sdk/typescript 1.2.
|
|
34
|
+
userAgent: "speakeasy-sdk/typescript 1.2.122 2.914.0 1.0.0 @openrouter/sdk",
|
|
35
35
|
};
|
|
36
36
|
//# sourceMappingURL=config.js.map
|
|
@@ -15,6 +15,7 @@ export declare const BYOKProviderSlug: {
|
|
|
15
15
|
readonly Anthropic: "anthropic";
|
|
16
16
|
readonly Anthropic2: "anthropic/2";
|
|
17
17
|
readonly ArceeAi: "arcee-ai";
|
|
18
|
+
readonly Assemblyai: "assemblyai";
|
|
18
19
|
readonly AtlasCloud: "atlas-cloud";
|
|
19
20
|
readonly Avian: "avian";
|
|
20
21
|
readonly Azure: "azure";
|
|
@@ -47,6 +47,9 @@ export type ImageGenerationProviderPreferencesOptions = {
|
|
|
47
47
|
arceeAi?: {
|
|
48
48
|
[k: string]: any;
|
|
49
49
|
} | undefined;
|
|
50
|
+
assemblyai?: {
|
|
51
|
+
[k: string]: any;
|
|
52
|
+
} | undefined;
|
|
50
53
|
atlasCloud?: {
|
|
51
54
|
[k: string]: any;
|
|
52
55
|
} | undefined;
|
|
@@ -515,6 +518,9 @@ export type ImageGenerationProviderPreferencesOptions$Outbound = {
|
|
|
515
518
|
"arcee-ai"?: {
|
|
516
519
|
[k: string]: any;
|
|
517
520
|
} | undefined;
|
|
521
|
+
assemblyai?: {
|
|
522
|
+
[k: string]: any;
|
|
523
|
+
} | undefined;
|
|
518
524
|
"atlas-cloud"?: {
|
|
519
525
|
[k: string]: any;
|
|
520
526
|
} | undefined;
|
|
@@ -32,6 +32,7 @@ export const ImageGenerationProviderPreferencesOptions$outboundSchema = z.object
|
|
|
32
32
|
anthropic2: z.record(z.string(), z.any()).optional(),
|
|
33
33
|
anyscale: z.record(z.string(), z.any()).optional(),
|
|
34
34
|
arceeAi: z.record(z.string(), z.any()).optional(),
|
|
35
|
+
assemblyai: z.record(z.string(), z.any()).optional(),
|
|
35
36
|
atlasCloud: z.record(z.string(), z.any()).optional(),
|
|
36
37
|
atoma: z.record(z.string(), z.any()).optional(),
|
|
37
38
|
avian: z.record(z.string(), z.any()).optional(),
|
|
@@ -39,6 +39,7 @@ export declare const Provider: {
|
|
|
39
39
|
readonly Anthropic: "anthropic";
|
|
40
40
|
readonly Anthropic2: "anthropic/2";
|
|
41
41
|
readonly ArceeAi: "arcee-ai";
|
|
42
|
+
readonly Assemblyai: "assemblyai";
|
|
42
43
|
readonly AtlasCloud: "atlas-cloud";
|
|
43
44
|
readonly Avian: "avian";
|
|
44
45
|
readonly Azure: "azure";
|
|
@@ -12,6 +12,7 @@ export declare const ProviderName: {
|
|
|
12
12
|
readonly AmazonNova: "Amazon Nova";
|
|
13
13
|
readonly Anthropic: "Anthropic";
|
|
14
14
|
readonly ArceeAI: "Arcee AI";
|
|
15
|
+
readonly AssemblyAI: "AssemblyAI";
|
|
15
16
|
readonly AtlasCloud: "AtlasCloud";
|
|
16
17
|
readonly Avian: "Avian";
|
|
17
18
|
readonly Azure: "Azure";
|
|
@@ -42,6 +42,9 @@ export type ProviderOptions = {
|
|
|
42
42
|
arceeAi?: {
|
|
43
43
|
[k: string]: any;
|
|
44
44
|
} | undefined;
|
|
45
|
+
assemblyai?: {
|
|
46
|
+
[k: string]: any;
|
|
47
|
+
} | undefined;
|
|
45
48
|
atlasCloud?: {
|
|
46
49
|
[k: string]: any;
|
|
47
50
|
} | undefined;
|
|
@@ -465,6 +468,9 @@ export type ProviderOptions$Outbound = {
|
|
|
465
468
|
"arcee-ai"?: {
|
|
466
469
|
[k: string]: any;
|
|
467
470
|
} | undefined;
|
|
471
|
+
assemblyai?: {
|
|
472
|
+
[k: string]: any;
|
|
473
|
+
} | undefined;
|
|
468
474
|
"atlas-cloud"?: {
|
|
469
475
|
[k: string]: any;
|
|
470
476
|
} | undefined;
|
|
@@ -19,6 +19,7 @@ export const ProviderOptions$outboundSchema = z.object({
|
|
|
19
19
|
anthropic2: z.record(z.string(), z.any()).optional(),
|
|
20
20
|
anyscale: z.record(z.string(), z.any()).optional(),
|
|
21
21
|
arceeAi: z.record(z.string(), z.any()).optional(),
|
|
22
|
+
assemblyai: z.record(z.string(), z.any()).optional(),
|
|
22
23
|
atlasCloud: z.record(z.string(), z.any()).optional(),
|
|
23
24
|
atoma: z.record(z.string(), z.any()).optional(),
|
|
24
25
|
avian: z.record(z.string(), z.any()).optional(),
|
|
@@ -45,6 +45,7 @@ export declare const ProviderResponseProviderName: {
|
|
|
45
45
|
readonly AmazonNova: "Amazon Nova";
|
|
46
46
|
readonly Anthropic: "Anthropic";
|
|
47
47
|
readonly ArceeAI: "Arcee AI";
|
|
48
|
+
readonly AssemblyAI: "AssemblyAI";
|
|
48
49
|
readonly AtlasCloud: "AtlasCloud";
|
|
49
50
|
readonly Avian: "Avian";
|
|
50
51
|
readonly Azure: "Azure";
|
|
@@ -63,6 +63,9 @@ export type VideoGenerationRequestOptions = {
|
|
|
63
63
|
arceeAi?: {
|
|
64
64
|
[k: string]: any;
|
|
65
65
|
} | undefined;
|
|
66
|
+
assemblyai?: {
|
|
67
|
+
[k: string]: any;
|
|
68
|
+
} | undefined;
|
|
66
69
|
atlasCloud?: {
|
|
67
70
|
[k: string]: any;
|
|
68
71
|
} | undefined;
|
|
@@ -565,6 +568,9 @@ export type VideoGenerationRequestOptions$Outbound = {
|
|
|
565
568
|
"arcee-ai"?: {
|
|
566
569
|
[k: string]: any;
|
|
567
570
|
} | undefined;
|
|
571
|
+
assemblyai?: {
|
|
572
|
+
[k: string]: any;
|
|
573
|
+
} | undefined;
|
|
568
574
|
"atlas-cloud"?: {
|
|
569
575
|
[k: string]: any;
|
|
570
576
|
} | undefined;
|
|
@@ -50,6 +50,7 @@ export const VideoGenerationRequestOptions$outboundSchema = z.object({
|
|
|
50
50
|
anthropic2: z.record(z.string(), z.any()).optional(),
|
|
51
51
|
anyscale: z.record(z.string(), z.any()).optional(),
|
|
52
52
|
arceeAi: z.record(z.string(), z.any()).optional(),
|
|
53
|
+
assemblyai: z.record(z.string(), z.any()).optional(),
|
|
53
54
|
atlasCloud: z.record(z.string(), z.any()).optional(),
|
|
54
55
|
atoma: z.record(z.string(), z.any()).optional(),
|
|
55
56
|
avian: 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.122",
|
|
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,15 +73,15 @@
|
|
|
73
73
|
"lint": "eslint --cache --max-warnings=0 src",
|
|
74
74
|
"build": "tsc",
|
|
75
75
|
"prepublishOnly": "npm run build",
|
|
76
|
-
"typecheck:transit": "exit 0",
|
|
77
|
-
"postinstall": "node scripts/check-types.js || true",
|
|
78
|
-
"test:transit": "exit 0",
|
|
79
|
-
"test:watch": "vitest --watch --project unit",
|
|
80
|
-
"compile": "tsc",
|
|
81
76
|
"prepare": "npm run build",
|
|
82
77
|
"test": "vitest --run --project unit",
|
|
83
78
|
"test:e2e": "vitest --run --project e2e",
|
|
84
|
-
"
|
|
79
|
+
"test:transit": "exit 0",
|
|
80
|
+
"test:watch": "vitest --watch --project unit",
|
|
81
|
+
"typecheck": "tsc --noEmit",
|
|
82
|
+
"typecheck:transit": "exit 0",
|
|
83
|
+
"compile": "tsc",
|
|
84
|
+
"postinstall": "node scripts/check-types.js || true"
|
|
85
85
|
},
|
|
86
86
|
"peerDependencies": {},
|
|
87
87
|
"devDependencies": {
|