@openrouter/sdk 0.12.34 → 0.12.35
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/functioncallitem.d.ts +5 -0
- package/esm/models/functioncallitem.js +1 -0
- package/esm/models/openairesponsefunctiontoolcall.d.ts +4 -0
- package/esm/models/openairesponsefunctiontoolcall.js +1 -0
- package/esm/models/outputfunctioncallitem.d.ts +5 -0
- package/esm/models/outputfunctioncallitem.js +2 -0
- package/jsr.json +1 -1
- package/package.json +2 -2
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.35";
|
|
53
53
|
readonly genVersion: "2.879.1";
|
|
54
|
-
readonly userAgent: "speakeasy-sdk/typescript 0.12.
|
|
54
|
+
readonly userAgent: "speakeasy-sdk/typescript 0.12.35 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.35",
|
|
30
30
|
genVersion: "2.879.1",
|
|
31
|
-
userAgent: "speakeasy-sdk/typescript 0.12.
|
|
31
|
+
userAgent: "speakeasy-sdk/typescript 0.12.35 2.879.1 1.0.0 @openrouter/sdk",
|
|
32
32
|
};
|
|
33
33
|
//# sourceMappingURL=config.js.map
|
|
@@ -13,6 +13,10 @@ export type FunctionCallItem = {
|
|
|
13
13
|
callId: string;
|
|
14
14
|
id: string;
|
|
15
15
|
name: string;
|
|
16
|
+
/**
|
|
17
|
+
* Namespace qualifier for tools registered as part of a namespace tool group (e.g. an MCP server)
|
|
18
|
+
*/
|
|
19
|
+
namespace?: string | undefined;
|
|
16
20
|
status?: ToolCallStatus | undefined;
|
|
17
21
|
type: FunctionCallItemType;
|
|
18
22
|
};
|
|
@@ -24,6 +28,7 @@ export type FunctionCallItem$Outbound = {
|
|
|
24
28
|
call_id: string;
|
|
25
29
|
id: string;
|
|
26
30
|
name: string;
|
|
31
|
+
namespace?: string | undefined;
|
|
27
32
|
status?: string | undefined;
|
|
28
33
|
type: string;
|
|
29
34
|
};
|
|
@@ -16,6 +16,7 @@ export const FunctionCallItem$outboundSchema = z.object({
|
|
|
16
16
|
callId: z.string(),
|
|
17
17
|
id: z.string(),
|
|
18
18
|
name: z.string(),
|
|
19
|
+
namespace: z.string().optional(),
|
|
19
20
|
status: ToolCallStatus$outboundSchema.optional(),
|
|
20
21
|
type: FunctionCallItemType$outboundSchema,
|
|
21
22
|
}).transform((v) => {
|
|
@@ -12,6 +12,10 @@ export type OpenAIResponseFunctionToolCall = {
|
|
|
12
12
|
callId: string;
|
|
13
13
|
id?: string | undefined;
|
|
14
14
|
name: string;
|
|
15
|
+
/**
|
|
16
|
+
* Namespace qualifier for tools registered as part of a namespace tool group (e.g. an MCP server)
|
|
17
|
+
*/
|
|
18
|
+
namespace?: string | undefined;
|
|
15
19
|
status?: ToolCallStatus | undefined;
|
|
16
20
|
type: OpenAIResponseFunctionToolCallType;
|
|
17
21
|
};
|
|
@@ -17,6 +17,7 @@ export const OpenAIResponseFunctionToolCall$inboundSchema = z.object({
|
|
|
17
17
|
call_id: z.string(),
|
|
18
18
|
id: z.string().optional(),
|
|
19
19
|
name: z.string(),
|
|
20
|
+
namespace: z.string().optional(),
|
|
20
21
|
status: ToolCallStatus$inboundSchema.optional(),
|
|
21
22
|
type: OpenAIResponseFunctionToolCallType$inboundSchema,
|
|
22
23
|
}).transform((v) => {
|
|
@@ -24,6 +24,10 @@ export type OutputFunctionCallItem = {
|
|
|
24
24
|
callId: string;
|
|
25
25
|
id?: string | undefined;
|
|
26
26
|
name: string;
|
|
27
|
+
/**
|
|
28
|
+
* Namespace qualifier for tools registered as part of a namespace tool group (e.g. an MCP server)
|
|
29
|
+
*/
|
|
30
|
+
namespace?: string | undefined;
|
|
27
31
|
status?: OutputFunctionCallItemStatusCompleted | OutputFunctionCallItemStatusIncomplete | OutputFunctionCallItemStatusInProgress | undefined;
|
|
28
32
|
type: OutputFunctionCallItemType;
|
|
29
33
|
};
|
|
@@ -59,6 +63,7 @@ export type OutputFunctionCallItem$Outbound = {
|
|
|
59
63
|
call_id: string;
|
|
60
64
|
id?: string | undefined;
|
|
61
65
|
name: string;
|
|
66
|
+
namespace?: string | undefined;
|
|
62
67
|
status?: string | string | string | undefined;
|
|
63
68
|
type: string;
|
|
64
69
|
};
|
|
@@ -57,6 +57,7 @@ export const OutputFunctionCallItem$inboundSchema = z.object({
|
|
|
57
57
|
call_id: z.string(),
|
|
58
58
|
id: z.string().optional(),
|
|
59
59
|
name: z.string(),
|
|
60
|
+
namespace: z.string().optional(),
|
|
60
61
|
status: z.union([
|
|
61
62
|
OutputFunctionCallItemStatusCompleted$inboundSchema,
|
|
62
63
|
OutputFunctionCallItemStatusIncomplete$inboundSchema,
|
|
@@ -74,6 +75,7 @@ export const OutputFunctionCallItem$outboundSchema = z.object({
|
|
|
74
75
|
callId: z.string(),
|
|
75
76
|
id: z.string().optional(),
|
|
76
77
|
name: z.string(),
|
|
78
|
+
namespace: z.string().optional(),
|
|
77
79
|
status: z.union([
|
|
78
80
|
OutputFunctionCallItemStatusCompleted$outboundSchema,
|
|
79
81
|
OutputFunctionCallItemStatusIncomplete$outboundSchema,
|
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.35",
|
|
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": [
|
|
@@ -71,9 +71,9 @@
|
|
|
71
71
|
"prepublishOnly": "npm run build",
|
|
72
72
|
"postinstall": "node scripts/check-types.js || true",
|
|
73
73
|
"test": "vitest --run --project unit",
|
|
74
|
-
"test:e2e": "vitest --run --project e2e",
|
|
75
74
|
"compile": "tsc",
|
|
76
75
|
"prepare": "npm run build",
|
|
76
|
+
"test:e2e": "vitest --run --project e2e",
|
|
77
77
|
"test:transit": "exit 0",
|
|
78
78
|
"test:watch": "vitest --watch --project unit",
|
|
79
79
|
"typecheck": "tsc --noEmit",
|