@openrouter/sdk 1.0.17 → 1.0.18

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: "1.0.17";
52
+ readonly sdkVersion: "1.0.18";
53
53
  readonly genVersion: "2.914.0";
54
- readonly userAgent: "speakeasy-sdk/typescript 1.0.17 2.914.0 1.0.0 @openrouter/sdk";
54
+ readonly userAgent: "speakeasy-sdk/typescript 1.0.18 2.914.0 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: "1.0.17",
29
+ sdkVersion: "1.0.18",
30
30
  genVersion: "2.914.0",
31
- userAgent: "speakeasy-sdk/typescript 1.0.17 2.914.0 1.0.0 @openrouter/sdk",
31
+ userAgent: "speakeasy-sdk/typescript 1.0.18 2.914.0 1.0.0 @openrouter/sdk",
32
32
  };
33
33
  //# sourceMappingURL=config.js.map
@@ -301,6 +301,8 @@ export * from "./messagesmessageparam.js";
301
301
  export * from "./messagesoutputconfig.js";
302
302
  export * from "./messagesrequest.js";
303
303
  export * from "./messagessearchmodelsservertool.js";
304
+ export * from "./messagestooladditionblock.js";
305
+ export * from "./messagestoolremovalblock.js";
304
306
  export * from "./metadatalevel.js";
305
307
  export * from "./model.js";
306
308
  export * from "./modelarchitecture.js";
@@ -305,6 +305,8 @@ export * from "./messagesmessageparam.js";
305
305
  export * from "./messagesoutputconfig.js";
306
306
  export * from "./messagesrequest.js";
307
307
  export * from "./messagessearchmodelsservertool.js";
308
+ export * from "./messagestooladditionblock.js";
309
+ export * from "./messagestoolremovalblock.js";
308
310
  export * from "./metadatalevel.js";
309
311
  export * from "./model.js";
310
312
  export * from "./modelarchitecture.js";
@@ -7,6 +7,8 @@ import { AnthropicSearchResultBlockParam, AnthropicSearchResultBlockParam$Outbou
7
7
  import { AnthropicTextBlockParam, AnthropicTextBlockParam$Outbound } from "./anthropictextblockparam.js";
8
8
  import { AnthropicWebSearchResultBlockParam, AnthropicWebSearchResultBlockParam$Outbound } from "./anthropicwebsearchresultblockparam.js";
9
9
  import { MessagesAdvisorToolResultBlock, MessagesAdvisorToolResultBlock$Outbound } from "./messagesadvisortoolresultblock.js";
10
+ import { MessagesToolAdditionBlock, MessagesToolAdditionBlock$Outbound } from "./messagestooladditionblock.js";
11
+ import { MessagesToolRemovalBlock, MessagesToolRemovalBlock$Outbound } from "./messagestoolremovalblock.js";
10
12
  export type ContentCompaction = {
11
13
  /**
12
14
  * Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.
@@ -86,8 +88,8 @@ export type ContentToolUse = {
86
88
  name: string;
87
89
  type: "tool_use";
88
90
  };
89
- export type MessagesMessageParamContentUnion4 = AnthropicTextBlockParam | AnthropicImageBlockParam | AnthropicDocumentBlockParam | ContentToolUse | ContentToolResult | ContentThinking | ContentRedactedThinking | ContentServerToolUse | ContentWebSearchToolResult | AnthropicSearchResultBlockParam | ContentCompaction | MessagesAdvisorToolResultBlock;
90
- export type MessagesMessageParamContentUnion5 = string | Array<AnthropicTextBlockParam | AnthropicImageBlockParam | AnthropicDocumentBlockParam | ContentToolUse | ContentToolResult | ContentThinking | ContentRedactedThinking | ContentServerToolUse | ContentWebSearchToolResult | AnthropicSearchResultBlockParam | ContentCompaction | MessagesAdvisorToolResultBlock>;
91
+ export type MessagesMessageParamContentUnion4 = AnthropicTextBlockParam | AnthropicImageBlockParam | AnthropicDocumentBlockParam | ContentToolUse | ContentToolResult | ContentThinking | ContentRedactedThinking | ContentServerToolUse | ContentWebSearchToolResult | AnthropicSearchResultBlockParam | ContentCompaction | MessagesAdvisorToolResultBlock | MessagesToolAdditionBlock | MessagesToolRemovalBlock;
92
+ export type MessagesMessageParamContentUnion5 = string | Array<AnthropicTextBlockParam | AnthropicImageBlockParam | AnthropicDocumentBlockParam | ContentToolUse | ContentToolResult | ContentThinking | ContentRedactedThinking | ContentServerToolUse | ContentWebSearchToolResult | AnthropicSearchResultBlockParam | ContentCompaction | MessagesAdvisorToolResultBlock | MessagesToolAdditionBlock | MessagesToolRemovalBlock>;
91
93
  export declare const MessagesMessageParamRole: {
92
94
  readonly User: "user";
93
95
  readonly Assistant: "assistant";
@@ -98,7 +100,7 @@ export type MessagesMessageParamRole = OpenEnum<typeof MessagesMessageParamRole>
98
100
  * Anthropic message with OpenRouter extensions
99
101
  */
100
102
  export type MessagesMessageParam = {
101
- content: string | Array<AnthropicTextBlockParam | AnthropicImageBlockParam | AnthropicDocumentBlockParam | ContentToolUse | ContentToolResult | ContentThinking | ContentRedactedThinking | ContentServerToolUse | ContentWebSearchToolResult | AnthropicSearchResultBlockParam | ContentCompaction | MessagesAdvisorToolResultBlock>;
103
+ content: string | Array<AnthropicTextBlockParam | AnthropicImageBlockParam | AnthropicDocumentBlockParam | ContentToolUse | ContentToolResult | ContentThinking | ContentRedactedThinking | ContentServerToolUse | ContentWebSearchToolResult | AnthropicSearchResultBlockParam | ContentCompaction | MessagesAdvisorToolResultBlock | MessagesToolAdditionBlock | MessagesToolRemovalBlock>;
102
104
  role: MessagesMessageParamRole;
103
105
  };
104
106
  /** @internal */
@@ -206,12 +208,12 @@ export type ContentToolUse$Outbound = {
206
208
  export declare const ContentToolUse$outboundSchema: z.ZodType<ContentToolUse$Outbound, ContentToolUse>;
207
209
  export declare function contentToolUseToJSON(contentToolUse: ContentToolUse): string;
208
210
  /** @internal */
209
- export type MessagesMessageParamContentUnion4$Outbound = AnthropicTextBlockParam$Outbound | AnthropicImageBlockParam$Outbound | AnthropicDocumentBlockParam$Outbound | ContentToolUse$Outbound | ContentToolResult$Outbound | ContentThinking$Outbound | ContentRedactedThinking$Outbound | ContentServerToolUse$Outbound | ContentWebSearchToolResult$Outbound | AnthropicSearchResultBlockParam$Outbound | ContentCompaction$Outbound | MessagesAdvisorToolResultBlock$Outbound;
211
+ export type MessagesMessageParamContentUnion4$Outbound = AnthropicTextBlockParam$Outbound | AnthropicImageBlockParam$Outbound | AnthropicDocumentBlockParam$Outbound | ContentToolUse$Outbound | ContentToolResult$Outbound | ContentThinking$Outbound | ContentRedactedThinking$Outbound | ContentServerToolUse$Outbound | ContentWebSearchToolResult$Outbound | AnthropicSearchResultBlockParam$Outbound | ContentCompaction$Outbound | MessagesAdvisorToolResultBlock$Outbound | MessagesToolAdditionBlock$Outbound | MessagesToolRemovalBlock$Outbound;
210
212
  /** @internal */
211
213
  export declare const MessagesMessageParamContentUnion4$outboundSchema: z.ZodType<MessagesMessageParamContentUnion4$Outbound, MessagesMessageParamContentUnion4>;
212
214
  export declare function messagesMessageParamContentUnion4ToJSON(messagesMessageParamContentUnion4: MessagesMessageParamContentUnion4): string;
213
215
  /** @internal */
214
- export type MessagesMessageParamContentUnion5$Outbound = string | Array<AnthropicTextBlockParam$Outbound | AnthropicImageBlockParam$Outbound | AnthropicDocumentBlockParam$Outbound | ContentToolUse$Outbound | ContentToolResult$Outbound | ContentThinking$Outbound | ContentRedactedThinking$Outbound | ContentServerToolUse$Outbound | ContentWebSearchToolResult$Outbound | AnthropicSearchResultBlockParam$Outbound | ContentCompaction$Outbound | MessagesAdvisorToolResultBlock$Outbound>;
216
+ export type MessagesMessageParamContentUnion5$Outbound = string | Array<AnthropicTextBlockParam$Outbound | AnthropicImageBlockParam$Outbound | AnthropicDocumentBlockParam$Outbound | ContentToolUse$Outbound | ContentToolResult$Outbound | ContentThinking$Outbound | ContentRedactedThinking$Outbound | ContentServerToolUse$Outbound | ContentWebSearchToolResult$Outbound | AnthropicSearchResultBlockParam$Outbound | ContentCompaction$Outbound | MessagesAdvisorToolResultBlock$Outbound | MessagesToolAdditionBlock$Outbound | MessagesToolRemovalBlock$Outbound>;
215
217
  /** @internal */
216
218
  export declare const MessagesMessageParamContentUnion5$outboundSchema: z.ZodType<MessagesMessageParamContentUnion5$Outbound, MessagesMessageParamContentUnion5>;
217
219
  export declare function messagesMessageParamContentUnion5ToJSON(messagesMessageParamContentUnion5: MessagesMessageParamContentUnion5): string;
@@ -219,7 +221,7 @@ export declare function messagesMessageParamContentUnion5ToJSON(messagesMessageP
219
221
  export declare const MessagesMessageParamRole$outboundSchema: z.ZodType<string, MessagesMessageParamRole>;
220
222
  /** @internal */
221
223
  export type MessagesMessageParam$Outbound = {
222
- content: string | Array<AnthropicTextBlockParam$Outbound | AnthropicImageBlockParam$Outbound | AnthropicDocumentBlockParam$Outbound | ContentToolUse$Outbound | ContentToolResult$Outbound | ContentThinking$Outbound | ContentRedactedThinking$Outbound | ContentServerToolUse$Outbound | ContentWebSearchToolResult$Outbound | AnthropicSearchResultBlockParam$Outbound | ContentCompaction$Outbound | MessagesAdvisorToolResultBlock$Outbound>;
224
+ content: string | Array<AnthropicTextBlockParam$Outbound | AnthropicImageBlockParam$Outbound | AnthropicDocumentBlockParam$Outbound | ContentToolUse$Outbound | ContentToolResult$Outbound | ContentThinking$Outbound | ContentRedactedThinking$Outbound | ContentServerToolUse$Outbound | ContentWebSearchToolResult$Outbound | AnthropicSearchResultBlockParam$Outbound | ContentCompaction$Outbound | MessagesAdvisorToolResultBlock$Outbound | MessagesToolAdditionBlock$Outbound | MessagesToolRemovalBlock$Outbound>;
223
225
  role: string;
224
226
  };
225
227
  /** @internal */
@@ -12,6 +12,8 @@ import { AnthropicSearchResultBlockParam$outboundSchema, } from "./anthropicsear
12
12
  import { AnthropicTextBlockParam$outboundSchema, } from "./anthropictextblockparam.js";
13
13
  import { AnthropicWebSearchResultBlockParam$outboundSchema, } from "./anthropicwebsearchresultblockparam.js";
14
14
  import { MessagesAdvisorToolResultBlock$outboundSchema, } from "./messagesadvisortoolresultblock.js";
15
+ import { MessagesToolAdditionBlock$outboundSchema, } from "./messagestooladditionblock.js";
16
+ import { MessagesToolRemovalBlock$outboundSchema, } from "./messagestoolremovalblock.js";
15
17
  export const ErrorCode = {
16
18
  InvalidToolInput: "invalid_tool_input",
17
19
  Unavailable: "unavailable",
@@ -207,6 +209,8 @@ export const MessagesMessageParamContentUnion4$outboundSchema = z.union([
207
209
  AnthropicSearchResultBlockParam$outboundSchema,
208
210
  z.lazy(() => ContentCompaction$outboundSchema),
209
211
  MessagesAdvisorToolResultBlock$outboundSchema,
212
+ MessagesToolAdditionBlock$outboundSchema,
213
+ MessagesToolRemovalBlock$outboundSchema,
210
214
  ]);
211
215
  export function messagesMessageParamContentUnion4ToJSON(messagesMessageParamContentUnion4) {
212
216
  return JSON.stringify(MessagesMessageParamContentUnion4$outboundSchema.parse(messagesMessageParamContentUnion4));
@@ -227,6 +231,8 @@ export const MessagesMessageParamContentUnion5$outboundSchema = z.union([
227
231
  AnthropicSearchResultBlockParam$outboundSchema,
228
232
  z.lazy(() => ContentCompaction$outboundSchema),
229
233
  MessagesAdvisorToolResultBlock$outboundSchema,
234
+ MessagesToolAdditionBlock$outboundSchema,
235
+ MessagesToolRemovalBlock$outboundSchema,
230
236
  ])),
231
237
  ]);
232
238
  export function messagesMessageParamContentUnion5ToJSON(messagesMessageParamContentUnion5) {
@@ -251,6 +257,8 @@ export const MessagesMessageParam$outboundSchema = z.object({
251
257
  AnthropicSearchResultBlockParam$outboundSchema,
252
258
  z.lazy(() => ContentCompaction$outboundSchema),
253
259
  MessagesAdvisorToolResultBlock$outboundSchema,
260
+ MessagesToolAdditionBlock$outboundSchema,
261
+ MessagesToolRemovalBlock$outboundSchema,
254
262
  ])),
255
263
  ]),
256
264
  role: MessagesMessageParamRole$outboundSchema,
@@ -241,6 +241,7 @@ export type ToolCustom = {
241
241
  * Enable automatic prompt caching. When set at the top level, the system automatically applies cache breakpoints to the last cacheable block in the request. When set on an individual content block, it marks an explicit cache breakpoint; block-level markers also work on OpenAI models that support explicit prompt caching — OpenRouter converts them to the provider's native format.
242
242
  */
243
243
  cacheControl?: AnthropicCacheControlDirective | undefined;
244
+ deferLoading?: boolean | undefined;
244
245
  description?: string | undefined;
245
246
  inputSchema: InputSchema;
246
247
  name: string;
@@ -570,6 +571,7 @@ export declare const ToolTypeCustom$outboundSchema: z.ZodEnum<typeof ToolTypeCus
570
571
  /** @internal */
571
572
  export type ToolCustom$Outbound = {
572
573
  cache_control?: AnthropicCacheControlDirective$Outbound | undefined;
574
+ defer_loading?: boolean | undefined;
573
575
  description?: string | undefined;
574
576
  input_schema: InputSchema$Outbound;
575
577
  name: string;
@@ -484,6 +484,7 @@ export const ToolTypeCustom$outboundSchema = z
484
484
  /** @internal */
485
485
  export const ToolCustom$outboundSchema = z.object({
486
486
  cacheControl: AnthropicCacheControlDirective$outboundSchema.optional(),
487
+ deferLoading: z.boolean().optional(),
487
488
  description: z.string().optional(),
488
489
  inputSchema: z.lazy(() => InputSchema$outboundSchema),
489
490
  name: z.string(),
@@ -491,6 +492,7 @@ export const ToolCustom$outboundSchema = z.object({
491
492
  }).transform((v) => {
492
493
  return remap$(v, {
493
494
  cacheControl: "cache_control",
495
+ deferLoading: "defer_loading",
494
496
  inputSchema: "input_schema",
495
497
  });
496
498
  });
@@ -0,0 +1,36 @@
1
+ import * as z from "zod/v4";
2
+ import { ClosedEnum } from "../types/enums.js";
3
+ export declare const MessagesToolAdditionBlockTypeToolReference: {
4
+ readonly ToolReference: "tool_reference";
5
+ };
6
+ export type MessagesToolAdditionBlockTypeToolReference = ClosedEnum<typeof MessagesToolAdditionBlockTypeToolReference>;
7
+ export type MessagesToolAdditionBlockTool = {
8
+ name: string;
9
+ type: MessagesToolAdditionBlockTypeToolReference;
10
+ };
11
+ /**
12
+ * Loads a previously deferred tool (declared in `tools` with `defer_loading: true`) mid-conversation without invalidating the prompt cache. Only valid in `role: "system"` messages. Not supported on Claude Sonnet 5 or models older than Claude Opus 4.8.
13
+ */
14
+ export type MessagesToolAdditionBlock = {
15
+ tool: MessagesToolAdditionBlockTool;
16
+ type: "tool_addition";
17
+ };
18
+ /** @internal */
19
+ export declare const MessagesToolAdditionBlockTypeToolReference$outboundSchema: z.ZodEnum<typeof MessagesToolAdditionBlockTypeToolReference>;
20
+ /** @internal */
21
+ export type MessagesToolAdditionBlockTool$Outbound = {
22
+ name: string;
23
+ type: string;
24
+ };
25
+ /** @internal */
26
+ export declare const MessagesToolAdditionBlockTool$outboundSchema: z.ZodType<MessagesToolAdditionBlockTool$Outbound, MessagesToolAdditionBlockTool>;
27
+ export declare function messagesToolAdditionBlockToolToJSON(messagesToolAdditionBlockTool: MessagesToolAdditionBlockTool): string;
28
+ /** @internal */
29
+ export type MessagesToolAdditionBlock$Outbound = {
30
+ tool: MessagesToolAdditionBlockTool$Outbound;
31
+ type: "tool_addition";
32
+ };
33
+ /** @internal */
34
+ export declare const MessagesToolAdditionBlock$outboundSchema: z.ZodType<MessagesToolAdditionBlock$Outbound, MessagesToolAdditionBlock>;
35
+ export declare function messagesToolAdditionBlockToJSON(messagesToolAdditionBlock: MessagesToolAdditionBlock): string;
36
+ //# sourceMappingURL=messagestooladditionblock.d.ts.map
@@ -0,0 +1,27 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: 51fa541db951
4
+ */
5
+ import * as z from "zod/v4";
6
+ export const MessagesToolAdditionBlockTypeToolReference = {
7
+ ToolReference: "tool_reference",
8
+ };
9
+ /** @internal */
10
+ export const MessagesToolAdditionBlockTypeToolReference$outboundSchema = z.enum(MessagesToolAdditionBlockTypeToolReference);
11
+ /** @internal */
12
+ export const MessagesToolAdditionBlockTool$outboundSchema = z.object({
13
+ name: z.string(),
14
+ type: MessagesToolAdditionBlockTypeToolReference$outboundSchema,
15
+ });
16
+ export function messagesToolAdditionBlockToolToJSON(messagesToolAdditionBlockTool) {
17
+ return JSON.stringify(MessagesToolAdditionBlockTool$outboundSchema.parse(messagesToolAdditionBlockTool));
18
+ }
19
+ /** @internal */
20
+ export const MessagesToolAdditionBlock$outboundSchema = z.object({
21
+ tool: z.lazy(() => MessagesToolAdditionBlockTool$outboundSchema),
22
+ type: z.literal("tool_addition"),
23
+ });
24
+ export function messagesToolAdditionBlockToJSON(messagesToolAdditionBlock) {
25
+ return JSON.stringify(MessagesToolAdditionBlock$outboundSchema.parse(messagesToolAdditionBlock));
26
+ }
27
+ //# sourceMappingURL=messagestooladditionblock.js.map
@@ -0,0 +1,36 @@
1
+ import * as z from "zod/v4";
2
+ import { ClosedEnum } from "../types/enums.js";
3
+ export declare const MessagesToolRemovalBlockTypeToolReference: {
4
+ readonly ToolReference: "tool_reference";
5
+ };
6
+ export type MessagesToolRemovalBlockTypeToolReference = ClosedEnum<typeof MessagesToolRemovalBlockTypeToolReference>;
7
+ export type MessagesToolRemovalBlockTool = {
8
+ name: string;
9
+ type: MessagesToolRemovalBlockTypeToolReference;
10
+ };
11
+ /**
12
+ * Removes a tool from the conversation mid-conversation without invalidating the prompt cache. Only valid in `role: "system"` messages. Not supported on Claude Sonnet 5 or models older than Claude Opus 4.8.
13
+ */
14
+ export type MessagesToolRemovalBlock = {
15
+ tool: MessagesToolRemovalBlockTool;
16
+ type: "tool_removal";
17
+ };
18
+ /** @internal */
19
+ export declare const MessagesToolRemovalBlockTypeToolReference$outboundSchema: z.ZodEnum<typeof MessagesToolRemovalBlockTypeToolReference>;
20
+ /** @internal */
21
+ export type MessagesToolRemovalBlockTool$Outbound = {
22
+ name: string;
23
+ type: string;
24
+ };
25
+ /** @internal */
26
+ export declare const MessagesToolRemovalBlockTool$outboundSchema: z.ZodType<MessagesToolRemovalBlockTool$Outbound, MessagesToolRemovalBlockTool>;
27
+ export declare function messagesToolRemovalBlockToolToJSON(messagesToolRemovalBlockTool: MessagesToolRemovalBlockTool): string;
28
+ /** @internal */
29
+ export type MessagesToolRemovalBlock$Outbound = {
30
+ tool: MessagesToolRemovalBlockTool$Outbound;
31
+ type: "tool_removal";
32
+ };
33
+ /** @internal */
34
+ export declare const MessagesToolRemovalBlock$outboundSchema: z.ZodType<MessagesToolRemovalBlock$Outbound, MessagesToolRemovalBlock>;
35
+ export declare function messagesToolRemovalBlockToJSON(messagesToolRemovalBlock: MessagesToolRemovalBlock): string;
36
+ //# sourceMappingURL=messagestoolremovalblock.d.ts.map
@@ -0,0 +1,27 @@
1
+ /*
2
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
3
+ * @generated-id: dd4f25f389a0
4
+ */
5
+ import * as z from "zod/v4";
6
+ export const MessagesToolRemovalBlockTypeToolReference = {
7
+ ToolReference: "tool_reference",
8
+ };
9
+ /** @internal */
10
+ export const MessagesToolRemovalBlockTypeToolReference$outboundSchema = z.enum(MessagesToolRemovalBlockTypeToolReference);
11
+ /** @internal */
12
+ export const MessagesToolRemovalBlockTool$outboundSchema = z.object({
13
+ name: z.string(),
14
+ type: MessagesToolRemovalBlockTypeToolReference$outboundSchema,
15
+ });
16
+ export function messagesToolRemovalBlockToolToJSON(messagesToolRemovalBlockTool) {
17
+ return JSON.stringify(MessagesToolRemovalBlockTool$outboundSchema.parse(messagesToolRemovalBlockTool));
18
+ }
19
+ /** @internal */
20
+ export const MessagesToolRemovalBlock$outboundSchema = z.object({
21
+ tool: z.lazy(() => MessagesToolRemovalBlockTool$outboundSchema),
22
+ type: z.literal("tool_removal"),
23
+ });
24
+ export function messagesToolRemovalBlockToJSON(messagesToolRemovalBlock) {
25
+ return JSON.stringify(MessagesToolRemovalBlock$outboundSchema.parse(messagesToolRemovalBlock));
26
+ }
27
+ //# sourceMappingURL=messagestoolremovalblock.js.map
package/jsr.json CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  {
4
4
  "name": "@openrouter/sdk",
5
- "version": "1.0.17",
5
+ "version": "1.0.18",
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.0.17",
3
+ "version": "1.0.18",
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:transit": "exit 0",
76
+ "prepare": "npm run build",
77
+ "test": "vitest --run --project unit",
78
+ "test:e2e": "vitest --run --project e2e",
77
79
  "test:watch": "vitest --watch --project unit",
78
80
  "compile": "tsc",
79
81
  "postinstall": "node scripts/check-types.js || true",
82
+ "test:transit": "exit 0",
80
83
  "typecheck": "tsc --noEmit",
81
- "typecheck:transit": "exit 0",
82
- "prepare": "npm run build",
83
- "test": "vitest --run --project unit",
84
- "test:e2e": "vitest --run --project e2e"
84
+ "typecheck:transit": "exit 0"
85
85
  },
86
86
  "peerDependencies": {},
87
87
  "devDependencies": {