@openrouter/sdk 1.4.2 → 1.4.4

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.
@@ -94,7 +94,7 @@ async function $do(client, request, options) {
94
94
  const responseFields = {
95
95
  HttpMeta: { Response: response, Request: req },
96
96
  };
97
- const [result] = await M.match(M.json(200, models_BatchObject$inboundSchema), M.jsonErr(402, errors_BatchPaymentRequiredResponseError$inboundSchema), M.jsonErr([401, 404, 429], errors_BatchErrorResponse$inboundSchema), M.jsonErr([500, 502], errors_BatchErrorResponse$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
97
+ const [result] = await M.match(M.json(200, models_BatchObject$inboundSchema), M.jsonErr(402, errors_BatchPaymentRequiredResponseError$inboundSchema), M.jsonErr([401, 404, 410, 429], errors_BatchErrorResponse$inboundSchema), M.jsonErr([500, 502], errors_BatchErrorResponse$inboundSchema), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
98
98
  if (!result.ok) {
99
99
  return [result, { status: "complete", request: req, response }];
100
100
  }
@@ -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.4.2";
53
+ readonly sdkVersion: "1.4.4";
54
54
  readonly genVersion: "2.914.0";
55
- readonly userAgent: "speakeasy-sdk/typescript 1.4.2 2.914.0 1.0.0 @openrouter/sdk";
55
+ readonly userAgent: "speakeasy-sdk/typescript 1.4.4 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.4.2",
32
+ sdkVersion: "1.4.4",
33
33
  genVersion: "2.914.0",
34
- userAgent: "speakeasy-sdk/typescript 1.4.2 2.914.0 1.0.0 @openrouter/sdk",
34
+ userAgent: "speakeasy-sdk/typescript 1.4.4 2.914.0 1.0.0 @openrouter/sdk",
35
35
  };
36
36
  //# sourceMappingURL=config.js.map
@@ -18,6 +18,7 @@ import { ContextCompressionPlugin, ContextCompressionPlugin$Outbound } from "./c
18
18
  import { FileParserPlugin, FileParserPlugin$Outbound } from "./fileparserplugin.js";
19
19
  import { FusionPlugin, FusionPlugin$Outbound } from "./fusionplugin.js";
20
20
  import { ImageConfig, ImageConfig$Outbound } from "./imageconfig.js";
21
+ import { JevRouterPlugin, JevRouterPlugin$Outbound } from "./jevrouterplugin.js";
21
22
  import { ModerationPlugin, ModerationPlugin$Outbound } from "./moderationplugin.js";
22
23
  import { ParetoRouterPlugin, ParetoRouterPlugin$Outbound } from "./paretorouterplugin.js";
23
24
  import { Prediction, Prediction$Outbound } from "./prediction.js";
@@ -35,7 +36,7 @@ export declare const Modality: {
35
36
  readonly Audio: "audio";
36
37
  };
37
38
  export type Modality = OpenEnum<typeof Modality>;
38
- export type ChatRequestPlugin = AutoBetaRouterPlugin | AutoRouterPlugin | ContextCompressionPlugin | FileParserPlugin | FusionPlugin | ModerationPlugin | ParetoRouterPlugin | ResponseHealingPlugin | SwitchyardRouterPlugin | WebSearchPlugin | WebFetchPlugin;
39
+ export type ChatRequestPlugin = AutoBetaRouterPlugin | AutoRouterPlugin | ContextCompressionPlugin | FileParserPlugin | FusionPlugin | JevRouterPlugin | ModerationPlugin | ParetoRouterPlugin | ResponseHealingPlugin | SwitchyardRouterPlugin | WebSearchPlugin | WebFetchPlugin;
39
40
  /**
40
41
  * Constrains effort on reasoning for reasoning models
41
42
  */
@@ -174,7 +175,7 @@ export type ChatRequest = {
174
175
  /**
175
176
  * Plugins you want to enable for this request, including their settings.
176
177
  */
177
- plugins?: Array<AutoBetaRouterPlugin | AutoRouterPlugin | ContextCompressionPlugin | FileParserPlugin | FusionPlugin | ModerationPlugin | ParetoRouterPlugin | ResponseHealingPlugin | SwitchyardRouterPlugin | WebSearchPlugin | WebFetchPlugin> | undefined;
178
+ plugins?: Array<AutoBetaRouterPlugin | AutoRouterPlugin | ContextCompressionPlugin | FileParserPlugin | FusionPlugin | JevRouterPlugin | ModerationPlugin | ParetoRouterPlugin | ResponseHealingPlugin | SwitchyardRouterPlugin | WebSearchPlugin | WebFetchPlugin> | undefined;
178
179
  /**
179
180
  * Static predicted output content. Supported models can use this to reduce latency when much of the response is known in advance.
180
181
  */
@@ -276,7 +277,7 @@ export type ChatRequest = {
276
277
  /** @internal */
277
278
  export declare const Modality$outboundSchema: z.ZodType<string, Modality>;
278
279
  /** @internal */
279
- export type ChatRequestPlugin$Outbound = AutoBetaRouterPlugin$Outbound | AutoRouterPlugin$Outbound | ContextCompressionPlugin$Outbound | FileParserPlugin$Outbound | FusionPlugin$Outbound | ModerationPlugin$Outbound | ParetoRouterPlugin$Outbound | ResponseHealingPlugin$Outbound | SwitchyardRouterPlugin$Outbound | WebSearchPlugin$Outbound | WebFetchPlugin$Outbound;
280
+ export type ChatRequestPlugin$Outbound = AutoBetaRouterPlugin$Outbound | AutoRouterPlugin$Outbound | ContextCompressionPlugin$Outbound | FileParserPlugin$Outbound | FusionPlugin$Outbound | JevRouterPlugin$Outbound | ModerationPlugin$Outbound | ParetoRouterPlugin$Outbound | ResponseHealingPlugin$Outbound | SwitchyardRouterPlugin$Outbound | WebSearchPlugin$Outbound | WebFetchPlugin$Outbound;
280
281
  /** @internal */
281
282
  export declare const ChatRequestPlugin$outboundSchema: z.ZodType<ChatRequestPlugin$Outbound, ChatRequestPlugin>;
282
283
  export declare function chatRequestPluginToJSON(chatRequestPlugin: ChatRequestPlugin): string;
@@ -327,7 +328,7 @@ export type ChatRequest$Outbound = {
327
328
  model?: string | undefined;
328
329
  models?: Array<string> | undefined;
329
330
  parallel_tool_calls?: boolean | null | undefined;
330
- plugins?: Array<AutoBetaRouterPlugin$Outbound | AutoRouterPlugin$Outbound | ContextCompressionPlugin$Outbound | FileParserPlugin$Outbound | FusionPlugin$Outbound | ModerationPlugin$Outbound | ParetoRouterPlugin$Outbound | ResponseHealingPlugin$Outbound | SwitchyardRouterPlugin$Outbound | WebSearchPlugin$Outbound | WebFetchPlugin$Outbound> | undefined;
331
+ plugins?: Array<AutoBetaRouterPlugin$Outbound | AutoRouterPlugin$Outbound | ContextCompressionPlugin$Outbound | FileParserPlugin$Outbound | FusionPlugin$Outbound | JevRouterPlugin$Outbound | ModerationPlugin$Outbound | ParetoRouterPlugin$Outbound | ResponseHealingPlugin$Outbound | SwitchyardRouterPlugin$Outbound | WebSearchPlugin$Outbound | WebFetchPlugin$Outbound> | undefined;
331
332
  prediction?: Prediction$Outbound | null | undefined;
332
333
  presence_penalty?: number | null | undefined;
333
334
  prompt_cache_key?: string | null | undefined;
@@ -23,6 +23,7 @@ import { ContextCompressionPlugin$outboundSchema, } from "./contextcompressionpl
23
23
  import { FileParserPlugin$outboundSchema, } from "./fileparserplugin.js";
24
24
  import { FusionPlugin$outboundSchema, } from "./fusionplugin.js";
25
25
  import { ImageConfig$outboundSchema, } from "./imageconfig.js";
26
+ import { JevRouterPlugin$outboundSchema, } from "./jevrouterplugin.js";
26
27
  import { ModerationPlugin$outboundSchema, } from "./moderationplugin.js";
27
28
  import { ParetoRouterPlugin$outboundSchema, } from "./paretorouterplugin.js";
28
29
  import { Prediction$outboundSchema, } from "./prediction.js";
@@ -84,6 +85,7 @@ export const ChatRequestPlugin$outboundSchema = z.union([
84
85
  ContextCompressionPlugin$outboundSchema,
85
86
  FileParserPlugin$outboundSchema,
86
87
  FusionPlugin$outboundSchema,
88
+ JevRouterPlugin$outboundSchema,
87
89
  ModerationPlugin$outboundSchema,
88
90
  ParetoRouterPlugin$outboundSchema,
89
91
  ResponseHealingPlugin$outboundSchema,
@@ -151,6 +153,7 @@ export const ChatRequest$outboundSchema = z.object({
151
153
  ContextCompressionPlugin$outboundSchema,
152
154
  FileParserPlugin$outboundSchema,
153
155
  FusionPlugin$outboundSchema,
156
+ JevRouterPlugin$outboundSchema,
154
157
  ModerationPlugin$outboundSchema,
155
158
  ParetoRouterPlugin$outboundSchema,
156
159
  ResponseHealingPlugin$outboundSchema,
@@ -420,6 +420,7 @@ export * from "./interninvokerequest.js";
420
420
  export * from "./internlifecycleerror.js";
421
421
  export * from "./internlistresponse.js";
422
422
  export * from "./itemreferenceitem.js";
423
+ export * from "./jevrouterplugin.js";
423
424
  export * from "./keyassignment.js";
424
425
  export * from "./legacychatcontentvideo.js";
425
426
  export * from "./legacychatcontentvideoinput.js";
@@ -424,6 +424,7 @@ export * from "./interninvokerequest.js";
424
424
  export * from "./internlifecycleerror.js";
425
425
  export * from "./internlistresponse.js";
426
426
  export * from "./itemreferenceitem.js";
427
+ export * from "./jevrouterplugin.js";
427
428
  export * from "./keyassignment.js";
428
429
  export * from "./legacychatcontentvideo.js";
429
430
  export * from "./legacychatcontentvideoinput.js";
@@ -0,0 +1,27 @@
1
+ import * as z from "zod/v4";
2
+ export type JevRouterPlugin = {
3
+ /**
4
+ * Alias of `models`, matching the auto-router field name. Entries from both fields are combined.
5
+ */
6
+ allowedModels?: Array<string> | undefined;
7
+ /**
8
+ * Remove these models from the router. Each entry is a model slug or a wildcard pattern (e.g. "xiaomi/*"). A `~author/family-latest` alias matches every revision of that family. Up to 1024 patterns, each at most 1024 characters, with 65536 total characters across all patterns. Applied after `models`, so an excluded pattern always wins over an included one; when the lists leave no model the request can use, it fails with 404 rather than routing outside them.
9
+ */
10
+ excludedModels?: Array<string> | undefined;
11
+ id: "jev-router";
12
+ /**
13
+ * Restrict the router to these models. Each entry is a model slug or a wildcard pattern (e.g. "anthropic/*"), matched against the current pool; models outside the pool are ignored. A `~author/family-latest` alias matches every revision of that family. Up to 1024 patterns, each at most 1024 characters, with 65536 total characters across all patterns. When omitted or empty, every model in the pool is a candidate; when no pool model matches, the list is ignored and the whole pool is used (`excluded_models` still apply). `allowed_models` is an alias; entries from both fields are combined.
14
+ */
15
+ models?: Array<string> | undefined;
16
+ };
17
+ /** @internal */
18
+ export type JevRouterPlugin$Outbound = {
19
+ allowed_models?: Array<string> | undefined;
20
+ excluded_models?: Array<string> | undefined;
21
+ id: "jev-router";
22
+ models?: Array<string> | undefined;
23
+ };
24
+ /** @internal */
25
+ export declare const JevRouterPlugin$outboundSchema: z.ZodType<JevRouterPlugin$Outbound, JevRouterPlugin>;
26
+ export declare function jevRouterPluginToJSON(jevRouterPlugin: JevRouterPlugin): string;
27
+ //# sourceMappingURL=jevrouterplugin.d.ts.map
@@ -0,0 +1,22 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 87ebd9753273
4
+ */
5
+ import * as z from "zod/v4";
6
+ import { remap as remap$ } from "../lib/primitives.js";
7
+ /** @internal */
8
+ export const JevRouterPlugin$outboundSchema = z.object({
9
+ allowedModels: z.array(z.string()).optional(),
10
+ excludedModels: z.array(z.string()).optional(),
11
+ id: z.literal("jev-router"),
12
+ models: z.array(z.string()).optional(),
13
+ }).transform((v) => {
14
+ return remap$(v, {
15
+ allowedModels: "allowed_models",
16
+ excludedModels: "excluded_models",
17
+ });
18
+ });
19
+ export function jevRouterPluginToJSON(jevRouterPlugin) {
20
+ return JSON.stringify(JevRouterPlugin$outboundSchema.parse(jevRouterPlugin));
21
+ }
22
+ //# sourceMappingURL=jevrouterplugin.js.map
@@ -22,6 +22,7 @@ import { DatetimeServerTool, DatetimeServerTool$Outbound } from "./datetimeserve
22
22
  import { FileParserPlugin, FileParserPlugin$Outbound } from "./fileparserplugin.js";
23
23
  import { FusionPlugin, FusionPlugin$Outbound } from "./fusionplugin.js";
24
24
  import { ImageGenerationServerToolOpenRouter, ImageGenerationServerToolOpenRouter$Outbound } from "./imagegenerationservertoolopenrouter.js";
25
+ import { JevRouterPlugin, JevRouterPlugin$Outbound } from "./jevrouterplugin.js";
25
26
  import { MessagesFallbackParam, MessagesFallbackParam$Outbound } from "./messagesfallbackparam.js";
26
27
  import { MessagesMessageParam, MessagesMessageParam$Outbound } from "./messagesmessageparam.js";
27
28
  import { MessagesOutputConfig, MessagesOutputConfig$Outbound } from "./messagesoutputconfig.js";
@@ -86,7 +87,7 @@ export type ContextManagement = {
86
87
  export type MessagesRequestMetadata = {
87
88
  userId?: string | null | undefined;
88
89
  };
89
- export type MessagesRequestPlugin = AutoBetaRouterPlugin | AutoRouterPlugin | ContextCompressionPlugin | FileParserPlugin | FusionPlugin | ModerationPlugin | ParetoRouterPlugin | ResponseHealingPlugin | SwitchyardRouterPlugin | WebSearchPlugin | WebFetchPlugin;
90
+ export type MessagesRequestPlugin = AutoBetaRouterPlugin | AutoRouterPlugin | ContextCompressionPlugin | FileParserPlugin | FusionPlugin | JevRouterPlugin | ModerationPlugin | ParetoRouterPlugin | ResponseHealingPlugin | SwitchyardRouterPlugin | WebSearchPlugin | WebFetchPlugin;
90
91
  /**
91
92
  * Controls output generation speed. When set to `fast`, uses a higher-speed inference configuration at premium pricing. Defaults to `standard` when omitted.
92
93
  */
@@ -284,7 +285,7 @@ export type MessagesRequest = {
284
285
  /**
285
286
  * Plugins you want to enable for this request, including their settings.
286
287
  */
287
- plugins?: Array<AutoBetaRouterPlugin | AutoRouterPlugin | ContextCompressionPlugin | FileParserPlugin | FusionPlugin | ModerationPlugin | ParetoRouterPlugin | ResponseHealingPlugin | SwitchyardRouterPlugin | WebSearchPlugin | WebFetchPlugin> | undefined;
288
+ plugins?: Array<AutoBetaRouterPlugin | AutoRouterPlugin | ContextCompressionPlugin | FileParserPlugin | FusionPlugin | JevRouterPlugin | ModerationPlugin | ParetoRouterPlugin | ResponseHealingPlugin | SwitchyardRouterPlugin | WebSearchPlugin | WebFetchPlugin> | undefined;
288
289
  /**
289
290
  * When multiple model providers are available, optionally indicate your routing preference.
290
291
  */
@@ -404,7 +405,7 @@ export type MessagesRequestMetadata$Outbound = {
404
405
  export declare const MessagesRequestMetadata$outboundSchema: z.ZodType<MessagesRequestMetadata$Outbound, MessagesRequestMetadata>;
405
406
  export declare function messagesRequestMetadataToJSON(messagesRequestMetadata: MessagesRequestMetadata): string;
406
407
  /** @internal */
407
- export type MessagesRequestPlugin$Outbound = AutoBetaRouterPlugin$Outbound | AutoRouterPlugin$Outbound | ContextCompressionPlugin$Outbound | FileParserPlugin$Outbound | FusionPlugin$Outbound | ModerationPlugin$Outbound | ParetoRouterPlugin$Outbound | ResponseHealingPlugin$Outbound | SwitchyardRouterPlugin$Outbound | WebSearchPlugin$Outbound | WebFetchPlugin$Outbound;
408
+ export type MessagesRequestPlugin$Outbound = AutoBetaRouterPlugin$Outbound | AutoRouterPlugin$Outbound | ContextCompressionPlugin$Outbound | FileParserPlugin$Outbound | FusionPlugin$Outbound | JevRouterPlugin$Outbound | ModerationPlugin$Outbound | ParetoRouterPlugin$Outbound | ResponseHealingPlugin$Outbound | SwitchyardRouterPlugin$Outbound | WebSearchPlugin$Outbound | WebFetchPlugin$Outbound;
408
409
  /** @internal */
409
410
  export declare const MessagesRequestPlugin$outboundSchema: z.ZodType<MessagesRequestPlugin$Outbound, MessagesRequestPlugin>;
410
411
  export declare function messagesRequestPluginToJSON(messagesRequestPlugin: MessagesRequestPlugin): string;
@@ -618,7 +619,7 @@ export type MessagesRequest$Outbound = {
618
619
  model: string;
619
620
  models?: Array<string> | undefined;
620
621
  output_config?: MessagesOutputConfig$Outbound | undefined;
621
- plugins?: Array<AutoBetaRouterPlugin$Outbound | AutoRouterPlugin$Outbound | ContextCompressionPlugin$Outbound | FileParserPlugin$Outbound | FusionPlugin$Outbound | ModerationPlugin$Outbound | ParetoRouterPlugin$Outbound | ResponseHealingPlugin$Outbound | SwitchyardRouterPlugin$Outbound | WebSearchPlugin$Outbound | WebFetchPlugin$Outbound> | undefined;
622
+ plugins?: Array<AutoBetaRouterPlugin$Outbound | AutoRouterPlugin$Outbound | ContextCompressionPlugin$Outbound | FileParserPlugin$Outbound | FusionPlugin$Outbound | JevRouterPlugin$Outbound | ModerationPlugin$Outbound | ParetoRouterPlugin$Outbound | ResponseHealingPlugin$Outbound | SwitchyardRouterPlugin$Outbound | WebSearchPlugin$Outbound | WebFetchPlugin$Outbound> | undefined;
622
623
  provider?: ProviderPreferences$Outbound | null | undefined;
623
624
  safeguards?: Array<AnthropicSafeguard$Outbound> | null | undefined;
624
625
  service_tier?: string | undefined;
@@ -27,6 +27,7 @@ import { DatetimeServerTool$outboundSchema, } from "./datetimeservertool.js";
27
27
  import { FileParserPlugin$outboundSchema, } from "./fileparserplugin.js";
28
28
  import { FusionPlugin$outboundSchema, } from "./fusionplugin.js";
29
29
  import { ImageGenerationServerToolOpenRouter$outboundSchema, } from "./imagegenerationservertoolopenrouter.js";
30
+ import { JevRouterPlugin$outboundSchema, } from "./jevrouterplugin.js";
30
31
  import { MessagesFallbackParam$outboundSchema, } from "./messagesfallbackparam.js";
31
32
  import { MessagesMessageParam$outboundSchema, } from "./messagesmessageparam.js";
32
33
  import { MessagesOutputConfig$outboundSchema, } from "./messagesoutputconfig.js";
@@ -226,6 +227,7 @@ export const MessagesRequestPlugin$outboundSchema = z.union([
226
227
  ContextCompressionPlugin$outboundSchema,
227
228
  FileParserPlugin$outboundSchema,
228
229
  FusionPlugin$outboundSchema,
230
+ JevRouterPlugin$outboundSchema,
229
231
  ModerationPlugin$outboundSchema,
230
232
  ParetoRouterPlugin$outboundSchema,
231
233
  ResponseHealingPlugin$outboundSchema,
@@ -565,6 +567,7 @@ export const MessagesRequest$outboundSchema = z.object({
565
567
  ContextCompressionPlugin$outboundSchema,
566
568
  FileParserPlugin$outboundSchema,
567
569
  FusionPlugin$outboundSchema,
570
+ JevRouterPlugin$outboundSchema,
568
571
  ModerationPlugin$outboundSchema,
569
572
  ParetoRouterPlugin$outboundSchema,
570
573
  ResponseHealingPlugin$outboundSchema,
@@ -23,6 +23,7 @@ import { ImageConfig, ImageConfig$Outbound } from "./imageconfig.js";
23
23
  import { ImageGenerationServerTool, ImageGenerationServerTool$Outbound } from "./imagegenerationservertool.js";
24
24
  import { ImageGenerationServerToolOpenRouter, ImageGenerationServerToolOpenRouter$Outbound } from "./imagegenerationservertoolopenrouter.js";
25
25
  import { InputsUnion, InputsUnion$Outbound } from "./inputsunion.js";
26
+ import { JevRouterPlugin, JevRouterPlugin$Outbound } from "./jevrouterplugin.js";
26
27
  import { LegacyWebSearchServerTool, LegacyWebSearchServerTool$Outbound } from "./legacywebsearchservertool.js";
27
28
  import { McpServerTool, McpServerTool$Outbound } from "./mcpservertool.js";
28
29
  import { ModerationPlugin, ModerationPlugin$Outbound } from "./moderationplugin.js";
@@ -56,7 +57,7 @@ import { WebFetchServerTool, WebFetchServerTool$Outbound } from "./webfetchserve
56
57
  import { WebSearchPlugin, WebSearchPlugin$Outbound } from "./websearchplugin.js";
57
58
  import { WebSearchServerTool, WebSearchServerTool$Outbound } from "./websearchservertool.js";
58
59
  import { WebSearchServerToolOpenRouter, WebSearchServerToolOpenRouter$Outbound } from "./websearchservertoolopenrouter.js";
59
- export type ResponsesRequestPlugin = AutoBetaRouterPlugin | AutoRouterPlugin | ContextCompressionPlugin | FileParserPlugin | FusionPlugin | ModerationPlugin | ParetoRouterPlugin | ResponseHealingPlugin | SwitchyardRouterPlugin | WebSearchPlugin | WebFetchPlugin;
60
+ export type ResponsesRequestPlugin = AutoBetaRouterPlugin | AutoRouterPlugin | ContextCompressionPlugin | FileParserPlugin | FusionPlugin | JevRouterPlugin | ModerationPlugin | ParetoRouterPlugin | ResponseHealingPlugin | SwitchyardRouterPlugin | WebSearchPlugin | WebFetchPlugin;
60
61
  export type ReasoningConfig = {
61
62
  /**
62
63
  * Controls which reasoning is available to the model. `auto` uses the model default (same as omitting); `all_turns` includes reasoning from earlier turns passed in input; `current_turn` limits to the current turn only. Only supported by OpenAI GPT-5.6 and newer.
@@ -208,7 +209,7 @@ export type ResponsesRequest = {
208
209
  /**
209
210
  * Plugins you want to enable for this request, including their settings.
210
211
  */
211
- plugins?: Array<AutoBetaRouterPlugin | AutoRouterPlugin | ContextCompressionPlugin | FileParserPlugin | FusionPlugin | ModerationPlugin | ParetoRouterPlugin | ResponseHealingPlugin | SwitchyardRouterPlugin | WebSearchPlugin | WebFetchPlugin> | undefined;
212
+ plugins?: Array<AutoBetaRouterPlugin | AutoRouterPlugin | ContextCompressionPlugin | FileParserPlugin | FusionPlugin | JevRouterPlugin | ModerationPlugin | ParetoRouterPlugin | ResponseHealingPlugin | SwitchyardRouterPlugin | WebSearchPlugin | WebFetchPlugin> | undefined;
212
213
  presencePenalty?: number | null | undefined;
213
214
  /**
214
215
  * Not supported on this proxy. Each response request is independent: no responses are stored, so a previous response cannot be referenced. Requests with a non-null value are rejected with a 400 error. Send the full conversation history in `input` instead.
@@ -321,7 +322,7 @@ export type ResponsesRequest = {
321
322
  user?: string | undefined;
322
323
  };
323
324
  /** @internal */
324
- export type ResponsesRequestPlugin$Outbound = AutoBetaRouterPlugin$Outbound | AutoRouterPlugin$Outbound | ContextCompressionPlugin$Outbound | FileParserPlugin$Outbound | FusionPlugin$Outbound | ModerationPlugin$Outbound | ParetoRouterPlugin$Outbound | ResponseHealingPlugin$Outbound | SwitchyardRouterPlugin$Outbound | WebSearchPlugin$Outbound | WebFetchPlugin$Outbound;
325
+ export type ResponsesRequestPlugin$Outbound = AutoBetaRouterPlugin$Outbound | AutoRouterPlugin$Outbound | ContextCompressionPlugin$Outbound | FileParserPlugin$Outbound | FusionPlugin$Outbound | JevRouterPlugin$Outbound | ModerationPlugin$Outbound | ParetoRouterPlugin$Outbound | ResponseHealingPlugin$Outbound | SwitchyardRouterPlugin$Outbound | WebSearchPlugin$Outbound | WebFetchPlugin$Outbound;
325
326
  /** @internal */
326
327
  export declare const ResponsesRequestPlugin$outboundSchema: z.ZodType<ResponsesRequestPlugin$Outbound, ResponsesRequestPlugin>;
327
328
  export declare function responsesRequestPluginToJSON(responsesRequestPlugin: ResponsesRequestPlugin): string;
@@ -434,7 +435,7 @@ export type ResponsesRequest$Outbound = {
434
435
  model?: string | undefined;
435
436
  models?: Array<string> | undefined;
436
437
  parallel_tool_calls?: boolean | null | undefined;
437
- plugins?: Array<AutoBetaRouterPlugin$Outbound | AutoRouterPlugin$Outbound | ContextCompressionPlugin$Outbound | FileParserPlugin$Outbound | FusionPlugin$Outbound | ModerationPlugin$Outbound | ParetoRouterPlugin$Outbound | ResponseHealingPlugin$Outbound | SwitchyardRouterPlugin$Outbound | WebSearchPlugin$Outbound | WebFetchPlugin$Outbound> | undefined;
438
+ plugins?: Array<AutoBetaRouterPlugin$Outbound | AutoRouterPlugin$Outbound | ContextCompressionPlugin$Outbound | FileParserPlugin$Outbound | FusionPlugin$Outbound | JevRouterPlugin$Outbound | ModerationPlugin$Outbound | ParetoRouterPlugin$Outbound | ResponseHealingPlugin$Outbound | SwitchyardRouterPlugin$Outbound | WebSearchPlugin$Outbound | WebFetchPlugin$Outbound> | undefined;
438
439
  presence_penalty?: number | null | undefined;
439
440
  previous_response_id?: any | undefined;
440
441
  prompt?: StoredPromptTemplate$Outbound | null | undefined;
@@ -28,6 +28,7 @@ import { ImageConfig$outboundSchema, } from "./imageconfig.js";
28
28
  import { ImageGenerationServerTool$outboundSchema, } from "./imagegenerationservertool.js";
29
29
  import { ImageGenerationServerToolOpenRouter$outboundSchema, } from "./imagegenerationservertoolopenrouter.js";
30
30
  import { InputsUnion$outboundSchema, } from "./inputsunion.js";
31
+ import { JevRouterPlugin$outboundSchema, } from "./jevrouterplugin.js";
31
32
  import { LegacyWebSearchServerTool$outboundSchema, } from "./legacywebsearchservertool.js";
32
33
  import { McpServerTool$outboundSchema, } from "./mcpservertool.js";
33
34
  import { ModerationPlugin$outboundSchema, } from "./moderationplugin.js";
@@ -79,6 +80,7 @@ export const ResponsesRequestPlugin$outboundSchema = z.union([
79
80
  ContextCompressionPlugin$outboundSchema,
80
81
  FileParserPlugin$outboundSchema,
81
82
  FusionPlugin$outboundSchema,
83
+ JevRouterPlugin$outboundSchema,
82
84
  ModerationPlugin$outboundSchema,
83
85
  ParetoRouterPlugin$outboundSchema,
84
86
  ResponseHealingPlugin$outboundSchema,
@@ -181,6 +183,7 @@ export const ResponsesRequest$outboundSchema = z.object({
181
183
  ContextCompressionPlugin$outboundSchema,
182
184
  FileParserPlugin$outboundSchema,
183
185
  FusionPlugin$outboundSchema,
186
+ JevRouterPlugin$outboundSchema,
184
187
  ModerationPlugin$outboundSchema,
185
188
  ParetoRouterPlugin$outboundSchema,
186
189
  ResponseHealingPlugin$outboundSchema,
package/jsr.json CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  {
4
4
  "name": "@openrouter/sdk",
5
- "version": "1.4.2",
5
+ "version": "1.4.4",
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": "1.4.2",
3
+ "version": "1.4.4",
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
- "test:e2e": "vitest --run --project e2e",
77
76
  "typecheck:transit": "exit 0",
78
77
  "postinstall": "node scripts/check-types.js || true",
78
+ "prepare": "npm run build",
79
+ "test": "vitest --run --project unit",
79
80
  "test:transit": "exit 0",
80
81
  "test:watch": "vitest --watch --project unit",
81
- "typecheck": "tsc --noEmit",
82
82
  "compile": "tsc && node scripts/unbarrel-imports.js",
83
- "prepare": "npm run build",
84
- "test": "vitest --run --project unit"
83
+ "test:e2e": "vitest --run --project e2e",
84
+ "typecheck": "tsc --noEmit"
85
85
  },
86
86
  "peerDependencies": {
87
87