@openrouter/sdk 0.13.56 → 0.13.58

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.
@@ -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.13.56";
52
+ readonly sdkVersion: "0.13.58";
53
53
  readonly genVersion: "2.884.4";
54
- readonly userAgent: "speakeasy-sdk/typescript 0.13.56 2.884.4 1.0.0 @openrouter/sdk";
54
+ readonly userAgent: "speakeasy-sdk/typescript 0.13.58 2.884.4 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.13.56",
29
+ sdkVersion: "0.13.58",
30
30
  genVersion: "2.884.4",
31
- userAgent: "speakeasy-sdk/typescript 0.13.56 2.884.4 1.0.0 @openrouter/sdk",
31
+ userAgent: "speakeasy-sdk/typescript 0.13.58 2.884.4 1.0.0 @openrouter/sdk",
32
32
  };
33
33
  //# sourceMappingURL=config.js.map
@@ -50,6 +50,7 @@ export declare const BYOKProviderSlug: {
50
50
  readonly Inflection: "inflection";
51
51
  readonly IoNet: "io-net";
52
52
  readonly Ionstream: "ionstream";
53
+ readonly Krea: "krea";
53
54
  readonly Liquid: "liquid";
54
55
  readonly Mancer: "mancer";
55
56
  readonly Mara: "mara";
@@ -53,6 +53,7 @@ export const BYOKProviderSlug = {
53
53
  Inflection: "inflection",
54
54
  IoNet: "io-net",
55
55
  Ionstream: "ionstream",
56
+ Krea: "krea",
56
57
  Liquid: "liquid",
57
58
  Mancer: "mancer",
58
59
  Mara: "mara",
@@ -188,6 +188,9 @@ export type ImageGenerationProviderPreferencesOptions = {
188
188
  klusterai?: {
189
189
  [k: string]: any | null;
190
190
  } | undefined;
191
+ krea?: {
192
+ [k: string]: any | null;
193
+ } | undefined;
191
194
  lambda?: {
192
195
  [k: string]: any | null;
193
196
  } | undefined;
@@ -602,6 +605,9 @@ export type ImageGenerationProviderPreferencesOptions$Outbound = {
602
605
  klusterai?: {
603
606
  [k: string]: any | null;
604
607
  } | undefined;
608
+ krea?: {
609
+ [k: string]: any | null;
610
+ } | undefined;
605
611
  lambda?: {
606
612
  [k: string]: any | null;
607
613
  } | undefined;
@@ -79,6 +79,7 @@ export const ImageGenerationProviderPreferencesOptions$outboundSchema = z.object
79
79
  ioNet: z.record(z.string(), z.nullable(z.any())).optional(),
80
80
  ionstream: z.record(z.string(), z.nullable(z.any())).optional(),
81
81
  klusterai: z.record(z.string(), z.nullable(z.any())).optional(),
82
+ krea: z.record(z.string(), z.nullable(z.any())).optional(),
82
83
  lambda: z.record(z.string(), z.nullable(z.any())).optional(),
83
84
  lepton: z.record(z.string(), z.nullable(z.any())).optional(),
84
85
  liquid: z.record(z.string(), z.nullable(z.any())).optional(),
@@ -74,6 +74,7 @@ export declare const Provider: {
74
74
  readonly Inflection: "inflection";
75
75
  readonly IoNet: "io-net";
76
76
  readonly Ionstream: "ionstream";
77
+ readonly Krea: "krea";
77
78
  readonly Liquid: "liquid";
78
79
  readonly Mancer: "mancer";
79
80
  readonly Mara: "mara";
@@ -57,6 +57,7 @@ export const Provider = {
57
57
  Inflection: "inflection",
58
58
  IoNet: "io-net",
59
59
  Ionstream: "ionstream",
60
+ Krea: "krea",
60
61
  Liquid: "liquid",
61
62
  Mancer: "mancer",
62
63
  Mara: "mara",
@@ -91,6 +91,7 @@ export declare const ProviderName: {
91
91
  readonly Wafer: "Wafer";
92
92
  readonly WandB: "WandB";
93
93
  readonly Quiver: "Quiver";
94
+ readonly Krea: "Krea";
94
95
  readonly Xiaomi: "Xiaomi";
95
96
  readonly XAI: "xAI";
96
97
  readonly ZAi: "Z.AI";
@@ -94,6 +94,7 @@ export const ProviderName = {
94
94
  Wafer: "Wafer",
95
95
  WandB: "WandB",
96
96
  Quiver: "Quiver",
97
+ Krea: "Krea",
97
98
  Xiaomi: "Xiaomi",
98
99
  XAI: "xAI",
99
100
  ZAi: "Z.AI",
@@ -183,6 +183,9 @@ export type ProviderOptions = {
183
183
  klusterai?: {
184
184
  [k: string]: any | null;
185
185
  } | undefined;
186
+ krea?: {
187
+ [k: string]: any | null;
188
+ } | undefined;
186
189
  lambda?: {
187
190
  [k: string]: any | null;
188
191
  } | undefined;
@@ -552,6 +555,9 @@ export type ProviderOptions$Outbound = {
552
555
  klusterai?: {
553
556
  [k: string]: any | null;
554
557
  } | undefined;
558
+ krea?: {
559
+ [k: string]: any | null;
560
+ } | undefined;
555
561
  lambda?: {
556
562
  [k: string]: any | null;
557
563
  } | undefined;
@@ -66,6 +66,7 @@ export const ProviderOptions$outboundSchema = z.object({
66
66
  ioNet: z.record(z.string(), z.nullable(z.any())).optional(),
67
67
  ionstream: z.record(z.string(), z.nullable(z.any())).optional(),
68
68
  klusterai: z.record(z.string(), z.nullable(z.any())).optional(),
69
+ krea: z.record(z.string(), z.nullable(z.any())).optional(),
69
70
  lambda: z.record(z.string(), z.nullable(z.any())).optional(),
70
71
  lepton: z.record(z.string(), z.nullable(z.any())).optional(),
71
72
  liquid: z.record(z.string(), z.nullable(z.any())).optional(),
@@ -124,6 +124,7 @@ export declare const ProviderResponseProviderName: {
124
124
  readonly Wafer: "Wafer";
125
125
  readonly WandB: "WandB";
126
126
  readonly Quiver: "Quiver";
127
+ readonly Krea: "Krea";
127
128
  readonly Xiaomi: "Xiaomi";
128
129
  readonly XAI: "xAI";
129
130
  readonly ZAi: "Z.AI";
@@ -128,6 +128,7 @@ export const ProviderResponseProviderName = {
128
128
  Wafer: "Wafer",
129
129
  WandB: "WandB",
130
130
  Quiver: "Quiver",
131
+ Krea: "Krea",
131
132
  Xiaomi: "Xiaomi",
132
133
  XAI: "xAI",
133
134
  ZAi: "Z.AI",
@@ -5,6 +5,7 @@ export declare const ReasoningFormat: {
5
5
  readonly OpenaiResponsesV1: "openai-responses-v1";
6
6
  readonly AzureOpenaiResponsesV1: "azure-openai-responses-v1";
7
7
  readonly XaiResponsesV1: "xai-responses-v1";
8
+ readonly MetaResponsesV1: "meta-responses-v1";
8
9
  readonly AnthropicClaudeV1: "anthropic-claude-v1";
9
10
  readonly GoogleGeminiV1: "google-gemini-v1";
10
11
  };
@@ -8,6 +8,7 @@ export const ReasoningFormat = {
8
8
  OpenaiResponsesV1: "openai-responses-v1",
9
9
  AzureOpenaiResponsesV1: "azure-openai-responses-v1",
10
10
  XaiResponsesV1: "xai-responses-v1",
11
+ MetaResponsesV1: "meta-responses-v1",
11
12
  AnthropicClaudeV1: "anthropic-claude-v1",
12
13
  GoogleGeminiV1: "google-gemini-v1",
13
14
  };
@@ -204,6 +204,9 @@ export type VideoGenerationRequestOptions = {
204
204
  klusterai?: {
205
205
  [k: string]: any | null;
206
206
  } | undefined;
207
+ krea?: {
208
+ [k: string]: any | null;
209
+ } | undefined;
207
210
  lambda?: {
208
211
  [k: string]: any | null;
209
212
  } | undefined;
@@ -640,6 +643,9 @@ export type VideoGenerationRequestOptions$Outbound = {
640
643
  klusterai?: {
641
644
  [k: string]: any | null;
642
645
  } | undefined;
646
+ krea?: {
647
+ [k: string]: any | null;
648
+ } | undefined;
643
649
  lambda?: {
644
650
  [k: string]: any | null;
645
651
  } | undefined;
@@ -96,6 +96,7 @@ export const VideoGenerationRequestOptions$outboundSchema = z.object({
96
96
  ioNet: z.record(z.string(), z.nullable(z.any())).optional(),
97
97
  ionstream: z.record(z.string(), z.nullable(z.any())).optional(),
98
98
  klusterai: z.record(z.string(), z.nullable(z.any())).optional(),
99
+ krea: z.record(z.string(), z.nullable(z.any())).optional(),
99
100
  lambda: z.record(z.string(), z.nullable(z.any())).optional(),
100
101
  lepton: z.record(z.string(), z.nullable(z.any())).optional(),
101
102
  liquid: z.record(z.string(), z.nullable(z.any())).optional(),
package/jsr.json CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  {
4
4
  "name": "@openrouter/sdk",
5
- "version": "0.13.56",
5
+ "version": "0.13.58",
6
6
  "exports": {
7
7
  ".": "./src/index.ts",
8
8
  "./models/errors": "./src/models/errors/index.ts",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openrouter/sdk",
3
- "version": "0.13.56",
3
+ "version": "0.13.58",
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
- "test": "vitest --run --project unit",
77
- "test:e2e": "vitest --run --project e2e",
78
- "test:transit": "exit 0",
79
- "test:watch": "vitest --watch --project unit",
80
- "typecheck:transit": "exit 0",
81
76
  "compile": "tsc",
82
77
  "postinstall": "node scripts/check-types.js || true",
83
78
  "prepare": "npm run build",
84
- "typecheck": "tsc --noEmit"
79
+ "test:e2e": "vitest --run --project e2e",
80
+ "test:watch": "vitest --watch --project unit",
81
+ "typecheck": "tsc --noEmit",
82
+ "typecheck:transit": "exit 0",
83
+ "test": "vitest --run --project unit",
84
+ "test:transit": "exit 0"
85
85
  },
86
86
  "peerDependencies": {},
87
87
  "devDependencies": {