@openrouter/sdk 0.12.22 → 0.12.23
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
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.23";
|
|
53
53
|
readonly genVersion: "2.879.1";
|
|
54
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.12.
|
|
54
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.12.23 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.23",
|
|
30
30
|
genVersion: "2.879.1",
|
|
31
|
-
userAgent: "speakeasy-sdk/typescript 0.12.
|
|
31
|
+
userAgent: "speakeasy-sdk/typescript 0.12.23 2.879.1 1.0.0 @openrouter/sdk",
|
|
32
32
|
};
|
|
33
33
|
//# sourceMappingURL=config.js.map
|
|
@@ -12,6 +12,14 @@ export type OutputWebFetchServerToolItemType = ClosedEnum<typeof OutputWebFetchS
|
|
|
12
12
|
*/
|
|
13
13
|
export type OutputWebFetchServerToolItem = {
|
|
14
14
|
content?: string | undefined;
|
|
15
|
+
/**
|
|
16
|
+
* The error message if the fetch failed.
|
|
17
|
+
*/
|
|
18
|
+
error?: string | undefined;
|
|
19
|
+
/**
|
|
20
|
+
* The HTTP status code returned by the upstream URL fetch.
|
|
21
|
+
*/
|
|
22
|
+
httpStatus?: number | undefined;
|
|
15
23
|
id?: string | undefined;
|
|
16
24
|
status: ToolCallStatus;
|
|
17
25
|
title?: string | undefined;
|
|
@@ -27,6 +35,8 @@ export declare const OutputWebFetchServerToolItem$inboundSchema: z.ZodType<Outpu
|
|
|
27
35
|
/** @internal */
|
|
28
36
|
export type OutputWebFetchServerToolItem$Outbound = {
|
|
29
37
|
content?: string | undefined;
|
|
38
|
+
error?: string | undefined;
|
|
39
|
+
httpStatus?: number | undefined;
|
|
30
40
|
id?: string | undefined;
|
|
31
41
|
status: string;
|
|
32
42
|
title?: string | undefined;
|
|
@@ -15,6 +15,8 @@ export const OutputWebFetchServerToolItemType$outboundSchema = OutputWebFetchSer
|
|
|
15
15
|
/** @internal */
|
|
16
16
|
export const OutputWebFetchServerToolItem$inboundSchema = z.object({
|
|
17
17
|
content: z.string().optional(),
|
|
18
|
+
error: z.string().optional(),
|
|
19
|
+
httpStatus: z.int().optional(),
|
|
18
20
|
id: z.string().optional(),
|
|
19
21
|
status: ToolCallStatus$inboundSchema,
|
|
20
22
|
title: z.string().optional(),
|
|
@@ -24,6 +26,8 @@ export const OutputWebFetchServerToolItem$inboundSchema = z.object({
|
|
|
24
26
|
/** @internal */
|
|
25
27
|
export const OutputWebFetchServerToolItem$outboundSchema = z.object({
|
|
26
28
|
content: z.string().optional(),
|
|
29
|
+
error: z.string().optional(),
|
|
30
|
+
httpStatus: z.int().optional(),
|
|
27
31
|
id: z.string().optional(),
|
|
28
32
|
status: ToolCallStatus$outboundSchema,
|
|
29
33
|
title: z.string().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.23",
|
|
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": [
|
|
@@ -69,15 +69,15 @@
|
|
|
69
69
|
"lint": "eslint --cache --max-warnings=0 src",
|
|
70
70
|
"build": "tsc",
|
|
71
71
|
"prepublishOnly": "npm run build",
|
|
72
|
-
"typecheck": "tsc --noEmit",
|
|
73
72
|
"postinstall": "node scripts/check-types.js || true",
|
|
74
|
-
"
|
|
73
|
+
"test": "vitest --run --project unit",
|
|
74
|
+
"test:e2e": "vitest --run --project e2e",
|
|
75
75
|
"test:transit": "exit 0",
|
|
76
|
-
"
|
|
77
|
-
"typecheck:transit": "exit 0",
|
|
76
|
+
"typecheck": "tsc --noEmit",
|
|
78
77
|
"compile": "tsc",
|
|
79
|
-
"
|
|
80
|
-
"test:
|
|
78
|
+
"prepare": "npm run build",
|
|
79
|
+
"test:watch": "vitest --watch --project unit",
|
|
80
|
+
"typecheck:transit": "exit 0"
|
|
81
81
|
},
|
|
82
82
|
"peerDependencies": {},
|
|
83
83
|
"devDependencies": {
|