@openrouter/sdk 1.5.13 → 1.5.14
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/imagegenerationproviderpreferences.d.ts +6 -0
- package/esm/models/imagegenerationproviderpreferences.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
|
@@ -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.5.
|
|
53
|
+
readonly sdkVersion: "1.5.14";
|
|
54
54
|
readonly genVersion: "2.948.4";
|
|
55
|
-
readonly userAgent: "speakeasy-sdk/typescript 1.5.
|
|
55
|
+
readonly userAgent: "speakeasy-sdk/typescript 1.5.14 2.948.4 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.5.
|
|
32
|
+
sdkVersion: "1.5.14",
|
|
33
33
|
genVersion: "2.948.4",
|
|
34
|
-
userAgent: "speakeasy-sdk/typescript 1.5.
|
|
34
|
+
userAgent: "speakeasy-sdk/typescript 1.5.14 2.948.4 1.0.0 @openrouter/sdk",
|
|
35
35
|
};
|
|
36
36
|
//# sourceMappingURL=config.js.map
|
|
@@ -323,6 +323,9 @@ export type ImageGenerationProviderPreferencesOptions = {
|
|
|
323
323
|
poolside?: {
|
|
324
324
|
[k: string]: any;
|
|
325
325
|
} | undefined;
|
|
326
|
+
primalabs?: {
|
|
327
|
+
[k: string]: any;
|
|
328
|
+
} | undefined;
|
|
326
329
|
primeintellect?: {
|
|
327
330
|
[k: string]: any;
|
|
328
331
|
} | undefined;
|
|
@@ -815,6 +818,9 @@ export type ImageGenerationProviderPreferencesOptions$Outbound = {
|
|
|
815
818
|
poolside?: {
|
|
816
819
|
[k: string]: any;
|
|
817
820
|
} | undefined;
|
|
821
|
+
primalabs?: {
|
|
822
|
+
[k: string]: any;
|
|
823
|
+
} | undefined;
|
|
818
824
|
primeintellect?: {
|
|
819
825
|
[k: string]: any;
|
|
820
826
|
} | undefined;
|
|
@@ -124,6 +124,7 @@ export const ImageGenerationProviderPreferencesOptions$outboundSchema = z.object
|
|
|
124
124
|
perplexity: z.record(z.string(), z.any()).optional(),
|
|
125
125
|
phala: z.record(z.string(), z.any()).optional(),
|
|
126
126
|
poolside: z.record(z.string(), z.any()).optional(),
|
|
127
|
+
primalabs: z.record(z.string(), z.any()).optional(),
|
|
127
128
|
primeintellect: z.record(z.string(), z.any()).optional(),
|
|
128
129
|
quiver: z.record(z.string(), z.any()).optional(),
|
|
129
130
|
recraft: z.record(z.string(), z.any()).optional(),
|
|
@@ -81,6 +81,7 @@ export declare const ProviderName: {
|
|
|
81
81
|
readonly Parasail: "Parasail";
|
|
82
82
|
readonly ParetoAlpha: "ParetoAlpha";
|
|
83
83
|
readonly Poolside: "Poolside";
|
|
84
|
+
readonly PrimaLabs: "PrimaLabs";
|
|
84
85
|
readonly PrimeIntellect: "PrimeIntellect";
|
|
85
86
|
readonly Perceptron: "Perceptron";
|
|
86
87
|
readonly Perplexity: "Perplexity";
|
|
@@ -318,6 +318,9 @@ export type ProviderOptions = {
|
|
|
318
318
|
poolside?: {
|
|
319
319
|
[k: string]: any;
|
|
320
320
|
} | undefined;
|
|
321
|
+
primalabs?: {
|
|
322
|
+
[k: string]: any;
|
|
323
|
+
} | undefined;
|
|
321
324
|
primeintellect?: {
|
|
322
325
|
[k: string]: any;
|
|
323
326
|
} | undefined;
|
|
@@ -765,6 +768,9 @@ export type ProviderOptions$Outbound = {
|
|
|
765
768
|
poolside?: {
|
|
766
769
|
[k: string]: any;
|
|
767
770
|
} | undefined;
|
|
771
|
+
primalabs?: {
|
|
772
|
+
[k: string]: any;
|
|
773
|
+
} | undefined;
|
|
768
774
|
primeintellect?: {
|
|
769
775
|
[k: string]: any;
|
|
770
776
|
} | undefined;
|
|
@@ -111,6 +111,7 @@ export const ProviderOptions$outboundSchema = z.object({
|
|
|
111
111
|
perplexity: z.record(z.string(), z.any()).optional(),
|
|
112
112
|
phala: z.record(z.string(), z.any()).optional(),
|
|
113
113
|
poolside: z.record(z.string(), z.any()).optional(),
|
|
114
|
+
primalabs: z.record(z.string(), z.any()).optional(),
|
|
114
115
|
primeintellect: z.record(z.string(), z.any()).optional(),
|
|
115
116
|
quiver: z.record(z.string(), z.any()).optional(),
|
|
116
117
|
recraft: z.record(z.string(), z.any()).optional(),
|
|
@@ -114,6 +114,7 @@ export declare const ProviderResponseProviderName: {
|
|
|
114
114
|
readonly Parasail: "Parasail";
|
|
115
115
|
readonly ParetoAlpha: "ParetoAlpha";
|
|
116
116
|
readonly Poolside: "Poolside";
|
|
117
|
+
readonly PrimaLabs: "PrimaLabs";
|
|
117
118
|
readonly PrimeIntellect: "PrimeIntellect";
|
|
118
119
|
readonly Perceptron: "Perceptron";
|
|
119
120
|
readonly Perplexity: "Perplexity";
|
|
@@ -118,6 +118,7 @@ export const ProviderResponseProviderName = {
|
|
|
118
118
|
Parasail: "Parasail",
|
|
119
119
|
ParetoAlpha: "ParetoAlpha",
|
|
120
120
|
Poolside: "Poolside",
|
|
121
|
+
PrimaLabs: "PrimaLabs",
|
|
121
122
|
PrimeIntellect: "PrimeIntellect",
|
|
122
123
|
Perceptron: "Perceptron",
|
|
123
124
|
Perplexity: "Perplexity",
|
|
@@ -340,6 +340,9 @@ export type VideoGenerationRequestOptions = {
|
|
|
340
340
|
poolside?: {
|
|
341
341
|
[k: string]: any;
|
|
342
342
|
} | undefined;
|
|
343
|
+
primalabs?: {
|
|
344
|
+
[k: string]: any;
|
|
345
|
+
} | undefined;
|
|
343
346
|
primeintellect?: {
|
|
344
347
|
[k: string]: any;
|
|
345
348
|
} | undefined;
|
|
@@ -883,6 +886,9 @@ export type VideoGenerationRequestOptions$Outbound = {
|
|
|
883
886
|
poolside?: {
|
|
884
887
|
[k: string]: any;
|
|
885
888
|
} | undefined;
|
|
889
|
+
primalabs?: {
|
|
890
|
+
[k: string]: any;
|
|
891
|
+
} | undefined;
|
|
886
892
|
primeintellect?: {
|
|
887
893
|
[k: string]: any;
|
|
888
894
|
} | undefined;
|
|
@@ -144,6 +144,7 @@ export const VideoGenerationRequestOptions$outboundSchema = z.object({
|
|
|
144
144
|
perplexity: z.record(z.string(), z.any()).optional(),
|
|
145
145
|
phala: z.record(z.string(), z.any()).optional(),
|
|
146
146
|
poolside: z.record(z.string(), z.any()).optional(),
|
|
147
|
+
primalabs: z.record(z.string(), z.any()).optional(),
|
|
147
148
|
primeintellect: z.record(z.string(), z.any()).optional(),
|
|
148
149
|
quiver: z.record(z.string(), z.any()).optional(),
|
|
149
150
|
recraft: 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.5.
|
|
3
|
+
"version": "1.5.14",
|
|
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 && node scripts/unbarrel-imports.js",
|
|
75
75
|
"prepublishOnly": "npm run build",
|
|
76
|
-
"postinstall": "node scripts/check-types.js || true",
|
|
77
76
|
"test:transit": "exit 0",
|
|
78
77
|
"test:watch": "vitest --watch --project unit",
|
|
79
78
|
"typecheck": "tsc --noEmit",
|
|
80
|
-
"compile": "tsc && node scripts/unbarrel-imports.js",
|
|
81
79
|
"prepare": "npm run build",
|
|
82
80
|
"test": "vitest --run --project unit",
|
|
83
|
-
"
|
|
84
|
-
"
|
|
81
|
+
"typecheck:transit": "exit 0",
|
|
82
|
+
"compile": "tsc && node scripts/unbarrel-imports.js",
|
|
83
|
+
"postinstall": "node scripts/check-types.js || true",
|
|
84
|
+
"test:e2e": "vitest --run --project e2e"
|
|
85
85
|
},
|
|
86
86
|
"peerDependencies": {
|
|
87
87
|
|