@openrouter/sdk 1.3.19 → 1.3.20
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/messagesrequest.d.ts +2 -0
- package/esm/models/messagesrequest.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.3.
|
|
53
|
+
readonly sdkVersion: "1.3.20";
|
|
54
54
|
readonly genVersion: "2.914.0";
|
|
55
|
-
readonly userAgent: "speakeasy-sdk/typescript 1.3.
|
|
55
|
+
readonly userAgent: "speakeasy-sdk/typescript 1.3.20 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.3.
|
|
32
|
+
sdkVersion: "1.3.20",
|
|
33
33
|
genVersion: "2.914.0",
|
|
34
|
-
userAgent: "speakeasy-sdk/typescript 1.3.
|
|
34
|
+
userAgent: "speakeasy-sdk/typescript 1.3.20 2.914.0 1.0.0 @openrouter/sdk",
|
|
35
35
|
};
|
|
36
36
|
//# sourceMappingURL=config.js.map
|
|
@@ -252,6 +252,7 @@ export type ToolCustom = {
|
|
|
252
252
|
description?: string | undefined;
|
|
253
253
|
inputSchema: InputSchema;
|
|
254
254
|
name: string;
|
|
255
|
+
strict?: boolean | undefined;
|
|
255
256
|
type?: ToolTypeCustom | undefined;
|
|
256
257
|
};
|
|
257
258
|
export type MessagesRequestToolUnion = ToolAdvisor20260301 | ToolCustom | ToolBash20250124 | ToolTextEditor20250124 | ToolWebSearch20250305 | ToolWebSearch20260209 | AnthropicToolSearchToolBm25 | AnthropicToolSearchToolRegex | BashServerTool | DatetimeServerTool | ImageGenerationServerToolOpenRouter | MessagesSearchModelsServerTool | WebFetchServerTool | OpenRouterWebSearchServerTool | MessagesRequestTool | ShellServerToolOpenRouter | ToolSearchServerTool;
|
|
@@ -585,6 +586,7 @@ export type ToolCustom$Outbound = {
|
|
|
585
586
|
description?: string | undefined;
|
|
586
587
|
input_schema: InputSchema$Outbound;
|
|
587
588
|
name: string;
|
|
589
|
+
strict?: boolean | undefined;
|
|
588
590
|
type?: string | undefined;
|
|
589
591
|
};
|
|
590
592
|
/** @internal */
|
|
@@ -503,6 +503,7 @@ export const ToolCustom$outboundSchema = z.object({
|
|
|
503
503
|
description: z.string().optional(),
|
|
504
504
|
inputSchema: z.lazy(() => InputSchema$outboundSchema),
|
|
505
505
|
name: z.string(),
|
|
506
|
+
strict: z.boolean().optional(),
|
|
506
507
|
type: ToolTypeCustom$outboundSchema.optional(),
|
|
507
508
|
}).transform((v) => {
|
|
508
509
|
return remap$(v, {
|
package/jsr.json
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openrouter/sdk",
|
|
3
|
-
"version": "1.3.
|
|
3
|
+
"version": "1.3.20",
|
|
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": [
|
|
@@ -75,13 +75,13 @@
|
|
|
75
75
|
"prepublishOnly": "npm run build",
|
|
76
76
|
"compile": "tsc",
|
|
77
77
|
"postinstall": "node scripts/check-types.js || true",
|
|
78
|
-
"
|
|
79
|
-
"test:transit": "exit 0",
|
|
78
|
+
"test:e2e": "vitest --run --project e2e",
|
|
80
79
|
"test:watch": "vitest --watch --project unit",
|
|
81
80
|
"typecheck": "tsc --noEmit",
|
|
82
|
-
"
|
|
81
|
+
"prepare": "npm run build",
|
|
83
82
|
"test": "vitest --run --project unit",
|
|
84
|
-
"test:
|
|
83
|
+
"test:transit": "exit 0",
|
|
84
|
+
"typecheck:transit": "exit 0"
|
|
85
85
|
},
|
|
86
86
|
"peerDependencies": {},
|
|
87
87
|
"devDependencies": {
|