@openrouter/sdk 0.13.38 → 0.13.40
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/additionaltoolsitem.d.ts +117 -0
- package/esm/models/additionaltoolsitem.js +152 -0
- package/esm/models/agentmessageitem.d.ts +99 -0
- package/esm/models/agentmessageitem.js +101 -0
- package/esm/models/applypatchservertool.d.ts +11 -2
- package/esm/models/applypatchservertool.js +9 -2
- package/esm/models/applypatchservertoolopenrouter.d.ts +9 -2
- package/esm/models/applypatchservertoolopenrouter.js +6 -1
- package/esm/models/codeinterpreterservertool.d.ts +10 -2
- package/esm/models/codeinterpreterservertool.js +9 -2
- package/esm/models/codexlocalshelltool.d.ts +11 -2
- package/esm/models/codexlocalshelltool.js +9 -2
- package/esm/models/compactionitem.d.ts +4 -0
- package/esm/models/compactionitem.js +8 -3
- package/esm/models/computeruseservertool.d.ts +11 -3
- package/esm/models/computeruseservertool.js +9 -2
- package/esm/models/contextcompactionitem.d.ts +30 -0
- package/esm/models/contextcompactionitem.js +30 -0
- package/esm/models/customtool.d.ts +11 -3
- package/esm/models/customtool.js +9 -2
- package/esm/models/filesearchservertool.d.ts +11 -3
- package/esm/models/filesearchservertool.js +10 -2
- package/esm/models/imagegenerationservertool.d.ts +11 -3
- package/esm/models/imagegenerationservertool.js +9 -2
- package/esm/models/index.d.ts +3 -0
- package/esm/models/index.js +3 -0
- package/esm/models/inputsunion.d.ts +7 -4
- package/esm/models/inputsunion.js +9 -0
- package/esm/models/legacywebsearchservertool.d.ts +11 -2
- package/esm/models/legacywebsearchservertool.js +9 -2
- package/esm/models/mcpservertool.d.ts +10 -2
- package/esm/models/mcpservertool.js +9 -2
- package/esm/models/openresponsesresult.d.ts +54 -2
- package/esm/models/openresponsesresult.js +26 -26
- package/esm/models/preview20250311websearchservertool.d.ts +11 -2
- package/esm/models/preview20250311websearchservertool.js +9 -2
- package/esm/models/previewwebsearchservertool.d.ts +11 -2
- package/esm/models/previewwebsearchservertool.js +9 -2
- package/esm/models/responsesrequest.d.ts +140 -12
- package/esm/models/responsesrequest.js +32 -32
- package/esm/models/shellservertool.d.ts +11 -2
- package/esm/models/shellservertool.js +9 -2
- package/esm/models/shellservertoolopenrouter.d.ts +9 -2
- package/esm/models/shellservertoolopenrouter.js +6 -1
- package/esm/models/websearchservertool.d.ts +11 -2
- package/esm/models/websearchservertool.js +9 -2
- package/esm/models/websearchservertoolopenrouter.d.ts +9 -2
- package/esm/models/websearchservertoolopenrouter.js +6 -1
- package/jsr.json +1 -1
- package/package.json +6 -6
|
@@ -1,17 +1,26 @@
|
|
|
1
1
|
import * as z from "zod/v4";
|
|
2
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
2
3
|
import { Result as SafeParseResult } from "../types/fp.js";
|
|
3
4
|
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
5
|
+
export declare const CodexLocalShellToolType: {
|
|
6
|
+
readonly LocalShell: "local_shell";
|
|
7
|
+
};
|
|
8
|
+
export type CodexLocalShellToolType = ClosedEnum<typeof CodexLocalShellToolType>;
|
|
4
9
|
/**
|
|
5
10
|
* Local shell tool configuration
|
|
6
11
|
*/
|
|
7
12
|
export type CodexLocalShellTool = {
|
|
8
|
-
type:
|
|
13
|
+
type: CodexLocalShellToolType;
|
|
9
14
|
};
|
|
10
15
|
/** @internal */
|
|
16
|
+
export declare const CodexLocalShellToolType$inboundSchema: z.ZodEnum<typeof CodexLocalShellToolType>;
|
|
17
|
+
/** @internal */
|
|
18
|
+
export declare const CodexLocalShellToolType$outboundSchema: z.ZodEnum<typeof CodexLocalShellToolType>;
|
|
19
|
+
/** @internal */
|
|
11
20
|
export declare const CodexLocalShellTool$inboundSchema: z.ZodType<CodexLocalShellTool, unknown>;
|
|
12
21
|
/** @internal */
|
|
13
22
|
export type CodexLocalShellTool$Outbound = {
|
|
14
|
-
type:
|
|
23
|
+
type: string;
|
|
15
24
|
};
|
|
16
25
|
/** @internal */
|
|
17
26
|
export declare const CodexLocalShellTool$outboundSchema: z.ZodType<CodexLocalShellTool$Outbound, CodexLocalShellTool>;
|
|
@@ -4,13 +4,20 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import * as z from "zod/v4";
|
|
6
6
|
import { safeParse } from "../lib/schemas.js";
|
|
7
|
+
export const CodexLocalShellToolType = {
|
|
8
|
+
LocalShell: "local_shell",
|
|
9
|
+
};
|
|
10
|
+
/** @internal */
|
|
11
|
+
export const CodexLocalShellToolType$inboundSchema = z.enum(CodexLocalShellToolType);
|
|
12
|
+
/** @internal */
|
|
13
|
+
export const CodexLocalShellToolType$outboundSchema = CodexLocalShellToolType$inboundSchema;
|
|
7
14
|
/** @internal */
|
|
8
15
|
export const CodexLocalShellTool$inboundSchema = z.object({
|
|
9
|
-
type:
|
|
16
|
+
type: CodexLocalShellToolType$inboundSchema,
|
|
10
17
|
});
|
|
11
18
|
/** @internal */
|
|
12
19
|
export const CodexLocalShellTool$outboundSchema = z.object({
|
|
13
|
-
type:
|
|
20
|
+
type: CodexLocalShellToolType$outboundSchema,
|
|
14
21
|
});
|
|
15
22
|
export function codexLocalShellToolToJSON(codexLocalShellTool) {
|
|
16
23
|
return JSON.stringify(CodexLocalShellTool$outboundSchema.parse(codexLocalShellTool));
|
|
@@ -11,6 +11,9 @@ export type CompactionItem = {
|
|
|
11
11
|
encryptedContent: string;
|
|
12
12
|
id?: string | null | undefined;
|
|
13
13
|
type: CompactionItemType;
|
|
14
|
+
additionalProperties?: {
|
|
15
|
+
[k: string]: any | null;
|
|
16
|
+
} | undefined;
|
|
14
17
|
};
|
|
15
18
|
/** @internal */
|
|
16
19
|
export declare const CompactionItemType$outboundSchema: z.ZodEnum<typeof CompactionItemType>;
|
|
@@ -19,6 +22,7 @@ export type CompactionItem$Outbound = {
|
|
|
19
22
|
encrypted_content: string;
|
|
20
23
|
id?: string | null | undefined;
|
|
21
24
|
type: string;
|
|
25
|
+
[additionalProperties: string]: unknown;
|
|
22
26
|
};
|
|
23
27
|
/** @internal */
|
|
24
28
|
export declare const CompactionItem$outboundSchema: z.ZodType<CompactionItem$Outbound, CompactionItem>;
|
|
@@ -14,10 +14,15 @@ export const CompactionItem$outboundSchema = z.object({
|
|
|
14
14
|
encryptedContent: z.string(),
|
|
15
15
|
id: z.nullable(z.string()).optional(),
|
|
16
16
|
type: CompactionItemType$outboundSchema,
|
|
17
|
+
additionalProperties: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
17
18
|
}).transform((v) => {
|
|
18
|
-
return
|
|
19
|
-
|
|
20
|
-
|
|
19
|
+
return {
|
|
20
|
+
...v.additionalProperties,
|
|
21
|
+
...remap$(v, {
|
|
22
|
+
encryptedContent: "encrypted_content",
|
|
23
|
+
additionalProperties: null,
|
|
24
|
+
}),
|
|
25
|
+
};
|
|
21
26
|
});
|
|
22
27
|
export function compactionItemToJSON(compactionItem) {
|
|
23
28
|
return JSON.stringify(CompactionItem$outboundSchema.parse(compactionItem));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as z from "zod/v4";
|
|
2
|
-
import { OpenEnum } from "../types/enums.js";
|
|
2
|
+
import { ClosedEnum, OpenEnum } from "../types/enums.js";
|
|
3
3
|
import { Result as SafeParseResult } from "../types/fp.js";
|
|
4
4
|
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
5
5
|
export declare const Environment: {
|
|
@@ -10,6 +10,10 @@ export declare const Environment: {
|
|
|
10
10
|
readonly Browser: "browser";
|
|
11
11
|
};
|
|
12
12
|
export type Environment = OpenEnum<typeof Environment>;
|
|
13
|
+
export declare const ComputerUseServerToolType: {
|
|
14
|
+
readonly ComputerUsePreview: "computer_use_preview";
|
|
15
|
+
};
|
|
16
|
+
export type ComputerUseServerToolType = ClosedEnum<typeof ComputerUseServerToolType>;
|
|
13
17
|
/**
|
|
14
18
|
* Computer use preview tool configuration
|
|
15
19
|
*/
|
|
@@ -17,20 +21,24 @@ export type ComputerUseServerTool = {
|
|
|
17
21
|
displayHeight: number;
|
|
18
22
|
displayWidth: number;
|
|
19
23
|
environment: Environment;
|
|
20
|
-
type:
|
|
24
|
+
type: ComputerUseServerToolType;
|
|
21
25
|
};
|
|
22
26
|
/** @internal */
|
|
23
27
|
export declare const Environment$inboundSchema: z.ZodType<Environment, unknown>;
|
|
24
28
|
/** @internal */
|
|
25
29
|
export declare const Environment$outboundSchema: z.ZodType<string, Environment>;
|
|
26
30
|
/** @internal */
|
|
31
|
+
export declare const ComputerUseServerToolType$inboundSchema: z.ZodEnum<typeof ComputerUseServerToolType>;
|
|
32
|
+
/** @internal */
|
|
33
|
+
export declare const ComputerUseServerToolType$outboundSchema: z.ZodEnum<typeof ComputerUseServerToolType>;
|
|
34
|
+
/** @internal */
|
|
27
35
|
export declare const ComputerUseServerTool$inboundSchema: z.ZodType<ComputerUseServerTool, unknown>;
|
|
28
36
|
/** @internal */
|
|
29
37
|
export type ComputerUseServerTool$Outbound = {
|
|
30
38
|
display_height: number;
|
|
31
39
|
display_width: number;
|
|
32
40
|
environment: string;
|
|
33
|
-
type:
|
|
41
|
+
type: string;
|
|
34
42
|
};
|
|
35
43
|
/** @internal */
|
|
36
44
|
export declare const ComputerUseServerTool$outboundSchema: z.ZodType<ComputerUseServerTool$Outbound, ComputerUseServerTool>;
|
|
@@ -13,16 +13,23 @@ export const Environment = {
|
|
|
13
13
|
Ubuntu: "ubuntu",
|
|
14
14
|
Browser: "browser",
|
|
15
15
|
};
|
|
16
|
+
export const ComputerUseServerToolType = {
|
|
17
|
+
ComputerUsePreview: "computer_use_preview",
|
|
18
|
+
};
|
|
16
19
|
/** @internal */
|
|
17
20
|
export const Environment$inboundSchema = openEnums.inboundSchema(Environment);
|
|
18
21
|
/** @internal */
|
|
19
22
|
export const Environment$outboundSchema = openEnums.outboundSchema(Environment);
|
|
20
23
|
/** @internal */
|
|
24
|
+
export const ComputerUseServerToolType$inboundSchema = z.enum(ComputerUseServerToolType);
|
|
25
|
+
/** @internal */
|
|
26
|
+
export const ComputerUseServerToolType$outboundSchema = ComputerUseServerToolType$inboundSchema;
|
|
27
|
+
/** @internal */
|
|
21
28
|
export const ComputerUseServerTool$inboundSchema = z.object({
|
|
22
29
|
display_height: z.int(),
|
|
23
30
|
display_width: z.int(),
|
|
24
31
|
environment: Environment$inboundSchema,
|
|
25
|
-
type:
|
|
32
|
+
type: ComputerUseServerToolType$inboundSchema,
|
|
26
33
|
}).transform((v) => {
|
|
27
34
|
return remap$(v, {
|
|
28
35
|
"display_height": "displayHeight",
|
|
@@ -34,7 +41,7 @@ export const ComputerUseServerTool$outboundSchema = z.object({
|
|
|
34
41
|
displayHeight: z.int(),
|
|
35
42
|
displayWidth: z.int(),
|
|
36
43
|
environment: Environment$outboundSchema,
|
|
37
|
-
type:
|
|
44
|
+
type: ComputerUseServerToolType$outboundSchema,
|
|
38
45
|
}).transform((v) => {
|
|
39
46
|
return remap$(v, {
|
|
40
47
|
displayHeight: "display_height",
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import * as z from "zod/v4";
|
|
2
|
+
import { ClosedEnum } from "../types/enums.js";
|
|
3
|
+
export declare const ContextCompactionItemType: {
|
|
4
|
+
readonly ContextCompaction: "context_compaction";
|
|
5
|
+
};
|
|
6
|
+
export type ContextCompactionItemType = ClosedEnum<typeof ContextCompactionItemType>;
|
|
7
|
+
/**
|
|
8
|
+
* A context compaction marker with an optional encrypted summary
|
|
9
|
+
*/
|
|
10
|
+
export type ContextCompactionItem = {
|
|
11
|
+
encryptedContent?: string | null | undefined;
|
|
12
|
+
id?: string | null | undefined;
|
|
13
|
+
type: ContextCompactionItemType;
|
|
14
|
+
additionalProperties?: {
|
|
15
|
+
[k: string]: any | null;
|
|
16
|
+
} | undefined;
|
|
17
|
+
};
|
|
18
|
+
/** @internal */
|
|
19
|
+
export declare const ContextCompactionItemType$outboundSchema: z.ZodEnum<typeof ContextCompactionItemType>;
|
|
20
|
+
/** @internal */
|
|
21
|
+
export type ContextCompactionItem$Outbound = {
|
|
22
|
+
encrypted_content?: string | null | undefined;
|
|
23
|
+
id?: string | null | undefined;
|
|
24
|
+
type: string;
|
|
25
|
+
[additionalProperties: string]: unknown;
|
|
26
|
+
};
|
|
27
|
+
/** @internal */
|
|
28
|
+
export declare const ContextCompactionItem$outboundSchema: z.ZodType<ContextCompactionItem$Outbound, ContextCompactionItem>;
|
|
29
|
+
export declare function contextCompactionItemToJSON(contextCompactionItem: ContextCompactionItem): string;
|
|
30
|
+
//# sourceMappingURL=contextcompactionitem.d.ts.map
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
/*
|
|
2
|
+
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
+
* @generated-id: 8f97e5138d46
|
|
4
|
+
*/
|
|
5
|
+
import * as z from "zod/v4";
|
|
6
|
+
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
|
+
export const ContextCompactionItemType = {
|
|
8
|
+
ContextCompaction: "context_compaction",
|
|
9
|
+
};
|
|
10
|
+
/** @internal */
|
|
11
|
+
export const ContextCompactionItemType$outboundSchema = z.enum(ContextCompactionItemType);
|
|
12
|
+
/** @internal */
|
|
13
|
+
export const ContextCompactionItem$outboundSchema = z.object({
|
|
14
|
+
encryptedContent: z.nullable(z.string()).optional(),
|
|
15
|
+
id: z.nullable(z.string()).optional(),
|
|
16
|
+
type: ContextCompactionItemType$outboundSchema,
|
|
17
|
+
additionalProperties: z.record(z.string(), z.nullable(z.any())).optional(),
|
|
18
|
+
}).transform((v) => {
|
|
19
|
+
return {
|
|
20
|
+
...v.additionalProperties,
|
|
21
|
+
...remap$(v, {
|
|
22
|
+
encryptedContent: "encrypted_content",
|
|
23
|
+
additionalProperties: null,
|
|
24
|
+
}),
|
|
25
|
+
};
|
|
26
|
+
});
|
|
27
|
+
export function contextCompactionItemToJSON(contextCompactionItem) {
|
|
28
|
+
return JSON.stringify(ContextCompactionItem$outboundSchema.parse(contextCompactionItem));
|
|
29
|
+
}
|
|
30
|
+
//# sourceMappingURL=contextcompactionitem.js.map
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as z from "zod/v4";
|
|
2
2
|
import * as discriminatedUnionTypes from "../types/discriminatedUnion.js";
|
|
3
|
-
import { OpenEnum } from "../types/enums.js";
|
|
3
|
+
import { ClosedEnum, OpenEnum } from "../types/enums.js";
|
|
4
4
|
import { Result as SafeParseResult } from "../types/fp.js";
|
|
5
5
|
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
6
6
|
export declare const Syntax: {
|
|
@@ -17,6 +17,10 @@ export type FormatText = {
|
|
|
17
17
|
type: "text";
|
|
18
18
|
};
|
|
19
19
|
export type Format = FormatText | FormatGrammar | discriminatedUnionTypes.Unknown<"type">;
|
|
20
|
+
export declare const CustomToolTypeCustom: {
|
|
21
|
+
readonly Custom: "custom";
|
|
22
|
+
};
|
|
23
|
+
export type CustomToolTypeCustom = ClosedEnum<typeof CustomToolTypeCustom>;
|
|
20
24
|
/**
|
|
21
25
|
* Custom tool configuration
|
|
22
26
|
*/
|
|
@@ -24,7 +28,7 @@ export type CustomTool = {
|
|
|
24
28
|
description?: string | undefined;
|
|
25
29
|
format?: FormatText | FormatGrammar | discriminatedUnionTypes.Unknown<"type"> | undefined;
|
|
26
30
|
name: string;
|
|
27
|
-
type:
|
|
31
|
+
type: CustomToolTypeCustom;
|
|
28
32
|
};
|
|
29
33
|
/** @internal */
|
|
30
34
|
export declare const Syntax$inboundSchema: z.ZodType<Syntax, unknown>;
|
|
@@ -61,13 +65,17 @@ export declare const Format$outboundSchema: z.ZodType<Format$Outbound, Format>;
|
|
|
61
65
|
export declare function formatToJSON(format: Format): string;
|
|
62
66
|
export declare function formatFromJSON(jsonString: string): SafeParseResult<Format, SDKValidationError>;
|
|
63
67
|
/** @internal */
|
|
68
|
+
export declare const CustomToolTypeCustom$inboundSchema: z.ZodEnum<typeof CustomToolTypeCustom>;
|
|
69
|
+
/** @internal */
|
|
70
|
+
export declare const CustomToolTypeCustom$outboundSchema: z.ZodEnum<typeof CustomToolTypeCustom>;
|
|
71
|
+
/** @internal */
|
|
64
72
|
export declare const CustomTool$inboundSchema: z.ZodType<CustomTool, unknown>;
|
|
65
73
|
/** @internal */
|
|
66
74
|
export type CustomTool$Outbound = {
|
|
67
75
|
description?: string | undefined;
|
|
68
76
|
format?: FormatText$Outbound | FormatGrammar$Outbound | undefined;
|
|
69
77
|
name: string;
|
|
70
|
-
type:
|
|
78
|
+
type: string;
|
|
71
79
|
};
|
|
72
80
|
/** @internal */
|
|
73
81
|
export declare const CustomTool$outboundSchema: z.ZodType<CustomTool$Outbound, CustomTool>;
|
package/esm/models/customtool.js
CHANGED
|
@@ -10,6 +10,9 @@ export const Syntax = {
|
|
|
10
10
|
Lark: "lark",
|
|
11
11
|
Regex: "regex",
|
|
12
12
|
};
|
|
13
|
+
export const CustomToolTypeCustom = {
|
|
14
|
+
Custom: "custom",
|
|
15
|
+
};
|
|
13
16
|
/** @internal */
|
|
14
17
|
export const Syntax$inboundSchema = openEnums
|
|
15
18
|
.inboundSchema(Syntax);
|
|
@@ -68,6 +71,10 @@ export function formatFromJSON(jsonString) {
|
|
|
68
71
|
return safeParse(jsonString, (x) => Format$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'Format' from JSON`);
|
|
69
72
|
}
|
|
70
73
|
/** @internal */
|
|
74
|
+
export const CustomToolTypeCustom$inboundSchema = z.enum(CustomToolTypeCustom);
|
|
75
|
+
/** @internal */
|
|
76
|
+
export const CustomToolTypeCustom$outboundSchema = CustomToolTypeCustom$inboundSchema;
|
|
77
|
+
/** @internal */
|
|
71
78
|
export const CustomTool$inboundSchema = z
|
|
72
79
|
.object({
|
|
73
80
|
description: z.string().optional(),
|
|
@@ -76,7 +83,7 @@ export const CustomTool$inboundSchema = z
|
|
|
76
83
|
grammar: z.lazy(() => FormatGrammar$inboundSchema),
|
|
77
84
|
}).optional(),
|
|
78
85
|
name: z.string(),
|
|
79
|
-
type:
|
|
86
|
+
type: CustomToolTypeCustom$inboundSchema,
|
|
80
87
|
});
|
|
81
88
|
/** @internal */
|
|
82
89
|
export const CustomTool$outboundSchema = z.object({
|
|
@@ -86,7 +93,7 @@ export const CustomTool$outboundSchema = z.object({
|
|
|
86
93
|
z.lazy(() => FormatGrammar$outboundSchema),
|
|
87
94
|
]).optional(),
|
|
88
95
|
name: z.string(),
|
|
89
|
-
type:
|
|
96
|
+
type: CustomToolTypeCustom$outboundSchema,
|
|
90
97
|
});
|
|
91
98
|
export function customToolToJSON(customTool) {
|
|
92
99
|
return JSON.stringify(CustomTool$outboundSchema.parse(customTool));
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as z from "zod/v4";
|
|
2
|
-
import { OpenEnum } from "../types/enums.js";
|
|
2
|
+
import { ClosedEnum, OpenEnum } from "../types/enums.js";
|
|
3
3
|
import { Result as SafeParseResult } from "../types/fp.js";
|
|
4
4
|
import { CompoundFilter, CompoundFilter$Outbound } from "./compoundfilter.js";
|
|
5
5
|
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
@@ -29,6 +29,10 @@ export type RankingOptions = {
|
|
|
29
29
|
ranker?: Ranker | undefined;
|
|
30
30
|
scoreThreshold?: number | undefined;
|
|
31
31
|
};
|
|
32
|
+
export declare const TypeFileSearch: {
|
|
33
|
+
readonly FileSearch: "file_search";
|
|
34
|
+
};
|
|
35
|
+
export type TypeFileSearch = ClosedEnum<typeof TypeFileSearch>;
|
|
32
36
|
/**
|
|
33
37
|
* File search tool configuration
|
|
34
38
|
*/
|
|
@@ -36,7 +40,7 @@ export type FileSearchServerTool = {
|
|
|
36
40
|
filters?: Filters | CompoundFilter | any | null | undefined;
|
|
37
41
|
maxNumResults?: number | undefined;
|
|
38
42
|
rankingOptions?: RankingOptions | undefined;
|
|
39
|
-
type:
|
|
43
|
+
type: TypeFileSearch;
|
|
40
44
|
vectorStoreIds: Array<string>;
|
|
41
45
|
};
|
|
42
46
|
/** @internal */
|
|
@@ -95,13 +99,17 @@ export declare const RankingOptions$outboundSchema: z.ZodType<RankingOptions$Out
|
|
|
95
99
|
export declare function rankingOptionsToJSON(rankingOptions: RankingOptions): string;
|
|
96
100
|
export declare function rankingOptionsFromJSON(jsonString: string): SafeParseResult<RankingOptions, SDKValidationError>;
|
|
97
101
|
/** @internal */
|
|
102
|
+
export declare const TypeFileSearch$inboundSchema: z.ZodEnum<typeof TypeFileSearch>;
|
|
103
|
+
/** @internal */
|
|
104
|
+
export declare const TypeFileSearch$outboundSchema: z.ZodEnum<typeof TypeFileSearch>;
|
|
105
|
+
/** @internal */
|
|
98
106
|
export declare const FileSearchServerTool$inboundSchema: z.ZodType<FileSearchServerTool, unknown>;
|
|
99
107
|
/** @internal */
|
|
100
108
|
export type FileSearchServerTool$Outbound = {
|
|
101
109
|
filters?: Filters$Outbound | CompoundFilter$Outbound | any | null | undefined;
|
|
102
110
|
max_num_results?: number | undefined;
|
|
103
111
|
ranking_options?: RankingOptions$Outbound | undefined;
|
|
104
|
-
type:
|
|
112
|
+
type: string;
|
|
105
113
|
vector_store_ids: Array<string>;
|
|
106
114
|
};
|
|
107
115
|
/** @internal */
|
|
@@ -19,6 +19,9 @@ export const Ranker = {
|
|
|
19
19
|
Auto: "auto",
|
|
20
20
|
Default20241115: "default-2024-11-15",
|
|
21
21
|
};
|
|
22
|
+
export const TypeFileSearch = {
|
|
23
|
+
FileSearch: "file_search",
|
|
24
|
+
};
|
|
22
25
|
/** @internal */
|
|
23
26
|
export const FiltersType$inboundSchema = openEnums.inboundSchema(FiltersType);
|
|
24
27
|
/** @internal */
|
|
@@ -132,6 +135,11 @@ export function rankingOptionsFromJSON(jsonString) {
|
|
|
132
135
|
return safeParse(jsonString, (x) => RankingOptions$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'RankingOptions' from JSON`);
|
|
133
136
|
}
|
|
134
137
|
/** @internal */
|
|
138
|
+
export const TypeFileSearch$inboundSchema = z
|
|
139
|
+
.enum(TypeFileSearch);
|
|
140
|
+
/** @internal */
|
|
141
|
+
export const TypeFileSearch$outboundSchema = TypeFileSearch$inboundSchema;
|
|
142
|
+
/** @internal */
|
|
135
143
|
export const FileSearchServerTool$inboundSchema = z.object({
|
|
136
144
|
filters: z.nullable(z.union([
|
|
137
145
|
z.lazy(() => Filters$inboundSchema),
|
|
@@ -140,7 +148,7 @@ export const FileSearchServerTool$inboundSchema = z.object({
|
|
|
140
148
|
])).optional(),
|
|
141
149
|
max_num_results: z.int().optional(),
|
|
142
150
|
ranking_options: z.lazy(() => RankingOptions$inboundSchema).optional(),
|
|
143
|
-
type:
|
|
151
|
+
type: TypeFileSearch$inboundSchema,
|
|
144
152
|
vector_store_ids: z.array(z.string()),
|
|
145
153
|
}).transform((v) => {
|
|
146
154
|
return remap$(v, {
|
|
@@ -158,7 +166,7 @@ export const FileSearchServerTool$outboundSchema = z.object({
|
|
|
158
166
|
])).optional(),
|
|
159
167
|
maxNumResults: z.int().optional(),
|
|
160
168
|
rankingOptions: z.lazy(() => RankingOptions$outboundSchema).optional(),
|
|
161
|
-
type:
|
|
169
|
+
type: TypeFileSearch$outboundSchema,
|
|
162
170
|
vectorStoreIds: z.array(z.string()),
|
|
163
171
|
}).transform((v) => {
|
|
164
172
|
return remap$(v, {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as z from "zod/v4";
|
|
2
|
-
import { OpenEnum } from "../types/enums.js";
|
|
2
|
+
import { ClosedEnum, OpenEnum } from "../types/enums.js";
|
|
3
3
|
import { Result as SafeParseResult } from "../types/fp.js";
|
|
4
4
|
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
5
5
|
export declare const ImageGenerationServerToolBackground: {
|
|
@@ -35,6 +35,10 @@ export declare const ImageGenerationServerToolQuality: {
|
|
|
35
35
|
readonly Auto: "auto";
|
|
36
36
|
};
|
|
37
37
|
export type ImageGenerationServerToolQuality = OpenEnum<typeof ImageGenerationServerToolQuality>;
|
|
38
|
+
export declare const ImageGenerationServerToolType: {
|
|
39
|
+
readonly ImageGeneration: "image_generation";
|
|
40
|
+
};
|
|
41
|
+
export type ImageGenerationServerToolType = ClosedEnum<typeof ImageGenerationServerToolType>;
|
|
38
42
|
/**
|
|
39
43
|
* Image generation tool configuration
|
|
40
44
|
*/
|
|
@@ -49,7 +53,7 @@ export type ImageGenerationServerTool = {
|
|
|
49
53
|
partialImages?: number | undefined;
|
|
50
54
|
quality?: ImageGenerationServerToolQuality | undefined;
|
|
51
55
|
size?: string | undefined;
|
|
52
|
-
type:
|
|
56
|
+
type: ImageGenerationServerToolType;
|
|
53
57
|
};
|
|
54
58
|
/** @internal */
|
|
55
59
|
export declare const ImageGenerationServerToolBackground$inboundSchema: z.ZodType<ImageGenerationServerToolBackground, unknown>;
|
|
@@ -83,6 +87,10 @@ export declare const ImageGenerationServerToolQuality$inboundSchema: z.ZodType<I
|
|
|
83
87
|
/** @internal */
|
|
84
88
|
export declare const ImageGenerationServerToolQuality$outboundSchema: z.ZodType<string, ImageGenerationServerToolQuality>;
|
|
85
89
|
/** @internal */
|
|
90
|
+
export declare const ImageGenerationServerToolType$inboundSchema: z.ZodEnum<typeof ImageGenerationServerToolType>;
|
|
91
|
+
/** @internal */
|
|
92
|
+
export declare const ImageGenerationServerToolType$outboundSchema: z.ZodEnum<typeof ImageGenerationServerToolType>;
|
|
93
|
+
/** @internal */
|
|
86
94
|
export declare const ImageGenerationServerTool$inboundSchema: z.ZodType<ImageGenerationServerTool, unknown>;
|
|
87
95
|
/** @internal */
|
|
88
96
|
export type ImageGenerationServerTool$Outbound = {
|
|
@@ -96,7 +104,7 @@ export type ImageGenerationServerTool$Outbound = {
|
|
|
96
104
|
partial_images?: number | undefined;
|
|
97
105
|
quality?: string | undefined;
|
|
98
106
|
size?: string | undefined;
|
|
99
|
-
type:
|
|
107
|
+
type: string;
|
|
100
108
|
};
|
|
101
109
|
/** @internal */
|
|
102
110
|
export declare const ImageGenerationServerTool$outboundSchema: z.ZodType<ImageGenerationServerTool$Outbound, ImageGenerationServerTool>;
|
|
@@ -30,6 +30,9 @@ export const ImageGenerationServerToolQuality = {
|
|
|
30
30
|
High: "high",
|
|
31
31
|
Auto: "auto",
|
|
32
32
|
};
|
|
33
|
+
export const ImageGenerationServerToolType = {
|
|
34
|
+
ImageGeneration: "image_generation",
|
|
35
|
+
};
|
|
33
36
|
/** @internal */
|
|
34
37
|
export const ImageGenerationServerToolBackground$inboundSchema = openEnums.inboundSchema(ImageGenerationServerToolBackground);
|
|
35
38
|
/** @internal */
|
|
@@ -77,6 +80,10 @@ export const ImageGenerationServerToolQuality$inboundSchema = openEnums.inboundS
|
|
|
77
80
|
/** @internal */
|
|
78
81
|
export const ImageGenerationServerToolQuality$outboundSchema = openEnums.outboundSchema(ImageGenerationServerToolQuality);
|
|
79
82
|
/** @internal */
|
|
83
|
+
export const ImageGenerationServerToolType$inboundSchema = z.enum(ImageGenerationServerToolType);
|
|
84
|
+
/** @internal */
|
|
85
|
+
export const ImageGenerationServerToolType$outboundSchema = ImageGenerationServerToolType$inboundSchema;
|
|
86
|
+
/** @internal */
|
|
80
87
|
export const ImageGenerationServerTool$inboundSchema = z.object({
|
|
81
88
|
background: ImageGenerationServerToolBackground$inboundSchema.optional(),
|
|
82
89
|
input_fidelity: z.nullable(InputFidelity$inboundSchema).optional(),
|
|
@@ -88,7 +95,7 @@ export const ImageGenerationServerTool$inboundSchema = z.object({
|
|
|
88
95
|
partial_images: z.int().optional(),
|
|
89
96
|
quality: ImageGenerationServerToolQuality$inboundSchema.optional(),
|
|
90
97
|
size: z.string().optional(),
|
|
91
|
-
type:
|
|
98
|
+
type: ImageGenerationServerToolType$inboundSchema,
|
|
92
99
|
}).transform((v) => {
|
|
93
100
|
return remap$(v, {
|
|
94
101
|
"input_fidelity": "inputFidelity",
|
|
@@ -110,7 +117,7 @@ export const ImageGenerationServerTool$outboundSchema = z.object({
|
|
|
110
117
|
partialImages: z.int().optional(),
|
|
111
118
|
quality: ImageGenerationServerToolQuality$outboundSchema.optional(),
|
|
112
119
|
size: z.string().optional(),
|
|
113
|
-
type:
|
|
120
|
+
type: ImageGenerationServerToolType$outboundSchema,
|
|
114
121
|
}).transform((v) => {
|
|
115
122
|
return remap$(v, {
|
|
116
123
|
inputFidelity: "input_fidelity",
|
package/esm/models/index.d.ts
CHANGED
|
@@ -1,10 +1,12 @@
|
|
|
1
1
|
export * from "./aabenchmarkentry.js";
|
|
2
2
|
export * from "./activityitem.js";
|
|
3
3
|
export * from "./activityresponse.js";
|
|
4
|
+
export * from "./additionaltoolsitem.js";
|
|
4
5
|
export * from "./advisornestedtool.js";
|
|
5
6
|
export * from "./advisorreasoning.js";
|
|
6
7
|
export * from "./advisorservertoolconfig.js";
|
|
7
8
|
export * from "./advisorservertoolopenrouter.js";
|
|
9
|
+
export * from "./agentmessageitem.js";
|
|
8
10
|
export * from "./annotationaddedevent.js";
|
|
9
11
|
export * from "./anthropicadvisormessageusageiteration.js";
|
|
10
12
|
export * from "./anthropicallowedcallers.js";
|
|
@@ -146,6 +148,7 @@ export * from "./contentpartinputaudio.js";
|
|
|
146
148
|
export * from "./contentpartinputfile.js";
|
|
147
149
|
export * from "./contentpartinputvideo.js";
|
|
148
150
|
export * from "./contentpartvideo.js";
|
|
151
|
+
export * from "./contextcompactionitem.js";
|
|
149
152
|
export * from "./contextcompressionengine.js";
|
|
150
153
|
export * from "./contextcompressionplugin.js";
|
|
151
154
|
export * from "./costdetails.js";
|
package/esm/models/index.js
CHANGED
|
@@ -5,10 +5,12 @@
|
|
|
5
5
|
export * from "./aabenchmarkentry.js";
|
|
6
6
|
export * from "./activityitem.js";
|
|
7
7
|
export * from "./activityresponse.js";
|
|
8
|
+
export * from "./additionaltoolsitem.js";
|
|
8
9
|
export * from "./advisornestedtool.js";
|
|
9
10
|
export * from "./advisorreasoning.js";
|
|
10
11
|
export * from "./advisorservertoolconfig.js";
|
|
11
12
|
export * from "./advisorservertoolopenrouter.js";
|
|
13
|
+
export * from "./agentmessageitem.js";
|
|
12
14
|
export * from "./annotationaddedevent.js";
|
|
13
15
|
export * from "./anthropicadvisormessageusageiteration.js";
|
|
14
16
|
export * from "./anthropicallowedcallers.js";
|
|
@@ -150,6 +152,7 @@ export * from "./contentpartinputaudio.js";
|
|
|
150
152
|
export * from "./contentpartinputfile.js";
|
|
151
153
|
export * from "./contentpartinputvideo.js";
|
|
152
154
|
export * from "./contentpartvideo.js";
|
|
155
|
+
export * from "./contextcompactionitem.js";
|
|
153
156
|
export * from "./contextcompressionengine.js";
|
|
154
157
|
export * from "./contextcompressionplugin.js";
|
|
155
158
|
export * from "./costdetails.js";
|
|
@@ -1,8 +1,11 @@
|
|
|
1
1
|
import * as z from "zod/v4";
|
|
2
2
|
import { ClosedEnum } from "../types/enums.js";
|
|
3
|
+
import { AdditionalToolsItem, AdditionalToolsItem$Outbound } from "./additionaltoolsitem.js";
|
|
4
|
+
import { AgentMessageItem, AgentMessageItem$Outbound } from "./agentmessageitem.js";
|
|
3
5
|
import { ApplyPatchCallItem, ApplyPatchCallItem$Outbound } from "./applypatchcallitem.js";
|
|
4
6
|
import { ApplyPatchCallOutputItem, ApplyPatchCallOutputItem$Outbound } from "./applypatchcalloutputitem.js";
|
|
5
7
|
import { CompactionItem, CompactionItem$Outbound } from "./compactionitem.js";
|
|
8
|
+
import { ContextCompactionItem, ContextCompactionItem$Outbound } from "./contextcompactionitem.js";
|
|
6
9
|
import { CustomToolCallItem, CustomToolCallItem$Outbound } from "./customtoolcallitem.js";
|
|
7
10
|
import { CustomToolCallOutputItem, CustomToolCallOutputItem$Outbound } from "./customtoolcalloutputitem.js";
|
|
8
11
|
import { EasyInputMessage, EasyInputMessage$Outbound } from "./easyinputmessage.js";
|
|
@@ -131,11 +134,11 @@ export type InputsMessage = {
|
|
|
131
134
|
status?: InputsStatusCompleted1 | InputsStatusIncomplete1 | InputsStatusInProgress1 | undefined;
|
|
132
135
|
type: InputsTypeMessage;
|
|
133
136
|
};
|
|
134
|
-
export type InputsUnion1 = OutputCodeInterpreterCallItem | FunctionCallItem | LocalShellCallItem | McpApprovalRequestItem | McpCallItem | ApplyPatchCallItem | InputsMessage | OutputFunctionCallItem | OutputCustomToolCallItem | OutputFileSearchCallItem | OutputComputerCallItem | OutputDatetimeItem | McpListToolsItem | CustomToolCallItem | ReasoningItem | FunctionCallOutputItem | ApplyPatchCallOutputItem | InputsReasoning | OutputWebSearchCallItem | OutputImageGenerationCallItem | LocalShellCallOutputItem | ShellCallItem | ShellCallOutputItem | McpApprovalResponseItem | CustomToolCallOutputItem | OutputWebSearchServerToolItem | OutputCodeInterpreterServerToolItem | OutputFileSearchServerToolItem | OutputImageGenerationServerToolItem | OutputBrowserUseServerToolItem | OutputBashServerToolItem | OutputTextEditorServerToolItem | OutputApplyPatchServerToolItem | OutputWebFetchServerToolItem | OutputToolSearchServerToolItem | OutputMemoryServerToolItem | OutputMcpServerToolItem | OutputSearchModelsServerToolItem | OutputFusionServerToolItem | OutputAdvisorServerToolItem | OutputSubagentServerToolItem | OutputFilesServerToolItem | CompactionItem | ItemReferenceItem | EasyInputMessage | InputMessageItem;
|
|
137
|
+
export type InputsUnion1 = OutputCodeInterpreterCallItem | FunctionCallItem | LocalShellCallItem | McpApprovalRequestItem | McpCallItem | ApplyPatchCallItem | InputsMessage | OutputFunctionCallItem | OutputCustomToolCallItem | OutputFileSearchCallItem | OutputComputerCallItem | OutputDatetimeItem | McpListToolsItem | CustomToolCallItem | AgentMessageItem | ReasoningItem | FunctionCallOutputItem | ApplyPatchCallOutputItem | InputsReasoning | OutputWebSearchCallItem | OutputImageGenerationCallItem | LocalShellCallOutputItem | ShellCallItem | ShellCallOutputItem | McpApprovalResponseItem | CustomToolCallOutputItem | AdditionalToolsItem | OutputWebSearchServerToolItem | OutputCodeInterpreterServerToolItem | OutputFileSearchServerToolItem | OutputImageGenerationServerToolItem | OutputBrowserUseServerToolItem | OutputBashServerToolItem | OutputTextEditorServerToolItem | OutputApplyPatchServerToolItem | OutputWebFetchServerToolItem | OutputToolSearchServerToolItem | OutputMemoryServerToolItem | OutputMcpServerToolItem | OutputSearchModelsServerToolItem | OutputFusionServerToolItem | OutputAdvisorServerToolItem | OutputSubagentServerToolItem | OutputFilesServerToolItem | CompactionItem | ItemReferenceItem | EasyInputMessage | InputMessageItem | ContextCompactionItem;
|
|
135
138
|
/**
|
|
136
139
|
* Input for a response request - can be a string or array of items
|
|
137
140
|
*/
|
|
138
|
-
export type InputsUnion = string | Array<OutputCodeInterpreterCallItem | FunctionCallItem | LocalShellCallItem | McpApprovalRequestItem | McpCallItem | ApplyPatchCallItem | InputsMessage | OutputFunctionCallItem | OutputCustomToolCallItem | OutputFileSearchCallItem | OutputComputerCallItem | OutputDatetimeItem | McpListToolsItem | CustomToolCallItem | ReasoningItem | FunctionCallOutputItem | ApplyPatchCallOutputItem | InputsReasoning | OutputWebSearchCallItem | OutputImageGenerationCallItem | LocalShellCallOutputItem | ShellCallItem | ShellCallOutputItem | McpApprovalResponseItem | CustomToolCallOutputItem | OutputWebSearchServerToolItem | OutputCodeInterpreterServerToolItem | OutputFileSearchServerToolItem | OutputImageGenerationServerToolItem | OutputBrowserUseServerToolItem | OutputBashServerToolItem | OutputTextEditorServerToolItem | OutputApplyPatchServerToolItem | OutputWebFetchServerToolItem | OutputToolSearchServerToolItem | OutputMemoryServerToolItem | OutputMcpServerToolItem | OutputSearchModelsServerToolItem | OutputFusionServerToolItem | OutputAdvisorServerToolItem | OutputSubagentServerToolItem | OutputFilesServerToolItem | CompactionItem | ItemReferenceItem | EasyInputMessage | InputMessageItem>;
|
|
141
|
+
export type InputsUnion = string | Array<OutputCodeInterpreterCallItem | FunctionCallItem | LocalShellCallItem | McpApprovalRequestItem | McpCallItem | ApplyPatchCallItem | InputsMessage | OutputFunctionCallItem | OutputCustomToolCallItem | OutputFileSearchCallItem | OutputComputerCallItem | OutputDatetimeItem | McpListToolsItem | CustomToolCallItem | AgentMessageItem | ReasoningItem | FunctionCallOutputItem | ApplyPatchCallOutputItem | InputsReasoning | OutputWebSearchCallItem | OutputImageGenerationCallItem | LocalShellCallOutputItem | ShellCallItem | ShellCallOutputItem | McpApprovalResponseItem | CustomToolCallOutputItem | AdditionalToolsItem | OutputWebSearchServerToolItem | OutputCodeInterpreterServerToolItem | OutputFileSearchServerToolItem | OutputImageGenerationServerToolItem | OutputBrowserUseServerToolItem | OutputBashServerToolItem | OutputTextEditorServerToolItem | OutputApplyPatchServerToolItem | OutputWebFetchServerToolItem | OutputToolSearchServerToolItem | OutputMemoryServerToolItem | OutputMcpServerToolItem | OutputSearchModelsServerToolItem | OutputFusionServerToolItem | OutputAdvisorServerToolItem | OutputSubagentServerToolItem | OutputFilesServerToolItem | CompactionItem | ItemReferenceItem | EasyInputMessage | InputMessageItem | ContextCompactionItem>;
|
|
139
142
|
/** @internal */
|
|
140
143
|
export declare const InputsStatusInProgress2$outboundSchema: z.ZodEnum<typeof InputsStatusInProgress2>;
|
|
141
144
|
/** @internal */
|
|
@@ -210,12 +213,12 @@ export type InputsMessage$Outbound = {
|
|
|
210
213
|
export declare const InputsMessage$outboundSchema: z.ZodType<InputsMessage$Outbound, InputsMessage>;
|
|
211
214
|
export declare function inputsMessageToJSON(inputsMessage: InputsMessage): string;
|
|
212
215
|
/** @internal */
|
|
213
|
-
export type InputsUnion1$Outbound = OutputCodeInterpreterCallItem$Outbound | FunctionCallItem$Outbound | LocalShellCallItem$Outbound | McpApprovalRequestItem$Outbound | McpCallItem$Outbound | ApplyPatchCallItem$Outbound | InputsMessage$Outbound | OutputFunctionCallItem$Outbound | OutputCustomToolCallItem$Outbound | OutputFileSearchCallItem$Outbound | OutputComputerCallItem$Outbound | OutputDatetimeItem$Outbound | McpListToolsItem$Outbound | CustomToolCallItem$Outbound | ReasoningItem$Outbound | FunctionCallOutputItem$Outbound | ApplyPatchCallOutputItem$Outbound | InputsReasoning$Outbound | OutputWebSearchCallItem$Outbound | OutputImageGenerationCallItem$Outbound | LocalShellCallOutputItem$Outbound | ShellCallItem$Outbound | ShellCallOutputItem$Outbound | McpApprovalResponseItem$Outbound | CustomToolCallOutputItem$Outbound | OutputWebSearchServerToolItem$Outbound | OutputCodeInterpreterServerToolItem$Outbound | OutputFileSearchServerToolItem$Outbound | OutputImageGenerationServerToolItem$Outbound | OutputBrowserUseServerToolItem$Outbound | OutputBashServerToolItem$Outbound | OutputTextEditorServerToolItem$Outbound | OutputApplyPatchServerToolItem$Outbound | OutputWebFetchServerToolItem$Outbound | OutputToolSearchServerToolItem$Outbound | OutputMemoryServerToolItem$Outbound | OutputMcpServerToolItem$Outbound | OutputSearchModelsServerToolItem$Outbound | OutputFusionServerToolItem$Outbound | OutputAdvisorServerToolItem$Outbound | OutputSubagentServerToolItem$Outbound | OutputFilesServerToolItem$Outbound | CompactionItem$Outbound | ItemReferenceItem$Outbound | EasyInputMessage$Outbound | InputMessageItem$Outbound;
|
|
216
|
+
export type InputsUnion1$Outbound = OutputCodeInterpreterCallItem$Outbound | FunctionCallItem$Outbound | LocalShellCallItem$Outbound | McpApprovalRequestItem$Outbound | McpCallItem$Outbound | ApplyPatchCallItem$Outbound | InputsMessage$Outbound | OutputFunctionCallItem$Outbound | OutputCustomToolCallItem$Outbound | OutputFileSearchCallItem$Outbound | OutputComputerCallItem$Outbound | OutputDatetimeItem$Outbound | McpListToolsItem$Outbound | CustomToolCallItem$Outbound | AgentMessageItem$Outbound | ReasoningItem$Outbound | FunctionCallOutputItem$Outbound | ApplyPatchCallOutputItem$Outbound | InputsReasoning$Outbound | OutputWebSearchCallItem$Outbound | OutputImageGenerationCallItem$Outbound | LocalShellCallOutputItem$Outbound | ShellCallItem$Outbound | ShellCallOutputItem$Outbound | McpApprovalResponseItem$Outbound | CustomToolCallOutputItem$Outbound | AdditionalToolsItem$Outbound | OutputWebSearchServerToolItem$Outbound | OutputCodeInterpreterServerToolItem$Outbound | OutputFileSearchServerToolItem$Outbound | OutputImageGenerationServerToolItem$Outbound | OutputBrowserUseServerToolItem$Outbound | OutputBashServerToolItem$Outbound | OutputTextEditorServerToolItem$Outbound | OutputApplyPatchServerToolItem$Outbound | OutputWebFetchServerToolItem$Outbound | OutputToolSearchServerToolItem$Outbound | OutputMemoryServerToolItem$Outbound | OutputMcpServerToolItem$Outbound | OutputSearchModelsServerToolItem$Outbound | OutputFusionServerToolItem$Outbound | OutputAdvisorServerToolItem$Outbound | OutputSubagentServerToolItem$Outbound | OutputFilesServerToolItem$Outbound | CompactionItem$Outbound | ItemReferenceItem$Outbound | EasyInputMessage$Outbound | InputMessageItem$Outbound | ContextCompactionItem$Outbound;
|
|
214
217
|
/** @internal */
|
|
215
218
|
export declare const InputsUnion1$outboundSchema: z.ZodType<InputsUnion1$Outbound, InputsUnion1>;
|
|
216
219
|
export declare function inputsUnion1ToJSON(inputsUnion1: InputsUnion1): string;
|
|
217
220
|
/** @internal */
|
|
218
|
-
export type InputsUnion$Outbound = string | Array<OutputCodeInterpreterCallItem$Outbound | FunctionCallItem$Outbound | LocalShellCallItem$Outbound | McpApprovalRequestItem$Outbound | McpCallItem$Outbound | ApplyPatchCallItem$Outbound | InputsMessage$Outbound | OutputFunctionCallItem$Outbound | OutputCustomToolCallItem$Outbound | OutputFileSearchCallItem$Outbound | OutputComputerCallItem$Outbound | OutputDatetimeItem$Outbound | McpListToolsItem$Outbound | CustomToolCallItem$Outbound | ReasoningItem$Outbound | FunctionCallOutputItem$Outbound | ApplyPatchCallOutputItem$Outbound | InputsReasoning$Outbound | OutputWebSearchCallItem$Outbound | OutputImageGenerationCallItem$Outbound | LocalShellCallOutputItem$Outbound | ShellCallItem$Outbound | ShellCallOutputItem$Outbound | McpApprovalResponseItem$Outbound | CustomToolCallOutputItem$Outbound | OutputWebSearchServerToolItem$Outbound | OutputCodeInterpreterServerToolItem$Outbound | OutputFileSearchServerToolItem$Outbound | OutputImageGenerationServerToolItem$Outbound | OutputBrowserUseServerToolItem$Outbound | OutputBashServerToolItem$Outbound | OutputTextEditorServerToolItem$Outbound | OutputApplyPatchServerToolItem$Outbound | OutputWebFetchServerToolItem$Outbound | OutputToolSearchServerToolItem$Outbound | OutputMemoryServerToolItem$Outbound | OutputMcpServerToolItem$Outbound | OutputSearchModelsServerToolItem$Outbound | OutputFusionServerToolItem$Outbound | OutputAdvisorServerToolItem$Outbound | OutputSubagentServerToolItem$Outbound | OutputFilesServerToolItem$Outbound | CompactionItem$Outbound | ItemReferenceItem$Outbound | EasyInputMessage$Outbound | InputMessageItem$Outbound>;
|
|
221
|
+
export type InputsUnion$Outbound = string | Array<OutputCodeInterpreterCallItem$Outbound | FunctionCallItem$Outbound | LocalShellCallItem$Outbound | McpApprovalRequestItem$Outbound | McpCallItem$Outbound | ApplyPatchCallItem$Outbound | InputsMessage$Outbound | OutputFunctionCallItem$Outbound | OutputCustomToolCallItem$Outbound | OutputFileSearchCallItem$Outbound | OutputComputerCallItem$Outbound | OutputDatetimeItem$Outbound | McpListToolsItem$Outbound | CustomToolCallItem$Outbound | AgentMessageItem$Outbound | ReasoningItem$Outbound | FunctionCallOutputItem$Outbound | ApplyPatchCallOutputItem$Outbound | InputsReasoning$Outbound | OutputWebSearchCallItem$Outbound | OutputImageGenerationCallItem$Outbound | LocalShellCallOutputItem$Outbound | ShellCallItem$Outbound | ShellCallOutputItem$Outbound | McpApprovalResponseItem$Outbound | CustomToolCallOutputItem$Outbound | AdditionalToolsItem$Outbound | OutputWebSearchServerToolItem$Outbound | OutputCodeInterpreterServerToolItem$Outbound | OutputFileSearchServerToolItem$Outbound | OutputImageGenerationServerToolItem$Outbound | OutputBrowserUseServerToolItem$Outbound | OutputBashServerToolItem$Outbound | OutputTextEditorServerToolItem$Outbound | OutputApplyPatchServerToolItem$Outbound | OutputWebFetchServerToolItem$Outbound | OutputToolSearchServerToolItem$Outbound | OutputMemoryServerToolItem$Outbound | OutputMcpServerToolItem$Outbound | OutputSearchModelsServerToolItem$Outbound | OutputFusionServerToolItem$Outbound | OutputAdvisorServerToolItem$Outbound | OutputSubagentServerToolItem$Outbound | OutputFilesServerToolItem$Outbound | CompactionItem$Outbound | ItemReferenceItem$Outbound | EasyInputMessage$Outbound | InputMessageItem$Outbound | ContextCompactionItem$Outbound>;
|
|
219
222
|
/** @internal */
|
|
220
223
|
export declare const InputsUnion$outboundSchema: z.ZodType<InputsUnion$Outbound, InputsUnion>;
|
|
221
224
|
export declare function inputsUnionToJSON(inputsUnion: InputsUnion): string;
|
|
@@ -4,9 +4,12 @@
|
|
|
4
4
|
*/
|
|
5
5
|
import * as z from "zod/v4";
|
|
6
6
|
import { remap as remap$ } from "../lib/primitives.js";
|
|
7
|
+
import { AdditionalToolsItem$outboundSchema, } from "./additionaltoolsitem.js";
|
|
8
|
+
import { AgentMessageItem$outboundSchema, } from "./agentmessageitem.js";
|
|
7
9
|
import { ApplyPatchCallItem$outboundSchema, } from "./applypatchcallitem.js";
|
|
8
10
|
import { ApplyPatchCallOutputItem$outboundSchema, } from "./applypatchcalloutputitem.js";
|
|
9
11
|
import { CompactionItem$outboundSchema, } from "./compactionitem.js";
|
|
12
|
+
import { ContextCompactionItem$outboundSchema, } from "./contextcompactionitem.js";
|
|
10
13
|
import { CustomToolCallItem$outboundSchema, } from "./customtoolcallitem.js";
|
|
11
14
|
import { CustomToolCallOutputItem$outboundSchema, } from "./customtoolcalloutputitem.js";
|
|
12
15
|
import { EasyInputMessage$outboundSchema, } from "./easyinputmessage.js";
|
|
@@ -220,6 +223,7 @@ export const InputsUnion1$outboundSchema = z.union([
|
|
|
220
223
|
OutputDatetimeItem$outboundSchema,
|
|
221
224
|
McpListToolsItem$outboundSchema,
|
|
222
225
|
CustomToolCallItem$outboundSchema,
|
|
226
|
+
AgentMessageItem$outboundSchema,
|
|
223
227
|
ReasoningItem$outboundSchema,
|
|
224
228
|
FunctionCallOutputItem$outboundSchema,
|
|
225
229
|
ApplyPatchCallOutputItem$outboundSchema,
|
|
@@ -231,6 +235,7 @@ export const InputsUnion1$outboundSchema = z.union([
|
|
|
231
235
|
ShellCallOutputItem$outboundSchema,
|
|
232
236
|
McpApprovalResponseItem$outboundSchema,
|
|
233
237
|
CustomToolCallOutputItem$outboundSchema,
|
|
238
|
+
AdditionalToolsItem$outboundSchema,
|
|
234
239
|
OutputWebSearchServerToolItem$outboundSchema,
|
|
235
240
|
OutputCodeInterpreterServerToolItem$outboundSchema,
|
|
236
241
|
OutputFileSearchServerToolItem$outboundSchema,
|
|
@@ -252,6 +257,7 @@ export const InputsUnion1$outboundSchema = z.union([
|
|
|
252
257
|
ItemReferenceItem$outboundSchema,
|
|
253
258
|
EasyInputMessage$outboundSchema,
|
|
254
259
|
InputMessageItem$outboundSchema,
|
|
260
|
+
ContextCompactionItem$outboundSchema,
|
|
255
261
|
]);
|
|
256
262
|
export function inputsUnion1ToJSON(inputsUnion1) {
|
|
257
263
|
return JSON.stringify(InputsUnion1$outboundSchema.parse(inputsUnion1));
|
|
@@ -274,6 +280,7 @@ export const InputsUnion$outboundSchema = z.union([
|
|
|
274
280
|
OutputDatetimeItem$outboundSchema,
|
|
275
281
|
McpListToolsItem$outboundSchema,
|
|
276
282
|
CustomToolCallItem$outboundSchema,
|
|
283
|
+
AgentMessageItem$outboundSchema,
|
|
277
284
|
ReasoningItem$outboundSchema,
|
|
278
285
|
FunctionCallOutputItem$outboundSchema,
|
|
279
286
|
ApplyPatchCallOutputItem$outboundSchema,
|
|
@@ -285,6 +292,7 @@ export const InputsUnion$outboundSchema = z.union([
|
|
|
285
292
|
ShellCallOutputItem$outboundSchema,
|
|
286
293
|
McpApprovalResponseItem$outboundSchema,
|
|
287
294
|
CustomToolCallOutputItem$outboundSchema,
|
|
295
|
+
AdditionalToolsItem$outboundSchema,
|
|
288
296
|
OutputWebSearchServerToolItem$outboundSchema,
|
|
289
297
|
OutputCodeInterpreterServerToolItem$outboundSchema,
|
|
290
298
|
OutputFileSearchServerToolItem$outboundSchema,
|
|
@@ -306,6 +314,7 @@ export const InputsUnion$outboundSchema = z.union([
|
|
|
306
314
|
ItemReferenceItem$outboundSchema,
|
|
307
315
|
EasyInputMessage$outboundSchema,
|
|
308
316
|
InputMessageItem$outboundSchema,
|
|
317
|
+
ContextCompactionItem$outboundSchema,
|
|
309
318
|
])),
|
|
310
319
|
]);
|
|
311
320
|
export function inputsUnionToJSON(inputsUnion) {
|