@openrouter/sdk 0.0.1-beta.5 → 0.0.1-beta.6
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/jsr.json +1 -1
- package/lib/config.d.ts +3 -3
- package/lib/config.js +3 -3
- package/models/index.d.ts +7 -0
- package/models/index.js +7 -0
- package/models/openresponsesinputitem.d.ts +8 -461
- package/models/openresponsesinputitem.js +18 -466
- package/models/openresponseswebsearchpreview20250311tool.d.ts +11 -65
- package/models/openresponseswebsearchpreview20250311tool.js +18 -65
- package/models/openresponseswebsearchpreviewtool.d.ts +11 -65
- package/models/openresponseswebsearchpreviewtool.js +17 -66
- package/models/responsesimagegenerationcall.d.ts +58 -0
- package/models/responsesimagegenerationcall.js +55 -0
- package/models/responsesoutputitem.d.ts +8 -461
- package/models/responsesoutputitem.js +18 -464
- package/models/responsesoutputitemfilesearchcall.d.ts +58 -0
- package/models/responsesoutputitemfilesearchcall.js +55 -0
- package/models/responsesoutputitemfunctioncall.d.ts +59 -0
- package/models/responsesoutputitemfunctioncall.js +65 -0
- package/models/responsesoutputitemreasoning.d.ts +61 -0
- package/models/responsesoutputitemreasoning.js +67 -0
- package/models/responsesoutputmessage.d.ts +191 -0
- package/models/responsesoutputmessage.js +189 -0
- package/models/responseswebsearchcalloutput.d.ts +56 -0
- package/models/responseswebsearchcalloutput.js +53 -0
- package/models/websearchpreviewtooluserlocation.d.ts +59 -0
- package/models/websearchpreviewtooluserlocation.js +56 -0
- package/package.json +1 -1
|
@@ -1,473 +1,20 @@
|
|
|
1
1
|
import * as z from "zod/v3";
|
|
2
|
-
import { ClosedEnum } from "../types/enums.js";
|
|
3
2
|
import { Result as SafeParseResult } from "../types/fp.js";
|
|
4
3
|
import { SDKValidationError } from "./errors/sdkvalidationerror.js";
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
import {
|
|
11
|
-
export declare const ResponsesOutputItemTypeImageGenerationCall: {
|
|
12
|
-
readonly ImageGenerationCall: "image_generation_call";
|
|
13
|
-
};
|
|
14
|
-
export type ResponsesOutputItemTypeImageGenerationCall = ClosedEnum<typeof ResponsesOutputItemTypeImageGenerationCall>;
|
|
15
|
-
export type ResponsesOutputItemImageGenerationCall = {
|
|
16
|
-
type: ResponsesOutputItemTypeImageGenerationCall;
|
|
17
|
-
id: string;
|
|
18
|
-
result: string | null;
|
|
19
|
-
status: ImageGenerationStatus;
|
|
20
|
-
};
|
|
21
|
-
export declare const ResponsesOutputItemTypeFileSearchCall: {
|
|
22
|
-
readonly FileSearchCall: "file_search_call";
|
|
23
|
-
};
|
|
24
|
-
export type ResponsesOutputItemTypeFileSearchCall = ClosedEnum<typeof ResponsesOutputItemTypeFileSearchCall>;
|
|
25
|
-
export type ResponsesOutputItemFileSearchCall = {
|
|
26
|
-
type: ResponsesOutputItemTypeFileSearchCall;
|
|
27
|
-
id: string;
|
|
28
|
-
queries: Array<string>;
|
|
29
|
-
status: WebSearchStatus;
|
|
30
|
-
};
|
|
31
|
-
export declare const ResponsesOutputItemTypeWebSearchCall: {
|
|
32
|
-
readonly WebSearchCall: "web_search_call";
|
|
33
|
-
};
|
|
34
|
-
export type ResponsesOutputItemTypeWebSearchCall = ClosedEnum<typeof ResponsesOutputItemTypeWebSearchCall>;
|
|
35
|
-
export type ResponsesOutputItemWebSearchCall = {
|
|
36
|
-
type: ResponsesOutputItemTypeWebSearchCall;
|
|
37
|
-
id: string;
|
|
38
|
-
status: WebSearchStatus;
|
|
39
|
-
};
|
|
40
|
-
export declare const ResponsesOutputItemTypeFunctionCall: {
|
|
41
|
-
readonly FunctionCall: "function_call";
|
|
42
|
-
};
|
|
43
|
-
export type ResponsesOutputItemTypeFunctionCall = ClosedEnum<typeof ResponsesOutputItemTypeFunctionCall>;
|
|
44
|
-
export type ResponsesOutputItemFunctionCall = {
|
|
45
|
-
type: ResponsesOutputItemTypeFunctionCall;
|
|
46
|
-
id?: string | undefined;
|
|
47
|
-
name: string;
|
|
48
|
-
arguments: string;
|
|
49
|
-
callId: string;
|
|
50
|
-
};
|
|
51
|
-
export declare const ResponsesOutputItemTypeReasoning: {
|
|
52
|
-
readonly Reasoning: "reasoning";
|
|
53
|
-
};
|
|
54
|
-
export type ResponsesOutputItemTypeReasoning = ClosedEnum<typeof ResponsesOutputItemTypeReasoning>;
|
|
55
|
-
export type ResponsesOutputItemReasoning = {
|
|
56
|
-
type: ResponsesOutputItemTypeReasoning;
|
|
57
|
-
id?: string | undefined;
|
|
58
|
-
content?: Array<ReasoningTextContent> | undefined;
|
|
59
|
-
summary: Array<ReasoningSummaryText>;
|
|
60
|
-
encryptedContent?: string | null | undefined;
|
|
61
|
-
};
|
|
62
|
-
export declare const ResponsesOutputItemRole: {
|
|
63
|
-
readonly Assistant: "assistant";
|
|
64
|
-
};
|
|
65
|
-
export type ResponsesOutputItemRole = ClosedEnum<typeof ResponsesOutputItemRole>;
|
|
66
|
-
export declare const ResponsesOutputItemTypeMessage: {
|
|
67
|
-
readonly Message: "message";
|
|
68
|
-
};
|
|
69
|
-
export type ResponsesOutputItemTypeMessage = ClosedEnum<typeof ResponsesOutputItemTypeMessage>;
|
|
70
|
-
export declare const ResponsesOutputItemStatusInProgress: {
|
|
71
|
-
readonly InProgress: "in_progress";
|
|
72
|
-
};
|
|
73
|
-
export type ResponsesOutputItemStatusInProgress = ClosedEnum<typeof ResponsesOutputItemStatusInProgress>;
|
|
74
|
-
export declare const ResponsesOutputItemStatusIncomplete: {
|
|
75
|
-
readonly Incomplete: "incomplete";
|
|
76
|
-
};
|
|
77
|
-
export type ResponsesOutputItemStatusIncomplete = ClosedEnum<typeof ResponsesOutputItemStatusIncomplete>;
|
|
78
|
-
export declare const ResponsesOutputItemStatusCompleted: {
|
|
79
|
-
readonly Completed: "completed";
|
|
80
|
-
};
|
|
81
|
-
export type ResponsesOutputItemStatusCompleted = ClosedEnum<typeof ResponsesOutputItemStatusCompleted>;
|
|
82
|
-
export type ResponsesOutputItemStatusUnion = ResponsesOutputItemStatusCompleted | ResponsesOutputItemStatusIncomplete | ResponsesOutputItemStatusInProgress;
|
|
83
|
-
export type ResponsesOutputItemContent = OutputTextContent | RefusalContent;
|
|
84
|
-
export type ResponsesOutputItemMessage = {
|
|
85
|
-
id: string;
|
|
86
|
-
role: ResponsesOutputItemRole;
|
|
87
|
-
type: ResponsesOutputItemTypeMessage;
|
|
88
|
-
status: ResponsesOutputItemStatusCompleted | ResponsesOutputItemStatusIncomplete | ResponsesOutputItemStatusInProgress;
|
|
89
|
-
content: Array<OutputTextContent | RefusalContent>;
|
|
90
|
-
};
|
|
4
|
+
import { ResponsesImageGenerationCall, ResponsesImageGenerationCall$Outbound } from "./responsesimagegenerationcall.js";
|
|
5
|
+
import { ResponsesOutputItemFileSearchCall, ResponsesOutputItemFileSearchCall$Outbound } from "./responsesoutputitemfilesearchcall.js";
|
|
6
|
+
import { ResponsesOutputItemFunctionCall, ResponsesOutputItemFunctionCall$Outbound } from "./responsesoutputitemfunctioncall.js";
|
|
7
|
+
import { ResponsesOutputItemReasoning, ResponsesOutputItemReasoning$Outbound } from "./responsesoutputitemreasoning.js";
|
|
8
|
+
import { ResponsesOutputMessage, ResponsesOutputMessage$Outbound } from "./responsesoutputmessage.js";
|
|
9
|
+
import { ResponsesWebSearchCallOutput, ResponsesWebSearchCallOutput$Outbound } from "./responseswebsearchcalloutput.js";
|
|
91
10
|
/**
|
|
92
11
|
* An output item from the response
|
|
93
12
|
*/
|
|
94
|
-
export type ResponsesOutputItem =
|
|
95
|
-
/** @internal */
|
|
96
|
-
export declare const ResponsesOutputItemTypeImageGenerationCall$inboundSchema: z.ZodNativeEnum<typeof ResponsesOutputItemTypeImageGenerationCall>;
|
|
97
|
-
/** @internal */
|
|
98
|
-
export declare const ResponsesOutputItemTypeImageGenerationCall$outboundSchema: z.ZodNativeEnum<typeof ResponsesOutputItemTypeImageGenerationCall>;
|
|
99
|
-
/**
|
|
100
|
-
* @internal
|
|
101
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
102
|
-
*/
|
|
103
|
-
export declare namespace ResponsesOutputItemTypeImageGenerationCall$ {
|
|
104
|
-
/** @deprecated use `ResponsesOutputItemTypeImageGenerationCall$inboundSchema` instead. */
|
|
105
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
106
|
-
readonly ImageGenerationCall: "image_generation_call";
|
|
107
|
-
}>;
|
|
108
|
-
/** @deprecated use `ResponsesOutputItemTypeImageGenerationCall$outboundSchema` instead. */
|
|
109
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
110
|
-
readonly ImageGenerationCall: "image_generation_call";
|
|
111
|
-
}>;
|
|
112
|
-
}
|
|
113
|
-
/** @internal */
|
|
114
|
-
export declare const ResponsesOutputItemImageGenerationCall$inboundSchema: z.ZodType<ResponsesOutputItemImageGenerationCall, z.ZodTypeDef, unknown>;
|
|
115
|
-
/** @internal */
|
|
116
|
-
export type ResponsesOutputItemImageGenerationCall$Outbound = {
|
|
117
|
-
type: string;
|
|
118
|
-
id: string;
|
|
119
|
-
result: string | null;
|
|
120
|
-
status: string;
|
|
121
|
-
};
|
|
122
|
-
/** @internal */
|
|
123
|
-
export declare const ResponsesOutputItemImageGenerationCall$outboundSchema: z.ZodType<ResponsesOutputItemImageGenerationCall$Outbound, z.ZodTypeDef, ResponsesOutputItemImageGenerationCall>;
|
|
124
|
-
/**
|
|
125
|
-
* @internal
|
|
126
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
127
|
-
*/
|
|
128
|
-
export declare namespace ResponsesOutputItemImageGenerationCall$ {
|
|
129
|
-
/** @deprecated use `ResponsesOutputItemImageGenerationCall$inboundSchema` instead. */
|
|
130
|
-
const inboundSchema: z.ZodType<ResponsesOutputItemImageGenerationCall, z.ZodTypeDef, unknown>;
|
|
131
|
-
/** @deprecated use `ResponsesOutputItemImageGenerationCall$outboundSchema` instead. */
|
|
132
|
-
const outboundSchema: z.ZodType<ResponsesOutputItemImageGenerationCall$Outbound, z.ZodTypeDef, ResponsesOutputItemImageGenerationCall>;
|
|
133
|
-
/** @deprecated use `ResponsesOutputItemImageGenerationCall$Outbound` instead. */
|
|
134
|
-
type Outbound = ResponsesOutputItemImageGenerationCall$Outbound;
|
|
135
|
-
}
|
|
136
|
-
export declare function responsesOutputItemImageGenerationCallToJSON(responsesOutputItemImageGenerationCall: ResponsesOutputItemImageGenerationCall): string;
|
|
137
|
-
export declare function responsesOutputItemImageGenerationCallFromJSON(jsonString: string): SafeParseResult<ResponsesOutputItemImageGenerationCall, SDKValidationError>;
|
|
138
|
-
/** @internal */
|
|
139
|
-
export declare const ResponsesOutputItemTypeFileSearchCall$inboundSchema: z.ZodNativeEnum<typeof ResponsesOutputItemTypeFileSearchCall>;
|
|
140
|
-
/** @internal */
|
|
141
|
-
export declare const ResponsesOutputItemTypeFileSearchCall$outboundSchema: z.ZodNativeEnum<typeof ResponsesOutputItemTypeFileSearchCall>;
|
|
142
|
-
/**
|
|
143
|
-
* @internal
|
|
144
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
145
|
-
*/
|
|
146
|
-
export declare namespace ResponsesOutputItemTypeFileSearchCall$ {
|
|
147
|
-
/** @deprecated use `ResponsesOutputItemTypeFileSearchCall$inboundSchema` instead. */
|
|
148
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
149
|
-
readonly FileSearchCall: "file_search_call";
|
|
150
|
-
}>;
|
|
151
|
-
/** @deprecated use `ResponsesOutputItemTypeFileSearchCall$outboundSchema` instead. */
|
|
152
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
153
|
-
readonly FileSearchCall: "file_search_call";
|
|
154
|
-
}>;
|
|
155
|
-
}
|
|
156
|
-
/** @internal */
|
|
157
|
-
export declare const ResponsesOutputItemFileSearchCall$inboundSchema: z.ZodType<ResponsesOutputItemFileSearchCall, z.ZodTypeDef, unknown>;
|
|
158
|
-
/** @internal */
|
|
159
|
-
export type ResponsesOutputItemFileSearchCall$Outbound = {
|
|
160
|
-
type: string;
|
|
161
|
-
id: string;
|
|
162
|
-
queries: Array<string>;
|
|
163
|
-
status: string;
|
|
164
|
-
};
|
|
165
|
-
/** @internal */
|
|
166
|
-
export declare const ResponsesOutputItemFileSearchCall$outboundSchema: z.ZodType<ResponsesOutputItemFileSearchCall$Outbound, z.ZodTypeDef, ResponsesOutputItemFileSearchCall>;
|
|
167
|
-
/**
|
|
168
|
-
* @internal
|
|
169
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
170
|
-
*/
|
|
171
|
-
export declare namespace ResponsesOutputItemFileSearchCall$ {
|
|
172
|
-
/** @deprecated use `ResponsesOutputItemFileSearchCall$inboundSchema` instead. */
|
|
173
|
-
const inboundSchema: z.ZodType<ResponsesOutputItemFileSearchCall, z.ZodTypeDef, unknown>;
|
|
174
|
-
/** @deprecated use `ResponsesOutputItemFileSearchCall$outboundSchema` instead. */
|
|
175
|
-
const outboundSchema: z.ZodType<ResponsesOutputItemFileSearchCall$Outbound, z.ZodTypeDef, ResponsesOutputItemFileSearchCall>;
|
|
176
|
-
/** @deprecated use `ResponsesOutputItemFileSearchCall$Outbound` instead. */
|
|
177
|
-
type Outbound = ResponsesOutputItemFileSearchCall$Outbound;
|
|
178
|
-
}
|
|
179
|
-
export declare function responsesOutputItemFileSearchCallToJSON(responsesOutputItemFileSearchCall: ResponsesOutputItemFileSearchCall): string;
|
|
180
|
-
export declare function responsesOutputItemFileSearchCallFromJSON(jsonString: string): SafeParseResult<ResponsesOutputItemFileSearchCall, SDKValidationError>;
|
|
181
|
-
/** @internal */
|
|
182
|
-
export declare const ResponsesOutputItemTypeWebSearchCall$inboundSchema: z.ZodNativeEnum<typeof ResponsesOutputItemTypeWebSearchCall>;
|
|
183
|
-
/** @internal */
|
|
184
|
-
export declare const ResponsesOutputItemTypeWebSearchCall$outboundSchema: z.ZodNativeEnum<typeof ResponsesOutputItemTypeWebSearchCall>;
|
|
185
|
-
/**
|
|
186
|
-
* @internal
|
|
187
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
188
|
-
*/
|
|
189
|
-
export declare namespace ResponsesOutputItemTypeWebSearchCall$ {
|
|
190
|
-
/** @deprecated use `ResponsesOutputItemTypeWebSearchCall$inboundSchema` instead. */
|
|
191
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
192
|
-
readonly WebSearchCall: "web_search_call";
|
|
193
|
-
}>;
|
|
194
|
-
/** @deprecated use `ResponsesOutputItemTypeWebSearchCall$outboundSchema` instead. */
|
|
195
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
196
|
-
readonly WebSearchCall: "web_search_call";
|
|
197
|
-
}>;
|
|
198
|
-
}
|
|
199
|
-
/** @internal */
|
|
200
|
-
export declare const ResponsesOutputItemWebSearchCall$inboundSchema: z.ZodType<ResponsesOutputItemWebSearchCall, z.ZodTypeDef, unknown>;
|
|
201
|
-
/** @internal */
|
|
202
|
-
export type ResponsesOutputItemWebSearchCall$Outbound = {
|
|
203
|
-
type: string;
|
|
204
|
-
id: string;
|
|
205
|
-
status: string;
|
|
206
|
-
};
|
|
207
|
-
/** @internal */
|
|
208
|
-
export declare const ResponsesOutputItemWebSearchCall$outboundSchema: z.ZodType<ResponsesOutputItemWebSearchCall$Outbound, z.ZodTypeDef, ResponsesOutputItemWebSearchCall>;
|
|
209
|
-
/**
|
|
210
|
-
* @internal
|
|
211
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
212
|
-
*/
|
|
213
|
-
export declare namespace ResponsesOutputItemWebSearchCall$ {
|
|
214
|
-
/** @deprecated use `ResponsesOutputItemWebSearchCall$inboundSchema` instead. */
|
|
215
|
-
const inboundSchema: z.ZodType<ResponsesOutputItemWebSearchCall, z.ZodTypeDef, unknown>;
|
|
216
|
-
/** @deprecated use `ResponsesOutputItemWebSearchCall$outboundSchema` instead. */
|
|
217
|
-
const outboundSchema: z.ZodType<ResponsesOutputItemWebSearchCall$Outbound, z.ZodTypeDef, ResponsesOutputItemWebSearchCall>;
|
|
218
|
-
/** @deprecated use `ResponsesOutputItemWebSearchCall$Outbound` instead. */
|
|
219
|
-
type Outbound = ResponsesOutputItemWebSearchCall$Outbound;
|
|
220
|
-
}
|
|
221
|
-
export declare function responsesOutputItemWebSearchCallToJSON(responsesOutputItemWebSearchCall: ResponsesOutputItemWebSearchCall): string;
|
|
222
|
-
export declare function responsesOutputItemWebSearchCallFromJSON(jsonString: string): SafeParseResult<ResponsesOutputItemWebSearchCall, SDKValidationError>;
|
|
223
|
-
/** @internal */
|
|
224
|
-
export declare const ResponsesOutputItemTypeFunctionCall$inboundSchema: z.ZodNativeEnum<typeof ResponsesOutputItemTypeFunctionCall>;
|
|
225
|
-
/** @internal */
|
|
226
|
-
export declare const ResponsesOutputItemTypeFunctionCall$outboundSchema: z.ZodNativeEnum<typeof ResponsesOutputItemTypeFunctionCall>;
|
|
227
|
-
/**
|
|
228
|
-
* @internal
|
|
229
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
230
|
-
*/
|
|
231
|
-
export declare namespace ResponsesOutputItemTypeFunctionCall$ {
|
|
232
|
-
/** @deprecated use `ResponsesOutputItemTypeFunctionCall$inboundSchema` instead. */
|
|
233
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
234
|
-
readonly FunctionCall: "function_call";
|
|
235
|
-
}>;
|
|
236
|
-
/** @deprecated use `ResponsesOutputItemTypeFunctionCall$outboundSchema` instead. */
|
|
237
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
238
|
-
readonly FunctionCall: "function_call";
|
|
239
|
-
}>;
|
|
240
|
-
}
|
|
241
|
-
/** @internal */
|
|
242
|
-
export declare const ResponsesOutputItemFunctionCall$inboundSchema: z.ZodType<ResponsesOutputItemFunctionCall, z.ZodTypeDef, unknown>;
|
|
243
|
-
/** @internal */
|
|
244
|
-
export type ResponsesOutputItemFunctionCall$Outbound = {
|
|
245
|
-
type: string;
|
|
246
|
-
id?: string | undefined;
|
|
247
|
-
name: string;
|
|
248
|
-
arguments: string;
|
|
249
|
-
call_id: string;
|
|
250
|
-
};
|
|
251
|
-
/** @internal */
|
|
252
|
-
export declare const ResponsesOutputItemFunctionCall$outboundSchema: z.ZodType<ResponsesOutputItemFunctionCall$Outbound, z.ZodTypeDef, ResponsesOutputItemFunctionCall>;
|
|
253
|
-
/**
|
|
254
|
-
* @internal
|
|
255
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
256
|
-
*/
|
|
257
|
-
export declare namespace ResponsesOutputItemFunctionCall$ {
|
|
258
|
-
/** @deprecated use `ResponsesOutputItemFunctionCall$inboundSchema` instead. */
|
|
259
|
-
const inboundSchema: z.ZodType<ResponsesOutputItemFunctionCall, z.ZodTypeDef, unknown>;
|
|
260
|
-
/** @deprecated use `ResponsesOutputItemFunctionCall$outboundSchema` instead. */
|
|
261
|
-
const outboundSchema: z.ZodType<ResponsesOutputItemFunctionCall$Outbound, z.ZodTypeDef, ResponsesOutputItemFunctionCall>;
|
|
262
|
-
/** @deprecated use `ResponsesOutputItemFunctionCall$Outbound` instead. */
|
|
263
|
-
type Outbound = ResponsesOutputItemFunctionCall$Outbound;
|
|
264
|
-
}
|
|
265
|
-
export declare function responsesOutputItemFunctionCallToJSON(responsesOutputItemFunctionCall: ResponsesOutputItemFunctionCall): string;
|
|
266
|
-
export declare function responsesOutputItemFunctionCallFromJSON(jsonString: string): SafeParseResult<ResponsesOutputItemFunctionCall, SDKValidationError>;
|
|
267
|
-
/** @internal */
|
|
268
|
-
export declare const ResponsesOutputItemTypeReasoning$inboundSchema: z.ZodNativeEnum<typeof ResponsesOutputItemTypeReasoning>;
|
|
269
|
-
/** @internal */
|
|
270
|
-
export declare const ResponsesOutputItemTypeReasoning$outboundSchema: z.ZodNativeEnum<typeof ResponsesOutputItemTypeReasoning>;
|
|
271
|
-
/**
|
|
272
|
-
* @internal
|
|
273
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
274
|
-
*/
|
|
275
|
-
export declare namespace ResponsesOutputItemTypeReasoning$ {
|
|
276
|
-
/** @deprecated use `ResponsesOutputItemTypeReasoning$inboundSchema` instead. */
|
|
277
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
278
|
-
readonly Reasoning: "reasoning";
|
|
279
|
-
}>;
|
|
280
|
-
/** @deprecated use `ResponsesOutputItemTypeReasoning$outboundSchema` instead. */
|
|
281
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
282
|
-
readonly Reasoning: "reasoning";
|
|
283
|
-
}>;
|
|
284
|
-
}
|
|
285
|
-
/** @internal */
|
|
286
|
-
export declare const ResponsesOutputItemReasoning$inboundSchema: z.ZodType<ResponsesOutputItemReasoning, z.ZodTypeDef, unknown>;
|
|
287
|
-
/** @internal */
|
|
288
|
-
export type ResponsesOutputItemReasoning$Outbound = {
|
|
289
|
-
type: string;
|
|
290
|
-
id?: string | undefined;
|
|
291
|
-
content?: Array<ReasoningTextContent$Outbound> | undefined;
|
|
292
|
-
summary: Array<ReasoningSummaryText$Outbound>;
|
|
293
|
-
encrypted_content?: string | null | undefined;
|
|
294
|
-
};
|
|
295
|
-
/** @internal */
|
|
296
|
-
export declare const ResponsesOutputItemReasoning$outboundSchema: z.ZodType<ResponsesOutputItemReasoning$Outbound, z.ZodTypeDef, ResponsesOutputItemReasoning>;
|
|
297
|
-
/**
|
|
298
|
-
* @internal
|
|
299
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
300
|
-
*/
|
|
301
|
-
export declare namespace ResponsesOutputItemReasoning$ {
|
|
302
|
-
/** @deprecated use `ResponsesOutputItemReasoning$inboundSchema` instead. */
|
|
303
|
-
const inboundSchema: z.ZodType<ResponsesOutputItemReasoning, z.ZodTypeDef, unknown>;
|
|
304
|
-
/** @deprecated use `ResponsesOutputItemReasoning$outboundSchema` instead. */
|
|
305
|
-
const outboundSchema: z.ZodType<ResponsesOutputItemReasoning$Outbound, z.ZodTypeDef, ResponsesOutputItemReasoning>;
|
|
306
|
-
/** @deprecated use `ResponsesOutputItemReasoning$Outbound` instead. */
|
|
307
|
-
type Outbound = ResponsesOutputItemReasoning$Outbound;
|
|
308
|
-
}
|
|
309
|
-
export declare function responsesOutputItemReasoningToJSON(responsesOutputItemReasoning: ResponsesOutputItemReasoning): string;
|
|
310
|
-
export declare function responsesOutputItemReasoningFromJSON(jsonString: string): SafeParseResult<ResponsesOutputItemReasoning, SDKValidationError>;
|
|
311
|
-
/** @internal */
|
|
312
|
-
export declare const ResponsesOutputItemRole$inboundSchema: z.ZodNativeEnum<typeof ResponsesOutputItemRole>;
|
|
313
|
-
/** @internal */
|
|
314
|
-
export declare const ResponsesOutputItemRole$outboundSchema: z.ZodNativeEnum<typeof ResponsesOutputItemRole>;
|
|
315
|
-
/**
|
|
316
|
-
* @internal
|
|
317
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
318
|
-
*/
|
|
319
|
-
export declare namespace ResponsesOutputItemRole$ {
|
|
320
|
-
/** @deprecated use `ResponsesOutputItemRole$inboundSchema` instead. */
|
|
321
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
322
|
-
readonly Assistant: "assistant";
|
|
323
|
-
}>;
|
|
324
|
-
/** @deprecated use `ResponsesOutputItemRole$outboundSchema` instead. */
|
|
325
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
326
|
-
readonly Assistant: "assistant";
|
|
327
|
-
}>;
|
|
328
|
-
}
|
|
329
|
-
/** @internal */
|
|
330
|
-
export declare const ResponsesOutputItemTypeMessage$inboundSchema: z.ZodNativeEnum<typeof ResponsesOutputItemTypeMessage>;
|
|
331
|
-
/** @internal */
|
|
332
|
-
export declare const ResponsesOutputItemTypeMessage$outboundSchema: z.ZodNativeEnum<typeof ResponsesOutputItemTypeMessage>;
|
|
333
|
-
/**
|
|
334
|
-
* @internal
|
|
335
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
336
|
-
*/
|
|
337
|
-
export declare namespace ResponsesOutputItemTypeMessage$ {
|
|
338
|
-
/** @deprecated use `ResponsesOutputItemTypeMessage$inboundSchema` instead. */
|
|
339
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
340
|
-
readonly Message: "message";
|
|
341
|
-
}>;
|
|
342
|
-
/** @deprecated use `ResponsesOutputItemTypeMessage$outboundSchema` instead. */
|
|
343
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
344
|
-
readonly Message: "message";
|
|
345
|
-
}>;
|
|
346
|
-
}
|
|
347
|
-
/** @internal */
|
|
348
|
-
export declare const ResponsesOutputItemStatusInProgress$inboundSchema: z.ZodNativeEnum<typeof ResponsesOutputItemStatusInProgress>;
|
|
349
|
-
/** @internal */
|
|
350
|
-
export declare const ResponsesOutputItemStatusInProgress$outboundSchema: z.ZodNativeEnum<typeof ResponsesOutputItemStatusInProgress>;
|
|
351
|
-
/**
|
|
352
|
-
* @internal
|
|
353
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
354
|
-
*/
|
|
355
|
-
export declare namespace ResponsesOutputItemStatusInProgress$ {
|
|
356
|
-
/** @deprecated use `ResponsesOutputItemStatusInProgress$inboundSchema` instead. */
|
|
357
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
358
|
-
readonly InProgress: "in_progress";
|
|
359
|
-
}>;
|
|
360
|
-
/** @deprecated use `ResponsesOutputItemStatusInProgress$outboundSchema` instead. */
|
|
361
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
362
|
-
readonly InProgress: "in_progress";
|
|
363
|
-
}>;
|
|
364
|
-
}
|
|
365
|
-
/** @internal */
|
|
366
|
-
export declare const ResponsesOutputItemStatusIncomplete$inboundSchema: z.ZodNativeEnum<typeof ResponsesOutputItemStatusIncomplete>;
|
|
367
|
-
/** @internal */
|
|
368
|
-
export declare const ResponsesOutputItemStatusIncomplete$outboundSchema: z.ZodNativeEnum<typeof ResponsesOutputItemStatusIncomplete>;
|
|
369
|
-
/**
|
|
370
|
-
* @internal
|
|
371
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
372
|
-
*/
|
|
373
|
-
export declare namespace ResponsesOutputItemStatusIncomplete$ {
|
|
374
|
-
/** @deprecated use `ResponsesOutputItemStatusIncomplete$inboundSchema` instead. */
|
|
375
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
376
|
-
readonly Incomplete: "incomplete";
|
|
377
|
-
}>;
|
|
378
|
-
/** @deprecated use `ResponsesOutputItemStatusIncomplete$outboundSchema` instead. */
|
|
379
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
380
|
-
readonly Incomplete: "incomplete";
|
|
381
|
-
}>;
|
|
382
|
-
}
|
|
383
|
-
/** @internal */
|
|
384
|
-
export declare const ResponsesOutputItemStatusCompleted$inboundSchema: z.ZodNativeEnum<typeof ResponsesOutputItemStatusCompleted>;
|
|
385
|
-
/** @internal */
|
|
386
|
-
export declare const ResponsesOutputItemStatusCompleted$outboundSchema: z.ZodNativeEnum<typeof ResponsesOutputItemStatusCompleted>;
|
|
387
|
-
/**
|
|
388
|
-
* @internal
|
|
389
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
390
|
-
*/
|
|
391
|
-
export declare namespace ResponsesOutputItemStatusCompleted$ {
|
|
392
|
-
/** @deprecated use `ResponsesOutputItemStatusCompleted$inboundSchema` instead. */
|
|
393
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
394
|
-
readonly Completed: "completed";
|
|
395
|
-
}>;
|
|
396
|
-
/** @deprecated use `ResponsesOutputItemStatusCompleted$outboundSchema` instead. */
|
|
397
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
398
|
-
readonly Completed: "completed";
|
|
399
|
-
}>;
|
|
400
|
-
}
|
|
401
|
-
/** @internal */
|
|
402
|
-
export declare const ResponsesOutputItemStatusUnion$inboundSchema: z.ZodType<ResponsesOutputItemStatusUnion, z.ZodTypeDef, unknown>;
|
|
403
|
-
/** @internal */
|
|
404
|
-
export type ResponsesOutputItemStatusUnion$Outbound = string | string | string;
|
|
405
|
-
/** @internal */
|
|
406
|
-
export declare const ResponsesOutputItemStatusUnion$outboundSchema: z.ZodType<ResponsesOutputItemStatusUnion$Outbound, z.ZodTypeDef, ResponsesOutputItemStatusUnion>;
|
|
407
|
-
/**
|
|
408
|
-
* @internal
|
|
409
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
410
|
-
*/
|
|
411
|
-
export declare namespace ResponsesOutputItemStatusUnion$ {
|
|
412
|
-
/** @deprecated use `ResponsesOutputItemStatusUnion$inboundSchema` instead. */
|
|
413
|
-
const inboundSchema: z.ZodType<ResponsesOutputItemStatusUnion, z.ZodTypeDef, unknown>;
|
|
414
|
-
/** @deprecated use `ResponsesOutputItemStatusUnion$outboundSchema` instead. */
|
|
415
|
-
const outboundSchema: z.ZodType<string, z.ZodTypeDef, ResponsesOutputItemStatusUnion>;
|
|
416
|
-
/** @deprecated use `ResponsesOutputItemStatusUnion$Outbound` instead. */
|
|
417
|
-
type Outbound = ResponsesOutputItemStatusUnion$Outbound;
|
|
418
|
-
}
|
|
419
|
-
export declare function responsesOutputItemStatusUnionToJSON(responsesOutputItemStatusUnion: ResponsesOutputItemStatusUnion): string;
|
|
420
|
-
export declare function responsesOutputItemStatusUnionFromJSON(jsonString: string): SafeParseResult<ResponsesOutputItemStatusUnion, SDKValidationError>;
|
|
421
|
-
/** @internal */
|
|
422
|
-
export declare const ResponsesOutputItemContent$inboundSchema: z.ZodType<ResponsesOutputItemContent, z.ZodTypeDef, unknown>;
|
|
423
|
-
/** @internal */
|
|
424
|
-
export type ResponsesOutputItemContent$Outbound = OutputTextContent$Outbound | RefusalContent$Outbound;
|
|
425
|
-
/** @internal */
|
|
426
|
-
export declare const ResponsesOutputItemContent$outboundSchema: z.ZodType<ResponsesOutputItemContent$Outbound, z.ZodTypeDef, ResponsesOutputItemContent>;
|
|
427
|
-
/**
|
|
428
|
-
* @internal
|
|
429
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
430
|
-
*/
|
|
431
|
-
export declare namespace ResponsesOutputItemContent$ {
|
|
432
|
-
/** @deprecated use `ResponsesOutputItemContent$inboundSchema` instead. */
|
|
433
|
-
const inboundSchema: z.ZodType<ResponsesOutputItemContent, z.ZodTypeDef, unknown>;
|
|
434
|
-
/** @deprecated use `ResponsesOutputItemContent$outboundSchema` instead. */
|
|
435
|
-
const outboundSchema: z.ZodType<ResponsesOutputItemContent$Outbound, z.ZodTypeDef, ResponsesOutputItemContent>;
|
|
436
|
-
/** @deprecated use `ResponsesOutputItemContent$Outbound` instead. */
|
|
437
|
-
type Outbound = ResponsesOutputItemContent$Outbound;
|
|
438
|
-
}
|
|
439
|
-
export declare function responsesOutputItemContentToJSON(responsesOutputItemContent: ResponsesOutputItemContent): string;
|
|
440
|
-
export declare function responsesOutputItemContentFromJSON(jsonString: string): SafeParseResult<ResponsesOutputItemContent, SDKValidationError>;
|
|
441
|
-
/** @internal */
|
|
442
|
-
export declare const ResponsesOutputItemMessage$inboundSchema: z.ZodType<ResponsesOutputItemMessage, z.ZodTypeDef, unknown>;
|
|
443
|
-
/** @internal */
|
|
444
|
-
export type ResponsesOutputItemMessage$Outbound = {
|
|
445
|
-
id: string;
|
|
446
|
-
role: string;
|
|
447
|
-
type: string;
|
|
448
|
-
status: string | string | string;
|
|
449
|
-
content: Array<OutputTextContent$Outbound | RefusalContent$Outbound>;
|
|
450
|
-
};
|
|
451
|
-
/** @internal */
|
|
452
|
-
export declare const ResponsesOutputItemMessage$outboundSchema: z.ZodType<ResponsesOutputItemMessage$Outbound, z.ZodTypeDef, ResponsesOutputItemMessage>;
|
|
453
|
-
/**
|
|
454
|
-
* @internal
|
|
455
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
456
|
-
*/
|
|
457
|
-
export declare namespace ResponsesOutputItemMessage$ {
|
|
458
|
-
/** @deprecated use `ResponsesOutputItemMessage$inboundSchema` instead. */
|
|
459
|
-
const inboundSchema: z.ZodType<ResponsesOutputItemMessage, z.ZodTypeDef, unknown>;
|
|
460
|
-
/** @deprecated use `ResponsesOutputItemMessage$outboundSchema` instead. */
|
|
461
|
-
const outboundSchema: z.ZodType<ResponsesOutputItemMessage$Outbound, z.ZodTypeDef, ResponsesOutputItemMessage>;
|
|
462
|
-
/** @deprecated use `ResponsesOutputItemMessage$Outbound` instead. */
|
|
463
|
-
type Outbound = ResponsesOutputItemMessage$Outbound;
|
|
464
|
-
}
|
|
465
|
-
export declare function responsesOutputItemMessageToJSON(responsesOutputItemMessage: ResponsesOutputItemMessage): string;
|
|
466
|
-
export declare function responsesOutputItemMessageFromJSON(jsonString: string): SafeParseResult<ResponsesOutputItemMessage, SDKValidationError>;
|
|
13
|
+
export type ResponsesOutputItem = ResponsesOutputMessage | ResponsesOutputItemFunctionCall | ResponsesOutputItemFileSearchCall | ResponsesImageGenerationCall | ResponsesWebSearchCallOutput | ResponsesOutputItemReasoning;
|
|
467
14
|
/** @internal */
|
|
468
15
|
export declare const ResponsesOutputItem$inboundSchema: z.ZodType<ResponsesOutputItem, z.ZodTypeDef, unknown>;
|
|
469
16
|
/** @internal */
|
|
470
|
-
export type ResponsesOutputItem$Outbound =
|
|
17
|
+
export type ResponsesOutputItem$Outbound = ResponsesOutputMessage$Outbound | ResponsesOutputItemFunctionCall$Outbound | ResponsesOutputItemFileSearchCall$Outbound | ResponsesImageGenerationCall$Outbound | ResponsesWebSearchCallOutput$Outbound | ResponsesOutputItemReasoning$Outbound;
|
|
471
18
|
/** @internal */
|
|
472
19
|
export declare const ResponsesOutputItem$outboundSchema: z.ZodType<ResponsesOutputItem$Outbound, z.ZodTypeDef, ResponsesOutputItem>;
|
|
473
20
|
/**
|