@orq-ai/node 4.11.0-rc.28 → 4.11.0-rc.29

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 (206) hide show
  1. package/funcs/agentsInvoke.d.ts +1 -1
  2. package/funcs/agentsInvoke.d.ts.map +1 -1
  3. package/funcs/agentsInvoke.js.map +1 -1
  4. package/funcs/agentsResponsesCreate.d.ts +2 -1
  5. package/funcs/agentsResponsesCreate.d.ts.map +1 -1
  6. package/funcs/agentsResponsesCreate.js +7 -5
  7. package/funcs/agentsResponsesCreate.js.map +1 -1
  8. package/funcs/agentsStream.d.ts +1 -1
  9. package/funcs/agentsStream.d.ts.map +1 -1
  10. package/funcs/agentsStream.js.map +1 -1
  11. package/funcs/annotationsCreate.d.ts +1 -1
  12. package/funcs/annotationsCreate.js +1 -1
  13. package/funcs/annotationsDelete.d.ts +1 -1
  14. package/funcs/annotationsDelete.js +1 -1
  15. package/funcs/deploymentsInvoke.d.ts +2 -1
  16. package/funcs/deploymentsInvoke.d.ts.map +1 -1
  17. package/funcs/deploymentsInvoke.js +2 -1
  18. package/funcs/deploymentsInvoke.js.map +1 -1
  19. package/funcs/promptsCreate.d.ts +1 -1
  20. package/funcs/promptsCreate.d.ts.map +1 -1
  21. package/funcs/promptsCreate.js +2 -1
  22. package/funcs/promptsCreate.js.map +1 -1
  23. package/jsr.json +1 -1
  24. package/lib/config.d.ts +2 -2
  25. package/lib/config.js +2 -2
  26. package/models/components/agentresponserequest.d.ts +336 -0
  27. package/models/components/agentresponserequest.d.ts.map +1 -0
  28. package/models/components/agentresponserequest.js +210 -0
  29. package/models/components/agentresponserequest.js.map +1 -0
  30. package/models/components/agentthoughtstreamingevent.d.ts +12 -12
  31. package/models/components/agentthoughtstreamingevent.d.ts.map +1 -1
  32. package/models/components/agentthoughtstreamingevent.js +17 -17
  33. package/models/components/agentthoughtstreamingevent.js.map +1 -1
  34. package/models/components/index.d.ts +2 -0
  35. package/models/components/index.d.ts.map +1 -1
  36. package/models/components/index.js +2 -0
  37. package/models/components/index.js.map +1 -1
  38. package/models/components/invokedeploymentrequest.d.ts +1573 -0
  39. package/models/components/invokedeploymentrequest.d.ts.map +1 -0
  40. package/models/components/invokedeploymentrequest.js +1137 -0
  41. package/models/components/invokedeploymentrequest.js.map +1 -0
  42. package/models/components/reasoningpart.js +1 -1
  43. package/models/components/toolexecutionstartedstreamingevent.d.ts +4 -4
  44. package/models/components/toolexecutionstartedstreamingevent.d.ts.map +1 -1
  45. package/models/components/toolexecutionstartedstreamingevent.js +7 -7
  46. package/models/components/toolexecutionstartedstreamingevent.js.map +1 -1
  47. package/models/operations/createagentresponserequest.d.ts +2 -329
  48. package/models/operations/createagentresponserequest.d.ts.map +1 -1
  49. package/models/operations/createagentresponserequest.js +3 -166
  50. package/models/operations/createagentresponserequest.js.map +1 -1
  51. package/models/operations/createannotation.d.ts +48 -10
  52. package/models/operations/createannotation.d.ts.map +1 -1
  53. package/models/operations/createannotation.js +37 -5
  54. package/models/operations/createannotation.js.map +1 -1
  55. package/models/operations/createdataset.js +1 -1
  56. package/models/operations/createdatasetitem.d.ts +210 -12
  57. package/models/operations/createdatasetitem.d.ts.map +1 -1
  58. package/models/operations/createdatasetitem.js +136 -9
  59. package/models/operations/createdatasetitem.js.map +1 -1
  60. package/models/operations/createdatasource.d.ts +3 -0
  61. package/models/operations/createdatasource.d.ts.map +1 -1
  62. package/models/operations/createdatasource.js +1 -1
  63. package/models/operations/createdatasource.js.map +1 -1
  64. package/models/operations/createeval.js +16 -16
  65. package/models/operations/createprompt.d.ts +7 -4
  66. package/models/operations/createprompt.d.ts.map +1 -1
  67. package/models/operations/createprompt.js +5 -5
  68. package/models/operations/createprompt.js.map +1 -1
  69. package/models/operations/createtool.js +6 -6
  70. package/models/operations/deleteannotation.d.ts +19 -2
  71. package/models/operations/deleteannotation.d.ts.map +1 -1
  72. package/models/operations/deleteannotation.js +20 -2
  73. package/models/operations/deleteannotation.js.map +1 -1
  74. package/models/operations/deploymentgetconfig.d.ts +440 -440
  75. package/models/operations/deploymentgetconfig.d.ts.map +1 -1
  76. package/models/operations/deploymentgetconfig.js +484 -479
  77. package/models/operations/deploymentgetconfig.js.map +1 -1
  78. package/models/operations/deploymentinvoke.d.ts +0 -1560
  79. package/models/operations/deploymentinvoke.d.ts.map +1 -1
  80. package/models/operations/deploymentinvoke.js +1 -1126
  81. package/models/operations/deploymentinvoke.js.map +1 -1
  82. package/models/operations/deploymentstream.d.ts +56 -56
  83. package/models/operations/deploymentstream.d.ts.map +1 -1
  84. package/models/operations/deploymentstream.js +73 -72
  85. package/models/operations/deploymentstream.js.map +1 -1
  86. package/models/operations/getalltools.js +6 -6
  87. package/models/operations/getevals.js +16 -16
  88. package/models/operations/getv2humanevalsets.js +2 -2
  89. package/models/operations/getv2humanevalsetsid.js +2 -2
  90. package/models/operations/invokeagent.d.ts +51 -48
  91. package/models/operations/invokeagent.d.ts.map +1 -1
  92. package/models/operations/invokeagent.js +43 -46
  93. package/models/operations/invokeagent.js.map +1 -1
  94. package/models/operations/listdatasetdatapoints.d.ts +210 -12
  95. package/models/operations/listdatasetdatapoints.d.ts.map +1 -1
  96. package/models/operations/listdatasetdatapoints.js +138 -9
  97. package/models/operations/listdatasetdatapoints.js.map +1 -1
  98. package/models/operations/listdatasets.js +1 -1
  99. package/models/operations/listdatasources.js +1 -1
  100. package/models/operations/patchv2humanevalsetsid.js +2 -2
  101. package/models/operations/postv2feedbackevaluation.d.ts +33 -12
  102. package/models/operations/postv2feedbackevaluation.d.ts.map +1 -1
  103. package/models/operations/postv2feedbackevaluation.js +9 -6
  104. package/models/operations/postv2feedbackevaluation.js.map +1 -1
  105. package/models/operations/postv2humanevalsets.js +2 -2
  106. package/models/operations/retrievedatapoint.d.ts +210 -12
  107. package/models/operations/retrievedatapoint.d.ts.map +1 -1
  108. package/models/operations/retrievedatapoint.js +140 -8
  109. package/models/operations/retrievedatapoint.js.map +1 -1
  110. package/models/operations/retrievedataset.js +1 -1
  111. package/models/operations/retrievedatasource.js +1 -1
  112. package/models/operations/retrievetool.js +6 -6
  113. package/models/operations/runagent.js +1 -1
  114. package/models/operations/streamagent.d.ts +9 -6
  115. package/models/operations/streamagent.d.ts.map +1 -1
  116. package/models/operations/streamagent.js +6 -6
  117. package/models/operations/streamagent.js.map +1 -1
  118. package/models/operations/streamrunagent.js +1 -1
  119. package/models/operations/updatedatapoint.d.ts +210 -12
  120. package/models/operations/updatedatapoint.d.ts.map +1 -1
  121. package/models/operations/updatedatapoint.js +138 -9
  122. package/models/operations/updatedatapoint.js.map +1 -1
  123. package/models/operations/updatedataset.js +1 -1
  124. package/models/operations/updatedatasource.js +1 -1
  125. package/models/operations/updateeval.js +16 -16
  126. package/models/operations/updateprompt.d.ts +9 -6
  127. package/models/operations/updateprompt.d.ts.map +1 -1
  128. package/models/operations/updateprompt.js +7 -6
  129. package/models/operations/updateprompt.js.map +1 -1
  130. package/models/operations/updatetool.js +7 -7
  131. package/package.json +3 -3
  132. package/sdk/agents.d.ts +2 -2
  133. package/sdk/agents.d.ts.map +1 -1
  134. package/sdk/agents.js.map +1 -1
  135. package/sdk/annotations.d.ts +2 -2
  136. package/sdk/annotations.js +2 -2
  137. package/sdk/deployments.d.ts +2 -1
  138. package/sdk/deployments.d.ts.map +1 -1
  139. package/sdk/deployments.js.map +1 -1
  140. package/sdk/feedback.d.ts +1 -4
  141. package/sdk/feedback.d.ts.map +1 -1
  142. package/sdk/feedback.js +1 -4
  143. package/sdk/feedback.js.map +1 -1
  144. package/sdk/orqresponses.d.ts +1 -1
  145. package/sdk/orqresponses.d.ts.map +1 -1
  146. package/sdk/orqresponses.js +2 -2
  147. package/sdk/orqresponses.js.map +1 -1
  148. package/sdk/prompts.d.ts +1 -1
  149. package/sdk/prompts.d.ts.map +1 -1
  150. package/sdk/prompts.js.map +1 -1
  151. package/src/funcs/agentsInvoke.ts +2 -2
  152. package/src/funcs/agentsResponsesCreate.ts +8 -5
  153. package/src/funcs/agentsStream.ts +2 -2
  154. package/src/funcs/annotationsCreate.ts +1 -1
  155. package/src/funcs/annotationsDelete.ts +1 -1
  156. package/src/funcs/deploymentsInvoke.ts +4 -4
  157. package/src/funcs/promptsCreate.ts +4 -3
  158. package/src/lib/config.ts +2 -2
  159. package/src/models/components/agentresponserequest.ts +565 -0
  160. package/src/models/components/agentthoughtstreamingevent.ts +55 -43
  161. package/src/models/components/index.ts +2 -0
  162. package/src/models/components/invokedeploymentrequest.ts +3457 -0
  163. package/src/models/components/reasoningpart.ts +1 -1
  164. package/src/models/components/toolexecutionstartedstreamingevent.ts +24 -14
  165. package/src/models/operations/createagentresponserequest.ts +4 -550
  166. package/src/models/operations/createannotation.ts +110 -16
  167. package/src/models/operations/createdataset.ts +1 -1
  168. package/src/models/operations/createdatasetitem.ts +335 -19
  169. package/src/models/operations/createdatasource.ts +4 -1
  170. package/src/models/operations/createeval.ts +16 -16
  171. package/src/models/operations/createprompt.ts +13 -8
  172. package/src/models/operations/createtool.ts +6 -6
  173. package/src/models/operations/deleteannotation.ts +46 -3
  174. package/src/models/operations/deploymentgetconfig.ts +1156 -1606
  175. package/src/models/operations/deploymentinvoke.ts +222 -3675
  176. package/src/models/operations/deploymentstream.ts +244 -285
  177. package/src/models/operations/getalltools.ts +6 -6
  178. package/src/models/operations/getevals.ts +16 -16
  179. package/src/models/operations/getv2humanevalsets.ts +2 -2
  180. package/src/models/operations/getv2humanevalsetsid.ts +2 -2
  181. package/src/models/operations/invokeagent.ts +90 -116
  182. package/src/models/operations/listdatasetdatapoints.ts +378 -19
  183. package/src/models/operations/listdatasets.ts +1 -1
  184. package/src/models/operations/listdatasources.ts +1 -1
  185. package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  186. package/src/models/operations/postv2feedbackevaluation.ts +42 -18
  187. package/src/models/operations/postv2humanevalsets.ts +2 -2
  188. package/src/models/operations/retrievedatapoint.ts +363 -19
  189. package/src/models/operations/retrievedataset.ts +1 -1
  190. package/src/models/operations/retrievedatasource.ts +1 -1
  191. package/src/models/operations/retrievetool.ts +6 -6
  192. package/src/models/operations/runagent.ts +1 -1
  193. package/src/models/operations/streamagent.ts +16 -11
  194. package/src/models/operations/streamrunagent.ts +1 -1
  195. package/src/models/operations/updatedatapoint.ts +366 -19
  196. package/src/models/operations/updatedataset.ts +1 -1
  197. package/src/models/operations/updatedatasource.ts +1 -1
  198. package/src/models/operations/updateeval.ts +16 -16
  199. package/src/models/operations/updateprompt.ts +17 -11
  200. package/src/models/operations/updatetool.ts +7 -7
  201. package/src/sdk/agents.ts +2 -2
  202. package/src/sdk/annotations.ts +2 -2
  203. package/src/sdk/deployments.ts +2 -1
  204. package/src/sdk/feedback.ts +1 -4
  205. package/src/sdk/orqresponses.ts +2 -2
  206. package/src/sdk/prompts.ts +1 -1
@@ -10,27 +10,27 @@ import { Result as SafeParseResult } from "../../types/fp.js";
10
10
  import * as components from "../components/index.js";
11
11
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
12
12
 
13
- export type DeploymentGetConfigContentDeploymentsRequest2 =
13
+ export type DeploymentGetConfigContentDeployments2 =
14
14
  components.TextContentPartSchema;
15
15
 
16
16
  /**
17
17
  * The contents of the tool message.
18
18
  */
19
- export type DeploymentGetConfigPrefixMessagesDeploymentsRequestRequestBody5Content =
19
+ export type DeploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContent =
20
20
  | string
21
21
  | Array<components.TextContentPartSchema>;
22
22
 
23
23
  /**
24
24
  * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
25
25
  */
26
- export const DeploymentGetConfigPrefixMessagesDeploymentsType = {
26
+ export const DeploymentGetConfigPrefixMessagesType = {
27
27
  Ephemeral: "ephemeral",
28
28
  } as const;
29
29
  /**
30
30
  * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
31
31
  */
32
- export type DeploymentGetConfigPrefixMessagesDeploymentsType = ClosedEnum<
33
- typeof DeploymentGetConfigPrefixMessagesDeploymentsType
32
+ export type DeploymentGetConfigPrefixMessagesType = ClosedEnum<
33
+ typeof DeploymentGetConfigPrefixMessagesType
34
34
  >;
35
35
 
36
36
  /**
@@ -43,7 +43,7 @@ export type DeploymentGetConfigPrefixMessagesDeploymentsType = ClosedEnum<
43
43
  *
44
44
  * Defaults to `5m`. Only supported by `Anthropic` Claude models.
45
45
  */
46
- export const DeploymentGetConfigPrefixMessagesTtl = {
46
+ export const PrefixMessagesTtl = {
47
47
  Fivem: "5m",
48
48
  Oneh: "1h",
49
49
  } as const;
@@ -57,15 +57,13 @@ export const DeploymentGetConfigPrefixMessagesTtl = {
57
57
  *
58
58
  * Defaults to `5m`. Only supported by `Anthropic` Claude models.
59
59
  */
60
- export type DeploymentGetConfigPrefixMessagesTtl = ClosedEnum<
61
- typeof DeploymentGetConfigPrefixMessagesTtl
62
- >;
60
+ export type PrefixMessagesTtl = ClosedEnum<typeof PrefixMessagesTtl>;
63
61
 
64
- export type DeploymentGetConfigPrefixMessagesCacheControl = {
62
+ export type PrefixMessagesCacheControl = {
65
63
  /**
66
64
  * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
67
65
  */
68
- type: DeploymentGetConfigPrefixMessagesDeploymentsType;
66
+ type: DeploymentGetConfigPrefixMessagesType;
69
67
  /**
70
68
  * The time-to-live for the cache control breakpoint. This may be one of the following values:
71
69
  *
@@ -76,10 +74,10 @@ export type DeploymentGetConfigPrefixMessagesCacheControl = {
76
74
  *
77
75
  * Defaults to `5m`. Only supported by `Anthropic` Claude models.
78
76
  */
79
- ttl?: DeploymentGetConfigPrefixMessagesTtl | undefined;
77
+ ttl?: PrefixMessagesTtl | undefined;
80
78
  };
81
79
 
82
- export type PrefixMessagesToolMessage = {
80
+ export type ToolMessage = {
83
81
  /**
84
82
  * The role of the messages author, in this case tool.
85
83
  */
@@ -92,10 +90,10 @@ export type PrefixMessagesToolMessage = {
92
90
  * Tool call that this message is responding to.
93
91
  */
94
92
  toolCallId: string | null;
95
- cacheControl?: DeploymentGetConfigPrefixMessagesCacheControl | undefined;
93
+ cacheControl?: PrefixMessagesCacheControl | undefined;
96
94
  };
97
95
 
98
- export type DeploymentGetConfigContentDeployments2 =
96
+ export type DeploymentGetConfigContent2 =
99
97
  | (components.TextContentPartSchema & { type: "text" })
100
98
  | components.RefusalPartSchema
101
99
  | components.ReasoningPartSchema
@@ -104,7 +102,7 @@ export type DeploymentGetConfigContentDeployments2 =
104
102
  /**
105
103
  * The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
106
104
  */
107
- export type DeploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContent =
105
+ export type DeploymentGetConfigPrefixMessagesDeploymentsRequestContent =
108
106
  | string
109
107
  | Array<
110
108
  | (components.TextContentPartSchema & { type: "text" })
@@ -116,7 +114,7 @@ export type DeploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyConten
116
114
  /**
117
115
  * Data about a previous audio response from the model.
118
116
  */
119
- export type PrefixMessagesAudio = {
117
+ export type Audio = {
120
118
  /**
121
119
  * Unique identifier for a previous audio response from the model.
122
120
  */
@@ -126,17 +124,15 @@ export type PrefixMessagesAudio = {
126
124
  /**
127
125
  * The type of the tool. Currently, only `function` is supported.
128
126
  */
129
- export const DeploymentGetConfigPrefixMessagesType = {
127
+ export const PrefixMessagesType = {
130
128
  Function: "function",
131
129
  } as const;
132
130
  /**
133
131
  * The type of the tool. Currently, only `function` is supported.
134
132
  */
135
- export type DeploymentGetConfigPrefixMessagesType = ClosedEnum<
136
- typeof DeploymentGetConfigPrefixMessagesType
137
- >;
133
+ export type PrefixMessagesType = ClosedEnum<typeof PrefixMessagesType>;
138
134
 
139
- export type DeploymentGetConfigPrefixMessagesFunction = {
135
+ export type PrefixMessagesFunction = {
140
136
  /**
141
137
  * The name of the function to call.
142
138
  */
@@ -147,7 +143,7 @@ export type DeploymentGetConfigPrefixMessagesFunction = {
147
143
  arguments?: string | undefined;
148
144
  };
149
145
 
150
- export type DeploymentGetConfigPrefixMessagesToolCalls = {
146
+ export type PrefixMessagesToolCalls = {
151
147
  /**
152
148
  * The ID of the tool call.
153
149
  */
@@ -155,15 +151,15 @@ export type DeploymentGetConfigPrefixMessagesToolCalls = {
155
151
  /**
156
152
  * The type of the tool. Currently, only `function` is supported.
157
153
  */
158
- type: DeploymentGetConfigPrefixMessagesType;
159
- function: DeploymentGetConfigPrefixMessagesFunction;
154
+ type: PrefixMessagesType;
155
+ function: PrefixMessagesFunction;
160
156
  /**
161
157
  * Encrypted representation of the model internal reasoning state during function calling. Required by Gemini 3 models when continuing a conversation after a tool call.
162
158
  */
163
159
  thoughtSignature?: string | undefined;
164
160
  };
165
161
 
166
- export type PrefixMessagesAssistantMessage = {
162
+ export type AssistantMessage = {
167
163
  /**
168
164
  * The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
169
165
  */
@@ -192,11 +188,11 @@ export type PrefixMessagesAssistantMessage = {
192
188
  /**
193
189
  * Data about a previous audio response from the model.
194
190
  */
195
- audio?: PrefixMessagesAudio | null | undefined;
191
+ audio?: Audio | null | undefined;
196
192
  /**
197
193
  * The tool calls generated by the model, such as function calls.
198
194
  */
199
- toolCalls?: Array<DeploymentGetConfigPrefixMessagesToolCalls> | undefined;
195
+ toolCalls?: Array<PrefixMessagesToolCalls> | undefined;
200
196
  };
201
197
 
202
198
  /**
@@ -222,7 +218,7 @@ export type DeploymentGetConfig2DeploymentsType = ClosedEnum<
222
218
  *
223
219
  * Defaults to `5m`. Only supported by `Anthropic` Claude models.
224
220
  */
225
- export const DeploymentGetConfig2Ttl = {
221
+ export const Ttl = {
226
222
  Fivem: "5m",
227
223
  Oneh: "1h",
228
224
  } as const;
@@ -236,11 +232,9 @@ export const DeploymentGetConfig2Ttl = {
236
232
  *
237
233
  * Defaults to `5m`. Only supported by `Anthropic` Claude models.
238
234
  */
239
- export type DeploymentGetConfig2Ttl = ClosedEnum<
240
- typeof DeploymentGetConfig2Ttl
241
- >;
235
+ export type Ttl = ClosedEnum<typeof Ttl>;
242
236
 
243
- export type DeploymentGetConfig2CacheControl = {
237
+ export type CacheControl = {
244
238
  /**
245
239
  * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
246
240
  */
@@ -255,40 +249,40 @@ export type DeploymentGetConfig2CacheControl = {
255
249
  *
256
250
  * Defaults to `5m`. Only supported by `Anthropic` Claude models.
257
251
  */
258
- ttl?: DeploymentGetConfig2Ttl | undefined;
252
+ ttl?: Ttl | undefined;
259
253
  };
260
254
 
261
- export type DeploymentGetConfig24 = {
255
+ export type Four = {
262
256
  /**
263
257
  * The type of the content part. Always `file`.
264
258
  */
265
259
  type: "file";
266
- cacheControl?: DeploymentGetConfig2CacheControl | undefined;
260
+ cacheControl?: CacheControl | undefined;
267
261
  /**
268
262
  * File data for the content part. Must contain either file_data or uri, but not both.
269
263
  */
270
264
  file: components.FileContentPartSchema;
271
265
  };
272
266
 
273
- export type DeploymentGetConfigContent2 =
267
+ export type Content2 =
274
268
  | (components.TextContentPartSchema & { type: "text" })
275
269
  | components.ImageContentPartSchema
276
270
  | components.AudioContentPartSchema
277
- | DeploymentGetConfig24;
271
+ | Four;
278
272
 
279
273
  /**
280
274
  * The contents of the user message.
281
275
  */
282
- export type DeploymentGetConfigPrefixMessagesDeploymentsRequestContent =
276
+ export type DeploymentGetConfigPrefixMessagesDeploymentsContent =
283
277
  | string
284
278
  | Array<
285
279
  | (components.TextContentPartSchema & { type: "text" })
286
280
  | components.ImageContentPartSchema
287
281
  | components.AudioContentPartSchema
288
- | DeploymentGetConfig24
282
+ | Four
289
283
  >;
290
284
 
291
- export type PrefixMessagesUserMessage = {
285
+ export type UserMessage = {
292
286
  /**
293
287
  * The role of the messages author, in this case `user`.
294
288
  */
@@ -306,18 +300,18 @@ export type PrefixMessagesUserMessage = {
306
300
  | (components.TextContentPartSchema & { type: "text" })
307
301
  | components.ImageContentPartSchema
308
302
  | components.AudioContentPartSchema
309
- | DeploymentGetConfig24
303
+ | Four
310
304
  >;
311
305
  };
312
306
 
313
307
  /**
314
308
  * The contents of the developer message.
315
309
  */
316
- export type DeploymentGetConfigPrefixMessagesDeploymentsContent =
310
+ export type DeploymentGetConfigPrefixMessagesContent =
317
311
  | string
318
312
  | Array<components.TextContentPartSchema>;
319
313
 
320
- export type PrefixMessagesDeveloperMessage = {
314
+ export type DeveloperMessage = {
321
315
  /**
322
316
  * The role of the messages author, in this case `developer`.
323
317
  */
@@ -335,14 +329,14 @@ export type PrefixMessagesDeveloperMessage = {
335
329
  /**
336
330
  * The contents of the system message.
337
331
  */
338
- export type DeploymentGetConfigPrefixMessagesContent =
332
+ export type PrefixMessagesContent =
339
333
  | string
340
334
  | Array<components.TextContentPartSchema>;
341
335
 
342
336
  /**
343
337
  * Developer-provided instructions that the model should follow, regardless of messages sent by the user.
344
338
  */
345
- export type PrefixMessagesSystemMessage = {
339
+ export type SystemMessage = {
346
340
  /**
347
341
  * The role of the messages author, in this case `system`.
348
342
  */
@@ -357,34 +351,34 @@ export type PrefixMessagesSystemMessage = {
357
351
  name?: string | undefined;
358
352
  };
359
353
 
360
- export type DeploymentGetConfigPrefixMessages =
361
- | PrefixMessagesSystemMessage
362
- | PrefixMessagesDeveloperMessage
363
- | PrefixMessagesUserMessage
364
- | PrefixMessagesAssistantMessage
365
- | PrefixMessagesToolMessage;
354
+ export type PrefixMessages =
355
+ | SystemMessage
356
+ | DeveloperMessage
357
+ | UserMessage
358
+ | AssistantMessage
359
+ | ToolMessage;
366
360
 
367
- export type DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages52 =
361
+ export type DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2 =
368
362
  components.TextContentPartSchema;
369
363
 
370
364
  /**
371
365
  * The contents of the tool message.
372
366
  */
373
- export type DeploymentGetConfigMessagesDeploymentsRequestRequestBody5Content =
367
+ export type DeploymentGetConfigMessagesDeploymentsRequestRequestBodyContent =
374
368
  | string
375
369
  | Array<components.TextContentPartSchema>;
376
370
 
377
371
  /**
378
372
  * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
379
373
  */
380
- export const DeploymentGetConfigMessagesDeploymentsType = {
374
+ export const DeploymentGetConfigMessagesType = {
381
375
  Ephemeral: "ephemeral",
382
376
  } as const;
383
377
  /**
384
378
  * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
385
379
  */
386
- export type DeploymentGetConfigMessagesDeploymentsType = ClosedEnum<
387
- typeof DeploymentGetConfigMessagesDeploymentsType
380
+ export type DeploymentGetConfigMessagesType = ClosedEnum<
381
+ typeof DeploymentGetConfigMessagesType
388
382
  >;
389
383
 
390
384
  /**
@@ -397,7 +391,7 @@ export type DeploymentGetConfigMessagesDeploymentsType = ClosedEnum<
397
391
  *
398
392
  * Defaults to `5m`. Only supported by `Anthropic` Claude models.
399
393
  */
400
- export const DeploymentGetConfigMessagesTtl = {
394
+ export const MessagesTtl = {
401
395
  Fivem: "5m",
402
396
  Oneh: "1h",
403
397
  } as const;
@@ -411,15 +405,13 @@ export const DeploymentGetConfigMessagesTtl = {
411
405
  *
412
406
  * Defaults to `5m`. Only supported by `Anthropic` Claude models.
413
407
  */
414
- export type DeploymentGetConfigMessagesTtl = ClosedEnum<
415
- typeof DeploymentGetConfigMessagesTtl
416
- >;
408
+ export type MessagesTtl = ClosedEnum<typeof MessagesTtl>;
417
409
 
418
- export type DeploymentGetConfigMessagesCacheControl = {
410
+ export type MessagesCacheControl = {
419
411
  /**
420
412
  * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
421
413
  */
422
- type: DeploymentGetConfigMessagesDeploymentsType;
414
+ type: DeploymentGetConfigMessagesType;
423
415
  /**
424
416
  * The time-to-live for the cache control breakpoint. This may be one of the following values:
425
417
  *
@@ -430,10 +422,10 @@ export type DeploymentGetConfigMessagesCacheControl = {
430
422
  *
431
423
  * Defaults to `5m`. Only supported by `Anthropic` Claude models.
432
424
  */
433
- ttl?: DeploymentGetConfigMessagesTtl | undefined;
425
+ ttl?: MessagesTtl | undefined;
434
426
  };
435
427
 
436
- export type DeploymentGetConfigMessagesToolMessage = {
428
+ export type MessagesToolMessage = {
437
429
  /**
438
430
  * The role of the messages author, in this case tool.
439
431
  */
@@ -446,10 +438,10 @@ export type DeploymentGetConfigMessagesToolMessage = {
446
438
  * Tool call that this message is responding to.
447
439
  */
448
440
  toolCallId: string | null;
449
- cacheControl?: DeploymentGetConfigMessagesCacheControl | undefined;
441
+ cacheControl?: MessagesCacheControl | undefined;
450
442
  };
451
443
 
452
- export type DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2 =
444
+ export type DeploymentGetConfigContentDeploymentsRequestRequestBody2 =
453
445
  | (components.TextContentPartSchema & { type: "text" })
454
446
  | components.RefusalPartSchema
455
447
  | components.ReasoningPartSchema
@@ -458,7 +450,7 @@ export type DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2 =
458
450
  /**
459
451
  * The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
460
452
  */
461
- export type DeploymentGetConfigMessagesDeploymentsRequestRequestBodyContent =
453
+ export type DeploymentGetConfigMessagesDeploymentsRequestContent =
462
454
  | string
463
455
  | Array<
464
456
  | (components.TextContentPartSchema & { type: "text" })
@@ -470,7 +462,7 @@ export type DeploymentGetConfigMessagesDeploymentsRequestRequestBodyContent =
470
462
  /**
471
463
  * Data about a previous audio response from the model.
472
464
  */
473
- export type DeploymentGetConfigMessagesAudio = {
465
+ export type MessagesAudio = {
474
466
  /**
475
467
  * Unique identifier for a previous audio response from the model.
476
468
  */
@@ -480,17 +472,15 @@ export type DeploymentGetConfigMessagesAudio = {
480
472
  /**
481
473
  * The type of the tool. Currently, only `function` is supported.
482
474
  */
483
- export const DeploymentGetConfigMessagesType = {
475
+ export const MessagesType = {
484
476
  Function: "function",
485
477
  } as const;
486
478
  /**
487
479
  * The type of the tool. Currently, only `function` is supported.
488
480
  */
489
- export type DeploymentGetConfigMessagesType = ClosedEnum<
490
- typeof DeploymentGetConfigMessagesType
491
- >;
481
+ export type MessagesType = ClosedEnum<typeof MessagesType>;
492
482
 
493
- export type DeploymentGetConfigMessagesFunction = {
483
+ export type MessagesFunction = {
494
484
  /**
495
485
  * The name of the function to call.
496
486
  */
@@ -501,7 +491,7 @@ export type DeploymentGetConfigMessagesFunction = {
501
491
  arguments?: string | undefined;
502
492
  };
503
493
 
504
- export type DeploymentGetConfigMessagesToolCalls = {
494
+ export type MessagesToolCalls = {
505
495
  /**
506
496
  * The ID of the tool call.
507
497
  */
@@ -509,15 +499,15 @@ export type DeploymentGetConfigMessagesToolCalls = {
509
499
  /**
510
500
  * The type of the tool. Currently, only `function` is supported.
511
501
  */
512
- type: DeploymentGetConfigMessagesType;
513
- function: DeploymentGetConfigMessagesFunction;
502
+ type: MessagesType;
503
+ function: MessagesFunction;
514
504
  /**
515
505
  * Encrypted representation of the model internal reasoning state during function calling. Required by Gemini 3 models when continuing a conversation after a tool call.
516
506
  */
517
507
  thoughtSignature?: string | undefined;
518
508
  };
519
509
 
520
- export type DeploymentGetConfigMessagesAssistantMessage = {
510
+ export type MessagesAssistantMessage = {
521
511
  /**
522
512
  * The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
523
513
  */
@@ -546,11 +536,11 @@ export type DeploymentGetConfigMessagesAssistantMessage = {
546
536
  /**
547
537
  * Data about a previous audio response from the model.
548
538
  */
549
- audio?: DeploymentGetConfigMessagesAudio | null | undefined;
539
+ audio?: MessagesAudio | null | undefined;
550
540
  /**
551
541
  * The tool calls generated by the model, such as function calls.
552
542
  */
553
- toolCalls?: Array<DeploymentGetConfigMessagesToolCalls> | undefined;
543
+ toolCalls?: Array<MessagesToolCalls> | undefined;
554
544
  };
555
545
 
556
546
  /**
@@ -576,7 +566,7 @@ export type DeploymentGetConfig2DeploymentsRequestRequestBodyType = ClosedEnum<
576
566
  *
577
567
  * Defaults to `5m`. Only supported by `Anthropic` Claude models.
578
568
  */
579
- export const DeploymentGetConfig2DeploymentsTtl = {
569
+ export const TwoTtl = {
580
570
  Fivem: "5m",
581
571
  Oneh: "1h",
582
572
  } as const;
@@ -590,11 +580,9 @@ export const DeploymentGetConfig2DeploymentsTtl = {
590
580
  *
591
581
  * Defaults to `5m`. Only supported by `Anthropic` Claude models.
592
582
  */
593
- export type DeploymentGetConfig2DeploymentsTtl = ClosedEnum<
594
- typeof DeploymentGetConfig2DeploymentsTtl
595
- >;
583
+ export type TwoTtl = ClosedEnum<typeof TwoTtl>;
596
584
 
597
- export type DeploymentGetConfig2DeploymentsCacheControl = {
585
+ export type TwoCacheControl = {
598
586
  /**
599
587
  * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
600
588
  */
@@ -609,40 +597,40 @@ export type DeploymentGetConfig2DeploymentsCacheControl = {
609
597
  *
610
598
  * Defaults to `5m`. Only supported by `Anthropic` Claude models.
611
599
  */
612
- ttl?: DeploymentGetConfig2DeploymentsTtl | undefined;
600
+ ttl?: TwoTtl | undefined;
613
601
  };
614
602
 
615
- export type DeploymentGetConfig2Deployments4 = {
603
+ export type Two4 = {
616
604
  /**
617
605
  * The type of the content part. Always `file`.
618
606
  */
619
607
  type: "file";
620
- cacheControl?: DeploymentGetConfig2DeploymentsCacheControl | undefined;
608
+ cacheControl?: TwoCacheControl | undefined;
621
609
  /**
622
610
  * File data for the content part. Must contain either file_data or uri, but not both.
623
611
  */
624
612
  file: components.FileContentPartSchema;
625
613
  };
626
614
 
627
- export type DeploymentGetConfigContentDeploymentsRequestRequestBody2 =
615
+ export type DeploymentGetConfigContentDeploymentsRequest2 =
628
616
  | (components.TextContentPartSchema & { type: "text" })
629
617
  | components.ImageContentPartSchema
630
618
  | components.AudioContentPartSchema
631
- | DeploymentGetConfig2Deployments4;
619
+ | Two4;
632
620
 
633
621
  /**
634
622
  * The contents of the user message.
635
623
  */
636
- export type DeploymentGetConfigMessagesDeploymentsRequestContent =
624
+ export type DeploymentGetConfigMessagesDeploymentsContent =
637
625
  | string
638
626
  | Array<
639
627
  | (components.TextContentPartSchema & { type: "text" })
640
628
  | components.ImageContentPartSchema
641
629
  | components.AudioContentPartSchema
642
- | DeploymentGetConfig2Deployments4
630
+ | Two4
643
631
  >;
644
632
 
645
- export type DeploymentGetConfigMessagesUserMessage = {
633
+ export type MessagesUserMessage = {
646
634
  /**
647
635
  * The role of the messages author, in this case `user`.
648
636
  */
@@ -660,18 +648,18 @@ export type DeploymentGetConfigMessagesUserMessage = {
660
648
  | (components.TextContentPartSchema & { type: "text" })
661
649
  | components.ImageContentPartSchema
662
650
  | components.AudioContentPartSchema
663
- | DeploymentGetConfig2Deployments4
651
+ | Two4
664
652
  >;
665
653
  };
666
654
 
667
655
  /**
668
656
  * The contents of the developer message.
669
657
  */
670
- export type DeploymentGetConfigMessagesDeploymentsContent =
658
+ export type DeploymentGetConfigMessagesContent =
671
659
  | string
672
660
  | Array<components.TextContentPartSchema>;
673
661
 
674
- export type DeploymentGetConfigMessagesDeveloperMessage = {
662
+ export type MessagesDeveloperMessage = {
675
663
  /**
676
664
  * The role of the messages author, in this case `developer`.
677
665
  */
@@ -689,14 +677,12 @@ export type DeploymentGetConfigMessagesDeveloperMessage = {
689
677
  /**
690
678
  * The contents of the system message.
691
679
  */
692
- export type DeploymentGetConfigMessagesContent =
693
- | string
694
- | Array<components.TextContentPartSchema>;
680
+ export type MessagesContent = string | Array<components.TextContentPartSchema>;
695
681
 
696
682
  /**
697
683
  * Developer-provided instructions that the model should follow, regardless of messages sent by the user.
698
684
  */
699
- export type DeploymentGetConfigMessagesSystemMessage = {
685
+ export type MessagesSystemMessage = {
700
686
  /**
701
687
  * The role of the messages author, in this case `system`.
702
688
  */
@@ -712,16 +698,16 @@ export type DeploymentGetConfigMessagesSystemMessage = {
712
698
  };
713
699
 
714
700
  export type DeploymentGetConfigMessages =
715
- | DeploymentGetConfigMessagesSystemMessage
716
- | DeploymentGetConfigMessagesDeveloperMessage
717
- | DeploymentGetConfigMessagesUserMessage
718
- | DeploymentGetConfigMessagesAssistantMessage
719
- | DeploymentGetConfigMessagesToolMessage;
701
+ | MessagesSystemMessage
702
+ | MessagesDeveloperMessage
703
+ | MessagesUserMessage
704
+ | MessagesAssistantMessage
705
+ | MessagesToolMessage;
720
706
 
721
707
  /**
722
708
  * Metadata about the document
723
709
  */
724
- export type DeploymentGetConfigMetadata = {
710
+ export type Metadata = {
725
711
  /**
726
712
  * Name of the file the text is from.
727
713
  */
@@ -736,7 +722,7 @@ export type DeploymentGetConfigMetadata = {
736
722
  pageNumber?: number | undefined;
737
723
  };
738
724
 
739
- export type DeploymentGetConfigDocuments = {
725
+ export type Documents = {
740
726
  /**
741
727
  * The text content of the document
742
728
  */
@@ -744,10 +730,10 @@ export type DeploymentGetConfigDocuments = {
744
730
  /**
745
731
  * Metadata about the document
746
732
  */
747
- metadata?: DeploymentGetConfigMetadata | undefined;
733
+ metadata?: Metadata | undefined;
748
734
  };
749
735
 
750
- export type DeploymentGetConfigInvokeOptions = {
736
+ export type InvokeOptions = {
751
737
  /**
752
738
  * Whether to include the retrieved knowledge chunks in the response.
753
739
  */
@@ -762,7 +748,7 @@ export type DeploymentGetConfigInvokeOptions = {
762
748
  mockResponse?: string | undefined;
763
749
  };
764
750
 
765
- export type DeploymentGetConfigThread = {
751
+ export type Thread = {
766
752
  /**
767
753
  * Unique thread identifier to group related invocations.
768
754
  */
@@ -776,101 +762,101 @@ export type DeploymentGetConfigThread = {
776
762
  /**
777
763
  * Exists
778
764
  */
779
- export type DeploymentGetConfigOrExists = {
765
+ export type OrExists = {
780
766
  exists: boolean;
781
767
  };
782
768
 
783
- export type DeploymentGetConfigOrDeploymentsNin = string | number | boolean;
769
+ export type DeploymentGetConfigOrNin = string | number | boolean;
784
770
 
785
771
  /**
786
772
  * Not in
787
773
  */
788
- export type DeploymentGetConfigOrNin = {
774
+ export type OrNin = {
789
775
  nin: Array<string | number | boolean>;
790
776
  };
791
777
 
792
- export type DeploymentGetConfigOrDeploymentsIn = string | number | boolean;
778
+ export type DeploymentGetConfigOrIn = string | number | boolean;
793
779
 
794
780
  /**
795
781
  * In
796
782
  */
797
- export type DeploymentGetConfigOrIn = {
783
+ export type OrIn = {
798
784
  in: Array<string | number | boolean>;
799
785
  };
800
786
 
801
787
  /**
802
788
  * Less than or equal to
803
789
  */
804
- export type DeploymentGetConfigOrLte = {
790
+ export type OrLte = {
805
791
  lte: number;
806
792
  };
807
793
 
808
794
  /**
809
795
  * Less than
810
796
  */
811
- export type DeploymentGetConfigOrLt = {
797
+ export type OrLt = {
812
798
  lt: number;
813
799
  };
814
800
 
815
801
  /**
816
802
  * Greater than or equal to
817
803
  */
818
- export type DeploymentGetConfigOrGte = {
804
+ export type OrGte = {
819
805
  gte: number;
820
806
  };
821
807
 
822
808
  /**
823
809
  * Greater than
824
810
  */
825
- export type DeploymentGetConfigOrGt = {
811
+ export type OrGt = {
826
812
  gt: number;
827
813
  };
828
814
 
829
- export type DeploymentGetConfigOrDeploymentsNe = string | number | boolean;
815
+ export type DeploymentGetConfigOrNe = string | number | boolean;
830
816
 
831
817
  /**
832
818
  * Not equal to
833
819
  */
834
- export type DeploymentGetConfigOrNe = {
820
+ export type OrNe = {
835
821
  ne: string | number | boolean;
836
822
  };
837
823
 
838
- export type DeploymentGetConfigOrDeploymentsEq = string | number | boolean;
824
+ export type DeploymentGetConfigOrEq = string | number | boolean;
839
825
 
840
826
  /**
841
827
  * Equal to
842
828
  */
843
- export type DeploymentGetConfigOrEq = {
829
+ export type OrEq = {
844
830
  eq: string | number | boolean;
845
831
  };
846
832
 
847
- export type DeploymentGetConfigKnowledgeFilterDeploymentsOr =
848
- | DeploymentGetConfigOrEq
849
- | DeploymentGetConfigOrNe
850
- | DeploymentGetConfigOrGt
851
- | DeploymentGetConfigOrGte
852
- | DeploymentGetConfigOrLt
853
- | DeploymentGetConfigOrLte
854
- | DeploymentGetConfigOrIn
855
- | DeploymentGetConfigOrNin
856
- | DeploymentGetConfigOrExists;
833
+ export type KnowledgeFilterOr =
834
+ | OrEq
835
+ | OrNe
836
+ | OrGt
837
+ | OrGte
838
+ | OrLt
839
+ | OrLte
840
+ | OrIn
841
+ | OrNin
842
+ | OrExists;
857
843
 
858
844
  /**
859
845
  * Or
860
846
  */
861
- export type DeploymentGetConfigKnowledgeFilterOr = {
847
+ export type Or = {
862
848
  or: Array<
863
849
  {
864
850
  [k: string]:
865
- | DeploymentGetConfigOrEq
866
- | DeploymentGetConfigOrNe
867
- | DeploymentGetConfigOrGt
868
- | DeploymentGetConfigOrGte
869
- | DeploymentGetConfigOrLt
870
- | DeploymentGetConfigOrLte
871
- | DeploymentGetConfigOrIn
872
- | DeploymentGetConfigOrNin
873
- | DeploymentGetConfigOrExists;
851
+ | OrEq
852
+ | OrNe
853
+ | OrGt
854
+ | OrGte
855
+ | OrLt
856
+ | OrLte
857
+ | OrIn
858
+ | OrNin
859
+ | OrExists;
874
860
  }
875
861
  >;
876
862
  };
@@ -878,101 +864,101 @@ export type DeploymentGetConfigKnowledgeFilterOr = {
878
864
  /**
879
865
  * Exists
880
866
  */
881
- export type DeploymentGetConfigAndExists = {
867
+ export type AndExists = {
882
868
  exists: boolean;
883
869
  };
884
870
 
885
- export type DeploymentGetConfigAndDeploymentsNin = string | number | boolean;
871
+ export type DeploymentGetConfigAndNin = string | number | boolean;
886
872
 
887
873
  /**
888
874
  * Not in
889
875
  */
890
- export type DeploymentGetConfigAndNin = {
876
+ export type AndNin = {
891
877
  nin: Array<string | number | boolean>;
892
878
  };
893
879
 
894
- export type DeploymentGetConfigAndDeploymentsIn = string | number | boolean;
880
+ export type DeploymentGetConfigAndIn = string | number | boolean;
895
881
 
896
882
  /**
897
883
  * In
898
884
  */
899
- export type DeploymentGetConfigAndIn = {
885
+ export type AndIn = {
900
886
  in: Array<string | number | boolean>;
901
887
  };
902
888
 
903
889
  /**
904
890
  * Less than or equal to
905
891
  */
906
- export type DeploymentGetConfigAndLte = {
892
+ export type AndLte = {
907
893
  lte: number;
908
894
  };
909
895
 
910
896
  /**
911
897
  * Less than
912
898
  */
913
- export type DeploymentGetConfigAndLt = {
899
+ export type AndLt = {
914
900
  lt: number;
915
901
  };
916
902
 
917
903
  /**
918
904
  * Greater than or equal to
919
905
  */
920
- export type DeploymentGetConfigAndGte = {
906
+ export type AndGte = {
921
907
  gte: number;
922
908
  };
923
909
 
924
910
  /**
925
911
  * Greater than
926
912
  */
927
- export type DeploymentGetConfigAndGt = {
913
+ export type AndGt = {
928
914
  gt: number;
929
915
  };
930
916
 
931
- export type DeploymentGetConfigAndDeploymentsNe = string | number | boolean;
917
+ export type DeploymentGetConfigAndNe = string | number | boolean;
932
918
 
933
919
  /**
934
920
  * Not equal to
935
921
  */
936
- export type DeploymentGetConfigAndNe = {
922
+ export type AndNe = {
937
923
  ne: string | number | boolean;
938
924
  };
939
925
 
940
- export type DeploymentGetConfigAndDeploymentsEq = string | number | boolean;
926
+ export type DeploymentGetConfigAndEq = string | number | boolean;
941
927
 
942
928
  /**
943
929
  * Equal to
944
930
  */
945
- export type DeploymentGetConfigAndEq = {
931
+ export type AndEq = {
946
932
  eq: string | number | boolean;
947
933
  };
948
934
 
949
- export type DeploymentGetConfigKnowledgeFilterDeploymentsAnd =
950
- | DeploymentGetConfigAndEq
951
- | DeploymentGetConfigAndNe
952
- | DeploymentGetConfigAndGt
953
- | DeploymentGetConfigAndGte
954
- | DeploymentGetConfigAndLt
955
- | DeploymentGetConfigAndLte
956
- | DeploymentGetConfigAndIn
957
- | DeploymentGetConfigAndNin
958
- | DeploymentGetConfigAndExists;
935
+ export type KnowledgeFilterAnd =
936
+ | AndEq
937
+ | AndNe
938
+ | AndGt
939
+ | AndGte
940
+ | AndLt
941
+ | AndLte
942
+ | AndIn
943
+ | AndNin
944
+ | AndExists;
959
945
 
960
946
  /**
961
947
  * And
962
948
  */
963
- export type DeploymentGetConfigKnowledgeFilterAnd = {
949
+ export type And = {
964
950
  and: Array<
965
951
  {
966
952
  [k: string]:
967
- | DeploymentGetConfigAndEq
968
- | DeploymentGetConfigAndNe
969
- | DeploymentGetConfigAndGt
970
- | DeploymentGetConfigAndGte
971
- | DeploymentGetConfigAndLt
972
- | DeploymentGetConfigAndLte
973
- | DeploymentGetConfigAndIn
974
- | DeploymentGetConfigAndNin
975
- | DeploymentGetConfigAndExists;
953
+ | AndEq
954
+ | AndNe
955
+ | AndGt
956
+ | AndGte
957
+ | AndLt
958
+ | AndLte
959
+ | AndIn
960
+ | AndNin
961
+ | AndExists;
976
962
  }
977
963
  >;
978
964
  };
@@ -980,103 +966,91 @@ export type DeploymentGetConfigKnowledgeFilterAnd = {
980
966
  /**
981
967
  * Exists
982
968
  */
983
- export type OneExists = {
969
+ export type Exists = {
984
970
  exists: boolean;
985
971
  };
986
972
 
987
- export type DeploymentGetConfig1DeploymentsNin = string | number | boolean;
973
+ export type OneNin = string | number | boolean;
988
974
 
989
975
  /**
990
976
  * Not in
991
977
  */
992
- export type DeploymentGetConfig1Nin = {
978
+ export type Nin = {
993
979
  nin: Array<string | number | boolean>;
994
980
  };
995
981
 
996
- export type DeploymentGetConfig1DeploymentsIn = string | number | boolean;
982
+ export type OneIn = string | number | boolean;
997
983
 
998
984
  /**
999
985
  * In
1000
986
  */
1001
- export type DeploymentGetConfig1In = {
987
+ export type In = {
1002
988
  in: Array<string | number | boolean>;
1003
989
  };
1004
990
 
1005
991
  /**
1006
992
  * Less than or equal to
1007
993
  */
1008
- export type OneLte = {
994
+ export type Lte = {
1009
995
  lte: number;
1010
996
  };
1011
997
 
1012
998
  /**
1013
999
  * Less than
1014
1000
  */
1015
- export type OneLt = {
1001
+ export type Lt = {
1016
1002
  lt: number;
1017
1003
  };
1018
1004
 
1019
1005
  /**
1020
1006
  * Greater than or equal to
1021
1007
  */
1022
- export type OneGte = {
1008
+ export type Gte = {
1023
1009
  gte: number;
1024
1010
  };
1025
1011
 
1026
1012
  /**
1027
1013
  * Greater than
1028
1014
  */
1029
- export type OneGt = {
1015
+ export type Gt = {
1030
1016
  gt: number;
1031
1017
  };
1032
1018
 
1033
- export type DeploymentGetConfig1DeploymentsNe = string | number | boolean;
1019
+ export type OneNe = string | number | boolean;
1034
1020
 
1035
1021
  /**
1036
1022
  * Not equal to
1037
1023
  */
1038
- export type DeploymentGetConfig1Ne = {
1024
+ export type Ne = {
1039
1025
  ne: string | number | boolean;
1040
1026
  };
1041
1027
 
1042
- export type DeploymentGetConfig1DeploymentsEq = string | number | boolean;
1028
+ export type OneEq = string | number | boolean;
1043
1029
 
1044
1030
  /**
1045
1031
  * Equal to
1046
1032
  */
1047
- export type DeploymentGetConfig1Eq = {
1033
+ export type Eq = {
1048
1034
  eq: string | number | boolean;
1049
1035
  };
1050
1036
 
1051
- export type DeploymentGetConfigKnowledgeFilter1 =
1052
- | DeploymentGetConfig1Eq
1053
- | DeploymentGetConfig1Ne
1054
- | OneGt
1055
- | OneGte
1056
- | OneLt
1057
- | OneLte
1058
- | DeploymentGetConfig1In
1059
- | DeploymentGetConfig1Nin
1060
- | OneExists;
1037
+ export type KnowledgeFilter1 =
1038
+ | Eq
1039
+ | Ne
1040
+ | Gt
1041
+ | Gte
1042
+ | Lt
1043
+ | Lte
1044
+ | In
1045
+ | Nin
1046
+ | Exists;
1061
1047
 
1062
1048
  /**
1063
1049
  * A filter to apply to the knowledge base chunk metadata when using knowledge bases in the deployment.
1064
1050
  */
1065
- export type DeploymentGetConfigKnowledgeFilter =
1066
- | DeploymentGetConfigKnowledgeFilterAnd
1067
- | DeploymentGetConfigKnowledgeFilterOr
1068
- | {
1069
- [k: string]:
1070
- | DeploymentGetConfig1Eq
1071
- | DeploymentGetConfig1Ne
1072
- | OneGt
1073
- | OneGte
1074
- | OneLt
1075
- | OneLte
1076
- | DeploymentGetConfig1In
1077
- | DeploymentGetConfig1Nin
1078
- | OneExists;
1079
- };
1051
+ export type KnowledgeFilter = And | Or | {
1052
+ [k: string]: Eq | Ne | Gt | Gte | Lt | Lte | In | Nin | Exists;
1053
+ };
1080
1054
 
1081
1055
  export type DeploymentGetConfigRequestBody = {
1082
1056
  /**
@@ -1096,11 +1070,11 @@ export type DeploymentGetConfigRequestBody = {
1096
1070
  */
1097
1071
  prefixMessages?:
1098
1072
  | Array<
1099
- | PrefixMessagesSystemMessage
1100
- | PrefixMessagesDeveloperMessage
1101
- | PrefixMessagesUserMessage
1102
- | PrefixMessagesAssistantMessage
1103
- | PrefixMessagesToolMessage
1073
+ | SystemMessage
1074
+ | DeveloperMessage
1075
+ | UserMessage
1076
+ | AssistantMessage
1077
+ | ToolMessage
1104
1078
  >
1105
1079
  | undefined;
1106
1080
  /**
@@ -1108,11 +1082,11 @@ export type DeploymentGetConfigRequestBody = {
1108
1082
  */
1109
1083
  messages?:
1110
1084
  | Array<
1111
- | DeploymentGetConfigMessagesSystemMessage
1112
- | DeploymentGetConfigMessagesDeveloperMessage
1113
- | DeploymentGetConfigMessagesUserMessage
1114
- | DeploymentGetConfigMessagesAssistantMessage
1115
- | DeploymentGetConfigMessagesToolMessage
1085
+ | MessagesSystemMessage
1086
+ | MessagesDeveloperMessage
1087
+ | MessagesUserMessage
1088
+ | MessagesAssistantMessage
1089
+ | MessagesToolMessage
1116
1090
  >
1117
1091
  | undefined;
1118
1092
  /**
@@ -1134,28 +1108,15 @@ export type DeploymentGetConfigRequestBody = {
1134
1108
  /**
1135
1109
  * A list of documents from your external knowledge base (e.g., chunks retrieved from your own vector database or RAG pipeline) that provide context for the model response. These documents can be used by evaluators and guardrails to assess the relevance and accuracy of the model output against the provided context.
1136
1110
  */
1137
- documents?: Array<DeploymentGetConfigDocuments> | undefined;
1138
- invokeOptions?: DeploymentGetConfigInvokeOptions | undefined;
1139
- thread?: DeploymentGetConfigThread | undefined;
1111
+ documents?: Array<Documents> | undefined;
1112
+ invokeOptions?: InvokeOptions | undefined;
1113
+ thread?: Thread | undefined;
1140
1114
  /**
1141
1115
  * A filter to apply to the knowledge base chunk metadata when using knowledge bases in the deployment.
1142
1116
  */
1143
- knowledgeFilter?:
1144
- | DeploymentGetConfigKnowledgeFilterAnd
1145
- | DeploymentGetConfigKnowledgeFilterOr
1146
- | {
1147
- [k: string]:
1148
- | DeploymentGetConfig1Eq
1149
- | DeploymentGetConfig1Ne
1150
- | OneGt
1151
- | OneGte
1152
- | OneLt
1153
- | OneLte
1154
- | DeploymentGetConfig1In
1155
- | DeploymentGetConfig1Nin
1156
- | OneExists;
1157
- }
1158
- | undefined;
1117
+ knowledgeFilter?: And | Or | {
1118
+ [k: string]: Eq | Ne | Gt | Gte | Lt | Lte | In | Nin | Exists;
1119
+ } | undefined;
1159
1120
  };
1160
1121
 
1161
1122
  /**
@@ -1717,110 +1678,103 @@ export type DeploymentGetConfigResponseBody = {
1717
1678
  };
1718
1679
 
1719
1680
  /** @internal */
1720
- export type DeploymentGetConfigContentDeploymentsRequest2$Outbound =
1681
+ export type DeploymentGetConfigContentDeployments2$Outbound =
1721
1682
  components.TextContentPartSchema$Outbound;
1722
1683
 
1723
1684
  /** @internal */
1724
- export const DeploymentGetConfigContentDeploymentsRequest2$outboundSchema:
1725
- z.ZodType<
1726
- DeploymentGetConfigContentDeploymentsRequest2$Outbound,
1727
- z.ZodTypeDef,
1728
- DeploymentGetConfigContentDeploymentsRequest2
1729
- > = components.TextContentPartSchema$outboundSchema;
1685
+ export const DeploymentGetConfigContentDeployments2$outboundSchema: z.ZodType<
1686
+ DeploymentGetConfigContentDeployments2$Outbound,
1687
+ z.ZodTypeDef,
1688
+ DeploymentGetConfigContentDeployments2
1689
+ > = components.TextContentPartSchema$outboundSchema;
1730
1690
 
1731
- export function deploymentGetConfigContentDeploymentsRequest2ToJSON(
1732
- deploymentGetConfigContentDeploymentsRequest2:
1733
- DeploymentGetConfigContentDeploymentsRequest2,
1691
+ export function deploymentGetConfigContentDeployments2ToJSON(
1692
+ deploymentGetConfigContentDeployments2:
1693
+ DeploymentGetConfigContentDeployments2,
1734
1694
  ): string {
1735
1695
  return JSON.stringify(
1736
- DeploymentGetConfigContentDeploymentsRequest2$outboundSchema.parse(
1737
- deploymentGetConfigContentDeploymentsRequest2,
1696
+ DeploymentGetConfigContentDeployments2$outboundSchema.parse(
1697
+ deploymentGetConfigContentDeployments2,
1738
1698
  ),
1739
1699
  );
1740
1700
  }
1741
1701
 
1742
1702
  /** @internal */
1743
- export type DeploymentGetConfigPrefixMessagesDeploymentsRequestRequestBody5Content$Outbound =
1703
+ export type DeploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContent$Outbound =
1744
1704
  | string
1745
1705
  | Array<components.TextContentPartSchema$Outbound>;
1746
1706
 
1747
1707
  /** @internal */
1748
- export const DeploymentGetConfigPrefixMessagesDeploymentsRequestRequestBody5Content$outboundSchema:
1708
+ export const DeploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContent$outboundSchema:
1749
1709
  z.ZodType<
1750
- DeploymentGetConfigPrefixMessagesDeploymentsRequestRequestBody5Content$Outbound,
1710
+ DeploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContent$Outbound,
1751
1711
  z.ZodTypeDef,
1752
- DeploymentGetConfigPrefixMessagesDeploymentsRequestRequestBody5Content
1712
+ DeploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContent
1753
1713
  > = z.union([
1754
1714
  z.string(),
1755
1715
  z.array(components.TextContentPartSchema$outboundSchema),
1756
1716
  ]);
1757
1717
 
1758
- export function deploymentGetConfigPrefixMessagesDeploymentsRequestRequestBody5ContentToJSON(
1759
- deploymentGetConfigPrefixMessagesDeploymentsRequestRequestBody5Content:
1760
- DeploymentGetConfigPrefixMessagesDeploymentsRequestRequestBody5Content,
1718
+ export function deploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContentToJSON(
1719
+ deploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContent:
1720
+ DeploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContent,
1761
1721
  ): string {
1762
1722
  return JSON.stringify(
1763
- DeploymentGetConfigPrefixMessagesDeploymentsRequestRequestBody5Content$outboundSchema
1723
+ DeploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContent$outboundSchema
1764
1724
  .parse(
1765
- deploymentGetConfigPrefixMessagesDeploymentsRequestRequestBody5Content,
1725
+ deploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContent,
1766
1726
  ),
1767
1727
  );
1768
1728
  }
1769
1729
 
1770
1730
  /** @internal */
1771
- export const DeploymentGetConfigPrefixMessagesDeploymentsType$outboundSchema:
1772
- z.ZodNativeEnum<typeof DeploymentGetConfigPrefixMessagesDeploymentsType> = z
1773
- .nativeEnum(DeploymentGetConfigPrefixMessagesDeploymentsType);
1731
+ export const DeploymentGetConfigPrefixMessagesType$outboundSchema:
1732
+ z.ZodNativeEnum<typeof DeploymentGetConfigPrefixMessagesType> = z.nativeEnum(
1733
+ DeploymentGetConfigPrefixMessagesType,
1734
+ );
1774
1735
 
1775
1736
  /** @internal */
1776
- export const DeploymentGetConfigPrefixMessagesTtl$outboundSchema:
1777
- z.ZodNativeEnum<typeof DeploymentGetConfigPrefixMessagesTtl> = z.nativeEnum(
1778
- DeploymentGetConfigPrefixMessagesTtl,
1779
- );
1737
+ export const PrefixMessagesTtl$outboundSchema: z.ZodNativeEnum<
1738
+ typeof PrefixMessagesTtl
1739
+ > = z.nativeEnum(PrefixMessagesTtl);
1780
1740
 
1781
1741
  /** @internal */
1782
- export type DeploymentGetConfigPrefixMessagesCacheControl$Outbound = {
1742
+ export type PrefixMessagesCacheControl$Outbound = {
1783
1743
  type: string;
1784
1744
  ttl: string;
1785
1745
  };
1786
1746
 
1787
1747
  /** @internal */
1788
- export const DeploymentGetConfigPrefixMessagesCacheControl$outboundSchema:
1789
- z.ZodType<
1790
- DeploymentGetConfigPrefixMessagesCacheControl$Outbound,
1791
- z.ZodTypeDef,
1792
- DeploymentGetConfigPrefixMessagesCacheControl
1793
- > = z.object({
1794
- type: DeploymentGetConfigPrefixMessagesDeploymentsType$outboundSchema,
1795
- ttl: DeploymentGetConfigPrefixMessagesTtl$outboundSchema.default("5m"),
1796
- });
1748
+ export const PrefixMessagesCacheControl$outboundSchema: z.ZodType<
1749
+ PrefixMessagesCacheControl$Outbound,
1750
+ z.ZodTypeDef,
1751
+ PrefixMessagesCacheControl
1752
+ > = z.object({
1753
+ type: DeploymentGetConfigPrefixMessagesType$outboundSchema,
1754
+ ttl: PrefixMessagesTtl$outboundSchema.default("5m"),
1755
+ });
1797
1756
 
1798
- export function deploymentGetConfigPrefixMessagesCacheControlToJSON(
1799
- deploymentGetConfigPrefixMessagesCacheControl:
1800
- DeploymentGetConfigPrefixMessagesCacheControl,
1757
+ export function prefixMessagesCacheControlToJSON(
1758
+ prefixMessagesCacheControl: PrefixMessagesCacheControl,
1801
1759
  ): string {
1802
1760
  return JSON.stringify(
1803
- DeploymentGetConfigPrefixMessagesCacheControl$outboundSchema.parse(
1804
- deploymentGetConfigPrefixMessagesCacheControl,
1805
- ),
1761
+ PrefixMessagesCacheControl$outboundSchema.parse(prefixMessagesCacheControl),
1806
1762
  );
1807
1763
  }
1808
1764
 
1809
1765
  /** @internal */
1810
- export type PrefixMessagesToolMessage$Outbound = {
1766
+ export type ToolMessage$Outbound = {
1811
1767
  role: "tool";
1812
1768
  content: string | Array<components.TextContentPartSchema$Outbound>;
1813
1769
  tool_call_id: string | null;
1814
- cache_control?:
1815
- | DeploymentGetConfigPrefixMessagesCacheControl$Outbound
1816
- | undefined;
1770
+ cache_control?: PrefixMessagesCacheControl$Outbound | undefined;
1817
1771
  };
1818
1772
 
1819
1773
  /** @internal */
1820
- export const PrefixMessagesToolMessage$outboundSchema: z.ZodType<
1821
- PrefixMessagesToolMessage$Outbound,
1774
+ export const ToolMessage$outboundSchema: z.ZodType<
1775
+ ToolMessage$Outbound,
1822
1776
  z.ZodTypeDef,
1823
- PrefixMessagesToolMessage
1777
+ ToolMessage
1824
1778
  > = z.object({
1825
1779
  role: z.literal("tool"),
1826
1780
  content: z.union([
@@ -1828,9 +1782,8 @@ export const PrefixMessagesToolMessage$outboundSchema: z.ZodType<
1828
1782
  z.array(components.TextContentPartSchema$outboundSchema),
1829
1783
  ]),
1830
1784
  toolCallId: z.nullable(z.string()),
1831
- cacheControl: z.lazy(() =>
1832
- DeploymentGetConfigPrefixMessagesCacheControl$outboundSchema
1833
- ).optional(),
1785
+ cacheControl: z.lazy(() => PrefixMessagesCacheControl$outboundSchema)
1786
+ .optional(),
1834
1787
  }).transform((v) => {
1835
1788
  return remap$(v, {
1836
1789
  toolCallId: "tool_call_id",
@@ -1838,26 +1791,22 @@ export const PrefixMessagesToolMessage$outboundSchema: z.ZodType<
1838
1791
  });
1839
1792
  });
1840
1793
 
1841
- export function prefixMessagesToolMessageToJSON(
1842
- prefixMessagesToolMessage: PrefixMessagesToolMessage,
1843
- ): string {
1844
- return JSON.stringify(
1845
- PrefixMessagesToolMessage$outboundSchema.parse(prefixMessagesToolMessage),
1846
- );
1794
+ export function toolMessageToJSON(toolMessage: ToolMessage): string {
1795
+ return JSON.stringify(ToolMessage$outboundSchema.parse(toolMessage));
1847
1796
  }
1848
1797
 
1849
1798
  /** @internal */
1850
- export type DeploymentGetConfigContentDeployments2$Outbound =
1799
+ export type DeploymentGetConfigContent2$Outbound =
1851
1800
  | (components.TextContentPartSchema$Outbound & { type: "text" })
1852
1801
  | components.RefusalPartSchema$Outbound
1853
1802
  | components.ReasoningPartSchema$Outbound
1854
1803
  | components.RedactedReasoningPartSchema$Outbound;
1855
1804
 
1856
1805
  /** @internal */
1857
- export const DeploymentGetConfigContentDeployments2$outboundSchema: z.ZodType<
1858
- DeploymentGetConfigContentDeployments2$Outbound,
1806
+ export const DeploymentGetConfigContent2$outboundSchema: z.ZodType<
1807
+ DeploymentGetConfigContent2$Outbound,
1859
1808
  z.ZodTypeDef,
1860
- DeploymentGetConfigContentDeployments2
1809
+ DeploymentGetConfigContent2
1861
1810
  > = z.union([
1862
1811
  components.TextContentPartSchema$outboundSchema.and(
1863
1812
  z.object({ type: z.literal("text") }),
@@ -1867,19 +1816,18 @@ export const DeploymentGetConfigContentDeployments2$outboundSchema: z.ZodType<
1867
1816
  components.RedactedReasoningPartSchema$outboundSchema,
1868
1817
  ]);
1869
1818
 
1870
- export function deploymentGetConfigContentDeployments2ToJSON(
1871
- deploymentGetConfigContentDeployments2:
1872
- DeploymentGetConfigContentDeployments2,
1819
+ export function deploymentGetConfigContent2ToJSON(
1820
+ deploymentGetConfigContent2: DeploymentGetConfigContent2,
1873
1821
  ): string {
1874
1822
  return JSON.stringify(
1875
- DeploymentGetConfigContentDeployments2$outboundSchema.parse(
1876
- deploymentGetConfigContentDeployments2,
1823
+ DeploymentGetConfigContent2$outboundSchema.parse(
1824
+ deploymentGetConfigContent2,
1877
1825
  ),
1878
1826
  );
1879
1827
  }
1880
1828
 
1881
1829
  /** @internal */
1882
- export type DeploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContent$Outbound =
1830
+ export type DeploymentGetConfigPrefixMessagesDeploymentsRequestContent$Outbound =
1883
1831
  | string
1884
1832
  | Array<
1885
1833
  | (components.TextContentPartSchema$Outbound & { type: "text" })
@@ -1889,11 +1837,11 @@ export type DeploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyConten
1889
1837
  >;
1890
1838
 
1891
1839
  /** @internal */
1892
- export const DeploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContent$outboundSchema:
1840
+ export const DeploymentGetConfigPrefixMessagesDeploymentsRequestContent$outboundSchema:
1893
1841
  z.ZodType<
1894
- DeploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContent$Outbound,
1842
+ DeploymentGetConfigPrefixMessagesDeploymentsRequestContent$Outbound,
1895
1843
  z.ZodTypeDef,
1896
- DeploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContent
1844
+ DeploymentGetConfigPrefixMessagesDeploymentsRequestContent
1897
1845
  > = z.union([
1898
1846
  z.string(),
1899
1847
  z.array(
@@ -1908,114 +1856,97 @@ export const DeploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyConte
1908
1856
  ),
1909
1857
  ]);
1910
1858
 
1911
- export function deploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContentToJSON(
1912
- deploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContent:
1913
- DeploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContent,
1859
+ export function deploymentGetConfigPrefixMessagesDeploymentsRequestContentToJSON(
1860
+ deploymentGetConfigPrefixMessagesDeploymentsRequestContent:
1861
+ DeploymentGetConfigPrefixMessagesDeploymentsRequestContent,
1914
1862
  ): string {
1915
1863
  return JSON.stringify(
1916
- DeploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContent$outboundSchema
1917
- .parse(
1918
- deploymentGetConfigPrefixMessagesDeploymentsRequestRequestBodyContent,
1919
- ),
1864
+ DeploymentGetConfigPrefixMessagesDeploymentsRequestContent$outboundSchema
1865
+ .parse(deploymentGetConfigPrefixMessagesDeploymentsRequestContent),
1920
1866
  );
1921
1867
  }
1922
1868
 
1923
1869
  /** @internal */
1924
- export type PrefixMessagesAudio$Outbound = {
1870
+ export type Audio$Outbound = {
1925
1871
  id: string;
1926
1872
  };
1927
1873
 
1928
1874
  /** @internal */
1929
- export const PrefixMessagesAudio$outboundSchema: z.ZodType<
1930
- PrefixMessagesAudio$Outbound,
1875
+ export const Audio$outboundSchema: z.ZodType<
1876
+ Audio$Outbound,
1931
1877
  z.ZodTypeDef,
1932
- PrefixMessagesAudio
1878
+ Audio
1933
1879
  > = z.object({
1934
1880
  id: z.string(),
1935
1881
  });
1936
1882
 
1937
- export function prefixMessagesAudioToJSON(
1938
- prefixMessagesAudio: PrefixMessagesAudio,
1939
- ): string {
1940
- return JSON.stringify(
1941
- PrefixMessagesAudio$outboundSchema.parse(prefixMessagesAudio),
1942
- );
1883
+ export function audioToJSON(audio: Audio): string {
1884
+ return JSON.stringify(Audio$outboundSchema.parse(audio));
1943
1885
  }
1944
1886
 
1945
1887
  /** @internal */
1946
- export const DeploymentGetConfigPrefixMessagesType$outboundSchema:
1947
- z.ZodNativeEnum<typeof DeploymentGetConfigPrefixMessagesType> = z.nativeEnum(
1948
- DeploymentGetConfigPrefixMessagesType,
1949
- );
1888
+ export const PrefixMessagesType$outboundSchema: z.ZodNativeEnum<
1889
+ typeof PrefixMessagesType
1890
+ > = z.nativeEnum(PrefixMessagesType);
1950
1891
 
1951
1892
  /** @internal */
1952
- export type DeploymentGetConfigPrefixMessagesFunction$Outbound = {
1893
+ export type PrefixMessagesFunction$Outbound = {
1953
1894
  name?: string | undefined;
1954
1895
  arguments?: string | undefined;
1955
1896
  };
1956
1897
 
1957
1898
  /** @internal */
1958
- export const DeploymentGetConfigPrefixMessagesFunction$outboundSchema:
1959
- z.ZodType<
1960
- DeploymentGetConfigPrefixMessagesFunction$Outbound,
1961
- z.ZodTypeDef,
1962
- DeploymentGetConfigPrefixMessagesFunction
1963
- > = z.object({
1964
- name: z.string().optional(),
1965
- arguments: z.string().optional(),
1966
- });
1899
+ export const PrefixMessagesFunction$outboundSchema: z.ZodType<
1900
+ PrefixMessagesFunction$Outbound,
1901
+ z.ZodTypeDef,
1902
+ PrefixMessagesFunction
1903
+ > = z.object({
1904
+ name: z.string().optional(),
1905
+ arguments: z.string().optional(),
1906
+ });
1967
1907
 
1968
- export function deploymentGetConfigPrefixMessagesFunctionToJSON(
1969
- deploymentGetConfigPrefixMessagesFunction:
1970
- DeploymentGetConfigPrefixMessagesFunction,
1908
+ export function prefixMessagesFunctionToJSON(
1909
+ prefixMessagesFunction: PrefixMessagesFunction,
1971
1910
  ): string {
1972
1911
  return JSON.stringify(
1973
- DeploymentGetConfigPrefixMessagesFunction$outboundSchema.parse(
1974
- deploymentGetConfigPrefixMessagesFunction,
1975
- ),
1912
+ PrefixMessagesFunction$outboundSchema.parse(prefixMessagesFunction),
1976
1913
  );
1977
1914
  }
1978
1915
 
1979
1916
  /** @internal */
1980
- export type DeploymentGetConfigPrefixMessagesToolCalls$Outbound = {
1917
+ export type PrefixMessagesToolCalls$Outbound = {
1981
1918
  id: string;
1982
1919
  type: string;
1983
- function: DeploymentGetConfigPrefixMessagesFunction$Outbound;
1920
+ function: PrefixMessagesFunction$Outbound;
1984
1921
  thought_signature?: string | undefined;
1985
1922
  };
1986
1923
 
1987
1924
  /** @internal */
1988
- export const DeploymentGetConfigPrefixMessagesToolCalls$outboundSchema:
1989
- z.ZodType<
1990
- DeploymentGetConfigPrefixMessagesToolCalls$Outbound,
1991
- z.ZodTypeDef,
1992
- DeploymentGetConfigPrefixMessagesToolCalls
1993
- > = z.object({
1994
- id: z.string(),
1995
- type: DeploymentGetConfigPrefixMessagesType$outboundSchema,
1996
- function: z.lazy(() =>
1997
- DeploymentGetConfigPrefixMessagesFunction$outboundSchema
1998
- ),
1999
- thoughtSignature: z.string().optional(),
2000
- }).transform((v) => {
2001
- return remap$(v, {
2002
- thoughtSignature: "thought_signature",
2003
- });
1925
+ export const PrefixMessagesToolCalls$outboundSchema: z.ZodType<
1926
+ PrefixMessagesToolCalls$Outbound,
1927
+ z.ZodTypeDef,
1928
+ PrefixMessagesToolCalls
1929
+ > = z.object({
1930
+ id: z.string(),
1931
+ type: PrefixMessagesType$outboundSchema,
1932
+ function: z.lazy(() => PrefixMessagesFunction$outboundSchema),
1933
+ thoughtSignature: z.string().optional(),
1934
+ }).transform((v) => {
1935
+ return remap$(v, {
1936
+ thoughtSignature: "thought_signature",
2004
1937
  });
1938
+ });
2005
1939
 
2006
- export function deploymentGetConfigPrefixMessagesToolCallsToJSON(
2007
- deploymentGetConfigPrefixMessagesToolCalls:
2008
- DeploymentGetConfigPrefixMessagesToolCalls,
1940
+ export function prefixMessagesToolCallsToJSON(
1941
+ prefixMessagesToolCalls: PrefixMessagesToolCalls,
2009
1942
  ): string {
2010
1943
  return JSON.stringify(
2011
- DeploymentGetConfigPrefixMessagesToolCalls$outboundSchema.parse(
2012
- deploymentGetConfigPrefixMessagesToolCalls,
2013
- ),
1944
+ PrefixMessagesToolCalls$outboundSchema.parse(prefixMessagesToolCalls),
2014
1945
  );
2015
1946
  }
2016
1947
 
2017
1948
  /** @internal */
2018
- export type PrefixMessagesAssistantMessage$Outbound = {
1949
+ export type AssistantMessage$Outbound = {
2019
1950
  content?:
2020
1951
  | string
2021
1952
  | Array<
@@ -2029,17 +1960,15 @@ export type PrefixMessagesAssistantMessage$Outbound = {
2029
1960
  refusal?: string | null | undefined;
2030
1961
  role: "assistant";
2031
1962
  name?: string | undefined;
2032
- audio?: PrefixMessagesAudio$Outbound | null | undefined;
2033
- tool_calls?:
2034
- | Array<DeploymentGetConfigPrefixMessagesToolCalls$Outbound>
2035
- | undefined;
1963
+ audio?: Audio$Outbound | null | undefined;
1964
+ tool_calls?: Array<PrefixMessagesToolCalls$Outbound> | undefined;
2036
1965
  };
2037
1966
 
2038
1967
  /** @internal */
2039
- export const PrefixMessagesAssistantMessage$outboundSchema: z.ZodType<
2040
- PrefixMessagesAssistantMessage$Outbound,
1968
+ export const AssistantMessage$outboundSchema: z.ZodType<
1969
+ AssistantMessage$Outbound,
2041
1970
  z.ZodTypeDef,
2042
- PrefixMessagesAssistantMessage
1971
+ AssistantMessage
2043
1972
  > = z.object({
2044
1973
  content: z.nullable(
2045
1974
  z.union([
@@ -2059,24 +1988,20 @@ export const PrefixMessagesAssistantMessage$outboundSchema: z.ZodType<
2059
1988
  refusal: z.nullable(z.string()).optional(),
2060
1989
  role: z.literal("assistant"),
2061
1990
  name: z.string().optional(),
2062
- audio: z.nullable(z.lazy(() => PrefixMessagesAudio$outboundSchema))
1991
+ audio: z.nullable(z.lazy(() => Audio$outboundSchema)).optional(),
1992
+ toolCalls: z.array(z.lazy(() => PrefixMessagesToolCalls$outboundSchema))
2063
1993
  .optional(),
2064
- toolCalls: z.array(
2065
- z.lazy(() => DeploymentGetConfigPrefixMessagesToolCalls$outboundSchema),
2066
- ).optional(),
2067
1994
  }).transform((v) => {
2068
1995
  return remap$(v, {
2069
1996
  toolCalls: "tool_calls",
2070
1997
  });
2071
1998
  });
2072
1999
 
2073
- export function prefixMessagesAssistantMessageToJSON(
2074
- prefixMessagesAssistantMessage: PrefixMessagesAssistantMessage,
2000
+ export function assistantMessageToJSON(
2001
+ assistantMessage: AssistantMessage,
2075
2002
  ): string {
2076
2003
  return JSON.stringify(
2077
- PrefixMessagesAssistantMessage$outboundSchema.parse(
2078
- prefixMessagesAssistantMessage,
2079
- ),
2004
+ AssistantMessage$outboundSchema.parse(assistantMessage),
2080
2005
  );
2081
2006
  }
2082
2007
 
@@ -2087,114 +2012,94 @@ export const DeploymentGetConfig2DeploymentsType$outboundSchema:
2087
2012
  );
2088
2013
 
2089
2014
  /** @internal */
2090
- export const DeploymentGetConfig2Ttl$outboundSchema: z.ZodNativeEnum<
2091
- typeof DeploymentGetConfig2Ttl
2092
- > = z.nativeEnum(DeploymentGetConfig2Ttl);
2015
+ export const Ttl$outboundSchema: z.ZodNativeEnum<typeof Ttl> = z.nativeEnum(
2016
+ Ttl,
2017
+ );
2093
2018
 
2094
2019
  /** @internal */
2095
- export type DeploymentGetConfig2CacheControl$Outbound = {
2020
+ export type CacheControl$Outbound = {
2096
2021
  type: string;
2097
2022
  ttl: string;
2098
2023
  };
2099
2024
 
2100
2025
  /** @internal */
2101
- export const DeploymentGetConfig2CacheControl$outboundSchema: z.ZodType<
2102
- DeploymentGetConfig2CacheControl$Outbound,
2026
+ export const CacheControl$outboundSchema: z.ZodType<
2027
+ CacheControl$Outbound,
2103
2028
  z.ZodTypeDef,
2104
- DeploymentGetConfig2CacheControl
2029
+ CacheControl
2105
2030
  > = z.object({
2106
2031
  type: DeploymentGetConfig2DeploymentsType$outboundSchema,
2107
- ttl: DeploymentGetConfig2Ttl$outboundSchema.default("5m"),
2032
+ ttl: Ttl$outboundSchema.default("5m"),
2108
2033
  });
2109
2034
 
2110
- export function deploymentGetConfig2CacheControlToJSON(
2111
- deploymentGetConfig2CacheControl: DeploymentGetConfig2CacheControl,
2112
- ): string {
2113
- return JSON.stringify(
2114
- DeploymentGetConfig2CacheControl$outboundSchema.parse(
2115
- deploymentGetConfig2CacheControl,
2116
- ),
2117
- );
2035
+ export function cacheControlToJSON(cacheControl: CacheControl): string {
2036
+ return JSON.stringify(CacheControl$outboundSchema.parse(cacheControl));
2118
2037
  }
2119
2038
 
2120
2039
  /** @internal */
2121
- export type DeploymentGetConfig24$Outbound = {
2040
+ export type Four$Outbound = {
2122
2041
  type: "file";
2123
- cache_control?: DeploymentGetConfig2CacheControl$Outbound | undefined;
2042
+ cache_control?: CacheControl$Outbound | undefined;
2124
2043
  file: components.FileContentPartSchema$Outbound;
2125
2044
  };
2126
2045
 
2127
2046
  /** @internal */
2128
- export const DeploymentGetConfig24$outboundSchema: z.ZodType<
2129
- DeploymentGetConfig24$Outbound,
2130
- z.ZodTypeDef,
2131
- DeploymentGetConfig24
2132
- > = z.object({
2133
- type: z.literal("file"),
2134
- cacheControl: z.lazy(() => DeploymentGetConfig2CacheControl$outboundSchema)
2135
- .optional(),
2136
- file: components.FileContentPartSchema$outboundSchema,
2137
- }).transform((v) => {
2138
- return remap$(v, {
2139
- cacheControl: "cache_control",
2047
+ export const Four$outboundSchema: z.ZodType<Four$Outbound, z.ZodTypeDef, Four> =
2048
+ z.object({
2049
+ type: z.literal("file"),
2050
+ cacheControl: z.lazy(() => CacheControl$outboundSchema).optional(),
2051
+ file: components.FileContentPartSchema$outboundSchema,
2052
+ }).transform((v) => {
2053
+ return remap$(v, {
2054
+ cacheControl: "cache_control",
2055
+ });
2140
2056
  });
2141
- });
2142
2057
 
2143
- export function deploymentGetConfig24ToJSON(
2144
- deploymentGetConfig24: DeploymentGetConfig24,
2145
- ): string {
2146
- return JSON.stringify(
2147
- DeploymentGetConfig24$outboundSchema.parse(deploymentGetConfig24),
2148
- );
2058
+ export function fourToJSON(four: Four): string {
2059
+ return JSON.stringify(Four$outboundSchema.parse(four));
2149
2060
  }
2150
2061
 
2151
2062
  /** @internal */
2152
- export type DeploymentGetConfigContent2$Outbound =
2063
+ export type Content2$Outbound =
2153
2064
  | (components.TextContentPartSchema$Outbound & { type: "text" })
2154
2065
  | components.ImageContentPartSchema$Outbound
2155
2066
  | components.AudioContentPartSchema$Outbound
2156
- | DeploymentGetConfig24$Outbound;
2067
+ | Four$Outbound;
2157
2068
 
2158
2069
  /** @internal */
2159
- export const DeploymentGetConfigContent2$outboundSchema: z.ZodType<
2160
- DeploymentGetConfigContent2$Outbound,
2070
+ export const Content2$outboundSchema: z.ZodType<
2071
+ Content2$Outbound,
2161
2072
  z.ZodTypeDef,
2162
- DeploymentGetConfigContent2
2073
+ Content2
2163
2074
  > = z.union([
2164
2075
  components.TextContentPartSchema$outboundSchema.and(
2165
2076
  z.object({ type: z.literal("text") }),
2166
2077
  ),
2167
2078
  components.ImageContentPartSchema$outboundSchema,
2168
2079
  components.AudioContentPartSchema$outboundSchema,
2169
- z.lazy(() => DeploymentGetConfig24$outboundSchema),
2080
+ z.lazy(() => Four$outboundSchema),
2170
2081
  ]);
2171
2082
 
2172
- export function deploymentGetConfigContent2ToJSON(
2173
- deploymentGetConfigContent2: DeploymentGetConfigContent2,
2174
- ): string {
2175
- return JSON.stringify(
2176
- DeploymentGetConfigContent2$outboundSchema.parse(
2177
- deploymentGetConfigContent2,
2178
- ),
2179
- );
2083
+ export function content2ToJSON(content2: Content2): string {
2084
+ return JSON.stringify(Content2$outboundSchema.parse(content2));
2180
2085
  }
2181
2086
 
2182
2087
  /** @internal */
2183
- export type DeploymentGetConfigPrefixMessagesDeploymentsRequestContent$Outbound =
2088
+ export type DeploymentGetConfigPrefixMessagesDeploymentsContent$Outbound =
2184
2089
  | string
2185
2090
  | Array<
2186
2091
  | (components.TextContentPartSchema$Outbound & { type: "text" })
2187
2092
  | components.ImageContentPartSchema$Outbound
2188
2093
  | components.AudioContentPartSchema$Outbound
2189
- | DeploymentGetConfig24$Outbound
2094
+ | Four$Outbound
2190
2095
  >;
2191
2096
 
2192
2097
  /** @internal */
2193
- export const DeploymentGetConfigPrefixMessagesDeploymentsRequestContent$outboundSchema:
2098
+ export const DeploymentGetConfigPrefixMessagesDeploymentsContent$outboundSchema:
2194
2099
  z.ZodType<
2195
- DeploymentGetConfigPrefixMessagesDeploymentsRequestContent$Outbound,
2100
+ DeploymentGetConfigPrefixMessagesDeploymentsContent$Outbound,
2196
2101
  z.ZodTypeDef,
2197
- DeploymentGetConfigPrefixMessagesDeploymentsRequestContent
2102
+ DeploymentGetConfigPrefixMessagesDeploymentsContent
2198
2103
  > = z.union([
2199
2104
  z.string(),
2200
2105
  z.array(
@@ -2204,23 +2109,24 @@ export const DeploymentGetConfigPrefixMessagesDeploymentsRequestContent$outbound
2204
2109
  ),
2205
2110
  components.ImageContentPartSchema$outboundSchema,
2206
2111
  components.AudioContentPartSchema$outboundSchema,
2207
- z.lazy(() => DeploymentGetConfig24$outboundSchema),
2112
+ z.lazy(() => Four$outboundSchema),
2208
2113
  ]),
2209
2114
  ),
2210
2115
  ]);
2211
2116
 
2212
- export function deploymentGetConfigPrefixMessagesDeploymentsRequestContentToJSON(
2213
- deploymentGetConfigPrefixMessagesDeploymentsRequestContent:
2214
- DeploymentGetConfigPrefixMessagesDeploymentsRequestContent,
2117
+ export function deploymentGetConfigPrefixMessagesDeploymentsContentToJSON(
2118
+ deploymentGetConfigPrefixMessagesDeploymentsContent:
2119
+ DeploymentGetConfigPrefixMessagesDeploymentsContent,
2215
2120
  ): string {
2216
2121
  return JSON.stringify(
2217
- DeploymentGetConfigPrefixMessagesDeploymentsRequestContent$outboundSchema
2218
- .parse(deploymentGetConfigPrefixMessagesDeploymentsRequestContent),
2122
+ DeploymentGetConfigPrefixMessagesDeploymentsContent$outboundSchema.parse(
2123
+ deploymentGetConfigPrefixMessagesDeploymentsContent,
2124
+ ),
2219
2125
  );
2220
2126
  }
2221
2127
 
2222
2128
  /** @internal */
2223
- export type PrefixMessagesUserMessage$Outbound = {
2129
+ export type UserMessage$Outbound = {
2224
2130
  role: "user";
2225
2131
  name?: string | undefined;
2226
2132
  content:
@@ -2229,15 +2135,15 @@ export type PrefixMessagesUserMessage$Outbound = {
2229
2135
  | (components.TextContentPartSchema$Outbound & { type: "text" })
2230
2136
  | components.ImageContentPartSchema$Outbound
2231
2137
  | components.AudioContentPartSchema$Outbound
2232
- | DeploymentGetConfig24$Outbound
2138
+ | Four$Outbound
2233
2139
  >;
2234
2140
  };
2235
2141
 
2236
2142
  /** @internal */
2237
- export const PrefixMessagesUserMessage$outboundSchema: z.ZodType<
2238
- PrefixMessagesUserMessage$Outbound,
2143
+ export const UserMessage$outboundSchema: z.ZodType<
2144
+ UserMessage$Outbound,
2239
2145
  z.ZodTypeDef,
2240
- PrefixMessagesUserMessage
2146
+ UserMessage
2241
2147
  > = z.object({
2242
2148
  role: z.literal("user"),
2243
2149
  name: z.string().optional(),
@@ -2250,59 +2156,54 @@ export const PrefixMessagesUserMessage$outboundSchema: z.ZodType<
2250
2156
  ),
2251
2157
  components.ImageContentPartSchema$outboundSchema,
2252
2158
  components.AudioContentPartSchema$outboundSchema,
2253
- z.lazy(() => DeploymentGetConfig24$outboundSchema),
2159
+ z.lazy(() => Four$outboundSchema),
2254
2160
  ]),
2255
2161
  ),
2256
2162
  ]),
2257
2163
  });
2258
2164
 
2259
- export function prefixMessagesUserMessageToJSON(
2260
- prefixMessagesUserMessage: PrefixMessagesUserMessage,
2261
- ): string {
2262
- return JSON.stringify(
2263
- PrefixMessagesUserMessage$outboundSchema.parse(prefixMessagesUserMessage),
2264
- );
2165
+ export function userMessageToJSON(userMessage: UserMessage): string {
2166
+ return JSON.stringify(UserMessage$outboundSchema.parse(userMessage));
2265
2167
  }
2266
2168
 
2267
2169
  /** @internal */
2268
- export type DeploymentGetConfigPrefixMessagesDeploymentsContent$Outbound =
2170
+ export type DeploymentGetConfigPrefixMessagesContent$Outbound =
2269
2171
  | string
2270
2172
  | Array<components.TextContentPartSchema$Outbound>;
2271
2173
 
2272
2174
  /** @internal */
2273
- export const DeploymentGetConfigPrefixMessagesDeploymentsContent$outboundSchema:
2274
- z.ZodType<
2275
- DeploymentGetConfigPrefixMessagesDeploymentsContent$Outbound,
2276
- z.ZodTypeDef,
2277
- DeploymentGetConfigPrefixMessagesDeploymentsContent
2278
- > = z.union([
2279
- z.string(),
2280
- z.array(components.TextContentPartSchema$outboundSchema),
2281
- ]);
2175
+ export const DeploymentGetConfigPrefixMessagesContent$outboundSchema: z.ZodType<
2176
+ DeploymentGetConfigPrefixMessagesContent$Outbound,
2177
+ z.ZodTypeDef,
2178
+ DeploymentGetConfigPrefixMessagesContent
2179
+ > = z.union([
2180
+ z.string(),
2181
+ z.array(components.TextContentPartSchema$outboundSchema),
2182
+ ]);
2282
2183
 
2283
- export function deploymentGetConfigPrefixMessagesDeploymentsContentToJSON(
2284
- deploymentGetConfigPrefixMessagesDeploymentsContent:
2285
- DeploymentGetConfigPrefixMessagesDeploymentsContent,
2184
+ export function deploymentGetConfigPrefixMessagesContentToJSON(
2185
+ deploymentGetConfigPrefixMessagesContent:
2186
+ DeploymentGetConfigPrefixMessagesContent,
2286
2187
  ): string {
2287
2188
  return JSON.stringify(
2288
- DeploymentGetConfigPrefixMessagesDeploymentsContent$outboundSchema.parse(
2289
- deploymentGetConfigPrefixMessagesDeploymentsContent,
2189
+ DeploymentGetConfigPrefixMessagesContent$outboundSchema.parse(
2190
+ deploymentGetConfigPrefixMessagesContent,
2290
2191
  ),
2291
2192
  );
2292
2193
  }
2293
2194
 
2294
2195
  /** @internal */
2295
- export type PrefixMessagesDeveloperMessage$Outbound = {
2196
+ export type DeveloperMessage$Outbound = {
2296
2197
  role: "developer";
2297
2198
  content: string | Array<components.TextContentPartSchema$Outbound>;
2298
2199
  name?: string | undefined;
2299
2200
  };
2300
2201
 
2301
2202
  /** @internal */
2302
- export const PrefixMessagesDeveloperMessage$outboundSchema: z.ZodType<
2303
- PrefixMessagesDeveloperMessage$Outbound,
2203
+ export const DeveloperMessage$outboundSchema: z.ZodType<
2204
+ DeveloperMessage$Outbound,
2304
2205
  z.ZodTypeDef,
2305
- PrefixMessagesDeveloperMessage
2206
+ DeveloperMessage
2306
2207
  > = z.object({
2307
2208
  role: z.literal("developer"),
2308
2209
  content: z.union([
@@ -2312,54 +2213,49 @@ export const PrefixMessagesDeveloperMessage$outboundSchema: z.ZodType<
2312
2213
  name: z.string().optional(),
2313
2214
  });
2314
2215
 
2315
- export function prefixMessagesDeveloperMessageToJSON(
2316
- prefixMessagesDeveloperMessage: PrefixMessagesDeveloperMessage,
2216
+ export function developerMessageToJSON(
2217
+ developerMessage: DeveloperMessage,
2317
2218
  ): string {
2318
2219
  return JSON.stringify(
2319
- PrefixMessagesDeveloperMessage$outboundSchema.parse(
2320
- prefixMessagesDeveloperMessage,
2321
- ),
2220
+ DeveloperMessage$outboundSchema.parse(developerMessage),
2322
2221
  );
2323
2222
  }
2324
2223
 
2325
2224
  /** @internal */
2326
- export type DeploymentGetConfigPrefixMessagesContent$Outbound =
2225
+ export type PrefixMessagesContent$Outbound =
2327
2226
  | string
2328
2227
  | Array<components.TextContentPartSchema$Outbound>;
2329
2228
 
2330
2229
  /** @internal */
2331
- export const DeploymentGetConfigPrefixMessagesContent$outboundSchema: z.ZodType<
2332
- DeploymentGetConfigPrefixMessagesContent$Outbound,
2230
+ export const PrefixMessagesContent$outboundSchema: z.ZodType<
2231
+ PrefixMessagesContent$Outbound,
2333
2232
  z.ZodTypeDef,
2334
- DeploymentGetConfigPrefixMessagesContent
2233
+ PrefixMessagesContent
2335
2234
  > = z.union([
2336
2235
  z.string(),
2337
2236
  z.array(components.TextContentPartSchema$outboundSchema),
2338
2237
  ]);
2339
2238
 
2340
- export function deploymentGetConfigPrefixMessagesContentToJSON(
2341
- deploymentGetConfigPrefixMessagesContent:
2342
- DeploymentGetConfigPrefixMessagesContent,
2239
+ export function prefixMessagesContentToJSON(
2240
+ prefixMessagesContent: PrefixMessagesContent,
2343
2241
  ): string {
2344
2242
  return JSON.stringify(
2345
- DeploymentGetConfigPrefixMessagesContent$outboundSchema.parse(
2346
- deploymentGetConfigPrefixMessagesContent,
2347
- ),
2243
+ PrefixMessagesContent$outboundSchema.parse(prefixMessagesContent),
2348
2244
  );
2349
2245
  }
2350
2246
 
2351
2247
  /** @internal */
2352
- export type PrefixMessagesSystemMessage$Outbound = {
2248
+ export type SystemMessage$Outbound = {
2353
2249
  role: "system";
2354
2250
  content: string | Array<components.TextContentPartSchema$Outbound>;
2355
2251
  name?: string | undefined;
2356
2252
  };
2357
2253
 
2358
2254
  /** @internal */
2359
- export const PrefixMessagesSystemMessage$outboundSchema: z.ZodType<
2360
- PrefixMessagesSystemMessage$Outbound,
2255
+ export const SystemMessage$outboundSchema: z.ZodType<
2256
+ SystemMessage$Outbound,
2361
2257
  z.ZodTypeDef,
2362
- PrefixMessagesSystemMessage
2258
+ SystemMessage
2363
2259
  > = z.object({
2364
2260
  role: z.literal("system"),
2365
2261
  content: z.union([
@@ -2369,145 +2265,129 @@ export const PrefixMessagesSystemMessage$outboundSchema: z.ZodType<
2369
2265
  name: z.string().optional(),
2370
2266
  });
2371
2267
 
2372
- export function prefixMessagesSystemMessageToJSON(
2373
- prefixMessagesSystemMessage: PrefixMessagesSystemMessage,
2374
- ): string {
2375
- return JSON.stringify(
2376
- PrefixMessagesSystemMessage$outboundSchema.parse(
2377
- prefixMessagesSystemMessage,
2378
- ),
2379
- );
2268
+ export function systemMessageToJSON(systemMessage: SystemMessage): string {
2269
+ return JSON.stringify(SystemMessage$outboundSchema.parse(systemMessage));
2380
2270
  }
2381
2271
 
2382
2272
  /** @internal */
2383
- export type DeploymentGetConfigPrefixMessages$Outbound =
2384
- | PrefixMessagesSystemMessage$Outbound
2385
- | PrefixMessagesDeveloperMessage$Outbound
2386
- | PrefixMessagesUserMessage$Outbound
2387
- | PrefixMessagesAssistantMessage$Outbound
2388
- | PrefixMessagesToolMessage$Outbound;
2273
+ export type PrefixMessages$Outbound =
2274
+ | SystemMessage$Outbound
2275
+ | DeveloperMessage$Outbound
2276
+ | UserMessage$Outbound
2277
+ | AssistantMessage$Outbound
2278
+ | ToolMessage$Outbound;
2389
2279
 
2390
2280
  /** @internal */
2391
- export const DeploymentGetConfigPrefixMessages$outboundSchema: z.ZodType<
2392
- DeploymentGetConfigPrefixMessages$Outbound,
2281
+ export const PrefixMessages$outboundSchema: z.ZodType<
2282
+ PrefixMessages$Outbound,
2393
2283
  z.ZodTypeDef,
2394
- DeploymentGetConfigPrefixMessages
2284
+ PrefixMessages
2395
2285
  > = z.union([
2396
- z.lazy(() => PrefixMessagesSystemMessage$outboundSchema),
2397
- z.lazy(() => PrefixMessagesDeveloperMessage$outboundSchema),
2398
- z.lazy(() => PrefixMessagesUserMessage$outboundSchema),
2399
- z.lazy(() => PrefixMessagesAssistantMessage$outboundSchema),
2400
- z.lazy(() => PrefixMessagesToolMessage$outboundSchema),
2286
+ z.lazy(() => SystemMessage$outboundSchema),
2287
+ z.lazy(() => DeveloperMessage$outboundSchema),
2288
+ z.lazy(() => UserMessage$outboundSchema),
2289
+ z.lazy(() => AssistantMessage$outboundSchema),
2290
+ z.lazy(() => ToolMessage$outboundSchema),
2401
2291
  ]);
2402
2292
 
2403
- export function deploymentGetConfigPrefixMessagesToJSON(
2404
- deploymentGetConfigPrefixMessages: DeploymentGetConfigPrefixMessages,
2405
- ): string {
2406
- return JSON.stringify(
2407
- DeploymentGetConfigPrefixMessages$outboundSchema.parse(
2408
- deploymentGetConfigPrefixMessages,
2409
- ),
2410
- );
2293
+ export function prefixMessagesToJSON(prefixMessages: PrefixMessages): string {
2294
+ return JSON.stringify(PrefixMessages$outboundSchema.parse(prefixMessages));
2411
2295
  }
2412
2296
 
2413
2297
  /** @internal */
2414
- export type DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages52$Outbound =
2298
+ export type DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2$Outbound =
2415
2299
  components.TextContentPartSchema$Outbound;
2416
2300
 
2417
2301
  /** @internal */
2418
- export const DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages52$outboundSchema:
2302
+ export const DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2$outboundSchema:
2419
2303
  z.ZodType<
2420
- DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages52$Outbound,
2304
+ DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2$Outbound,
2421
2305
  z.ZodTypeDef,
2422
- DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages52
2306
+ DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2
2423
2307
  > = components.TextContentPartSchema$outboundSchema;
2424
2308
 
2425
- export function deploymentGetConfigContentDeploymentsRequestRequestBodyMessages52ToJSON(
2426
- deploymentGetConfigContentDeploymentsRequestRequestBodyMessages52:
2427
- DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages52,
2309
+ export function deploymentGetConfigContentDeploymentsRequestRequestBodyMessages2ToJSON(
2310
+ deploymentGetConfigContentDeploymentsRequestRequestBodyMessages2:
2311
+ DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2,
2428
2312
  ): string {
2429
2313
  return JSON.stringify(
2430
- DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages52$outboundSchema
2431
- .parse(deploymentGetConfigContentDeploymentsRequestRequestBodyMessages52),
2314
+ DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2$outboundSchema
2315
+ .parse(deploymentGetConfigContentDeploymentsRequestRequestBodyMessages2),
2432
2316
  );
2433
2317
  }
2434
2318
 
2435
2319
  /** @internal */
2436
- export type DeploymentGetConfigMessagesDeploymentsRequestRequestBody5Content$Outbound =
2320
+ export type DeploymentGetConfigMessagesDeploymentsRequestRequestBodyContent$Outbound =
2437
2321
  | string
2438
2322
  | Array<components.TextContentPartSchema$Outbound>;
2439
2323
 
2440
2324
  /** @internal */
2441
- export const DeploymentGetConfigMessagesDeploymentsRequestRequestBody5Content$outboundSchema:
2325
+ export const DeploymentGetConfigMessagesDeploymentsRequestRequestBodyContent$outboundSchema:
2442
2326
  z.ZodType<
2443
- DeploymentGetConfigMessagesDeploymentsRequestRequestBody5Content$Outbound,
2327
+ DeploymentGetConfigMessagesDeploymentsRequestRequestBodyContent$Outbound,
2444
2328
  z.ZodTypeDef,
2445
- DeploymentGetConfigMessagesDeploymentsRequestRequestBody5Content
2329
+ DeploymentGetConfigMessagesDeploymentsRequestRequestBodyContent
2446
2330
  > = z.union([
2447
2331
  z.string(),
2448
2332
  z.array(components.TextContentPartSchema$outboundSchema),
2449
2333
  ]);
2450
2334
 
2451
- export function deploymentGetConfigMessagesDeploymentsRequestRequestBody5ContentToJSON(
2452
- deploymentGetConfigMessagesDeploymentsRequestRequestBody5Content:
2453
- DeploymentGetConfigMessagesDeploymentsRequestRequestBody5Content,
2335
+ export function deploymentGetConfigMessagesDeploymentsRequestRequestBodyContentToJSON(
2336
+ deploymentGetConfigMessagesDeploymentsRequestRequestBodyContent:
2337
+ DeploymentGetConfigMessagesDeploymentsRequestRequestBodyContent,
2454
2338
  ): string {
2455
2339
  return JSON.stringify(
2456
- DeploymentGetConfigMessagesDeploymentsRequestRequestBody5Content$outboundSchema
2457
- .parse(deploymentGetConfigMessagesDeploymentsRequestRequestBody5Content),
2340
+ DeploymentGetConfigMessagesDeploymentsRequestRequestBodyContent$outboundSchema
2341
+ .parse(deploymentGetConfigMessagesDeploymentsRequestRequestBodyContent),
2458
2342
  );
2459
2343
  }
2460
2344
 
2461
2345
  /** @internal */
2462
- export const DeploymentGetConfigMessagesDeploymentsType$outboundSchema:
2463
- z.ZodNativeEnum<typeof DeploymentGetConfigMessagesDeploymentsType> = z
2464
- .nativeEnum(DeploymentGetConfigMessagesDeploymentsType);
2346
+ export const DeploymentGetConfigMessagesType$outboundSchema: z.ZodNativeEnum<
2347
+ typeof DeploymentGetConfigMessagesType
2348
+ > = z.nativeEnum(DeploymentGetConfigMessagesType);
2465
2349
 
2466
2350
  /** @internal */
2467
- export const DeploymentGetConfigMessagesTtl$outboundSchema: z.ZodNativeEnum<
2468
- typeof DeploymentGetConfigMessagesTtl
2469
- > = z.nativeEnum(DeploymentGetConfigMessagesTtl);
2351
+ export const MessagesTtl$outboundSchema: z.ZodNativeEnum<typeof MessagesTtl> = z
2352
+ .nativeEnum(MessagesTtl);
2470
2353
 
2471
2354
  /** @internal */
2472
- export type DeploymentGetConfigMessagesCacheControl$Outbound = {
2355
+ export type MessagesCacheControl$Outbound = {
2473
2356
  type: string;
2474
2357
  ttl: string;
2475
2358
  };
2476
2359
 
2477
2360
  /** @internal */
2478
- export const DeploymentGetConfigMessagesCacheControl$outboundSchema: z.ZodType<
2479
- DeploymentGetConfigMessagesCacheControl$Outbound,
2361
+ export const MessagesCacheControl$outboundSchema: z.ZodType<
2362
+ MessagesCacheControl$Outbound,
2480
2363
  z.ZodTypeDef,
2481
- DeploymentGetConfigMessagesCacheControl
2364
+ MessagesCacheControl
2482
2365
  > = z.object({
2483
- type: DeploymentGetConfigMessagesDeploymentsType$outboundSchema,
2484
- ttl: DeploymentGetConfigMessagesTtl$outboundSchema.default("5m"),
2366
+ type: DeploymentGetConfigMessagesType$outboundSchema,
2367
+ ttl: MessagesTtl$outboundSchema.default("5m"),
2485
2368
  });
2486
2369
 
2487
- export function deploymentGetConfigMessagesCacheControlToJSON(
2488
- deploymentGetConfigMessagesCacheControl:
2489
- DeploymentGetConfigMessagesCacheControl,
2370
+ export function messagesCacheControlToJSON(
2371
+ messagesCacheControl: MessagesCacheControl,
2490
2372
  ): string {
2491
2373
  return JSON.stringify(
2492
- DeploymentGetConfigMessagesCacheControl$outboundSchema.parse(
2493
- deploymentGetConfigMessagesCacheControl,
2494
- ),
2374
+ MessagesCacheControl$outboundSchema.parse(messagesCacheControl),
2495
2375
  );
2496
2376
  }
2497
2377
 
2498
2378
  /** @internal */
2499
- export type DeploymentGetConfigMessagesToolMessage$Outbound = {
2379
+ export type MessagesToolMessage$Outbound = {
2500
2380
  role: "tool";
2501
2381
  content: string | Array<components.TextContentPartSchema$Outbound>;
2502
2382
  tool_call_id: string | null;
2503
- cache_control?: DeploymentGetConfigMessagesCacheControl$Outbound | undefined;
2383
+ cache_control?: MessagesCacheControl$Outbound | undefined;
2504
2384
  };
2505
2385
 
2506
2386
  /** @internal */
2507
- export const DeploymentGetConfigMessagesToolMessage$outboundSchema: z.ZodType<
2508
- DeploymentGetConfigMessagesToolMessage$Outbound,
2387
+ export const MessagesToolMessage$outboundSchema: z.ZodType<
2388
+ MessagesToolMessage$Outbound,
2509
2389
  z.ZodTypeDef,
2510
- DeploymentGetConfigMessagesToolMessage
2390
+ MessagesToolMessage
2511
2391
  > = z.object({
2512
2392
  role: z.literal("tool"),
2513
2393
  content: z.union([
@@ -2515,9 +2395,7 @@ export const DeploymentGetConfigMessagesToolMessage$outboundSchema: z.ZodType<
2515
2395
  z.array(components.TextContentPartSchema$outboundSchema),
2516
2396
  ]),
2517
2397
  toolCallId: z.nullable(z.string()),
2518
- cacheControl: z.lazy(() =>
2519
- DeploymentGetConfigMessagesCacheControl$outboundSchema
2520
- ).optional(),
2398
+ cacheControl: z.lazy(() => MessagesCacheControl$outboundSchema).optional(),
2521
2399
  }).transform((v) => {
2522
2400
  return remap$(v, {
2523
2401
  toolCallId: "tool_call_id",
@@ -2525,30 +2403,27 @@ export const DeploymentGetConfigMessagesToolMessage$outboundSchema: z.ZodType<
2525
2403
  });
2526
2404
  });
2527
2405
 
2528
- export function deploymentGetConfigMessagesToolMessageToJSON(
2529
- deploymentGetConfigMessagesToolMessage:
2530
- DeploymentGetConfigMessagesToolMessage,
2406
+ export function messagesToolMessageToJSON(
2407
+ messagesToolMessage: MessagesToolMessage,
2531
2408
  ): string {
2532
2409
  return JSON.stringify(
2533
- DeploymentGetConfigMessagesToolMessage$outboundSchema.parse(
2534
- deploymentGetConfigMessagesToolMessage,
2535
- ),
2410
+ MessagesToolMessage$outboundSchema.parse(messagesToolMessage),
2536
2411
  );
2537
2412
  }
2538
2413
 
2539
2414
  /** @internal */
2540
- export type DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2$Outbound =
2415
+ export type DeploymentGetConfigContentDeploymentsRequestRequestBody2$Outbound =
2541
2416
  | (components.TextContentPartSchema$Outbound & { type: "text" })
2542
2417
  | components.RefusalPartSchema$Outbound
2543
2418
  | components.ReasoningPartSchema$Outbound
2544
2419
  | components.RedactedReasoningPartSchema$Outbound;
2545
2420
 
2546
2421
  /** @internal */
2547
- export const DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2$outboundSchema:
2422
+ export const DeploymentGetConfigContentDeploymentsRequestRequestBody2$outboundSchema:
2548
2423
  z.ZodType<
2549
- DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2$Outbound,
2424
+ DeploymentGetConfigContentDeploymentsRequestRequestBody2$Outbound,
2550
2425
  z.ZodTypeDef,
2551
- DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2
2426
+ DeploymentGetConfigContentDeploymentsRequestRequestBody2
2552
2427
  > = z.union([
2553
2428
  components.TextContentPartSchema$outboundSchema.and(
2554
2429
  z.object({ type: z.literal("text") }),
@@ -2558,18 +2433,18 @@ export const DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2$ou
2558
2433
  components.RedactedReasoningPartSchema$outboundSchema,
2559
2434
  ]);
2560
2435
 
2561
- export function deploymentGetConfigContentDeploymentsRequestRequestBodyMessages2ToJSON(
2562
- deploymentGetConfigContentDeploymentsRequestRequestBodyMessages2:
2563
- DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2,
2436
+ export function deploymentGetConfigContentDeploymentsRequestRequestBody2ToJSON(
2437
+ deploymentGetConfigContentDeploymentsRequestRequestBody2:
2438
+ DeploymentGetConfigContentDeploymentsRequestRequestBody2,
2564
2439
  ): string {
2565
2440
  return JSON.stringify(
2566
- DeploymentGetConfigContentDeploymentsRequestRequestBodyMessages2$outboundSchema
2567
- .parse(deploymentGetConfigContentDeploymentsRequestRequestBodyMessages2),
2441
+ DeploymentGetConfigContentDeploymentsRequestRequestBody2$outboundSchema
2442
+ .parse(deploymentGetConfigContentDeploymentsRequestRequestBody2),
2568
2443
  );
2569
2444
  }
2570
2445
 
2571
2446
  /** @internal */
2572
- export type DeploymentGetConfigMessagesDeploymentsRequestRequestBodyContent$Outbound =
2447
+ export type DeploymentGetConfigMessagesDeploymentsRequestContent$Outbound =
2573
2448
  | string
2574
2449
  | Array<
2575
2450
  | (components.TextContentPartSchema$Outbound & { type: "text" })
@@ -2579,11 +2454,11 @@ export type DeploymentGetConfigMessagesDeploymentsRequestRequestBodyContent$Outb
2579
2454
  >;
2580
2455
 
2581
2456
  /** @internal */
2582
- export const DeploymentGetConfigMessagesDeploymentsRequestRequestBodyContent$outboundSchema:
2457
+ export const DeploymentGetConfigMessagesDeploymentsRequestContent$outboundSchema:
2583
2458
  z.ZodType<
2584
- DeploymentGetConfigMessagesDeploymentsRequestRequestBodyContent$Outbound,
2459
+ DeploymentGetConfigMessagesDeploymentsRequestContent$Outbound,
2585
2460
  z.ZodTypeDef,
2586
- DeploymentGetConfigMessagesDeploymentsRequestRequestBodyContent
2461
+ DeploymentGetConfigMessagesDeploymentsRequestContent
2587
2462
  > = z.union([
2588
2463
  z.string(),
2589
2464
  z.array(
@@ -2598,88 +2473,80 @@ export const DeploymentGetConfigMessagesDeploymentsRequestRequestBodyContent$out
2598
2473
  ),
2599
2474
  ]);
2600
2475
 
2601
- export function deploymentGetConfigMessagesDeploymentsRequestRequestBodyContentToJSON(
2602
- deploymentGetConfigMessagesDeploymentsRequestRequestBodyContent:
2603
- DeploymentGetConfigMessagesDeploymentsRequestRequestBodyContent,
2476
+ export function deploymentGetConfigMessagesDeploymentsRequestContentToJSON(
2477
+ deploymentGetConfigMessagesDeploymentsRequestContent:
2478
+ DeploymentGetConfigMessagesDeploymentsRequestContent,
2604
2479
  ): string {
2605
2480
  return JSON.stringify(
2606
- DeploymentGetConfigMessagesDeploymentsRequestRequestBodyContent$outboundSchema
2607
- .parse(deploymentGetConfigMessagesDeploymentsRequestRequestBodyContent),
2481
+ DeploymentGetConfigMessagesDeploymentsRequestContent$outboundSchema.parse(
2482
+ deploymentGetConfigMessagesDeploymentsRequestContent,
2483
+ ),
2608
2484
  );
2609
2485
  }
2610
2486
 
2611
2487
  /** @internal */
2612
- export type DeploymentGetConfigMessagesAudio$Outbound = {
2488
+ export type MessagesAudio$Outbound = {
2613
2489
  id: string;
2614
2490
  };
2615
2491
 
2616
2492
  /** @internal */
2617
- export const DeploymentGetConfigMessagesAudio$outboundSchema: z.ZodType<
2618
- DeploymentGetConfigMessagesAudio$Outbound,
2493
+ export const MessagesAudio$outboundSchema: z.ZodType<
2494
+ MessagesAudio$Outbound,
2619
2495
  z.ZodTypeDef,
2620
- DeploymentGetConfigMessagesAudio
2496
+ MessagesAudio
2621
2497
  > = z.object({
2622
2498
  id: z.string(),
2623
2499
  });
2624
2500
 
2625
- export function deploymentGetConfigMessagesAudioToJSON(
2626
- deploymentGetConfigMessagesAudio: DeploymentGetConfigMessagesAudio,
2627
- ): string {
2628
- return JSON.stringify(
2629
- DeploymentGetConfigMessagesAudio$outboundSchema.parse(
2630
- deploymentGetConfigMessagesAudio,
2631
- ),
2632
- );
2501
+ export function messagesAudioToJSON(messagesAudio: MessagesAudio): string {
2502
+ return JSON.stringify(MessagesAudio$outboundSchema.parse(messagesAudio));
2633
2503
  }
2634
2504
 
2635
2505
  /** @internal */
2636
- export const DeploymentGetConfigMessagesType$outboundSchema: z.ZodNativeEnum<
2637
- typeof DeploymentGetConfigMessagesType
2638
- > = z.nativeEnum(DeploymentGetConfigMessagesType);
2506
+ export const MessagesType$outboundSchema: z.ZodNativeEnum<typeof MessagesType> =
2507
+ z.nativeEnum(MessagesType);
2639
2508
 
2640
2509
  /** @internal */
2641
- export type DeploymentGetConfigMessagesFunction$Outbound = {
2510
+ export type MessagesFunction$Outbound = {
2642
2511
  name?: string | undefined;
2643
2512
  arguments?: string | undefined;
2644
2513
  };
2645
2514
 
2646
2515
  /** @internal */
2647
- export const DeploymentGetConfigMessagesFunction$outboundSchema: z.ZodType<
2648
- DeploymentGetConfigMessagesFunction$Outbound,
2516
+ export const MessagesFunction$outboundSchema: z.ZodType<
2517
+ MessagesFunction$Outbound,
2649
2518
  z.ZodTypeDef,
2650
- DeploymentGetConfigMessagesFunction
2519
+ MessagesFunction
2651
2520
  > = z.object({
2652
2521
  name: z.string().optional(),
2653
2522
  arguments: z.string().optional(),
2654
2523
  });
2655
2524
 
2656
- export function deploymentGetConfigMessagesFunctionToJSON(
2657
- deploymentGetConfigMessagesFunction: DeploymentGetConfigMessagesFunction,
2525
+ export function messagesFunctionToJSON(
2526
+ messagesFunction: MessagesFunction,
2658
2527
  ): string {
2659
2528
  return JSON.stringify(
2660
- DeploymentGetConfigMessagesFunction$outboundSchema.parse(
2661
- deploymentGetConfigMessagesFunction,
2662
- ),
2529
+ MessagesFunction$outboundSchema.parse(messagesFunction),
2663
2530
  );
2664
2531
  }
2665
2532
 
2666
2533
  /** @internal */
2667
- export type DeploymentGetConfigMessagesToolCalls$Outbound = {
2534
+ export type MessagesToolCalls$Outbound = {
2668
2535
  id: string;
2669
2536
  type: string;
2670
- function: DeploymentGetConfigMessagesFunction$Outbound;
2537
+ function: MessagesFunction$Outbound;
2671
2538
  thought_signature?: string | undefined;
2672
2539
  };
2673
2540
 
2674
2541
  /** @internal */
2675
- export const DeploymentGetConfigMessagesToolCalls$outboundSchema: z.ZodType<
2676
- DeploymentGetConfigMessagesToolCalls$Outbound,
2542
+ export const MessagesToolCalls$outboundSchema: z.ZodType<
2543
+ MessagesToolCalls$Outbound,
2677
2544
  z.ZodTypeDef,
2678
- DeploymentGetConfigMessagesToolCalls
2545
+ MessagesToolCalls
2679
2546
  > = z.object({
2680
2547
  id: z.string(),
2681
- type: DeploymentGetConfigMessagesType$outboundSchema,
2682
- function: z.lazy(() => DeploymentGetConfigMessagesFunction$outboundSchema),
2548
+ type: MessagesType$outboundSchema,
2549
+ function: z.lazy(() => MessagesFunction$outboundSchema),
2683
2550
  thoughtSignature: z.string().optional(),
2684
2551
  }).transform((v) => {
2685
2552
  return remap$(v, {
@@ -2687,18 +2554,16 @@ export const DeploymentGetConfigMessagesToolCalls$outboundSchema: z.ZodType<
2687
2554
  });
2688
2555
  });
2689
2556
 
2690
- export function deploymentGetConfigMessagesToolCallsToJSON(
2691
- deploymentGetConfigMessagesToolCalls: DeploymentGetConfigMessagesToolCalls,
2557
+ export function messagesToolCallsToJSON(
2558
+ messagesToolCalls: MessagesToolCalls,
2692
2559
  ): string {
2693
2560
  return JSON.stringify(
2694
- DeploymentGetConfigMessagesToolCalls$outboundSchema.parse(
2695
- deploymentGetConfigMessagesToolCalls,
2696
- ),
2561
+ MessagesToolCalls$outboundSchema.parse(messagesToolCalls),
2697
2562
  );
2698
2563
  }
2699
2564
 
2700
2565
  /** @internal */
2701
- export type DeploymentGetConfigMessagesAssistantMessage$Outbound = {
2566
+ export type MessagesAssistantMessage$Outbound = {
2702
2567
  content?:
2703
2568
  | string
2704
2569
  | Array<
@@ -2712,55 +2577,47 @@ export type DeploymentGetConfigMessagesAssistantMessage$Outbound = {
2712
2577
  refusal?: string | null | undefined;
2713
2578
  role: "assistant";
2714
2579
  name?: string | undefined;
2715
- audio?: DeploymentGetConfigMessagesAudio$Outbound | null | undefined;
2716
- tool_calls?: Array<DeploymentGetConfigMessagesToolCalls$Outbound> | undefined;
2580
+ audio?: MessagesAudio$Outbound | null | undefined;
2581
+ tool_calls?: Array<MessagesToolCalls$Outbound> | undefined;
2717
2582
  };
2718
2583
 
2719
2584
  /** @internal */
2720
- export const DeploymentGetConfigMessagesAssistantMessage$outboundSchema:
2721
- z.ZodType<
2722
- DeploymentGetConfigMessagesAssistantMessage$Outbound,
2723
- z.ZodTypeDef,
2724
- DeploymentGetConfigMessagesAssistantMessage
2725
- > = z.object({
2726
- content: z.nullable(
2727
- z.union([
2728
- z.string(),
2729
- z.array(
2730
- z.union([
2731
- components.TextContentPartSchema$outboundSchema.and(
2732
- z.object({ type: z.literal("text") }),
2733
- ),
2734
- components.RefusalPartSchema$outboundSchema,
2735
- components.ReasoningPartSchema$outboundSchema,
2736
- components.RedactedReasoningPartSchema$outboundSchema,
2737
- ]),
2738
- ),
2739
- ]),
2740
- ).optional(),
2741
- refusal: z.nullable(z.string()).optional(),
2742
- role: z.literal("assistant"),
2743
- name: z.string().optional(),
2744
- audio: z.nullable(
2745
- z.lazy(() => DeploymentGetConfigMessagesAudio$outboundSchema),
2746
- ).optional(),
2747
- toolCalls: z.array(
2748
- z.lazy(() => DeploymentGetConfigMessagesToolCalls$outboundSchema),
2749
- ).optional(),
2750
- }).transform((v) => {
2751
- return remap$(v, {
2752
- toolCalls: "tool_calls",
2753
- });
2585
+ export const MessagesAssistantMessage$outboundSchema: z.ZodType<
2586
+ MessagesAssistantMessage$Outbound,
2587
+ z.ZodTypeDef,
2588
+ MessagesAssistantMessage
2589
+ > = z.object({
2590
+ content: z.nullable(
2591
+ z.union([
2592
+ z.string(),
2593
+ z.array(
2594
+ z.union([
2595
+ components.TextContentPartSchema$outboundSchema.and(
2596
+ z.object({ type: z.literal("text") }),
2597
+ ),
2598
+ components.RefusalPartSchema$outboundSchema,
2599
+ components.ReasoningPartSchema$outboundSchema,
2600
+ components.RedactedReasoningPartSchema$outboundSchema,
2601
+ ]),
2602
+ ),
2603
+ ]),
2604
+ ).optional(),
2605
+ refusal: z.nullable(z.string()).optional(),
2606
+ role: z.literal("assistant"),
2607
+ name: z.string().optional(),
2608
+ audio: z.nullable(z.lazy(() => MessagesAudio$outboundSchema)).optional(),
2609
+ toolCalls: z.array(z.lazy(() => MessagesToolCalls$outboundSchema)).optional(),
2610
+ }).transform((v) => {
2611
+ return remap$(v, {
2612
+ toolCalls: "tool_calls",
2754
2613
  });
2614
+ });
2755
2615
 
2756
- export function deploymentGetConfigMessagesAssistantMessageToJSON(
2757
- deploymentGetConfigMessagesAssistantMessage:
2758
- DeploymentGetConfigMessagesAssistantMessage,
2616
+ export function messagesAssistantMessageToJSON(
2617
+ messagesAssistantMessage: MessagesAssistantMessage,
2759
2618
  ): string {
2760
2619
  return JSON.stringify(
2761
- DeploymentGetConfigMessagesAssistantMessage$outboundSchema.parse(
2762
- deploymentGetConfigMessagesAssistantMessage,
2763
- ),
2620
+ MessagesAssistantMessage$outboundSchema.parse(messagesAssistantMessage),
2764
2621
  );
2765
2622
  }
2766
2623
 
@@ -2771,122 +2628,103 @@ export const DeploymentGetConfig2DeploymentsRequestRequestBodyType$outboundSchem
2771
2628
  > = z.nativeEnum(DeploymentGetConfig2DeploymentsRequestRequestBodyType);
2772
2629
 
2773
2630
  /** @internal */
2774
- export const DeploymentGetConfig2DeploymentsTtl$outboundSchema: z.ZodNativeEnum<
2775
- typeof DeploymentGetConfig2DeploymentsTtl
2776
- > = z.nativeEnum(DeploymentGetConfig2DeploymentsTtl);
2631
+ export const TwoTtl$outboundSchema: z.ZodNativeEnum<typeof TwoTtl> = z
2632
+ .nativeEnum(TwoTtl);
2777
2633
 
2778
2634
  /** @internal */
2779
- export type DeploymentGetConfig2DeploymentsCacheControl$Outbound = {
2635
+ export type TwoCacheControl$Outbound = {
2780
2636
  type: string;
2781
2637
  ttl: string;
2782
2638
  };
2783
2639
 
2784
2640
  /** @internal */
2785
- export const DeploymentGetConfig2DeploymentsCacheControl$outboundSchema:
2786
- z.ZodType<
2787
- DeploymentGetConfig2DeploymentsCacheControl$Outbound,
2788
- z.ZodTypeDef,
2789
- DeploymentGetConfig2DeploymentsCacheControl
2790
- > = z.object({
2791
- type: DeploymentGetConfig2DeploymentsRequestRequestBodyType$outboundSchema,
2792
- ttl: DeploymentGetConfig2DeploymentsTtl$outboundSchema.default("5m"),
2793
- });
2641
+ export const TwoCacheControl$outboundSchema: z.ZodType<
2642
+ TwoCacheControl$Outbound,
2643
+ z.ZodTypeDef,
2644
+ TwoCacheControl
2645
+ > = z.object({
2646
+ type: DeploymentGetConfig2DeploymentsRequestRequestBodyType$outboundSchema,
2647
+ ttl: TwoTtl$outboundSchema.default("5m"),
2648
+ });
2794
2649
 
2795
- export function deploymentGetConfig2DeploymentsCacheControlToJSON(
2796
- deploymentGetConfig2DeploymentsCacheControl:
2797
- DeploymentGetConfig2DeploymentsCacheControl,
2650
+ export function twoCacheControlToJSON(
2651
+ twoCacheControl: TwoCacheControl,
2798
2652
  ): string {
2799
- return JSON.stringify(
2800
- DeploymentGetConfig2DeploymentsCacheControl$outboundSchema.parse(
2801
- deploymentGetConfig2DeploymentsCacheControl,
2802
- ),
2803
- );
2653
+ return JSON.stringify(TwoCacheControl$outboundSchema.parse(twoCacheControl));
2804
2654
  }
2805
2655
 
2806
2656
  /** @internal */
2807
- export type DeploymentGetConfig2Deployments4$Outbound = {
2657
+ export type Two4$Outbound = {
2808
2658
  type: "file";
2809
- cache_control?:
2810
- | DeploymentGetConfig2DeploymentsCacheControl$Outbound
2811
- | undefined;
2659
+ cache_control?: TwoCacheControl$Outbound | undefined;
2812
2660
  file: components.FileContentPartSchema$Outbound;
2813
2661
  };
2814
2662
 
2815
2663
  /** @internal */
2816
- export const DeploymentGetConfig2Deployments4$outboundSchema: z.ZodType<
2817
- DeploymentGetConfig2Deployments4$Outbound,
2818
- z.ZodTypeDef,
2819
- DeploymentGetConfig2Deployments4
2820
- > = z.object({
2821
- type: z.literal("file"),
2822
- cacheControl: z.lazy(() =>
2823
- DeploymentGetConfig2DeploymentsCacheControl$outboundSchema
2824
- ).optional(),
2825
- file: components.FileContentPartSchema$outboundSchema,
2826
- }).transform((v) => {
2827
- return remap$(v, {
2828
- cacheControl: "cache_control",
2664
+ export const Two4$outboundSchema: z.ZodType<Two4$Outbound, z.ZodTypeDef, Two4> =
2665
+ z.object({
2666
+ type: z.literal("file"),
2667
+ cacheControl: z.lazy(() => TwoCacheControl$outboundSchema).optional(),
2668
+ file: components.FileContentPartSchema$outboundSchema,
2669
+ }).transform((v) => {
2670
+ return remap$(v, {
2671
+ cacheControl: "cache_control",
2672
+ });
2829
2673
  });
2830
- });
2831
2674
 
2832
- export function deploymentGetConfig2Deployments4ToJSON(
2833
- deploymentGetConfig2Deployments4: DeploymentGetConfig2Deployments4,
2834
- ): string {
2835
- return JSON.stringify(
2836
- DeploymentGetConfig2Deployments4$outboundSchema.parse(
2837
- deploymentGetConfig2Deployments4,
2838
- ),
2839
- );
2675
+ export function two4ToJSON(two4: Two4): string {
2676
+ return JSON.stringify(Two4$outboundSchema.parse(two4));
2840
2677
  }
2841
2678
 
2842
2679
  /** @internal */
2843
- export type DeploymentGetConfigContentDeploymentsRequestRequestBody2$Outbound =
2680
+ export type DeploymentGetConfigContentDeploymentsRequest2$Outbound =
2844
2681
  | (components.TextContentPartSchema$Outbound & { type: "text" })
2845
2682
  | components.ImageContentPartSchema$Outbound
2846
2683
  | components.AudioContentPartSchema$Outbound
2847
- | DeploymentGetConfig2Deployments4$Outbound;
2684
+ | Two4$Outbound;
2848
2685
 
2849
2686
  /** @internal */
2850
- export const DeploymentGetConfigContentDeploymentsRequestRequestBody2$outboundSchema:
2687
+ export const DeploymentGetConfigContentDeploymentsRequest2$outboundSchema:
2851
2688
  z.ZodType<
2852
- DeploymentGetConfigContentDeploymentsRequestRequestBody2$Outbound,
2689
+ DeploymentGetConfigContentDeploymentsRequest2$Outbound,
2853
2690
  z.ZodTypeDef,
2854
- DeploymentGetConfigContentDeploymentsRequestRequestBody2
2691
+ DeploymentGetConfigContentDeploymentsRequest2
2855
2692
  > = z.union([
2856
2693
  components.TextContentPartSchema$outboundSchema.and(
2857
2694
  z.object({ type: z.literal("text") }),
2858
2695
  ),
2859
2696
  components.ImageContentPartSchema$outboundSchema,
2860
2697
  components.AudioContentPartSchema$outboundSchema,
2861
- z.lazy(() => DeploymentGetConfig2Deployments4$outboundSchema),
2698
+ z.lazy(() => Two4$outboundSchema),
2862
2699
  ]);
2863
2700
 
2864
- export function deploymentGetConfigContentDeploymentsRequestRequestBody2ToJSON(
2865
- deploymentGetConfigContentDeploymentsRequestRequestBody2:
2866
- DeploymentGetConfigContentDeploymentsRequestRequestBody2,
2701
+ export function deploymentGetConfigContentDeploymentsRequest2ToJSON(
2702
+ deploymentGetConfigContentDeploymentsRequest2:
2703
+ DeploymentGetConfigContentDeploymentsRequest2,
2867
2704
  ): string {
2868
2705
  return JSON.stringify(
2869
- DeploymentGetConfigContentDeploymentsRequestRequestBody2$outboundSchema
2870
- .parse(deploymentGetConfigContentDeploymentsRequestRequestBody2),
2706
+ DeploymentGetConfigContentDeploymentsRequest2$outboundSchema.parse(
2707
+ deploymentGetConfigContentDeploymentsRequest2,
2708
+ ),
2871
2709
  );
2872
2710
  }
2873
2711
 
2874
2712
  /** @internal */
2875
- export type DeploymentGetConfigMessagesDeploymentsRequestContent$Outbound =
2713
+ export type DeploymentGetConfigMessagesDeploymentsContent$Outbound =
2876
2714
  | string
2877
2715
  | Array<
2878
2716
  | (components.TextContentPartSchema$Outbound & { type: "text" })
2879
2717
  | components.ImageContentPartSchema$Outbound
2880
2718
  | components.AudioContentPartSchema$Outbound
2881
- | DeploymentGetConfig2Deployments4$Outbound
2719
+ | Two4$Outbound
2882
2720
  >;
2883
2721
 
2884
2722
  /** @internal */
2885
- export const DeploymentGetConfigMessagesDeploymentsRequestContent$outboundSchema:
2723
+ export const DeploymentGetConfigMessagesDeploymentsContent$outboundSchema:
2886
2724
  z.ZodType<
2887
- DeploymentGetConfigMessagesDeploymentsRequestContent$Outbound,
2725
+ DeploymentGetConfigMessagesDeploymentsContent$Outbound,
2888
2726
  z.ZodTypeDef,
2889
- DeploymentGetConfigMessagesDeploymentsRequestContent
2727
+ DeploymentGetConfigMessagesDeploymentsContent
2890
2728
  > = z.union([
2891
2729
  z.string(),
2892
2730
  z.array(
@@ -2896,24 +2734,24 @@ export const DeploymentGetConfigMessagesDeploymentsRequestContent$outboundSchema
2896
2734
  ),
2897
2735
  components.ImageContentPartSchema$outboundSchema,
2898
2736
  components.AudioContentPartSchema$outboundSchema,
2899
- z.lazy(() => DeploymentGetConfig2Deployments4$outboundSchema),
2737
+ z.lazy(() => Two4$outboundSchema),
2900
2738
  ]),
2901
2739
  ),
2902
2740
  ]);
2903
2741
 
2904
- export function deploymentGetConfigMessagesDeploymentsRequestContentToJSON(
2905
- deploymentGetConfigMessagesDeploymentsRequestContent:
2906
- DeploymentGetConfigMessagesDeploymentsRequestContent,
2742
+ export function deploymentGetConfigMessagesDeploymentsContentToJSON(
2743
+ deploymentGetConfigMessagesDeploymentsContent:
2744
+ DeploymentGetConfigMessagesDeploymentsContent,
2907
2745
  ): string {
2908
2746
  return JSON.stringify(
2909
- DeploymentGetConfigMessagesDeploymentsRequestContent$outboundSchema.parse(
2910
- deploymentGetConfigMessagesDeploymentsRequestContent,
2747
+ DeploymentGetConfigMessagesDeploymentsContent$outboundSchema.parse(
2748
+ deploymentGetConfigMessagesDeploymentsContent,
2911
2749
  ),
2912
2750
  );
2913
2751
  }
2914
2752
 
2915
2753
  /** @internal */
2916
- export type DeploymentGetConfigMessagesUserMessage$Outbound = {
2754
+ export type MessagesUserMessage$Outbound = {
2917
2755
  role: "user";
2918
2756
  name?: string | undefined;
2919
2757
  content:
@@ -2922,15 +2760,15 @@ export type DeploymentGetConfigMessagesUserMessage$Outbound = {
2922
2760
  | (components.TextContentPartSchema$Outbound & { type: "text" })
2923
2761
  | components.ImageContentPartSchema$Outbound
2924
2762
  | components.AudioContentPartSchema$Outbound
2925
- | DeploymentGetConfig2Deployments4$Outbound
2763
+ | Two4$Outbound
2926
2764
  >;
2927
2765
  };
2928
2766
 
2929
2767
  /** @internal */
2930
- export const DeploymentGetConfigMessagesUserMessage$outboundSchema: z.ZodType<
2931
- DeploymentGetConfigMessagesUserMessage$Outbound,
2768
+ export const MessagesUserMessage$outboundSchema: z.ZodType<
2769
+ MessagesUserMessage$Outbound,
2932
2770
  z.ZodTypeDef,
2933
- DeploymentGetConfigMessagesUserMessage
2771
+ MessagesUserMessage
2934
2772
  > = z.object({
2935
2773
  role: z.literal("user"),
2936
2774
  name: z.string().optional(),
@@ -2943,120 +2781,107 @@ export const DeploymentGetConfigMessagesUserMessage$outboundSchema: z.ZodType<
2943
2781
  ),
2944
2782
  components.ImageContentPartSchema$outboundSchema,
2945
2783
  components.AudioContentPartSchema$outboundSchema,
2946
- z.lazy(() => DeploymentGetConfig2Deployments4$outboundSchema),
2784
+ z.lazy(() => Two4$outboundSchema),
2947
2785
  ]),
2948
2786
  ),
2949
2787
  ]),
2950
2788
  });
2951
2789
 
2952
- export function deploymentGetConfigMessagesUserMessageToJSON(
2953
- deploymentGetConfigMessagesUserMessage:
2954
- DeploymentGetConfigMessagesUserMessage,
2790
+ export function messagesUserMessageToJSON(
2791
+ messagesUserMessage: MessagesUserMessage,
2955
2792
  ): string {
2956
2793
  return JSON.stringify(
2957
- DeploymentGetConfigMessagesUserMessage$outboundSchema.parse(
2958
- deploymentGetConfigMessagesUserMessage,
2959
- ),
2794
+ MessagesUserMessage$outboundSchema.parse(messagesUserMessage),
2960
2795
  );
2961
2796
  }
2962
2797
 
2963
2798
  /** @internal */
2964
- export type DeploymentGetConfigMessagesDeploymentsContent$Outbound =
2799
+ export type DeploymentGetConfigMessagesContent$Outbound =
2965
2800
  | string
2966
2801
  | Array<components.TextContentPartSchema$Outbound>;
2967
2802
 
2968
2803
  /** @internal */
2969
- export const DeploymentGetConfigMessagesDeploymentsContent$outboundSchema:
2970
- z.ZodType<
2971
- DeploymentGetConfigMessagesDeploymentsContent$Outbound,
2972
- z.ZodTypeDef,
2973
- DeploymentGetConfigMessagesDeploymentsContent
2974
- > = z.union([
2975
- z.string(),
2976
- z.array(components.TextContentPartSchema$outboundSchema),
2977
- ]);
2804
+ export const DeploymentGetConfigMessagesContent$outboundSchema: z.ZodType<
2805
+ DeploymentGetConfigMessagesContent$Outbound,
2806
+ z.ZodTypeDef,
2807
+ DeploymentGetConfigMessagesContent
2808
+ > = z.union([
2809
+ z.string(),
2810
+ z.array(components.TextContentPartSchema$outboundSchema),
2811
+ ]);
2978
2812
 
2979
- export function deploymentGetConfigMessagesDeploymentsContentToJSON(
2980
- deploymentGetConfigMessagesDeploymentsContent:
2981
- DeploymentGetConfigMessagesDeploymentsContent,
2813
+ export function deploymentGetConfigMessagesContentToJSON(
2814
+ deploymentGetConfigMessagesContent: DeploymentGetConfigMessagesContent,
2982
2815
  ): string {
2983
2816
  return JSON.stringify(
2984
- DeploymentGetConfigMessagesDeploymentsContent$outboundSchema.parse(
2985
- deploymentGetConfigMessagesDeploymentsContent,
2817
+ DeploymentGetConfigMessagesContent$outboundSchema.parse(
2818
+ deploymentGetConfigMessagesContent,
2986
2819
  ),
2987
2820
  );
2988
2821
  }
2989
2822
 
2990
2823
  /** @internal */
2991
- export type DeploymentGetConfigMessagesDeveloperMessage$Outbound = {
2824
+ export type MessagesDeveloperMessage$Outbound = {
2992
2825
  role: "developer";
2993
2826
  content: string | Array<components.TextContentPartSchema$Outbound>;
2994
2827
  name?: string | undefined;
2995
2828
  };
2996
2829
 
2997
2830
  /** @internal */
2998
- export const DeploymentGetConfigMessagesDeveloperMessage$outboundSchema:
2999
- z.ZodType<
3000
- DeploymentGetConfigMessagesDeveloperMessage$Outbound,
3001
- z.ZodTypeDef,
3002
- DeploymentGetConfigMessagesDeveloperMessage
3003
- > = z.object({
3004
- role: z.literal("developer"),
3005
- content: z.union([
3006
- z.string(),
3007
- z.array(components.TextContentPartSchema$outboundSchema),
3008
- ]),
3009
- name: z.string().optional(),
3010
- });
2831
+ export const MessagesDeveloperMessage$outboundSchema: z.ZodType<
2832
+ MessagesDeveloperMessage$Outbound,
2833
+ z.ZodTypeDef,
2834
+ MessagesDeveloperMessage
2835
+ > = z.object({
2836
+ role: z.literal("developer"),
2837
+ content: z.union([
2838
+ z.string(),
2839
+ z.array(components.TextContentPartSchema$outboundSchema),
2840
+ ]),
2841
+ name: z.string().optional(),
2842
+ });
3011
2843
 
3012
- export function deploymentGetConfigMessagesDeveloperMessageToJSON(
3013
- deploymentGetConfigMessagesDeveloperMessage:
3014
- DeploymentGetConfigMessagesDeveloperMessage,
2844
+ export function messagesDeveloperMessageToJSON(
2845
+ messagesDeveloperMessage: MessagesDeveloperMessage,
3015
2846
  ): string {
3016
2847
  return JSON.stringify(
3017
- DeploymentGetConfigMessagesDeveloperMessage$outboundSchema.parse(
3018
- deploymentGetConfigMessagesDeveloperMessage,
3019
- ),
2848
+ MessagesDeveloperMessage$outboundSchema.parse(messagesDeveloperMessage),
3020
2849
  );
3021
2850
  }
3022
2851
 
3023
2852
  /** @internal */
3024
- export type DeploymentGetConfigMessagesContent$Outbound =
2853
+ export type MessagesContent$Outbound =
3025
2854
  | string
3026
2855
  | Array<components.TextContentPartSchema$Outbound>;
3027
2856
 
3028
2857
  /** @internal */
3029
- export const DeploymentGetConfigMessagesContent$outboundSchema: z.ZodType<
3030
- DeploymentGetConfigMessagesContent$Outbound,
2858
+ export const MessagesContent$outboundSchema: z.ZodType<
2859
+ MessagesContent$Outbound,
3031
2860
  z.ZodTypeDef,
3032
- DeploymentGetConfigMessagesContent
2861
+ MessagesContent
3033
2862
  > = z.union([
3034
2863
  z.string(),
3035
2864
  z.array(components.TextContentPartSchema$outboundSchema),
3036
2865
  ]);
3037
2866
 
3038
- export function deploymentGetConfigMessagesContentToJSON(
3039
- deploymentGetConfigMessagesContent: DeploymentGetConfigMessagesContent,
2867
+ export function messagesContentToJSON(
2868
+ messagesContent: MessagesContent,
3040
2869
  ): string {
3041
- return JSON.stringify(
3042
- DeploymentGetConfigMessagesContent$outboundSchema.parse(
3043
- deploymentGetConfigMessagesContent,
3044
- ),
3045
- );
2870
+ return JSON.stringify(MessagesContent$outboundSchema.parse(messagesContent));
3046
2871
  }
3047
2872
 
3048
2873
  /** @internal */
3049
- export type DeploymentGetConfigMessagesSystemMessage$Outbound = {
2874
+ export type MessagesSystemMessage$Outbound = {
3050
2875
  role: "system";
3051
2876
  content: string | Array<components.TextContentPartSchema$Outbound>;
3052
2877
  name?: string | undefined;
3053
2878
  };
3054
2879
 
3055
2880
  /** @internal */
3056
- export const DeploymentGetConfigMessagesSystemMessage$outboundSchema: z.ZodType<
3057
- DeploymentGetConfigMessagesSystemMessage$Outbound,
2881
+ export const MessagesSystemMessage$outboundSchema: z.ZodType<
2882
+ MessagesSystemMessage$Outbound,
3058
2883
  z.ZodTypeDef,
3059
- DeploymentGetConfigMessagesSystemMessage
2884
+ MessagesSystemMessage
3060
2885
  > = z.object({
3061
2886
  role: z.literal("system"),
3062
2887
  content: z.union([
@@ -3066,24 +2891,21 @@ export const DeploymentGetConfigMessagesSystemMessage$outboundSchema: z.ZodType<
3066
2891
  name: z.string().optional(),
3067
2892
  });
3068
2893
 
3069
- export function deploymentGetConfigMessagesSystemMessageToJSON(
3070
- deploymentGetConfigMessagesSystemMessage:
3071
- DeploymentGetConfigMessagesSystemMessage,
2894
+ export function messagesSystemMessageToJSON(
2895
+ messagesSystemMessage: MessagesSystemMessage,
3072
2896
  ): string {
3073
2897
  return JSON.stringify(
3074
- DeploymentGetConfigMessagesSystemMessage$outboundSchema.parse(
3075
- deploymentGetConfigMessagesSystemMessage,
3076
- ),
2898
+ MessagesSystemMessage$outboundSchema.parse(messagesSystemMessage),
3077
2899
  );
3078
2900
  }
3079
2901
 
3080
2902
  /** @internal */
3081
2903
  export type DeploymentGetConfigMessages$Outbound =
3082
- | DeploymentGetConfigMessagesSystemMessage$Outbound
3083
- | DeploymentGetConfigMessagesDeveloperMessage$Outbound
3084
- | DeploymentGetConfigMessagesUserMessage$Outbound
3085
- | DeploymentGetConfigMessagesAssistantMessage$Outbound
3086
- | DeploymentGetConfigMessagesToolMessage$Outbound;
2904
+ | MessagesSystemMessage$Outbound
2905
+ | MessagesDeveloperMessage$Outbound
2906
+ | MessagesUserMessage$Outbound
2907
+ | MessagesAssistantMessage$Outbound
2908
+ | MessagesToolMessage$Outbound;
3087
2909
 
3088
2910
  /** @internal */
3089
2911
  export const DeploymentGetConfigMessages$outboundSchema: z.ZodType<
@@ -3091,11 +2913,11 @@ export const DeploymentGetConfigMessages$outboundSchema: z.ZodType<
3091
2913
  z.ZodTypeDef,
3092
2914
  DeploymentGetConfigMessages
3093
2915
  > = z.union([
3094
- z.lazy(() => DeploymentGetConfigMessagesSystemMessage$outboundSchema),
3095
- z.lazy(() => DeploymentGetConfigMessagesDeveloperMessage$outboundSchema),
3096
- z.lazy(() => DeploymentGetConfigMessagesUserMessage$outboundSchema),
3097
- z.lazy(() => DeploymentGetConfigMessagesAssistantMessage$outboundSchema),
3098
- z.lazy(() => DeploymentGetConfigMessagesToolMessage$outboundSchema),
2916
+ z.lazy(() => MessagesSystemMessage$outboundSchema),
2917
+ z.lazy(() => MessagesDeveloperMessage$outboundSchema),
2918
+ z.lazy(() => MessagesUserMessage$outboundSchema),
2919
+ z.lazy(() => MessagesAssistantMessage$outboundSchema),
2920
+ z.lazy(() => MessagesToolMessage$outboundSchema),
3099
2921
  ]);
3100
2922
 
3101
2923
  export function deploymentGetConfigMessagesToJSON(
@@ -3109,17 +2931,17 @@ export function deploymentGetConfigMessagesToJSON(
3109
2931
  }
3110
2932
 
3111
2933
  /** @internal */
3112
- export type DeploymentGetConfigMetadata$Outbound = {
2934
+ export type Metadata$Outbound = {
3113
2935
  file_name?: string | undefined;
3114
2936
  file_type?: string | undefined;
3115
2937
  page_number?: number | undefined;
3116
2938
  };
3117
2939
 
3118
2940
  /** @internal */
3119
- export const DeploymentGetConfigMetadata$outboundSchema: z.ZodType<
3120
- DeploymentGetConfigMetadata$Outbound,
2941
+ export const Metadata$outboundSchema: z.ZodType<
2942
+ Metadata$Outbound,
3121
2943
  z.ZodTypeDef,
3122
- DeploymentGetConfigMetadata
2944
+ Metadata
3123
2945
  > = z.object({
3124
2946
  fileName: z.string().optional(),
3125
2947
  fileType: z.string().optional(),
@@ -3132,54 +2954,42 @@ export const DeploymentGetConfigMetadata$outboundSchema: z.ZodType<
3132
2954
  });
3133
2955
  });
3134
2956
 
3135
- export function deploymentGetConfigMetadataToJSON(
3136
- deploymentGetConfigMetadata: DeploymentGetConfigMetadata,
3137
- ): string {
3138
- return JSON.stringify(
3139
- DeploymentGetConfigMetadata$outboundSchema.parse(
3140
- deploymentGetConfigMetadata,
3141
- ),
3142
- );
2957
+ export function metadataToJSON(metadata: Metadata): string {
2958
+ return JSON.stringify(Metadata$outboundSchema.parse(metadata));
3143
2959
  }
3144
2960
 
3145
2961
  /** @internal */
3146
- export type DeploymentGetConfigDocuments$Outbound = {
2962
+ export type Documents$Outbound = {
3147
2963
  text: string;
3148
- metadata?: DeploymentGetConfigMetadata$Outbound | undefined;
2964
+ metadata?: Metadata$Outbound | undefined;
3149
2965
  };
3150
2966
 
3151
2967
  /** @internal */
3152
- export const DeploymentGetConfigDocuments$outboundSchema: z.ZodType<
3153
- DeploymentGetConfigDocuments$Outbound,
2968
+ export const Documents$outboundSchema: z.ZodType<
2969
+ Documents$Outbound,
3154
2970
  z.ZodTypeDef,
3155
- DeploymentGetConfigDocuments
2971
+ Documents
3156
2972
  > = z.object({
3157
2973
  text: z.string(),
3158
- metadata: z.lazy(() => DeploymentGetConfigMetadata$outboundSchema).optional(),
2974
+ metadata: z.lazy(() => Metadata$outboundSchema).optional(),
3159
2975
  });
3160
2976
 
3161
- export function deploymentGetConfigDocumentsToJSON(
3162
- deploymentGetConfigDocuments: DeploymentGetConfigDocuments,
3163
- ): string {
3164
- return JSON.stringify(
3165
- DeploymentGetConfigDocuments$outboundSchema.parse(
3166
- deploymentGetConfigDocuments,
3167
- ),
3168
- );
2977
+ export function documentsToJSON(documents: Documents): string {
2978
+ return JSON.stringify(Documents$outboundSchema.parse(documents));
3169
2979
  }
3170
2980
 
3171
2981
  /** @internal */
3172
- export type DeploymentGetConfigInvokeOptions$Outbound = {
2982
+ export type InvokeOptions$Outbound = {
3173
2983
  include_retrievals: boolean;
3174
2984
  include_usage: boolean;
3175
2985
  mock_response?: string | undefined;
3176
2986
  };
3177
2987
 
3178
2988
  /** @internal */
3179
- export const DeploymentGetConfigInvokeOptions$outboundSchema: z.ZodType<
3180
- DeploymentGetConfigInvokeOptions$Outbound,
2989
+ export const InvokeOptions$outboundSchema: z.ZodType<
2990
+ InvokeOptions$Outbound,
3181
2991
  z.ZodTypeDef,
3182
- DeploymentGetConfigInvokeOptions
2992
+ InvokeOptions
3183
2993
  > = z.object({
3184
2994
  includeRetrievals: z.boolean().default(false),
3185
2995
  includeUsage: z.boolean().default(false),
@@ -3192,278 +3002,192 @@ export const DeploymentGetConfigInvokeOptions$outboundSchema: z.ZodType<
3192
3002
  });
3193
3003
  });
3194
3004
 
3195
- export function deploymentGetConfigInvokeOptionsToJSON(
3196
- deploymentGetConfigInvokeOptions: DeploymentGetConfigInvokeOptions,
3197
- ): string {
3198
- return JSON.stringify(
3199
- DeploymentGetConfigInvokeOptions$outboundSchema.parse(
3200
- deploymentGetConfigInvokeOptions,
3201
- ),
3202
- );
3005
+ export function invokeOptionsToJSON(invokeOptions: InvokeOptions): string {
3006
+ return JSON.stringify(InvokeOptions$outboundSchema.parse(invokeOptions));
3203
3007
  }
3204
3008
 
3205
3009
  /** @internal */
3206
- export type DeploymentGetConfigThread$Outbound = {
3010
+ export type Thread$Outbound = {
3207
3011
  id: string;
3208
3012
  tags?: Array<string> | undefined;
3209
3013
  };
3210
3014
 
3211
3015
  /** @internal */
3212
- export const DeploymentGetConfigThread$outboundSchema: z.ZodType<
3213
- DeploymentGetConfigThread$Outbound,
3016
+ export const Thread$outboundSchema: z.ZodType<
3017
+ Thread$Outbound,
3214
3018
  z.ZodTypeDef,
3215
- DeploymentGetConfigThread
3019
+ Thread
3216
3020
  > = z.object({
3217
3021
  id: z.string(),
3218
3022
  tags: z.array(z.string()).optional(),
3219
3023
  });
3220
3024
 
3221
- export function deploymentGetConfigThreadToJSON(
3222
- deploymentGetConfigThread: DeploymentGetConfigThread,
3223
- ): string {
3224
- return JSON.stringify(
3225
- DeploymentGetConfigThread$outboundSchema.parse(deploymentGetConfigThread),
3226
- );
3025
+ export function threadToJSON(thread: Thread): string {
3026
+ return JSON.stringify(Thread$outboundSchema.parse(thread));
3227
3027
  }
3228
3028
 
3229
3029
  /** @internal */
3230
- export type DeploymentGetConfigOrExists$Outbound = {
3030
+ export type OrExists$Outbound = {
3231
3031
  exists: boolean;
3232
3032
  };
3233
3033
 
3234
3034
  /** @internal */
3235
- export const DeploymentGetConfigOrExists$outboundSchema: z.ZodType<
3236
- DeploymentGetConfigOrExists$Outbound,
3035
+ export const OrExists$outboundSchema: z.ZodType<
3036
+ OrExists$Outbound,
3237
3037
  z.ZodTypeDef,
3238
- DeploymentGetConfigOrExists
3038
+ OrExists
3239
3039
  > = z.object({
3240
3040
  exists: z.boolean(),
3241
3041
  });
3242
3042
 
3243
- export function deploymentGetConfigOrExistsToJSON(
3244
- deploymentGetConfigOrExists: DeploymentGetConfigOrExists,
3245
- ): string {
3246
- return JSON.stringify(
3247
- DeploymentGetConfigOrExists$outboundSchema.parse(
3248
- deploymentGetConfigOrExists,
3249
- ),
3250
- );
3043
+ export function orExistsToJSON(orExists: OrExists): string {
3044
+ return JSON.stringify(OrExists$outboundSchema.parse(orExists));
3251
3045
  }
3252
3046
 
3253
3047
  /** @internal */
3254
- export type DeploymentGetConfigOrDeploymentsNin$Outbound =
3255
- | string
3256
- | number
3257
- | boolean;
3048
+ export type DeploymentGetConfigOrNin$Outbound = string | number | boolean;
3258
3049
 
3259
3050
  /** @internal */
3260
- export const DeploymentGetConfigOrDeploymentsNin$outboundSchema: z.ZodType<
3261
- DeploymentGetConfigOrDeploymentsNin$Outbound,
3051
+ export const DeploymentGetConfigOrNin$outboundSchema: z.ZodType<
3052
+ DeploymentGetConfigOrNin$Outbound,
3262
3053
  z.ZodTypeDef,
3263
- DeploymentGetConfigOrDeploymentsNin
3054
+ DeploymentGetConfigOrNin
3264
3055
  > = z.union([z.string(), z.number(), z.boolean()]);
3265
3056
 
3266
- export function deploymentGetConfigOrDeploymentsNinToJSON(
3267
- deploymentGetConfigOrDeploymentsNin: DeploymentGetConfigOrDeploymentsNin,
3057
+ export function deploymentGetConfigOrNinToJSON(
3058
+ deploymentGetConfigOrNin: DeploymentGetConfigOrNin,
3268
3059
  ): string {
3269
3060
  return JSON.stringify(
3270
- DeploymentGetConfigOrDeploymentsNin$outboundSchema.parse(
3271
- deploymentGetConfigOrDeploymentsNin,
3272
- ),
3061
+ DeploymentGetConfigOrNin$outboundSchema.parse(deploymentGetConfigOrNin),
3273
3062
  );
3274
3063
  }
3275
3064
 
3276
3065
  /** @internal */
3277
- export type DeploymentGetConfigOrNin$Outbound = {
3066
+ export type OrNin$Outbound = {
3278
3067
  nin: Array<string | number | boolean>;
3279
3068
  };
3280
3069
 
3281
3070
  /** @internal */
3282
- export const DeploymentGetConfigOrNin$outboundSchema: z.ZodType<
3283
- DeploymentGetConfigOrNin$Outbound,
3071
+ export const OrNin$outboundSchema: z.ZodType<
3072
+ OrNin$Outbound,
3284
3073
  z.ZodTypeDef,
3285
- DeploymentGetConfigOrNin
3074
+ OrNin
3286
3075
  > = z.object({
3287
3076
  nin: z.array(z.union([z.string(), z.number(), z.boolean()])),
3288
3077
  });
3289
3078
 
3290
- export function deploymentGetConfigOrNinToJSON(
3291
- deploymentGetConfigOrNin: DeploymentGetConfigOrNin,
3292
- ): string {
3293
- return JSON.stringify(
3294
- DeploymentGetConfigOrNin$outboundSchema.parse(deploymentGetConfigOrNin),
3295
- );
3079
+ export function orNinToJSON(orNin: OrNin): string {
3080
+ return JSON.stringify(OrNin$outboundSchema.parse(orNin));
3296
3081
  }
3297
3082
 
3298
3083
  /** @internal */
3299
- export type DeploymentGetConfigOrDeploymentsIn$Outbound =
3300
- | string
3301
- | number
3302
- | boolean;
3084
+ export type DeploymentGetConfigOrIn$Outbound = string | number | boolean;
3303
3085
 
3304
3086
  /** @internal */
3305
- export const DeploymentGetConfigOrDeploymentsIn$outboundSchema: z.ZodType<
3306
- DeploymentGetConfigOrDeploymentsIn$Outbound,
3087
+ export const DeploymentGetConfigOrIn$outboundSchema: z.ZodType<
3088
+ DeploymentGetConfigOrIn$Outbound,
3307
3089
  z.ZodTypeDef,
3308
- DeploymentGetConfigOrDeploymentsIn
3090
+ DeploymentGetConfigOrIn
3309
3091
  > = z.union([z.string(), z.number(), z.boolean()]);
3310
3092
 
3311
- export function deploymentGetConfigOrDeploymentsInToJSON(
3312
- deploymentGetConfigOrDeploymentsIn: DeploymentGetConfigOrDeploymentsIn,
3093
+ export function deploymentGetConfigOrInToJSON(
3094
+ deploymentGetConfigOrIn: DeploymentGetConfigOrIn,
3313
3095
  ): string {
3314
3096
  return JSON.stringify(
3315
- DeploymentGetConfigOrDeploymentsIn$outboundSchema.parse(
3316
- deploymentGetConfigOrDeploymentsIn,
3317
- ),
3097
+ DeploymentGetConfigOrIn$outboundSchema.parse(deploymentGetConfigOrIn),
3318
3098
  );
3319
3099
  }
3320
3100
 
3321
3101
  /** @internal */
3322
- export type DeploymentGetConfigOrIn$Outbound = {
3102
+ export type OrIn$Outbound = {
3323
3103
  in: Array<string | number | boolean>;
3324
3104
  };
3325
3105
 
3326
3106
  /** @internal */
3327
- export const DeploymentGetConfigOrIn$outboundSchema: z.ZodType<
3328
- DeploymentGetConfigOrIn$Outbound,
3329
- z.ZodTypeDef,
3330
- DeploymentGetConfigOrIn
3331
- > = z.object({
3332
- in: z.array(z.union([z.string(), z.number(), z.boolean()])),
3333
- });
3107
+ export const OrIn$outboundSchema: z.ZodType<OrIn$Outbound, z.ZodTypeDef, OrIn> =
3108
+ z.object({
3109
+ in: z.array(z.union([z.string(), z.number(), z.boolean()])),
3110
+ });
3334
3111
 
3335
- export function deploymentGetConfigOrInToJSON(
3336
- deploymentGetConfigOrIn: DeploymentGetConfigOrIn,
3337
- ): string {
3338
- return JSON.stringify(
3339
- DeploymentGetConfigOrIn$outboundSchema.parse(deploymentGetConfigOrIn),
3340
- );
3112
+ export function orInToJSON(orIn: OrIn): string {
3113
+ return JSON.stringify(OrIn$outboundSchema.parse(orIn));
3341
3114
  }
3342
3115
 
3343
3116
  /** @internal */
3344
- export type DeploymentGetConfigOrLte$Outbound = {
3117
+ export type OrLte$Outbound = {
3345
3118
  lte: number;
3346
3119
  };
3347
3120
 
3348
3121
  /** @internal */
3349
- export const DeploymentGetConfigOrLte$outboundSchema: z.ZodType<
3350
- DeploymentGetConfigOrLte$Outbound,
3122
+ export const OrLte$outboundSchema: z.ZodType<
3123
+ OrLte$Outbound,
3351
3124
  z.ZodTypeDef,
3352
- DeploymentGetConfigOrLte
3125
+ OrLte
3353
3126
  > = z.object({
3354
3127
  lte: z.number(),
3355
3128
  });
3356
3129
 
3357
- export function deploymentGetConfigOrLteToJSON(
3358
- deploymentGetConfigOrLte: DeploymentGetConfigOrLte,
3359
- ): string {
3360
- return JSON.stringify(
3361
- DeploymentGetConfigOrLte$outboundSchema.parse(deploymentGetConfigOrLte),
3362
- );
3130
+ export function orLteToJSON(orLte: OrLte): string {
3131
+ return JSON.stringify(OrLte$outboundSchema.parse(orLte));
3363
3132
  }
3364
3133
 
3365
3134
  /** @internal */
3366
- export type DeploymentGetConfigOrLt$Outbound = {
3135
+ export type OrLt$Outbound = {
3367
3136
  lt: number;
3368
3137
  };
3369
3138
 
3370
3139
  /** @internal */
3371
- export const DeploymentGetConfigOrLt$outboundSchema: z.ZodType<
3372
- DeploymentGetConfigOrLt$Outbound,
3373
- z.ZodTypeDef,
3374
- DeploymentGetConfigOrLt
3375
- > = z.object({
3376
- lt: z.number(),
3377
- });
3140
+ export const OrLt$outboundSchema: z.ZodType<OrLt$Outbound, z.ZodTypeDef, OrLt> =
3141
+ z.object({
3142
+ lt: z.number(),
3143
+ });
3378
3144
 
3379
- export function deploymentGetConfigOrLtToJSON(
3380
- deploymentGetConfigOrLt: DeploymentGetConfigOrLt,
3381
- ): string {
3382
- return JSON.stringify(
3383
- DeploymentGetConfigOrLt$outboundSchema.parse(deploymentGetConfigOrLt),
3384
- );
3145
+ export function orLtToJSON(orLt: OrLt): string {
3146
+ return JSON.stringify(OrLt$outboundSchema.parse(orLt));
3385
3147
  }
3386
3148
 
3387
3149
  /** @internal */
3388
- export type DeploymentGetConfigOrGte$Outbound = {
3150
+ export type OrGte$Outbound = {
3389
3151
  gte: number;
3390
3152
  };
3391
3153
 
3392
3154
  /** @internal */
3393
- export const DeploymentGetConfigOrGte$outboundSchema: z.ZodType<
3394
- DeploymentGetConfigOrGte$Outbound,
3155
+ export const OrGte$outboundSchema: z.ZodType<
3156
+ OrGte$Outbound,
3395
3157
  z.ZodTypeDef,
3396
- DeploymentGetConfigOrGte
3158
+ OrGte
3397
3159
  > = z.object({
3398
3160
  gte: z.number(),
3399
3161
  });
3400
3162
 
3401
- export function deploymentGetConfigOrGteToJSON(
3402
- deploymentGetConfigOrGte: DeploymentGetConfigOrGte,
3403
- ): string {
3404
- return JSON.stringify(
3405
- DeploymentGetConfigOrGte$outboundSchema.parse(deploymentGetConfigOrGte),
3406
- );
3163
+ export function orGteToJSON(orGte: OrGte): string {
3164
+ return JSON.stringify(OrGte$outboundSchema.parse(orGte));
3407
3165
  }
3408
3166
 
3409
3167
  /** @internal */
3410
- export type DeploymentGetConfigOrGt$Outbound = {
3168
+ export type OrGt$Outbound = {
3411
3169
  gt: number;
3412
3170
  };
3413
3171
 
3414
3172
  /** @internal */
3415
- export const DeploymentGetConfigOrGt$outboundSchema: z.ZodType<
3416
- DeploymentGetConfigOrGt$Outbound,
3417
- z.ZodTypeDef,
3418
- DeploymentGetConfigOrGt
3419
- > = z.object({
3420
- gt: z.number(),
3421
- });
3422
-
3423
- export function deploymentGetConfigOrGtToJSON(
3424
- deploymentGetConfigOrGt: DeploymentGetConfigOrGt,
3425
- ): string {
3426
- return JSON.stringify(
3427
- DeploymentGetConfigOrGt$outboundSchema.parse(deploymentGetConfigOrGt),
3428
- );
3429
- }
3430
-
3431
- /** @internal */
3432
- export type DeploymentGetConfigOrDeploymentsNe$Outbound =
3433
- | string
3434
- | number
3435
- | boolean;
3436
-
3437
- /** @internal */
3438
- export const DeploymentGetConfigOrDeploymentsNe$outboundSchema: z.ZodType<
3439
- DeploymentGetConfigOrDeploymentsNe$Outbound,
3440
- z.ZodTypeDef,
3441
- DeploymentGetConfigOrDeploymentsNe
3442
- > = z.union([z.string(), z.number(), z.boolean()]);
3173
+ export const OrGt$outboundSchema: z.ZodType<OrGt$Outbound, z.ZodTypeDef, OrGt> =
3174
+ z.object({
3175
+ gt: z.number(),
3176
+ });
3443
3177
 
3444
- export function deploymentGetConfigOrDeploymentsNeToJSON(
3445
- deploymentGetConfigOrDeploymentsNe: DeploymentGetConfigOrDeploymentsNe,
3446
- ): string {
3447
- return JSON.stringify(
3448
- DeploymentGetConfigOrDeploymentsNe$outboundSchema.parse(
3449
- deploymentGetConfigOrDeploymentsNe,
3450
- ),
3451
- );
3178
+ export function orGtToJSON(orGt: OrGt): string {
3179
+ return JSON.stringify(OrGt$outboundSchema.parse(orGt));
3452
3180
  }
3453
3181
 
3454
3182
  /** @internal */
3455
- export type DeploymentGetConfigOrNe$Outbound = {
3456
- ne: string | number | boolean;
3457
- };
3183
+ export type DeploymentGetConfigOrNe$Outbound = string | number | boolean;
3458
3184
 
3459
3185
  /** @internal */
3460
3186
  export const DeploymentGetConfigOrNe$outboundSchema: z.ZodType<
3461
3187
  DeploymentGetConfigOrNe$Outbound,
3462
3188
  z.ZodTypeDef,
3463
3189
  DeploymentGetConfigOrNe
3464
- > = z.object({
3465
- ne: z.union([z.string(), z.number(), z.boolean()]),
3466
- });
3190
+ > = z.union([z.string(), z.number(), z.boolean()]);
3467
3191
 
3468
3192
  export function deploymentGetConfigOrNeToJSON(
3469
3193
  deploymentGetConfigOrNe: DeploymentGetConfigOrNe,
@@ -3474,41 +3198,29 @@ export function deploymentGetConfigOrNeToJSON(
3474
3198
  }
3475
3199
 
3476
3200
  /** @internal */
3477
- export type DeploymentGetConfigOrDeploymentsEq$Outbound =
3478
- | string
3479
- | number
3480
- | boolean;
3201
+ export type OrNe$Outbound = {
3202
+ ne: string | number | boolean;
3203
+ };
3481
3204
 
3482
3205
  /** @internal */
3483
- export const DeploymentGetConfigOrDeploymentsEq$outboundSchema: z.ZodType<
3484
- DeploymentGetConfigOrDeploymentsEq$Outbound,
3485
- z.ZodTypeDef,
3486
- DeploymentGetConfigOrDeploymentsEq
3487
- > = z.union([z.string(), z.number(), z.boolean()]);
3206
+ export const OrNe$outboundSchema: z.ZodType<OrNe$Outbound, z.ZodTypeDef, OrNe> =
3207
+ z.object({
3208
+ ne: z.union([z.string(), z.number(), z.boolean()]),
3209
+ });
3488
3210
 
3489
- export function deploymentGetConfigOrDeploymentsEqToJSON(
3490
- deploymentGetConfigOrDeploymentsEq: DeploymentGetConfigOrDeploymentsEq,
3491
- ): string {
3492
- return JSON.stringify(
3493
- DeploymentGetConfigOrDeploymentsEq$outboundSchema.parse(
3494
- deploymentGetConfigOrDeploymentsEq,
3495
- ),
3496
- );
3211
+ export function orNeToJSON(orNe: OrNe): string {
3212
+ return JSON.stringify(OrNe$outboundSchema.parse(orNe));
3497
3213
  }
3498
3214
 
3499
3215
  /** @internal */
3500
- export type DeploymentGetConfigOrEq$Outbound = {
3501
- eq: string | number | boolean;
3502
- };
3216
+ export type DeploymentGetConfigOrEq$Outbound = string | number | boolean;
3503
3217
 
3504
3218
  /** @internal */
3505
3219
  export const DeploymentGetConfigOrEq$outboundSchema: z.ZodType<
3506
3220
  DeploymentGetConfigOrEq$Outbound,
3507
3221
  z.ZodTypeDef,
3508
3222
  DeploymentGetConfigOrEq
3509
- > = z.object({
3510
- eq: z.union([z.string(), z.number(), z.boolean()]),
3511
- });
3223
+ > = z.union([z.string(), z.number(), z.boolean()]);
3512
3224
 
3513
3225
  export function deploymentGetConfigOrEqToJSON(
3514
3226
  deploymentGetConfigOrEq: DeploymentGetConfigOrEq,
@@ -3519,836 +3231,682 @@ export function deploymentGetConfigOrEqToJSON(
3519
3231
  }
3520
3232
 
3521
3233
  /** @internal */
3522
- export type DeploymentGetConfigKnowledgeFilterDeploymentsOr$Outbound =
3523
- | DeploymentGetConfigOrEq$Outbound
3524
- | DeploymentGetConfigOrNe$Outbound
3525
- | DeploymentGetConfigOrGt$Outbound
3526
- | DeploymentGetConfigOrGte$Outbound
3527
- | DeploymentGetConfigOrLt$Outbound
3528
- | DeploymentGetConfigOrLte$Outbound
3529
- | DeploymentGetConfigOrIn$Outbound
3530
- | DeploymentGetConfigOrNin$Outbound
3531
- | DeploymentGetConfigOrExists$Outbound;
3234
+ export type OrEq$Outbound = {
3235
+ eq: string | number | boolean;
3236
+ };
3237
+
3238
+ /** @internal */
3239
+ export const OrEq$outboundSchema: z.ZodType<OrEq$Outbound, z.ZodTypeDef, OrEq> =
3240
+ z.object({
3241
+ eq: z.union([z.string(), z.number(), z.boolean()]),
3242
+ });
3243
+
3244
+ export function orEqToJSON(orEq: OrEq): string {
3245
+ return JSON.stringify(OrEq$outboundSchema.parse(orEq));
3246
+ }
3247
+
3248
+ /** @internal */
3249
+ export type KnowledgeFilterOr$Outbound =
3250
+ | OrEq$Outbound
3251
+ | OrNe$Outbound
3252
+ | OrGt$Outbound
3253
+ | OrGte$Outbound
3254
+ | OrLt$Outbound
3255
+ | OrLte$Outbound
3256
+ | OrIn$Outbound
3257
+ | OrNin$Outbound
3258
+ | OrExists$Outbound;
3532
3259
 
3533
3260
  /** @internal */
3534
- export const DeploymentGetConfigKnowledgeFilterDeploymentsOr$outboundSchema:
3535
- z.ZodType<
3536
- DeploymentGetConfigKnowledgeFilterDeploymentsOr$Outbound,
3537
- z.ZodTypeDef,
3538
- DeploymentGetConfigKnowledgeFilterDeploymentsOr
3539
- > = z.union([
3540
- z.lazy(() => DeploymentGetConfigOrEq$outboundSchema),
3541
- z.lazy(() => DeploymentGetConfigOrNe$outboundSchema),
3542
- z.lazy(() => DeploymentGetConfigOrGt$outboundSchema),
3543
- z.lazy(() => DeploymentGetConfigOrGte$outboundSchema),
3544
- z.lazy(() => DeploymentGetConfigOrLt$outboundSchema),
3545
- z.lazy(() => DeploymentGetConfigOrLte$outboundSchema),
3546
- z.lazy(() => DeploymentGetConfigOrIn$outboundSchema),
3547
- z.lazy(() => DeploymentGetConfigOrNin$outboundSchema),
3548
- z.lazy(() => DeploymentGetConfigOrExists$outboundSchema),
3549
- ]);
3261
+ export const KnowledgeFilterOr$outboundSchema: z.ZodType<
3262
+ KnowledgeFilterOr$Outbound,
3263
+ z.ZodTypeDef,
3264
+ KnowledgeFilterOr
3265
+ > = z.union([
3266
+ z.lazy(() => OrEq$outboundSchema),
3267
+ z.lazy(() => OrNe$outboundSchema),
3268
+ z.lazy(() => OrGt$outboundSchema),
3269
+ z.lazy(() => OrGte$outboundSchema),
3270
+ z.lazy(() => OrLt$outboundSchema),
3271
+ z.lazy(() => OrLte$outboundSchema),
3272
+ z.lazy(() => OrIn$outboundSchema),
3273
+ z.lazy(() => OrNin$outboundSchema),
3274
+ z.lazy(() => OrExists$outboundSchema),
3275
+ ]);
3550
3276
 
3551
- export function deploymentGetConfigKnowledgeFilterDeploymentsOrToJSON(
3552
- deploymentGetConfigKnowledgeFilterDeploymentsOr:
3553
- DeploymentGetConfigKnowledgeFilterDeploymentsOr,
3277
+ export function knowledgeFilterOrToJSON(
3278
+ knowledgeFilterOr: KnowledgeFilterOr,
3554
3279
  ): string {
3555
3280
  return JSON.stringify(
3556
- DeploymentGetConfigKnowledgeFilterDeploymentsOr$outboundSchema.parse(
3557
- deploymentGetConfigKnowledgeFilterDeploymentsOr,
3558
- ),
3281
+ KnowledgeFilterOr$outboundSchema.parse(knowledgeFilterOr),
3559
3282
  );
3560
3283
  }
3561
3284
 
3562
3285
  /** @internal */
3563
- export type DeploymentGetConfigKnowledgeFilterOr$Outbound = {
3286
+ export type Or$Outbound = {
3564
3287
  or: Array<
3565
3288
  {
3566
3289
  [k: string]:
3567
- | DeploymentGetConfigOrEq$Outbound
3568
- | DeploymentGetConfigOrNe$Outbound
3569
- | DeploymentGetConfigOrGt$Outbound
3570
- | DeploymentGetConfigOrGte$Outbound
3571
- | DeploymentGetConfigOrLt$Outbound
3572
- | DeploymentGetConfigOrLte$Outbound
3573
- | DeploymentGetConfigOrIn$Outbound
3574
- | DeploymentGetConfigOrNin$Outbound
3575
- | DeploymentGetConfigOrExists$Outbound;
3290
+ | OrEq$Outbound
3291
+ | OrNe$Outbound
3292
+ | OrGt$Outbound
3293
+ | OrGte$Outbound
3294
+ | OrLt$Outbound
3295
+ | OrLte$Outbound
3296
+ | OrIn$Outbound
3297
+ | OrNin$Outbound
3298
+ | OrExists$Outbound;
3576
3299
  }
3577
3300
  >;
3578
3301
  };
3579
3302
 
3580
3303
  /** @internal */
3581
- export const DeploymentGetConfigKnowledgeFilterOr$outboundSchema: z.ZodType<
3582
- DeploymentGetConfigKnowledgeFilterOr$Outbound,
3583
- z.ZodTypeDef,
3584
- DeploymentGetConfigKnowledgeFilterOr
3585
- > = z.object({
3586
- or: z.array(
3587
- z.record(z.union([
3588
- z.lazy(() => DeploymentGetConfigOrEq$outboundSchema),
3589
- z.lazy(() =>
3590
- DeploymentGetConfigOrNe$outboundSchema
3591
- ),
3592
- z.lazy(() => DeploymentGetConfigOrGt$outboundSchema),
3593
- z.lazy(() => DeploymentGetConfigOrGte$outboundSchema),
3594
- z.lazy(() => DeploymentGetConfigOrLt$outboundSchema),
3595
- z.lazy(() => DeploymentGetConfigOrLte$outboundSchema),
3596
- z.lazy(() => DeploymentGetConfigOrIn$outboundSchema),
3597
- z.lazy(() => DeploymentGetConfigOrNin$outboundSchema),
3598
- z.lazy(() => DeploymentGetConfigOrExists$outboundSchema),
3599
- ])),
3600
- ),
3601
- });
3602
-
3603
- export function deploymentGetConfigKnowledgeFilterOrToJSON(
3604
- deploymentGetConfigKnowledgeFilterOr: DeploymentGetConfigKnowledgeFilterOr,
3605
- ): string {
3606
- return JSON.stringify(
3607
- DeploymentGetConfigKnowledgeFilterOr$outboundSchema.parse(
3608
- deploymentGetConfigKnowledgeFilterOr,
3304
+ export const Or$outboundSchema: z.ZodType<Or$Outbound, z.ZodTypeDef, Or> = z
3305
+ .object({
3306
+ or: z.array(
3307
+ z.record(z.union([
3308
+ z.lazy(() => OrEq$outboundSchema),
3309
+ z.lazy(() =>
3310
+ OrNe$outboundSchema
3311
+ ),
3312
+ z.lazy(() => OrGt$outboundSchema),
3313
+ z.lazy(() => OrGte$outboundSchema),
3314
+ z.lazy(() => OrLt$outboundSchema),
3315
+ z.lazy(() => OrLte$outboundSchema),
3316
+ z.lazy(() => OrIn$outboundSchema),
3317
+ z.lazy(() => OrNin$outboundSchema),
3318
+ z.lazy(() => OrExists$outboundSchema),
3319
+ ])),
3609
3320
  ),
3610
- );
3321
+ });
3322
+
3323
+ export function orToJSON(or: Or): string {
3324
+ return JSON.stringify(Or$outboundSchema.parse(or));
3611
3325
  }
3612
3326
 
3613
3327
  /** @internal */
3614
- export type DeploymentGetConfigAndExists$Outbound = {
3328
+ export type AndExists$Outbound = {
3615
3329
  exists: boolean;
3616
3330
  };
3617
3331
 
3618
3332
  /** @internal */
3619
- export const DeploymentGetConfigAndExists$outboundSchema: z.ZodType<
3620
- DeploymentGetConfigAndExists$Outbound,
3333
+ export const AndExists$outboundSchema: z.ZodType<
3334
+ AndExists$Outbound,
3621
3335
  z.ZodTypeDef,
3622
- DeploymentGetConfigAndExists
3336
+ AndExists
3623
3337
  > = z.object({
3624
3338
  exists: z.boolean(),
3625
3339
  });
3626
3340
 
3627
- export function deploymentGetConfigAndExistsToJSON(
3628
- deploymentGetConfigAndExists: DeploymentGetConfigAndExists,
3629
- ): string {
3630
- return JSON.stringify(
3631
- DeploymentGetConfigAndExists$outboundSchema.parse(
3632
- deploymentGetConfigAndExists,
3633
- ),
3634
- );
3341
+ export function andExistsToJSON(andExists: AndExists): string {
3342
+ return JSON.stringify(AndExists$outboundSchema.parse(andExists));
3635
3343
  }
3636
3344
 
3637
3345
  /** @internal */
3638
- export type DeploymentGetConfigAndDeploymentsNin$Outbound =
3639
- | string
3640
- | number
3641
- | boolean;
3346
+ export type DeploymentGetConfigAndNin$Outbound = string | number | boolean;
3642
3347
 
3643
3348
  /** @internal */
3644
- export const DeploymentGetConfigAndDeploymentsNin$outboundSchema: z.ZodType<
3645
- DeploymentGetConfigAndDeploymentsNin$Outbound,
3349
+ export const DeploymentGetConfigAndNin$outboundSchema: z.ZodType<
3350
+ DeploymentGetConfigAndNin$Outbound,
3646
3351
  z.ZodTypeDef,
3647
- DeploymentGetConfigAndDeploymentsNin
3352
+ DeploymentGetConfigAndNin
3648
3353
  > = z.union([z.string(), z.number(), z.boolean()]);
3649
3354
 
3650
- export function deploymentGetConfigAndDeploymentsNinToJSON(
3651
- deploymentGetConfigAndDeploymentsNin: DeploymentGetConfigAndDeploymentsNin,
3355
+ export function deploymentGetConfigAndNinToJSON(
3356
+ deploymentGetConfigAndNin: DeploymentGetConfigAndNin,
3652
3357
  ): string {
3653
3358
  return JSON.stringify(
3654
- DeploymentGetConfigAndDeploymentsNin$outboundSchema.parse(
3655
- deploymentGetConfigAndDeploymentsNin,
3656
- ),
3359
+ DeploymentGetConfigAndNin$outboundSchema.parse(deploymentGetConfigAndNin),
3657
3360
  );
3658
3361
  }
3659
3362
 
3660
3363
  /** @internal */
3661
- export type DeploymentGetConfigAndNin$Outbound = {
3364
+ export type AndNin$Outbound = {
3662
3365
  nin: Array<string | number | boolean>;
3663
3366
  };
3664
3367
 
3665
3368
  /** @internal */
3666
- export const DeploymentGetConfigAndNin$outboundSchema: z.ZodType<
3667
- DeploymentGetConfigAndNin$Outbound,
3369
+ export const AndNin$outboundSchema: z.ZodType<
3370
+ AndNin$Outbound,
3668
3371
  z.ZodTypeDef,
3669
- DeploymentGetConfigAndNin
3372
+ AndNin
3670
3373
  > = z.object({
3671
3374
  nin: z.array(z.union([z.string(), z.number(), z.boolean()])),
3672
3375
  });
3673
3376
 
3674
- export function deploymentGetConfigAndNinToJSON(
3675
- deploymentGetConfigAndNin: DeploymentGetConfigAndNin,
3676
- ): string {
3677
- return JSON.stringify(
3678
- DeploymentGetConfigAndNin$outboundSchema.parse(deploymentGetConfigAndNin),
3679
- );
3377
+ export function andNinToJSON(andNin: AndNin): string {
3378
+ return JSON.stringify(AndNin$outboundSchema.parse(andNin));
3680
3379
  }
3681
3380
 
3682
3381
  /** @internal */
3683
- export type DeploymentGetConfigAndDeploymentsIn$Outbound =
3684
- | string
3685
- | number
3686
- | boolean;
3382
+ export type DeploymentGetConfigAndIn$Outbound = string | number | boolean;
3687
3383
 
3688
3384
  /** @internal */
3689
- export const DeploymentGetConfigAndDeploymentsIn$outboundSchema: z.ZodType<
3690
- DeploymentGetConfigAndDeploymentsIn$Outbound,
3385
+ export const DeploymentGetConfigAndIn$outboundSchema: z.ZodType<
3386
+ DeploymentGetConfigAndIn$Outbound,
3691
3387
  z.ZodTypeDef,
3692
- DeploymentGetConfigAndDeploymentsIn
3388
+ DeploymentGetConfigAndIn
3693
3389
  > = z.union([z.string(), z.number(), z.boolean()]);
3694
3390
 
3695
- export function deploymentGetConfigAndDeploymentsInToJSON(
3696
- deploymentGetConfigAndDeploymentsIn: DeploymentGetConfigAndDeploymentsIn,
3391
+ export function deploymentGetConfigAndInToJSON(
3392
+ deploymentGetConfigAndIn: DeploymentGetConfigAndIn,
3697
3393
  ): string {
3698
3394
  return JSON.stringify(
3699
- DeploymentGetConfigAndDeploymentsIn$outboundSchema.parse(
3700
- deploymentGetConfigAndDeploymentsIn,
3701
- ),
3395
+ DeploymentGetConfigAndIn$outboundSchema.parse(deploymentGetConfigAndIn),
3702
3396
  );
3703
3397
  }
3704
3398
 
3705
3399
  /** @internal */
3706
- export type DeploymentGetConfigAndIn$Outbound = {
3400
+ export type AndIn$Outbound = {
3707
3401
  in: Array<string | number | boolean>;
3708
3402
  };
3709
3403
 
3710
3404
  /** @internal */
3711
- export const DeploymentGetConfigAndIn$outboundSchema: z.ZodType<
3712
- DeploymentGetConfigAndIn$Outbound,
3405
+ export const AndIn$outboundSchema: z.ZodType<
3406
+ AndIn$Outbound,
3713
3407
  z.ZodTypeDef,
3714
- DeploymentGetConfigAndIn
3408
+ AndIn
3715
3409
  > = z.object({
3716
3410
  in: z.array(z.union([z.string(), z.number(), z.boolean()])),
3717
3411
  });
3718
3412
 
3719
- export function deploymentGetConfigAndInToJSON(
3720
- deploymentGetConfigAndIn: DeploymentGetConfigAndIn,
3721
- ): string {
3722
- return JSON.stringify(
3723
- DeploymentGetConfigAndIn$outboundSchema.parse(deploymentGetConfigAndIn),
3724
- );
3413
+ export function andInToJSON(andIn: AndIn): string {
3414
+ return JSON.stringify(AndIn$outboundSchema.parse(andIn));
3725
3415
  }
3726
3416
 
3727
3417
  /** @internal */
3728
- export type DeploymentGetConfigAndLte$Outbound = {
3418
+ export type AndLte$Outbound = {
3729
3419
  lte: number;
3730
3420
  };
3731
3421
 
3732
3422
  /** @internal */
3733
- export const DeploymentGetConfigAndLte$outboundSchema: z.ZodType<
3734
- DeploymentGetConfigAndLte$Outbound,
3423
+ export const AndLte$outboundSchema: z.ZodType<
3424
+ AndLte$Outbound,
3735
3425
  z.ZodTypeDef,
3736
- DeploymentGetConfigAndLte
3426
+ AndLte
3737
3427
  > = z.object({
3738
3428
  lte: z.number(),
3739
3429
  });
3740
3430
 
3741
- export function deploymentGetConfigAndLteToJSON(
3742
- deploymentGetConfigAndLte: DeploymentGetConfigAndLte,
3743
- ): string {
3744
- return JSON.stringify(
3745
- DeploymentGetConfigAndLte$outboundSchema.parse(deploymentGetConfigAndLte),
3746
- );
3431
+ export function andLteToJSON(andLte: AndLte): string {
3432
+ return JSON.stringify(AndLte$outboundSchema.parse(andLte));
3747
3433
  }
3748
3434
 
3749
3435
  /** @internal */
3750
- export type DeploymentGetConfigAndLt$Outbound = {
3436
+ export type AndLt$Outbound = {
3751
3437
  lt: number;
3752
3438
  };
3753
3439
 
3754
3440
  /** @internal */
3755
- export const DeploymentGetConfigAndLt$outboundSchema: z.ZodType<
3756
- DeploymentGetConfigAndLt$Outbound,
3441
+ export const AndLt$outboundSchema: z.ZodType<
3442
+ AndLt$Outbound,
3757
3443
  z.ZodTypeDef,
3758
- DeploymentGetConfigAndLt
3444
+ AndLt
3759
3445
  > = z.object({
3760
3446
  lt: z.number(),
3761
3447
  });
3762
3448
 
3763
- export function deploymentGetConfigAndLtToJSON(
3764
- deploymentGetConfigAndLt: DeploymentGetConfigAndLt,
3765
- ): string {
3766
- return JSON.stringify(
3767
- DeploymentGetConfigAndLt$outboundSchema.parse(deploymentGetConfigAndLt),
3768
- );
3449
+ export function andLtToJSON(andLt: AndLt): string {
3450
+ return JSON.stringify(AndLt$outboundSchema.parse(andLt));
3769
3451
  }
3770
3452
 
3771
3453
  /** @internal */
3772
- export type DeploymentGetConfigAndGte$Outbound = {
3454
+ export type AndGte$Outbound = {
3773
3455
  gte: number;
3774
3456
  };
3775
3457
 
3776
3458
  /** @internal */
3777
- export const DeploymentGetConfigAndGte$outboundSchema: z.ZodType<
3778
- DeploymentGetConfigAndGte$Outbound,
3459
+ export const AndGte$outboundSchema: z.ZodType<
3460
+ AndGte$Outbound,
3779
3461
  z.ZodTypeDef,
3780
- DeploymentGetConfigAndGte
3462
+ AndGte
3781
3463
  > = z.object({
3782
3464
  gte: z.number(),
3783
3465
  });
3784
3466
 
3785
- export function deploymentGetConfigAndGteToJSON(
3786
- deploymentGetConfigAndGte: DeploymentGetConfigAndGte,
3787
- ): string {
3788
- return JSON.stringify(
3789
- DeploymentGetConfigAndGte$outboundSchema.parse(deploymentGetConfigAndGte),
3790
- );
3467
+ export function andGteToJSON(andGte: AndGte): string {
3468
+ return JSON.stringify(AndGte$outboundSchema.parse(andGte));
3791
3469
  }
3792
3470
 
3793
3471
  /** @internal */
3794
- export type DeploymentGetConfigAndGt$Outbound = {
3472
+ export type AndGt$Outbound = {
3795
3473
  gt: number;
3796
3474
  };
3797
3475
 
3798
3476
  /** @internal */
3799
- export const DeploymentGetConfigAndGt$outboundSchema: z.ZodType<
3800
- DeploymentGetConfigAndGt$Outbound,
3477
+ export const AndGt$outboundSchema: z.ZodType<
3478
+ AndGt$Outbound,
3801
3479
  z.ZodTypeDef,
3802
- DeploymentGetConfigAndGt
3480
+ AndGt
3803
3481
  > = z.object({
3804
3482
  gt: z.number(),
3805
3483
  });
3806
3484
 
3807
- export function deploymentGetConfigAndGtToJSON(
3808
- deploymentGetConfigAndGt: DeploymentGetConfigAndGt,
3809
- ): string {
3810
- return JSON.stringify(
3811
- DeploymentGetConfigAndGt$outboundSchema.parse(deploymentGetConfigAndGt),
3812
- );
3485
+ export function andGtToJSON(andGt: AndGt): string {
3486
+ return JSON.stringify(AndGt$outboundSchema.parse(andGt));
3813
3487
  }
3814
3488
 
3815
3489
  /** @internal */
3816
- export type DeploymentGetConfigAndDeploymentsNe$Outbound =
3817
- | string
3818
- | number
3819
- | boolean;
3490
+ export type DeploymentGetConfigAndNe$Outbound = string | number | boolean;
3820
3491
 
3821
3492
  /** @internal */
3822
- export const DeploymentGetConfigAndDeploymentsNe$outboundSchema: z.ZodType<
3823
- DeploymentGetConfigAndDeploymentsNe$Outbound,
3493
+ export const DeploymentGetConfigAndNe$outboundSchema: z.ZodType<
3494
+ DeploymentGetConfigAndNe$Outbound,
3824
3495
  z.ZodTypeDef,
3825
- DeploymentGetConfigAndDeploymentsNe
3496
+ DeploymentGetConfigAndNe
3826
3497
  > = z.union([z.string(), z.number(), z.boolean()]);
3827
3498
 
3828
- export function deploymentGetConfigAndDeploymentsNeToJSON(
3829
- deploymentGetConfigAndDeploymentsNe: DeploymentGetConfigAndDeploymentsNe,
3499
+ export function deploymentGetConfigAndNeToJSON(
3500
+ deploymentGetConfigAndNe: DeploymentGetConfigAndNe,
3830
3501
  ): string {
3831
3502
  return JSON.stringify(
3832
- DeploymentGetConfigAndDeploymentsNe$outboundSchema.parse(
3833
- deploymentGetConfigAndDeploymentsNe,
3834
- ),
3503
+ DeploymentGetConfigAndNe$outboundSchema.parse(deploymentGetConfigAndNe),
3835
3504
  );
3836
3505
  }
3837
3506
 
3838
3507
  /** @internal */
3839
- export type DeploymentGetConfigAndNe$Outbound = {
3508
+ export type AndNe$Outbound = {
3840
3509
  ne: string | number | boolean;
3841
3510
  };
3842
3511
 
3843
3512
  /** @internal */
3844
- export const DeploymentGetConfigAndNe$outboundSchema: z.ZodType<
3845
- DeploymentGetConfigAndNe$Outbound,
3513
+ export const AndNe$outboundSchema: z.ZodType<
3514
+ AndNe$Outbound,
3846
3515
  z.ZodTypeDef,
3847
- DeploymentGetConfigAndNe
3516
+ AndNe
3848
3517
  > = z.object({
3849
3518
  ne: z.union([z.string(), z.number(), z.boolean()]),
3850
3519
  });
3851
3520
 
3852
- export function deploymentGetConfigAndNeToJSON(
3853
- deploymentGetConfigAndNe: DeploymentGetConfigAndNe,
3854
- ): string {
3855
- return JSON.stringify(
3856
- DeploymentGetConfigAndNe$outboundSchema.parse(deploymentGetConfigAndNe),
3857
- );
3521
+ export function andNeToJSON(andNe: AndNe): string {
3522
+ return JSON.stringify(AndNe$outboundSchema.parse(andNe));
3858
3523
  }
3859
3524
 
3860
3525
  /** @internal */
3861
- export type DeploymentGetConfigAndDeploymentsEq$Outbound =
3862
- | string
3863
- | number
3864
- | boolean;
3526
+ export type DeploymentGetConfigAndEq$Outbound = string | number | boolean;
3865
3527
 
3866
3528
  /** @internal */
3867
- export const DeploymentGetConfigAndDeploymentsEq$outboundSchema: z.ZodType<
3868
- DeploymentGetConfigAndDeploymentsEq$Outbound,
3529
+ export const DeploymentGetConfigAndEq$outboundSchema: z.ZodType<
3530
+ DeploymentGetConfigAndEq$Outbound,
3869
3531
  z.ZodTypeDef,
3870
- DeploymentGetConfigAndDeploymentsEq
3532
+ DeploymentGetConfigAndEq
3871
3533
  > = z.union([z.string(), z.number(), z.boolean()]);
3872
3534
 
3873
- export function deploymentGetConfigAndDeploymentsEqToJSON(
3874
- deploymentGetConfigAndDeploymentsEq: DeploymentGetConfigAndDeploymentsEq,
3535
+ export function deploymentGetConfigAndEqToJSON(
3536
+ deploymentGetConfigAndEq: DeploymentGetConfigAndEq,
3875
3537
  ): string {
3876
3538
  return JSON.stringify(
3877
- DeploymentGetConfigAndDeploymentsEq$outboundSchema.parse(
3878
- deploymentGetConfigAndDeploymentsEq,
3879
- ),
3539
+ DeploymentGetConfigAndEq$outboundSchema.parse(deploymentGetConfigAndEq),
3880
3540
  );
3881
3541
  }
3882
3542
 
3883
3543
  /** @internal */
3884
- export type DeploymentGetConfigAndEq$Outbound = {
3544
+ export type AndEq$Outbound = {
3885
3545
  eq: string | number | boolean;
3886
3546
  };
3887
3547
 
3888
3548
  /** @internal */
3889
- export const DeploymentGetConfigAndEq$outboundSchema: z.ZodType<
3890
- DeploymentGetConfigAndEq$Outbound,
3549
+ export const AndEq$outboundSchema: z.ZodType<
3550
+ AndEq$Outbound,
3891
3551
  z.ZodTypeDef,
3892
- DeploymentGetConfigAndEq
3552
+ AndEq
3893
3553
  > = z.object({
3894
3554
  eq: z.union([z.string(), z.number(), z.boolean()]),
3895
3555
  });
3896
3556
 
3897
- export function deploymentGetConfigAndEqToJSON(
3898
- deploymentGetConfigAndEq: DeploymentGetConfigAndEq,
3899
- ): string {
3900
- return JSON.stringify(
3901
- DeploymentGetConfigAndEq$outboundSchema.parse(deploymentGetConfigAndEq),
3902
- );
3557
+ export function andEqToJSON(andEq: AndEq): string {
3558
+ return JSON.stringify(AndEq$outboundSchema.parse(andEq));
3903
3559
  }
3904
3560
 
3905
3561
  /** @internal */
3906
- export type DeploymentGetConfigKnowledgeFilterDeploymentsAnd$Outbound =
3907
- | DeploymentGetConfigAndEq$Outbound
3908
- | DeploymentGetConfigAndNe$Outbound
3909
- | DeploymentGetConfigAndGt$Outbound
3910
- | DeploymentGetConfigAndGte$Outbound
3911
- | DeploymentGetConfigAndLt$Outbound
3912
- | DeploymentGetConfigAndLte$Outbound
3913
- | DeploymentGetConfigAndIn$Outbound
3914
- | DeploymentGetConfigAndNin$Outbound
3915
- | DeploymentGetConfigAndExists$Outbound;
3562
+ export type KnowledgeFilterAnd$Outbound =
3563
+ | AndEq$Outbound
3564
+ | AndNe$Outbound
3565
+ | AndGt$Outbound
3566
+ | AndGte$Outbound
3567
+ | AndLt$Outbound
3568
+ | AndLte$Outbound
3569
+ | AndIn$Outbound
3570
+ | AndNin$Outbound
3571
+ | AndExists$Outbound;
3916
3572
 
3917
3573
  /** @internal */
3918
- export const DeploymentGetConfigKnowledgeFilterDeploymentsAnd$outboundSchema:
3919
- z.ZodType<
3920
- DeploymentGetConfigKnowledgeFilterDeploymentsAnd$Outbound,
3921
- z.ZodTypeDef,
3922
- DeploymentGetConfigKnowledgeFilterDeploymentsAnd
3923
- > = z.union([
3924
- z.lazy(() => DeploymentGetConfigAndEq$outboundSchema),
3925
- z.lazy(() => DeploymentGetConfigAndNe$outboundSchema),
3926
- z.lazy(() => DeploymentGetConfigAndGt$outboundSchema),
3927
- z.lazy(() => DeploymentGetConfigAndGte$outboundSchema),
3928
- z.lazy(() => DeploymentGetConfigAndLt$outboundSchema),
3929
- z.lazy(() => DeploymentGetConfigAndLte$outboundSchema),
3930
- z.lazy(() => DeploymentGetConfigAndIn$outboundSchema),
3931
- z.lazy(() => DeploymentGetConfigAndNin$outboundSchema),
3932
- z.lazy(() => DeploymentGetConfigAndExists$outboundSchema),
3933
- ]);
3574
+ export const KnowledgeFilterAnd$outboundSchema: z.ZodType<
3575
+ KnowledgeFilterAnd$Outbound,
3576
+ z.ZodTypeDef,
3577
+ KnowledgeFilterAnd
3578
+ > = z.union([
3579
+ z.lazy(() => AndEq$outboundSchema),
3580
+ z.lazy(() => AndNe$outboundSchema),
3581
+ z.lazy(() => AndGt$outboundSchema),
3582
+ z.lazy(() => AndGte$outboundSchema),
3583
+ z.lazy(() => AndLt$outboundSchema),
3584
+ z.lazy(() => AndLte$outboundSchema),
3585
+ z.lazy(() => AndIn$outboundSchema),
3586
+ z.lazy(() => AndNin$outboundSchema),
3587
+ z.lazy(() => AndExists$outboundSchema),
3588
+ ]);
3934
3589
 
3935
- export function deploymentGetConfigKnowledgeFilterDeploymentsAndToJSON(
3936
- deploymentGetConfigKnowledgeFilterDeploymentsAnd:
3937
- DeploymentGetConfigKnowledgeFilterDeploymentsAnd,
3590
+ export function knowledgeFilterAndToJSON(
3591
+ knowledgeFilterAnd: KnowledgeFilterAnd,
3938
3592
  ): string {
3939
3593
  return JSON.stringify(
3940
- DeploymentGetConfigKnowledgeFilterDeploymentsAnd$outboundSchema.parse(
3941
- deploymentGetConfigKnowledgeFilterDeploymentsAnd,
3942
- ),
3594
+ KnowledgeFilterAnd$outboundSchema.parse(knowledgeFilterAnd),
3943
3595
  );
3944
3596
  }
3945
3597
 
3946
3598
  /** @internal */
3947
- export type DeploymentGetConfigKnowledgeFilterAnd$Outbound = {
3599
+ export type And$Outbound = {
3948
3600
  and: Array<
3949
3601
  {
3950
3602
  [k: string]:
3951
- | DeploymentGetConfigAndEq$Outbound
3952
- | DeploymentGetConfigAndNe$Outbound
3953
- | DeploymentGetConfigAndGt$Outbound
3954
- | DeploymentGetConfigAndGte$Outbound
3955
- | DeploymentGetConfigAndLt$Outbound
3956
- | DeploymentGetConfigAndLte$Outbound
3957
- | DeploymentGetConfigAndIn$Outbound
3958
- | DeploymentGetConfigAndNin$Outbound
3959
- | DeploymentGetConfigAndExists$Outbound;
3603
+ | AndEq$Outbound
3604
+ | AndNe$Outbound
3605
+ | AndGt$Outbound
3606
+ | AndGte$Outbound
3607
+ | AndLt$Outbound
3608
+ | AndLte$Outbound
3609
+ | AndIn$Outbound
3610
+ | AndNin$Outbound
3611
+ | AndExists$Outbound;
3960
3612
  }
3961
3613
  >;
3962
3614
  };
3963
3615
 
3964
3616
  /** @internal */
3965
- export const DeploymentGetConfigKnowledgeFilterAnd$outboundSchema: z.ZodType<
3966
- DeploymentGetConfigKnowledgeFilterAnd$Outbound,
3967
- z.ZodTypeDef,
3968
- DeploymentGetConfigKnowledgeFilterAnd
3969
- > = z.object({
3970
- and: z.array(
3971
- z.record(z.union([
3972
- z.lazy(() => DeploymentGetConfigAndEq$outboundSchema),
3973
- z.lazy(() =>
3974
- DeploymentGetConfigAndNe$outboundSchema
3975
- ),
3976
- z.lazy(() => DeploymentGetConfigAndGt$outboundSchema),
3977
- z.lazy(() => DeploymentGetConfigAndGte$outboundSchema),
3978
- z.lazy(() => DeploymentGetConfigAndLt$outboundSchema),
3979
- z.lazy(() => DeploymentGetConfigAndLte$outboundSchema),
3980
- z.lazy(() => DeploymentGetConfigAndIn$outboundSchema),
3981
- z.lazy(() => DeploymentGetConfigAndNin$outboundSchema),
3982
- z.lazy(() => DeploymentGetConfigAndExists$outboundSchema),
3983
- ])),
3984
- ),
3985
- });
3986
-
3987
- export function deploymentGetConfigKnowledgeFilterAndToJSON(
3988
- deploymentGetConfigKnowledgeFilterAnd: DeploymentGetConfigKnowledgeFilterAnd,
3989
- ): string {
3990
- return JSON.stringify(
3991
- DeploymentGetConfigKnowledgeFilterAnd$outboundSchema.parse(
3992
- deploymentGetConfigKnowledgeFilterAnd,
3617
+ export const And$outboundSchema: z.ZodType<And$Outbound, z.ZodTypeDef, And> = z
3618
+ .object({
3619
+ and: z.array(
3620
+ z.record(z.union([
3621
+ z.lazy(() => AndEq$outboundSchema),
3622
+ z.lazy(() =>
3623
+ AndNe$outboundSchema
3624
+ ),
3625
+ z.lazy(() => AndGt$outboundSchema),
3626
+ z.lazy(() => AndGte$outboundSchema),
3627
+ z.lazy(() => AndLt$outboundSchema),
3628
+ z.lazy(() => AndLte$outboundSchema),
3629
+ z.lazy(() => AndIn$outboundSchema),
3630
+ z.lazy(() => AndNin$outboundSchema),
3631
+ z.lazy(() => AndExists$outboundSchema),
3632
+ ])),
3993
3633
  ),
3994
- );
3634
+ });
3635
+
3636
+ export function andToJSON(and: And): string {
3637
+ return JSON.stringify(And$outboundSchema.parse(and));
3995
3638
  }
3996
3639
 
3997
3640
  /** @internal */
3998
- export type OneExists$Outbound = {
3641
+ export type Exists$Outbound = {
3999
3642
  exists: boolean;
4000
3643
  };
4001
3644
 
4002
3645
  /** @internal */
4003
- export const OneExists$outboundSchema: z.ZodType<
4004
- OneExists$Outbound,
3646
+ export const Exists$outboundSchema: z.ZodType<
3647
+ Exists$Outbound,
4005
3648
  z.ZodTypeDef,
4006
- OneExists
3649
+ Exists
4007
3650
  > = z.object({
4008
3651
  exists: z.boolean(),
4009
3652
  });
4010
3653
 
4011
- export function oneExistsToJSON(oneExists: OneExists): string {
4012
- return JSON.stringify(OneExists$outboundSchema.parse(oneExists));
3654
+ export function existsToJSON(exists: Exists): string {
3655
+ return JSON.stringify(Exists$outboundSchema.parse(exists));
4013
3656
  }
4014
3657
 
4015
3658
  /** @internal */
4016
- export type DeploymentGetConfig1DeploymentsNin$Outbound =
4017
- | string
4018
- | number
4019
- | boolean;
3659
+ export type OneNin$Outbound = string | number | boolean;
4020
3660
 
4021
3661
  /** @internal */
4022
- export const DeploymentGetConfig1DeploymentsNin$outboundSchema: z.ZodType<
4023
- DeploymentGetConfig1DeploymentsNin$Outbound,
3662
+ export const OneNin$outboundSchema: z.ZodType<
3663
+ OneNin$Outbound,
4024
3664
  z.ZodTypeDef,
4025
- DeploymentGetConfig1DeploymentsNin
3665
+ OneNin
4026
3666
  > = z.union([z.string(), z.number(), z.boolean()]);
4027
3667
 
4028
- export function deploymentGetConfig1DeploymentsNinToJSON(
4029
- deploymentGetConfig1DeploymentsNin: DeploymentGetConfig1DeploymentsNin,
4030
- ): string {
4031
- return JSON.stringify(
4032
- DeploymentGetConfig1DeploymentsNin$outboundSchema.parse(
4033
- deploymentGetConfig1DeploymentsNin,
4034
- ),
4035
- );
3668
+ export function oneNinToJSON(oneNin: OneNin): string {
3669
+ return JSON.stringify(OneNin$outboundSchema.parse(oneNin));
4036
3670
  }
4037
3671
 
4038
3672
  /** @internal */
4039
- export type DeploymentGetConfig1Nin$Outbound = {
3673
+ export type Nin$Outbound = {
4040
3674
  nin: Array<string | number | boolean>;
4041
3675
  };
4042
3676
 
4043
3677
  /** @internal */
4044
- export const DeploymentGetConfig1Nin$outboundSchema: z.ZodType<
4045
- DeploymentGetConfig1Nin$Outbound,
4046
- z.ZodTypeDef,
4047
- DeploymentGetConfig1Nin
4048
- > = z.object({
4049
- nin: z.array(z.union([z.string(), z.number(), z.boolean()])),
4050
- });
3678
+ export const Nin$outboundSchema: z.ZodType<Nin$Outbound, z.ZodTypeDef, Nin> = z
3679
+ .object({
3680
+ nin: z.array(z.union([z.string(), z.number(), z.boolean()])),
3681
+ });
4051
3682
 
4052
- export function deploymentGetConfig1NinToJSON(
4053
- deploymentGetConfig1Nin: DeploymentGetConfig1Nin,
4054
- ): string {
4055
- return JSON.stringify(
4056
- DeploymentGetConfig1Nin$outboundSchema.parse(deploymentGetConfig1Nin),
4057
- );
3683
+ export function ninToJSON(nin: Nin): string {
3684
+ return JSON.stringify(Nin$outboundSchema.parse(nin));
4058
3685
  }
4059
3686
 
4060
3687
  /** @internal */
4061
- export type DeploymentGetConfig1DeploymentsIn$Outbound =
4062
- | string
4063
- | number
4064
- | boolean;
3688
+ export type OneIn$Outbound = string | number | boolean;
4065
3689
 
4066
3690
  /** @internal */
4067
- export const DeploymentGetConfig1DeploymentsIn$outboundSchema: z.ZodType<
4068
- DeploymentGetConfig1DeploymentsIn$Outbound,
3691
+ export const OneIn$outboundSchema: z.ZodType<
3692
+ OneIn$Outbound,
4069
3693
  z.ZodTypeDef,
4070
- DeploymentGetConfig1DeploymentsIn
3694
+ OneIn
4071
3695
  > = z.union([z.string(), z.number(), z.boolean()]);
4072
3696
 
4073
- export function deploymentGetConfig1DeploymentsInToJSON(
4074
- deploymentGetConfig1DeploymentsIn: DeploymentGetConfig1DeploymentsIn,
4075
- ): string {
4076
- return JSON.stringify(
4077
- DeploymentGetConfig1DeploymentsIn$outboundSchema.parse(
4078
- deploymentGetConfig1DeploymentsIn,
4079
- ),
4080
- );
3697
+ export function oneInToJSON(oneIn: OneIn): string {
3698
+ return JSON.stringify(OneIn$outboundSchema.parse(oneIn));
4081
3699
  }
4082
3700
 
4083
3701
  /** @internal */
4084
- export type DeploymentGetConfig1In$Outbound = {
3702
+ export type In$Outbound = {
4085
3703
  in: Array<string | number | boolean>;
4086
3704
  };
4087
3705
 
4088
3706
  /** @internal */
4089
- export const DeploymentGetConfig1In$outboundSchema: z.ZodType<
4090
- DeploymentGetConfig1In$Outbound,
4091
- z.ZodTypeDef,
4092
- DeploymentGetConfig1In
4093
- > = z.object({
4094
- in: z.array(z.union([z.string(), z.number(), z.boolean()])),
4095
- });
3707
+ export const In$outboundSchema: z.ZodType<In$Outbound, z.ZodTypeDef, In> = z
3708
+ .object({
3709
+ in: z.array(z.union([z.string(), z.number(), z.boolean()])),
3710
+ });
4096
3711
 
4097
- export function deploymentGetConfig1InToJSON(
4098
- deploymentGetConfig1In: DeploymentGetConfig1In,
4099
- ): string {
4100
- return JSON.stringify(
4101
- DeploymentGetConfig1In$outboundSchema.parse(deploymentGetConfig1In),
4102
- );
3712
+ export function inToJSON(value: In): string {
3713
+ return JSON.stringify(In$outboundSchema.parse(value));
4103
3714
  }
4104
3715
 
4105
3716
  /** @internal */
4106
- export type OneLte$Outbound = {
3717
+ export type Lte$Outbound = {
4107
3718
  lte: number;
4108
3719
  };
4109
3720
 
4110
3721
  /** @internal */
4111
- export const OneLte$outboundSchema: z.ZodType<
4112
- OneLte$Outbound,
4113
- z.ZodTypeDef,
4114
- OneLte
4115
- > = z.object({
4116
- lte: z.number(),
4117
- });
3722
+ export const Lte$outboundSchema: z.ZodType<Lte$Outbound, z.ZodTypeDef, Lte> = z
3723
+ .object({
3724
+ lte: z.number(),
3725
+ });
4118
3726
 
4119
- export function oneLteToJSON(oneLte: OneLte): string {
4120
- return JSON.stringify(OneLte$outboundSchema.parse(oneLte));
3727
+ export function lteToJSON(lte: Lte): string {
3728
+ return JSON.stringify(Lte$outboundSchema.parse(lte));
4121
3729
  }
4122
3730
 
4123
3731
  /** @internal */
4124
- export type OneLt$Outbound = {
3732
+ export type Lt$Outbound = {
4125
3733
  lt: number;
4126
3734
  };
4127
3735
 
4128
3736
  /** @internal */
4129
- export const OneLt$outboundSchema: z.ZodType<
4130
- OneLt$Outbound,
4131
- z.ZodTypeDef,
4132
- OneLt
4133
- > = z.object({
4134
- lt: z.number(),
4135
- });
3737
+ export const Lt$outboundSchema: z.ZodType<Lt$Outbound, z.ZodTypeDef, Lt> = z
3738
+ .object({
3739
+ lt: z.number(),
3740
+ });
4136
3741
 
4137
- export function oneLtToJSON(oneLt: OneLt): string {
4138
- return JSON.stringify(OneLt$outboundSchema.parse(oneLt));
3742
+ export function ltToJSON(lt: Lt): string {
3743
+ return JSON.stringify(Lt$outboundSchema.parse(lt));
4139
3744
  }
4140
3745
 
4141
3746
  /** @internal */
4142
- export type OneGte$Outbound = {
3747
+ export type Gte$Outbound = {
4143
3748
  gte: number;
4144
3749
  };
4145
3750
 
4146
3751
  /** @internal */
4147
- export const OneGte$outboundSchema: z.ZodType<
4148
- OneGte$Outbound,
4149
- z.ZodTypeDef,
4150
- OneGte
4151
- > = z.object({
4152
- gte: z.number(),
4153
- });
3752
+ export const Gte$outboundSchema: z.ZodType<Gte$Outbound, z.ZodTypeDef, Gte> = z
3753
+ .object({
3754
+ gte: z.number(),
3755
+ });
4154
3756
 
4155
- export function oneGteToJSON(oneGte: OneGte): string {
4156
- return JSON.stringify(OneGte$outboundSchema.parse(oneGte));
3757
+ export function gteToJSON(gte: Gte): string {
3758
+ return JSON.stringify(Gte$outboundSchema.parse(gte));
4157
3759
  }
4158
3760
 
4159
3761
  /** @internal */
4160
- export type OneGt$Outbound = {
3762
+ export type Gt$Outbound = {
4161
3763
  gt: number;
4162
3764
  };
4163
3765
 
4164
3766
  /** @internal */
4165
- export const OneGt$outboundSchema: z.ZodType<
4166
- OneGt$Outbound,
4167
- z.ZodTypeDef,
4168
- OneGt
4169
- > = z.object({
4170
- gt: z.number(),
4171
- });
3767
+ export const Gt$outboundSchema: z.ZodType<Gt$Outbound, z.ZodTypeDef, Gt> = z
3768
+ .object({
3769
+ gt: z.number(),
3770
+ });
4172
3771
 
4173
- export function oneGtToJSON(oneGt: OneGt): string {
4174
- return JSON.stringify(OneGt$outboundSchema.parse(oneGt));
3772
+ export function gtToJSON(gt: Gt): string {
3773
+ return JSON.stringify(Gt$outboundSchema.parse(gt));
4175
3774
  }
4176
3775
 
4177
3776
  /** @internal */
4178
- export type DeploymentGetConfig1DeploymentsNe$Outbound =
4179
- | string
4180
- | number
4181
- | boolean;
3777
+ export type OneNe$Outbound = string | number | boolean;
4182
3778
 
4183
3779
  /** @internal */
4184
- export const DeploymentGetConfig1DeploymentsNe$outboundSchema: z.ZodType<
4185
- DeploymentGetConfig1DeploymentsNe$Outbound,
3780
+ export const OneNe$outboundSchema: z.ZodType<
3781
+ OneNe$Outbound,
4186
3782
  z.ZodTypeDef,
4187
- DeploymentGetConfig1DeploymentsNe
3783
+ OneNe
4188
3784
  > = z.union([z.string(), z.number(), z.boolean()]);
4189
3785
 
4190
- export function deploymentGetConfig1DeploymentsNeToJSON(
4191
- deploymentGetConfig1DeploymentsNe: DeploymentGetConfig1DeploymentsNe,
4192
- ): string {
4193
- return JSON.stringify(
4194
- DeploymentGetConfig1DeploymentsNe$outboundSchema.parse(
4195
- deploymentGetConfig1DeploymentsNe,
4196
- ),
4197
- );
3786
+ export function oneNeToJSON(oneNe: OneNe): string {
3787
+ return JSON.stringify(OneNe$outboundSchema.parse(oneNe));
4198
3788
  }
4199
3789
 
4200
3790
  /** @internal */
4201
- export type DeploymentGetConfig1Ne$Outbound = {
3791
+ export type Ne$Outbound = {
4202
3792
  ne: string | number | boolean;
4203
3793
  };
4204
3794
 
4205
3795
  /** @internal */
4206
- export const DeploymentGetConfig1Ne$outboundSchema: z.ZodType<
4207
- DeploymentGetConfig1Ne$Outbound,
4208
- z.ZodTypeDef,
4209
- DeploymentGetConfig1Ne
4210
- > = z.object({
4211
- ne: z.union([z.string(), z.number(), z.boolean()]),
4212
- });
3796
+ export const Ne$outboundSchema: z.ZodType<Ne$Outbound, z.ZodTypeDef, Ne> = z
3797
+ .object({
3798
+ ne: z.union([z.string(), z.number(), z.boolean()]),
3799
+ });
4213
3800
 
4214
- export function deploymentGetConfig1NeToJSON(
4215
- deploymentGetConfig1Ne: DeploymentGetConfig1Ne,
4216
- ): string {
4217
- return JSON.stringify(
4218
- DeploymentGetConfig1Ne$outboundSchema.parse(deploymentGetConfig1Ne),
4219
- );
3801
+ export function neToJSON(ne: Ne): string {
3802
+ return JSON.stringify(Ne$outboundSchema.parse(ne));
4220
3803
  }
4221
3804
 
4222
3805
  /** @internal */
4223
- export type DeploymentGetConfig1DeploymentsEq$Outbound =
4224
- | string
4225
- | number
4226
- | boolean;
3806
+ export type OneEq$Outbound = string | number | boolean;
4227
3807
 
4228
3808
  /** @internal */
4229
- export const DeploymentGetConfig1DeploymentsEq$outboundSchema: z.ZodType<
4230
- DeploymentGetConfig1DeploymentsEq$Outbound,
3809
+ export const OneEq$outboundSchema: z.ZodType<
3810
+ OneEq$Outbound,
4231
3811
  z.ZodTypeDef,
4232
- DeploymentGetConfig1DeploymentsEq
3812
+ OneEq
4233
3813
  > = z.union([z.string(), z.number(), z.boolean()]);
4234
3814
 
4235
- export function deploymentGetConfig1DeploymentsEqToJSON(
4236
- deploymentGetConfig1DeploymentsEq: DeploymentGetConfig1DeploymentsEq,
4237
- ): string {
4238
- return JSON.stringify(
4239
- DeploymentGetConfig1DeploymentsEq$outboundSchema.parse(
4240
- deploymentGetConfig1DeploymentsEq,
4241
- ),
4242
- );
3815
+ export function oneEqToJSON(oneEq: OneEq): string {
3816
+ return JSON.stringify(OneEq$outboundSchema.parse(oneEq));
4243
3817
  }
4244
3818
 
4245
3819
  /** @internal */
4246
- export type DeploymentGetConfig1Eq$Outbound = {
3820
+ export type Eq$Outbound = {
4247
3821
  eq: string | number | boolean;
4248
3822
  };
4249
3823
 
4250
3824
  /** @internal */
4251
- export const DeploymentGetConfig1Eq$outboundSchema: z.ZodType<
4252
- DeploymentGetConfig1Eq$Outbound,
4253
- z.ZodTypeDef,
4254
- DeploymentGetConfig1Eq
4255
- > = z.object({
4256
- eq: z.union([z.string(), z.number(), z.boolean()]),
4257
- });
3825
+ export const Eq$outboundSchema: z.ZodType<Eq$Outbound, z.ZodTypeDef, Eq> = z
3826
+ .object({
3827
+ eq: z.union([z.string(), z.number(), z.boolean()]),
3828
+ });
4258
3829
 
4259
- export function deploymentGetConfig1EqToJSON(
4260
- deploymentGetConfig1Eq: DeploymentGetConfig1Eq,
4261
- ): string {
4262
- return JSON.stringify(
4263
- DeploymentGetConfig1Eq$outboundSchema.parse(deploymentGetConfig1Eq),
4264
- );
3830
+ export function eqToJSON(eq: Eq): string {
3831
+ return JSON.stringify(Eq$outboundSchema.parse(eq));
4265
3832
  }
4266
3833
 
4267
3834
  /** @internal */
4268
- export type DeploymentGetConfigKnowledgeFilter1$Outbound =
4269
- | DeploymentGetConfig1Eq$Outbound
4270
- | DeploymentGetConfig1Ne$Outbound
4271
- | OneGt$Outbound
4272
- | OneGte$Outbound
4273
- | OneLt$Outbound
4274
- | OneLte$Outbound
4275
- | DeploymentGetConfig1In$Outbound
4276
- | DeploymentGetConfig1Nin$Outbound
4277
- | OneExists$Outbound;
3835
+ export type KnowledgeFilter1$Outbound =
3836
+ | Eq$Outbound
3837
+ | Ne$Outbound
3838
+ | Gt$Outbound
3839
+ | Gte$Outbound
3840
+ | Lt$Outbound
3841
+ | Lte$Outbound
3842
+ | In$Outbound
3843
+ | Nin$Outbound
3844
+ | Exists$Outbound;
4278
3845
 
4279
3846
  /** @internal */
4280
- export const DeploymentGetConfigKnowledgeFilter1$outboundSchema: z.ZodType<
4281
- DeploymentGetConfigKnowledgeFilter1$Outbound,
3847
+ export const KnowledgeFilter1$outboundSchema: z.ZodType<
3848
+ KnowledgeFilter1$Outbound,
4282
3849
  z.ZodTypeDef,
4283
- DeploymentGetConfigKnowledgeFilter1
3850
+ KnowledgeFilter1
4284
3851
  > = z.union([
4285
- z.lazy(() => DeploymentGetConfig1Eq$outboundSchema),
4286
- z.lazy(() => DeploymentGetConfig1Ne$outboundSchema),
4287
- z.lazy(() => OneGt$outboundSchema),
4288
- z.lazy(() => OneGte$outboundSchema),
4289
- z.lazy(() => OneLt$outboundSchema),
4290
- z.lazy(() => OneLte$outboundSchema),
4291
- z.lazy(() => DeploymentGetConfig1In$outboundSchema),
4292
- z.lazy(() => DeploymentGetConfig1Nin$outboundSchema),
4293
- z.lazy(() => OneExists$outboundSchema),
3852
+ z.lazy(() => Eq$outboundSchema),
3853
+ z.lazy(() => Ne$outboundSchema),
3854
+ z.lazy(() => Gt$outboundSchema),
3855
+ z.lazy(() => Gte$outboundSchema),
3856
+ z.lazy(() => Lt$outboundSchema),
3857
+ z.lazy(() => Lte$outboundSchema),
3858
+ z.lazy(() => In$outboundSchema),
3859
+ z.lazy(() => Nin$outboundSchema),
3860
+ z.lazy(() => Exists$outboundSchema),
4294
3861
  ]);
4295
3862
 
4296
- export function deploymentGetConfigKnowledgeFilter1ToJSON(
4297
- deploymentGetConfigKnowledgeFilter1: DeploymentGetConfigKnowledgeFilter1,
3863
+ export function knowledgeFilter1ToJSON(
3864
+ knowledgeFilter1: KnowledgeFilter1,
4298
3865
  ): string {
4299
3866
  return JSON.stringify(
4300
- DeploymentGetConfigKnowledgeFilter1$outboundSchema.parse(
4301
- deploymentGetConfigKnowledgeFilter1,
4302
- ),
3867
+ KnowledgeFilter1$outboundSchema.parse(knowledgeFilter1),
4303
3868
  );
4304
3869
  }
4305
3870
 
4306
3871
  /** @internal */
4307
- export type DeploymentGetConfigKnowledgeFilter$Outbound =
4308
- | DeploymentGetConfigKnowledgeFilterAnd$Outbound
4309
- | DeploymentGetConfigKnowledgeFilterOr$Outbound
4310
- | {
4311
- [k: string]:
4312
- | DeploymentGetConfig1Eq$Outbound
4313
- | DeploymentGetConfig1Ne$Outbound
4314
- | OneGt$Outbound
4315
- | OneGte$Outbound
4316
- | OneLt$Outbound
4317
- | OneLte$Outbound
4318
- | DeploymentGetConfig1In$Outbound
4319
- | DeploymentGetConfig1Nin$Outbound
4320
- | OneExists$Outbound;
4321
- };
4322
-
4323
- /** @internal */
4324
- export const DeploymentGetConfigKnowledgeFilter$outboundSchema: z.ZodType<
4325
- DeploymentGetConfigKnowledgeFilter$Outbound,
3872
+ export type KnowledgeFilter$Outbound = And$Outbound | Or$Outbound | {
3873
+ [k: string]:
3874
+ | Eq$Outbound
3875
+ | Ne$Outbound
3876
+ | Gt$Outbound
3877
+ | Gte$Outbound
3878
+ | Lt$Outbound
3879
+ | Lte$Outbound
3880
+ | In$Outbound
3881
+ | Nin$Outbound
3882
+ | Exists$Outbound;
3883
+ };
3884
+
3885
+ /** @internal */
3886
+ export const KnowledgeFilter$outboundSchema: z.ZodType<
3887
+ KnowledgeFilter$Outbound,
4326
3888
  z.ZodTypeDef,
4327
- DeploymentGetConfigKnowledgeFilter
3889
+ KnowledgeFilter
4328
3890
  > = z.union([
4329
- z.lazy(() => DeploymentGetConfigKnowledgeFilterAnd$outboundSchema),
4330
- z.lazy(() => DeploymentGetConfigKnowledgeFilterOr$outboundSchema),
3891
+ z.lazy(() => And$outboundSchema),
3892
+ z.lazy(() => Or$outboundSchema),
4331
3893
  z.record(z.union([
4332
- z.lazy(() => DeploymentGetConfig1Eq$outboundSchema),
4333
- z.lazy(() => DeploymentGetConfig1Ne$outboundSchema),
4334
- z.lazy(() => OneGt$outboundSchema),
4335
- z.lazy(() => OneGte$outboundSchema),
4336
- z.lazy(() => OneLt$outboundSchema),
4337
- z.lazy(() => OneLte$outboundSchema),
4338
- z.lazy(() => DeploymentGetConfig1In$outboundSchema),
4339
- z.lazy(() => DeploymentGetConfig1Nin$outboundSchema),
4340
- z.lazy(() => OneExists$outboundSchema),
3894
+ z.lazy(() => Eq$outboundSchema),
3895
+ z.lazy(() => Ne$outboundSchema),
3896
+ z.lazy(() => Gt$outboundSchema),
3897
+ z.lazy(() => Gte$outboundSchema),
3898
+ z.lazy(() => Lt$outboundSchema),
3899
+ z.lazy(() => Lte$outboundSchema),
3900
+ z.lazy(() => In$outboundSchema),
3901
+ z.lazy(() => Nin$outboundSchema),
3902
+ z.lazy(() => Exists$outboundSchema),
4341
3903
  ])),
4342
3904
  ]);
4343
3905
 
4344
- export function deploymentGetConfigKnowledgeFilterToJSON(
4345
- deploymentGetConfigKnowledgeFilter: DeploymentGetConfigKnowledgeFilter,
3906
+ export function knowledgeFilterToJSON(
3907
+ knowledgeFilter: KnowledgeFilter,
4346
3908
  ): string {
4347
- return JSON.stringify(
4348
- DeploymentGetConfigKnowledgeFilter$outboundSchema.parse(
4349
- deploymentGetConfigKnowledgeFilter,
4350
- ),
4351
- );
3909
+ return JSON.stringify(KnowledgeFilter$outboundSchema.parse(knowledgeFilter));
4352
3910
  }
4353
3911
 
4354
3912
  /** @internal */
@@ -4358,45 +3916,41 @@ export type DeploymentGetConfigRequestBody$Outbound = {
4358
3916
  context?: { [k: string]: any } | undefined;
4359
3917
  prefix_messages?:
4360
3918
  | Array<
4361
- | PrefixMessagesSystemMessage$Outbound
4362
- | PrefixMessagesDeveloperMessage$Outbound
4363
- | PrefixMessagesUserMessage$Outbound
4364
- | PrefixMessagesAssistantMessage$Outbound
4365
- | PrefixMessagesToolMessage$Outbound
3919
+ | SystemMessage$Outbound
3920
+ | DeveloperMessage$Outbound
3921
+ | UserMessage$Outbound
3922
+ | AssistantMessage$Outbound
3923
+ | ToolMessage$Outbound
4366
3924
  >
4367
3925
  | undefined;
4368
3926
  messages?:
4369
3927
  | Array<
4370
- | DeploymentGetConfigMessagesSystemMessage$Outbound
4371
- | DeploymentGetConfigMessagesDeveloperMessage$Outbound
4372
- | DeploymentGetConfigMessagesUserMessage$Outbound
4373
- | DeploymentGetConfigMessagesAssistantMessage$Outbound
4374
- | DeploymentGetConfigMessagesToolMessage$Outbound
3928
+ | MessagesSystemMessage$Outbound
3929
+ | MessagesDeveloperMessage$Outbound
3930
+ | MessagesUserMessage$Outbound
3931
+ | MessagesAssistantMessage$Outbound
3932
+ | MessagesToolMessage$Outbound
4375
3933
  >
4376
3934
  | undefined;
4377
3935
  identity?: components.PublicIdentity$Outbound | undefined;
4378
3936
  file_ids?: Array<string> | undefined;
4379
3937
  metadata?: { [k: string]: any } | undefined;
4380
3938
  extra_params?: { [k: string]: any } | undefined;
4381
- documents?: Array<DeploymentGetConfigDocuments$Outbound> | undefined;
4382
- invoke_options?: DeploymentGetConfigInvokeOptions$Outbound | undefined;
4383
- thread?: DeploymentGetConfigThread$Outbound | undefined;
4384
- knowledge_filter?:
4385
- | DeploymentGetConfigKnowledgeFilterAnd$Outbound
4386
- | DeploymentGetConfigKnowledgeFilterOr$Outbound
4387
- | {
4388
- [k: string]:
4389
- | DeploymentGetConfig1Eq$Outbound
4390
- | DeploymentGetConfig1Ne$Outbound
4391
- | OneGt$Outbound
4392
- | OneGte$Outbound
4393
- | OneLt$Outbound
4394
- | OneLte$Outbound
4395
- | DeploymentGetConfig1In$Outbound
4396
- | DeploymentGetConfig1Nin$Outbound
4397
- | OneExists$Outbound;
4398
- }
4399
- | undefined;
3939
+ documents?: Array<Documents$Outbound> | undefined;
3940
+ invoke_options?: InvokeOptions$Outbound | undefined;
3941
+ thread?: Thread$Outbound | undefined;
3942
+ knowledge_filter?: And$Outbound | Or$Outbound | {
3943
+ [k: string]:
3944
+ | Eq$Outbound
3945
+ | Ne$Outbound
3946
+ | Gt$Outbound
3947
+ | Gte$Outbound
3948
+ | Lt$Outbound
3949
+ | Lte$Outbound
3950
+ | In$Outbound
3951
+ | Nin$Outbound
3952
+ | Exists$Outbound;
3953
+ } | undefined;
4400
3954
  };
4401
3955
 
4402
3956
  /** @internal */
@@ -4410,47 +3964,43 @@ export const DeploymentGetConfigRequestBody$outboundSchema: z.ZodType<
4410
3964
  context: z.record(z.any()).optional(),
4411
3965
  prefixMessages: z.array(
4412
3966
  z.union([
4413
- z.lazy(() => PrefixMessagesSystemMessage$outboundSchema),
4414
- z.lazy(() => PrefixMessagesDeveloperMessage$outboundSchema),
4415
- z.lazy(() => PrefixMessagesUserMessage$outboundSchema),
4416
- z.lazy(() => PrefixMessagesAssistantMessage$outboundSchema),
4417
- z.lazy(() => PrefixMessagesToolMessage$outboundSchema),
3967
+ z.lazy(() => SystemMessage$outboundSchema),
3968
+ z.lazy(() => DeveloperMessage$outboundSchema),
3969
+ z.lazy(() => UserMessage$outboundSchema),
3970
+ z.lazy(() => AssistantMessage$outboundSchema),
3971
+ z.lazy(() => ToolMessage$outboundSchema),
4418
3972
  ]),
4419
3973
  ).optional(),
4420
3974
  messages: z.array(
4421
3975
  z.union([
4422
- z.lazy(() => DeploymentGetConfigMessagesSystemMessage$outboundSchema),
4423
- z.lazy(() => DeploymentGetConfigMessagesDeveloperMessage$outboundSchema),
4424
- z.lazy(() => DeploymentGetConfigMessagesUserMessage$outboundSchema),
4425
- z.lazy(() => DeploymentGetConfigMessagesAssistantMessage$outboundSchema),
4426
- z.lazy(() => DeploymentGetConfigMessagesToolMessage$outboundSchema),
3976
+ z.lazy(() => MessagesSystemMessage$outboundSchema),
3977
+ z.lazy(() => MessagesDeveloperMessage$outboundSchema),
3978
+ z.lazy(() => MessagesUserMessage$outboundSchema),
3979
+ z.lazy(() => MessagesAssistantMessage$outboundSchema),
3980
+ z.lazy(() => MessagesToolMessage$outboundSchema),
4427
3981
  ]),
4428
3982
  ).optional(),
4429
3983
  identity: components.PublicIdentity$outboundSchema.optional(),
4430
3984
  fileIds: z.array(z.string()).optional(),
4431
3985
  metadata: z.record(z.any()).optional(),
4432
3986
  extraParams: z.record(z.any()).optional(),
4433
- documents: z.array(z.lazy(() => DeploymentGetConfigDocuments$outboundSchema))
4434
- .optional(),
4435
- invokeOptions: z.lazy(() => DeploymentGetConfigInvokeOptions$outboundSchema)
4436
- .optional(),
4437
- thread: z.lazy(() => DeploymentGetConfigThread$outboundSchema).optional(),
3987
+ documents: z.array(z.lazy(() => Documents$outboundSchema)).optional(),
3988
+ invokeOptions: z.lazy(() => InvokeOptions$outboundSchema).optional(),
3989
+ thread: z.lazy(() => Thread$outboundSchema).optional(),
4438
3990
  knowledgeFilter: z.union([
4439
- z.lazy(() => DeploymentGetConfigKnowledgeFilterAnd$outboundSchema),
4440
- z.lazy(() => DeploymentGetConfigKnowledgeFilterOr$outboundSchema),
4441
- z.record(
4442
- z.union([
4443
- z.lazy(() => DeploymentGetConfig1Eq$outboundSchema),
4444
- z.lazy(() => DeploymentGetConfig1Ne$outboundSchema),
4445
- z.lazy(() => OneGt$outboundSchema),
4446
- z.lazy(() => OneGte$outboundSchema),
4447
- z.lazy(() => OneLt$outboundSchema),
4448
- z.lazy(() => OneLte$outboundSchema),
4449
- z.lazy(() => DeploymentGetConfig1In$outboundSchema),
4450
- z.lazy(() => DeploymentGetConfig1Nin$outboundSchema),
4451
- z.lazy(() => OneExists$outboundSchema),
4452
- ]),
4453
- ),
3991
+ z.lazy(() => And$outboundSchema),
3992
+ z.lazy(() => Or$outboundSchema),
3993
+ z.record(z.union([
3994
+ z.lazy(() => Eq$outboundSchema),
3995
+ z.lazy(() => Ne$outboundSchema),
3996
+ z.lazy(() => Gt$outboundSchema),
3997
+ z.lazy(() => Gte$outboundSchema),
3998
+ z.lazy(() => Lt$outboundSchema),
3999
+ z.lazy(() => Lte$outboundSchema),
4000
+ z.lazy(() => In$outboundSchema),
4001
+ z.lazy(() => Nin$outboundSchema),
4002
+ z.lazy(() => Exists$outboundSchema),
4003
+ ])),
4454
4004
  ]).optional(),
4455
4005
  }).transform((v) => {
4456
4006
  return remap$(v, {