@orq-ai/node 3.2.4 → 3.2.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/README.md +39 -1
- package/bin/mcp-server.js +2424 -704
- package/bin/mcp-server.js.map +28 -24
- package/docs/sdks/deployments/README.md +81 -0
- package/docs/sdks/prompts/README.md +110 -110
- package/funcs/deploymentsStream.d.ts +17 -0
- package/funcs/deploymentsStream.d.ts.map +1 -0
- package/funcs/deploymentsStream.js +130 -0
- package/funcs/deploymentsStream.js.map +1 -0
- package/funcs/promptsList.js +1 -1
- package/funcs/promptsList.js.map +1 -1
- package/jsr.json +2 -1
- package/lib/config.d.ts +2 -2
- package/lib/config.js +2 -2
- package/lib/event-streams.d.ts +17 -0
- package/lib/event-streams.d.ts.map +1 -0
- package/lib/event-streams.js +220 -0
- package/lib/event-streams.js.map +1 -0
- package/lib/matchers.d.ts.map +1 -1
- package/lib/matchers.js +4 -1
- package/lib/matchers.js.map +1 -1
- package/mcp-server/mcp-server.js +1 -1
- package/mcp-server/server.d.ts.map +1 -1
- package/mcp-server/server.js +4 -2
- package/mcp-server/server.js.map +1 -1
- package/mcp-server/tools/deploymentsStream.d.ts +8 -0
- package/mcp-server/tools/deploymentsStream.d.ts.map +1 -0
- package/mcp-server/tools/deploymentsStream.js +64 -0
- package/mcp-server/tools/deploymentsStream.js.map +1 -0
- package/models/operations/bulkcreatedatapoints.js +2 -2
- package/models/operations/createcontact.js +2 -2
- package/models/operations/createdataset.js +2 -2
- package/models/operations/createdatasetitem.js +2 -2
- package/models/operations/createprompt.d.ts +317 -317
- package/models/operations/createprompt.d.ts.map +1 -1
- package/models/operations/createprompt.js +444 -442
- package/models/operations/createprompt.js.map +1 -1
- package/models/operations/deploymentstream.d.ts +2938 -0
- package/models/operations/deploymentstream.d.ts.map +1 -0
- package/models/operations/deploymentstream.js +2828 -0
- package/models/operations/deploymentstream.js.map +1 -0
- package/models/operations/fileget.js +2 -2
- package/models/operations/filelist.js +2 -2
- package/models/operations/fileupload.js +2 -2
- package/models/operations/index.d.ts +1 -0
- package/models/operations/index.d.ts.map +1 -1
- package/models/operations/index.js +1 -0
- package/models/operations/index.js.map +1 -1
- package/models/operations/listdatasetdatapoints.js +2 -2
- package/models/operations/listdatasets.js +2 -2
- package/models/operations/retrievedatapoint.js +2 -2
- package/models/operations/retrievedataset.js +2 -2
- package/models/operations/updatedatapoint.js +2 -2
- package/models/operations/updatedataset.js +2 -2
- package/models/operations/updateprompt.d.ts +317 -317
- package/models/operations/updateprompt.d.ts.map +1 -1
- package/models/operations/updateprompt.js +444 -444
- package/models/operations/updateprompt.js.map +1 -1
- package/package.json +1 -1
- package/sdk/deployments.d.ts +8 -0
- package/sdk/deployments.d.ts.map +1 -1
- package/sdk/deployments.js +10 -0
- package/sdk/deployments.js.map +1 -1
- package/sdk/prompts.d.ts +4 -4
- package/sdk/prompts.d.ts.map +1 -1
- package/sdk/prompts.js +6 -6
- package/sdk/prompts.js.map +1 -1
- package/src/funcs/deploymentsStream.ts +178 -0
- package/src/funcs/promptsList.ts +1 -1
- package/src/lib/config.ts +2 -2
- package/src/lib/event-streams.ts +264 -0
- package/src/lib/matchers.ts +4 -1
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +4 -2
- package/src/mcp-server/tools/deploymentsStream.ts +37 -0
- package/src/models/operations/bulkcreatedatapoints.ts +2 -2
- package/src/models/operations/createcontact.ts +2 -2
- package/src/models/operations/createdataset.ts +2 -2
- package/src/models/operations/createdatasetitem.ts +2 -2
- package/src/models/operations/createprompt.ts +599 -680
- package/src/models/operations/deploymentstream.ts +5960 -0
- package/src/models/operations/fileget.ts +2 -2
- package/src/models/operations/filelist.ts +2 -2
- package/src/models/operations/fileupload.ts +2 -2
- package/src/models/operations/index.ts +1 -0
- package/src/models/operations/listdatasetdatapoints.ts +2 -2
- package/src/models/operations/listdatasets.ts +2 -2
- package/src/models/operations/retrievedatapoint.ts +2 -2
- package/src/models/operations/retrievedataset.ts +2 -2
- package/src/models/operations/updatedatapoint.ts +2 -2
- package/src/models/operations/updatedataset.ts +2 -2
- package/src/models/operations/updateprompt.ts +682 -599
- package/src/sdk/deployments.ts +19 -0
- package/src/sdk/prompts.ts +14 -14
|
@@ -0,0 +1,2938 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
3
|
+
import { Result as SafeParseResult } from "../../types/fp.js";
|
|
4
|
+
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
5
|
+
export type DeploymentStreamGlobals = {
|
|
6
|
+
environment?: string | undefined;
|
|
7
|
+
contactId?: string | undefined;
|
|
8
|
+
};
|
|
9
|
+
export type DeploymentStreamInputs = string | number | boolean;
|
|
10
|
+
/**
|
|
11
|
+
* The role of the messages author, in this case tool.
|
|
12
|
+
*/
|
|
13
|
+
export declare const DeploymentStreamPrefixMessagesDeploymentsRequestRequestBody5Role: {
|
|
14
|
+
readonly Tool: "tool";
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* The role of the messages author, in this case tool.
|
|
18
|
+
*/
|
|
19
|
+
export type DeploymentStreamPrefixMessagesDeploymentsRequestRequestBody5Role = ClosedEnum<typeof DeploymentStreamPrefixMessagesDeploymentsRequestRequestBody5Role>;
|
|
20
|
+
/**
|
|
21
|
+
* The contents of the tool message.
|
|
22
|
+
*/
|
|
23
|
+
export type DeploymentStreamPrefixMessagesDeploymentsRequestContent = string | Array<string>;
|
|
24
|
+
export type PrefixMessagesToolMessage = {
|
|
25
|
+
/**
|
|
26
|
+
* The role of the messages author, in this case tool.
|
|
27
|
+
*/
|
|
28
|
+
role: DeploymentStreamPrefixMessagesDeploymentsRequestRequestBody5Role;
|
|
29
|
+
/**
|
|
30
|
+
* The contents of the tool message.
|
|
31
|
+
*/
|
|
32
|
+
content: string | Array<string>;
|
|
33
|
+
/**
|
|
34
|
+
* Tool call that this message is responding to.
|
|
35
|
+
*/
|
|
36
|
+
toolCallId: string;
|
|
37
|
+
};
|
|
38
|
+
/**
|
|
39
|
+
* The type of the content part.
|
|
40
|
+
*/
|
|
41
|
+
export declare const DeploymentStream2DeploymentsRequestRequestBodyPrefixMessagesType: {
|
|
42
|
+
readonly Refusal: "refusal";
|
|
43
|
+
};
|
|
44
|
+
/**
|
|
45
|
+
* The type of the content part.
|
|
46
|
+
*/
|
|
47
|
+
export type DeploymentStream2DeploymentsRequestRequestBodyPrefixMessagesType = ClosedEnum<typeof DeploymentStream2DeploymentsRequestRequestBodyPrefixMessagesType>;
|
|
48
|
+
export type DeploymentStream2RefusalContentPart = {
|
|
49
|
+
/**
|
|
50
|
+
* The type of the content part.
|
|
51
|
+
*/
|
|
52
|
+
type: DeploymentStream2DeploymentsRequestRequestBodyPrefixMessagesType;
|
|
53
|
+
/**
|
|
54
|
+
* The refusal message generated by the model.
|
|
55
|
+
*/
|
|
56
|
+
refusal: string;
|
|
57
|
+
};
|
|
58
|
+
/**
|
|
59
|
+
* The type of the content part.
|
|
60
|
+
*/
|
|
61
|
+
export declare const DeploymentStream2DeploymentsRequestRequestBodyType: {
|
|
62
|
+
readonly Text: "text";
|
|
63
|
+
};
|
|
64
|
+
/**
|
|
65
|
+
* The type of the content part.
|
|
66
|
+
*/
|
|
67
|
+
export type DeploymentStream2DeploymentsRequestRequestBodyType = ClosedEnum<typeof DeploymentStream2DeploymentsRequestRequestBodyType>;
|
|
68
|
+
export type DeploymentStream2TextContentPart = {
|
|
69
|
+
/**
|
|
70
|
+
* The type of the content part.
|
|
71
|
+
*/
|
|
72
|
+
type: DeploymentStream2DeploymentsRequestRequestBodyType;
|
|
73
|
+
/**
|
|
74
|
+
* The text content.
|
|
75
|
+
*/
|
|
76
|
+
text: string;
|
|
77
|
+
};
|
|
78
|
+
export type DeploymentStreamContentDeployments2 = DeploymentStream2TextContentPart | DeploymentStream2RefusalContentPart;
|
|
79
|
+
/**
|
|
80
|
+
* The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
|
|
81
|
+
*/
|
|
82
|
+
export type DeploymentStreamPrefixMessagesDeploymentsContent = string | Array<DeploymentStream2TextContentPart | DeploymentStream2RefusalContentPart>;
|
|
83
|
+
/**
|
|
84
|
+
* The role of the messages author, in this case `assistant`.
|
|
85
|
+
*/
|
|
86
|
+
export declare const DeploymentStreamPrefixMessagesDeploymentsRequestRequestBodyRole: {
|
|
87
|
+
readonly Assistant: "assistant";
|
|
88
|
+
};
|
|
89
|
+
/**
|
|
90
|
+
* The role of the messages author, in this case `assistant`.
|
|
91
|
+
*/
|
|
92
|
+
export type DeploymentStreamPrefixMessagesDeploymentsRequestRequestBodyRole = ClosedEnum<typeof DeploymentStreamPrefixMessagesDeploymentsRequestRequestBodyRole>;
|
|
93
|
+
/**
|
|
94
|
+
* Data about a previous audio response from the model.
|
|
95
|
+
*/
|
|
96
|
+
export type PrefixMessagesAudio = {
|
|
97
|
+
/**
|
|
98
|
+
* Unique identifier for a previous audio response from the model.
|
|
99
|
+
*/
|
|
100
|
+
id: string;
|
|
101
|
+
};
|
|
102
|
+
/**
|
|
103
|
+
* The type of the tool. Currently, only `function` is supported.
|
|
104
|
+
*/
|
|
105
|
+
export declare const DeploymentStreamPrefixMessagesType: {
|
|
106
|
+
readonly Function: "function";
|
|
107
|
+
};
|
|
108
|
+
/**
|
|
109
|
+
* The type of the tool. Currently, only `function` is supported.
|
|
110
|
+
*/
|
|
111
|
+
export type DeploymentStreamPrefixMessagesType = ClosedEnum<typeof DeploymentStreamPrefixMessagesType>;
|
|
112
|
+
export type PrefixMessagesFunction = {
|
|
113
|
+
/**
|
|
114
|
+
* The name of the function to call.
|
|
115
|
+
*/
|
|
116
|
+
name?: string | undefined;
|
|
117
|
+
/**
|
|
118
|
+
* The arguments to call the function with, as generated by the model in JSON format. Note that the model does not always generate valid JSON, and may hallucinate parameters not defined by your function schema. Validate the arguments in your code before calling your function.
|
|
119
|
+
*/
|
|
120
|
+
arguments?: string | undefined;
|
|
121
|
+
};
|
|
122
|
+
export type PrefixMessagesToolCalls = {
|
|
123
|
+
/**
|
|
124
|
+
* The ID of the tool call.
|
|
125
|
+
*/
|
|
126
|
+
id: string;
|
|
127
|
+
/**
|
|
128
|
+
* The type of the tool. Currently, only `function` is supported.
|
|
129
|
+
*/
|
|
130
|
+
type: DeploymentStreamPrefixMessagesType;
|
|
131
|
+
function: PrefixMessagesFunction;
|
|
132
|
+
};
|
|
133
|
+
export type PrefixMessagesAssistantMessage = {
|
|
134
|
+
/**
|
|
135
|
+
* The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
|
|
136
|
+
*/
|
|
137
|
+
content?: string | Array<DeploymentStream2TextContentPart | DeploymentStream2RefusalContentPart> | undefined;
|
|
138
|
+
/**
|
|
139
|
+
* The refusal message by the assistant.
|
|
140
|
+
*/
|
|
141
|
+
refusal?: string | null | undefined;
|
|
142
|
+
/**
|
|
143
|
+
* The role of the messages author, in this case `assistant`.
|
|
144
|
+
*/
|
|
145
|
+
role: DeploymentStreamPrefixMessagesDeploymentsRequestRequestBodyRole;
|
|
146
|
+
/**
|
|
147
|
+
* An optional name for the participant. Provides the model information to differentiate between participants of the same role.
|
|
148
|
+
*/
|
|
149
|
+
name?: string | undefined;
|
|
150
|
+
/**
|
|
151
|
+
* Data about a previous audio response from the model.
|
|
152
|
+
*/
|
|
153
|
+
audio?: PrefixMessagesAudio | null | undefined;
|
|
154
|
+
/**
|
|
155
|
+
* The tool calls generated by the model, such as function calls.
|
|
156
|
+
*/
|
|
157
|
+
toolCalls?: Array<PrefixMessagesToolCalls> | undefined;
|
|
158
|
+
};
|
|
159
|
+
/**
|
|
160
|
+
* The role of the messages author, in this case `user`.
|
|
161
|
+
*/
|
|
162
|
+
export declare const DeploymentStreamPrefixMessagesDeploymentsRequestRole: {
|
|
163
|
+
readonly User: "user";
|
|
164
|
+
};
|
|
165
|
+
/**
|
|
166
|
+
* The role of the messages author, in this case `user`.
|
|
167
|
+
*/
|
|
168
|
+
export type DeploymentStreamPrefixMessagesDeploymentsRequestRole = ClosedEnum<typeof DeploymentStreamPrefixMessagesDeploymentsRequestRole>;
|
|
169
|
+
export declare const DeploymentStream2DeploymentsRequestType: {
|
|
170
|
+
readonly InputAudio: "input_audio";
|
|
171
|
+
};
|
|
172
|
+
export type DeploymentStream2DeploymentsRequestType = ClosedEnum<typeof DeploymentStream2DeploymentsRequestType>;
|
|
173
|
+
/**
|
|
174
|
+
* The format of the encoded audio data. Currently supports `wav` and `mp3`.
|
|
175
|
+
*/
|
|
176
|
+
export declare const DeploymentStream2Format: {
|
|
177
|
+
readonly Mp3: "mp3";
|
|
178
|
+
readonly Wav: "wav";
|
|
179
|
+
};
|
|
180
|
+
/**
|
|
181
|
+
* The format of the encoded audio data. Currently supports `wav` and `mp3`.
|
|
182
|
+
*/
|
|
183
|
+
export type DeploymentStream2Format = ClosedEnum<typeof DeploymentStream2Format>;
|
|
184
|
+
export type DeploymentStream2InputAudio = {
|
|
185
|
+
/**
|
|
186
|
+
* Base64 encoded audio data.
|
|
187
|
+
*/
|
|
188
|
+
data: string;
|
|
189
|
+
/**
|
|
190
|
+
* The format of the encoded audio data. Currently supports `wav` and `mp3`.
|
|
191
|
+
*/
|
|
192
|
+
format: DeploymentStream2Format;
|
|
193
|
+
};
|
|
194
|
+
export type DeploymentStream23 = {
|
|
195
|
+
type: DeploymentStream2DeploymentsRequestType;
|
|
196
|
+
inputAudio: DeploymentStream2InputAudio;
|
|
197
|
+
};
|
|
198
|
+
export declare const DeploymentStream2DeploymentsType: {
|
|
199
|
+
readonly ImageUrl: "image_url";
|
|
200
|
+
};
|
|
201
|
+
export type DeploymentStream2DeploymentsType = ClosedEnum<typeof DeploymentStream2DeploymentsType>;
|
|
202
|
+
/**
|
|
203
|
+
* Specifies the detail level of the image.
|
|
204
|
+
*/
|
|
205
|
+
export declare const DeploymentStream2Detail: {
|
|
206
|
+
readonly Low: "low";
|
|
207
|
+
readonly High: "high";
|
|
208
|
+
readonly Auto: "auto";
|
|
209
|
+
};
|
|
210
|
+
/**
|
|
211
|
+
* Specifies the detail level of the image.
|
|
212
|
+
*/
|
|
213
|
+
export type DeploymentStream2Detail = ClosedEnum<typeof DeploymentStream2Detail>;
|
|
214
|
+
export type DeploymentStream2ImageUrl = {
|
|
215
|
+
/**
|
|
216
|
+
* Either a URL of the image or the base64 encoded image data.
|
|
217
|
+
*/
|
|
218
|
+
url: string;
|
|
219
|
+
/**
|
|
220
|
+
* Specifies the detail level of the image.
|
|
221
|
+
*/
|
|
222
|
+
detail?: DeploymentStream2Detail | undefined;
|
|
223
|
+
};
|
|
224
|
+
export type DeploymentStream22 = {
|
|
225
|
+
type: DeploymentStream2DeploymentsType;
|
|
226
|
+
imageUrl: DeploymentStream2ImageUrl;
|
|
227
|
+
};
|
|
228
|
+
export declare const DeploymentStream2Type: {
|
|
229
|
+
readonly Text: "text";
|
|
230
|
+
};
|
|
231
|
+
export type DeploymentStream2Type = ClosedEnum<typeof DeploymentStream2Type>;
|
|
232
|
+
export type DeploymentStream21 = {
|
|
233
|
+
type: DeploymentStream2Type;
|
|
234
|
+
text: string;
|
|
235
|
+
};
|
|
236
|
+
export type DeploymentStreamContent2 = DeploymentStream21 | DeploymentStream22 | DeploymentStream23;
|
|
237
|
+
/**
|
|
238
|
+
* The contents of the user message.
|
|
239
|
+
*/
|
|
240
|
+
export type DeploymentStreamPrefixMessagesContent = string | Array<DeploymentStream21 | DeploymentStream22 | DeploymentStream23>;
|
|
241
|
+
export type PrefixMessagesUserMessage = {
|
|
242
|
+
/**
|
|
243
|
+
* The role of the messages author, in this case `user`.
|
|
244
|
+
*/
|
|
245
|
+
role: DeploymentStreamPrefixMessagesDeploymentsRequestRole;
|
|
246
|
+
/**
|
|
247
|
+
* An optional name for the participant. Provides the model information to differentiate between participants of the same role.
|
|
248
|
+
*/
|
|
249
|
+
name?: string | undefined;
|
|
250
|
+
/**
|
|
251
|
+
* The contents of the user message.
|
|
252
|
+
*/
|
|
253
|
+
content: string | Array<DeploymentStream21 | DeploymentStream22 | DeploymentStream23>;
|
|
254
|
+
};
|
|
255
|
+
/**
|
|
256
|
+
* The role of the messages author, in this case `system`.
|
|
257
|
+
*/
|
|
258
|
+
export declare const DeploymentStreamPrefixMessagesDeploymentsRole: {
|
|
259
|
+
readonly System: "system";
|
|
260
|
+
};
|
|
261
|
+
/**
|
|
262
|
+
* The role of the messages author, in this case `system`.
|
|
263
|
+
*/
|
|
264
|
+
export type DeploymentStreamPrefixMessagesDeploymentsRole = ClosedEnum<typeof DeploymentStreamPrefixMessagesDeploymentsRole>;
|
|
265
|
+
export type PrefixMessagesSystemMessage = {
|
|
266
|
+
/**
|
|
267
|
+
* The role of the messages author, in this case `system`.
|
|
268
|
+
*/
|
|
269
|
+
role: DeploymentStreamPrefixMessagesDeploymentsRole;
|
|
270
|
+
/**
|
|
271
|
+
* The contents of the system message.
|
|
272
|
+
*/
|
|
273
|
+
content: string;
|
|
274
|
+
/**
|
|
275
|
+
* An optional name for the participant. Provides the model information to differentiate between participants of the same role.
|
|
276
|
+
*/
|
|
277
|
+
name?: string | undefined;
|
|
278
|
+
};
|
|
279
|
+
/**
|
|
280
|
+
* The role of the messages author, in this case `developer`.
|
|
281
|
+
*/
|
|
282
|
+
export declare const DeploymentStreamPrefixMessagesRole: {
|
|
283
|
+
readonly Developer: "developer";
|
|
284
|
+
};
|
|
285
|
+
/**
|
|
286
|
+
* The role of the messages author, in this case `developer`.
|
|
287
|
+
*/
|
|
288
|
+
export type DeploymentStreamPrefixMessagesRole = ClosedEnum<typeof DeploymentStreamPrefixMessagesRole>;
|
|
289
|
+
export type PrefixMessagesDeveloperMessage = {
|
|
290
|
+
/**
|
|
291
|
+
* The role of the messages author, in this case `developer`.
|
|
292
|
+
*/
|
|
293
|
+
role: DeploymentStreamPrefixMessagesRole;
|
|
294
|
+
/**
|
|
295
|
+
* The contents of the developer message.
|
|
296
|
+
*/
|
|
297
|
+
content: string;
|
|
298
|
+
/**
|
|
299
|
+
* An optional name for the participant. Provides the model information to differentiate between participants of the same role.
|
|
300
|
+
*/
|
|
301
|
+
name?: string | undefined;
|
|
302
|
+
};
|
|
303
|
+
export type DeploymentStreamPrefixMessages = PrefixMessagesDeveloperMessage | PrefixMessagesSystemMessage | PrefixMessagesUserMessage | PrefixMessagesToolMessage | PrefixMessagesAssistantMessage;
|
|
304
|
+
/**
|
|
305
|
+
* The role of the messages author, in this case tool.
|
|
306
|
+
*/
|
|
307
|
+
export declare const DeploymentStreamMessagesDeploymentsRequestRequestBody5Role: {
|
|
308
|
+
readonly Tool: "tool";
|
|
309
|
+
};
|
|
310
|
+
/**
|
|
311
|
+
* The role of the messages author, in this case tool.
|
|
312
|
+
*/
|
|
313
|
+
export type DeploymentStreamMessagesDeploymentsRequestRequestBody5Role = ClosedEnum<typeof DeploymentStreamMessagesDeploymentsRequestRequestBody5Role>;
|
|
314
|
+
/**
|
|
315
|
+
* The contents of the tool message.
|
|
316
|
+
*/
|
|
317
|
+
export type DeploymentStreamMessagesDeploymentsRequestContent = string | Array<string>;
|
|
318
|
+
export type DeploymentStreamMessagesToolMessage = {
|
|
319
|
+
/**
|
|
320
|
+
* The role of the messages author, in this case tool.
|
|
321
|
+
*/
|
|
322
|
+
role: DeploymentStreamMessagesDeploymentsRequestRequestBody5Role;
|
|
323
|
+
/**
|
|
324
|
+
* The contents of the tool message.
|
|
325
|
+
*/
|
|
326
|
+
content: string | Array<string>;
|
|
327
|
+
/**
|
|
328
|
+
* Tool call that this message is responding to.
|
|
329
|
+
*/
|
|
330
|
+
toolCallId: string;
|
|
331
|
+
};
|
|
332
|
+
/**
|
|
333
|
+
* The type of the content part.
|
|
334
|
+
*/
|
|
335
|
+
export declare const DeploymentStream2DeploymentsRequestRequestBodyMessages4ContentType: {
|
|
336
|
+
readonly Refusal: "refusal";
|
|
337
|
+
};
|
|
338
|
+
/**
|
|
339
|
+
* The type of the content part.
|
|
340
|
+
*/
|
|
341
|
+
export type DeploymentStream2DeploymentsRequestRequestBodyMessages4ContentType = ClosedEnum<typeof DeploymentStream2DeploymentsRequestRequestBodyMessages4ContentType>;
|
|
342
|
+
export type DeploymentStream2DeploymentsRefusalContentPart = {
|
|
343
|
+
/**
|
|
344
|
+
* The type of the content part.
|
|
345
|
+
*/
|
|
346
|
+
type: DeploymentStream2DeploymentsRequestRequestBodyMessages4ContentType;
|
|
347
|
+
/**
|
|
348
|
+
* The refusal message generated by the model.
|
|
349
|
+
*/
|
|
350
|
+
refusal: string;
|
|
351
|
+
};
|
|
352
|
+
/**
|
|
353
|
+
* The type of the content part.
|
|
354
|
+
*/
|
|
355
|
+
export declare const DeploymentStream2DeploymentsRequestRequestBodyMessages4Type: {
|
|
356
|
+
readonly Text: "text";
|
|
357
|
+
};
|
|
358
|
+
/**
|
|
359
|
+
* The type of the content part.
|
|
360
|
+
*/
|
|
361
|
+
export type DeploymentStream2DeploymentsRequestRequestBodyMessages4Type = ClosedEnum<typeof DeploymentStream2DeploymentsRequestRequestBodyMessages4Type>;
|
|
362
|
+
export type DeploymentStream2DeploymentsTextContentPart = {
|
|
363
|
+
/**
|
|
364
|
+
* The type of the content part.
|
|
365
|
+
*/
|
|
366
|
+
type: DeploymentStream2DeploymentsRequestRequestBodyMessages4Type;
|
|
367
|
+
/**
|
|
368
|
+
* The text content.
|
|
369
|
+
*/
|
|
370
|
+
text: string;
|
|
371
|
+
};
|
|
372
|
+
export type DeploymentStreamContentDeploymentsRequestRequestBody2 = DeploymentStream2DeploymentsTextContentPart | DeploymentStream2DeploymentsRefusalContentPart;
|
|
373
|
+
/**
|
|
374
|
+
* The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
|
|
375
|
+
*/
|
|
376
|
+
export type DeploymentStreamMessagesDeploymentsContent = string | Array<DeploymentStream2DeploymentsTextContentPart | DeploymentStream2DeploymentsRefusalContentPart>;
|
|
377
|
+
/**
|
|
378
|
+
* The role of the messages author, in this case `assistant`.
|
|
379
|
+
*/
|
|
380
|
+
export declare const DeploymentStreamMessagesDeploymentsRequestRequestBodyRole: {
|
|
381
|
+
readonly Assistant: "assistant";
|
|
382
|
+
};
|
|
383
|
+
/**
|
|
384
|
+
* The role of the messages author, in this case `assistant`.
|
|
385
|
+
*/
|
|
386
|
+
export type DeploymentStreamMessagesDeploymentsRequestRequestBodyRole = ClosedEnum<typeof DeploymentStreamMessagesDeploymentsRequestRequestBodyRole>;
|
|
387
|
+
/**
|
|
388
|
+
* Data about a previous audio response from the model.
|
|
389
|
+
*/
|
|
390
|
+
export type DeploymentStreamMessagesAudio = {
|
|
391
|
+
/**
|
|
392
|
+
* Unique identifier for a previous audio response from the model.
|
|
393
|
+
*/
|
|
394
|
+
id: string;
|
|
395
|
+
};
|
|
396
|
+
/**
|
|
397
|
+
* The type of the tool. Currently, only `function` is supported.
|
|
398
|
+
*/
|
|
399
|
+
export declare const DeploymentStreamMessagesType: {
|
|
400
|
+
readonly Function: "function";
|
|
401
|
+
};
|
|
402
|
+
/**
|
|
403
|
+
* The type of the tool. Currently, only `function` is supported.
|
|
404
|
+
*/
|
|
405
|
+
export type DeploymentStreamMessagesType = ClosedEnum<typeof DeploymentStreamMessagesType>;
|
|
406
|
+
export type DeploymentStreamMessagesFunction = {
|
|
407
|
+
/**
|
|
408
|
+
* The name of the function to call.
|
|
409
|
+
*/
|
|
410
|
+
name?: string | undefined;
|
|
411
|
+
/**
|
|
412
|
+
* The arguments to call the function with, as generated by the model in JSON format. Note that the model does not always generate valid JSON, and may hallucinate parameters not defined by your function schema. Validate the arguments in your code before calling your function.
|
|
413
|
+
*/
|
|
414
|
+
arguments?: string | undefined;
|
|
415
|
+
};
|
|
416
|
+
export type DeploymentStreamMessagesToolCalls = {
|
|
417
|
+
/**
|
|
418
|
+
* The ID of the tool call.
|
|
419
|
+
*/
|
|
420
|
+
id: string;
|
|
421
|
+
/**
|
|
422
|
+
* The type of the tool. Currently, only `function` is supported.
|
|
423
|
+
*/
|
|
424
|
+
type: DeploymentStreamMessagesType;
|
|
425
|
+
function: DeploymentStreamMessagesFunction;
|
|
426
|
+
};
|
|
427
|
+
export type DeploymentStreamMessagesAssistantMessage = {
|
|
428
|
+
/**
|
|
429
|
+
* The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
|
|
430
|
+
*/
|
|
431
|
+
content?: string | Array<DeploymentStream2DeploymentsTextContentPart | DeploymentStream2DeploymentsRefusalContentPart> | undefined;
|
|
432
|
+
/**
|
|
433
|
+
* The refusal message by the assistant.
|
|
434
|
+
*/
|
|
435
|
+
refusal?: string | null | undefined;
|
|
436
|
+
/**
|
|
437
|
+
* The role of the messages author, in this case `assistant`.
|
|
438
|
+
*/
|
|
439
|
+
role: DeploymentStreamMessagesDeploymentsRequestRequestBodyRole;
|
|
440
|
+
/**
|
|
441
|
+
* An optional name for the participant. Provides the model information to differentiate between participants of the same role.
|
|
442
|
+
*/
|
|
443
|
+
name?: string | undefined;
|
|
444
|
+
/**
|
|
445
|
+
* Data about a previous audio response from the model.
|
|
446
|
+
*/
|
|
447
|
+
audio?: DeploymentStreamMessagesAudio | null | undefined;
|
|
448
|
+
/**
|
|
449
|
+
* The tool calls generated by the model, such as function calls.
|
|
450
|
+
*/
|
|
451
|
+
toolCalls?: Array<DeploymentStreamMessagesToolCalls> | undefined;
|
|
452
|
+
};
|
|
453
|
+
/**
|
|
454
|
+
* The role of the messages author, in this case `user`.
|
|
455
|
+
*/
|
|
456
|
+
export declare const DeploymentStreamMessagesDeploymentsRequestRole: {
|
|
457
|
+
readonly User: "user";
|
|
458
|
+
};
|
|
459
|
+
/**
|
|
460
|
+
* The role of the messages author, in this case `user`.
|
|
461
|
+
*/
|
|
462
|
+
export type DeploymentStreamMessagesDeploymentsRequestRole = ClosedEnum<typeof DeploymentStreamMessagesDeploymentsRequestRole>;
|
|
463
|
+
export declare const DeploymentStream2DeploymentsRequestRequestBodyMessages3ContentType: {
|
|
464
|
+
readonly InputAudio: "input_audio";
|
|
465
|
+
};
|
|
466
|
+
export type DeploymentStream2DeploymentsRequestRequestBodyMessages3ContentType = ClosedEnum<typeof DeploymentStream2DeploymentsRequestRequestBodyMessages3ContentType>;
|
|
467
|
+
/**
|
|
468
|
+
* The format of the encoded audio data. Currently supports `wav` and `mp3`.
|
|
469
|
+
*/
|
|
470
|
+
export declare const DeploymentStream2DeploymentsFormat: {
|
|
471
|
+
readonly Mp3: "mp3";
|
|
472
|
+
readonly Wav: "wav";
|
|
473
|
+
};
|
|
474
|
+
/**
|
|
475
|
+
* The format of the encoded audio data. Currently supports `wav` and `mp3`.
|
|
476
|
+
*/
|
|
477
|
+
export type DeploymentStream2DeploymentsFormat = ClosedEnum<typeof DeploymentStream2DeploymentsFormat>;
|
|
478
|
+
export type DeploymentStream2DeploymentsInputAudio = {
|
|
479
|
+
/**
|
|
480
|
+
* Base64 encoded audio data.
|
|
481
|
+
*/
|
|
482
|
+
data: string;
|
|
483
|
+
/**
|
|
484
|
+
* The format of the encoded audio data. Currently supports `wav` and `mp3`.
|
|
485
|
+
*/
|
|
486
|
+
format: DeploymentStream2DeploymentsFormat;
|
|
487
|
+
};
|
|
488
|
+
export type DeploymentStream2Deployments3 = {
|
|
489
|
+
type: DeploymentStream2DeploymentsRequestRequestBodyMessages3ContentType;
|
|
490
|
+
inputAudio: DeploymentStream2DeploymentsInputAudio;
|
|
491
|
+
};
|
|
492
|
+
export declare const DeploymentStream2DeploymentsRequestRequestBodyMessages3Type: {
|
|
493
|
+
readonly ImageUrl: "image_url";
|
|
494
|
+
};
|
|
495
|
+
export type DeploymentStream2DeploymentsRequestRequestBodyMessages3Type = ClosedEnum<typeof DeploymentStream2DeploymentsRequestRequestBodyMessages3Type>;
|
|
496
|
+
/**
|
|
497
|
+
* Specifies the detail level of the image.
|
|
498
|
+
*/
|
|
499
|
+
export declare const DeploymentStream2DeploymentsDetail: {
|
|
500
|
+
readonly Low: "low";
|
|
501
|
+
readonly High: "high";
|
|
502
|
+
readonly Auto: "auto";
|
|
503
|
+
};
|
|
504
|
+
/**
|
|
505
|
+
* Specifies the detail level of the image.
|
|
506
|
+
*/
|
|
507
|
+
export type DeploymentStream2DeploymentsDetail = ClosedEnum<typeof DeploymentStream2DeploymentsDetail>;
|
|
508
|
+
export type DeploymentStream2DeploymentsImageUrl = {
|
|
509
|
+
/**
|
|
510
|
+
* Either a URL of the image or the base64 encoded image data.
|
|
511
|
+
*/
|
|
512
|
+
url: string;
|
|
513
|
+
/**
|
|
514
|
+
* Specifies the detail level of the image.
|
|
515
|
+
*/
|
|
516
|
+
detail?: DeploymentStream2DeploymentsDetail | undefined;
|
|
517
|
+
};
|
|
518
|
+
export type DeploymentStream2Deployments2 = {
|
|
519
|
+
type: DeploymentStream2DeploymentsRequestRequestBodyMessages3Type;
|
|
520
|
+
imageUrl: DeploymentStream2DeploymentsImageUrl;
|
|
521
|
+
};
|
|
522
|
+
export declare const DeploymentStream2DeploymentsRequestRequestBodyMessagesType: {
|
|
523
|
+
readonly Text: "text";
|
|
524
|
+
};
|
|
525
|
+
export type DeploymentStream2DeploymentsRequestRequestBodyMessagesType = ClosedEnum<typeof DeploymentStream2DeploymentsRequestRequestBodyMessagesType>;
|
|
526
|
+
export type DeploymentStream2Deployments1 = {
|
|
527
|
+
type: DeploymentStream2DeploymentsRequestRequestBodyMessagesType;
|
|
528
|
+
text: string;
|
|
529
|
+
};
|
|
530
|
+
export type DeploymentStreamContentDeploymentsRequest2 = DeploymentStream2Deployments1 | DeploymentStream2Deployments2 | DeploymentStream2Deployments3;
|
|
531
|
+
/**
|
|
532
|
+
* The contents of the user message.
|
|
533
|
+
*/
|
|
534
|
+
export type DeploymentStreamMessagesContent = string | Array<DeploymentStream2Deployments1 | DeploymentStream2Deployments2 | DeploymentStream2Deployments3>;
|
|
535
|
+
export type DeploymentStreamMessagesUserMessage = {
|
|
536
|
+
/**
|
|
537
|
+
* The role of the messages author, in this case `user`.
|
|
538
|
+
*/
|
|
539
|
+
role: DeploymentStreamMessagesDeploymentsRequestRole;
|
|
540
|
+
/**
|
|
541
|
+
* An optional name for the participant. Provides the model information to differentiate between participants of the same role.
|
|
542
|
+
*/
|
|
543
|
+
name?: string | undefined;
|
|
544
|
+
/**
|
|
545
|
+
* The contents of the user message.
|
|
546
|
+
*/
|
|
547
|
+
content: string | Array<DeploymentStream2Deployments1 | DeploymentStream2Deployments2 | DeploymentStream2Deployments3>;
|
|
548
|
+
};
|
|
549
|
+
/**
|
|
550
|
+
* The role of the messages author, in this case `system`.
|
|
551
|
+
*/
|
|
552
|
+
export declare const DeploymentStreamMessagesDeploymentsRole: {
|
|
553
|
+
readonly System: "system";
|
|
554
|
+
};
|
|
555
|
+
/**
|
|
556
|
+
* The role of the messages author, in this case `system`.
|
|
557
|
+
*/
|
|
558
|
+
export type DeploymentStreamMessagesDeploymentsRole = ClosedEnum<typeof DeploymentStreamMessagesDeploymentsRole>;
|
|
559
|
+
export type DeploymentStreamMessagesSystemMessage = {
|
|
560
|
+
/**
|
|
561
|
+
* The role of the messages author, in this case `system`.
|
|
562
|
+
*/
|
|
563
|
+
role: DeploymentStreamMessagesDeploymentsRole;
|
|
564
|
+
/**
|
|
565
|
+
* The contents of the system message.
|
|
566
|
+
*/
|
|
567
|
+
content: string;
|
|
568
|
+
/**
|
|
569
|
+
* An optional name for the participant. Provides the model information to differentiate between participants of the same role.
|
|
570
|
+
*/
|
|
571
|
+
name?: string | undefined;
|
|
572
|
+
};
|
|
573
|
+
/**
|
|
574
|
+
* The role of the messages author, in this case `developer`.
|
|
575
|
+
*/
|
|
576
|
+
export declare const DeploymentStreamMessagesRole: {
|
|
577
|
+
readonly Developer: "developer";
|
|
578
|
+
};
|
|
579
|
+
/**
|
|
580
|
+
* The role of the messages author, in this case `developer`.
|
|
581
|
+
*/
|
|
582
|
+
export type DeploymentStreamMessagesRole = ClosedEnum<typeof DeploymentStreamMessagesRole>;
|
|
583
|
+
export type DeploymentStreamMessagesDeveloperMessage = {
|
|
584
|
+
/**
|
|
585
|
+
* The role of the messages author, in this case `developer`.
|
|
586
|
+
*/
|
|
587
|
+
role: DeploymentStreamMessagesRole;
|
|
588
|
+
/**
|
|
589
|
+
* The contents of the developer message.
|
|
590
|
+
*/
|
|
591
|
+
content: string;
|
|
592
|
+
/**
|
|
593
|
+
* An optional name for the participant. Provides the model information to differentiate between participants of the same role.
|
|
594
|
+
*/
|
|
595
|
+
name?: string | undefined;
|
|
596
|
+
};
|
|
597
|
+
export type DeploymentStreamMessages = DeploymentStreamMessagesDeveloperMessage | DeploymentStreamMessagesSystemMessage | DeploymentStreamMessagesUserMessage | DeploymentStreamMessagesToolMessage | DeploymentStreamMessagesAssistantMessage;
|
|
598
|
+
/**
|
|
599
|
+
* Metadata about the document
|
|
600
|
+
*/
|
|
601
|
+
export type DeploymentStreamMetadata = {
|
|
602
|
+
/**
|
|
603
|
+
* Name of the file the text is from.
|
|
604
|
+
*/
|
|
605
|
+
fileName?: string | undefined;
|
|
606
|
+
/**
|
|
607
|
+
* Content type of the file the text is from.
|
|
608
|
+
*/
|
|
609
|
+
fileType?: string | undefined;
|
|
610
|
+
/**
|
|
611
|
+
* The page number the text is from.
|
|
612
|
+
*/
|
|
613
|
+
pageNumber?: number | undefined;
|
|
614
|
+
};
|
|
615
|
+
export type DeploymentStreamDocuments = {
|
|
616
|
+
/**
|
|
617
|
+
* The text content of the document
|
|
618
|
+
*/
|
|
619
|
+
text: string;
|
|
620
|
+
/**
|
|
621
|
+
* Metadata about the document
|
|
622
|
+
*/
|
|
623
|
+
metadata?: DeploymentStreamMetadata | undefined;
|
|
624
|
+
};
|
|
625
|
+
export type DeploymentStreamInvokeOptions = {
|
|
626
|
+
/**
|
|
627
|
+
* Whether to include the retrieved knowledge chunks in the response.
|
|
628
|
+
*/
|
|
629
|
+
includeRetrievals?: boolean | undefined;
|
|
630
|
+
};
|
|
631
|
+
export type DeploymentStreamRequestBody = {
|
|
632
|
+
/**
|
|
633
|
+
* The deployment key to invoke
|
|
634
|
+
*/
|
|
635
|
+
key: string;
|
|
636
|
+
/**
|
|
637
|
+
* Key-value pairs variables to replace in your prompts. If a variable is not provided that is defined in the prompt, the default variables are used.
|
|
638
|
+
*/
|
|
639
|
+
inputs?: {
|
|
640
|
+
[k: string]: string | number | boolean;
|
|
641
|
+
} | undefined;
|
|
642
|
+
/**
|
|
643
|
+
* Key-value pairs that match your data model and fields declared in your configuration matrix. If you send multiple prompt keys, the context will be applied to the evaluation of each key.
|
|
644
|
+
*/
|
|
645
|
+
context?: {
|
|
646
|
+
[k: string]: any;
|
|
647
|
+
} | undefined;
|
|
648
|
+
/**
|
|
649
|
+
* A list of messages to include after the `System` message, but before the `User` and `Assistant` pairs configured in your deployment.
|
|
650
|
+
*/
|
|
651
|
+
prefixMessages?: Array<PrefixMessagesDeveloperMessage | PrefixMessagesSystemMessage | PrefixMessagesUserMessage | PrefixMessagesToolMessage | PrefixMessagesAssistantMessage> | undefined;
|
|
652
|
+
/**
|
|
653
|
+
* A list of messages to send to the deployment.
|
|
654
|
+
*/
|
|
655
|
+
messages?: Array<DeploymentStreamMessagesDeveloperMessage | DeploymentStreamMessagesSystemMessage | DeploymentStreamMessagesUserMessage | DeploymentStreamMessagesToolMessage | DeploymentStreamMessagesAssistantMessage> | undefined;
|
|
656
|
+
/**
|
|
657
|
+
* A list of file IDs that are associated with the deployment request.
|
|
658
|
+
*/
|
|
659
|
+
fileIds?: Array<string> | undefined;
|
|
660
|
+
/**
|
|
661
|
+
* Key-value pairs that you want to attach to the log generated by this request.
|
|
662
|
+
*/
|
|
663
|
+
metadata?: {
|
|
664
|
+
[k: string]: any;
|
|
665
|
+
} | undefined;
|
|
666
|
+
/**
|
|
667
|
+
* Utilized for passing additional parameters to the model provider. Exercise caution when using this feature, as the included parameters will overwrite any parameters specified in the deployment prompt configuration.
|
|
668
|
+
*/
|
|
669
|
+
extraParams?: {
|
|
670
|
+
[k: string]: any;
|
|
671
|
+
} | undefined;
|
|
672
|
+
/**
|
|
673
|
+
* A list of relevant documents that evaluators and guardrails can cite to evaluate the user input or the model response based on your deployment settings.
|
|
674
|
+
*/
|
|
675
|
+
documents?: Array<DeploymentStreamDocuments> | undefined;
|
|
676
|
+
invokeOptions?: DeploymentStreamInvokeOptions | undefined;
|
|
677
|
+
};
|
|
678
|
+
/**
|
|
679
|
+
* Indicates the type of model used to generate the response
|
|
680
|
+
*/
|
|
681
|
+
export declare const DeploymentStreamObject: {
|
|
682
|
+
readonly Chat: "chat";
|
|
683
|
+
readonly Completion: "completion";
|
|
684
|
+
readonly Image: "image";
|
|
685
|
+
readonly Vision: "vision";
|
|
686
|
+
};
|
|
687
|
+
/**
|
|
688
|
+
* Indicates the type of model used to generate the response
|
|
689
|
+
*/
|
|
690
|
+
export type DeploymentStreamObject = ClosedEnum<typeof DeploymentStreamObject>;
|
|
691
|
+
/**
|
|
692
|
+
* The provider used to generate the response
|
|
693
|
+
*/
|
|
694
|
+
export declare const DeploymentStreamProvider: {
|
|
695
|
+
readonly Cohere: "cohere";
|
|
696
|
+
readonly Openai: "openai";
|
|
697
|
+
readonly Anthropic: "anthropic";
|
|
698
|
+
readonly Huggingface: "huggingface";
|
|
699
|
+
readonly Replicate: "replicate";
|
|
700
|
+
readonly Google: "google";
|
|
701
|
+
readonly GoogleAi: "google-ai";
|
|
702
|
+
readonly Azure: "azure";
|
|
703
|
+
readonly Aws: "aws";
|
|
704
|
+
readonly Anyscale: "anyscale";
|
|
705
|
+
readonly Perplexity: "perplexity";
|
|
706
|
+
readonly Groq: "groq";
|
|
707
|
+
readonly Fal: "fal";
|
|
708
|
+
readonly Leonardoai: "leonardoai";
|
|
709
|
+
readonly Nvidia: "nvidia";
|
|
710
|
+
readonly Jina: "jina";
|
|
711
|
+
readonly Togetherai: "togetherai";
|
|
712
|
+
readonly Elevenlabs: "elevenlabs";
|
|
713
|
+
};
|
|
714
|
+
/**
|
|
715
|
+
* The provider used to generate the response
|
|
716
|
+
*/
|
|
717
|
+
export type DeploymentStreamProvider = ClosedEnum<typeof DeploymentStreamProvider>;
|
|
718
|
+
/**
|
|
719
|
+
* The role of the prompt message
|
|
720
|
+
*/
|
|
721
|
+
export declare const DeploymentStreamMessageDeploymentsResponseRole: {
|
|
722
|
+
readonly System: "system";
|
|
723
|
+
readonly Assistant: "assistant";
|
|
724
|
+
readonly User: "user";
|
|
725
|
+
readonly Exception: "exception";
|
|
726
|
+
readonly Tool: "tool";
|
|
727
|
+
readonly Prompt: "prompt";
|
|
728
|
+
readonly Correction: "correction";
|
|
729
|
+
readonly ExpectedOutput: "expected_output";
|
|
730
|
+
};
|
|
731
|
+
/**
|
|
732
|
+
* The role of the prompt message
|
|
733
|
+
*/
|
|
734
|
+
export type DeploymentStreamMessageDeploymentsResponseRole = ClosedEnum<typeof DeploymentStreamMessageDeploymentsResponseRole>;
|
|
735
|
+
export type DeploymentStreamMessage3 = {
|
|
736
|
+
/**
|
|
737
|
+
* The role of the prompt message
|
|
738
|
+
*/
|
|
739
|
+
role: DeploymentStreamMessageDeploymentsResponseRole;
|
|
740
|
+
url: string;
|
|
741
|
+
};
|
|
742
|
+
/**
|
|
743
|
+
* The role of the prompt message
|
|
744
|
+
*/
|
|
745
|
+
export declare const DeploymentStreamMessageDeploymentsRole: {
|
|
746
|
+
readonly System: "system";
|
|
747
|
+
readonly Assistant: "assistant";
|
|
748
|
+
readonly User: "user";
|
|
749
|
+
readonly Exception: "exception";
|
|
750
|
+
readonly Tool: "tool";
|
|
751
|
+
readonly Prompt: "prompt";
|
|
752
|
+
readonly Correction: "correction";
|
|
753
|
+
readonly ExpectedOutput: "expected_output";
|
|
754
|
+
};
|
|
755
|
+
/**
|
|
756
|
+
* The role of the prompt message
|
|
757
|
+
*/
|
|
758
|
+
export type DeploymentStreamMessageDeploymentsRole = ClosedEnum<typeof DeploymentStreamMessageDeploymentsRole>;
|
|
759
|
+
export type DeploymentStreamMessage2 = {
|
|
760
|
+
/**
|
|
761
|
+
* The role of the prompt message
|
|
762
|
+
*/
|
|
763
|
+
role: DeploymentStreamMessageDeploymentsRole;
|
|
764
|
+
content: string | null;
|
|
765
|
+
};
|
|
766
|
+
/**
|
|
767
|
+
* The role of the prompt message
|
|
768
|
+
*/
|
|
769
|
+
export declare const DeploymentStreamMessageRole: {
|
|
770
|
+
readonly System: "system";
|
|
771
|
+
readonly Assistant: "assistant";
|
|
772
|
+
readonly User: "user";
|
|
773
|
+
readonly Exception: "exception";
|
|
774
|
+
readonly Tool: "tool";
|
|
775
|
+
readonly Prompt: "prompt";
|
|
776
|
+
readonly Correction: "correction";
|
|
777
|
+
readonly ExpectedOutput: "expected_output";
|
|
778
|
+
};
|
|
779
|
+
/**
|
|
780
|
+
* The role of the prompt message
|
|
781
|
+
*/
|
|
782
|
+
export type DeploymentStreamMessageRole = ClosedEnum<typeof DeploymentStreamMessageRole>;
|
|
783
|
+
export declare const DeploymentStreamMessageType: {
|
|
784
|
+
readonly Function: "function";
|
|
785
|
+
};
|
|
786
|
+
export type DeploymentStreamMessageType = ClosedEnum<typeof DeploymentStreamMessageType>;
|
|
787
|
+
export type DeploymentStreamMessageFunction = {
|
|
788
|
+
name: string;
|
|
789
|
+
/**
|
|
790
|
+
* JSON string arguments for the functions
|
|
791
|
+
*/
|
|
792
|
+
arguments: string;
|
|
793
|
+
};
|
|
794
|
+
export type DeploymentStreamMessageToolCalls = {
|
|
795
|
+
id?: string | undefined;
|
|
796
|
+
index?: number | undefined;
|
|
797
|
+
type: DeploymentStreamMessageType;
|
|
798
|
+
function: DeploymentStreamMessageFunction;
|
|
799
|
+
};
|
|
800
|
+
export type DeploymentStreamMessage1 = {
|
|
801
|
+
/**
|
|
802
|
+
* The role of the prompt message
|
|
803
|
+
*/
|
|
804
|
+
role: DeploymentStreamMessageRole;
|
|
805
|
+
content?: string | null | undefined;
|
|
806
|
+
toolCalls: Array<DeploymentStreamMessageToolCalls>;
|
|
807
|
+
};
|
|
808
|
+
export type DeploymentStreamMessage = DeploymentStreamMessage2 | DeploymentStreamMessage3 | DeploymentStreamMessage1;
|
|
809
|
+
export type DeploymentStreamChoices = {
|
|
810
|
+
index: number;
|
|
811
|
+
message?: DeploymentStreamMessage2 | DeploymentStreamMessage3 | DeploymentStreamMessage1 | undefined;
|
|
812
|
+
finishReason?: string | null | undefined;
|
|
813
|
+
};
|
|
814
|
+
/**
|
|
815
|
+
* Metadata of the retrieved chunk from the knowledge base
|
|
816
|
+
*/
|
|
817
|
+
export type DeploymentStreamDeploymentsMetadata = {
|
|
818
|
+
/**
|
|
819
|
+
* Name of the file
|
|
820
|
+
*/
|
|
821
|
+
fileName: string;
|
|
822
|
+
/**
|
|
823
|
+
* Page number of the chunk
|
|
824
|
+
*/
|
|
825
|
+
pageNumber: number | null;
|
|
826
|
+
/**
|
|
827
|
+
* Type of the file
|
|
828
|
+
*/
|
|
829
|
+
fileType: string;
|
|
830
|
+
/**
|
|
831
|
+
* Rerank scores are normalized to be in the range [0, 1]. Scores close to 1 indicate a high relevance to the query, and scores closer to 0 indicate low relevance. It is not accurate to assume a score of 0.9 means the document is 2x more relevant than a document with a score of 0.45
|
|
832
|
+
*/
|
|
833
|
+
rerankScore?: number | undefined;
|
|
834
|
+
/**
|
|
835
|
+
* Search scores are normalized to be in the range [0, 1]. Search score is calculated based on `[Cosine Similarity](https://en.wikipedia.org/wiki/Cosine_similarity)` algorithm. Scores close to 1 indicate the document is closer to the query, and scores closer to 0 indicate the document is farther from the query.
|
|
836
|
+
*/
|
|
837
|
+
searchScore: number;
|
|
838
|
+
};
|
|
839
|
+
export type DeploymentStreamRetrievals = {
|
|
840
|
+
/**
|
|
841
|
+
* Content of the retrieved chunk from the knowledge base
|
|
842
|
+
*/
|
|
843
|
+
document: string;
|
|
844
|
+
/**
|
|
845
|
+
* Metadata of the retrieved chunk from the knowledge base
|
|
846
|
+
*/
|
|
847
|
+
metadata: DeploymentStreamDeploymentsMetadata;
|
|
848
|
+
};
|
|
849
|
+
export type DeploymentStreamData = {
|
|
850
|
+
/**
|
|
851
|
+
* A unique identifier for the response. Can be used to add metrics to the transaction.
|
|
852
|
+
*/
|
|
853
|
+
id?: string | undefined;
|
|
854
|
+
/**
|
|
855
|
+
* A timestamp indicating when the object was created. Usually in a standardized format like ISO 8601
|
|
856
|
+
*/
|
|
857
|
+
created?: Date | undefined;
|
|
858
|
+
/**
|
|
859
|
+
* Indicates the type of model used to generate the response
|
|
860
|
+
*/
|
|
861
|
+
object?: DeploymentStreamObject | undefined;
|
|
862
|
+
/**
|
|
863
|
+
* The model used to generate the response
|
|
864
|
+
*/
|
|
865
|
+
model?: string | undefined;
|
|
866
|
+
/**
|
|
867
|
+
* The provider used to generate the response
|
|
868
|
+
*/
|
|
869
|
+
provider?: DeploymentStreamProvider | undefined;
|
|
870
|
+
/**
|
|
871
|
+
* Indicates if the response is the final response
|
|
872
|
+
*/
|
|
873
|
+
isFinal?: boolean | undefined;
|
|
874
|
+
/**
|
|
875
|
+
* Indicates integration id used to generate the response
|
|
876
|
+
*/
|
|
877
|
+
integrationId?: string | undefined;
|
|
878
|
+
/**
|
|
879
|
+
* A timestamp indicating when the object was finalized. Usually in a standardized format like ISO 8601
|
|
880
|
+
*/
|
|
881
|
+
finalized?: Date | undefined;
|
|
882
|
+
/**
|
|
883
|
+
* Provider backed system fingerprint.
|
|
884
|
+
*/
|
|
885
|
+
systemFingerprint?: string | null | undefined;
|
|
886
|
+
/**
|
|
887
|
+
* A list of choices generated by the model
|
|
888
|
+
*/
|
|
889
|
+
choices?: Array<DeploymentStreamChoices> | undefined;
|
|
890
|
+
/**
|
|
891
|
+
* List of documents retrieved from the knowledge base. This property is only available when the `include_retrievals` flag is set to `true` in the invoke settings. When stream is set to true, the `retrievals` property will be returned in the last streamed chunk where the property `is_final` is set to `true`.
|
|
892
|
+
*/
|
|
893
|
+
retrievals?: Array<DeploymentStreamRetrievals> | undefined;
|
|
894
|
+
/**
|
|
895
|
+
* Response returned by the model provider. This functionality is only supported when streaming is not used. If streaming is used, the `provider_response` property will be set to `null`.
|
|
896
|
+
*/
|
|
897
|
+
providerResponse?: any | undefined;
|
|
898
|
+
};
|
|
899
|
+
/**
|
|
900
|
+
* Successful operation
|
|
901
|
+
*/
|
|
902
|
+
export type DeploymentStreamResponseBody = {
|
|
903
|
+
data?: DeploymentStreamData | undefined;
|
|
904
|
+
};
|
|
905
|
+
/** @internal */
|
|
906
|
+
export declare const DeploymentStreamGlobals$inboundSchema: z.ZodType<DeploymentStreamGlobals, z.ZodTypeDef, unknown>;
|
|
907
|
+
/** @internal */
|
|
908
|
+
export type DeploymentStreamGlobals$Outbound = {
|
|
909
|
+
environment?: string | undefined;
|
|
910
|
+
contactId?: string | undefined;
|
|
911
|
+
};
|
|
912
|
+
/** @internal */
|
|
913
|
+
export declare const DeploymentStreamGlobals$outboundSchema: z.ZodType<DeploymentStreamGlobals$Outbound, z.ZodTypeDef, DeploymentStreamGlobals>;
|
|
914
|
+
/**
|
|
915
|
+
* @internal
|
|
916
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
917
|
+
*/
|
|
918
|
+
export declare namespace DeploymentStreamGlobals$ {
|
|
919
|
+
/** @deprecated use `DeploymentStreamGlobals$inboundSchema` instead. */
|
|
920
|
+
const inboundSchema: z.ZodType<DeploymentStreamGlobals, z.ZodTypeDef, unknown>;
|
|
921
|
+
/** @deprecated use `DeploymentStreamGlobals$outboundSchema` instead. */
|
|
922
|
+
const outboundSchema: z.ZodType<DeploymentStreamGlobals$Outbound, z.ZodTypeDef, DeploymentStreamGlobals>;
|
|
923
|
+
/** @deprecated use `DeploymentStreamGlobals$Outbound` instead. */
|
|
924
|
+
type Outbound = DeploymentStreamGlobals$Outbound;
|
|
925
|
+
}
|
|
926
|
+
export declare function deploymentStreamGlobalsToJSON(deploymentStreamGlobals: DeploymentStreamGlobals): string;
|
|
927
|
+
export declare function deploymentStreamGlobalsFromJSON(jsonString: string): SafeParseResult<DeploymentStreamGlobals, SDKValidationError>;
|
|
928
|
+
/** @internal */
|
|
929
|
+
export declare const DeploymentStreamInputs$inboundSchema: z.ZodType<DeploymentStreamInputs, z.ZodTypeDef, unknown>;
|
|
930
|
+
/** @internal */
|
|
931
|
+
export type DeploymentStreamInputs$Outbound = string | number | boolean;
|
|
932
|
+
/** @internal */
|
|
933
|
+
export declare const DeploymentStreamInputs$outboundSchema: z.ZodType<DeploymentStreamInputs$Outbound, z.ZodTypeDef, DeploymentStreamInputs>;
|
|
934
|
+
/**
|
|
935
|
+
* @internal
|
|
936
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
937
|
+
*/
|
|
938
|
+
export declare namespace DeploymentStreamInputs$ {
|
|
939
|
+
/** @deprecated use `DeploymentStreamInputs$inboundSchema` instead. */
|
|
940
|
+
const inboundSchema: z.ZodType<DeploymentStreamInputs, z.ZodTypeDef, unknown>;
|
|
941
|
+
/** @deprecated use `DeploymentStreamInputs$outboundSchema` instead. */
|
|
942
|
+
const outboundSchema: z.ZodType<DeploymentStreamInputs$Outbound, z.ZodTypeDef, DeploymentStreamInputs>;
|
|
943
|
+
/** @deprecated use `DeploymentStreamInputs$Outbound` instead. */
|
|
944
|
+
type Outbound = DeploymentStreamInputs$Outbound;
|
|
945
|
+
}
|
|
946
|
+
export declare function deploymentStreamInputsToJSON(deploymentStreamInputs: DeploymentStreamInputs): string;
|
|
947
|
+
export declare function deploymentStreamInputsFromJSON(jsonString: string): SafeParseResult<DeploymentStreamInputs, SDKValidationError>;
|
|
948
|
+
/** @internal */
|
|
949
|
+
export declare const DeploymentStreamPrefixMessagesDeploymentsRequestRequestBody5Role$inboundSchema: z.ZodNativeEnum<typeof DeploymentStreamPrefixMessagesDeploymentsRequestRequestBody5Role>;
|
|
950
|
+
/** @internal */
|
|
951
|
+
export declare const DeploymentStreamPrefixMessagesDeploymentsRequestRequestBody5Role$outboundSchema: z.ZodNativeEnum<typeof DeploymentStreamPrefixMessagesDeploymentsRequestRequestBody5Role>;
|
|
952
|
+
/**
|
|
953
|
+
* @internal
|
|
954
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
955
|
+
*/
|
|
956
|
+
export declare namespace DeploymentStreamPrefixMessagesDeploymentsRequestRequestBody5Role$ {
|
|
957
|
+
/** @deprecated use `DeploymentStreamPrefixMessagesDeploymentsRequestRequestBody5Role$inboundSchema` instead. */
|
|
958
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
959
|
+
readonly Tool: "tool";
|
|
960
|
+
}>;
|
|
961
|
+
/** @deprecated use `DeploymentStreamPrefixMessagesDeploymentsRequestRequestBody5Role$outboundSchema` instead. */
|
|
962
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
963
|
+
readonly Tool: "tool";
|
|
964
|
+
}>;
|
|
965
|
+
}
|
|
966
|
+
/** @internal */
|
|
967
|
+
export declare const DeploymentStreamPrefixMessagesDeploymentsRequestContent$inboundSchema: z.ZodType<DeploymentStreamPrefixMessagesDeploymentsRequestContent, z.ZodTypeDef, unknown>;
|
|
968
|
+
/** @internal */
|
|
969
|
+
export type DeploymentStreamPrefixMessagesDeploymentsRequestContent$Outbound = string | Array<string>;
|
|
970
|
+
/** @internal */
|
|
971
|
+
export declare const DeploymentStreamPrefixMessagesDeploymentsRequestContent$outboundSchema: z.ZodType<DeploymentStreamPrefixMessagesDeploymentsRequestContent$Outbound, z.ZodTypeDef, DeploymentStreamPrefixMessagesDeploymentsRequestContent>;
|
|
972
|
+
/**
|
|
973
|
+
* @internal
|
|
974
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
975
|
+
*/
|
|
976
|
+
export declare namespace DeploymentStreamPrefixMessagesDeploymentsRequestContent$ {
|
|
977
|
+
/** @deprecated use `DeploymentStreamPrefixMessagesDeploymentsRequestContent$inboundSchema` instead. */
|
|
978
|
+
const inboundSchema: z.ZodType<DeploymentStreamPrefixMessagesDeploymentsRequestContent, z.ZodTypeDef, unknown>;
|
|
979
|
+
/** @deprecated use `DeploymentStreamPrefixMessagesDeploymentsRequestContent$outboundSchema` instead. */
|
|
980
|
+
const outboundSchema: z.ZodType<DeploymentStreamPrefixMessagesDeploymentsRequestContent$Outbound, z.ZodTypeDef, DeploymentStreamPrefixMessagesDeploymentsRequestContent>;
|
|
981
|
+
/** @deprecated use `DeploymentStreamPrefixMessagesDeploymentsRequestContent$Outbound` instead. */
|
|
982
|
+
type Outbound = DeploymentStreamPrefixMessagesDeploymentsRequestContent$Outbound;
|
|
983
|
+
}
|
|
984
|
+
export declare function deploymentStreamPrefixMessagesDeploymentsRequestContentToJSON(deploymentStreamPrefixMessagesDeploymentsRequestContent: DeploymentStreamPrefixMessagesDeploymentsRequestContent): string;
|
|
985
|
+
export declare function deploymentStreamPrefixMessagesDeploymentsRequestContentFromJSON(jsonString: string): SafeParseResult<DeploymentStreamPrefixMessagesDeploymentsRequestContent, SDKValidationError>;
|
|
986
|
+
/** @internal */
|
|
987
|
+
export declare const PrefixMessagesToolMessage$inboundSchema: z.ZodType<PrefixMessagesToolMessage, z.ZodTypeDef, unknown>;
|
|
988
|
+
/** @internal */
|
|
989
|
+
export type PrefixMessagesToolMessage$Outbound = {
|
|
990
|
+
role: string;
|
|
991
|
+
content: string | Array<string>;
|
|
992
|
+
tool_call_id: string;
|
|
993
|
+
};
|
|
994
|
+
/** @internal */
|
|
995
|
+
export declare const PrefixMessagesToolMessage$outboundSchema: z.ZodType<PrefixMessagesToolMessage$Outbound, z.ZodTypeDef, PrefixMessagesToolMessage>;
|
|
996
|
+
/**
|
|
997
|
+
* @internal
|
|
998
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
999
|
+
*/
|
|
1000
|
+
export declare namespace PrefixMessagesToolMessage$ {
|
|
1001
|
+
/** @deprecated use `PrefixMessagesToolMessage$inboundSchema` instead. */
|
|
1002
|
+
const inboundSchema: z.ZodType<PrefixMessagesToolMessage, z.ZodTypeDef, unknown>;
|
|
1003
|
+
/** @deprecated use `PrefixMessagesToolMessage$outboundSchema` instead. */
|
|
1004
|
+
const outboundSchema: z.ZodType<PrefixMessagesToolMessage$Outbound, z.ZodTypeDef, PrefixMessagesToolMessage>;
|
|
1005
|
+
/** @deprecated use `PrefixMessagesToolMessage$Outbound` instead. */
|
|
1006
|
+
type Outbound = PrefixMessagesToolMessage$Outbound;
|
|
1007
|
+
}
|
|
1008
|
+
export declare function prefixMessagesToolMessageToJSON(prefixMessagesToolMessage: PrefixMessagesToolMessage): string;
|
|
1009
|
+
export declare function prefixMessagesToolMessageFromJSON(jsonString: string): SafeParseResult<PrefixMessagesToolMessage, SDKValidationError>;
|
|
1010
|
+
/** @internal */
|
|
1011
|
+
export declare const DeploymentStream2DeploymentsRequestRequestBodyPrefixMessagesType$inboundSchema: z.ZodNativeEnum<typeof DeploymentStream2DeploymentsRequestRequestBodyPrefixMessagesType>;
|
|
1012
|
+
/** @internal */
|
|
1013
|
+
export declare const DeploymentStream2DeploymentsRequestRequestBodyPrefixMessagesType$outboundSchema: z.ZodNativeEnum<typeof DeploymentStream2DeploymentsRequestRequestBodyPrefixMessagesType>;
|
|
1014
|
+
/**
|
|
1015
|
+
* @internal
|
|
1016
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1017
|
+
*/
|
|
1018
|
+
export declare namespace DeploymentStream2DeploymentsRequestRequestBodyPrefixMessagesType$ {
|
|
1019
|
+
/** @deprecated use `DeploymentStream2DeploymentsRequestRequestBodyPrefixMessagesType$inboundSchema` instead. */
|
|
1020
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
1021
|
+
readonly Refusal: "refusal";
|
|
1022
|
+
}>;
|
|
1023
|
+
/** @deprecated use `DeploymentStream2DeploymentsRequestRequestBodyPrefixMessagesType$outboundSchema` instead. */
|
|
1024
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
1025
|
+
readonly Refusal: "refusal";
|
|
1026
|
+
}>;
|
|
1027
|
+
}
|
|
1028
|
+
/** @internal */
|
|
1029
|
+
export declare const DeploymentStream2RefusalContentPart$inboundSchema: z.ZodType<DeploymentStream2RefusalContentPart, z.ZodTypeDef, unknown>;
|
|
1030
|
+
/** @internal */
|
|
1031
|
+
export type DeploymentStream2RefusalContentPart$Outbound = {
|
|
1032
|
+
type: string;
|
|
1033
|
+
refusal: string;
|
|
1034
|
+
};
|
|
1035
|
+
/** @internal */
|
|
1036
|
+
export declare const DeploymentStream2RefusalContentPart$outboundSchema: z.ZodType<DeploymentStream2RefusalContentPart$Outbound, z.ZodTypeDef, DeploymentStream2RefusalContentPart>;
|
|
1037
|
+
/**
|
|
1038
|
+
* @internal
|
|
1039
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1040
|
+
*/
|
|
1041
|
+
export declare namespace DeploymentStream2RefusalContentPart$ {
|
|
1042
|
+
/** @deprecated use `DeploymentStream2RefusalContentPart$inboundSchema` instead. */
|
|
1043
|
+
const inboundSchema: z.ZodType<DeploymentStream2RefusalContentPart, z.ZodTypeDef, unknown>;
|
|
1044
|
+
/** @deprecated use `DeploymentStream2RefusalContentPart$outboundSchema` instead. */
|
|
1045
|
+
const outboundSchema: z.ZodType<DeploymentStream2RefusalContentPart$Outbound, z.ZodTypeDef, DeploymentStream2RefusalContentPart>;
|
|
1046
|
+
/** @deprecated use `DeploymentStream2RefusalContentPart$Outbound` instead. */
|
|
1047
|
+
type Outbound = DeploymentStream2RefusalContentPart$Outbound;
|
|
1048
|
+
}
|
|
1049
|
+
export declare function deploymentStream2RefusalContentPartToJSON(deploymentStream2RefusalContentPart: DeploymentStream2RefusalContentPart): string;
|
|
1050
|
+
export declare function deploymentStream2RefusalContentPartFromJSON(jsonString: string): SafeParseResult<DeploymentStream2RefusalContentPart, SDKValidationError>;
|
|
1051
|
+
/** @internal */
|
|
1052
|
+
export declare const DeploymentStream2DeploymentsRequestRequestBodyType$inboundSchema: z.ZodNativeEnum<typeof DeploymentStream2DeploymentsRequestRequestBodyType>;
|
|
1053
|
+
/** @internal */
|
|
1054
|
+
export declare const DeploymentStream2DeploymentsRequestRequestBodyType$outboundSchema: z.ZodNativeEnum<typeof DeploymentStream2DeploymentsRequestRequestBodyType>;
|
|
1055
|
+
/**
|
|
1056
|
+
* @internal
|
|
1057
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1058
|
+
*/
|
|
1059
|
+
export declare namespace DeploymentStream2DeploymentsRequestRequestBodyType$ {
|
|
1060
|
+
/** @deprecated use `DeploymentStream2DeploymentsRequestRequestBodyType$inboundSchema` instead. */
|
|
1061
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
1062
|
+
readonly Text: "text";
|
|
1063
|
+
}>;
|
|
1064
|
+
/** @deprecated use `DeploymentStream2DeploymentsRequestRequestBodyType$outboundSchema` instead. */
|
|
1065
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
1066
|
+
readonly Text: "text";
|
|
1067
|
+
}>;
|
|
1068
|
+
}
|
|
1069
|
+
/** @internal */
|
|
1070
|
+
export declare const DeploymentStream2TextContentPart$inboundSchema: z.ZodType<DeploymentStream2TextContentPart, z.ZodTypeDef, unknown>;
|
|
1071
|
+
/** @internal */
|
|
1072
|
+
export type DeploymentStream2TextContentPart$Outbound = {
|
|
1073
|
+
type: string;
|
|
1074
|
+
text: string;
|
|
1075
|
+
};
|
|
1076
|
+
/** @internal */
|
|
1077
|
+
export declare const DeploymentStream2TextContentPart$outboundSchema: z.ZodType<DeploymentStream2TextContentPart$Outbound, z.ZodTypeDef, DeploymentStream2TextContentPart>;
|
|
1078
|
+
/**
|
|
1079
|
+
* @internal
|
|
1080
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1081
|
+
*/
|
|
1082
|
+
export declare namespace DeploymentStream2TextContentPart$ {
|
|
1083
|
+
/** @deprecated use `DeploymentStream2TextContentPart$inboundSchema` instead. */
|
|
1084
|
+
const inboundSchema: z.ZodType<DeploymentStream2TextContentPart, z.ZodTypeDef, unknown>;
|
|
1085
|
+
/** @deprecated use `DeploymentStream2TextContentPart$outboundSchema` instead. */
|
|
1086
|
+
const outboundSchema: z.ZodType<DeploymentStream2TextContentPart$Outbound, z.ZodTypeDef, DeploymentStream2TextContentPart>;
|
|
1087
|
+
/** @deprecated use `DeploymentStream2TextContentPart$Outbound` instead. */
|
|
1088
|
+
type Outbound = DeploymentStream2TextContentPart$Outbound;
|
|
1089
|
+
}
|
|
1090
|
+
export declare function deploymentStream2TextContentPartToJSON(deploymentStream2TextContentPart: DeploymentStream2TextContentPart): string;
|
|
1091
|
+
export declare function deploymentStream2TextContentPartFromJSON(jsonString: string): SafeParseResult<DeploymentStream2TextContentPart, SDKValidationError>;
|
|
1092
|
+
/** @internal */
|
|
1093
|
+
export declare const DeploymentStreamContentDeployments2$inboundSchema: z.ZodType<DeploymentStreamContentDeployments2, z.ZodTypeDef, unknown>;
|
|
1094
|
+
/** @internal */
|
|
1095
|
+
export type DeploymentStreamContentDeployments2$Outbound = DeploymentStream2TextContentPart$Outbound | DeploymentStream2RefusalContentPart$Outbound;
|
|
1096
|
+
/** @internal */
|
|
1097
|
+
export declare const DeploymentStreamContentDeployments2$outboundSchema: z.ZodType<DeploymentStreamContentDeployments2$Outbound, z.ZodTypeDef, DeploymentStreamContentDeployments2>;
|
|
1098
|
+
/**
|
|
1099
|
+
* @internal
|
|
1100
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1101
|
+
*/
|
|
1102
|
+
export declare namespace DeploymentStreamContentDeployments2$ {
|
|
1103
|
+
/** @deprecated use `DeploymentStreamContentDeployments2$inboundSchema` instead. */
|
|
1104
|
+
const inboundSchema: z.ZodType<DeploymentStreamContentDeployments2, z.ZodTypeDef, unknown>;
|
|
1105
|
+
/** @deprecated use `DeploymentStreamContentDeployments2$outboundSchema` instead. */
|
|
1106
|
+
const outboundSchema: z.ZodType<DeploymentStreamContentDeployments2$Outbound, z.ZodTypeDef, DeploymentStreamContentDeployments2>;
|
|
1107
|
+
/** @deprecated use `DeploymentStreamContentDeployments2$Outbound` instead. */
|
|
1108
|
+
type Outbound = DeploymentStreamContentDeployments2$Outbound;
|
|
1109
|
+
}
|
|
1110
|
+
export declare function deploymentStreamContentDeployments2ToJSON(deploymentStreamContentDeployments2: DeploymentStreamContentDeployments2): string;
|
|
1111
|
+
export declare function deploymentStreamContentDeployments2FromJSON(jsonString: string): SafeParseResult<DeploymentStreamContentDeployments2, SDKValidationError>;
|
|
1112
|
+
/** @internal */
|
|
1113
|
+
export declare const DeploymentStreamPrefixMessagesDeploymentsContent$inboundSchema: z.ZodType<DeploymentStreamPrefixMessagesDeploymentsContent, z.ZodTypeDef, unknown>;
|
|
1114
|
+
/** @internal */
|
|
1115
|
+
export type DeploymentStreamPrefixMessagesDeploymentsContent$Outbound = string | Array<DeploymentStream2TextContentPart$Outbound | DeploymentStream2RefusalContentPart$Outbound>;
|
|
1116
|
+
/** @internal */
|
|
1117
|
+
export declare const DeploymentStreamPrefixMessagesDeploymentsContent$outboundSchema: z.ZodType<DeploymentStreamPrefixMessagesDeploymentsContent$Outbound, z.ZodTypeDef, DeploymentStreamPrefixMessagesDeploymentsContent>;
|
|
1118
|
+
/**
|
|
1119
|
+
* @internal
|
|
1120
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1121
|
+
*/
|
|
1122
|
+
export declare namespace DeploymentStreamPrefixMessagesDeploymentsContent$ {
|
|
1123
|
+
/** @deprecated use `DeploymentStreamPrefixMessagesDeploymentsContent$inboundSchema` instead. */
|
|
1124
|
+
const inboundSchema: z.ZodType<DeploymentStreamPrefixMessagesDeploymentsContent, z.ZodTypeDef, unknown>;
|
|
1125
|
+
/** @deprecated use `DeploymentStreamPrefixMessagesDeploymentsContent$outboundSchema` instead. */
|
|
1126
|
+
const outboundSchema: z.ZodType<DeploymentStreamPrefixMessagesDeploymentsContent$Outbound, z.ZodTypeDef, DeploymentStreamPrefixMessagesDeploymentsContent>;
|
|
1127
|
+
/** @deprecated use `DeploymentStreamPrefixMessagesDeploymentsContent$Outbound` instead. */
|
|
1128
|
+
type Outbound = DeploymentStreamPrefixMessagesDeploymentsContent$Outbound;
|
|
1129
|
+
}
|
|
1130
|
+
export declare function deploymentStreamPrefixMessagesDeploymentsContentToJSON(deploymentStreamPrefixMessagesDeploymentsContent: DeploymentStreamPrefixMessagesDeploymentsContent): string;
|
|
1131
|
+
export declare function deploymentStreamPrefixMessagesDeploymentsContentFromJSON(jsonString: string): SafeParseResult<DeploymentStreamPrefixMessagesDeploymentsContent, SDKValidationError>;
|
|
1132
|
+
/** @internal */
|
|
1133
|
+
export declare const DeploymentStreamPrefixMessagesDeploymentsRequestRequestBodyRole$inboundSchema: z.ZodNativeEnum<typeof DeploymentStreamPrefixMessagesDeploymentsRequestRequestBodyRole>;
|
|
1134
|
+
/** @internal */
|
|
1135
|
+
export declare const DeploymentStreamPrefixMessagesDeploymentsRequestRequestBodyRole$outboundSchema: z.ZodNativeEnum<typeof DeploymentStreamPrefixMessagesDeploymentsRequestRequestBodyRole>;
|
|
1136
|
+
/**
|
|
1137
|
+
* @internal
|
|
1138
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1139
|
+
*/
|
|
1140
|
+
export declare namespace DeploymentStreamPrefixMessagesDeploymentsRequestRequestBodyRole$ {
|
|
1141
|
+
/** @deprecated use `DeploymentStreamPrefixMessagesDeploymentsRequestRequestBodyRole$inboundSchema` instead. */
|
|
1142
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
1143
|
+
readonly Assistant: "assistant";
|
|
1144
|
+
}>;
|
|
1145
|
+
/** @deprecated use `DeploymentStreamPrefixMessagesDeploymentsRequestRequestBodyRole$outboundSchema` instead. */
|
|
1146
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
1147
|
+
readonly Assistant: "assistant";
|
|
1148
|
+
}>;
|
|
1149
|
+
}
|
|
1150
|
+
/** @internal */
|
|
1151
|
+
export declare const PrefixMessagesAudio$inboundSchema: z.ZodType<PrefixMessagesAudio, z.ZodTypeDef, unknown>;
|
|
1152
|
+
/** @internal */
|
|
1153
|
+
export type PrefixMessagesAudio$Outbound = {
|
|
1154
|
+
id: string;
|
|
1155
|
+
};
|
|
1156
|
+
/** @internal */
|
|
1157
|
+
export declare const PrefixMessagesAudio$outboundSchema: z.ZodType<PrefixMessagesAudio$Outbound, z.ZodTypeDef, PrefixMessagesAudio>;
|
|
1158
|
+
/**
|
|
1159
|
+
* @internal
|
|
1160
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1161
|
+
*/
|
|
1162
|
+
export declare namespace PrefixMessagesAudio$ {
|
|
1163
|
+
/** @deprecated use `PrefixMessagesAudio$inboundSchema` instead. */
|
|
1164
|
+
const inboundSchema: z.ZodType<PrefixMessagesAudio, z.ZodTypeDef, unknown>;
|
|
1165
|
+
/** @deprecated use `PrefixMessagesAudio$outboundSchema` instead. */
|
|
1166
|
+
const outboundSchema: z.ZodType<PrefixMessagesAudio$Outbound, z.ZodTypeDef, PrefixMessagesAudio>;
|
|
1167
|
+
/** @deprecated use `PrefixMessagesAudio$Outbound` instead. */
|
|
1168
|
+
type Outbound = PrefixMessagesAudio$Outbound;
|
|
1169
|
+
}
|
|
1170
|
+
export declare function prefixMessagesAudioToJSON(prefixMessagesAudio: PrefixMessagesAudio): string;
|
|
1171
|
+
export declare function prefixMessagesAudioFromJSON(jsonString: string): SafeParseResult<PrefixMessagesAudio, SDKValidationError>;
|
|
1172
|
+
/** @internal */
|
|
1173
|
+
export declare const DeploymentStreamPrefixMessagesType$inboundSchema: z.ZodNativeEnum<typeof DeploymentStreamPrefixMessagesType>;
|
|
1174
|
+
/** @internal */
|
|
1175
|
+
export declare const DeploymentStreamPrefixMessagesType$outboundSchema: z.ZodNativeEnum<typeof DeploymentStreamPrefixMessagesType>;
|
|
1176
|
+
/**
|
|
1177
|
+
* @internal
|
|
1178
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1179
|
+
*/
|
|
1180
|
+
export declare namespace DeploymentStreamPrefixMessagesType$ {
|
|
1181
|
+
/** @deprecated use `DeploymentStreamPrefixMessagesType$inboundSchema` instead. */
|
|
1182
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
1183
|
+
readonly Function: "function";
|
|
1184
|
+
}>;
|
|
1185
|
+
/** @deprecated use `DeploymentStreamPrefixMessagesType$outboundSchema` instead. */
|
|
1186
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
1187
|
+
readonly Function: "function";
|
|
1188
|
+
}>;
|
|
1189
|
+
}
|
|
1190
|
+
/** @internal */
|
|
1191
|
+
export declare const PrefixMessagesFunction$inboundSchema: z.ZodType<PrefixMessagesFunction, z.ZodTypeDef, unknown>;
|
|
1192
|
+
/** @internal */
|
|
1193
|
+
export type PrefixMessagesFunction$Outbound = {
|
|
1194
|
+
name?: string | undefined;
|
|
1195
|
+
arguments?: string | undefined;
|
|
1196
|
+
};
|
|
1197
|
+
/** @internal */
|
|
1198
|
+
export declare const PrefixMessagesFunction$outboundSchema: z.ZodType<PrefixMessagesFunction$Outbound, z.ZodTypeDef, PrefixMessagesFunction>;
|
|
1199
|
+
/**
|
|
1200
|
+
* @internal
|
|
1201
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1202
|
+
*/
|
|
1203
|
+
export declare namespace PrefixMessagesFunction$ {
|
|
1204
|
+
/** @deprecated use `PrefixMessagesFunction$inboundSchema` instead. */
|
|
1205
|
+
const inboundSchema: z.ZodType<PrefixMessagesFunction, z.ZodTypeDef, unknown>;
|
|
1206
|
+
/** @deprecated use `PrefixMessagesFunction$outboundSchema` instead. */
|
|
1207
|
+
const outboundSchema: z.ZodType<PrefixMessagesFunction$Outbound, z.ZodTypeDef, PrefixMessagesFunction>;
|
|
1208
|
+
/** @deprecated use `PrefixMessagesFunction$Outbound` instead. */
|
|
1209
|
+
type Outbound = PrefixMessagesFunction$Outbound;
|
|
1210
|
+
}
|
|
1211
|
+
export declare function prefixMessagesFunctionToJSON(prefixMessagesFunction: PrefixMessagesFunction): string;
|
|
1212
|
+
export declare function prefixMessagesFunctionFromJSON(jsonString: string): SafeParseResult<PrefixMessagesFunction, SDKValidationError>;
|
|
1213
|
+
/** @internal */
|
|
1214
|
+
export declare const PrefixMessagesToolCalls$inboundSchema: z.ZodType<PrefixMessagesToolCalls, z.ZodTypeDef, unknown>;
|
|
1215
|
+
/** @internal */
|
|
1216
|
+
export type PrefixMessagesToolCalls$Outbound = {
|
|
1217
|
+
id: string;
|
|
1218
|
+
type: string;
|
|
1219
|
+
function: PrefixMessagesFunction$Outbound;
|
|
1220
|
+
};
|
|
1221
|
+
/** @internal */
|
|
1222
|
+
export declare const PrefixMessagesToolCalls$outboundSchema: z.ZodType<PrefixMessagesToolCalls$Outbound, z.ZodTypeDef, PrefixMessagesToolCalls>;
|
|
1223
|
+
/**
|
|
1224
|
+
* @internal
|
|
1225
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1226
|
+
*/
|
|
1227
|
+
export declare namespace PrefixMessagesToolCalls$ {
|
|
1228
|
+
/** @deprecated use `PrefixMessagesToolCalls$inboundSchema` instead. */
|
|
1229
|
+
const inboundSchema: z.ZodType<PrefixMessagesToolCalls, z.ZodTypeDef, unknown>;
|
|
1230
|
+
/** @deprecated use `PrefixMessagesToolCalls$outboundSchema` instead. */
|
|
1231
|
+
const outboundSchema: z.ZodType<PrefixMessagesToolCalls$Outbound, z.ZodTypeDef, PrefixMessagesToolCalls>;
|
|
1232
|
+
/** @deprecated use `PrefixMessagesToolCalls$Outbound` instead. */
|
|
1233
|
+
type Outbound = PrefixMessagesToolCalls$Outbound;
|
|
1234
|
+
}
|
|
1235
|
+
export declare function prefixMessagesToolCallsToJSON(prefixMessagesToolCalls: PrefixMessagesToolCalls): string;
|
|
1236
|
+
export declare function prefixMessagesToolCallsFromJSON(jsonString: string): SafeParseResult<PrefixMessagesToolCalls, SDKValidationError>;
|
|
1237
|
+
/** @internal */
|
|
1238
|
+
export declare const PrefixMessagesAssistantMessage$inboundSchema: z.ZodType<PrefixMessagesAssistantMessage, z.ZodTypeDef, unknown>;
|
|
1239
|
+
/** @internal */
|
|
1240
|
+
export type PrefixMessagesAssistantMessage$Outbound = {
|
|
1241
|
+
content?: string | Array<DeploymentStream2TextContentPart$Outbound | DeploymentStream2RefusalContentPart$Outbound> | undefined;
|
|
1242
|
+
refusal?: string | null | undefined;
|
|
1243
|
+
role: string;
|
|
1244
|
+
name?: string | undefined;
|
|
1245
|
+
audio?: PrefixMessagesAudio$Outbound | null | undefined;
|
|
1246
|
+
tool_calls?: Array<PrefixMessagesToolCalls$Outbound> | undefined;
|
|
1247
|
+
};
|
|
1248
|
+
/** @internal */
|
|
1249
|
+
export declare const PrefixMessagesAssistantMessage$outboundSchema: z.ZodType<PrefixMessagesAssistantMessage$Outbound, z.ZodTypeDef, PrefixMessagesAssistantMessage>;
|
|
1250
|
+
/**
|
|
1251
|
+
* @internal
|
|
1252
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1253
|
+
*/
|
|
1254
|
+
export declare namespace PrefixMessagesAssistantMessage$ {
|
|
1255
|
+
/** @deprecated use `PrefixMessagesAssistantMessage$inboundSchema` instead. */
|
|
1256
|
+
const inboundSchema: z.ZodType<PrefixMessagesAssistantMessage, z.ZodTypeDef, unknown>;
|
|
1257
|
+
/** @deprecated use `PrefixMessagesAssistantMessage$outboundSchema` instead. */
|
|
1258
|
+
const outboundSchema: z.ZodType<PrefixMessagesAssistantMessage$Outbound, z.ZodTypeDef, PrefixMessagesAssistantMessage>;
|
|
1259
|
+
/** @deprecated use `PrefixMessagesAssistantMessage$Outbound` instead. */
|
|
1260
|
+
type Outbound = PrefixMessagesAssistantMessage$Outbound;
|
|
1261
|
+
}
|
|
1262
|
+
export declare function prefixMessagesAssistantMessageToJSON(prefixMessagesAssistantMessage: PrefixMessagesAssistantMessage): string;
|
|
1263
|
+
export declare function prefixMessagesAssistantMessageFromJSON(jsonString: string): SafeParseResult<PrefixMessagesAssistantMessage, SDKValidationError>;
|
|
1264
|
+
/** @internal */
|
|
1265
|
+
export declare const DeploymentStreamPrefixMessagesDeploymentsRequestRole$inboundSchema: z.ZodNativeEnum<typeof DeploymentStreamPrefixMessagesDeploymentsRequestRole>;
|
|
1266
|
+
/** @internal */
|
|
1267
|
+
export declare const DeploymentStreamPrefixMessagesDeploymentsRequestRole$outboundSchema: z.ZodNativeEnum<typeof DeploymentStreamPrefixMessagesDeploymentsRequestRole>;
|
|
1268
|
+
/**
|
|
1269
|
+
* @internal
|
|
1270
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1271
|
+
*/
|
|
1272
|
+
export declare namespace DeploymentStreamPrefixMessagesDeploymentsRequestRole$ {
|
|
1273
|
+
/** @deprecated use `DeploymentStreamPrefixMessagesDeploymentsRequestRole$inboundSchema` instead. */
|
|
1274
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
1275
|
+
readonly User: "user";
|
|
1276
|
+
}>;
|
|
1277
|
+
/** @deprecated use `DeploymentStreamPrefixMessagesDeploymentsRequestRole$outboundSchema` instead. */
|
|
1278
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
1279
|
+
readonly User: "user";
|
|
1280
|
+
}>;
|
|
1281
|
+
}
|
|
1282
|
+
/** @internal */
|
|
1283
|
+
export declare const DeploymentStream2DeploymentsRequestType$inboundSchema: z.ZodNativeEnum<typeof DeploymentStream2DeploymentsRequestType>;
|
|
1284
|
+
/** @internal */
|
|
1285
|
+
export declare const DeploymentStream2DeploymentsRequestType$outboundSchema: z.ZodNativeEnum<typeof DeploymentStream2DeploymentsRequestType>;
|
|
1286
|
+
/**
|
|
1287
|
+
* @internal
|
|
1288
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1289
|
+
*/
|
|
1290
|
+
export declare namespace DeploymentStream2DeploymentsRequestType$ {
|
|
1291
|
+
/** @deprecated use `DeploymentStream2DeploymentsRequestType$inboundSchema` instead. */
|
|
1292
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
1293
|
+
readonly InputAudio: "input_audio";
|
|
1294
|
+
}>;
|
|
1295
|
+
/** @deprecated use `DeploymentStream2DeploymentsRequestType$outboundSchema` instead. */
|
|
1296
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
1297
|
+
readonly InputAudio: "input_audio";
|
|
1298
|
+
}>;
|
|
1299
|
+
}
|
|
1300
|
+
/** @internal */
|
|
1301
|
+
export declare const DeploymentStream2Format$inboundSchema: z.ZodNativeEnum<typeof DeploymentStream2Format>;
|
|
1302
|
+
/** @internal */
|
|
1303
|
+
export declare const DeploymentStream2Format$outboundSchema: z.ZodNativeEnum<typeof DeploymentStream2Format>;
|
|
1304
|
+
/**
|
|
1305
|
+
* @internal
|
|
1306
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1307
|
+
*/
|
|
1308
|
+
export declare namespace DeploymentStream2Format$ {
|
|
1309
|
+
/** @deprecated use `DeploymentStream2Format$inboundSchema` instead. */
|
|
1310
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
1311
|
+
readonly Mp3: "mp3";
|
|
1312
|
+
readonly Wav: "wav";
|
|
1313
|
+
}>;
|
|
1314
|
+
/** @deprecated use `DeploymentStream2Format$outboundSchema` instead. */
|
|
1315
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
1316
|
+
readonly Mp3: "mp3";
|
|
1317
|
+
readonly Wav: "wav";
|
|
1318
|
+
}>;
|
|
1319
|
+
}
|
|
1320
|
+
/** @internal */
|
|
1321
|
+
export declare const DeploymentStream2InputAudio$inboundSchema: z.ZodType<DeploymentStream2InputAudio, z.ZodTypeDef, unknown>;
|
|
1322
|
+
/** @internal */
|
|
1323
|
+
export type DeploymentStream2InputAudio$Outbound = {
|
|
1324
|
+
data: string;
|
|
1325
|
+
format: string;
|
|
1326
|
+
};
|
|
1327
|
+
/** @internal */
|
|
1328
|
+
export declare const DeploymentStream2InputAudio$outboundSchema: z.ZodType<DeploymentStream2InputAudio$Outbound, z.ZodTypeDef, DeploymentStream2InputAudio>;
|
|
1329
|
+
/**
|
|
1330
|
+
* @internal
|
|
1331
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1332
|
+
*/
|
|
1333
|
+
export declare namespace DeploymentStream2InputAudio$ {
|
|
1334
|
+
/** @deprecated use `DeploymentStream2InputAudio$inboundSchema` instead. */
|
|
1335
|
+
const inboundSchema: z.ZodType<DeploymentStream2InputAudio, z.ZodTypeDef, unknown>;
|
|
1336
|
+
/** @deprecated use `DeploymentStream2InputAudio$outboundSchema` instead. */
|
|
1337
|
+
const outboundSchema: z.ZodType<DeploymentStream2InputAudio$Outbound, z.ZodTypeDef, DeploymentStream2InputAudio>;
|
|
1338
|
+
/** @deprecated use `DeploymentStream2InputAudio$Outbound` instead. */
|
|
1339
|
+
type Outbound = DeploymentStream2InputAudio$Outbound;
|
|
1340
|
+
}
|
|
1341
|
+
export declare function deploymentStream2InputAudioToJSON(deploymentStream2InputAudio: DeploymentStream2InputAudio): string;
|
|
1342
|
+
export declare function deploymentStream2InputAudioFromJSON(jsonString: string): SafeParseResult<DeploymentStream2InputAudio, SDKValidationError>;
|
|
1343
|
+
/** @internal */
|
|
1344
|
+
export declare const DeploymentStream23$inboundSchema: z.ZodType<DeploymentStream23, z.ZodTypeDef, unknown>;
|
|
1345
|
+
/** @internal */
|
|
1346
|
+
export type DeploymentStream23$Outbound = {
|
|
1347
|
+
type: string;
|
|
1348
|
+
input_audio: DeploymentStream2InputAudio$Outbound;
|
|
1349
|
+
};
|
|
1350
|
+
/** @internal */
|
|
1351
|
+
export declare const DeploymentStream23$outboundSchema: z.ZodType<DeploymentStream23$Outbound, z.ZodTypeDef, DeploymentStream23>;
|
|
1352
|
+
/**
|
|
1353
|
+
* @internal
|
|
1354
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1355
|
+
*/
|
|
1356
|
+
export declare namespace DeploymentStream23$ {
|
|
1357
|
+
/** @deprecated use `DeploymentStream23$inboundSchema` instead. */
|
|
1358
|
+
const inboundSchema: z.ZodType<DeploymentStream23, z.ZodTypeDef, unknown>;
|
|
1359
|
+
/** @deprecated use `DeploymentStream23$outboundSchema` instead. */
|
|
1360
|
+
const outboundSchema: z.ZodType<DeploymentStream23$Outbound, z.ZodTypeDef, DeploymentStream23>;
|
|
1361
|
+
/** @deprecated use `DeploymentStream23$Outbound` instead. */
|
|
1362
|
+
type Outbound = DeploymentStream23$Outbound;
|
|
1363
|
+
}
|
|
1364
|
+
export declare function deploymentStream23ToJSON(deploymentStream23: DeploymentStream23): string;
|
|
1365
|
+
export declare function deploymentStream23FromJSON(jsonString: string): SafeParseResult<DeploymentStream23, SDKValidationError>;
|
|
1366
|
+
/** @internal */
|
|
1367
|
+
export declare const DeploymentStream2DeploymentsType$inboundSchema: z.ZodNativeEnum<typeof DeploymentStream2DeploymentsType>;
|
|
1368
|
+
/** @internal */
|
|
1369
|
+
export declare const DeploymentStream2DeploymentsType$outboundSchema: z.ZodNativeEnum<typeof DeploymentStream2DeploymentsType>;
|
|
1370
|
+
/**
|
|
1371
|
+
* @internal
|
|
1372
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1373
|
+
*/
|
|
1374
|
+
export declare namespace DeploymentStream2DeploymentsType$ {
|
|
1375
|
+
/** @deprecated use `DeploymentStream2DeploymentsType$inboundSchema` instead. */
|
|
1376
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
1377
|
+
readonly ImageUrl: "image_url";
|
|
1378
|
+
}>;
|
|
1379
|
+
/** @deprecated use `DeploymentStream2DeploymentsType$outboundSchema` instead. */
|
|
1380
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
1381
|
+
readonly ImageUrl: "image_url";
|
|
1382
|
+
}>;
|
|
1383
|
+
}
|
|
1384
|
+
/** @internal */
|
|
1385
|
+
export declare const DeploymentStream2Detail$inboundSchema: z.ZodNativeEnum<typeof DeploymentStream2Detail>;
|
|
1386
|
+
/** @internal */
|
|
1387
|
+
export declare const DeploymentStream2Detail$outboundSchema: z.ZodNativeEnum<typeof DeploymentStream2Detail>;
|
|
1388
|
+
/**
|
|
1389
|
+
* @internal
|
|
1390
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1391
|
+
*/
|
|
1392
|
+
export declare namespace DeploymentStream2Detail$ {
|
|
1393
|
+
/** @deprecated use `DeploymentStream2Detail$inboundSchema` instead. */
|
|
1394
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
1395
|
+
readonly Low: "low";
|
|
1396
|
+
readonly High: "high";
|
|
1397
|
+
readonly Auto: "auto";
|
|
1398
|
+
}>;
|
|
1399
|
+
/** @deprecated use `DeploymentStream2Detail$outboundSchema` instead. */
|
|
1400
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
1401
|
+
readonly Low: "low";
|
|
1402
|
+
readonly High: "high";
|
|
1403
|
+
readonly Auto: "auto";
|
|
1404
|
+
}>;
|
|
1405
|
+
}
|
|
1406
|
+
/** @internal */
|
|
1407
|
+
export declare const DeploymentStream2ImageUrl$inboundSchema: z.ZodType<DeploymentStream2ImageUrl, z.ZodTypeDef, unknown>;
|
|
1408
|
+
/** @internal */
|
|
1409
|
+
export type DeploymentStream2ImageUrl$Outbound = {
|
|
1410
|
+
url: string;
|
|
1411
|
+
detail?: string | undefined;
|
|
1412
|
+
};
|
|
1413
|
+
/** @internal */
|
|
1414
|
+
export declare const DeploymentStream2ImageUrl$outboundSchema: z.ZodType<DeploymentStream2ImageUrl$Outbound, z.ZodTypeDef, DeploymentStream2ImageUrl>;
|
|
1415
|
+
/**
|
|
1416
|
+
* @internal
|
|
1417
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1418
|
+
*/
|
|
1419
|
+
export declare namespace DeploymentStream2ImageUrl$ {
|
|
1420
|
+
/** @deprecated use `DeploymentStream2ImageUrl$inboundSchema` instead. */
|
|
1421
|
+
const inboundSchema: z.ZodType<DeploymentStream2ImageUrl, z.ZodTypeDef, unknown>;
|
|
1422
|
+
/** @deprecated use `DeploymentStream2ImageUrl$outboundSchema` instead. */
|
|
1423
|
+
const outboundSchema: z.ZodType<DeploymentStream2ImageUrl$Outbound, z.ZodTypeDef, DeploymentStream2ImageUrl>;
|
|
1424
|
+
/** @deprecated use `DeploymentStream2ImageUrl$Outbound` instead. */
|
|
1425
|
+
type Outbound = DeploymentStream2ImageUrl$Outbound;
|
|
1426
|
+
}
|
|
1427
|
+
export declare function deploymentStream2ImageUrlToJSON(deploymentStream2ImageUrl: DeploymentStream2ImageUrl): string;
|
|
1428
|
+
export declare function deploymentStream2ImageUrlFromJSON(jsonString: string): SafeParseResult<DeploymentStream2ImageUrl, SDKValidationError>;
|
|
1429
|
+
/** @internal */
|
|
1430
|
+
export declare const DeploymentStream22$inboundSchema: z.ZodType<DeploymentStream22, z.ZodTypeDef, unknown>;
|
|
1431
|
+
/** @internal */
|
|
1432
|
+
export type DeploymentStream22$Outbound = {
|
|
1433
|
+
type: string;
|
|
1434
|
+
image_url: DeploymentStream2ImageUrl$Outbound;
|
|
1435
|
+
};
|
|
1436
|
+
/** @internal */
|
|
1437
|
+
export declare const DeploymentStream22$outboundSchema: z.ZodType<DeploymentStream22$Outbound, z.ZodTypeDef, DeploymentStream22>;
|
|
1438
|
+
/**
|
|
1439
|
+
* @internal
|
|
1440
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1441
|
+
*/
|
|
1442
|
+
export declare namespace DeploymentStream22$ {
|
|
1443
|
+
/** @deprecated use `DeploymentStream22$inboundSchema` instead. */
|
|
1444
|
+
const inboundSchema: z.ZodType<DeploymentStream22, z.ZodTypeDef, unknown>;
|
|
1445
|
+
/** @deprecated use `DeploymentStream22$outboundSchema` instead. */
|
|
1446
|
+
const outboundSchema: z.ZodType<DeploymentStream22$Outbound, z.ZodTypeDef, DeploymentStream22>;
|
|
1447
|
+
/** @deprecated use `DeploymentStream22$Outbound` instead. */
|
|
1448
|
+
type Outbound = DeploymentStream22$Outbound;
|
|
1449
|
+
}
|
|
1450
|
+
export declare function deploymentStream22ToJSON(deploymentStream22: DeploymentStream22): string;
|
|
1451
|
+
export declare function deploymentStream22FromJSON(jsonString: string): SafeParseResult<DeploymentStream22, SDKValidationError>;
|
|
1452
|
+
/** @internal */
|
|
1453
|
+
export declare const DeploymentStream2Type$inboundSchema: z.ZodNativeEnum<typeof DeploymentStream2Type>;
|
|
1454
|
+
/** @internal */
|
|
1455
|
+
export declare const DeploymentStream2Type$outboundSchema: z.ZodNativeEnum<typeof DeploymentStream2Type>;
|
|
1456
|
+
/**
|
|
1457
|
+
* @internal
|
|
1458
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1459
|
+
*/
|
|
1460
|
+
export declare namespace DeploymentStream2Type$ {
|
|
1461
|
+
/** @deprecated use `DeploymentStream2Type$inboundSchema` instead. */
|
|
1462
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
1463
|
+
readonly Text: "text";
|
|
1464
|
+
}>;
|
|
1465
|
+
/** @deprecated use `DeploymentStream2Type$outboundSchema` instead. */
|
|
1466
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
1467
|
+
readonly Text: "text";
|
|
1468
|
+
}>;
|
|
1469
|
+
}
|
|
1470
|
+
/** @internal */
|
|
1471
|
+
export declare const DeploymentStream21$inboundSchema: z.ZodType<DeploymentStream21, z.ZodTypeDef, unknown>;
|
|
1472
|
+
/** @internal */
|
|
1473
|
+
export type DeploymentStream21$Outbound = {
|
|
1474
|
+
type: string;
|
|
1475
|
+
text: string;
|
|
1476
|
+
};
|
|
1477
|
+
/** @internal */
|
|
1478
|
+
export declare const DeploymentStream21$outboundSchema: z.ZodType<DeploymentStream21$Outbound, z.ZodTypeDef, DeploymentStream21>;
|
|
1479
|
+
/**
|
|
1480
|
+
* @internal
|
|
1481
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1482
|
+
*/
|
|
1483
|
+
export declare namespace DeploymentStream21$ {
|
|
1484
|
+
/** @deprecated use `DeploymentStream21$inboundSchema` instead. */
|
|
1485
|
+
const inboundSchema: z.ZodType<DeploymentStream21, z.ZodTypeDef, unknown>;
|
|
1486
|
+
/** @deprecated use `DeploymentStream21$outboundSchema` instead. */
|
|
1487
|
+
const outboundSchema: z.ZodType<DeploymentStream21$Outbound, z.ZodTypeDef, DeploymentStream21>;
|
|
1488
|
+
/** @deprecated use `DeploymentStream21$Outbound` instead. */
|
|
1489
|
+
type Outbound = DeploymentStream21$Outbound;
|
|
1490
|
+
}
|
|
1491
|
+
export declare function deploymentStream21ToJSON(deploymentStream21: DeploymentStream21): string;
|
|
1492
|
+
export declare function deploymentStream21FromJSON(jsonString: string): SafeParseResult<DeploymentStream21, SDKValidationError>;
|
|
1493
|
+
/** @internal */
|
|
1494
|
+
export declare const DeploymentStreamContent2$inboundSchema: z.ZodType<DeploymentStreamContent2, z.ZodTypeDef, unknown>;
|
|
1495
|
+
/** @internal */
|
|
1496
|
+
export type DeploymentStreamContent2$Outbound = DeploymentStream21$Outbound | DeploymentStream22$Outbound | DeploymentStream23$Outbound;
|
|
1497
|
+
/** @internal */
|
|
1498
|
+
export declare const DeploymentStreamContent2$outboundSchema: z.ZodType<DeploymentStreamContent2$Outbound, z.ZodTypeDef, DeploymentStreamContent2>;
|
|
1499
|
+
/**
|
|
1500
|
+
* @internal
|
|
1501
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1502
|
+
*/
|
|
1503
|
+
export declare namespace DeploymentStreamContent2$ {
|
|
1504
|
+
/** @deprecated use `DeploymentStreamContent2$inboundSchema` instead. */
|
|
1505
|
+
const inboundSchema: z.ZodType<DeploymentStreamContent2, z.ZodTypeDef, unknown>;
|
|
1506
|
+
/** @deprecated use `DeploymentStreamContent2$outboundSchema` instead. */
|
|
1507
|
+
const outboundSchema: z.ZodType<DeploymentStreamContent2$Outbound, z.ZodTypeDef, DeploymentStreamContent2>;
|
|
1508
|
+
/** @deprecated use `DeploymentStreamContent2$Outbound` instead. */
|
|
1509
|
+
type Outbound = DeploymentStreamContent2$Outbound;
|
|
1510
|
+
}
|
|
1511
|
+
export declare function deploymentStreamContent2ToJSON(deploymentStreamContent2: DeploymentStreamContent2): string;
|
|
1512
|
+
export declare function deploymentStreamContent2FromJSON(jsonString: string): SafeParseResult<DeploymentStreamContent2, SDKValidationError>;
|
|
1513
|
+
/** @internal */
|
|
1514
|
+
export declare const DeploymentStreamPrefixMessagesContent$inboundSchema: z.ZodType<DeploymentStreamPrefixMessagesContent, z.ZodTypeDef, unknown>;
|
|
1515
|
+
/** @internal */
|
|
1516
|
+
export type DeploymentStreamPrefixMessagesContent$Outbound = string | Array<DeploymentStream21$Outbound | DeploymentStream22$Outbound | DeploymentStream23$Outbound>;
|
|
1517
|
+
/** @internal */
|
|
1518
|
+
export declare const DeploymentStreamPrefixMessagesContent$outboundSchema: z.ZodType<DeploymentStreamPrefixMessagesContent$Outbound, z.ZodTypeDef, DeploymentStreamPrefixMessagesContent>;
|
|
1519
|
+
/**
|
|
1520
|
+
* @internal
|
|
1521
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1522
|
+
*/
|
|
1523
|
+
export declare namespace DeploymentStreamPrefixMessagesContent$ {
|
|
1524
|
+
/** @deprecated use `DeploymentStreamPrefixMessagesContent$inboundSchema` instead. */
|
|
1525
|
+
const inboundSchema: z.ZodType<DeploymentStreamPrefixMessagesContent, z.ZodTypeDef, unknown>;
|
|
1526
|
+
/** @deprecated use `DeploymentStreamPrefixMessagesContent$outboundSchema` instead. */
|
|
1527
|
+
const outboundSchema: z.ZodType<DeploymentStreamPrefixMessagesContent$Outbound, z.ZodTypeDef, DeploymentStreamPrefixMessagesContent>;
|
|
1528
|
+
/** @deprecated use `DeploymentStreamPrefixMessagesContent$Outbound` instead. */
|
|
1529
|
+
type Outbound = DeploymentStreamPrefixMessagesContent$Outbound;
|
|
1530
|
+
}
|
|
1531
|
+
export declare function deploymentStreamPrefixMessagesContentToJSON(deploymentStreamPrefixMessagesContent: DeploymentStreamPrefixMessagesContent): string;
|
|
1532
|
+
export declare function deploymentStreamPrefixMessagesContentFromJSON(jsonString: string): SafeParseResult<DeploymentStreamPrefixMessagesContent, SDKValidationError>;
|
|
1533
|
+
/** @internal */
|
|
1534
|
+
export declare const PrefixMessagesUserMessage$inboundSchema: z.ZodType<PrefixMessagesUserMessage, z.ZodTypeDef, unknown>;
|
|
1535
|
+
/** @internal */
|
|
1536
|
+
export type PrefixMessagesUserMessage$Outbound = {
|
|
1537
|
+
role: string;
|
|
1538
|
+
name?: string | undefined;
|
|
1539
|
+
content: string | Array<DeploymentStream21$Outbound | DeploymentStream22$Outbound | DeploymentStream23$Outbound>;
|
|
1540
|
+
};
|
|
1541
|
+
/** @internal */
|
|
1542
|
+
export declare const PrefixMessagesUserMessage$outboundSchema: z.ZodType<PrefixMessagesUserMessage$Outbound, z.ZodTypeDef, PrefixMessagesUserMessage>;
|
|
1543
|
+
/**
|
|
1544
|
+
* @internal
|
|
1545
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1546
|
+
*/
|
|
1547
|
+
export declare namespace PrefixMessagesUserMessage$ {
|
|
1548
|
+
/** @deprecated use `PrefixMessagesUserMessage$inboundSchema` instead. */
|
|
1549
|
+
const inboundSchema: z.ZodType<PrefixMessagesUserMessage, z.ZodTypeDef, unknown>;
|
|
1550
|
+
/** @deprecated use `PrefixMessagesUserMessage$outboundSchema` instead. */
|
|
1551
|
+
const outboundSchema: z.ZodType<PrefixMessagesUserMessage$Outbound, z.ZodTypeDef, PrefixMessagesUserMessage>;
|
|
1552
|
+
/** @deprecated use `PrefixMessagesUserMessage$Outbound` instead. */
|
|
1553
|
+
type Outbound = PrefixMessagesUserMessage$Outbound;
|
|
1554
|
+
}
|
|
1555
|
+
export declare function prefixMessagesUserMessageToJSON(prefixMessagesUserMessage: PrefixMessagesUserMessage): string;
|
|
1556
|
+
export declare function prefixMessagesUserMessageFromJSON(jsonString: string): SafeParseResult<PrefixMessagesUserMessage, SDKValidationError>;
|
|
1557
|
+
/** @internal */
|
|
1558
|
+
export declare const DeploymentStreamPrefixMessagesDeploymentsRole$inboundSchema: z.ZodNativeEnum<typeof DeploymentStreamPrefixMessagesDeploymentsRole>;
|
|
1559
|
+
/** @internal */
|
|
1560
|
+
export declare const DeploymentStreamPrefixMessagesDeploymentsRole$outboundSchema: z.ZodNativeEnum<typeof DeploymentStreamPrefixMessagesDeploymentsRole>;
|
|
1561
|
+
/**
|
|
1562
|
+
* @internal
|
|
1563
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1564
|
+
*/
|
|
1565
|
+
export declare namespace DeploymentStreamPrefixMessagesDeploymentsRole$ {
|
|
1566
|
+
/** @deprecated use `DeploymentStreamPrefixMessagesDeploymentsRole$inboundSchema` instead. */
|
|
1567
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
1568
|
+
readonly System: "system";
|
|
1569
|
+
}>;
|
|
1570
|
+
/** @deprecated use `DeploymentStreamPrefixMessagesDeploymentsRole$outboundSchema` instead. */
|
|
1571
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
1572
|
+
readonly System: "system";
|
|
1573
|
+
}>;
|
|
1574
|
+
}
|
|
1575
|
+
/** @internal */
|
|
1576
|
+
export declare const PrefixMessagesSystemMessage$inboundSchema: z.ZodType<PrefixMessagesSystemMessage, z.ZodTypeDef, unknown>;
|
|
1577
|
+
/** @internal */
|
|
1578
|
+
export type PrefixMessagesSystemMessage$Outbound = {
|
|
1579
|
+
role: string;
|
|
1580
|
+
content: string;
|
|
1581
|
+
name?: string | undefined;
|
|
1582
|
+
};
|
|
1583
|
+
/** @internal */
|
|
1584
|
+
export declare const PrefixMessagesSystemMessage$outboundSchema: z.ZodType<PrefixMessagesSystemMessage$Outbound, z.ZodTypeDef, PrefixMessagesSystemMessage>;
|
|
1585
|
+
/**
|
|
1586
|
+
* @internal
|
|
1587
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1588
|
+
*/
|
|
1589
|
+
export declare namespace PrefixMessagesSystemMessage$ {
|
|
1590
|
+
/** @deprecated use `PrefixMessagesSystemMessage$inboundSchema` instead. */
|
|
1591
|
+
const inboundSchema: z.ZodType<PrefixMessagesSystemMessage, z.ZodTypeDef, unknown>;
|
|
1592
|
+
/** @deprecated use `PrefixMessagesSystemMessage$outboundSchema` instead. */
|
|
1593
|
+
const outboundSchema: z.ZodType<PrefixMessagesSystemMessage$Outbound, z.ZodTypeDef, PrefixMessagesSystemMessage>;
|
|
1594
|
+
/** @deprecated use `PrefixMessagesSystemMessage$Outbound` instead. */
|
|
1595
|
+
type Outbound = PrefixMessagesSystemMessage$Outbound;
|
|
1596
|
+
}
|
|
1597
|
+
export declare function prefixMessagesSystemMessageToJSON(prefixMessagesSystemMessage: PrefixMessagesSystemMessage): string;
|
|
1598
|
+
export declare function prefixMessagesSystemMessageFromJSON(jsonString: string): SafeParseResult<PrefixMessagesSystemMessage, SDKValidationError>;
|
|
1599
|
+
/** @internal */
|
|
1600
|
+
export declare const DeploymentStreamPrefixMessagesRole$inboundSchema: z.ZodNativeEnum<typeof DeploymentStreamPrefixMessagesRole>;
|
|
1601
|
+
/** @internal */
|
|
1602
|
+
export declare const DeploymentStreamPrefixMessagesRole$outboundSchema: z.ZodNativeEnum<typeof DeploymentStreamPrefixMessagesRole>;
|
|
1603
|
+
/**
|
|
1604
|
+
* @internal
|
|
1605
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1606
|
+
*/
|
|
1607
|
+
export declare namespace DeploymentStreamPrefixMessagesRole$ {
|
|
1608
|
+
/** @deprecated use `DeploymentStreamPrefixMessagesRole$inboundSchema` instead. */
|
|
1609
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
1610
|
+
readonly Developer: "developer";
|
|
1611
|
+
}>;
|
|
1612
|
+
/** @deprecated use `DeploymentStreamPrefixMessagesRole$outboundSchema` instead. */
|
|
1613
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
1614
|
+
readonly Developer: "developer";
|
|
1615
|
+
}>;
|
|
1616
|
+
}
|
|
1617
|
+
/** @internal */
|
|
1618
|
+
export declare const PrefixMessagesDeveloperMessage$inboundSchema: z.ZodType<PrefixMessagesDeveloperMessage, z.ZodTypeDef, unknown>;
|
|
1619
|
+
/** @internal */
|
|
1620
|
+
export type PrefixMessagesDeveloperMessage$Outbound = {
|
|
1621
|
+
role: string;
|
|
1622
|
+
content: string;
|
|
1623
|
+
name?: string | undefined;
|
|
1624
|
+
};
|
|
1625
|
+
/** @internal */
|
|
1626
|
+
export declare const PrefixMessagesDeveloperMessage$outboundSchema: z.ZodType<PrefixMessagesDeveloperMessage$Outbound, z.ZodTypeDef, PrefixMessagesDeveloperMessage>;
|
|
1627
|
+
/**
|
|
1628
|
+
* @internal
|
|
1629
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1630
|
+
*/
|
|
1631
|
+
export declare namespace PrefixMessagesDeveloperMessage$ {
|
|
1632
|
+
/** @deprecated use `PrefixMessagesDeveloperMessage$inboundSchema` instead. */
|
|
1633
|
+
const inboundSchema: z.ZodType<PrefixMessagesDeveloperMessage, z.ZodTypeDef, unknown>;
|
|
1634
|
+
/** @deprecated use `PrefixMessagesDeveloperMessage$outboundSchema` instead. */
|
|
1635
|
+
const outboundSchema: z.ZodType<PrefixMessagesDeveloperMessage$Outbound, z.ZodTypeDef, PrefixMessagesDeveloperMessage>;
|
|
1636
|
+
/** @deprecated use `PrefixMessagesDeveloperMessage$Outbound` instead. */
|
|
1637
|
+
type Outbound = PrefixMessagesDeveloperMessage$Outbound;
|
|
1638
|
+
}
|
|
1639
|
+
export declare function prefixMessagesDeveloperMessageToJSON(prefixMessagesDeveloperMessage: PrefixMessagesDeveloperMessage): string;
|
|
1640
|
+
export declare function prefixMessagesDeveloperMessageFromJSON(jsonString: string): SafeParseResult<PrefixMessagesDeveloperMessage, SDKValidationError>;
|
|
1641
|
+
/** @internal */
|
|
1642
|
+
export declare const DeploymentStreamPrefixMessages$inboundSchema: z.ZodType<DeploymentStreamPrefixMessages, z.ZodTypeDef, unknown>;
|
|
1643
|
+
/** @internal */
|
|
1644
|
+
export type DeploymentStreamPrefixMessages$Outbound = PrefixMessagesDeveloperMessage$Outbound | PrefixMessagesSystemMessage$Outbound | PrefixMessagesUserMessage$Outbound | PrefixMessagesToolMessage$Outbound | PrefixMessagesAssistantMessage$Outbound;
|
|
1645
|
+
/** @internal */
|
|
1646
|
+
export declare const DeploymentStreamPrefixMessages$outboundSchema: z.ZodType<DeploymentStreamPrefixMessages$Outbound, z.ZodTypeDef, DeploymentStreamPrefixMessages>;
|
|
1647
|
+
/**
|
|
1648
|
+
* @internal
|
|
1649
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1650
|
+
*/
|
|
1651
|
+
export declare namespace DeploymentStreamPrefixMessages$ {
|
|
1652
|
+
/** @deprecated use `DeploymentStreamPrefixMessages$inboundSchema` instead. */
|
|
1653
|
+
const inboundSchema: z.ZodType<DeploymentStreamPrefixMessages, z.ZodTypeDef, unknown>;
|
|
1654
|
+
/** @deprecated use `DeploymentStreamPrefixMessages$outboundSchema` instead. */
|
|
1655
|
+
const outboundSchema: z.ZodType<DeploymentStreamPrefixMessages$Outbound, z.ZodTypeDef, DeploymentStreamPrefixMessages>;
|
|
1656
|
+
/** @deprecated use `DeploymentStreamPrefixMessages$Outbound` instead. */
|
|
1657
|
+
type Outbound = DeploymentStreamPrefixMessages$Outbound;
|
|
1658
|
+
}
|
|
1659
|
+
export declare function deploymentStreamPrefixMessagesToJSON(deploymentStreamPrefixMessages: DeploymentStreamPrefixMessages): string;
|
|
1660
|
+
export declare function deploymentStreamPrefixMessagesFromJSON(jsonString: string): SafeParseResult<DeploymentStreamPrefixMessages, SDKValidationError>;
|
|
1661
|
+
/** @internal */
|
|
1662
|
+
export declare const DeploymentStreamMessagesDeploymentsRequestRequestBody5Role$inboundSchema: z.ZodNativeEnum<typeof DeploymentStreamMessagesDeploymentsRequestRequestBody5Role>;
|
|
1663
|
+
/** @internal */
|
|
1664
|
+
export declare const DeploymentStreamMessagesDeploymentsRequestRequestBody5Role$outboundSchema: z.ZodNativeEnum<typeof DeploymentStreamMessagesDeploymentsRequestRequestBody5Role>;
|
|
1665
|
+
/**
|
|
1666
|
+
* @internal
|
|
1667
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1668
|
+
*/
|
|
1669
|
+
export declare namespace DeploymentStreamMessagesDeploymentsRequestRequestBody5Role$ {
|
|
1670
|
+
/** @deprecated use `DeploymentStreamMessagesDeploymentsRequestRequestBody5Role$inboundSchema` instead. */
|
|
1671
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
1672
|
+
readonly Tool: "tool";
|
|
1673
|
+
}>;
|
|
1674
|
+
/** @deprecated use `DeploymentStreamMessagesDeploymentsRequestRequestBody5Role$outboundSchema` instead. */
|
|
1675
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
1676
|
+
readonly Tool: "tool";
|
|
1677
|
+
}>;
|
|
1678
|
+
}
|
|
1679
|
+
/** @internal */
|
|
1680
|
+
export declare const DeploymentStreamMessagesDeploymentsRequestContent$inboundSchema: z.ZodType<DeploymentStreamMessagesDeploymentsRequestContent, z.ZodTypeDef, unknown>;
|
|
1681
|
+
/** @internal */
|
|
1682
|
+
export type DeploymentStreamMessagesDeploymentsRequestContent$Outbound = string | Array<string>;
|
|
1683
|
+
/** @internal */
|
|
1684
|
+
export declare const DeploymentStreamMessagesDeploymentsRequestContent$outboundSchema: z.ZodType<DeploymentStreamMessagesDeploymentsRequestContent$Outbound, z.ZodTypeDef, DeploymentStreamMessagesDeploymentsRequestContent>;
|
|
1685
|
+
/**
|
|
1686
|
+
* @internal
|
|
1687
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1688
|
+
*/
|
|
1689
|
+
export declare namespace DeploymentStreamMessagesDeploymentsRequestContent$ {
|
|
1690
|
+
/** @deprecated use `DeploymentStreamMessagesDeploymentsRequestContent$inboundSchema` instead. */
|
|
1691
|
+
const inboundSchema: z.ZodType<DeploymentStreamMessagesDeploymentsRequestContent, z.ZodTypeDef, unknown>;
|
|
1692
|
+
/** @deprecated use `DeploymentStreamMessagesDeploymentsRequestContent$outboundSchema` instead. */
|
|
1693
|
+
const outboundSchema: z.ZodType<DeploymentStreamMessagesDeploymentsRequestContent$Outbound, z.ZodTypeDef, DeploymentStreamMessagesDeploymentsRequestContent>;
|
|
1694
|
+
/** @deprecated use `DeploymentStreamMessagesDeploymentsRequestContent$Outbound` instead. */
|
|
1695
|
+
type Outbound = DeploymentStreamMessagesDeploymentsRequestContent$Outbound;
|
|
1696
|
+
}
|
|
1697
|
+
export declare function deploymentStreamMessagesDeploymentsRequestContentToJSON(deploymentStreamMessagesDeploymentsRequestContent: DeploymentStreamMessagesDeploymentsRequestContent): string;
|
|
1698
|
+
export declare function deploymentStreamMessagesDeploymentsRequestContentFromJSON(jsonString: string): SafeParseResult<DeploymentStreamMessagesDeploymentsRequestContent, SDKValidationError>;
|
|
1699
|
+
/** @internal */
|
|
1700
|
+
export declare const DeploymentStreamMessagesToolMessage$inboundSchema: z.ZodType<DeploymentStreamMessagesToolMessage, z.ZodTypeDef, unknown>;
|
|
1701
|
+
/** @internal */
|
|
1702
|
+
export type DeploymentStreamMessagesToolMessage$Outbound = {
|
|
1703
|
+
role: string;
|
|
1704
|
+
content: string | Array<string>;
|
|
1705
|
+
tool_call_id: string;
|
|
1706
|
+
};
|
|
1707
|
+
/** @internal */
|
|
1708
|
+
export declare const DeploymentStreamMessagesToolMessage$outboundSchema: z.ZodType<DeploymentStreamMessagesToolMessage$Outbound, z.ZodTypeDef, DeploymentStreamMessagesToolMessage>;
|
|
1709
|
+
/**
|
|
1710
|
+
* @internal
|
|
1711
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1712
|
+
*/
|
|
1713
|
+
export declare namespace DeploymentStreamMessagesToolMessage$ {
|
|
1714
|
+
/** @deprecated use `DeploymentStreamMessagesToolMessage$inboundSchema` instead. */
|
|
1715
|
+
const inboundSchema: z.ZodType<DeploymentStreamMessagesToolMessage, z.ZodTypeDef, unknown>;
|
|
1716
|
+
/** @deprecated use `DeploymentStreamMessagesToolMessage$outboundSchema` instead. */
|
|
1717
|
+
const outboundSchema: z.ZodType<DeploymentStreamMessagesToolMessage$Outbound, z.ZodTypeDef, DeploymentStreamMessagesToolMessage>;
|
|
1718
|
+
/** @deprecated use `DeploymentStreamMessagesToolMessage$Outbound` instead. */
|
|
1719
|
+
type Outbound = DeploymentStreamMessagesToolMessage$Outbound;
|
|
1720
|
+
}
|
|
1721
|
+
export declare function deploymentStreamMessagesToolMessageToJSON(deploymentStreamMessagesToolMessage: DeploymentStreamMessagesToolMessage): string;
|
|
1722
|
+
export declare function deploymentStreamMessagesToolMessageFromJSON(jsonString: string): SafeParseResult<DeploymentStreamMessagesToolMessage, SDKValidationError>;
|
|
1723
|
+
/** @internal */
|
|
1724
|
+
export declare const DeploymentStream2DeploymentsRequestRequestBodyMessages4ContentType$inboundSchema: z.ZodNativeEnum<typeof DeploymentStream2DeploymentsRequestRequestBodyMessages4ContentType>;
|
|
1725
|
+
/** @internal */
|
|
1726
|
+
export declare const DeploymentStream2DeploymentsRequestRequestBodyMessages4ContentType$outboundSchema: z.ZodNativeEnum<typeof DeploymentStream2DeploymentsRequestRequestBodyMessages4ContentType>;
|
|
1727
|
+
/**
|
|
1728
|
+
* @internal
|
|
1729
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1730
|
+
*/
|
|
1731
|
+
export declare namespace DeploymentStream2DeploymentsRequestRequestBodyMessages4ContentType$ {
|
|
1732
|
+
/** @deprecated use `DeploymentStream2DeploymentsRequestRequestBodyMessages4ContentType$inboundSchema` instead. */
|
|
1733
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
1734
|
+
readonly Refusal: "refusal";
|
|
1735
|
+
}>;
|
|
1736
|
+
/** @deprecated use `DeploymentStream2DeploymentsRequestRequestBodyMessages4ContentType$outboundSchema` instead. */
|
|
1737
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
1738
|
+
readonly Refusal: "refusal";
|
|
1739
|
+
}>;
|
|
1740
|
+
}
|
|
1741
|
+
/** @internal */
|
|
1742
|
+
export declare const DeploymentStream2DeploymentsRefusalContentPart$inboundSchema: z.ZodType<DeploymentStream2DeploymentsRefusalContentPart, z.ZodTypeDef, unknown>;
|
|
1743
|
+
/** @internal */
|
|
1744
|
+
export type DeploymentStream2DeploymentsRefusalContentPart$Outbound = {
|
|
1745
|
+
type: string;
|
|
1746
|
+
refusal: string;
|
|
1747
|
+
};
|
|
1748
|
+
/** @internal */
|
|
1749
|
+
export declare const DeploymentStream2DeploymentsRefusalContentPart$outboundSchema: z.ZodType<DeploymentStream2DeploymentsRefusalContentPart$Outbound, z.ZodTypeDef, DeploymentStream2DeploymentsRefusalContentPart>;
|
|
1750
|
+
/**
|
|
1751
|
+
* @internal
|
|
1752
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1753
|
+
*/
|
|
1754
|
+
export declare namespace DeploymentStream2DeploymentsRefusalContentPart$ {
|
|
1755
|
+
/** @deprecated use `DeploymentStream2DeploymentsRefusalContentPart$inboundSchema` instead. */
|
|
1756
|
+
const inboundSchema: z.ZodType<DeploymentStream2DeploymentsRefusalContentPart, z.ZodTypeDef, unknown>;
|
|
1757
|
+
/** @deprecated use `DeploymentStream2DeploymentsRefusalContentPart$outboundSchema` instead. */
|
|
1758
|
+
const outboundSchema: z.ZodType<DeploymentStream2DeploymentsRefusalContentPart$Outbound, z.ZodTypeDef, DeploymentStream2DeploymentsRefusalContentPart>;
|
|
1759
|
+
/** @deprecated use `DeploymentStream2DeploymentsRefusalContentPart$Outbound` instead. */
|
|
1760
|
+
type Outbound = DeploymentStream2DeploymentsRefusalContentPart$Outbound;
|
|
1761
|
+
}
|
|
1762
|
+
export declare function deploymentStream2DeploymentsRefusalContentPartToJSON(deploymentStream2DeploymentsRefusalContentPart: DeploymentStream2DeploymentsRefusalContentPart): string;
|
|
1763
|
+
export declare function deploymentStream2DeploymentsRefusalContentPartFromJSON(jsonString: string): SafeParseResult<DeploymentStream2DeploymentsRefusalContentPart, SDKValidationError>;
|
|
1764
|
+
/** @internal */
|
|
1765
|
+
export declare const DeploymentStream2DeploymentsRequestRequestBodyMessages4Type$inboundSchema: z.ZodNativeEnum<typeof DeploymentStream2DeploymentsRequestRequestBodyMessages4Type>;
|
|
1766
|
+
/** @internal */
|
|
1767
|
+
export declare const DeploymentStream2DeploymentsRequestRequestBodyMessages4Type$outboundSchema: z.ZodNativeEnum<typeof DeploymentStream2DeploymentsRequestRequestBodyMessages4Type>;
|
|
1768
|
+
/**
|
|
1769
|
+
* @internal
|
|
1770
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1771
|
+
*/
|
|
1772
|
+
export declare namespace DeploymentStream2DeploymentsRequestRequestBodyMessages4Type$ {
|
|
1773
|
+
/** @deprecated use `DeploymentStream2DeploymentsRequestRequestBodyMessages4Type$inboundSchema` instead. */
|
|
1774
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
1775
|
+
readonly Text: "text";
|
|
1776
|
+
}>;
|
|
1777
|
+
/** @deprecated use `DeploymentStream2DeploymentsRequestRequestBodyMessages4Type$outboundSchema` instead. */
|
|
1778
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
1779
|
+
readonly Text: "text";
|
|
1780
|
+
}>;
|
|
1781
|
+
}
|
|
1782
|
+
/** @internal */
|
|
1783
|
+
export declare const DeploymentStream2DeploymentsTextContentPart$inboundSchema: z.ZodType<DeploymentStream2DeploymentsTextContentPart, z.ZodTypeDef, unknown>;
|
|
1784
|
+
/** @internal */
|
|
1785
|
+
export type DeploymentStream2DeploymentsTextContentPart$Outbound = {
|
|
1786
|
+
type: string;
|
|
1787
|
+
text: string;
|
|
1788
|
+
};
|
|
1789
|
+
/** @internal */
|
|
1790
|
+
export declare const DeploymentStream2DeploymentsTextContentPart$outboundSchema: z.ZodType<DeploymentStream2DeploymentsTextContentPart$Outbound, z.ZodTypeDef, DeploymentStream2DeploymentsTextContentPart>;
|
|
1791
|
+
/**
|
|
1792
|
+
* @internal
|
|
1793
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1794
|
+
*/
|
|
1795
|
+
export declare namespace DeploymentStream2DeploymentsTextContentPart$ {
|
|
1796
|
+
/** @deprecated use `DeploymentStream2DeploymentsTextContentPart$inboundSchema` instead. */
|
|
1797
|
+
const inboundSchema: z.ZodType<DeploymentStream2DeploymentsTextContentPart, z.ZodTypeDef, unknown>;
|
|
1798
|
+
/** @deprecated use `DeploymentStream2DeploymentsTextContentPart$outboundSchema` instead. */
|
|
1799
|
+
const outboundSchema: z.ZodType<DeploymentStream2DeploymentsTextContentPart$Outbound, z.ZodTypeDef, DeploymentStream2DeploymentsTextContentPart>;
|
|
1800
|
+
/** @deprecated use `DeploymentStream2DeploymentsTextContentPart$Outbound` instead. */
|
|
1801
|
+
type Outbound = DeploymentStream2DeploymentsTextContentPart$Outbound;
|
|
1802
|
+
}
|
|
1803
|
+
export declare function deploymentStream2DeploymentsTextContentPartToJSON(deploymentStream2DeploymentsTextContentPart: DeploymentStream2DeploymentsTextContentPart): string;
|
|
1804
|
+
export declare function deploymentStream2DeploymentsTextContentPartFromJSON(jsonString: string): SafeParseResult<DeploymentStream2DeploymentsTextContentPart, SDKValidationError>;
|
|
1805
|
+
/** @internal */
|
|
1806
|
+
export declare const DeploymentStreamContentDeploymentsRequestRequestBody2$inboundSchema: z.ZodType<DeploymentStreamContentDeploymentsRequestRequestBody2, z.ZodTypeDef, unknown>;
|
|
1807
|
+
/** @internal */
|
|
1808
|
+
export type DeploymentStreamContentDeploymentsRequestRequestBody2$Outbound = DeploymentStream2DeploymentsTextContentPart$Outbound | DeploymentStream2DeploymentsRefusalContentPart$Outbound;
|
|
1809
|
+
/** @internal */
|
|
1810
|
+
export declare const DeploymentStreamContentDeploymentsRequestRequestBody2$outboundSchema: z.ZodType<DeploymentStreamContentDeploymentsRequestRequestBody2$Outbound, z.ZodTypeDef, DeploymentStreamContentDeploymentsRequestRequestBody2>;
|
|
1811
|
+
/**
|
|
1812
|
+
* @internal
|
|
1813
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1814
|
+
*/
|
|
1815
|
+
export declare namespace DeploymentStreamContentDeploymentsRequestRequestBody2$ {
|
|
1816
|
+
/** @deprecated use `DeploymentStreamContentDeploymentsRequestRequestBody2$inboundSchema` instead. */
|
|
1817
|
+
const inboundSchema: z.ZodType<DeploymentStreamContentDeploymentsRequestRequestBody2, z.ZodTypeDef, unknown>;
|
|
1818
|
+
/** @deprecated use `DeploymentStreamContentDeploymentsRequestRequestBody2$outboundSchema` instead. */
|
|
1819
|
+
const outboundSchema: z.ZodType<DeploymentStreamContentDeploymentsRequestRequestBody2$Outbound, z.ZodTypeDef, DeploymentStreamContentDeploymentsRequestRequestBody2>;
|
|
1820
|
+
/** @deprecated use `DeploymentStreamContentDeploymentsRequestRequestBody2$Outbound` instead. */
|
|
1821
|
+
type Outbound = DeploymentStreamContentDeploymentsRequestRequestBody2$Outbound;
|
|
1822
|
+
}
|
|
1823
|
+
export declare function deploymentStreamContentDeploymentsRequestRequestBody2ToJSON(deploymentStreamContentDeploymentsRequestRequestBody2: DeploymentStreamContentDeploymentsRequestRequestBody2): string;
|
|
1824
|
+
export declare function deploymentStreamContentDeploymentsRequestRequestBody2FromJSON(jsonString: string): SafeParseResult<DeploymentStreamContentDeploymentsRequestRequestBody2, SDKValidationError>;
|
|
1825
|
+
/** @internal */
|
|
1826
|
+
export declare const DeploymentStreamMessagesDeploymentsContent$inboundSchema: z.ZodType<DeploymentStreamMessagesDeploymentsContent, z.ZodTypeDef, unknown>;
|
|
1827
|
+
/** @internal */
|
|
1828
|
+
export type DeploymentStreamMessagesDeploymentsContent$Outbound = string | Array<DeploymentStream2DeploymentsTextContentPart$Outbound | DeploymentStream2DeploymentsRefusalContentPart$Outbound>;
|
|
1829
|
+
/** @internal */
|
|
1830
|
+
export declare const DeploymentStreamMessagesDeploymentsContent$outboundSchema: z.ZodType<DeploymentStreamMessagesDeploymentsContent$Outbound, z.ZodTypeDef, DeploymentStreamMessagesDeploymentsContent>;
|
|
1831
|
+
/**
|
|
1832
|
+
* @internal
|
|
1833
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1834
|
+
*/
|
|
1835
|
+
export declare namespace DeploymentStreamMessagesDeploymentsContent$ {
|
|
1836
|
+
/** @deprecated use `DeploymentStreamMessagesDeploymentsContent$inboundSchema` instead. */
|
|
1837
|
+
const inboundSchema: z.ZodType<DeploymentStreamMessagesDeploymentsContent, z.ZodTypeDef, unknown>;
|
|
1838
|
+
/** @deprecated use `DeploymentStreamMessagesDeploymentsContent$outboundSchema` instead. */
|
|
1839
|
+
const outboundSchema: z.ZodType<DeploymentStreamMessagesDeploymentsContent$Outbound, z.ZodTypeDef, DeploymentStreamMessagesDeploymentsContent>;
|
|
1840
|
+
/** @deprecated use `DeploymentStreamMessagesDeploymentsContent$Outbound` instead. */
|
|
1841
|
+
type Outbound = DeploymentStreamMessagesDeploymentsContent$Outbound;
|
|
1842
|
+
}
|
|
1843
|
+
export declare function deploymentStreamMessagesDeploymentsContentToJSON(deploymentStreamMessagesDeploymentsContent: DeploymentStreamMessagesDeploymentsContent): string;
|
|
1844
|
+
export declare function deploymentStreamMessagesDeploymentsContentFromJSON(jsonString: string): SafeParseResult<DeploymentStreamMessagesDeploymentsContent, SDKValidationError>;
|
|
1845
|
+
/** @internal */
|
|
1846
|
+
export declare const DeploymentStreamMessagesDeploymentsRequestRequestBodyRole$inboundSchema: z.ZodNativeEnum<typeof DeploymentStreamMessagesDeploymentsRequestRequestBodyRole>;
|
|
1847
|
+
/** @internal */
|
|
1848
|
+
export declare const DeploymentStreamMessagesDeploymentsRequestRequestBodyRole$outboundSchema: z.ZodNativeEnum<typeof DeploymentStreamMessagesDeploymentsRequestRequestBodyRole>;
|
|
1849
|
+
/**
|
|
1850
|
+
* @internal
|
|
1851
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1852
|
+
*/
|
|
1853
|
+
export declare namespace DeploymentStreamMessagesDeploymentsRequestRequestBodyRole$ {
|
|
1854
|
+
/** @deprecated use `DeploymentStreamMessagesDeploymentsRequestRequestBodyRole$inboundSchema` instead. */
|
|
1855
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
1856
|
+
readonly Assistant: "assistant";
|
|
1857
|
+
}>;
|
|
1858
|
+
/** @deprecated use `DeploymentStreamMessagesDeploymentsRequestRequestBodyRole$outboundSchema` instead. */
|
|
1859
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
1860
|
+
readonly Assistant: "assistant";
|
|
1861
|
+
}>;
|
|
1862
|
+
}
|
|
1863
|
+
/** @internal */
|
|
1864
|
+
export declare const DeploymentStreamMessagesAudio$inboundSchema: z.ZodType<DeploymentStreamMessagesAudio, z.ZodTypeDef, unknown>;
|
|
1865
|
+
/** @internal */
|
|
1866
|
+
export type DeploymentStreamMessagesAudio$Outbound = {
|
|
1867
|
+
id: string;
|
|
1868
|
+
};
|
|
1869
|
+
/** @internal */
|
|
1870
|
+
export declare const DeploymentStreamMessagesAudio$outboundSchema: z.ZodType<DeploymentStreamMessagesAudio$Outbound, z.ZodTypeDef, DeploymentStreamMessagesAudio>;
|
|
1871
|
+
/**
|
|
1872
|
+
* @internal
|
|
1873
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1874
|
+
*/
|
|
1875
|
+
export declare namespace DeploymentStreamMessagesAudio$ {
|
|
1876
|
+
/** @deprecated use `DeploymentStreamMessagesAudio$inboundSchema` instead. */
|
|
1877
|
+
const inboundSchema: z.ZodType<DeploymentStreamMessagesAudio, z.ZodTypeDef, unknown>;
|
|
1878
|
+
/** @deprecated use `DeploymentStreamMessagesAudio$outboundSchema` instead. */
|
|
1879
|
+
const outboundSchema: z.ZodType<DeploymentStreamMessagesAudio$Outbound, z.ZodTypeDef, DeploymentStreamMessagesAudio>;
|
|
1880
|
+
/** @deprecated use `DeploymentStreamMessagesAudio$Outbound` instead. */
|
|
1881
|
+
type Outbound = DeploymentStreamMessagesAudio$Outbound;
|
|
1882
|
+
}
|
|
1883
|
+
export declare function deploymentStreamMessagesAudioToJSON(deploymentStreamMessagesAudio: DeploymentStreamMessagesAudio): string;
|
|
1884
|
+
export declare function deploymentStreamMessagesAudioFromJSON(jsonString: string): SafeParseResult<DeploymentStreamMessagesAudio, SDKValidationError>;
|
|
1885
|
+
/** @internal */
|
|
1886
|
+
export declare const DeploymentStreamMessagesType$inboundSchema: z.ZodNativeEnum<typeof DeploymentStreamMessagesType>;
|
|
1887
|
+
/** @internal */
|
|
1888
|
+
export declare const DeploymentStreamMessagesType$outboundSchema: z.ZodNativeEnum<typeof DeploymentStreamMessagesType>;
|
|
1889
|
+
/**
|
|
1890
|
+
* @internal
|
|
1891
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1892
|
+
*/
|
|
1893
|
+
export declare namespace DeploymentStreamMessagesType$ {
|
|
1894
|
+
/** @deprecated use `DeploymentStreamMessagesType$inboundSchema` instead. */
|
|
1895
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
1896
|
+
readonly Function: "function";
|
|
1897
|
+
}>;
|
|
1898
|
+
/** @deprecated use `DeploymentStreamMessagesType$outboundSchema` instead. */
|
|
1899
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
1900
|
+
readonly Function: "function";
|
|
1901
|
+
}>;
|
|
1902
|
+
}
|
|
1903
|
+
/** @internal */
|
|
1904
|
+
export declare const DeploymentStreamMessagesFunction$inboundSchema: z.ZodType<DeploymentStreamMessagesFunction, z.ZodTypeDef, unknown>;
|
|
1905
|
+
/** @internal */
|
|
1906
|
+
export type DeploymentStreamMessagesFunction$Outbound = {
|
|
1907
|
+
name?: string | undefined;
|
|
1908
|
+
arguments?: string | undefined;
|
|
1909
|
+
};
|
|
1910
|
+
/** @internal */
|
|
1911
|
+
export declare const DeploymentStreamMessagesFunction$outboundSchema: z.ZodType<DeploymentStreamMessagesFunction$Outbound, z.ZodTypeDef, DeploymentStreamMessagesFunction>;
|
|
1912
|
+
/**
|
|
1913
|
+
* @internal
|
|
1914
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1915
|
+
*/
|
|
1916
|
+
export declare namespace DeploymentStreamMessagesFunction$ {
|
|
1917
|
+
/** @deprecated use `DeploymentStreamMessagesFunction$inboundSchema` instead. */
|
|
1918
|
+
const inboundSchema: z.ZodType<DeploymentStreamMessagesFunction, z.ZodTypeDef, unknown>;
|
|
1919
|
+
/** @deprecated use `DeploymentStreamMessagesFunction$outboundSchema` instead. */
|
|
1920
|
+
const outboundSchema: z.ZodType<DeploymentStreamMessagesFunction$Outbound, z.ZodTypeDef, DeploymentStreamMessagesFunction>;
|
|
1921
|
+
/** @deprecated use `DeploymentStreamMessagesFunction$Outbound` instead. */
|
|
1922
|
+
type Outbound = DeploymentStreamMessagesFunction$Outbound;
|
|
1923
|
+
}
|
|
1924
|
+
export declare function deploymentStreamMessagesFunctionToJSON(deploymentStreamMessagesFunction: DeploymentStreamMessagesFunction): string;
|
|
1925
|
+
export declare function deploymentStreamMessagesFunctionFromJSON(jsonString: string): SafeParseResult<DeploymentStreamMessagesFunction, SDKValidationError>;
|
|
1926
|
+
/** @internal */
|
|
1927
|
+
export declare const DeploymentStreamMessagesToolCalls$inboundSchema: z.ZodType<DeploymentStreamMessagesToolCalls, z.ZodTypeDef, unknown>;
|
|
1928
|
+
/** @internal */
|
|
1929
|
+
export type DeploymentStreamMessagesToolCalls$Outbound = {
|
|
1930
|
+
id: string;
|
|
1931
|
+
type: string;
|
|
1932
|
+
function: DeploymentStreamMessagesFunction$Outbound;
|
|
1933
|
+
};
|
|
1934
|
+
/** @internal */
|
|
1935
|
+
export declare const DeploymentStreamMessagesToolCalls$outboundSchema: z.ZodType<DeploymentStreamMessagesToolCalls$Outbound, z.ZodTypeDef, DeploymentStreamMessagesToolCalls>;
|
|
1936
|
+
/**
|
|
1937
|
+
* @internal
|
|
1938
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1939
|
+
*/
|
|
1940
|
+
export declare namespace DeploymentStreamMessagesToolCalls$ {
|
|
1941
|
+
/** @deprecated use `DeploymentStreamMessagesToolCalls$inboundSchema` instead. */
|
|
1942
|
+
const inboundSchema: z.ZodType<DeploymentStreamMessagesToolCalls, z.ZodTypeDef, unknown>;
|
|
1943
|
+
/** @deprecated use `DeploymentStreamMessagesToolCalls$outboundSchema` instead. */
|
|
1944
|
+
const outboundSchema: z.ZodType<DeploymentStreamMessagesToolCalls$Outbound, z.ZodTypeDef, DeploymentStreamMessagesToolCalls>;
|
|
1945
|
+
/** @deprecated use `DeploymentStreamMessagesToolCalls$Outbound` instead. */
|
|
1946
|
+
type Outbound = DeploymentStreamMessagesToolCalls$Outbound;
|
|
1947
|
+
}
|
|
1948
|
+
export declare function deploymentStreamMessagesToolCallsToJSON(deploymentStreamMessagesToolCalls: DeploymentStreamMessagesToolCalls): string;
|
|
1949
|
+
export declare function deploymentStreamMessagesToolCallsFromJSON(jsonString: string): SafeParseResult<DeploymentStreamMessagesToolCalls, SDKValidationError>;
|
|
1950
|
+
/** @internal */
|
|
1951
|
+
export declare const DeploymentStreamMessagesAssistantMessage$inboundSchema: z.ZodType<DeploymentStreamMessagesAssistantMessage, z.ZodTypeDef, unknown>;
|
|
1952
|
+
/** @internal */
|
|
1953
|
+
export type DeploymentStreamMessagesAssistantMessage$Outbound = {
|
|
1954
|
+
content?: string | Array<DeploymentStream2DeploymentsTextContentPart$Outbound | DeploymentStream2DeploymentsRefusalContentPart$Outbound> | undefined;
|
|
1955
|
+
refusal?: string | null | undefined;
|
|
1956
|
+
role: string;
|
|
1957
|
+
name?: string | undefined;
|
|
1958
|
+
audio?: DeploymentStreamMessagesAudio$Outbound | null | undefined;
|
|
1959
|
+
tool_calls?: Array<DeploymentStreamMessagesToolCalls$Outbound> | undefined;
|
|
1960
|
+
};
|
|
1961
|
+
/** @internal */
|
|
1962
|
+
export declare const DeploymentStreamMessagesAssistantMessage$outboundSchema: z.ZodType<DeploymentStreamMessagesAssistantMessage$Outbound, z.ZodTypeDef, DeploymentStreamMessagesAssistantMessage>;
|
|
1963
|
+
/**
|
|
1964
|
+
* @internal
|
|
1965
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1966
|
+
*/
|
|
1967
|
+
export declare namespace DeploymentStreamMessagesAssistantMessage$ {
|
|
1968
|
+
/** @deprecated use `DeploymentStreamMessagesAssistantMessage$inboundSchema` instead. */
|
|
1969
|
+
const inboundSchema: z.ZodType<DeploymentStreamMessagesAssistantMessage, z.ZodTypeDef, unknown>;
|
|
1970
|
+
/** @deprecated use `DeploymentStreamMessagesAssistantMessage$outboundSchema` instead. */
|
|
1971
|
+
const outboundSchema: z.ZodType<DeploymentStreamMessagesAssistantMessage$Outbound, z.ZodTypeDef, DeploymentStreamMessagesAssistantMessage>;
|
|
1972
|
+
/** @deprecated use `DeploymentStreamMessagesAssistantMessage$Outbound` instead. */
|
|
1973
|
+
type Outbound = DeploymentStreamMessagesAssistantMessage$Outbound;
|
|
1974
|
+
}
|
|
1975
|
+
export declare function deploymentStreamMessagesAssistantMessageToJSON(deploymentStreamMessagesAssistantMessage: DeploymentStreamMessagesAssistantMessage): string;
|
|
1976
|
+
export declare function deploymentStreamMessagesAssistantMessageFromJSON(jsonString: string): SafeParseResult<DeploymentStreamMessagesAssistantMessage, SDKValidationError>;
|
|
1977
|
+
/** @internal */
|
|
1978
|
+
export declare const DeploymentStreamMessagesDeploymentsRequestRole$inboundSchema: z.ZodNativeEnum<typeof DeploymentStreamMessagesDeploymentsRequestRole>;
|
|
1979
|
+
/** @internal */
|
|
1980
|
+
export declare const DeploymentStreamMessagesDeploymentsRequestRole$outboundSchema: z.ZodNativeEnum<typeof DeploymentStreamMessagesDeploymentsRequestRole>;
|
|
1981
|
+
/**
|
|
1982
|
+
* @internal
|
|
1983
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
1984
|
+
*/
|
|
1985
|
+
export declare namespace DeploymentStreamMessagesDeploymentsRequestRole$ {
|
|
1986
|
+
/** @deprecated use `DeploymentStreamMessagesDeploymentsRequestRole$inboundSchema` instead. */
|
|
1987
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
1988
|
+
readonly User: "user";
|
|
1989
|
+
}>;
|
|
1990
|
+
/** @deprecated use `DeploymentStreamMessagesDeploymentsRequestRole$outboundSchema` instead. */
|
|
1991
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
1992
|
+
readonly User: "user";
|
|
1993
|
+
}>;
|
|
1994
|
+
}
|
|
1995
|
+
/** @internal */
|
|
1996
|
+
export declare const DeploymentStream2DeploymentsRequestRequestBodyMessages3ContentType$inboundSchema: z.ZodNativeEnum<typeof DeploymentStream2DeploymentsRequestRequestBodyMessages3ContentType>;
|
|
1997
|
+
/** @internal */
|
|
1998
|
+
export declare const DeploymentStream2DeploymentsRequestRequestBodyMessages3ContentType$outboundSchema: z.ZodNativeEnum<typeof DeploymentStream2DeploymentsRequestRequestBodyMessages3ContentType>;
|
|
1999
|
+
/**
|
|
2000
|
+
* @internal
|
|
2001
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2002
|
+
*/
|
|
2003
|
+
export declare namespace DeploymentStream2DeploymentsRequestRequestBodyMessages3ContentType$ {
|
|
2004
|
+
/** @deprecated use `DeploymentStream2DeploymentsRequestRequestBodyMessages3ContentType$inboundSchema` instead. */
|
|
2005
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
2006
|
+
readonly InputAudio: "input_audio";
|
|
2007
|
+
}>;
|
|
2008
|
+
/** @deprecated use `DeploymentStream2DeploymentsRequestRequestBodyMessages3ContentType$outboundSchema` instead. */
|
|
2009
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
2010
|
+
readonly InputAudio: "input_audio";
|
|
2011
|
+
}>;
|
|
2012
|
+
}
|
|
2013
|
+
/** @internal */
|
|
2014
|
+
export declare const DeploymentStream2DeploymentsFormat$inboundSchema: z.ZodNativeEnum<typeof DeploymentStream2DeploymentsFormat>;
|
|
2015
|
+
/** @internal */
|
|
2016
|
+
export declare const DeploymentStream2DeploymentsFormat$outboundSchema: z.ZodNativeEnum<typeof DeploymentStream2DeploymentsFormat>;
|
|
2017
|
+
/**
|
|
2018
|
+
* @internal
|
|
2019
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2020
|
+
*/
|
|
2021
|
+
export declare namespace DeploymentStream2DeploymentsFormat$ {
|
|
2022
|
+
/** @deprecated use `DeploymentStream2DeploymentsFormat$inboundSchema` instead. */
|
|
2023
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
2024
|
+
readonly Mp3: "mp3";
|
|
2025
|
+
readonly Wav: "wav";
|
|
2026
|
+
}>;
|
|
2027
|
+
/** @deprecated use `DeploymentStream2DeploymentsFormat$outboundSchema` instead. */
|
|
2028
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
2029
|
+
readonly Mp3: "mp3";
|
|
2030
|
+
readonly Wav: "wav";
|
|
2031
|
+
}>;
|
|
2032
|
+
}
|
|
2033
|
+
/** @internal */
|
|
2034
|
+
export declare const DeploymentStream2DeploymentsInputAudio$inboundSchema: z.ZodType<DeploymentStream2DeploymentsInputAudio, z.ZodTypeDef, unknown>;
|
|
2035
|
+
/** @internal */
|
|
2036
|
+
export type DeploymentStream2DeploymentsInputAudio$Outbound = {
|
|
2037
|
+
data: string;
|
|
2038
|
+
format: string;
|
|
2039
|
+
};
|
|
2040
|
+
/** @internal */
|
|
2041
|
+
export declare const DeploymentStream2DeploymentsInputAudio$outboundSchema: z.ZodType<DeploymentStream2DeploymentsInputAudio$Outbound, z.ZodTypeDef, DeploymentStream2DeploymentsInputAudio>;
|
|
2042
|
+
/**
|
|
2043
|
+
* @internal
|
|
2044
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2045
|
+
*/
|
|
2046
|
+
export declare namespace DeploymentStream2DeploymentsInputAudio$ {
|
|
2047
|
+
/** @deprecated use `DeploymentStream2DeploymentsInputAudio$inboundSchema` instead. */
|
|
2048
|
+
const inboundSchema: z.ZodType<DeploymentStream2DeploymentsInputAudio, z.ZodTypeDef, unknown>;
|
|
2049
|
+
/** @deprecated use `DeploymentStream2DeploymentsInputAudio$outboundSchema` instead. */
|
|
2050
|
+
const outboundSchema: z.ZodType<DeploymentStream2DeploymentsInputAudio$Outbound, z.ZodTypeDef, DeploymentStream2DeploymentsInputAudio>;
|
|
2051
|
+
/** @deprecated use `DeploymentStream2DeploymentsInputAudio$Outbound` instead. */
|
|
2052
|
+
type Outbound = DeploymentStream2DeploymentsInputAudio$Outbound;
|
|
2053
|
+
}
|
|
2054
|
+
export declare function deploymentStream2DeploymentsInputAudioToJSON(deploymentStream2DeploymentsInputAudio: DeploymentStream2DeploymentsInputAudio): string;
|
|
2055
|
+
export declare function deploymentStream2DeploymentsInputAudioFromJSON(jsonString: string): SafeParseResult<DeploymentStream2DeploymentsInputAudio, SDKValidationError>;
|
|
2056
|
+
/** @internal */
|
|
2057
|
+
export declare const DeploymentStream2Deployments3$inboundSchema: z.ZodType<DeploymentStream2Deployments3, z.ZodTypeDef, unknown>;
|
|
2058
|
+
/** @internal */
|
|
2059
|
+
export type DeploymentStream2Deployments3$Outbound = {
|
|
2060
|
+
type: string;
|
|
2061
|
+
input_audio: DeploymentStream2DeploymentsInputAudio$Outbound;
|
|
2062
|
+
};
|
|
2063
|
+
/** @internal */
|
|
2064
|
+
export declare const DeploymentStream2Deployments3$outboundSchema: z.ZodType<DeploymentStream2Deployments3$Outbound, z.ZodTypeDef, DeploymentStream2Deployments3>;
|
|
2065
|
+
/**
|
|
2066
|
+
* @internal
|
|
2067
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2068
|
+
*/
|
|
2069
|
+
export declare namespace DeploymentStream2Deployments3$ {
|
|
2070
|
+
/** @deprecated use `DeploymentStream2Deployments3$inboundSchema` instead. */
|
|
2071
|
+
const inboundSchema: z.ZodType<DeploymentStream2Deployments3, z.ZodTypeDef, unknown>;
|
|
2072
|
+
/** @deprecated use `DeploymentStream2Deployments3$outboundSchema` instead. */
|
|
2073
|
+
const outboundSchema: z.ZodType<DeploymentStream2Deployments3$Outbound, z.ZodTypeDef, DeploymentStream2Deployments3>;
|
|
2074
|
+
/** @deprecated use `DeploymentStream2Deployments3$Outbound` instead. */
|
|
2075
|
+
type Outbound = DeploymentStream2Deployments3$Outbound;
|
|
2076
|
+
}
|
|
2077
|
+
export declare function deploymentStream2Deployments3ToJSON(deploymentStream2Deployments3: DeploymentStream2Deployments3): string;
|
|
2078
|
+
export declare function deploymentStream2Deployments3FromJSON(jsonString: string): SafeParseResult<DeploymentStream2Deployments3, SDKValidationError>;
|
|
2079
|
+
/** @internal */
|
|
2080
|
+
export declare const DeploymentStream2DeploymentsRequestRequestBodyMessages3Type$inboundSchema: z.ZodNativeEnum<typeof DeploymentStream2DeploymentsRequestRequestBodyMessages3Type>;
|
|
2081
|
+
/** @internal */
|
|
2082
|
+
export declare const DeploymentStream2DeploymentsRequestRequestBodyMessages3Type$outboundSchema: z.ZodNativeEnum<typeof DeploymentStream2DeploymentsRequestRequestBodyMessages3Type>;
|
|
2083
|
+
/**
|
|
2084
|
+
* @internal
|
|
2085
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2086
|
+
*/
|
|
2087
|
+
export declare namespace DeploymentStream2DeploymentsRequestRequestBodyMessages3Type$ {
|
|
2088
|
+
/** @deprecated use `DeploymentStream2DeploymentsRequestRequestBodyMessages3Type$inboundSchema` instead. */
|
|
2089
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
2090
|
+
readonly ImageUrl: "image_url";
|
|
2091
|
+
}>;
|
|
2092
|
+
/** @deprecated use `DeploymentStream2DeploymentsRequestRequestBodyMessages3Type$outboundSchema` instead. */
|
|
2093
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
2094
|
+
readonly ImageUrl: "image_url";
|
|
2095
|
+
}>;
|
|
2096
|
+
}
|
|
2097
|
+
/** @internal */
|
|
2098
|
+
export declare const DeploymentStream2DeploymentsDetail$inboundSchema: z.ZodNativeEnum<typeof DeploymentStream2DeploymentsDetail>;
|
|
2099
|
+
/** @internal */
|
|
2100
|
+
export declare const DeploymentStream2DeploymentsDetail$outboundSchema: z.ZodNativeEnum<typeof DeploymentStream2DeploymentsDetail>;
|
|
2101
|
+
/**
|
|
2102
|
+
* @internal
|
|
2103
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2104
|
+
*/
|
|
2105
|
+
export declare namespace DeploymentStream2DeploymentsDetail$ {
|
|
2106
|
+
/** @deprecated use `DeploymentStream2DeploymentsDetail$inboundSchema` instead. */
|
|
2107
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
2108
|
+
readonly Low: "low";
|
|
2109
|
+
readonly High: "high";
|
|
2110
|
+
readonly Auto: "auto";
|
|
2111
|
+
}>;
|
|
2112
|
+
/** @deprecated use `DeploymentStream2DeploymentsDetail$outboundSchema` instead. */
|
|
2113
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
2114
|
+
readonly Low: "low";
|
|
2115
|
+
readonly High: "high";
|
|
2116
|
+
readonly Auto: "auto";
|
|
2117
|
+
}>;
|
|
2118
|
+
}
|
|
2119
|
+
/** @internal */
|
|
2120
|
+
export declare const DeploymentStream2DeploymentsImageUrl$inboundSchema: z.ZodType<DeploymentStream2DeploymentsImageUrl, z.ZodTypeDef, unknown>;
|
|
2121
|
+
/** @internal */
|
|
2122
|
+
export type DeploymentStream2DeploymentsImageUrl$Outbound = {
|
|
2123
|
+
url: string;
|
|
2124
|
+
detail?: string | undefined;
|
|
2125
|
+
};
|
|
2126
|
+
/** @internal */
|
|
2127
|
+
export declare const DeploymentStream2DeploymentsImageUrl$outboundSchema: z.ZodType<DeploymentStream2DeploymentsImageUrl$Outbound, z.ZodTypeDef, DeploymentStream2DeploymentsImageUrl>;
|
|
2128
|
+
/**
|
|
2129
|
+
* @internal
|
|
2130
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2131
|
+
*/
|
|
2132
|
+
export declare namespace DeploymentStream2DeploymentsImageUrl$ {
|
|
2133
|
+
/** @deprecated use `DeploymentStream2DeploymentsImageUrl$inboundSchema` instead. */
|
|
2134
|
+
const inboundSchema: z.ZodType<DeploymentStream2DeploymentsImageUrl, z.ZodTypeDef, unknown>;
|
|
2135
|
+
/** @deprecated use `DeploymentStream2DeploymentsImageUrl$outboundSchema` instead. */
|
|
2136
|
+
const outboundSchema: z.ZodType<DeploymentStream2DeploymentsImageUrl$Outbound, z.ZodTypeDef, DeploymentStream2DeploymentsImageUrl>;
|
|
2137
|
+
/** @deprecated use `DeploymentStream2DeploymentsImageUrl$Outbound` instead. */
|
|
2138
|
+
type Outbound = DeploymentStream2DeploymentsImageUrl$Outbound;
|
|
2139
|
+
}
|
|
2140
|
+
export declare function deploymentStream2DeploymentsImageUrlToJSON(deploymentStream2DeploymentsImageUrl: DeploymentStream2DeploymentsImageUrl): string;
|
|
2141
|
+
export declare function deploymentStream2DeploymentsImageUrlFromJSON(jsonString: string): SafeParseResult<DeploymentStream2DeploymentsImageUrl, SDKValidationError>;
|
|
2142
|
+
/** @internal */
|
|
2143
|
+
export declare const DeploymentStream2Deployments2$inboundSchema: z.ZodType<DeploymentStream2Deployments2, z.ZodTypeDef, unknown>;
|
|
2144
|
+
/** @internal */
|
|
2145
|
+
export type DeploymentStream2Deployments2$Outbound = {
|
|
2146
|
+
type: string;
|
|
2147
|
+
image_url: DeploymentStream2DeploymentsImageUrl$Outbound;
|
|
2148
|
+
};
|
|
2149
|
+
/** @internal */
|
|
2150
|
+
export declare const DeploymentStream2Deployments2$outboundSchema: z.ZodType<DeploymentStream2Deployments2$Outbound, z.ZodTypeDef, DeploymentStream2Deployments2>;
|
|
2151
|
+
/**
|
|
2152
|
+
* @internal
|
|
2153
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2154
|
+
*/
|
|
2155
|
+
export declare namespace DeploymentStream2Deployments2$ {
|
|
2156
|
+
/** @deprecated use `DeploymentStream2Deployments2$inboundSchema` instead. */
|
|
2157
|
+
const inboundSchema: z.ZodType<DeploymentStream2Deployments2, z.ZodTypeDef, unknown>;
|
|
2158
|
+
/** @deprecated use `DeploymentStream2Deployments2$outboundSchema` instead. */
|
|
2159
|
+
const outboundSchema: z.ZodType<DeploymentStream2Deployments2$Outbound, z.ZodTypeDef, DeploymentStream2Deployments2>;
|
|
2160
|
+
/** @deprecated use `DeploymentStream2Deployments2$Outbound` instead. */
|
|
2161
|
+
type Outbound = DeploymentStream2Deployments2$Outbound;
|
|
2162
|
+
}
|
|
2163
|
+
export declare function deploymentStream2Deployments2ToJSON(deploymentStream2Deployments2: DeploymentStream2Deployments2): string;
|
|
2164
|
+
export declare function deploymentStream2Deployments2FromJSON(jsonString: string): SafeParseResult<DeploymentStream2Deployments2, SDKValidationError>;
|
|
2165
|
+
/** @internal */
|
|
2166
|
+
export declare const DeploymentStream2DeploymentsRequestRequestBodyMessagesType$inboundSchema: z.ZodNativeEnum<typeof DeploymentStream2DeploymentsRequestRequestBodyMessagesType>;
|
|
2167
|
+
/** @internal */
|
|
2168
|
+
export declare const DeploymentStream2DeploymentsRequestRequestBodyMessagesType$outboundSchema: z.ZodNativeEnum<typeof DeploymentStream2DeploymentsRequestRequestBodyMessagesType>;
|
|
2169
|
+
/**
|
|
2170
|
+
* @internal
|
|
2171
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2172
|
+
*/
|
|
2173
|
+
export declare namespace DeploymentStream2DeploymentsRequestRequestBodyMessagesType$ {
|
|
2174
|
+
/** @deprecated use `DeploymentStream2DeploymentsRequestRequestBodyMessagesType$inboundSchema` instead. */
|
|
2175
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
2176
|
+
readonly Text: "text";
|
|
2177
|
+
}>;
|
|
2178
|
+
/** @deprecated use `DeploymentStream2DeploymentsRequestRequestBodyMessagesType$outboundSchema` instead. */
|
|
2179
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
2180
|
+
readonly Text: "text";
|
|
2181
|
+
}>;
|
|
2182
|
+
}
|
|
2183
|
+
/** @internal */
|
|
2184
|
+
export declare const DeploymentStream2Deployments1$inboundSchema: z.ZodType<DeploymentStream2Deployments1, z.ZodTypeDef, unknown>;
|
|
2185
|
+
/** @internal */
|
|
2186
|
+
export type DeploymentStream2Deployments1$Outbound = {
|
|
2187
|
+
type: string;
|
|
2188
|
+
text: string;
|
|
2189
|
+
};
|
|
2190
|
+
/** @internal */
|
|
2191
|
+
export declare const DeploymentStream2Deployments1$outboundSchema: z.ZodType<DeploymentStream2Deployments1$Outbound, z.ZodTypeDef, DeploymentStream2Deployments1>;
|
|
2192
|
+
/**
|
|
2193
|
+
* @internal
|
|
2194
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2195
|
+
*/
|
|
2196
|
+
export declare namespace DeploymentStream2Deployments1$ {
|
|
2197
|
+
/** @deprecated use `DeploymentStream2Deployments1$inboundSchema` instead. */
|
|
2198
|
+
const inboundSchema: z.ZodType<DeploymentStream2Deployments1, z.ZodTypeDef, unknown>;
|
|
2199
|
+
/** @deprecated use `DeploymentStream2Deployments1$outboundSchema` instead. */
|
|
2200
|
+
const outboundSchema: z.ZodType<DeploymentStream2Deployments1$Outbound, z.ZodTypeDef, DeploymentStream2Deployments1>;
|
|
2201
|
+
/** @deprecated use `DeploymentStream2Deployments1$Outbound` instead. */
|
|
2202
|
+
type Outbound = DeploymentStream2Deployments1$Outbound;
|
|
2203
|
+
}
|
|
2204
|
+
export declare function deploymentStream2Deployments1ToJSON(deploymentStream2Deployments1: DeploymentStream2Deployments1): string;
|
|
2205
|
+
export declare function deploymentStream2Deployments1FromJSON(jsonString: string): SafeParseResult<DeploymentStream2Deployments1, SDKValidationError>;
|
|
2206
|
+
/** @internal */
|
|
2207
|
+
export declare const DeploymentStreamContentDeploymentsRequest2$inboundSchema: z.ZodType<DeploymentStreamContentDeploymentsRequest2, z.ZodTypeDef, unknown>;
|
|
2208
|
+
/** @internal */
|
|
2209
|
+
export type DeploymentStreamContentDeploymentsRequest2$Outbound = DeploymentStream2Deployments1$Outbound | DeploymentStream2Deployments2$Outbound | DeploymentStream2Deployments3$Outbound;
|
|
2210
|
+
/** @internal */
|
|
2211
|
+
export declare const DeploymentStreamContentDeploymentsRequest2$outboundSchema: z.ZodType<DeploymentStreamContentDeploymentsRequest2$Outbound, z.ZodTypeDef, DeploymentStreamContentDeploymentsRequest2>;
|
|
2212
|
+
/**
|
|
2213
|
+
* @internal
|
|
2214
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2215
|
+
*/
|
|
2216
|
+
export declare namespace DeploymentStreamContentDeploymentsRequest2$ {
|
|
2217
|
+
/** @deprecated use `DeploymentStreamContentDeploymentsRequest2$inboundSchema` instead. */
|
|
2218
|
+
const inboundSchema: z.ZodType<DeploymentStreamContentDeploymentsRequest2, z.ZodTypeDef, unknown>;
|
|
2219
|
+
/** @deprecated use `DeploymentStreamContentDeploymentsRequest2$outboundSchema` instead. */
|
|
2220
|
+
const outboundSchema: z.ZodType<DeploymentStreamContentDeploymentsRequest2$Outbound, z.ZodTypeDef, DeploymentStreamContentDeploymentsRequest2>;
|
|
2221
|
+
/** @deprecated use `DeploymentStreamContentDeploymentsRequest2$Outbound` instead. */
|
|
2222
|
+
type Outbound = DeploymentStreamContentDeploymentsRequest2$Outbound;
|
|
2223
|
+
}
|
|
2224
|
+
export declare function deploymentStreamContentDeploymentsRequest2ToJSON(deploymentStreamContentDeploymentsRequest2: DeploymentStreamContentDeploymentsRequest2): string;
|
|
2225
|
+
export declare function deploymentStreamContentDeploymentsRequest2FromJSON(jsonString: string): SafeParseResult<DeploymentStreamContentDeploymentsRequest2, SDKValidationError>;
|
|
2226
|
+
/** @internal */
|
|
2227
|
+
export declare const DeploymentStreamMessagesContent$inboundSchema: z.ZodType<DeploymentStreamMessagesContent, z.ZodTypeDef, unknown>;
|
|
2228
|
+
/** @internal */
|
|
2229
|
+
export type DeploymentStreamMessagesContent$Outbound = string | Array<DeploymentStream2Deployments1$Outbound | DeploymentStream2Deployments2$Outbound | DeploymentStream2Deployments3$Outbound>;
|
|
2230
|
+
/** @internal */
|
|
2231
|
+
export declare const DeploymentStreamMessagesContent$outboundSchema: z.ZodType<DeploymentStreamMessagesContent$Outbound, z.ZodTypeDef, DeploymentStreamMessagesContent>;
|
|
2232
|
+
/**
|
|
2233
|
+
* @internal
|
|
2234
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2235
|
+
*/
|
|
2236
|
+
export declare namespace DeploymentStreamMessagesContent$ {
|
|
2237
|
+
/** @deprecated use `DeploymentStreamMessagesContent$inboundSchema` instead. */
|
|
2238
|
+
const inboundSchema: z.ZodType<DeploymentStreamMessagesContent, z.ZodTypeDef, unknown>;
|
|
2239
|
+
/** @deprecated use `DeploymentStreamMessagesContent$outboundSchema` instead. */
|
|
2240
|
+
const outboundSchema: z.ZodType<DeploymentStreamMessagesContent$Outbound, z.ZodTypeDef, DeploymentStreamMessagesContent>;
|
|
2241
|
+
/** @deprecated use `DeploymentStreamMessagesContent$Outbound` instead. */
|
|
2242
|
+
type Outbound = DeploymentStreamMessagesContent$Outbound;
|
|
2243
|
+
}
|
|
2244
|
+
export declare function deploymentStreamMessagesContentToJSON(deploymentStreamMessagesContent: DeploymentStreamMessagesContent): string;
|
|
2245
|
+
export declare function deploymentStreamMessagesContentFromJSON(jsonString: string): SafeParseResult<DeploymentStreamMessagesContent, SDKValidationError>;
|
|
2246
|
+
/** @internal */
|
|
2247
|
+
export declare const DeploymentStreamMessagesUserMessage$inboundSchema: z.ZodType<DeploymentStreamMessagesUserMessage, z.ZodTypeDef, unknown>;
|
|
2248
|
+
/** @internal */
|
|
2249
|
+
export type DeploymentStreamMessagesUserMessage$Outbound = {
|
|
2250
|
+
role: string;
|
|
2251
|
+
name?: string | undefined;
|
|
2252
|
+
content: string | Array<DeploymentStream2Deployments1$Outbound | DeploymentStream2Deployments2$Outbound | DeploymentStream2Deployments3$Outbound>;
|
|
2253
|
+
};
|
|
2254
|
+
/** @internal */
|
|
2255
|
+
export declare const DeploymentStreamMessagesUserMessage$outboundSchema: z.ZodType<DeploymentStreamMessagesUserMessage$Outbound, z.ZodTypeDef, DeploymentStreamMessagesUserMessage>;
|
|
2256
|
+
/**
|
|
2257
|
+
* @internal
|
|
2258
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2259
|
+
*/
|
|
2260
|
+
export declare namespace DeploymentStreamMessagesUserMessage$ {
|
|
2261
|
+
/** @deprecated use `DeploymentStreamMessagesUserMessage$inboundSchema` instead. */
|
|
2262
|
+
const inboundSchema: z.ZodType<DeploymentStreamMessagesUserMessage, z.ZodTypeDef, unknown>;
|
|
2263
|
+
/** @deprecated use `DeploymentStreamMessagesUserMessage$outboundSchema` instead. */
|
|
2264
|
+
const outboundSchema: z.ZodType<DeploymentStreamMessagesUserMessage$Outbound, z.ZodTypeDef, DeploymentStreamMessagesUserMessage>;
|
|
2265
|
+
/** @deprecated use `DeploymentStreamMessagesUserMessage$Outbound` instead. */
|
|
2266
|
+
type Outbound = DeploymentStreamMessagesUserMessage$Outbound;
|
|
2267
|
+
}
|
|
2268
|
+
export declare function deploymentStreamMessagesUserMessageToJSON(deploymentStreamMessagesUserMessage: DeploymentStreamMessagesUserMessage): string;
|
|
2269
|
+
export declare function deploymentStreamMessagesUserMessageFromJSON(jsonString: string): SafeParseResult<DeploymentStreamMessagesUserMessage, SDKValidationError>;
|
|
2270
|
+
/** @internal */
|
|
2271
|
+
export declare const DeploymentStreamMessagesDeploymentsRole$inboundSchema: z.ZodNativeEnum<typeof DeploymentStreamMessagesDeploymentsRole>;
|
|
2272
|
+
/** @internal */
|
|
2273
|
+
export declare const DeploymentStreamMessagesDeploymentsRole$outboundSchema: z.ZodNativeEnum<typeof DeploymentStreamMessagesDeploymentsRole>;
|
|
2274
|
+
/**
|
|
2275
|
+
* @internal
|
|
2276
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2277
|
+
*/
|
|
2278
|
+
export declare namespace DeploymentStreamMessagesDeploymentsRole$ {
|
|
2279
|
+
/** @deprecated use `DeploymentStreamMessagesDeploymentsRole$inboundSchema` instead. */
|
|
2280
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
2281
|
+
readonly System: "system";
|
|
2282
|
+
}>;
|
|
2283
|
+
/** @deprecated use `DeploymentStreamMessagesDeploymentsRole$outboundSchema` instead. */
|
|
2284
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
2285
|
+
readonly System: "system";
|
|
2286
|
+
}>;
|
|
2287
|
+
}
|
|
2288
|
+
/** @internal */
|
|
2289
|
+
export declare const DeploymentStreamMessagesSystemMessage$inboundSchema: z.ZodType<DeploymentStreamMessagesSystemMessage, z.ZodTypeDef, unknown>;
|
|
2290
|
+
/** @internal */
|
|
2291
|
+
export type DeploymentStreamMessagesSystemMessage$Outbound = {
|
|
2292
|
+
role: string;
|
|
2293
|
+
content: string;
|
|
2294
|
+
name?: string | undefined;
|
|
2295
|
+
};
|
|
2296
|
+
/** @internal */
|
|
2297
|
+
export declare const DeploymentStreamMessagesSystemMessage$outboundSchema: z.ZodType<DeploymentStreamMessagesSystemMessage$Outbound, z.ZodTypeDef, DeploymentStreamMessagesSystemMessage>;
|
|
2298
|
+
/**
|
|
2299
|
+
* @internal
|
|
2300
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2301
|
+
*/
|
|
2302
|
+
export declare namespace DeploymentStreamMessagesSystemMessage$ {
|
|
2303
|
+
/** @deprecated use `DeploymentStreamMessagesSystemMessage$inboundSchema` instead. */
|
|
2304
|
+
const inboundSchema: z.ZodType<DeploymentStreamMessagesSystemMessage, z.ZodTypeDef, unknown>;
|
|
2305
|
+
/** @deprecated use `DeploymentStreamMessagesSystemMessage$outboundSchema` instead. */
|
|
2306
|
+
const outboundSchema: z.ZodType<DeploymentStreamMessagesSystemMessage$Outbound, z.ZodTypeDef, DeploymentStreamMessagesSystemMessage>;
|
|
2307
|
+
/** @deprecated use `DeploymentStreamMessagesSystemMessage$Outbound` instead. */
|
|
2308
|
+
type Outbound = DeploymentStreamMessagesSystemMessage$Outbound;
|
|
2309
|
+
}
|
|
2310
|
+
export declare function deploymentStreamMessagesSystemMessageToJSON(deploymentStreamMessagesSystemMessage: DeploymentStreamMessagesSystemMessage): string;
|
|
2311
|
+
export declare function deploymentStreamMessagesSystemMessageFromJSON(jsonString: string): SafeParseResult<DeploymentStreamMessagesSystemMessage, SDKValidationError>;
|
|
2312
|
+
/** @internal */
|
|
2313
|
+
export declare const DeploymentStreamMessagesRole$inboundSchema: z.ZodNativeEnum<typeof DeploymentStreamMessagesRole>;
|
|
2314
|
+
/** @internal */
|
|
2315
|
+
export declare const DeploymentStreamMessagesRole$outboundSchema: z.ZodNativeEnum<typeof DeploymentStreamMessagesRole>;
|
|
2316
|
+
/**
|
|
2317
|
+
* @internal
|
|
2318
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2319
|
+
*/
|
|
2320
|
+
export declare namespace DeploymentStreamMessagesRole$ {
|
|
2321
|
+
/** @deprecated use `DeploymentStreamMessagesRole$inboundSchema` instead. */
|
|
2322
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
2323
|
+
readonly Developer: "developer";
|
|
2324
|
+
}>;
|
|
2325
|
+
/** @deprecated use `DeploymentStreamMessagesRole$outboundSchema` instead. */
|
|
2326
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
2327
|
+
readonly Developer: "developer";
|
|
2328
|
+
}>;
|
|
2329
|
+
}
|
|
2330
|
+
/** @internal */
|
|
2331
|
+
export declare const DeploymentStreamMessagesDeveloperMessage$inboundSchema: z.ZodType<DeploymentStreamMessagesDeveloperMessage, z.ZodTypeDef, unknown>;
|
|
2332
|
+
/** @internal */
|
|
2333
|
+
export type DeploymentStreamMessagesDeveloperMessage$Outbound = {
|
|
2334
|
+
role: string;
|
|
2335
|
+
content: string;
|
|
2336
|
+
name?: string | undefined;
|
|
2337
|
+
};
|
|
2338
|
+
/** @internal */
|
|
2339
|
+
export declare const DeploymentStreamMessagesDeveloperMessage$outboundSchema: z.ZodType<DeploymentStreamMessagesDeveloperMessage$Outbound, z.ZodTypeDef, DeploymentStreamMessagesDeveloperMessage>;
|
|
2340
|
+
/**
|
|
2341
|
+
* @internal
|
|
2342
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2343
|
+
*/
|
|
2344
|
+
export declare namespace DeploymentStreamMessagesDeveloperMessage$ {
|
|
2345
|
+
/** @deprecated use `DeploymentStreamMessagesDeveloperMessage$inboundSchema` instead. */
|
|
2346
|
+
const inboundSchema: z.ZodType<DeploymentStreamMessagesDeveloperMessage, z.ZodTypeDef, unknown>;
|
|
2347
|
+
/** @deprecated use `DeploymentStreamMessagesDeveloperMessage$outboundSchema` instead. */
|
|
2348
|
+
const outboundSchema: z.ZodType<DeploymentStreamMessagesDeveloperMessage$Outbound, z.ZodTypeDef, DeploymentStreamMessagesDeveloperMessage>;
|
|
2349
|
+
/** @deprecated use `DeploymentStreamMessagesDeveloperMessage$Outbound` instead. */
|
|
2350
|
+
type Outbound = DeploymentStreamMessagesDeveloperMessage$Outbound;
|
|
2351
|
+
}
|
|
2352
|
+
export declare function deploymentStreamMessagesDeveloperMessageToJSON(deploymentStreamMessagesDeveloperMessage: DeploymentStreamMessagesDeveloperMessage): string;
|
|
2353
|
+
export declare function deploymentStreamMessagesDeveloperMessageFromJSON(jsonString: string): SafeParseResult<DeploymentStreamMessagesDeveloperMessage, SDKValidationError>;
|
|
2354
|
+
/** @internal */
|
|
2355
|
+
export declare const DeploymentStreamMessages$inboundSchema: z.ZodType<DeploymentStreamMessages, z.ZodTypeDef, unknown>;
|
|
2356
|
+
/** @internal */
|
|
2357
|
+
export type DeploymentStreamMessages$Outbound = DeploymentStreamMessagesDeveloperMessage$Outbound | DeploymentStreamMessagesSystemMessage$Outbound | DeploymentStreamMessagesUserMessage$Outbound | DeploymentStreamMessagesToolMessage$Outbound | DeploymentStreamMessagesAssistantMessage$Outbound;
|
|
2358
|
+
/** @internal */
|
|
2359
|
+
export declare const DeploymentStreamMessages$outboundSchema: z.ZodType<DeploymentStreamMessages$Outbound, z.ZodTypeDef, DeploymentStreamMessages>;
|
|
2360
|
+
/**
|
|
2361
|
+
* @internal
|
|
2362
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2363
|
+
*/
|
|
2364
|
+
export declare namespace DeploymentStreamMessages$ {
|
|
2365
|
+
/** @deprecated use `DeploymentStreamMessages$inboundSchema` instead. */
|
|
2366
|
+
const inboundSchema: z.ZodType<DeploymentStreamMessages, z.ZodTypeDef, unknown>;
|
|
2367
|
+
/** @deprecated use `DeploymentStreamMessages$outboundSchema` instead. */
|
|
2368
|
+
const outboundSchema: z.ZodType<DeploymentStreamMessages$Outbound, z.ZodTypeDef, DeploymentStreamMessages>;
|
|
2369
|
+
/** @deprecated use `DeploymentStreamMessages$Outbound` instead. */
|
|
2370
|
+
type Outbound = DeploymentStreamMessages$Outbound;
|
|
2371
|
+
}
|
|
2372
|
+
export declare function deploymentStreamMessagesToJSON(deploymentStreamMessages: DeploymentStreamMessages): string;
|
|
2373
|
+
export declare function deploymentStreamMessagesFromJSON(jsonString: string): SafeParseResult<DeploymentStreamMessages, SDKValidationError>;
|
|
2374
|
+
/** @internal */
|
|
2375
|
+
export declare const DeploymentStreamMetadata$inboundSchema: z.ZodType<DeploymentStreamMetadata, z.ZodTypeDef, unknown>;
|
|
2376
|
+
/** @internal */
|
|
2377
|
+
export type DeploymentStreamMetadata$Outbound = {
|
|
2378
|
+
file_name?: string | undefined;
|
|
2379
|
+
file_type?: string | undefined;
|
|
2380
|
+
page_number?: number | undefined;
|
|
2381
|
+
};
|
|
2382
|
+
/** @internal */
|
|
2383
|
+
export declare const DeploymentStreamMetadata$outboundSchema: z.ZodType<DeploymentStreamMetadata$Outbound, z.ZodTypeDef, DeploymentStreamMetadata>;
|
|
2384
|
+
/**
|
|
2385
|
+
* @internal
|
|
2386
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2387
|
+
*/
|
|
2388
|
+
export declare namespace DeploymentStreamMetadata$ {
|
|
2389
|
+
/** @deprecated use `DeploymentStreamMetadata$inboundSchema` instead. */
|
|
2390
|
+
const inboundSchema: z.ZodType<DeploymentStreamMetadata, z.ZodTypeDef, unknown>;
|
|
2391
|
+
/** @deprecated use `DeploymentStreamMetadata$outboundSchema` instead. */
|
|
2392
|
+
const outboundSchema: z.ZodType<DeploymentStreamMetadata$Outbound, z.ZodTypeDef, DeploymentStreamMetadata>;
|
|
2393
|
+
/** @deprecated use `DeploymentStreamMetadata$Outbound` instead. */
|
|
2394
|
+
type Outbound = DeploymentStreamMetadata$Outbound;
|
|
2395
|
+
}
|
|
2396
|
+
export declare function deploymentStreamMetadataToJSON(deploymentStreamMetadata: DeploymentStreamMetadata): string;
|
|
2397
|
+
export declare function deploymentStreamMetadataFromJSON(jsonString: string): SafeParseResult<DeploymentStreamMetadata, SDKValidationError>;
|
|
2398
|
+
/** @internal */
|
|
2399
|
+
export declare const DeploymentStreamDocuments$inboundSchema: z.ZodType<DeploymentStreamDocuments, z.ZodTypeDef, unknown>;
|
|
2400
|
+
/** @internal */
|
|
2401
|
+
export type DeploymentStreamDocuments$Outbound = {
|
|
2402
|
+
text: string;
|
|
2403
|
+
metadata?: DeploymentStreamMetadata$Outbound | undefined;
|
|
2404
|
+
};
|
|
2405
|
+
/** @internal */
|
|
2406
|
+
export declare const DeploymentStreamDocuments$outboundSchema: z.ZodType<DeploymentStreamDocuments$Outbound, z.ZodTypeDef, DeploymentStreamDocuments>;
|
|
2407
|
+
/**
|
|
2408
|
+
* @internal
|
|
2409
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2410
|
+
*/
|
|
2411
|
+
export declare namespace DeploymentStreamDocuments$ {
|
|
2412
|
+
/** @deprecated use `DeploymentStreamDocuments$inboundSchema` instead. */
|
|
2413
|
+
const inboundSchema: z.ZodType<DeploymentStreamDocuments, z.ZodTypeDef, unknown>;
|
|
2414
|
+
/** @deprecated use `DeploymentStreamDocuments$outboundSchema` instead. */
|
|
2415
|
+
const outboundSchema: z.ZodType<DeploymentStreamDocuments$Outbound, z.ZodTypeDef, DeploymentStreamDocuments>;
|
|
2416
|
+
/** @deprecated use `DeploymentStreamDocuments$Outbound` instead. */
|
|
2417
|
+
type Outbound = DeploymentStreamDocuments$Outbound;
|
|
2418
|
+
}
|
|
2419
|
+
export declare function deploymentStreamDocumentsToJSON(deploymentStreamDocuments: DeploymentStreamDocuments): string;
|
|
2420
|
+
export declare function deploymentStreamDocumentsFromJSON(jsonString: string): SafeParseResult<DeploymentStreamDocuments, SDKValidationError>;
|
|
2421
|
+
/** @internal */
|
|
2422
|
+
export declare const DeploymentStreamInvokeOptions$inboundSchema: z.ZodType<DeploymentStreamInvokeOptions, z.ZodTypeDef, unknown>;
|
|
2423
|
+
/** @internal */
|
|
2424
|
+
export type DeploymentStreamInvokeOptions$Outbound = {
|
|
2425
|
+
include_retrievals: boolean;
|
|
2426
|
+
};
|
|
2427
|
+
/** @internal */
|
|
2428
|
+
export declare const DeploymentStreamInvokeOptions$outboundSchema: z.ZodType<DeploymentStreamInvokeOptions$Outbound, z.ZodTypeDef, DeploymentStreamInvokeOptions>;
|
|
2429
|
+
/**
|
|
2430
|
+
* @internal
|
|
2431
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2432
|
+
*/
|
|
2433
|
+
export declare namespace DeploymentStreamInvokeOptions$ {
|
|
2434
|
+
/** @deprecated use `DeploymentStreamInvokeOptions$inboundSchema` instead. */
|
|
2435
|
+
const inboundSchema: z.ZodType<DeploymentStreamInvokeOptions, z.ZodTypeDef, unknown>;
|
|
2436
|
+
/** @deprecated use `DeploymentStreamInvokeOptions$outboundSchema` instead. */
|
|
2437
|
+
const outboundSchema: z.ZodType<DeploymentStreamInvokeOptions$Outbound, z.ZodTypeDef, DeploymentStreamInvokeOptions>;
|
|
2438
|
+
/** @deprecated use `DeploymentStreamInvokeOptions$Outbound` instead. */
|
|
2439
|
+
type Outbound = DeploymentStreamInvokeOptions$Outbound;
|
|
2440
|
+
}
|
|
2441
|
+
export declare function deploymentStreamInvokeOptionsToJSON(deploymentStreamInvokeOptions: DeploymentStreamInvokeOptions): string;
|
|
2442
|
+
export declare function deploymentStreamInvokeOptionsFromJSON(jsonString: string): SafeParseResult<DeploymentStreamInvokeOptions, SDKValidationError>;
|
|
2443
|
+
/** @internal */
|
|
2444
|
+
export declare const DeploymentStreamRequestBody$inboundSchema: z.ZodType<DeploymentStreamRequestBody, z.ZodTypeDef, unknown>;
|
|
2445
|
+
/** @internal */
|
|
2446
|
+
export type DeploymentStreamRequestBody$Outbound = {
|
|
2447
|
+
key: string;
|
|
2448
|
+
inputs?: {
|
|
2449
|
+
[k: string]: string | number | boolean;
|
|
2450
|
+
} | undefined;
|
|
2451
|
+
context?: {
|
|
2452
|
+
[k: string]: any;
|
|
2453
|
+
} | undefined;
|
|
2454
|
+
prefix_messages?: Array<PrefixMessagesDeveloperMessage$Outbound | PrefixMessagesSystemMessage$Outbound | PrefixMessagesUserMessage$Outbound | PrefixMessagesToolMessage$Outbound | PrefixMessagesAssistantMessage$Outbound> | undefined;
|
|
2455
|
+
messages?: Array<DeploymentStreamMessagesDeveloperMessage$Outbound | DeploymentStreamMessagesSystemMessage$Outbound | DeploymentStreamMessagesUserMessage$Outbound | DeploymentStreamMessagesToolMessage$Outbound | DeploymentStreamMessagesAssistantMessage$Outbound> | undefined;
|
|
2456
|
+
file_ids?: Array<string> | undefined;
|
|
2457
|
+
metadata?: {
|
|
2458
|
+
[k: string]: any;
|
|
2459
|
+
} | undefined;
|
|
2460
|
+
extra_params?: {
|
|
2461
|
+
[k: string]: any;
|
|
2462
|
+
} | undefined;
|
|
2463
|
+
documents?: Array<DeploymentStreamDocuments$Outbound> | undefined;
|
|
2464
|
+
invoke_options?: DeploymentStreamInvokeOptions$Outbound | undefined;
|
|
2465
|
+
};
|
|
2466
|
+
/** @internal */
|
|
2467
|
+
export declare const DeploymentStreamRequestBody$outboundSchema: z.ZodType<DeploymentStreamRequestBody$Outbound, z.ZodTypeDef, DeploymentStreamRequestBody>;
|
|
2468
|
+
/**
|
|
2469
|
+
* @internal
|
|
2470
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2471
|
+
*/
|
|
2472
|
+
export declare namespace DeploymentStreamRequestBody$ {
|
|
2473
|
+
/** @deprecated use `DeploymentStreamRequestBody$inboundSchema` instead. */
|
|
2474
|
+
const inboundSchema: z.ZodType<DeploymentStreamRequestBody, z.ZodTypeDef, unknown>;
|
|
2475
|
+
/** @deprecated use `DeploymentStreamRequestBody$outboundSchema` instead. */
|
|
2476
|
+
const outboundSchema: z.ZodType<DeploymentStreamRequestBody$Outbound, z.ZodTypeDef, DeploymentStreamRequestBody>;
|
|
2477
|
+
/** @deprecated use `DeploymentStreamRequestBody$Outbound` instead. */
|
|
2478
|
+
type Outbound = DeploymentStreamRequestBody$Outbound;
|
|
2479
|
+
}
|
|
2480
|
+
export declare function deploymentStreamRequestBodyToJSON(deploymentStreamRequestBody: DeploymentStreamRequestBody): string;
|
|
2481
|
+
export declare function deploymentStreamRequestBodyFromJSON(jsonString: string): SafeParseResult<DeploymentStreamRequestBody, SDKValidationError>;
|
|
2482
|
+
/** @internal */
|
|
2483
|
+
export declare const DeploymentStreamObject$inboundSchema: z.ZodNativeEnum<typeof DeploymentStreamObject>;
|
|
2484
|
+
/** @internal */
|
|
2485
|
+
export declare const DeploymentStreamObject$outboundSchema: z.ZodNativeEnum<typeof DeploymentStreamObject>;
|
|
2486
|
+
/**
|
|
2487
|
+
* @internal
|
|
2488
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2489
|
+
*/
|
|
2490
|
+
export declare namespace DeploymentStreamObject$ {
|
|
2491
|
+
/** @deprecated use `DeploymentStreamObject$inboundSchema` instead. */
|
|
2492
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
2493
|
+
readonly Chat: "chat";
|
|
2494
|
+
readonly Completion: "completion";
|
|
2495
|
+
readonly Image: "image";
|
|
2496
|
+
readonly Vision: "vision";
|
|
2497
|
+
}>;
|
|
2498
|
+
/** @deprecated use `DeploymentStreamObject$outboundSchema` instead. */
|
|
2499
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
2500
|
+
readonly Chat: "chat";
|
|
2501
|
+
readonly Completion: "completion";
|
|
2502
|
+
readonly Image: "image";
|
|
2503
|
+
readonly Vision: "vision";
|
|
2504
|
+
}>;
|
|
2505
|
+
}
|
|
2506
|
+
/** @internal */
|
|
2507
|
+
export declare const DeploymentStreamProvider$inboundSchema: z.ZodNativeEnum<typeof DeploymentStreamProvider>;
|
|
2508
|
+
/** @internal */
|
|
2509
|
+
export declare const DeploymentStreamProvider$outboundSchema: z.ZodNativeEnum<typeof DeploymentStreamProvider>;
|
|
2510
|
+
/**
|
|
2511
|
+
* @internal
|
|
2512
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2513
|
+
*/
|
|
2514
|
+
export declare namespace DeploymentStreamProvider$ {
|
|
2515
|
+
/** @deprecated use `DeploymentStreamProvider$inboundSchema` instead. */
|
|
2516
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
2517
|
+
readonly Cohere: "cohere";
|
|
2518
|
+
readonly Openai: "openai";
|
|
2519
|
+
readonly Anthropic: "anthropic";
|
|
2520
|
+
readonly Huggingface: "huggingface";
|
|
2521
|
+
readonly Replicate: "replicate";
|
|
2522
|
+
readonly Google: "google";
|
|
2523
|
+
readonly GoogleAi: "google-ai";
|
|
2524
|
+
readonly Azure: "azure";
|
|
2525
|
+
readonly Aws: "aws";
|
|
2526
|
+
readonly Anyscale: "anyscale";
|
|
2527
|
+
readonly Perplexity: "perplexity";
|
|
2528
|
+
readonly Groq: "groq";
|
|
2529
|
+
readonly Fal: "fal";
|
|
2530
|
+
readonly Leonardoai: "leonardoai";
|
|
2531
|
+
readonly Nvidia: "nvidia";
|
|
2532
|
+
readonly Jina: "jina";
|
|
2533
|
+
readonly Togetherai: "togetherai";
|
|
2534
|
+
readonly Elevenlabs: "elevenlabs";
|
|
2535
|
+
}>;
|
|
2536
|
+
/** @deprecated use `DeploymentStreamProvider$outboundSchema` instead. */
|
|
2537
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
2538
|
+
readonly Cohere: "cohere";
|
|
2539
|
+
readonly Openai: "openai";
|
|
2540
|
+
readonly Anthropic: "anthropic";
|
|
2541
|
+
readonly Huggingface: "huggingface";
|
|
2542
|
+
readonly Replicate: "replicate";
|
|
2543
|
+
readonly Google: "google";
|
|
2544
|
+
readonly GoogleAi: "google-ai";
|
|
2545
|
+
readonly Azure: "azure";
|
|
2546
|
+
readonly Aws: "aws";
|
|
2547
|
+
readonly Anyscale: "anyscale";
|
|
2548
|
+
readonly Perplexity: "perplexity";
|
|
2549
|
+
readonly Groq: "groq";
|
|
2550
|
+
readonly Fal: "fal";
|
|
2551
|
+
readonly Leonardoai: "leonardoai";
|
|
2552
|
+
readonly Nvidia: "nvidia";
|
|
2553
|
+
readonly Jina: "jina";
|
|
2554
|
+
readonly Togetherai: "togetherai";
|
|
2555
|
+
readonly Elevenlabs: "elevenlabs";
|
|
2556
|
+
}>;
|
|
2557
|
+
}
|
|
2558
|
+
/** @internal */
|
|
2559
|
+
export declare const DeploymentStreamMessageDeploymentsResponseRole$inboundSchema: z.ZodNativeEnum<typeof DeploymentStreamMessageDeploymentsResponseRole>;
|
|
2560
|
+
/** @internal */
|
|
2561
|
+
export declare const DeploymentStreamMessageDeploymentsResponseRole$outboundSchema: z.ZodNativeEnum<typeof DeploymentStreamMessageDeploymentsResponseRole>;
|
|
2562
|
+
/**
|
|
2563
|
+
* @internal
|
|
2564
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2565
|
+
*/
|
|
2566
|
+
export declare namespace DeploymentStreamMessageDeploymentsResponseRole$ {
|
|
2567
|
+
/** @deprecated use `DeploymentStreamMessageDeploymentsResponseRole$inboundSchema` instead. */
|
|
2568
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
2569
|
+
readonly System: "system";
|
|
2570
|
+
readonly Assistant: "assistant";
|
|
2571
|
+
readonly User: "user";
|
|
2572
|
+
readonly Exception: "exception";
|
|
2573
|
+
readonly Tool: "tool";
|
|
2574
|
+
readonly Prompt: "prompt";
|
|
2575
|
+
readonly Correction: "correction";
|
|
2576
|
+
readonly ExpectedOutput: "expected_output";
|
|
2577
|
+
}>;
|
|
2578
|
+
/** @deprecated use `DeploymentStreamMessageDeploymentsResponseRole$outboundSchema` instead. */
|
|
2579
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
2580
|
+
readonly System: "system";
|
|
2581
|
+
readonly Assistant: "assistant";
|
|
2582
|
+
readonly User: "user";
|
|
2583
|
+
readonly Exception: "exception";
|
|
2584
|
+
readonly Tool: "tool";
|
|
2585
|
+
readonly Prompt: "prompt";
|
|
2586
|
+
readonly Correction: "correction";
|
|
2587
|
+
readonly ExpectedOutput: "expected_output";
|
|
2588
|
+
}>;
|
|
2589
|
+
}
|
|
2590
|
+
/** @internal */
|
|
2591
|
+
export declare const DeploymentStreamMessage3$inboundSchema: z.ZodType<DeploymentStreamMessage3, z.ZodTypeDef, unknown>;
|
|
2592
|
+
/** @internal */
|
|
2593
|
+
export type DeploymentStreamMessage3$Outbound = {
|
|
2594
|
+
role: string;
|
|
2595
|
+
url: string;
|
|
2596
|
+
};
|
|
2597
|
+
/** @internal */
|
|
2598
|
+
export declare const DeploymentStreamMessage3$outboundSchema: z.ZodType<DeploymentStreamMessage3$Outbound, z.ZodTypeDef, DeploymentStreamMessage3>;
|
|
2599
|
+
/**
|
|
2600
|
+
* @internal
|
|
2601
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2602
|
+
*/
|
|
2603
|
+
export declare namespace DeploymentStreamMessage3$ {
|
|
2604
|
+
/** @deprecated use `DeploymentStreamMessage3$inboundSchema` instead. */
|
|
2605
|
+
const inboundSchema: z.ZodType<DeploymentStreamMessage3, z.ZodTypeDef, unknown>;
|
|
2606
|
+
/** @deprecated use `DeploymentStreamMessage3$outboundSchema` instead. */
|
|
2607
|
+
const outboundSchema: z.ZodType<DeploymentStreamMessage3$Outbound, z.ZodTypeDef, DeploymentStreamMessage3>;
|
|
2608
|
+
/** @deprecated use `DeploymentStreamMessage3$Outbound` instead. */
|
|
2609
|
+
type Outbound = DeploymentStreamMessage3$Outbound;
|
|
2610
|
+
}
|
|
2611
|
+
export declare function deploymentStreamMessage3ToJSON(deploymentStreamMessage3: DeploymentStreamMessage3): string;
|
|
2612
|
+
export declare function deploymentStreamMessage3FromJSON(jsonString: string): SafeParseResult<DeploymentStreamMessage3, SDKValidationError>;
|
|
2613
|
+
/** @internal */
|
|
2614
|
+
export declare const DeploymentStreamMessageDeploymentsRole$inboundSchema: z.ZodNativeEnum<typeof DeploymentStreamMessageDeploymentsRole>;
|
|
2615
|
+
/** @internal */
|
|
2616
|
+
export declare const DeploymentStreamMessageDeploymentsRole$outboundSchema: z.ZodNativeEnum<typeof DeploymentStreamMessageDeploymentsRole>;
|
|
2617
|
+
/**
|
|
2618
|
+
* @internal
|
|
2619
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2620
|
+
*/
|
|
2621
|
+
export declare namespace DeploymentStreamMessageDeploymentsRole$ {
|
|
2622
|
+
/** @deprecated use `DeploymentStreamMessageDeploymentsRole$inboundSchema` instead. */
|
|
2623
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
2624
|
+
readonly System: "system";
|
|
2625
|
+
readonly Assistant: "assistant";
|
|
2626
|
+
readonly User: "user";
|
|
2627
|
+
readonly Exception: "exception";
|
|
2628
|
+
readonly Tool: "tool";
|
|
2629
|
+
readonly Prompt: "prompt";
|
|
2630
|
+
readonly Correction: "correction";
|
|
2631
|
+
readonly ExpectedOutput: "expected_output";
|
|
2632
|
+
}>;
|
|
2633
|
+
/** @deprecated use `DeploymentStreamMessageDeploymentsRole$outboundSchema` instead. */
|
|
2634
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
2635
|
+
readonly System: "system";
|
|
2636
|
+
readonly Assistant: "assistant";
|
|
2637
|
+
readonly User: "user";
|
|
2638
|
+
readonly Exception: "exception";
|
|
2639
|
+
readonly Tool: "tool";
|
|
2640
|
+
readonly Prompt: "prompt";
|
|
2641
|
+
readonly Correction: "correction";
|
|
2642
|
+
readonly ExpectedOutput: "expected_output";
|
|
2643
|
+
}>;
|
|
2644
|
+
}
|
|
2645
|
+
/** @internal */
|
|
2646
|
+
export declare const DeploymentStreamMessage2$inboundSchema: z.ZodType<DeploymentStreamMessage2, z.ZodTypeDef, unknown>;
|
|
2647
|
+
/** @internal */
|
|
2648
|
+
export type DeploymentStreamMessage2$Outbound = {
|
|
2649
|
+
role: string;
|
|
2650
|
+
content: string | null;
|
|
2651
|
+
};
|
|
2652
|
+
/** @internal */
|
|
2653
|
+
export declare const DeploymentStreamMessage2$outboundSchema: z.ZodType<DeploymentStreamMessage2$Outbound, z.ZodTypeDef, DeploymentStreamMessage2>;
|
|
2654
|
+
/**
|
|
2655
|
+
* @internal
|
|
2656
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2657
|
+
*/
|
|
2658
|
+
export declare namespace DeploymentStreamMessage2$ {
|
|
2659
|
+
/** @deprecated use `DeploymentStreamMessage2$inboundSchema` instead. */
|
|
2660
|
+
const inboundSchema: z.ZodType<DeploymentStreamMessage2, z.ZodTypeDef, unknown>;
|
|
2661
|
+
/** @deprecated use `DeploymentStreamMessage2$outboundSchema` instead. */
|
|
2662
|
+
const outboundSchema: z.ZodType<DeploymentStreamMessage2$Outbound, z.ZodTypeDef, DeploymentStreamMessage2>;
|
|
2663
|
+
/** @deprecated use `DeploymentStreamMessage2$Outbound` instead. */
|
|
2664
|
+
type Outbound = DeploymentStreamMessage2$Outbound;
|
|
2665
|
+
}
|
|
2666
|
+
export declare function deploymentStreamMessage2ToJSON(deploymentStreamMessage2: DeploymentStreamMessage2): string;
|
|
2667
|
+
export declare function deploymentStreamMessage2FromJSON(jsonString: string): SafeParseResult<DeploymentStreamMessage2, SDKValidationError>;
|
|
2668
|
+
/** @internal */
|
|
2669
|
+
export declare const DeploymentStreamMessageRole$inboundSchema: z.ZodNativeEnum<typeof DeploymentStreamMessageRole>;
|
|
2670
|
+
/** @internal */
|
|
2671
|
+
export declare const DeploymentStreamMessageRole$outboundSchema: z.ZodNativeEnum<typeof DeploymentStreamMessageRole>;
|
|
2672
|
+
/**
|
|
2673
|
+
* @internal
|
|
2674
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2675
|
+
*/
|
|
2676
|
+
export declare namespace DeploymentStreamMessageRole$ {
|
|
2677
|
+
/** @deprecated use `DeploymentStreamMessageRole$inboundSchema` instead. */
|
|
2678
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
2679
|
+
readonly System: "system";
|
|
2680
|
+
readonly Assistant: "assistant";
|
|
2681
|
+
readonly User: "user";
|
|
2682
|
+
readonly Exception: "exception";
|
|
2683
|
+
readonly Tool: "tool";
|
|
2684
|
+
readonly Prompt: "prompt";
|
|
2685
|
+
readonly Correction: "correction";
|
|
2686
|
+
readonly ExpectedOutput: "expected_output";
|
|
2687
|
+
}>;
|
|
2688
|
+
/** @deprecated use `DeploymentStreamMessageRole$outboundSchema` instead. */
|
|
2689
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
2690
|
+
readonly System: "system";
|
|
2691
|
+
readonly Assistant: "assistant";
|
|
2692
|
+
readonly User: "user";
|
|
2693
|
+
readonly Exception: "exception";
|
|
2694
|
+
readonly Tool: "tool";
|
|
2695
|
+
readonly Prompt: "prompt";
|
|
2696
|
+
readonly Correction: "correction";
|
|
2697
|
+
readonly ExpectedOutput: "expected_output";
|
|
2698
|
+
}>;
|
|
2699
|
+
}
|
|
2700
|
+
/** @internal */
|
|
2701
|
+
export declare const DeploymentStreamMessageType$inboundSchema: z.ZodNativeEnum<typeof DeploymentStreamMessageType>;
|
|
2702
|
+
/** @internal */
|
|
2703
|
+
export declare const DeploymentStreamMessageType$outboundSchema: z.ZodNativeEnum<typeof DeploymentStreamMessageType>;
|
|
2704
|
+
/**
|
|
2705
|
+
* @internal
|
|
2706
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2707
|
+
*/
|
|
2708
|
+
export declare namespace DeploymentStreamMessageType$ {
|
|
2709
|
+
/** @deprecated use `DeploymentStreamMessageType$inboundSchema` instead. */
|
|
2710
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
2711
|
+
readonly Function: "function";
|
|
2712
|
+
}>;
|
|
2713
|
+
/** @deprecated use `DeploymentStreamMessageType$outboundSchema` instead. */
|
|
2714
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
2715
|
+
readonly Function: "function";
|
|
2716
|
+
}>;
|
|
2717
|
+
}
|
|
2718
|
+
/** @internal */
|
|
2719
|
+
export declare const DeploymentStreamMessageFunction$inboundSchema: z.ZodType<DeploymentStreamMessageFunction, z.ZodTypeDef, unknown>;
|
|
2720
|
+
/** @internal */
|
|
2721
|
+
export type DeploymentStreamMessageFunction$Outbound = {
|
|
2722
|
+
name: string;
|
|
2723
|
+
arguments: string;
|
|
2724
|
+
};
|
|
2725
|
+
/** @internal */
|
|
2726
|
+
export declare const DeploymentStreamMessageFunction$outboundSchema: z.ZodType<DeploymentStreamMessageFunction$Outbound, z.ZodTypeDef, DeploymentStreamMessageFunction>;
|
|
2727
|
+
/**
|
|
2728
|
+
* @internal
|
|
2729
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2730
|
+
*/
|
|
2731
|
+
export declare namespace DeploymentStreamMessageFunction$ {
|
|
2732
|
+
/** @deprecated use `DeploymentStreamMessageFunction$inboundSchema` instead. */
|
|
2733
|
+
const inboundSchema: z.ZodType<DeploymentStreamMessageFunction, z.ZodTypeDef, unknown>;
|
|
2734
|
+
/** @deprecated use `DeploymentStreamMessageFunction$outboundSchema` instead. */
|
|
2735
|
+
const outboundSchema: z.ZodType<DeploymentStreamMessageFunction$Outbound, z.ZodTypeDef, DeploymentStreamMessageFunction>;
|
|
2736
|
+
/** @deprecated use `DeploymentStreamMessageFunction$Outbound` instead. */
|
|
2737
|
+
type Outbound = DeploymentStreamMessageFunction$Outbound;
|
|
2738
|
+
}
|
|
2739
|
+
export declare function deploymentStreamMessageFunctionToJSON(deploymentStreamMessageFunction: DeploymentStreamMessageFunction): string;
|
|
2740
|
+
export declare function deploymentStreamMessageFunctionFromJSON(jsonString: string): SafeParseResult<DeploymentStreamMessageFunction, SDKValidationError>;
|
|
2741
|
+
/** @internal */
|
|
2742
|
+
export declare const DeploymentStreamMessageToolCalls$inboundSchema: z.ZodType<DeploymentStreamMessageToolCalls, z.ZodTypeDef, unknown>;
|
|
2743
|
+
/** @internal */
|
|
2744
|
+
export type DeploymentStreamMessageToolCalls$Outbound = {
|
|
2745
|
+
id?: string | undefined;
|
|
2746
|
+
index?: number | undefined;
|
|
2747
|
+
type: string;
|
|
2748
|
+
function: DeploymentStreamMessageFunction$Outbound;
|
|
2749
|
+
};
|
|
2750
|
+
/** @internal */
|
|
2751
|
+
export declare const DeploymentStreamMessageToolCalls$outboundSchema: z.ZodType<DeploymentStreamMessageToolCalls$Outbound, z.ZodTypeDef, DeploymentStreamMessageToolCalls>;
|
|
2752
|
+
/**
|
|
2753
|
+
* @internal
|
|
2754
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2755
|
+
*/
|
|
2756
|
+
export declare namespace DeploymentStreamMessageToolCalls$ {
|
|
2757
|
+
/** @deprecated use `DeploymentStreamMessageToolCalls$inboundSchema` instead. */
|
|
2758
|
+
const inboundSchema: z.ZodType<DeploymentStreamMessageToolCalls, z.ZodTypeDef, unknown>;
|
|
2759
|
+
/** @deprecated use `DeploymentStreamMessageToolCalls$outboundSchema` instead. */
|
|
2760
|
+
const outboundSchema: z.ZodType<DeploymentStreamMessageToolCalls$Outbound, z.ZodTypeDef, DeploymentStreamMessageToolCalls>;
|
|
2761
|
+
/** @deprecated use `DeploymentStreamMessageToolCalls$Outbound` instead. */
|
|
2762
|
+
type Outbound = DeploymentStreamMessageToolCalls$Outbound;
|
|
2763
|
+
}
|
|
2764
|
+
export declare function deploymentStreamMessageToolCallsToJSON(deploymentStreamMessageToolCalls: DeploymentStreamMessageToolCalls): string;
|
|
2765
|
+
export declare function deploymentStreamMessageToolCallsFromJSON(jsonString: string): SafeParseResult<DeploymentStreamMessageToolCalls, SDKValidationError>;
|
|
2766
|
+
/** @internal */
|
|
2767
|
+
export declare const DeploymentStreamMessage1$inboundSchema: z.ZodType<DeploymentStreamMessage1, z.ZodTypeDef, unknown>;
|
|
2768
|
+
/** @internal */
|
|
2769
|
+
export type DeploymentStreamMessage1$Outbound = {
|
|
2770
|
+
role: string;
|
|
2771
|
+
content?: string | null | undefined;
|
|
2772
|
+
tool_calls: Array<DeploymentStreamMessageToolCalls$Outbound>;
|
|
2773
|
+
};
|
|
2774
|
+
/** @internal */
|
|
2775
|
+
export declare const DeploymentStreamMessage1$outboundSchema: z.ZodType<DeploymentStreamMessage1$Outbound, z.ZodTypeDef, DeploymentStreamMessage1>;
|
|
2776
|
+
/**
|
|
2777
|
+
* @internal
|
|
2778
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2779
|
+
*/
|
|
2780
|
+
export declare namespace DeploymentStreamMessage1$ {
|
|
2781
|
+
/** @deprecated use `DeploymentStreamMessage1$inboundSchema` instead. */
|
|
2782
|
+
const inboundSchema: z.ZodType<DeploymentStreamMessage1, z.ZodTypeDef, unknown>;
|
|
2783
|
+
/** @deprecated use `DeploymentStreamMessage1$outboundSchema` instead. */
|
|
2784
|
+
const outboundSchema: z.ZodType<DeploymentStreamMessage1$Outbound, z.ZodTypeDef, DeploymentStreamMessage1>;
|
|
2785
|
+
/** @deprecated use `DeploymentStreamMessage1$Outbound` instead. */
|
|
2786
|
+
type Outbound = DeploymentStreamMessage1$Outbound;
|
|
2787
|
+
}
|
|
2788
|
+
export declare function deploymentStreamMessage1ToJSON(deploymentStreamMessage1: DeploymentStreamMessage1): string;
|
|
2789
|
+
export declare function deploymentStreamMessage1FromJSON(jsonString: string): SafeParseResult<DeploymentStreamMessage1, SDKValidationError>;
|
|
2790
|
+
/** @internal */
|
|
2791
|
+
export declare const DeploymentStreamMessage$inboundSchema: z.ZodType<DeploymentStreamMessage, z.ZodTypeDef, unknown>;
|
|
2792
|
+
/** @internal */
|
|
2793
|
+
export type DeploymentStreamMessage$Outbound = DeploymentStreamMessage2$Outbound | DeploymentStreamMessage3$Outbound | DeploymentStreamMessage1$Outbound;
|
|
2794
|
+
/** @internal */
|
|
2795
|
+
export declare const DeploymentStreamMessage$outboundSchema: z.ZodType<DeploymentStreamMessage$Outbound, z.ZodTypeDef, DeploymentStreamMessage>;
|
|
2796
|
+
/**
|
|
2797
|
+
* @internal
|
|
2798
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2799
|
+
*/
|
|
2800
|
+
export declare namespace DeploymentStreamMessage$ {
|
|
2801
|
+
/** @deprecated use `DeploymentStreamMessage$inboundSchema` instead. */
|
|
2802
|
+
const inboundSchema: z.ZodType<DeploymentStreamMessage, z.ZodTypeDef, unknown>;
|
|
2803
|
+
/** @deprecated use `DeploymentStreamMessage$outboundSchema` instead. */
|
|
2804
|
+
const outboundSchema: z.ZodType<DeploymentStreamMessage$Outbound, z.ZodTypeDef, DeploymentStreamMessage>;
|
|
2805
|
+
/** @deprecated use `DeploymentStreamMessage$Outbound` instead. */
|
|
2806
|
+
type Outbound = DeploymentStreamMessage$Outbound;
|
|
2807
|
+
}
|
|
2808
|
+
export declare function deploymentStreamMessageToJSON(deploymentStreamMessage: DeploymentStreamMessage): string;
|
|
2809
|
+
export declare function deploymentStreamMessageFromJSON(jsonString: string): SafeParseResult<DeploymentStreamMessage, SDKValidationError>;
|
|
2810
|
+
/** @internal */
|
|
2811
|
+
export declare const DeploymentStreamChoices$inboundSchema: z.ZodType<DeploymentStreamChoices, z.ZodTypeDef, unknown>;
|
|
2812
|
+
/** @internal */
|
|
2813
|
+
export type DeploymentStreamChoices$Outbound = {
|
|
2814
|
+
index: number;
|
|
2815
|
+
message?: DeploymentStreamMessage2$Outbound | DeploymentStreamMessage3$Outbound | DeploymentStreamMessage1$Outbound | undefined;
|
|
2816
|
+
finish_reason?: string | null | undefined;
|
|
2817
|
+
};
|
|
2818
|
+
/** @internal */
|
|
2819
|
+
export declare const DeploymentStreamChoices$outboundSchema: z.ZodType<DeploymentStreamChoices$Outbound, z.ZodTypeDef, DeploymentStreamChoices>;
|
|
2820
|
+
/**
|
|
2821
|
+
* @internal
|
|
2822
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2823
|
+
*/
|
|
2824
|
+
export declare namespace DeploymentStreamChoices$ {
|
|
2825
|
+
/** @deprecated use `DeploymentStreamChoices$inboundSchema` instead. */
|
|
2826
|
+
const inboundSchema: z.ZodType<DeploymentStreamChoices, z.ZodTypeDef, unknown>;
|
|
2827
|
+
/** @deprecated use `DeploymentStreamChoices$outboundSchema` instead. */
|
|
2828
|
+
const outboundSchema: z.ZodType<DeploymentStreamChoices$Outbound, z.ZodTypeDef, DeploymentStreamChoices>;
|
|
2829
|
+
/** @deprecated use `DeploymentStreamChoices$Outbound` instead. */
|
|
2830
|
+
type Outbound = DeploymentStreamChoices$Outbound;
|
|
2831
|
+
}
|
|
2832
|
+
export declare function deploymentStreamChoicesToJSON(deploymentStreamChoices: DeploymentStreamChoices): string;
|
|
2833
|
+
export declare function deploymentStreamChoicesFromJSON(jsonString: string): SafeParseResult<DeploymentStreamChoices, SDKValidationError>;
|
|
2834
|
+
/** @internal */
|
|
2835
|
+
export declare const DeploymentStreamDeploymentsMetadata$inboundSchema: z.ZodType<DeploymentStreamDeploymentsMetadata, z.ZodTypeDef, unknown>;
|
|
2836
|
+
/** @internal */
|
|
2837
|
+
export type DeploymentStreamDeploymentsMetadata$Outbound = {
|
|
2838
|
+
file_name: string;
|
|
2839
|
+
page_number: number | null;
|
|
2840
|
+
file_type: string;
|
|
2841
|
+
rerank_score?: number | undefined;
|
|
2842
|
+
search_score: number;
|
|
2843
|
+
};
|
|
2844
|
+
/** @internal */
|
|
2845
|
+
export declare const DeploymentStreamDeploymentsMetadata$outboundSchema: z.ZodType<DeploymentStreamDeploymentsMetadata$Outbound, z.ZodTypeDef, DeploymentStreamDeploymentsMetadata>;
|
|
2846
|
+
/**
|
|
2847
|
+
* @internal
|
|
2848
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2849
|
+
*/
|
|
2850
|
+
export declare namespace DeploymentStreamDeploymentsMetadata$ {
|
|
2851
|
+
/** @deprecated use `DeploymentStreamDeploymentsMetadata$inboundSchema` instead. */
|
|
2852
|
+
const inboundSchema: z.ZodType<DeploymentStreamDeploymentsMetadata, z.ZodTypeDef, unknown>;
|
|
2853
|
+
/** @deprecated use `DeploymentStreamDeploymentsMetadata$outboundSchema` instead. */
|
|
2854
|
+
const outboundSchema: z.ZodType<DeploymentStreamDeploymentsMetadata$Outbound, z.ZodTypeDef, DeploymentStreamDeploymentsMetadata>;
|
|
2855
|
+
/** @deprecated use `DeploymentStreamDeploymentsMetadata$Outbound` instead. */
|
|
2856
|
+
type Outbound = DeploymentStreamDeploymentsMetadata$Outbound;
|
|
2857
|
+
}
|
|
2858
|
+
export declare function deploymentStreamDeploymentsMetadataToJSON(deploymentStreamDeploymentsMetadata: DeploymentStreamDeploymentsMetadata): string;
|
|
2859
|
+
export declare function deploymentStreamDeploymentsMetadataFromJSON(jsonString: string): SafeParseResult<DeploymentStreamDeploymentsMetadata, SDKValidationError>;
|
|
2860
|
+
/** @internal */
|
|
2861
|
+
export declare const DeploymentStreamRetrievals$inboundSchema: z.ZodType<DeploymentStreamRetrievals, z.ZodTypeDef, unknown>;
|
|
2862
|
+
/** @internal */
|
|
2863
|
+
export type DeploymentStreamRetrievals$Outbound = {
|
|
2864
|
+
document: string;
|
|
2865
|
+
metadata: DeploymentStreamDeploymentsMetadata$Outbound;
|
|
2866
|
+
};
|
|
2867
|
+
/** @internal */
|
|
2868
|
+
export declare const DeploymentStreamRetrievals$outboundSchema: z.ZodType<DeploymentStreamRetrievals$Outbound, z.ZodTypeDef, DeploymentStreamRetrievals>;
|
|
2869
|
+
/**
|
|
2870
|
+
* @internal
|
|
2871
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2872
|
+
*/
|
|
2873
|
+
export declare namespace DeploymentStreamRetrievals$ {
|
|
2874
|
+
/** @deprecated use `DeploymentStreamRetrievals$inboundSchema` instead. */
|
|
2875
|
+
const inboundSchema: z.ZodType<DeploymentStreamRetrievals, z.ZodTypeDef, unknown>;
|
|
2876
|
+
/** @deprecated use `DeploymentStreamRetrievals$outboundSchema` instead. */
|
|
2877
|
+
const outboundSchema: z.ZodType<DeploymentStreamRetrievals$Outbound, z.ZodTypeDef, DeploymentStreamRetrievals>;
|
|
2878
|
+
/** @deprecated use `DeploymentStreamRetrievals$Outbound` instead. */
|
|
2879
|
+
type Outbound = DeploymentStreamRetrievals$Outbound;
|
|
2880
|
+
}
|
|
2881
|
+
export declare function deploymentStreamRetrievalsToJSON(deploymentStreamRetrievals: DeploymentStreamRetrievals): string;
|
|
2882
|
+
export declare function deploymentStreamRetrievalsFromJSON(jsonString: string): SafeParseResult<DeploymentStreamRetrievals, SDKValidationError>;
|
|
2883
|
+
/** @internal */
|
|
2884
|
+
export declare const DeploymentStreamData$inboundSchema: z.ZodType<DeploymentStreamData, z.ZodTypeDef, unknown>;
|
|
2885
|
+
/** @internal */
|
|
2886
|
+
export type DeploymentStreamData$Outbound = {
|
|
2887
|
+
id?: string | undefined;
|
|
2888
|
+
created?: string | undefined;
|
|
2889
|
+
object?: string | undefined;
|
|
2890
|
+
model?: string | undefined;
|
|
2891
|
+
provider?: string | undefined;
|
|
2892
|
+
is_final?: boolean | undefined;
|
|
2893
|
+
integration_id?: string | undefined;
|
|
2894
|
+
finalized?: string | undefined;
|
|
2895
|
+
system_fingerprint?: string | null | undefined;
|
|
2896
|
+
choices?: Array<DeploymentStreamChoices$Outbound> | undefined;
|
|
2897
|
+
retrievals?: Array<DeploymentStreamRetrievals$Outbound> | undefined;
|
|
2898
|
+
provider_response?: any | undefined;
|
|
2899
|
+
};
|
|
2900
|
+
/** @internal */
|
|
2901
|
+
export declare const DeploymentStreamData$outboundSchema: z.ZodType<DeploymentStreamData$Outbound, z.ZodTypeDef, DeploymentStreamData>;
|
|
2902
|
+
/**
|
|
2903
|
+
* @internal
|
|
2904
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2905
|
+
*/
|
|
2906
|
+
export declare namespace DeploymentStreamData$ {
|
|
2907
|
+
/** @deprecated use `DeploymentStreamData$inboundSchema` instead. */
|
|
2908
|
+
const inboundSchema: z.ZodType<DeploymentStreamData, z.ZodTypeDef, unknown>;
|
|
2909
|
+
/** @deprecated use `DeploymentStreamData$outboundSchema` instead. */
|
|
2910
|
+
const outboundSchema: z.ZodType<DeploymentStreamData$Outbound, z.ZodTypeDef, DeploymentStreamData>;
|
|
2911
|
+
/** @deprecated use `DeploymentStreamData$Outbound` instead. */
|
|
2912
|
+
type Outbound = DeploymentStreamData$Outbound;
|
|
2913
|
+
}
|
|
2914
|
+
export declare function deploymentStreamDataToJSON(deploymentStreamData: DeploymentStreamData): string;
|
|
2915
|
+
export declare function deploymentStreamDataFromJSON(jsonString: string): SafeParseResult<DeploymentStreamData, SDKValidationError>;
|
|
2916
|
+
/** @internal */
|
|
2917
|
+
export declare const DeploymentStreamResponseBody$inboundSchema: z.ZodType<DeploymentStreamResponseBody, z.ZodTypeDef, unknown>;
|
|
2918
|
+
/** @internal */
|
|
2919
|
+
export type DeploymentStreamResponseBody$Outbound = {
|
|
2920
|
+
data?: DeploymentStreamData$Outbound | undefined;
|
|
2921
|
+
};
|
|
2922
|
+
/** @internal */
|
|
2923
|
+
export declare const DeploymentStreamResponseBody$outboundSchema: z.ZodType<DeploymentStreamResponseBody$Outbound, z.ZodTypeDef, DeploymentStreamResponseBody>;
|
|
2924
|
+
/**
|
|
2925
|
+
* @internal
|
|
2926
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
2927
|
+
*/
|
|
2928
|
+
export declare namespace DeploymentStreamResponseBody$ {
|
|
2929
|
+
/** @deprecated use `DeploymentStreamResponseBody$inboundSchema` instead. */
|
|
2930
|
+
const inboundSchema: z.ZodType<DeploymentStreamResponseBody, z.ZodTypeDef, unknown>;
|
|
2931
|
+
/** @deprecated use `DeploymentStreamResponseBody$outboundSchema` instead. */
|
|
2932
|
+
const outboundSchema: z.ZodType<DeploymentStreamResponseBody$Outbound, z.ZodTypeDef, DeploymentStreamResponseBody>;
|
|
2933
|
+
/** @deprecated use `DeploymentStreamResponseBody$Outbound` instead. */
|
|
2934
|
+
type Outbound = DeploymentStreamResponseBody$Outbound;
|
|
2935
|
+
}
|
|
2936
|
+
export declare function deploymentStreamResponseBodyToJSON(deploymentStreamResponseBody: DeploymentStreamResponseBody): string;
|
|
2937
|
+
export declare function deploymentStreamResponseBodyFromJSON(jsonString: string): SafeParseResult<DeploymentStreamResponseBody, SDKValidationError>;
|
|
2938
|
+
//# sourceMappingURL=deploymentstream.d.ts.map
|