@openrouter/sdk 0.12.27 → 0.12.29
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/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 +4 -4
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: "0.12.
|
|
52
|
+
readonly sdkVersion: "0.12.29";
|
|
53
53
|
readonly genVersion: "2.879.1";
|
|
54
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.12.
|
|
54
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.12.29 2.879.1 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: "0.12.
|
|
29
|
+
sdkVersion: "0.12.29",
|
|
30
30
|
genVersion: "2.879.1",
|
|
31
|
-
userAgent: "speakeasy-sdk/typescript 0.12.
|
|
31
|
+
userAgent: "speakeasy-sdk/typescript 0.12.29 2.879.1 1.0.0 @openrouter/sdk",
|
|
32
32
|
};
|
|
33
33
|
//# sourceMappingURL=config.js.map
|
|
@@ -61,6 +61,7 @@ export declare const ProviderName: {
|
|
|
61
61
|
readonly OpenInference: "OpenInference";
|
|
62
62
|
readonly Parasail: "Parasail";
|
|
63
63
|
readonly Poolside: "Poolside";
|
|
64
|
+
readonly Perceptron: "Perceptron";
|
|
64
65
|
readonly Perplexity: "Perplexity";
|
|
65
66
|
readonly Phala: "Phala";
|
|
66
67
|
readonly Recraft: "Recraft";
|
|
@@ -243,6 +243,9 @@ export type ProviderOptions = {
|
|
|
243
243
|
parasail?: {
|
|
244
244
|
[k: string]: any | null;
|
|
245
245
|
} | undefined;
|
|
246
|
+
perceptron?: {
|
|
247
|
+
[k: string]: any | null;
|
|
248
|
+
} | undefined;
|
|
246
249
|
perplexity?: {
|
|
247
250
|
[k: string]: any | null;
|
|
248
251
|
} | undefined;
|
|
@@ -573,6 +576,9 @@ export type ProviderOptions$Outbound = {
|
|
|
573
576
|
parasail?: {
|
|
574
577
|
[k: string]: any | null;
|
|
575
578
|
} | undefined;
|
|
579
|
+
perceptron?: {
|
|
580
|
+
[k: string]: any | null;
|
|
581
|
+
} | undefined;
|
|
576
582
|
perplexity?: {
|
|
577
583
|
[k: string]: any | null;
|
|
578
584
|
} | undefined;
|
|
@@ -86,6 +86,7 @@ export const ProviderOptions$outboundSchema = z.object({
|
|
|
86
86
|
openInference: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
87
87
|
openai: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
88
88
|
parasail: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
89
|
+
perceptron: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
89
90
|
perplexity: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
90
91
|
phala: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
91
92
|
poolside: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
@@ -94,6 +94,7 @@ export declare const ProviderResponseProviderName: {
|
|
|
94
94
|
readonly OpenInference: "OpenInference";
|
|
95
95
|
readonly Parasail: "Parasail";
|
|
96
96
|
readonly Poolside: "Poolside";
|
|
97
|
+
readonly Perceptron: "Perceptron";
|
|
97
98
|
readonly Perplexity: "Perplexity";
|
|
98
99
|
readonly Phala: "Phala";
|
|
99
100
|
readonly Recraft: "Recraft";
|
|
@@ -262,6 +262,9 @@ export type Options = {
|
|
|
262
262
|
parasail?: {
|
|
263
263
|
[k: string]: any | null;
|
|
264
264
|
} | undefined;
|
|
265
|
+
perceptron?: {
|
|
266
|
+
[k: string]: any | null;
|
|
267
|
+
} | undefined;
|
|
265
268
|
perplexity?: {
|
|
266
269
|
[k: string]: any | null;
|
|
267
270
|
} | undefined;
|
|
@@ -659,6 +662,9 @@ export type Options$Outbound = {
|
|
|
659
662
|
parasail?: {
|
|
660
663
|
[k: string]: any | null;
|
|
661
664
|
} | undefined;
|
|
665
|
+
perceptron?: {
|
|
666
|
+
[k: string]: any | null;
|
|
667
|
+
} | undefined;
|
|
662
668
|
perplexity?: {
|
|
663
669
|
[k: string]: any | null;
|
|
664
670
|
} | undefined;
|
|
@@ -115,6 +115,7 @@ export const Options$outboundSchema = z
|
|
|
115
115
|
openInference: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
116
116
|
openai: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
117
117
|
parasail: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
118
|
+
perceptron: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
118
119
|
perplexity: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
119
120
|
phala: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
120
121
|
poolside: z.record(z.string(), z.nullable(z.any())).optional(),
|
package/jsr.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openrouter/sdk",
|
|
3
|
-
"version": "0.12.
|
|
3
|
+
"version": "0.12.29",
|
|
4
4
|
"author": "OpenRouter",
|
|
5
5
|
"description": "The OpenRouter TypeScript SDK is a type-safe toolkit for building AI applications with access to 300+ language models through a unified API.",
|
|
6
6
|
"keywords": [
|
|
@@ -70,12 +70,12 @@
|
|
|
70
70
|
"build": "tsc",
|
|
71
71
|
"prepublishOnly": "npm run build",
|
|
72
72
|
"compile": "tsc",
|
|
73
|
+
"postinstall": "node scripts/check-types.js || true",
|
|
73
74
|
"prepare": "npm run build",
|
|
74
|
-
"test": "vitest --run --project unit",
|
|
75
|
-
"test:e2e": "vitest --run --project e2e",
|
|
76
75
|
"test:transit": "exit 0",
|
|
77
|
-
"postinstall": "node scripts/check-types.js || true",
|
|
78
76
|
"test:watch": "vitest --watch --project unit",
|
|
77
|
+
"test": "vitest --run --project unit",
|
|
78
|
+
"test:e2e": "vitest --run --project e2e",
|
|
79
79
|
"typecheck": "tsc --noEmit",
|
|
80
80
|
"typecheck:transit": "exit 0"
|
|
81
81
|
},
|