@orq-ai/node 3.1.10 → 3.1.11

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.
Files changed (98) hide show
  1. package/bin/mcp-server.js +2896 -804
  2. package/bin/mcp-server.js.map +18 -18
  3. package/jsr.json +1 -1
  4. package/lib/config.d.ts +3 -3
  5. package/lib/config.js +3 -3
  6. package/mcp-server/cli/start/command.d.ts.map +1 -1
  7. package/mcp-server/cli/start/command.js +9 -0
  8. package/mcp-server/cli/start/command.js.map +1 -1
  9. package/mcp-server/cli/start/impl.d.ts +1 -0
  10. package/mcp-server/cli/start/impl.d.ts.map +1 -1
  11. package/mcp-server/cli/start/impl.js +2 -0
  12. package/mcp-server/cli/start/impl.js.map +1 -1
  13. package/mcp-server/mcp-server.js +1 -1
  14. package/mcp-server/server.d.ts +1 -0
  15. package/mcp-server/server.d.ts.map +1 -1
  16. package/mcp-server/server.js +3 -2
  17. package/mcp-server/server.js.map +1 -1
  18. package/mcp-server/tools.d.ts +1 -1
  19. package/mcp-server/tools.d.ts.map +1 -1
  20. package/mcp-server/tools.js +4 -1
  21. package/mcp-server/tools.js.map +1 -1
  22. package/models/components/deployments.d.ts +1716 -400
  23. package/models/components/deployments.d.ts.map +1 -1
  24. package/models/components/deployments.js +1617 -357
  25. package/models/components/deployments.js.map +1 -1
  26. package/models/operations/createcontact.js +2 -2
  27. package/models/operations/createprompt.d.ts +16 -16
  28. package/models/operations/createprompt.d.ts.map +1 -1
  29. package/models/operations/createprompt.js +26 -27
  30. package/models/operations/createprompt.js.map +1 -1
  31. package/models/operations/deploymentcreatemetric.d.ts +790 -132
  32. package/models/operations/deploymentcreatemetric.d.ts.map +1 -1
  33. package/models/operations/deploymentcreatemetric.js +770 -143
  34. package/models/operations/deploymentcreatemetric.js.map +1 -1
  35. package/models/operations/deploymentgetconfig.d.ts +1819 -503
  36. package/models/operations/deploymentgetconfig.d.ts.map +1 -1
  37. package/models/operations/deploymentgetconfig.js +1786 -521
  38. package/models/operations/deploymentgetconfig.js.map +1 -1
  39. package/models/operations/deploymentinvoke.d.ts +17 -17
  40. package/models/operations/deploymentinvoke.d.ts.map +1 -1
  41. package/models/operations/deploymentinvoke.js +20 -20
  42. package/models/operations/deploymentinvoke.js.map +1 -1
  43. package/models/operations/deploymentstream.d.ts +1742 -426
  44. package/models/operations/deploymentstream.d.ts.map +1 -1
  45. package/models/operations/deploymentstream.js +1643 -386
  46. package/models/operations/deploymentstream.js.map +1 -1
  47. package/models/operations/fileget.js +2 -2
  48. package/models/operations/filelist.js +2 -2
  49. package/models/operations/fileupload.js +2 -2
  50. package/package.json +1 -1
  51. package/packages/orq-rc/jsr.json +1 -1
  52. package/packages/orq-rc/package-lock.json +2 -2
  53. package/packages/orq-rc/package.json +1 -1
  54. package/packages/orq-rc/src/lib/config.ts +3 -3
  55. package/packages/orq-rc/src/mcp-server/cli/start/command.ts +9 -0
  56. package/packages/orq-rc/src/mcp-server/cli/start/impl.ts +3 -0
  57. package/packages/orq-rc/src/mcp-server/mcp-server.ts +1 -1
  58. package/packages/orq-rc/src/mcp-server/server.ts +10 -2
  59. package/packages/orq-rc/src/mcp-server/tools.ts +5 -0
  60. package/packages/orq-rc/src/models/components/deployments.ts +3134 -673
  61. package/packages/orq-rc/src/models/operations/bulkcreatedatapoints.ts +2 -2
  62. package/packages/orq-rc/src/models/operations/createcontact.ts +2 -2
  63. package/packages/orq-rc/src/models/operations/createdataset.ts +2 -2
  64. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +2 -2
  65. package/packages/orq-rc/src/models/operations/createprompt.ts +8 -8
  66. package/packages/orq-rc/src/models/operations/deploymentcreatemetric.ts +1799 -334
  67. package/packages/orq-rc/src/models/operations/deploymentgetconfig.ts +3619 -1003
  68. package/packages/orq-rc/src/models/operations/deploymentinvoke.ts +32 -28
  69. package/packages/orq-rc/src/models/operations/fileget.ts +3 -2
  70. package/packages/orq-rc/src/models/operations/filelist.ts +3 -2
  71. package/packages/orq-rc/src/models/operations/fileupload.ts +4 -2
  72. package/packages/orq-rc/src/models/operations/getallprompts.ts +8 -8
  73. package/packages/orq-rc/src/models/operations/getoneprompt.ts +8 -8
  74. package/packages/orq-rc/src/models/operations/getpromptversion.ts +8 -8
  75. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +2 -2
  76. package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -2
  77. package/packages/orq-rc/src/models/operations/listpromptversions.ts +8 -8
  78. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +2 -2
  79. package/packages/orq-rc/src/models/operations/retrievedataset.ts +2 -2
  80. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +2 -2
  81. package/packages/orq-rc/src/models/operations/updatedataset.ts +2 -2
  82. package/packages/orq-rc/src/models/operations/updateprompt.ts +50 -46
  83. package/src/lib/config.ts +3 -3
  84. package/src/mcp-server/cli/start/command.ts +9 -0
  85. package/src/mcp-server/cli/start/impl.ts +3 -0
  86. package/src/mcp-server/mcp-server.ts +1 -1
  87. package/src/mcp-server/server.ts +10 -2
  88. package/src/mcp-server/tools.ts +5 -0
  89. package/src/models/components/deployments.ts +3133 -635
  90. package/src/models/operations/createcontact.ts +2 -2
  91. package/src/models/operations/createprompt.ts +34 -30
  92. package/src/models/operations/deploymentcreatemetric.ts +1859 -324
  93. package/src/models/operations/deploymentgetconfig.ts +3442 -886
  94. package/src/models/operations/deploymentinvoke.ts +32 -28
  95. package/src/models/operations/deploymentstream.ts +3661 -763
  96. package/src/models/operations/fileget.ts +2 -2
  97. package/src/models/operations/filelist.ts +2 -2
  98. package/src/models/operations/fileupload.ts +2 -2
@@ -8,269 +8,693 @@ export type DeploymentStreamGlobals = {
8
8
  };
9
9
  export type DeploymentStreamInputs = string | number | boolean;
10
10
  /**
11
- * The role of the prompt message
11
+ * The role of the messages author, in this case tool.
12
12
  */
13
- export declare const DeploymentStreamRole: {
14
- readonly System: "system";
15
- readonly Assistant: "assistant";
16
- readonly User: "user";
17
- readonly Exception: "exception";
13
+ export declare const DeploymentStreamPrefixMessagesDeploymentsRequestRequestBody5Role: {
18
14
  readonly Tool: "tool";
19
- readonly Prompt: "prompt";
20
- readonly Correction: "correction";
21
- readonly ExpectedOutput: "expected_output";
22
15
  };
23
16
  /**
24
- * The role of the prompt message
17
+ * The role of the messages author, in this case tool.
25
18
  */
26
- export type DeploymentStreamRole = ClosedEnum<typeof DeploymentStreamRole>;
27
- export declare const DeploymentStream2DeploymentsType: {
28
- readonly ImageUrl: "image_url";
29
- };
30
- export type DeploymentStream2DeploymentsType = ClosedEnum<typeof DeploymentStream2DeploymentsType>;
31
- export type DeploymentStream2ImageUrl = {
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 = {
32
25
  /**
33
- * Either a URL of the image or the base64 encoded data URI.
26
+ * The role of the messages author, in this case tool.
34
27
  */
35
- url: string;
28
+ role: DeploymentStreamPrefixMessagesDeploymentsRequestRequestBody5Role;
36
29
  /**
37
- * Specifies the detail level of the image. Currently only supported with OpenAI models
30
+ * The contents of the tool message.
38
31
  */
39
- detail?: string | undefined;
32
+ content: string | Array<string>;
33
+ /**
34
+ * Tool call that this message is responding to.
35
+ */
36
+ toolCallId: string;
40
37
  };
41
38
  /**
42
- * The image part of the prompt message. Only supported with vision models.
39
+ * The type of the content part.
43
40
  */
44
- export type DeploymentStream22 = {
45
- type: DeploymentStream2DeploymentsType;
46
- imageUrl: DeploymentStream2ImageUrl;
41
+ export declare const DeploymentStream2DeploymentsRequestRequestBodyPrefixMessagesType: {
42
+ readonly Refusal: "refusal";
47
43
  };
48
- export declare const DeploymentStream2Type: {
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: {
49
62
  readonly Text: "text";
50
63
  };
51
- export type DeploymentStream2Type = ClosedEnum<typeof DeploymentStream2Type>;
52
64
  /**
53
- * Text content part of a prompt message
65
+ * The type of the content part.
54
66
  */
55
- export type DeploymentStream21 = {
56
- type: DeploymentStream2Type;
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
+ */
57
76
  text: string;
58
77
  };
59
- export type DeploymentStreamContent2 = DeploymentStream21 | DeploymentStream22;
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
+ };
60
102
  /**
61
- * The contents of the user message. Either the text content of the message or an array of content parts with a defined type, each can be of type `text` or `image_url` when passing in images. You can pass multiple images by adding multiple `image_url` content parts.
103
+ * The type of the tool. Currently, only `5` is supported.
62
104
  */
63
- export type DeploymentStreamContent = string | Array<DeploymentStream21 | DeploymentStream22>;
64
- export declare const DeploymentStreamType: {
105
+ export declare const DeploymentStreamPrefixMessagesType: {
65
106
  readonly Function: "function";
66
107
  };
67
- export type DeploymentStreamType = ClosedEnum<typeof DeploymentStreamType>;
68
- export type DeploymentStreamFunction = {
69
- name: string;
108
+ /**
109
+ * The type of the tool. Currently, only `5` is supported.
110
+ */
111
+ export type DeploymentStreamPrefixMessagesType = ClosedEnum<typeof DeploymentStreamPrefixMessagesType>;
112
+ export type PrefixMessagesFunction = {
70
113
  /**
71
- * JSON string arguments for the functions
114
+ * The name of the function to call.
72
115
  */
73
- arguments: string;
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;
74
121
  };
75
- export type DeploymentStreamToolCalls = {
76
- id?: string | undefined;
77
- index?: number | undefined;
78
- type: DeploymentStreamType;
79
- function: DeploymentStreamFunction;
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 `5` is supported.
129
+ */
130
+ type: DeploymentStreamPrefixMessagesType;
131
+ function: PrefixMessagesFunction;
80
132
  };
81
- export type DeploymentStreamPrefixMessages = {
133
+ export type PrefixMessagesAssistantMessage = {
82
134
  /**
83
- * The role of the prompt message
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.
84
140
  */
85
- role: DeploymentStreamRole;
141
+ refusal?: string | null | undefined;
86
142
  /**
87
- * The contents of the user message. Either the text content of the message or an array of content parts with a defined type, each can be of type `text` or `image_url` when passing in images. You can pass multiple images by adding multiple `image_url` content parts.
143
+ * The role of the messages author, in this case `assistant`.
88
144
  */
89
- content: string | Array<DeploymentStream21 | DeploymentStream22>;
90
- toolCalls?: Array<DeploymentStreamToolCalls> | undefined;
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;
91
158
  };
92
159
  /**
93
- * The role of the prompt message
160
+ * The role of the messages author, in this case `user`.
94
161
  */
95
- export declare const DeploymentStreamDeploymentsRole: {
96
- readonly System: "system";
97
- readonly Assistant: "assistant";
162
+ export declare const DeploymentStreamPrefixMessagesDeploymentsRequestRole: {
98
163
  readonly User: "user";
99
- readonly Exception: "exception";
100
- readonly Tool: "tool";
101
- readonly Prompt: "prompt";
102
- readonly Correction: "correction";
103
- readonly ExpectedOutput: "expected_output";
104
164
  };
105
165
  /**
106
- * The role of the prompt message
166
+ * The role of the messages author, in this case `user`.
107
167
  */
108
- export type DeploymentStreamDeploymentsRole = ClosedEnum<typeof DeploymentStreamDeploymentsRole>;
109
- export declare const DeploymentStream2DeploymentsRequestRequestBodyType: {
110
- readonly ImageUrl: "image_url";
168
+ export type DeploymentStreamPrefixMessagesDeploymentsRequestRole = ClosedEnum<typeof DeploymentStreamPrefixMessagesDeploymentsRequestRole>;
169
+ export declare const DeploymentStream2DeploymentsRequestType: {
170
+ readonly InputAudio: "input_audio";
111
171
  };
112
- export type DeploymentStream2DeploymentsRequestRequestBodyType = ClosedEnum<typeof DeploymentStream2DeploymentsRequestRequestBodyType>;
113
- export type DeploymentStream2ImageUrlInput = {
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 = {
114
185
  /**
115
- * Either a URL of the image or the base64 encoded data URI.
186
+ * Base64 encoded audio data.
116
187
  */
117
- url: string;
188
+ data: string;
118
189
  /**
119
- * Specifies the detail level of the image. Currently only supported with OpenAI models
190
+ * The format of the encoded audio data. Currently supports `wav` and `mp3`.
120
191
  */
121
- detail?: string | undefined;
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";
122
200
  };
201
+ export type DeploymentStream2DeploymentsType = ClosedEnum<typeof DeploymentStream2DeploymentsType>;
123
202
  /**
124
- * The image part of the prompt message. Only supported with vision models.
203
+ * Specifies the detail level of the image.
125
204
  */
126
- export type DeploymentStream22Input = {
127
- type: DeploymentStream2DeploymentsRequestRequestBodyType;
128
- imageUrl: DeploymentStream2ImageUrlInput;
205
+ export declare const DeploymentStream2Detail: {
206
+ readonly Low: "low";
207
+ readonly High: "high";
208
+ readonly Auto: "auto";
129
209
  };
130
- export declare const DeploymentStream2DeploymentsRequestType: {
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: {
131
229
  readonly Text: "text";
132
230
  };
133
- export type DeploymentStream2DeploymentsRequestType = ClosedEnum<typeof DeploymentStream2DeploymentsRequestType>;
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;
134
237
  /**
135
- * Text content part of a prompt message
238
+ * The contents of the user message.
136
239
  */
137
- export type DeploymentStream2Deployments1 = {
138
- type: DeploymentStream2DeploymentsRequestType;
139
- text: string;
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>;
140
254
  };
141
- export type DeploymentStreamContent2Input = DeploymentStream2Deployments1 | DeploymentStream22Input;
142
255
  /**
143
- * The contents of the user message. Either the text content of the message or an array of content parts with a defined type, each can be of type `text` or `image_url` when passing in images. You can pass multiple images by adding multiple `image_url` content parts.
256
+ * The role of the messages author, in this case `system`.
144
257
  */
145
- export type DeploymentStreamContentInput = string | Array<DeploymentStream2Deployments1 | DeploymentStream22Input>;
146
- export declare const DeploymentStreamDeploymentsType: {
147
- readonly Function: "function";
258
+ export declare const DeploymentStreamPrefixMessagesDeploymentsRole: {
259
+ readonly System: "system";
148
260
  };
149
- export type DeploymentStreamDeploymentsType = ClosedEnum<typeof DeploymentStreamDeploymentsType>;
150
- export type DeploymentStreamDeploymentsFunction = {
151
- name: string;
261
+ /**
262
+ * The role of the messages author, in this case `system`.
263
+ */
264
+ export type DeploymentStreamPrefixMessagesDeploymentsRole = ClosedEnum<typeof DeploymentStreamPrefixMessagesDeploymentsRole>;
265
+ export type PrefixMessagesSystemMessage = {
152
266
  /**
153
- * JSON string arguments for the functions
267
+ * The role of the messages author, in this case `system`.
154
268
  */
155
- arguments: string;
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;
156
278
  };
157
- export type DeploymentStreamDeploymentsToolCalls = {
158
- id?: string | undefined;
159
- index?: number | undefined;
160
- type: DeploymentStreamDeploymentsType;
161
- function: DeploymentStreamDeploymentsFunction;
279
+ /**
280
+ * The role of the messages author, in this case `developer`.
281
+ */
282
+ export declare const DeploymentStreamPrefixMessagesRole: {
283
+ readonly Developer: "developer";
162
284
  };
163
- export type DeploymentStreamMessages = {
285
+ /**
286
+ * The role of the messages author, in this case `developer`.
287
+ */
288
+ export type DeploymentStreamPrefixMessagesRole = ClosedEnum<typeof DeploymentStreamPrefixMessagesRole>;
289
+ export type PrefixMessagesDeveloperMessage = {
164
290
  /**
165
- * The role of the prompt message
291
+ * The role of the messages author, in this case `developer`.
292
+ */
293
+ role: DeploymentStreamPrefixMessagesRole;
294
+ /**
295
+ * The contents of the developer message.
166
296
  */
167
- role: DeploymentStreamDeploymentsRole;
297
+ content: string;
168
298
  /**
169
- * The contents of the user message. Either the text content of the message or an array of content parts with a defined type, each can be of type `text` or `image_url` when passing in images. You can pass multiple images by adding multiple `image_url` content parts.
299
+ * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
170
300
  */
171
- content: string | Array<DeploymentStream2Deployments1 | DeploymentStream22Input>;
172
- toolCalls?: Array<DeploymentStreamDeploymentsToolCalls> | undefined;
301
+ name?: string | undefined;
173
302
  };
303
+ export type DeploymentStreamPrefixMessages = PrefixMessagesDeveloperMessage | PrefixMessagesSystemMessage | PrefixMessagesUserMessage | PrefixMessagesToolMessage | PrefixMessagesAssistantMessage;
174
304
  /**
175
- * Metadata about the document
305
+ * The role of the messages author, in this case tool.
176
306
  */
177
- export type DeploymentStreamMetadata = {
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 = {
178
319
  /**
179
- * Name of the file the text is from.
320
+ * The role of the messages author, in this case tool.
180
321
  */
181
- fileName?: string | undefined;
322
+ role: DeploymentStreamMessagesDeploymentsRequestRequestBody5Role;
182
323
  /**
183
- * Content type of the file the text is from.
324
+ * The contents of the tool message.
184
325
  */
185
- fileType?: string | undefined;
326
+ content: string | Array<string>;
186
327
  /**
187
- * The page number the text is from.
328
+ * Tool call that this message is responding to.
188
329
  */
189
- pageNumber?: number | undefined;
330
+ toolCallId: string;
190
331
  };
191
- export type DeploymentStreamDocuments = {
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 = {
192
343
  /**
193
- * The text content of the document
344
+ * The type of the content part.
194
345
  */
195
- text: string;
346
+ type: DeploymentStream2DeploymentsRequestRequestBodyMessages4ContentType;
196
347
  /**
197
- * Metadata about the document
348
+ * The refusal message generated by the model.
198
349
  */
199
- metadata?: DeploymentStreamMetadata | undefined;
350
+ refusal: string;
200
351
  };
201
- export type DeploymentStreamInvokeOptions = {
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 = {
202
363
  /**
203
- * Whether to include the retrieved knowledge chunks in the response.
364
+ * The type of the content part.
204
365
  */
205
- includeRetrievals?: boolean | undefined;
366
+ type: DeploymentStream2DeploymentsRequestRequestBodyMessages4Type;
367
+ /**
368
+ * The text content.
369
+ */
370
+ text: string;
206
371
  };
207
- export type DeploymentStreamRequestBody = {
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 = {
208
391
  /**
209
- * The deployment key to invoke
392
+ * Unique identifier for a previous audio response from the model.
210
393
  */
211
- key: string;
394
+ id: string;
395
+ };
396
+ /**
397
+ * The type of the tool. Currently, only `5` is supported.
398
+ */
399
+ export declare const DeploymentStreamMessagesType: {
400
+ readonly Function: "function";
401
+ };
402
+ /**
403
+ * The type of the tool. Currently, only `5` is supported.
404
+ */
405
+ export type DeploymentStreamMessagesType = ClosedEnum<typeof DeploymentStreamMessagesType>;
406
+ export type DeploymentStreamMessagesFunction = {
212
407
  /**
213
- * 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.
408
+ * The name of the function to call.
214
409
  */
215
- inputs?: {
216
- [k: string]: string | number | boolean;
217
- } | undefined;
410
+ name?: string | undefined;
218
411
  /**
219
- * 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.
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.
220
413
  */
221
- context?: {
222
- [k: string]: any;
223
- } | undefined;
414
+ arguments?: string | undefined;
415
+ };
416
+ export type DeploymentStreamMessagesToolCalls = {
224
417
  /**
225
- * A list of messages to include after the `System` message, but before the `User` and `Assistant` pairs configured in your deployment.
418
+ * The ID of the tool call.
226
419
  */
227
- prefixMessages?: Array<DeploymentStreamPrefixMessages> | undefined;
420
+ id: string;
228
421
  /**
229
- * A list of messages to send to the deployment.
422
+ * The type of the tool. Currently, only `5` 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.
230
430
  */
231
- messages?: Array<DeploymentStreamMessages> | undefined;
431
+ content?: string | Array<DeploymentStream2DeploymentsTextContentPart | DeploymentStream2DeploymentsRefusalContentPart> | undefined;
232
432
  /**
233
- * A list of file IDs that are associated with the deployment request.
433
+ * The refusal message by the assistant.
234
434
  */
235
- fileIds?: Array<string> | undefined;
435
+ refusal?: string | null | undefined;
236
436
  /**
237
- * Key-value pairs that you want to attach to the log generated by this request.
437
+ * The role of the messages author, in this case `assistant`.
238
438
  */
239
- metadata?: {
240
- [k: string]: any;
241
- } | undefined;
439
+ role: DeploymentStreamMessagesDeploymentsRequestRequestBodyRole;
242
440
  /**
243
- * 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.
441
+ * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
244
442
  */
245
- extraParams?: {
246
- [k: string]: any;
247
- } | undefined;
443
+ name?: string | undefined;
248
444
  /**
249
- * 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.
445
+ * Data about a previous audio response from the model.
250
446
  */
251
- documents?: Array<DeploymentStreamDocuments> | undefined;
252
- invokeOptions?: DeploymentStreamInvokeOptions | undefined;
447
+ audio?: DeploymentStreamMessagesAudio | null | undefined;
448
+ /**
449
+ * The tool calls generated by the model, such as function calls.
450
+ */
451
+ toolCalls?: Array<DeploymentStreamMessagesToolCalls> | undefined;
253
452
  };
254
453
  /**
255
- * Indicates the type of model used to generate the response
454
+ * The role of the messages author, in this case `user`.
256
455
  */
257
- export declare const DeploymentStreamObject: {
258
- readonly Chat: "chat";
259
- readonly Completion: "completion";
260
- readonly Image: "image";
261
- readonly Vision: "vision";
456
+ export declare const DeploymentStreamMessagesDeploymentsRequestRole: {
457
+ readonly User: "user";
262
458
  };
263
459
  /**
264
- * Indicates the type of model used to generate the response
460
+ * The role of the messages author, in this case `user`.
265
461
  */
266
- export type DeploymentStreamObject = ClosedEnum<typeof DeploymentStreamObject>;
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>;
267
467
  /**
268
- * The provider used to generate the response
468
+ * The format of the encoded audio data. Currently supports `wav` and `mp3`.
269
469
  */
270
- export declare const DeploymentStreamProvider: {
271
- readonly Cohere: "cohere";
272
- readonly Openai: "openai";
273
- readonly Anthropic: "anthropic";
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";
274
698
  readonly Huggingface: "huggingface";
275
699
  readonly Replicate: "replicate";
276
700
  readonly Google: "google";
@@ -519,385 +943,1239 @@ export declare namespace DeploymentStreamInputs$ {
519
943
  /** @deprecated use `DeploymentStreamInputs$Outbound` instead. */
520
944
  type Outbound = DeploymentStreamInputs$Outbound;
521
945
  }
522
- export declare function deploymentStreamInputsToJSON(deploymentStreamInputs: DeploymentStreamInputs): string;
523
- export declare function deploymentStreamInputsFromJSON(jsonString: string): SafeParseResult<DeploymentStreamInputs, SDKValidationError>;
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>;
524
1661
  /** @internal */
525
- export declare const DeploymentStreamRole$inboundSchema: z.ZodNativeEnum<typeof DeploymentStreamRole>;
1662
+ export declare const DeploymentStreamMessagesDeploymentsRequestRequestBody5Role$inboundSchema: z.ZodNativeEnum<typeof DeploymentStreamMessagesDeploymentsRequestRequestBody5Role>;
526
1663
  /** @internal */
527
- export declare const DeploymentStreamRole$outboundSchema: z.ZodNativeEnum<typeof DeploymentStreamRole>;
1664
+ export declare const DeploymentStreamMessagesDeploymentsRequestRequestBody5Role$outboundSchema: z.ZodNativeEnum<typeof DeploymentStreamMessagesDeploymentsRequestRequestBody5Role>;
528
1665
  /**
529
1666
  * @internal
530
1667
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
531
1668
  */
532
- export declare namespace DeploymentStreamRole$ {
533
- /** @deprecated use `DeploymentStreamRole$inboundSchema` instead. */
1669
+ export declare namespace DeploymentStreamMessagesDeploymentsRequestRequestBody5Role$ {
1670
+ /** @deprecated use `DeploymentStreamMessagesDeploymentsRequestRequestBody5Role$inboundSchema` instead. */
534
1671
  const inboundSchema: z.ZodNativeEnum<{
535
- readonly System: "system";
536
- readonly Assistant: "assistant";
537
- readonly User: "user";
538
- readonly Exception: "exception";
539
1672
  readonly Tool: "tool";
540
- readonly Prompt: "prompt";
541
- readonly Correction: "correction";
542
- readonly ExpectedOutput: "expected_output";
543
1673
  }>;
544
- /** @deprecated use `DeploymentStreamRole$outboundSchema` instead. */
1674
+ /** @deprecated use `DeploymentStreamMessagesDeploymentsRequestRequestBody5Role$outboundSchema` instead. */
545
1675
  const outboundSchema: z.ZodNativeEnum<{
546
- readonly System: "system";
547
- readonly Assistant: "assistant";
548
- readonly User: "user";
549
- readonly Exception: "exception";
550
1676
  readonly Tool: "tool";
551
- readonly Prompt: "prompt";
552
- readonly Correction: "correction";
553
- readonly ExpectedOutput: "expected_output";
554
1677
  }>;
555
1678
  }
556
1679
  /** @internal */
557
- export declare const DeploymentStream2DeploymentsType$inboundSchema: z.ZodNativeEnum<typeof DeploymentStream2DeploymentsType>;
1680
+ export declare const DeploymentStreamMessagesDeploymentsRequestContent$inboundSchema: z.ZodType<DeploymentStreamMessagesDeploymentsRequestContent, z.ZodTypeDef, unknown>;
558
1681
  /** @internal */
559
- export declare const DeploymentStream2DeploymentsType$outboundSchema: z.ZodNativeEnum<typeof DeploymentStream2DeploymentsType>;
1682
+ export type DeploymentStreamMessagesDeploymentsRequestContent$Outbound = string | Array<string>;
1683
+ /** @internal */
1684
+ export declare const DeploymentStreamMessagesDeploymentsRequestContent$outboundSchema: z.ZodType<DeploymentStreamMessagesDeploymentsRequestContent$Outbound, z.ZodTypeDef, DeploymentStreamMessagesDeploymentsRequestContent>;
560
1685
  /**
561
1686
  * @internal
562
1687
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
563
1688
  */
564
- export declare namespace DeploymentStream2DeploymentsType$ {
565
- /** @deprecated use `DeploymentStream2DeploymentsType$inboundSchema` instead. */
566
- const inboundSchema: z.ZodNativeEnum<{
567
- readonly ImageUrl: "image_url";
568
- }>;
569
- /** @deprecated use `DeploymentStream2DeploymentsType$outboundSchema` instead. */
570
- const outboundSchema: z.ZodNativeEnum<{
571
- readonly ImageUrl: "image_url";
572
- }>;
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;
573
1696
  }
1697
+ export declare function deploymentStreamMessagesDeploymentsRequestContentToJSON(deploymentStreamMessagesDeploymentsRequestContent: DeploymentStreamMessagesDeploymentsRequestContent): string;
1698
+ export declare function deploymentStreamMessagesDeploymentsRequestContentFromJSON(jsonString: string): SafeParseResult<DeploymentStreamMessagesDeploymentsRequestContent, SDKValidationError>;
574
1699
  /** @internal */
575
- export declare const DeploymentStream2ImageUrl$inboundSchema: z.ZodType<DeploymentStream2ImageUrl, z.ZodTypeDef, unknown>;
1700
+ export declare const DeploymentStreamMessagesToolMessage$inboundSchema: z.ZodType<DeploymentStreamMessagesToolMessage, z.ZodTypeDef, unknown>;
576
1701
  /** @internal */
577
- export type DeploymentStream2ImageUrl$Outbound = {
578
- url: string;
579
- detail?: string | undefined;
1702
+ export type DeploymentStreamMessagesToolMessage$Outbound = {
1703
+ role: string;
1704
+ content: string | Array<string>;
1705
+ tool_call_id: string;
580
1706
  };
581
1707
  /** @internal */
582
- export declare const DeploymentStream2ImageUrl$outboundSchema: z.ZodType<DeploymentStream2ImageUrl$Outbound, z.ZodTypeDef, DeploymentStream2ImageUrl>;
1708
+ export declare const DeploymentStreamMessagesToolMessage$outboundSchema: z.ZodType<DeploymentStreamMessagesToolMessage$Outbound, z.ZodTypeDef, DeploymentStreamMessagesToolMessage>;
583
1709
  /**
584
1710
  * @internal
585
1711
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
586
1712
  */
587
- export declare namespace DeploymentStream2ImageUrl$ {
588
- /** @deprecated use `DeploymentStream2ImageUrl$inboundSchema` instead. */
589
- const inboundSchema: z.ZodType<DeploymentStream2ImageUrl, z.ZodTypeDef, unknown>;
590
- /** @deprecated use `DeploymentStream2ImageUrl$outboundSchema` instead. */
591
- const outboundSchema: z.ZodType<DeploymentStream2ImageUrl$Outbound, z.ZodTypeDef, DeploymentStream2ImageUrl>;
592
- /** @deprecated use `DeploymentStream2ImageUrl$Outbound` instead. */
593
- type Outbound = DeploymentStream2ImageUrl$Outbound;
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;
594
1720
  }
595
- export declare function deploymentStream2ImageUrlToJSON(deploymentStream2ImageUrl: DeploymentStream2ImageUrl): string;
596
- export declare function deploymentStream2ImageUrlFromJSON(jsonString: string): SafeParseResult<DeploymentStream2ImageUrl, SDKValidationError>;
1721
+ export declare function deploymentStreamMessagesToolMessageToJSON(deploymentStreamMessagesToolMessage: DeploymentStreamMessagesToolMessage): string;
1722
+ export declare function deploymentStreamMessagesToolMessageFromJSON(jsonString: string): SafeParseResult<DeploymentStreamMessagesToolMessage, SDKValidationError>;
597
1723
  /** @internal */
598
- export declare const DeploymentStream22$inboundSchema: z.ZodType<DeploymentStream22, z.ZodTypeDef, unknown>;
1724
+ export declare const DeploymentStream2DeploymentsRequestRequestBodyMessages4ContentType$inboundSchema: z.ZodNativeEnum<typeof DeploymentStream2DeploymentsRequestRequestBodyMessages4ContentType>;
599
1725
  /** @internal */
600
- export type DeploymentStream22$Outbound = {
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 = {
601
1745
  type: string;
602
- image_url: DeploymentStream2ImageUrl$Outbound;
1746
+ refusal: string;
603
1747
  };
604
1748
  /** @internal */
605
- export declare const DeploymentStream22$outboundSchema: z.ZodType<DeploymentStream22$Outbound, z.ZodTypeDef, DeploymentStream22>;
1749
+ export declare const DeploymentStream2DeploymentsRefusalContentPart$outboundSchema: z.ZodType<DeploymentStream2DeploymentsRefusalContentPart$Outbound, z.ZodTypeDef, DeploymentStream2DeploymentsRefusalContentPart>;
606
1750
  /**
607
1751
  * @internal
608
1752
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
609
1753
  */
610
- export declare namespace DeploymentStream22$ {
611
- /** @deprecated use `DeploymentStream22$inboundSchema` instead. */
612
- const inboundSchema: z.ZodType<DeploymentStream22, z.ZodTypeDef, unknown>;
613
- /** @deprecated use `DeploymentStream22$outboundSchema` instead. */
614
- const outboundSchema: z.ZodType<DeploymentStream22$Outbound, z.ZodTypeDef, DeploymentStream22>;
615
- /** @deprecated use `DeploymentStream22$Outbound` instead. */
616
- type Outbound = DeploymentStream22$Outbound;
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;
617
1761
  }
618
- export declare function deploymentStream22ToJSON(deploymentStream22: DeploymentStream22): string;
619
- export declare function deploymentStream22FromJSON(jsonString: string): SafeParseResult<DeploymentStream22, SDKValidationError>;
1762
+ export declare function deploymentStream2DeploymentsRefusalContentPartToJSON(deploymentStream2DeploymentsRefusalContentPart: DeploymentStream2DeploymentsRefusalContentPart): string;
1763
+ export declare function deploymentStream2DeploymentsRefusalContentPartFromJSON(jsonString: string): SafeParseResult<DeploymentStream2DeploymentsRefusalContentPart, SDKValidationError>;
620
1764
  /** @internal */
621
- export declare const DeploymentStream2Type$inboundSchema: z.ZodNativeEnum<typeof DeploymentStream2Type>;
1765
+ export declare const DeploymentStream2DeploymentsRequestRequestBodyMessages4Type$inboundSchema: z.ZodNativeEnum<typeof DeploymentStream2DeploymentsRequestRequestBodyMessages4Type>;
622
1766
  /** @internal */
623
- export declare const DeploymentStream2Type$outboundSchema: z.ZodNativeEnum<typeof DeploymentStream2Type>;
1767
+ export declare const DeploymentStream2DeploymentsRequestRequestBodyMessages4Type$outboundSchema: z.ZodNativeEnum<typeof DeploymentStream2DeploymentsRequestRequestBodyMessages4Type>;
624
1768
  /**
625
1769
  * @internal
626
1770
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
627
1771
  */
628
- export declare namespace DeploymentStream2Type$ {
629
- /** @deprecated use `DeploymentStream2Type$inboundSchema` instead. */
1772
+ export declare namespace DeploymentStream2DeploymentsRequestRequestBodyMessages4Type$ {
1773
+ /** @deprecated use `DeploymentStream2DeploymentsRequestRequestBodyMessages4Type$inboundSchema` instead. */
630
1774
  const inboundSchema: z.ZodNativeEnum<{
631
1775
  readonly Text: "text";
632
1776
  }>;
633
- /** @deprecated use `DeploymentStream2Type$outboundSchema` instead. */
1777
+ /** @deprecated use `DeploymentStream2DeploymentsRequestRequestBodyMessages4Type$outboundSchema` instead. */
634
1778
  const outboundSchema: z.ZodNativeEnum<{
635
1779
  readonly Text: "text";
636
1780
  }>;
637
1781
  }
638
1782
  /** @internal */
639
- export declare const DeploymentStream21$inboundSchema: z.ZodType<DeploymentStream21, z.ZodTypeDef, unknown>;
1783
+ export declare const DeploymentStream2DeploymentsTextContentPart$inboundSchema: z.ZodType<DeploymentStream2DeploymentsTextContentPart, z.ZodTypeDef, unknown>;
640
1784
  /** @internal */
641
- export type DeploymentStream21$Outbound = {
1785
+ export type DeploymentStream2DeploymentsTextContentPart$Outbound = {
642
1786
  type: string;
643
1787
  text: string;
644
1788
  };
645
1789
  /** @internal */
646
- export declare const DeploymentStream21$outboundSchema: z.ZodType<DeploymentStream21$Outbound, z.ZodTypeDef, DeploymentStream21>;
1790
+ export declare const DeploymentStream2DeploymentsTextContentPart$outboundSchema: z.ZodType<DeploymentStream2DeploymentsTextContentPart$Outbound, z.ZodTypeDef, DeploymentStream2DeploymentsTextContentPart>;
647
1791
  /**
648
1792
  * @internal
649
1793
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
650
1794
  */
651
- export declare namespace DeploymentStream21$ {
652
- /** @deprecated use `DeploymentStream21$inboundSchema` instead. */
653
- const inboundSchema: z.ZodType<DeploymentStream21, z.ZodTypeDef, unknown>;
654
- /** @deprecated use `DeploymentStream21$outboundSchema` instead. */
655
- const outboundSchema: z.ZodType<DeploymentStream21$Outbound, z.ZodTypeDef, DeploymentStream21>;
656
- /** @deprecated use `DeploymentStream21$Outbound` instead. */
657
- type Outbound = DeploymentStream21$Outbound;
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;
658
1802
  }
659
- export declare function deploymentStream21ToJSON(deploymentStream21: DeploymentStream21): string;
660
- export declare function deploymentStream21FromJSON(jsonString: string): SafeParseResult<DeploymentStream21, SDKValidationError>;
1803
+ export declare function deploymentStream2DeploymentsTextContentPartToJSON(deploymentStream2DeploymentsTextContentPart: DeploymentStream2DeploymentsTextContentPart): string;
1804
+ export declare function deploymentStream2DeploymentsTextContentPartFromJSON(jsonString: string): SafeParseResult<DeploymentStream2DeploymentsTextContentPart, SDKValidationError>;
661
1805
  /** @internal */
662
- export declare const DeploymentStreamContent2$inboundSchema: z.ZodType<DeploymentStreamContent2, z.ZodTypeDef, unknown>;
1806
+ export declare const DeploymentStreamContentDeploymentsRequestRequestBody2$inboundSchema: z.ZodType<DeploymentStreamContentDeploymentsRequestRequestBody2, z.ZodTypeDef, unknown>;
663
1807
  /** @internal */
664
- export type DeploymentStreamContent2$Outbound = DeploymentStream21$Outbound | DeploymentStream22$Outbound;
1808
+ export type DeploymentStreamContentDeploymentsRequestRequestBody2$Outbound = DeploymentStream2DeploymentsTextContentPart$Outbound | DeploymentStream2DeploymentsRefusalContentPart$Outbound;
665
1809
  /** @internal */
666
- export declare const DeploymentStreamContent2$outboundSchema: z.ZodType<DeploymentStreamContent2$Outbound, z.ZodTypeDef, DeploymentStreamContent2>;
1810
+ export declare const DeploymentStreamContentDeploymentsRequestRequestBody2$outboundSchema: z.ZodType<DeploymentStreamContentDeploymentsRequestRequestBody2$Outbound, z.ZodTypeDef, DeploymentStreamContentDeploymentsRequestRequestBody2>;
667
1811
  /**
668
1812
  * @internal
669
1813
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
670
1814
  */
671
- export declare namespace DeploymentStreamContent2$ {
672
- /** @deprecated use `DeploymentStreamContent2$inboundSchema` instead. */
673
- const inboundSchema: z.ZodType<DeploymentStreamContent2, z.ZodTypeDef, unknown>;
674
- /** @deprecated use `DeploymentStreamContent2$outboundSchema` instead. */
675
- const outboundSchema: z.ZodType<DeploymentStreamContent2$Outbound, z.ZodTypeDef, DeploymentStreamContent2>;
676
- /** @deprecated use `DeploymentStreamContent2$Outbound` instead. */
677
- type Outbound = DeploymentStreamContent2$Outbound;
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
+ }>;
678
1862
  }
679
- export declare function deploymentStreamContent2ToJSON(deploymentStreamContent2: DeploymentStreamContent2): string;
680
- export declare function deploymentStreamContent2FromJSON(jsonString: string): SafeParseResult<DeploymentStreamContent2, SDKValidationError>;
681
1863
  /** @internal */
682
- export declare const DeploymentStreamContent$inboundSchema: z.ZodType<DeploymentStreamContent, z.ZodTypeDef, unknown>;
1864
+ export declare const DeploymentStreamMessagesAudio$inboundSchema: z.ZodType<DeploymentStreamMessagesAudio, z.ZodTypeDef, unknown>;
683
1865
  /** @internal */
684
- export type DeploymentStreamContent$Outbound = string | Array<DeploymentStream21$Outbound | DeploymentStream22$Outbound>;
1866
+ export type DeploymentStreamMessagesAudio$Outbound = {
1867
+ id: string;
1868
+ };
685
1869
  /** @internal */
686
- export declare const DeploymentStreamContent$outboundSchema: z.ZodType<DeploymentStreamContent$Outbound, z.ZodTypeDef, DeploymentStreamContent>;
1870
+ export declare const DeploymentStreamMessagesAudio$outboundSchema: z.ZodType<DeploymentStreamMessagesAudio$Outbound, z.ZodTypeDef, DeploymentStreamMessagesAudio>;
687
1871
  /**
688
1872
  * @internal
689
1873
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
690
1874
  */
691
- export declare namespace DeploymentStreamContent$ {
692
- /** @deprecated use `DeploymentStreamContent$inboundSchema` instead. */
693
- const inboundSchema: z.ZodType<DeploymentStreamContent, z.ZodTypeDef, unknown>;
694
- /** @deprecated use `DeploymentStreamContent$outboundSchema` instead. */
695
- const outboundSchema: z.ZodType<DeploymentStreamContent$Outbound, z.ZodTypeDef, DeploymentStreamContent>;
696
- /** @deprecated use `DeploymentStreamContent$Outbound` instead. */
697
- type Outbound = DeploymentStreamContent$Outbound;
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;
698
1882
  }
699
- export declare function deploymentStreamContentToJSON(deploymentStreamContent: DeploymentStreamContent): string;
700
- export declare function deploymentStreamContentFromJSON(jsonString: string): SafeParseResult<DeploymentStreamContent, SDKValidationError>;
1883
+ export declare function deploymentStreamMessagesAudioToJSON(deploymentStreamMessagesAudio: DeploymentStreamMessagesAudio): string;
1884
+ export declare function deploymentStreamMessagesAudioFromJSON(jsonString: string): SafeParseResult<DeploymentStreamMessagesAudio, SDKValidationError>;
701
1885
  /** @internal */
702
- export declare const DeploymentStreamType$inboundSchema: z.ZodNativeEnum<typeof DeploymentStreamType>;
1886
+ export declare const DeploymentStreamMessagesType$inboundSchema: z.ZodNativeEnum<typeof DeploymentStreamMessagesType>;
703
1887
  /** @internal */
704
- export declare const DeploymentStreamType$outboundSchema: z.ZodNativeEnum<typeof DeploymentStreamType>;
1888
+ export declare const DeploymentStreamMessagesType$outboundSchema: z.ZodNativeEnum<typeof DeploymentStreamMessagesType>;
705
1889
  /**
706
1890
  * @internal
707
1891
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
708
1892
  */
709
- export declare namespace DeploymentStreamType$ {
710
- /** @deprecated use `DeploymentStreamType$inboundSchema` instead. */
1893
+ export declare namespace DeploymentStreamMessagesType$ {
1894
+ /** @deprecated use `DeploymentStreamMessagesType$inboundSchema` instead. */
711
1895
  const inboundSchema: z.ZodNativeEnum<{
712
1896
  readonly Function: "function";
713
1897
  }>;
714
- /** @deprecated use `DeploymentStreamType$outboundSchema` instead. */
1898
+ /** @deprecated use `DeploymentStreamMessagesType$outboundSchema` instead. */
715
1899
  const outboundSchema: z.ZodNativeEnum<{
716
1900
  readonly Function: "function";
717
1901
  }>;
718
1902
  }
719
1903
  /** @internal */
720
- export declare const DeploymentStreamFunction$inboundSchema: z.ZodType<DeploymentStreamFunction, z.ZodTypeDef, unknown>;
1904
+ export declare const DeploymentStreamMessagesFunction$inboundSchema: z.ZodType<DeploymentStreamMessagesFunction, z.ZodTypeDef, unknown>;
721
1905
  /** @internal */
722
- export type DeploymentStreamFunction$Outbound = {
723
- name: string;
724
- arguments: string;
1906
+ export type DeploymentStreamMessagesFunction$Outbound = {
1907
+ name?: string | undefined;
1908
+ arguments?: string | undefined;
725
1909
  };
726
1910
  /** @internal */
727
- export declare const DeploymentStreamFunction$outboundSchema: z.ZodType<DeploymentStreamFunction$Outbound, z.ZodTypeDef, DeploymentStreamFunction>;
1911
+ export declare const DeploymentStreamMessagesFunction$outboundSchema: z.ZodType<DeploymentStreamMessagesFunction$Outbound, z.ZodTypeDef, DeploymentStreamMessagesFunction>;
728
1912
  /**
729
1913
  * @internal
730
1914
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
731
1915
  */
732
- export declare namespace DeploymentStreamFunction$ {
733
- /** @deprecated use `DeploymentStreamFunction$inboundSchema` instead. */
734
- const inboundSchema: z.ZodType<DeploymentStreamFunction, z.ZodTypeDef, unknown>;
735
- /** @deprecated use `DeploymentStreamFunction$outboundSchema` instead. */
736
- const outboundSchema: z.ZodType<DeploymentStreamFunction$Outbound, z.ZodTypeDef, DeploymentStreamFunction>;
737
- /** @deprecated use `DeploymentStreamFunction$Outbound` instead. */
738
- type Outbound = DeploymentStreamFunction$Outbound;
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;
739
1923
  }
740
- export declare function deploymentStreamFunctionToJSON(deploymentStreamFunction: DeploymentStreamFunction): string;
741
- export declare function deploymentStreamFunctionFromJSON(jsonString: string): SafeParseResult<DeploymentStreamFunction, SDKValidationError>;
1924
+ export declare function deploymentStreamMessagesFunctionToJSON(deploymentStreamMessagesFunction: DeploymentStreamMessagesFunction): string;
1925
+ export declare function deploymentStreamMessagesFunctionFromJSON(jsonString: string): SafeParseResult<DeploymentStreamMessagesFunction, SDKValidationError>;
742
1926
  /** @internal */
743
- export declare const DeploymentStreamToolCalls$inboundSchema: z.ZodType<DeploymentStreamToolCalls, z.ZodTypeDef, unknown>;
1927
+ export declare const DeploymentStreamMessagesToolCalls$inboundSchema: z.ZodType<DeploymentStreamMessagesToolCalls, z.ZodTypeDef, unknown>;
744
1928
  /** @internal */
745
- export type DeploymentStreamToolCalls$Outbound = {
746
- id?: string | undefined;
747
- index?: number | undefined;
1929
+ export type DeploymentStreamMessagesToolCalls$Outbound = {
1930
+ id: string;
748
1931
  type: string;
749
- function: DeploymentStreamFunction$Outbound;
1932
+ function: DeploymentStreamMessagesFunction$Outbound;
750
1933
  };
751
1934
  /** @internal */
752
- export declare const DeploymentStreamToolCalls$outboundSchema: z.ZodType<DeploymentStreamToolCalls$Outbound, z.ZodTypeDef, DeploymentStreamToolCalls>;
1935
+ export declare const DeploymentStreamMessagesToolCalls$outboundSchema: z.ZodType<DeploymentStreamMessagesToolCalls$Outbound, z.ZodTypeDef, DeploymentStreamMessagesToolCalls>;
753
1936
  /**
754
1937
  * @internal
755
1938
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
756
1939
  */
757
- export declare namespace DeploymentStreamToolCalls$ {
758
- /** @deprecated use `DeploymentStreamToolCalls$inboundSchema` instead. */
759
- const inboundSchema: z.ZodType<DeploymentStreamToolCalls, z.ZodTypeDef, unknown>;
760
- /** @deprecated use `DeploymentStreamToolCalls$outboundSchema` instead. */
761
- const outboundSchema: z.ZodType<DeploymentStreamToolCalls$Outbound, z.ZodTypeDef, DeploymentStreamToolCalls>;
762
- /** @deprecated use `DeploymentStreamToolCalls$Outbound` instead. */
763
- type Outbound = DeploymentStreamToolCalls$Outbound;
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;
764
1947
  }
765
- export declare function deploymentStreamToolCallsToJSON(deploymentStreamToolCalls: DeploymentStreamToolCalls): string;
766
- export declare function deploymentStreamToolCallsFromJSON(jsonString: string): SafeParseResult<DeploymentStreamToolCalls, SDKValidationError>;
1948
+ export declare function deploymentStreamMessagesToolCallsToJSON(deploymentStreamMessagesToolCalls: DeploymentStreamMessagesToolCalls): string;
1949
+ export declare function deploymentStreamMessagesToolCallsFromJSON(jsonString: string): SafeParseResult<DeploymentStreamMessagesToolCalls, SDKValidationError>;
767
1950
  /** @internal */
768
- export declare const DeploymentStreamPrefixMessages$inboundSchema: z.ZodType<DeploymentStreamPrefixMessages, z.ZodTypeDef, unknown>;
1951
+ export declare const DeploymentStreamMessagesAssistantMessage$inboundSchema: z.ZodType<DeploymentStreamMessagesAssistantMessage, z.ZodTypeDef, unknown>;
769
1952
  /** @internal */
770
- export type DeploymentStreamPrefixMessages$Outbound = {
1953
+ export type DeploymentStreamMessagesAssistantMessage$Outbound = {
1954
+ content?: string | Array<DeploymentStream2DeploymentsTextContentPart$Outbound | DeploymentStream2DeploymentsRefusalContentPart$Outbound> | undefined;
1955
+ refusal?: string | null | undefined;
771
1956
  role: string;
772
- content: string | Array<DeploymentStream21$Outbound | DeploymentStream22$Outbound>;
773
- tool_calls?: Array<DeploymentStreamToolCalls$Outbound> | undefined;
1957
+ name?: string | undefined;
1958
+ audio?: DeploymentStreamMessagesAudio$Outbound | null | undefined;
1959
+ tool_calls?: Array<DeploymentStreamMessagesToolCalls$Outbound> | undefined;
774
1960
  };
775
1961
  /** @internal */
776
- export declare const DeploymentStreamPrefixMessages$outboundSchema: z.ZodType<DeploymentStreamPrefixMessages$Outbound, z.ZodTypeDef, DeploymentStreamPrefixMessages>;
1962
+ export declare const DeploymentStreamMessagesAssistantMessage$outboundSchema: z.ZodType<DeploymentStreamMessagesAssistantMessage$Outbound, z.ZodTypeDef, DeploymentStreamMessagesAssistantMessage>;
777
1963
  /**
778
1964
  * @internal
779
1965
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
780
1966
  */
781
- export declare namespace DeploymentStreamPrefixMessages$ {
782
- /** @deprecated use `DeploymentStreamPrefixMessages$inboundSchema` instead. */
783
- const inboundSchema: z.ZodType<DeploymentStreamPrefixMessages, z.ZodTypeDef, unknown>;
784
- /** @deprecated use `DeploymentStreamPrefixMessages$outboundSchema` instead. */
785
- const outboundSchema: z.ZodType<DeploymentStreamPrefixMessages$Outbound, z.ZodTypeDef, DeploymentStreamPrefixMessages>;
786
- /** @deprecated use `DeploymentStreamPrefixMessages$Outbound` instead. */
787
- type Outbound = DeploymentStreamPrefixMessages$Outbound;
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;
788
1974
  }
789
- export declare function deploymentStreamPrefixMessagesToJSON(deploymentStreamPrefixMessages: DeploymentStreamPrefixMessages): string;
790
- export declare function deploymentStreamPrefixMessagesFromJSON(jsonString: string): SafeParseResult<DeploymentStreamPrefixMessages, SDKValidationError>;
1975
+ export declare function deploymentStreamMessagesAssistantMessageToJSON(deploymentStreamMessagesAssistantMessage: DeploymentStreamMessagesAssistantMessage): string;
1976
+ export declare function deploymentStreamMessagesAssistantMessageFromJSON(jsonString: string): SafeParseResult<DeploymentStreamMessagesAssistantMessage, SDKValidationError>;
791
1977
  /** @internal */
792
- export declare const DeploymentStreamDeploymentsRole$inboundSchema: z.ZodNativeEnum<typeof DeploymentStreamDeploymentsRole>;
1978
+ export declare const DeploymentStreamMessagesDeploymentsRequestRole$inboundSchema: z.ZodNativeEnum<typeof DeploymentStreamMessagesDeploymentsRequestRole>;
793
1979
  /** @internal */
794
- export declare const DeploymentStreamDeploymentsRole$outboundSchema: z.ZodNativeEnum<typeof DeploymentStreamDeploymentsRole>;
1980
+ export declare const DeploymentStreamMessagesDeploymentsRequestRole$outboundSchema: z.ZodNativeEnum<typeof DeploymentStreamMessagesDeploymentsRequestRole>;
795
1981
  /**
796
1982
  * @internal
797
1983
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
798
1984
  */
799
- export declare namespace DeploymentStreamDeploymentsRole$ {
800
- /** @deprecated use `DeploymentStreamDeploymentsRole$inboundSchema` instead. */
1985
+ export declare namespace DeploymentStreamMessagesDeploymentsRequestRole$ {
1986
+ /** @deprecated use `DeploymentStreamMessagesDeploymentsRequestRole$inboundSchema` instead. */
801
1987
  const inboundSchema: z.ZodNativeEnum<{
802
- readonly System: "system";
803
- readonly Assistant: "assistant";
804
1988
  readonly User: "user";
805
- readonly Exception: "exception";
806
- readonly Tool: "tool";
807
- readonly Prompt: "prompt";
808
- readonly Correction: "correction";
809
- readonly ExpectedOutput: "expected_output";
810
1989
  }>;
811
- /** @deprecated use `DeploymentStreamDeploymentsRole$outboundSchema` instead. */
1990
+ /** @deprecated use `DeploymentStreamMessagesDeploymentsRequestRole$outboundSchema` instead. */
812
1991
  const outboundSchema: z.ZodNativeEnum<{
813
- readonly System: "system";
814
- readonly Assistant: "assistant";
815
1992
  readonly User: "user";
816
- readonly Exception: "exception";
817
- readonly Tool: "tool";
818
- readonly Prompt: "prompt";
819
- readonly Correction: "correction";
820
- readonly ExpectedOutput: "expected_output";
821
1993
  }>;
822
1994
  }
823
1995
  /** @internal */
824
- export declare const DeploymentStream2DeploymentsRequestRequestBodyType$inboundSchema: z.ZodNativeEnum<typeof DeploymentStream2DeploymentsRequestRequestBodyType>;
1996
+ export declare const DeploymentStream2DeploymentsRequestRequestBodyMessages3ContentType$inboundSchema: z.ZodNativeEnum<typeof DeploymentStream2DeploymentsRequestRequestBodyMessages3ContentType>;
825
1997
  /** @internal */
826
- export declare const DeploymentStream2DeploymentsRequestRequestBodyType$outboundSchema: z.ZodNativeEnum<typeof DeploymentStream2DeploymentsRequestRequestBodyType>;
1998
+ export declare const DeploymentStream2DeploymentsRequestRequestBodyMessages3ContentType$outboundSchema: z.ZodNativeEnum<typeof DeploymentStream2DeploymentsRequestRequestBodyMessages3ContentType>;
827
1999
  /**
828
2000
  * @internal
829
2001
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
830
2002
  */
831
- export declare namespace DeploymentStream2DeploymentsRequestRequestBodyType$ {
832
- /** @deprecated use `DeploymentStream2DeploymentsRequestRequestBodyType$inboundSchema` instead. */
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. */
833
2089
  const inboundSchema: z.ZodNativeEnum<{
834
2090
  readonly ImageUrl: "image_url";
835
2091
  }>;
836
- /** @deprecated use `DeploymentStream2DeploymentsRequestRequestBodyType$outboundSchema` instead. */
2092
+ /** @deprecated use `DeploymentStream2DeploymentsRequestRequestBodyMessages3Type$outboundSchema` instead. */
837
2093
  const outboundSchema: z.ZodNativeEnum<{
838
2094
  readonly ImageUrl: "image_url";
839
2095
  }>;
840
2096
  }
841
2097
  /** @internal */
842
- export declare const DeploymentStream2ImageUrlInput$inboundSchema: z.ZodType<DeploymentStream2ImageUrlInput, z.ZodTypeDef, unknown>;
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>;
843
2121
  /** @internal */
844
- export type DeploymentStream2ImageUrlInput$Outbound = {
2122
+ export type DeploymentStream2DeploymentsImageUrl$Outbound = {
845
2123
  url: string;
846
2124
  detail?: string | undefined;
847
2125
  };
848
2126
  /** @internal */
849
- export declare const DeploymentStream2ImageUrlInput$outboundSchema: z.ZodType<DeploymentStream2ImageUrlInput$Outbound, z.ZodTypeDef, DeploymentStream2ImageUrlInput>;
2127
+ export declare const DeploymentStream2DeploymentsImageUrl$outboundSchema: z.ZodType<DeploymentStream2DeploymentsImageUrl$Outbound, z.ZodTypeDef, DeploymentStream2DeploymentsImageUrl>;
850
2128
  /**
851
2129
  * @internal
852
2130
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
853
2131
  */
854
- export declare namespace DeploymentStream2ImageUrlInput$ {
855
- /** @deprecated use `DeploymentStream2ImageUrlInput$inboundSchema` instead. */
856
- const inboundSchema: z.ZodType<DeploymentStream2ImageUrlInput, z.ZodTypeDef, unknown>;
857
- /** @deprecated use `DeploymentStream2ImageUrlInput$outboundSchema` instead. */
858
- const outboundSchema: z.ZodType<DeploymentStream2ImageUrlInput$Outbound, z.ZodTypeDef, DeploymentStream2ImageUrlInput>;
859
- /** @deprecated use `DeploymentStream2ImageUrlInput$Outbound` instead. */
860
- type Outbound = DeploymentStream2ImageUrlInput$Outbound;
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;
861
2139
  }
862
- export declare function deploymentStream2ImageUrlInputToJSON(deploymentStream2ImageUrlInput: DeploymentStream2ImageUrlInput): string;
863
- export declare function deploymentStream2ImageUrlInputFromJSON(jsonString: string): SafeParseResult<DeploymentStream2ImageUrlInput, SDKValidationError>;
2140
+ export declare function deploymentStream2DeploymentsImageUrlToJSON(deploymentStream2DeploymentsImageUrl: DeploymentStream2DeploymentsImageUrl): string;
2141
+ export declare function deploymentStream2DeploymentsImageUrlFromJSON(jsonString: string): SafeParseResult<DeploymentStream2DeploymentsImageUrl, SDKValidationError>;
864
2142
  /** @internal */
865
- export declare const DeploymentStream22Input$inboundSchema: z.ZodType<DeploymentStream22Input, z.ZodTypeDef, unknown>;
2143
+ export declare const DeploymentStream2Deployments2$inboundSchema: z.ZodType<DeploymentStream2Deployments2, z.ZodTypeDef, unknown>;
866
2144
  /** @internal */
867
- export type DeploymentStream22Input$Outbound = {
2145
+ export type DeploymentStream2Deployments2$Outbound = {
868
2146
  type: string;
869
- image_url: DeploymentStream2ImageUrlInput$Outbound;
2147
+ image_url: DeploymentStream2DeploymentsImageUrl$Outbound;
870
2148
  };
871
2149
  /** @internal */
872
- export declare const DeploymentStream22Input$outboundSchema: z.ZodType<DeploymentStream22Input$Outbound, z.ZodTypeDef, DeploymentStream22Input>;
2150
+ export declare const DeploymentStream2Deployments2$outboundSchema: z.ZodType<DeploymentStream2Deployments2$Outbound, z.ZodTypeDef, DeploymentStream2Deployments2>;
873
2151
  /**
874
2152
  * @internal
875
2153
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
876
2154
  */
877
- export declare namespace DeploymentStream22Input$ {
878
- /** @deprecated use `DeploymentStream22Input$inboundSchema` instead. */
879
- const inboundSchema: z.ZodType<DeploymentStream22Input, z.ZodTypeDef, unknown>;
880
- /** @deprecated use `DeploymentStream22Input$outboundSchema` instead. */
881
- const outboundSchema: z.ZodType<DeploymentStream22Input$Outbound, z.ZodTypeDef, DeploymentStream22Input>;
882
- /** @deprecated use `DeploymentStream22Input$Outbound` instead. */
883
- type Outbound = DeploymentStream22Input$Outbound;
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;
884
2162
  }
885
- export declare function deploymentStream22InputToJSON(deploymentStream22Input: DeploymentStream22Input): string;
886
- export declare function deploymentStream22InputFromJSON(jsonString: string): SafeParseResult<DeploymentStream22Input, SDKValidationError>;
2163
+ export declare function deploymentStream2Deployments2ToJSON(deploymentStream2Deployments2: DeploymentStream2Deployments2): string;
2164
+ export declare function deploymentStream2Deployments2FromJSON(jsonString: string): SafeParseResult<DeploymentStream2Deployments2, SDKValidationError>;
887
2165
  /** @internal */
888
- export declare const DeploymentStream2DeploymentsRequestType$inboundSchema: z.ZodNativeEnum<typeof DeploymentStream2DeploymentsRequestType>;
2166
+ export declare const DeploymentStream2DeploymentsRequestRequestBodyMessagesType$inboundSchema: z.ZodNativeEnum<typeof DeploymentStream2DeploymentsRequestRequestBodyMessagesType>;
889
2167
  /** @internal */
890
- export declare const DeploymentStream2DeploymentsRequestType$outboundSchema: z.ZodNativeEnum<typeof DeploymentStream2DeploymentsRequestType>;
2168
+ export declare const DeploymentStream2DeploymentsRequestRequestBodyMessagesType$outboundSchema: z.ZodNativeEnum<typeof DeploymentStream2DeploymentsRequestRequestBodyMessagesType>;
891
2169
  /**
892
2170
  * @internal
893
2171
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
894
2172
  */
895
- export declare namespace DeploymentStream2DeploymentsRequestType$ {
896
- /** @deprecated use `DeploymentStream2DeploymentsRequestType$inboundSchema` instead. */
2173
+ export declare namespace DeploymentStream2DeploymentsRequestRequestBodyMessagesType$ {
2174
+ /** @deprecated use `DeploymentStream2DeploymentsRequestRequestBodyMessagesType$inboundSchema` instead. */
897
2175
  const inboundSchema: z.ZodNativeEnum<{
898
2176
  readonly Text: "text";
899
2177
  }>;
900
- /** @deprecated use `DeploymentStream2DeploymentsRequestType$outboundSchema` instead. */
2178
+ /** @deprecated use `DeploymentStream2DeploymentsRequestRequestBodyMessagesType$outboundSchema` instead. */
901
2179
  const outboundSchema: z.ZodNativeEnum<{
902
2180
  readonly Text: "text";
903
2181
  }>;
@@ -926,119 +2204,157 @@ export declare namespace DeploymentStream2Deployments1$ {
926
2204
  export declare function deploymentStream2Deployments1ToJSON(deploymentStream2Deployments1: DeploymentStream2Deployments1): string;
927
2205
  export declare function deploymentStream2Deployments1FromJSON(jsonString: string): SafeParseResult<DeploymentStream2Deployments1, SDKValidationError>;
928
2206
  /** @internal */
929
- export declare const DeploymentStreamContent2Input$inboundSchema: z.ZodType<DeploymentStreamContent2Input, z.ZodTypeDef, unknown>;
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>;
930
2228
  /** @internal */
931
- export type DeploymentStreamContent2Input$Outbound = DeploymentStream2Deployments1$Outbound | DeploymentStream22Input$Outbound;
2229
+ export type DeploymentStreamMessagesContent$Outbound = string | Array<DeploymentStream2Deployments1$Outbound | DeploymentStream2Deployments2$Outbound | DeploymentStream2Deployments3$Outbound>;
932
2230
  /** @internal */
933
- export declare const DeploymentStreamContent2Input$outboundSchema: z.ZodType<DeploymentStreamContent2Input$Outbound, z.ZodTypeDef, DeploymentStreamContent2Input>;
2231
+ export declare const DeploymentStreamMessagesContent$outboundSchema: z.ZodType<DeploymentStreamMessagesContent$Outbound, z.ZodTypeDef, DeploymentStreamMessagesContent>;
934
2232
  /**
935
2233
  * @internal
936
2234
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
937
2235
  */
938
- export declare namespace DeploymentStreamContent2Input$ {
939
- /** @deprecated use `DeploymentStreamContent2Input$inboundSchema` instead. */
940
- const inboundSchema: z.ZodType<DeploymentStreamContent2Input, z.ZodTypeDef, unknown>;
941
- /** @deprecated use `DeploymentStreamContent2Input$outboundSchema` instead. */
942
- const outboundSchema: z.ZodType<DeploymentStreamContent2Input$Outbound, z.ZodTypeDef, DeploymentStreamContent2Input>;
943
- /** @deprecated use `DeploymentStreamContent2Input$Outbound` instead. */
944
- type Outbound = DeploymentStreamContent2Input$Outbound;
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;
945
2243
  }
946
- export declare function deploymentStreamContent2InputToJSON(deploymentStreamContent2Input: DeploymentStreamContent2Input): string;
947
- export declare function deploymentStreamContent2InputFromJSON(jsonString: string): SafeParseResult<DeploymentStreamContent2Input, SDKValidationError>;
2244
+ export declare function deploymentStreamMessagesContentToJSON(deploymentStreamMessagesContent: DeploymentStreamMessagesContent): string;
2245
+ export declare function deploymentStreamMessagesContentFromJSON(jsonString: string): SafeParseResult<DeploymentStreamMessagesContent, SDKValidationError>;
948
2246
  /** @internal */
949
- export declare const DeploymentStreamContentInput$inboundSchema: z.ZodType<DeploymentStreamContentInput, z.ZodTypeDef, unknown>;
2247
+ export declare const DeploymentStreamMessagesUserMessage$inboundSchema: z.ZodType<DeploymentStreamMessagesUserMessage, z.ZodTypeDef, unknown>;
950
2248
  /** @internal */
951
- export type DeploymentStreamContentInput$Outbound = string | Array<DeploymentStream2Deployments1$Outbound | DeploymentStream22Input$Outbound>;
2249
+ export type DeploymentStreamMessagesUserMessage$Outbound = {
2250
+ role: string;
2251
+ name?: string | undefined;
2252
+ content: string | Array<DeploymentStream2Deployments1$Outbound | DeploymentStream2Deployments2$Outbound | DeploymentStream2Deployments3$Outbound>;
2253
+ };
952
2254
  /** @internal */
953
- export declare const DeploymentStreamContentInput$outboundSchema: z.ZodType<DeploymentStreamContentInput$Outbound, z.ZodTypeDef, DeploymentStreamContentInput>;
2255
+ export declare const DeploymentStreamMessagesUserMessage$outboundSchema: z.ZodType<DeploymentStreamMessagesUserMessage$Outbound, z.ZodTypeDef, DeploymentStreamMessagesUserMessage>;
954
2256
  /**
955
2257
  * @internal
956
2258
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
957
2259
  */
958
- export declare namespace DeploymentStreamContentInput$ {
959
- /** @deprecated use `DeploymentStreamContentInput$inboundSchema` instead. */
960
- const inboundSchema: z.ZodType<DeploymentStreamContentInput, z.ZodTypeDef, unknown>;
961
- /** @deprecated use `DeploymentStreamContentInput$outboundSchema` instead. */
962
- const outboundSchema: z.ZodType<DeploymentStreamContentInput$Outbound, z.ZodTypeDef, DeploymentStreamContentInput>;
963
- /** @deprecated use `DeploymentStreamContentInput$Outbound` instead. */
964
- type Outbound = DeploymentStreamContentInput$Outbound;
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;
965
2267
  }
966
- export declare function deploymentStreamContentInputToJSON(deploymentStreamContentInput: DeploymentStreamContentInput): string;
967
- export declare function deploymentStreamContentInputFromJSON(jsonString: string): SafeParseResult<DeploymentStreamContentInput, SDKValidationError>;
2268
+ export declare function deploymentStreamMessagesUserMessageToJSON(deploymentStreamMessagesUserMessage: DeploymentStreamMessagesUserMessage): string;
2269
+ export declare function deploymentStreamMessagesUserMessageFromJSON(jsonString: string): SafeParseResult<DeploymentStreamMessagesUserMessage, SDKValidationError>;
968
2270
  /** @internal */
969
- export declare const DeploymentStreamDeploymentsType$inboundSchema: z.ZodNativeEnum<typeof DeploymentStreamDeploymentsType>;
2271
+ export declare const DeploymentStreamMessagesDeploymentsRole$inboundSchema: z.ZodNativeEnum<typeof DeploymentStreamMessagesDeploymentsRole>;
970
2272
  /** @internal */
971
- export declare const DeploymentStreamDeploymentsType$outboundSchema: z.ZodNativeEnum<typeof DeploymentStreamDeploymentsType>;
2273
+ export declare const DeploymentStreamMessagesDeploymentsRole$outboundSchema: z.ZodNativeEnum<typeof DeploymentStreamMessagesDeploymentsRole>;
972
2274
  /**
973
2275
  * @internal
974
2276
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
975
2277
  */
976
- export declare namespace DeploymentStreamDeploymentsType$ {
977
- /** @deprecated use `DeploymentStreamDeploymentsType$inboundSchema` instead. */
2278
+ export declare namespace DeploymentStreamMessagesDeploymentsRole$ {
2279
+ /** @deprecated use `DeploymentStreamMessagesDeploymentsRole$inboundSchema` instead. */
978
2280
  const inboundSchema: z.ZodNativeEnum<{
979
- readonly Function: "function";
2281
+ readonly System: "system";
980
2282
  }>;
981
- /** @deprecated use `DeploymentStreamDeploymentsType$outboundSchema` instead. */
2283
+ /** @deprecated use `DeploymentStreamMessagesDeploymentsRole$outboundSchema` instead. */
982
2284
  const outboundSchema: z.ZodNativeEnum<{
983
- readonly Function: "function";
2285
+ readonly System: "system";
984
2286
  }>;
985
2287
  }
986
2288
  /** @internal */
987
- export declare const DeploymentStreamDeploymentsFunction$inboundSchema: z.ZodType<DeploymentStreamDeploymentsFunction, z.ZodTypeDef, unknown>;
2289
+ export declare const DeploymentStreamMessagesSystemMessage$inboundSchema: z.ZodType<DeploymentStreamMessagesSystemMessage, z.ZodTypeDef, unknown>;
988
2290
  /** @internal */
989
- export type DeploymentStreamDeploymentsFunction$Outbound = {
990
- name: string;
991
- arguments: string;
2291
+ export type DeploymentStreamMessagesSystemMessage$Outbound = {
2292
+ role: string;
2293
+ content: string;
2294
+ name?: string | undefined;
992
2295
  };
993
2296
  /** @internal */
994
- export declare const DeploymentStreamDeploymentsFunction$outboundSchema: z.ZodType<DeploymentStreamDeploymentsFunction$Outbound, z.ZodTypeDef, DeploymentStreamDeploymentsFunction>;
2297
+ export declare const DeploymentStreamMessagesSystemMessage$outboundSchema: z.ZodType<DeploymentStreamMessagesSystemMessage$Outbound, z.ZodTypeDef, DeploymentStreamMessagesSystemMessage>;
995
2298
  /**
996
2299
  * @internal
997
2300
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
998
2301
  */
999
- export declare namespace DeploymentStreamDeploymentsFunction$ {
1000
- /** @deprecated use `DeploymentStreamDeploymentsFunction$inboundSchema` instead. */
1001
- const inboundSchema: z.ZodType<DeploymentStreamDeploymentsFunction, z.ZodTypeDef, unknown>;
1002
- /** @deprecated use `DeploymentStreamDeploymentsFunction$outboundSchema` instead. */
1003
- const outboundSchema: z.ZodType<DeploymentStreamDeploymentsFunction$Outbound, z.ZodTypeDef, DeploymentStreamDeploymentsFunction>;
1004
- /** @deprecated use `DeploymentStreamDeploymentsFunction$Outbound` instead. */
1005
- type Outbound = DeploymentStreamDeploymentsFunction$Outbound;
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;
1006
2309
  }
1007
- export declare function deploymentStreamDeploymentsFunctionToJSON(deploymentStreamDeploymentsFunction: DeploymentStreamDeploymentsFunction): string;
1008
- export declare function deploymentStreamDeploymentsFunctionFromJSON(jsonString: string): SafeParseResult<DeploymentStreamDeploymentsFunction, SDKValidationError>;
2310
+ export declare function deploymentStreamMessagesSystemMessageToJSON(deploymentStreamMessagesSystemMessage: DeploymentStreamMessagesSystemMessage): string;
2311
+ export declare function deploymentStreamMessagesSystemMessageFromJSON(jsonString: string): SafeParseResult<DeploymentStreamMessagesSystemMessage, SDKValidationError>;
1009
2312
  /** @internal */
1010
- export declare const DeploymentStreamDeploymentsToolCalls$inboundSchema: z.ZodType<DeploymentStreamDeploymentsToolCalls, z.ZodTypeDef, unknown>;
2313
+ export declare const DeploymentStreamMessagesRole$inboundSchema: z.ZodNativeEnum<typeof DeploymentStreamMessagesRole>;
1011
2314
  /** @internal */
1012
- export type DeploymentStreamDeploymentsToolCalls$Outbound = {
1013
- id?: string | undefined;
1014
- index?: number | undefined;
1015
- type: string;
1016
- function: DeploymentStreamDeploymentsFunction$Outbound;
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;
1017
2337
  };
1018
2338
  /** @internal */
1019
- export declare const DeploymentStreamDeploymentsToolCalls$outboundSchema: z.ZodType<DeploymentStreamDeploymentsToolCalls$Outbound, z.ZodTypeDef, DeploymentStreamDeploymentsToolCalls>;
2339
+ export declare const DeploymentStreamMessagesDeveloperMessage$outboundSchema: z.ZodType<DeploymentStreamMessagesDeveloperMessage$Outbound, z.ZodTypeDef, DeploymentStreamMessagesDeveloperMessage>;
1020
2340
  /**
1021
2341
  * @internal
1022
2342
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
1023
2343
  */
1024
- export declare namespace DeploymentStreamDeploymentsToolCalls$ {
1025
- /** @deprecated use `DeploymentStreamDeploymentsToolCalls$inboundSchema` instead. */
1026
- const inboundSchema: z.ZodType<DeploymentStreamDeploymentsToolCalls, z.ZodTypeDef, unknown>;
1027
- /** @deprecated use `DeploymentStreamDeploymentsToolCalls$outboundSchema` instead. */
1028
- const outboundSchema: z.ZodType<DeploymentStreamDeploymentsToolCalls$Outbound, z.ZodTypeDef, DeploymentStreamDeploymentsToolCalls>;
1029
- /** @deprecated use `DeploymentStreamDeploymentsToolCalls$Outbound` instead. */
1030
- type Outbound = DeploymentStreamDeploymentsToolCalls$Outbound;
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;
1031
2351
  }
1032
- export declare function deploymentStreamDeploymentsToolCallsToJSON(deploymentStreamDeploymentsToolCalls: DeploymentStreamDeploymentsToolCalls): string;
1033
- export declare function deploymentStreamDeploymentsToolCallsFromJSON(jsonString: string): SafeParseResult<DeploymentStreamDeploymentsToolCalls, SDKValidationError>;
2352
+ export declare function deploymentStreamMessagesDeveloperMessageToJSON(deploymentStreamMessagesDeveloperMessage: DeploymentStreamMessagesDeveloperMessage): string;
2353
+ export declare function deploymentStreamMessagesDeveloperMessageFromJSON(jsonString: string): SafeParseResult<DeploymentStreamMessagesDeveloperMessage, SDKValidationError>;
1034
2354
  /** @internal */
1035
2355
  export declare const DeploymentStreamMessages$inboundSchema: z.ZodType<DeploymentStreamMessages, z.ZodTypeDef, unknown>;
1036
2356
  /** @internal */
1037
- export type DeploymentStreamMessages$Outbound = {
1038
- role: string;
1039
- content: string | Array<DeploymentStream2Deployments1$Outbound | DeploymentStream22Input$Outbound>;
1040
- tool_calls?: Array<DeploymentStreamDeploymentsToolCalls$Outbound> | undefined;
1041
- };
2357
+ export type DeploymentStreamMessages$Outbound = DeploymentStreamMessagesDeveloperMessage$Outbound | DeploymentStreamMessagesSystemMessage$Outbound | DeploymentStreamMessagesUserMessage$Outbound | DeploymentStreamMessagesToolMessage$Outbound | DeploymentStreamMessagesAssistantMessage$Outbound;
1042
2358
  /** @internal */
1043
2359
  export declare const DeploymentStreamMessages$outboundSchema: z.ZodType<DeploymentStreamMessages$Outbound, z.ZodTypeDef, DeploymentStreamMessages>;
1044
2360
  /**
@@ -1135,8 +2451,8 @@ export type DeploymentStreamRequestBody$Outbound = {
1135
2451
  context?: {
1136
2452
  [k: string]: any;
1137
2453
  } | undefined;
1138
- prefix_messages?: Array<DeploymentStreamPrefixMessages$Outbound> | undefined;
1139
- messages?: Array<DeploymentStreamMessages$Outbound> | 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;
1140
2456
  file_ids?: Array<string> | undefined;
1141
2457
  metadata?: {
1142
2458
  [k: string]: any;