@orq-ai/node 4.15.9 → 4.15.12

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 (188) hide show
  1. package/jsr.json +1 -1
  2. package/lib/config.d.ts +2 -2
  3. package/lib/config.js +2 -2
  4. package/lib/config.js.map +1 -1
  5. package/models/components/reasoningpart.js +1 -1
  6. package/models/operations/createdataset.js +1 -1
  7. package/models/operations/createdatasetitem.js +5 -5
  8. package/models/operations/createtool.js +4 -4
  9. package/models/operations/getalltools.js +4 -4
  10. package/models/operations/getv2humanevalsets.js +2 -2
  11. package/models/operations/getv2humanevalsetsid.js +2 -2
  12. package/models/operations/listdatasetdatapoints.js +5 -5
  13. package/models/operations/listdatasets.js +1 -1
  14. package/models/operations/patchv2humanevalsetsid.js +2 -2
  15. package/models/operations/postv2feedbackevaluation.js +4 -4
  16. package/models/operations/postv2humanevalsets.js +2 -2
  17. package/models/operations/retrievedatapoint.js +5 -5
  18. package/models/operations/retrievedataset.js +1 -1
  19. package/models/operations/retrievetool.js +4 -4
  20. package/models/operations/runagent.js +1 -1
  21. package/models/operations/streamrunagent.js +1 -1
  22. package/models/operations/updatedatapoint.js +5 -5
  23. package/models/operations/updatedataset.js +1 -1
  24. package/models/operations/updatetool.js +4 -4
  25. package/package.json +6 -6
  26. package/packages/orq-rc/src/funcs/apiKeysCreate.ts +6 -5
  27. package/packages/orq-rc/src/funcs/apiKeysDelete.ts +1 -1
  28. package/packages/orq-rc/src/funcs/apiKeysGet.ts +3 -8
  29. package/packages/orq-rc/src/funcs/apiKeysList.ts +4 -11
  30. package/packages/orq-rc/src/funcs/apiKeysListCapabilities.ts +6 -6
  31. package/packages/orq-rc/src/funcs/apiKeysUpdate.ts +3 -5
  32. package/packages/orq-rc/src/funcs/datasetsClear.ts +3 -12
  33. package/packages/orq-rc/src/funcs/datasetsCreate.ts +10 -15
  34. package/packages/orq-rc/src/funcs/datasetsCreateDatapoint.ts +8 -16
  35. package/packages/orq-rc/src/funcs/datasetsCreateDatapoints.ts +175 -0
  36. package/packages/orq-rc/src/funcs/datasetsDelete.ts +2 -2
  37. package/packages/orq-rc/src/funcs/datasetsDeleteDatapoint.ts +2 -11
  38. package/packages/orq-rc/src/funcs/datasetsDeleteDatapoints.ts +174 -0
  39. package/packages/orq-rc/src/funcs/datasetsList.ts +6 -5
  40. package/packages/orq-rc/src/funcs/datasetsListDatapoints.ts +6 -14
  41. package/packages/orq-rc/src/funcs/datasetsRetrieve.ts +7 -15
  42. package/packages/orq-rc/src/funcs/datasetsRetrieveDatapoint.ts +7 -15
  43. package/packages/orq-rc/src/funcs/datasetsUpdate.ts +10 -16
  44. package/packages/orq-rc/src/funcs/datasetsUpdateDatapoint.ts +10 -16
  45. package/packages/orq-rc/src/funcs/humanReviewSetsList.ts +4 -7
  46. package/packages/orq-rc/src/funcs/projectsCreate.ts +1 -1
  47. package/packages/orq-rc/src/funcs/projectsDelete.ts +1 -1
  48. package/packages/orq-rc/src/funcs/projectsList.ts +1 -1
  49. package/packages/orq-rc/src/funcs/projectsUpdate.ts +1 -1
  50. package/packages/orq-rc/src/funcs/routerClassifyCreate.ts +1 -1
  51. package/packages/orq-rc/src/lib/config.ts +2 -2
  52. package/packages/orq-rc/src/models/components/apikeyrestresponse.ts +1 -1
  53. package/packages/orq-rc/src/models/components/bulkcreatedatapointsrequest.ts +38 -0
  54. package/packages/orq-rc/src/models/components/classifyanswer.ts +2 -2
  55. package/packages/orq-rc/src/models/components/constraints.ts +32 -0
  56. package/packages/orq-rc/src/models/components/createdatasetrequest.ts +39 -0
  57. package/packages/orq-rc/src/models/components/datapoint1.ts +122 -0
  58. package/packages/orq-rc/src/models/components/datapointinput.ts +73 -0
  59. package/packages/orq-rc/src/models/components/dataset.ts +88 -0
  60. package/packages/orq-rc/src/models/components/datasetmetadata.ts +48 -0
  61. package/packages/orq-rc/src/models/components/datasource.ts +2 -2
  62. package/packages/orq-rc/src/models/components/datasourcesservicecreaterequest.ts +2 -2
  63. package/packages/orq-rc/src/models/components/deletedatapointsrequest.ts +36 -0
  64. package/packages/orq-rc/src/models/components/domain.ts +42 -39
  65. package/packages/orq-rc/src/models/components/extendedmessage.ts +1 -1
  66. package/packages/orq-rc/src/models/components/filesystem.ts +6 -5
  67. package/packages/orq-rc/src/models/components/hubitem.ts +2 -2
  68. package/packages/orq-rc/src/models/components/hubitemsummary.ts +1 -1
  69. package/packages/orq-rc/src/models/components/index.ts +13 -14
  70. package/packages/orq-rc/src/models/components/knowledge.ts +2 -2
  71. package/packages/orq-rc/src/models/components/knowledgechunk.ts +1 -1
  72. package/packages/orq-rc/src/models/components/listdatapointsresponse.ts +41 -0
  73. package/packages/orq-rc/src/models/components/listdatasetsresponse.ts +41 -0
  74. package/packages/orq-rc/src/models/components/mcpauthconfig.ts +1 -1
  75. package/packages/orq-rc/src/models/components/mcpauthconfigoutput.ts +1 -1
  76. package/packages/orq-rc/src/models/components/memory.ts +2 -5
  77. package/packages/orq-rc/src/models/components/owner.ts +35 -0
  78. package/packages/orq-rc/src/models/components/projectscope.ts +11 -23
  79. package/packages/orq-rc/src/models/components/reasoningpart.ts +1 -1
  80. package/packages/orq-rc/src/models/components/toolexecutionfailedstreamingevent.ts +3 -3
  81. package/packages/orq-rc/src/models/components/toolexecutionfinishedstreamingevent.ts +3 -3
  82. package/packages/orq-rc/src/models/components/toolexecutionstartedstreamingevent.ts +3 -3
  83. package/packages/orq-rc/src/models/components/updatedatapointrequest.ts +67 -0
  84. package/packages/orq-rc/src/models/components/updatedatasetrequest.ts +40 -0
  85. package/packages/orq-rc/src/models/components/wiki.ts +3 -3
  86. package/packages/orq-rc/src/models/operations/apikeycreate.ts +116 -0
  87. package/packages/orq-rc/src/models/operations/apikeydelete.ts +1 -1
  88. package/packages/orq-rc/src/models/operations/apikeyget.ts +1 -11
  89. package/packages/orq-rc/src/models/operations/apikeylist.ts +23 -78
  90. package/packages/orq-rc/src/models/operations/apikeylistcapabilities.ts +39 -0
  91. package/packages/orq-rc/src/models/operations/apikeyupdate.ts +107 -5
  92. package/packages/orq-rc/src/models/operations/bulkcreatedatapoints.ts +44 -0
  93. package/packages/orq-rc/src/models/operations/cleardataset.ts +0 -3
  94. package/packages/orq-rc/src/models/operations/createagentrequest.ts +7 -7
  95. package/packages/orq-rc/src/models/operations/createchatcompletion.ts +9 -15
  96. package/packages/orq-rc/src/models/operations/createclassify.ts +2 -2
  97. package/packages/orq-rc/src/models/operations/createcompletion.ts +3 -3
  98. package/packages/orq-rc/src/models/operations/createdatasetitem.ts +13 -3238
  99. package/packages/orq-rc/src/models/operations/createimage.ts +2 -2
  100. package/packages/orq-rc/src/models/operations/createimageedit.ts +2 -2
  101. package/packages/orq-rc/src/models/operations/createimagevariation.ts +2 -2
  102. package/packages/orq-rc/src/models/operations/creatererank.ts +2 -2
  103. package/packages/orq-rc/src/models/operations/createrouterresponse.ts +6 -6
  104. package/packages/orq-rc/src/models/operations/createspeech.ts +2 -2
  105. package/packages/orq-rc/src/models/operations/createtool.ts +4 -4
  106. package/packages/orq-rc/src/models/operations/createtranscription.ts +2 -2
  107. package/packages/orq-rc/src/models/operations/createtranslation.ts +2 -2
  108. package/packages/orq-rc/src/models/operations/deletedatapoint.ts +0 -6
  109. package/packages/orq-rc/src/models/operations/deletedataset.ts +0 -3
  110. package/packages/orq-rc/src/models/operations/deletedatasetdatapoints.ts +43 -0
  111. package/packages/orq-rc/src/models/operations/deployments.ts +2 -2
  112. package/packages/orq-rc/src/models/operations/filelist.ts +3 -3
  113. package/packages/orq-rc/src/models/operations/getallmemories.ts +3 -3
  114. package/packages/orq-rc/src/models/operations/getallmemorydocuments.ts +3 -3
  115. package/packages/orq-rc/src/models/operations/getallmemorystores.ts +3 -3
  116. package/packages/orq-rc/src/models/operations/getallprompts.ts +2 -2
  117. package/packages/orq-rc/src/models/operations/getalltools.ts +6 -6
  118. package/packages/orq-rc/src/models/operations/getevals.ts +2 -2
  119. package/packages/orq-rc/src/models/operations/getv2humanevalsets.ts +9 -9
  120. package/packages/orq-rc/src/models/operations/getv2humanevalsetsid.ts +2 -2
  121. package/packages/orq-rc/src/models/operations/getv2toolstoolidversions.ts +2 -2
  122. package/packages/orq-rc/src/models/operations/index.ts +4 -1
  123. package/packages/orq-rc/src/models/operations/listagents.ts +7 -7
  124. package/packages/orq-rc/src/models/operations/listchunks.ts +3 -3
  125. package/packages/orq-rc/src/models/operations/listdatasetdatapoints.ts +2 -2117
  126. package/packages/orq-rc/src/models/operations/listdatasets.ts +2 -173
  127. package/packages/orq-rc/src/models/operations/listdatasources.ts +3 -3
  128. package/packages/orq-rc/src/models/operations/listidentities.ts +1 -1
  129. package/packages/orq-rc/src/models/operations/listknowledgebases.ts +2 -2
  130. package/packages/orq-rc/src/models/operations/listpromptversions.ts +2 -2
  131. package/packages/orq-rc/src/models/operations/modelcataloglist.ts +2 -2
  132. package/packages/orq-rc/src/models/operations/modelcataloglistofferings.ts +2 -2
  133. package/packages/orq-rc/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  134. package/packages/orq-rc/src/models/operations/postv2feedbackevaluation.ts +4 -4
  135. package/packages/orq-rc/src/models/operations/postv2humanevalsets.ts +2 -2
  136. package/packages/orq-rc/src/models/operations/projectlist.ts +2 -2
  137. package/packages/orq-rc/src/models/operations/retrieveagentrequest.ts +5 -5
  138. package/packages/orq-rc/src/models/operations/retrievedatapoint.ts +0 -2003
  139. package/packages/orq-rc/src/models/operations/retrievedataset.ts +0 -114
  140. package/packages/orq-rc/src/models/operations/retrievetool.ts +4 -4
  141. package/packages/orq-rc/src/models/operations/runagent.ts +3 -3
  142. package/packages/orq-rc/src/models/operations/streamrunagent.ts +3 -3
  143. package/packages/orq-rc/src/models/operations/updateagent.ts +7 -7
  144. package/packages/orq-rc/src/models/operations/updatedatapoint.ts +17 -3275
  145. package/packages/orq-rc/src/models/operations/updatedataset.ts +5 -170
  146. package/packages/orq-rc/src/models/operations/updatetool.ts +4 -4
  147. package/packages/orq-rc/src/sdk/apikeys.ts +18 -18
  148. package/packages/orq-rc/src/sdk/classify.ts +1 -1
  149. package/packages/orq-rc/src/sdk/datasets.ts +73 -36
  150. package/packages/orq-rc/src/sdk/humanreviewsets.ts +1 -1
  151. package/packages/orq-rc/src/sdk/projects.ts +4 -4
  152. package/packages/orq-rc/src/sdk/sdk.ts +10 -10
  153. package/src/lib/config.ts +2 -2
  154. package/src/models/components/reasoningpart.ts +1 -1
  155. package/src/models/operations/createdataset.ts +1 -1
  156. package/src/models/operations/createdatasetitem.ts +5 -5
  157. package/src/models/operations/createtool.ts +4 -4
  158. package/src/models/operations/getalltools.ts +4 -4
  159. package/src/models/operations/getv2humanevalsets.ts +2 -2
  160. package/src/models/operations/getv2humanevalsetsid.ts +2 -2
  161. package/src/models/operations/listdatasetdatapoints.ts +5 -5
  162. package/src/models/operations/listdatasets.ts +1 -1
  163. package/src/models/operations/patchv2humanevalsetsid.ts +2 -2
  164. package/src/models/operations/postv2feedbackevaluation.ts +4 -4
  165. package/src/models/operations/postv2humanevalsets.ts +2 -2
  166. package/src/models/operations/retrievedatapoint.ts +5 -5
  167. package/src/models/operations/retrievedataset.ts +1 -1
  168. package/src/models/operations/retrievetool.ts +4 -4
  169. package/src/models/operations/runagent.ts +1 -1
  170. package/src/models/operations/streamrunagent.ts +1 -1
  171. package/src/models/operations/updatedatapoint.ts +5 -5
  172. package/src/models/operations/updatedataset.ts +1 -1
  173. package/src/models/operations/updatetool.ts +4 -4
  174. package/packages/orq-rc/src/models/components/allprojects.ts +0 -21
  175. package/packages/orq-rc/src/models/components/apikeyowner.ts +0 -55
  176. package/packages/orq-rc/src/models/components/apikeystatus.ts +0 -18
  177. package/packages/orq-rc/src/models/components/createapikeyrequest.ts +0 -116
  178. package/packages/orq-rc/src/models/components/domaingroup.ts +0 -17
  179. package/packages/orq-rc/src/models/components/listcapabilitiesresponse.ts +0 -38
  180. package/packages/orq-rc/src/models/components/mcpaccess.ts +0 -93
  181. package/packages/orq-rc/src/models/components/ownertype.ts +0 -17
  182. package/packages/orq-rc/src/models/components/permissionmode.ts +0 -19
  183. package/packages/orq-rc/src/models/components/scopemode.ts +0 -16
  184. package/packages/orq-rc/src/models/components/serviceaccountowner.ts +0 -25
  185. package/packages/orq-rc/src/models/components/singleproject.ts +0 -35
  186. package/packages/orq-rc/src/models/components/updateapikeyrequest.ts +0 -110
  187. package/packages/orq-rc/src/models/components/userowner.ts +0 -35
  188. package/packages/orq-rc/src/models/operations/createdataset.ts +0 -162
@@ -4,3300 +4,42 @@
4
4
 
5
5
  import * as z from "zod/v3";
6
6
  import { remap as remap$ } from "../../lib/primitives.js";
7
- import { safeParse } from "../../lib/schemas.js";
8
- import { ClosedEnum } from "../../types/enums.js";
9
- import { Result as SafeParseResult } from "../../types/fp.js";
10
7
  import * as components from "../components/index.js";
11
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
12
-
13
- export type UpdateDatapointInputs = string | number | boolean;
14
-
15
- export type UpdateDatapointContentDatasetsRequest2 =
16
- components.TextContentPartSchema;
17
-
18
- /**
19
- * The contents of the tool message.
20
- */
21
- export type UpdateDatapointMessagesDatasetsRequestRequestBody5Content =
22
- | string
23
- | Array<components.TextContentPartSchema>;
24
-
25
- /**
26
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
27
- */
28
- export const UpdateDatapointMessagesDatasetsType = {
29
- Ephemeral: "ephemeral",
30
- } as const;
31
- /**
32
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
33
- */
34
- export type UpdateDatapointMessagesDatasetsType = ClosedEnum<
35
- typeof UpdateDatapointMessagesDatasetsType
36
- >;
37
-
38
- /**
39
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
40
- *
41
- * @remarks
42
- *
43
- * - `5m`: 5 minutes
44
- * - `1h`: 1 hour
45
- *
46
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
47
- */
48
- export const UpdateDatapointMessagesTtl = {
49
- Fivem: "5m",
50
- Oneh: "1h",
51
- } as const;
52
- /**
53
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
54
- *
55
- * @remarks
56
- *
57
- * - `5m`: 5 minutes
58
- * - `1h`: 1 hour
59
- *
60
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
61
- */
62
- export type UpdateDatapointMessagesTtl = ClosedEnum<
63
- typeof UpdateDatapointMessagesTtl
64
- >;
65
-
66
- export type UpdateDatapointMessagesCacheControl = {
67
- /**
68
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
69
- */
70
- type: UpdateDatapointMessagesDatasetsType;
71
- /**
72
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
73
- *
74
- * @remarks
75
- *
76
- * - `5m`: 5 minutes
77
- * - `1h`: 1 hour
78
- *
79
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
80
- */
81
- ttl?: UpdateDatapointMessagesTtl | undefined;
82
- };
83
-
84
- export type UpdateDatapointMessagesToolMessage = {
85
- /**
86
- * The role of the messages author, in this case tool.
87
- */
88
- role: "tool";
89
- /**
90
- * The contents of the tool message.
91
- */
92
- content: string | Array<components.TextContentPartSchema>;
93
- /**
94
- * Tool call that this message is responding to.
95
- */
96
- toolCallId: string | null;
97
- cacheControl?: UpdateDatapointMessagesCacheControl | undefined;
98
- };
99
-
100
- export type UpdateDatapointContentDatasets2 =
101
- | (components.TextContentPartSchema & { type: "text" })
102
- | components.RefusalPartSchema
103
- | components.ReasoningPartSchema
104
- | components.RedactedReasoningPartSchema;
105
-
106
- /**
107
- * The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
108
- */
109
- export type UpdateDatapointMessagesDatasetsRequestRequestBodyContent =
110
- | string
111
- | Array<
112
- | (components.TextContentPartSchema & { type: "text" })
113
- | components.RefusalPartSchema
114
- | components.ReasoningPartSchema
115
- | components.RedactedReasoningPartSchema
116
- >;
117
-
118
- /**
119
- * Data about a previous audio response from the model.
120
- */
121
- export type UpdateDatapointMessagesAudio = {
122
- /**
123
- * Unique identifier for a previous audio response from the model.
124
- */
125
- id: string;
126
- };
127
-
128
- /**
129
- * The type of the tool. Currently, only `function` is supported.
130
- */
131
- export const UpdateDatapointMessagesType = {
132
- Function: "function",
133
- } as const;
134
- /**
135
- * The type of the tool. Currently, only `function` is supported.
136
- */
137
- export type UpdateDatapointMessagesType = ClosedEnum<
138
- typeof UpdateDatapointMessagesType
139
- >;
140
-
141
- export type UpdateDatapointMessagesFunction = {
142
- /**
143
- * The name of the function to call.
144
- */
145
- name?: string | undefined;
146
- /**
147
- * The arguments to call the function with, as generated by the model in JSON format. Note that the model does not always generate valid JSON, and may hallucinate parameters not defined by your function schema. Validate the arguments in your code before calling your function.
148
- */
149
- arguments?: string | undefined;
150
- };
151
-
152
- export type UpdateDatapointMessagesGoogle = {
153
- /**
154
- * Encrypted representation of the model internal reasoning state during function calling. Required by Gemini 3 models when continuing a conversation after a tool call. Takes precedence over the top-level `thought_signature` when both are set.
155
- */
156
- thoughtSignature?: string | undefined;
157
- };
158
-
159
- /**
160
- * Provider-specific extra content for the tool call.
161
- */
162
- export type UpdateDatapointMessagesExtraContent = {
163
- google?: UpdateDatapointMessagesGoogle | undefined;
164
- };
165
-
166
- export type UpdateDatapointMessagesToolCalls = {
167
- /**
168
- * The ID of the tool call.
169
- */
170
- id: string;
171
- /**
172
- * The type of the tool. Currently, only `function` is supported.
173
- */
174
- type: UpdateDatapointMessagesType;
175
- function: UpdateDatapointMessagesFunction;
176
- /**
177
- * Encrypted representation of the model internal reasoning state during function calling. Required by Gemini 3 models when continuing a conversation after a tool call.
178
- */
179
- thoughtSignature?: string | undefined;
180
- /**
181
- * Provider-specific extra content for the tool call.
182
- */
183
- extraContent?: UpdateDatapointMessagesExtraContent | undefined;
184
- };
185
-
186
- export type UpdateDatapointMessagesAssistantMessage = {
187
- /**
188
- * Provider reasoning content that must be replayed with assistant tool calls when continuing a reasoning-model conversation.
189
- */
190
- reasoningContent?: string | undefined;
191
- /**
192
- * The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
193
- */
194
- content?:
195
- | string
196
- | Array<
197
- | (components.TextContentPartSchema & { type: "text" })
198
- | components.RefusalPartSchema
199
- | components.ReasoningPartSchema
200
- | components.RedactedReasoningPartSchema
201
- >
202
- | null
203
- | undefined;
204
- /**
205
- * The refusal message by the assistant.
206
- */
207
- refusal?: string | null | undefined;
208
- /**
209
- * The role of the messages author, in this case `assistant`.
210
- */
211
- role: "assistant";
212
- /**
213
- * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
214
- */
215
- name?: string | undefined;
216
- /**
217
- * Data about a previous audio response from the model.
218
- */
219
- audio?: UpdateDatapointMessagesAudio | null | undefined;
220
- /**
221
- * The tool calls generated by the model, such as function calls.
222
- */
223
- toolCalls?: Array<UpdateDatapointMessagesToolCalls> | undefined;
224
- };
225
-
226
- /**
227
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
228
- */
229
- export const UpdateDatapoint2DatasetsType = {
230
- Ephemeral: "ephemeral",
231
- } as const;
232
- /**
233
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
234
- */
235
- export type UpdateDatapoint2DatasetsType = ClosedEnum<
236
- typeof UpdateDatapoint2DatasetsType
237
- >;
238
-
239
- /**
240
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
241
- *
242
- * @remarks
243
- *
244
- * - `5m`: 5 minutes
245
- * - `1h`: 1 hour
246
- *
247
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
248
- */
249
- export const UpdateDatapoint2Ttl = {
250
- Fivem: "5m",
251
- Oneh: "1h",
252
- } as const;
253
- /**
254
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
255
- *
256
- * @remarks
257
- *
258
- * - `5m`: 5 minutes
259
- * - `1h`: 1 hour
260
- *
261
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
262
- */
263
- export type UpdateDatapoint2Ttl = ClosedEnum<typeof UpdateDatapoint2Ttl>;
264
-
265
- export type UpdateDatapoint2CacheControl = {
266
- /**
267
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
268
- */
269
- type: UpdateDatapoint2DatasetsType;
270
- /**
271
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
272
- *
273
- * @remarks
274
- *
275
- * - `5m`: 5 minutes
276
- * - `1h`: 1 hour
277
- *
278
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
279
- */
280
- ttl?: UpdateDatapoint2Ttl | undefined;
281
- };
282
-
283
- export type UpdateDatapoint24 = {
284
- /**
285
- * The type of the content part. Always `file`.
286
- */
287
- type: "file";
288
- cacheControl?: UpdateDatapoint2CacheControl | undefined;
289
- /**
290
- * File data for the content part. Must contain either file_data or uri, but not both.
291
- */
292
- file: components.FileContentPartSchema;
293
- };
294
-
295
- export type UpdateDatapointContent2 =
296
- | (components.TextContentPartSchema & { type: "text" })
297
- | components.ImageContentPartSchema
298
- | components.AudioContentPartSchema
299
- | UpdateDatapoint24;
300
-
301
- /**
302
- * The contents of the user message.
303
- */
304
- export type UpdateDatapointMessagesDatasetsRequestContent =
305
- | string
306
- | Array<
307
- | (components.TextContentPartSchema & { type: "text" })
308
- | components.ImageContentPartSchema
309
- | components.AudioContentPartSchema
310
- | UpdateDatapoint24
311
- >;
312
-
313
- export type UpdateDatapointMessagesUserMessage = {
314
- /**
315
- * The role of the messages author, in this case `user`.
316
- */
317
- role: "user";
318
- /**
319
- * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
320
- */
321
- name?: string | undefined;
322
- /**
323
- * The contents of the user message.
324
- */
325
- content:
326
- | string
327
- | Array<
328
- | (components.TextContentPartSchema & { type: "text" })
329
- | components.ImageContentPartSchema
330
- | components.AudioContentPartSchema
331
- | UpdateDatapoint24
332
- >;
333
- };
334
-
335
- /**
336
- * The contents of the developer message.
337
- */
338
- export type UpdateDatapointMessagesDatasetsContent =
339
- | string
340
- | Array<components.TextContentPartSchema>;
341
-
342
- export type UpdateDatapointMessagesDeveloperMessage = {
343
- /**
344
- * The role of the messages author, in this case `developer`.
345
- */
346
- role: "developer";
347
- /**
348
- * The contents of the developer message.
349
- */
350
- content: string | Array<components.TextContentPartSchema>;
351
- /**
352
- * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
353
- */
354
- name?: string | undefined;
355
- };
356
-
357
- /**
358
- * The contents of the system message.
359
- */
360
- export type UpdateDatapointMessagesContent =
361
- | string
362
- | Array<components.TextContentPartSchema>;
363
-
364
- /**
365
- * Developer-provided instructions that the model should follow, regardless of messages sent by the user.
366
- */
367
- export type UpdateDatapointMessagesSystemMessage = {
368
- /**
369
- * The role of the messages author, in this case `system`.
370
- */
371
- role: "system";
372
- /**
373
- * The contents of the system message.
374
- */
375
- content: string | Array<components.TextContentPartSchema>;
376
- /**
377
- * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
378
- */
379
- name?: string | undefined;
380
- };
381
-
382
- export type UpdateDatapointMessages =
383
- | UpdateDatapointMessagesSystemMessage
384
- | UpdateDatapointMessagesDeveloperMessage
385
- | UpdateDatapointMessagesUserMessage
386
- | UpdateDatapointMessagesAssistantMessage
387
- | UpdateDatapointMessagesToolMessage;
388
-
389
- export type UpdateDatapointRequestBody = {
390
- /**
391
- * The inputs of the dataset. Key value pairs where the key is the input name and the value is the input value. Nested objects and arrays are not supported.
392
- */
393
- inputs?: { [k: string]: string | number | boolean | null } | undefined;
394
- /**
395
- * A list of messages comprising the conversation so far
396
- */
397
- messages?:
398
- | Array<
399
- | UpdateDatapointMessagesSystemMessage
400
- | UpdateDatapointMessagesDeveloperMessage
401
- | UpdateDatapointMessagesUserMessage
402
- | UpdateDatapointMessagesAssistantMessage
403
- | UpdateDatapointMessagesToolMessage
404
- >
405
- | undefined;
406
- expectedOutput?: string | undefined;
407
- };
408
8
 
409
9
  export type UpdateDatapointRequest = {
410
- /**
411
- * The unique identifier of the dataset
412
- */
413
10
  datasetId: string;
414
- /**
415
- * The unique identifier of the datapoint
416
- */
417
11
  datapointId: string;
418
- requestBody?: UpdateDatapointRequestBody | undefined;
419
- };
420
-
421
- export type UpdateDatapointContentDatasetsResponse200ApplicationJson2 =
422
- components.TextContentPartSchema;
423
-
424
- /**
425
- * The contents of the tool message.
426
- */
427
- export type UpdateDatapointMessagesDatasetsResponse200ApplicationJSONResponseBody5Content =
428
- | string
429
- | Array<components.TextContentPartSchema>;
430
-
431
- /**
432
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
433
- */
434
- export const UpdateDatapointMessagesDatasetsResponse200Type = {
435
- Ephemeral: "ephemeral",
436
- } as const;
437
- /**
438
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
439
- */
440
- export type UpdateDatapointMessagesDatasetsResponse200Type = ClosedEnum<
441
- typeof UpdateDatapointMessagesDatasetsResponse200Type
442
- >;
443
-
444
- /**
445
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
446
- *
447
- * @remarks
448
- *
449
- * - `5m`: 5 minutes
450
- * - `1h`: 1 hour
451
- *
452
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
453
- */
454
- export const UpdateDatapointMessagesDatasetsTtl = {
455
- Fivem: "5m",
456
- Oneh: "1h",
457
- } as const;
458
- /**
459
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
460
- *
461
- * @remarks
462
- *
463
- * - `5m`: 5 minutes
464
- * - `1h`: 1 hour
465
- *
466
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
467
- */
468
- export type UpdateDatapointMessagesDatasetsTtl = ClosedEnum<
469
- typeof UpdateDatapointMessagesDatasetsTtl
470
- >;
471
-
472
- export type UpdateDatapointMessagesDatasetsCacheControl = {
473
- /**
474
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
475
- */
476
- type: UpdateDatapointMessagesDatasetsResponse200Type;
477
- /**
478
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
479
- *
480
- * @remarks
481
- *
482
- * - `5m`: 5 minutes
483
- * - `1h`: 1 hour
484
- *
485
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
486
- */
487
- ttl: UpdateDatapointMessagesDatasetsTtl;
488
- };
489
-
490
- export type UpdateDatapointMessagesDatasetsToolMessage = {
491
- /**
492
- * The role of the messages author, in this case tool.
493
- */
494
- role: "tool";
495
- /**
496
- * The contents of the tool message.
497
- */
498
- content: string | Array<components.TextContentPartSchema>;
499
- /**
500
- * Tool call that this message is responding to.
501
- */
502
- toolCallId: string | null;
503
- cacheControl?: UpdateDatapointMessagesDatasetsCacheControl | undefined;
504
- };
505
-
506
- export type UpdateDatapointContentDatasetsResponse2002 =
507
- | (components.TextContentPartSchema & { type: "text" })
508
- | components.RefusalPartSchema
509
- | components.ReasoningPartSchema
510
- | components.RedactedReasoningPartSchema;
511
-
512
- /**
513
- * The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
514
- */
515
- export type UpdateDatapointMessagesDatasetsResponse200ApplicationJSONResponseBodyContent =
516
- | string
517
- | Array<
518
- | (components.TextContentPartSchema & { type: "text" })
519
- | components.RefusalPartSchema
520
- | components.ReasoningPartSchema
521
- | components.RedactedReasoningPartSchema
522
- >;
523
-
524
- /**
525
- * Data about a previous audio response from the model.
526
- */
527
- export type UpdateDatapointMessagesDatasetsAudio = {
528
- /**
529
- * Unique identifier for a previous audio response from the model.
530
- */
531
- id: string;
532
- };
533
-
534
- /**
535
- * The type of the tool. Currently, only `function` is supported.
536
- */
537
- export const UpdateDatapointMessagesDatasetsResponseType = {
538
- Function: "function",
539
- } as const;
540
- /**
541
- * The type of the tool. Currently, only `function` is supported.
542
- */
543
- export type UpdateDatapointMessagesDatasetsResponseType = ClosedEnum<
544
- typeof UpdateDatapointMessagesDatasetsResponseType
545
- >;
546
-
547
- export type UpdateDatapointMessagesDatasetsFunction = {
548
- /**
549
- * The name of the function to call.
550
- */
551
- name?: string | undefined;
552
- /**
553
- * The arguments to call the function with, as generated by the model in JSON format. Note that the model does not always generate valid JSON, and may hallucinate parameters not defined by your function schema. Validate the arguments in your code before calling your function.
554
- */
555
- arguments?: string | undefined;
556
- };
557
-
558
- export type UpdateDatapointMessagesDatasetsGoogle = {
559
- /**
560
- * Encrypted representation of the model internal reasoning state during function calling. Required by Gemini 3 models when continuing a conversation after a tool call. Takes precedence over the top-level `thought_signature` when both are set.
561
- */
562
- thoughtSignature?: string | undefined;
563
- };
564
-
565
- /**
566
- * Provider-specific extra content for the tool call.
567
- */
568
- export type UpdateDatapointMessagesDatasetsExtraContent = {
569
- google?: UpdateDatapointMessagesDatasetsGoogle | undefined;
570
- };
571
-
572
- export type UpdateDatapointMessagesDatasetsToolCalls = {
573
- /**
574
- * The ID of the tool call.
575
- */
576
- id: string;
577
- /**
578
- * The type of the tool. Currently, only `function` is supported.
579
- */
580
- type: UpdateDatapointMessagesDatasetsResponseType;
581
- function: UpdateDatapointMessagesDatasetsFunction;
582
- /**
583
- * Encrypted representation of the model internal reasoning state during function calling. Required by Gemini 3 models when continuing a conversation after a tool call.
584
- */
585
- thoughtSignature?: string | undefined;
586
- /**
587
- * Provider-specific extra content for the tool call.
588
- */
589
- extraContent?: UpdateDatapointMessagesDatasetsExtraContent | undefined;
590
- };
591
-
592
- export type UpdateDatapointMessagesDatasetsAssistantMessage = {
593
- /**
594
- * Provider reasoning content that must be replayed with assistant tool calls when continuing a reasoning-model conversation.
595
- */
596
- reasoningContent?: string | undefined;
597
- /**
598
- * The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
599
- */
600
- content?:
601
- | string
602
- | Array<
603
- | (components.TextContentPartSchema & { type: "text" })
604
- | components.RefusalPartSchema
605
- | components.ReasoningPartSchema
606
- | components.RedactedReasoningPartSchema
607
- >
608
- | null
609
- | undefined;
610
- /**
611
- * The refusal message by the assistant.
612
- */
613
- refusal?: string | null | undefined;
614
- /**
615
- * The role of the messages author, in this case `assistant`.
616
- */
617
- role: "assistant";
618
- /**
619
- * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
620
- */
621
- name?: string | undefined;
622
- /**
623
- * Data about a previous audio response from the model.
624
- */
625
- audio?: UpdateDatapointMessagesDatasetsAudio | null | undefined;
626
- /**
627
- * The tool calls generated by the model, such as function calls.
628
- */
629
- toolCalls?: Array<UpdateDatapointMessagesDatasetsToolCalls> | undefined;
630
- };
631
-
632
- /**
633
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
634
- */
635
- export const UpdateDatapoint2DatasetsResponse200Type = {
636
- Ephemeral: "ephemeral",
637
- } as const;
638
- /**
639
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
640
- */
641
- export type UpdateDatapoint2DatasetsResponse200Type = ClosedEnum<
642
- typeof UpdateDatapoint2DatasetsResponse200Type
643
- >;
644
-
645
- /**
646
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
647
- *
648
- * @remarks
649
- *
650
- * - `5m`: 5 minutes
651
- * - `1h`: 1 hour
652
- *
653
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
654
- */
655
- export const UpdateDatapoint2DatasetsTtl = {
656
- Fivem: "5m",
657
- Oneh: "1h",
658
- } as const;
659
- /**
660
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
661
- *
662
- * @remarks
663
- *
664
- * - `5m`: 5 minutes
665
- * - `1h`: 1 hour
666
- *
667
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
668
- */
669
- export type UpdateDatapoint2DatasetsTtl = ClosedEnum<
670
- typeof UpdateDatapoint2DatasetsTtl
671
- >;
672
-
673
- export type UpdateDatapoint2DatasetsCacheControl = {
674
- /**
675
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
676
- */
677
- type: UpdateDatapoint2DatasetsResponse200Type;
678
- /**
679
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
680
- *
681
- * @remarks
682
- *
683
- * - `5m`: 5 minutes
684
- * - `1h`: 1 hour
685
- *
686
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
687
- */
688
- ttl: UpdateDatapoint2DatasetsTtl;
689
- };
690
-
691
- export type UpdateDatapoint2Datasets4 = {
692
- /**
693
- * The type of the content part. Always `file`.
694
- */
695
- type: "file";
696
- cacheControl?: UpdateDatapoint2DatasetsCacheControl | undefined;
697
- /**
698
- * File data for the content part. Must contain either file_data or uri, but not both.
699
- */
700
- file: components.FileContentPartSchema;
701
- };
702
-
703
- export type UpdateDatapointContentDatasetsResponse2 =
704
- | (components.TextContentPartSchema & { type: "text" })
705
- | components.ImageContentPartSchema
706
- | components.AudioContentPartSchema
707
- | UpdateDatapoint2Datasets4;
708
-
709
- /**
710
- * The contents of the user message.
711
- */
712
- export type UpdateDatapointMessagesDatasetsResponse200ApplicationJSONContent =
713
- | string
714
- | Array<
715
- | (components.TextContentPartSchema & { type: "text" })
716
- | components.ImageContentPartSchema
717
- | components.AudioContentPartSchema
718
- | UpdateDatapoint2Datasets4
719
- >;
720
-
721
- export type UpdateDatapointMessagesDatasetsUserMessage = {
722
- /**
723
- * The role of the messages author, in this case `user`.
724
- */
725
- role: "user";
726
- /**
727
- * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
728
- */
729
- name?: string | undefined;
730
- /**
731
- * The contents of the user message.
732
- */
733
- content:
734
- | string
735
- | Array<
736
- | (components.TextContentPartSchema & { type: "text" })
737
- | components.ImageContentPartSchema
738
- | components.AudioContentPartSchema
739
- | UpdateDatapoint2Datasets4
740
- >;
741
- };
742
-
743
- /**
744
- * The contents of the developer message.
745
- */
746
- export type UpdateDatapointMessagesDatasetsResponse200Content =
747
- | string
748
- | Array<components.TextContentPartSchema>;
749
-
750
- export type UpdateDatapointMessagesDatasetsDeveloperMessage = {
751
- /**
752
- * The role of the messages author, in this case `developer`.
753
- */
754
- role: "developer";
755
- /**
756
- * The contents of the developer message.
757
- */
758
- content: string | Array<components.TextContentPartSchema>;
759
- /**
760
- * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
761
- */
762
- name?: string | undefined;
763
- };
764
-
765
- /**
766
- * The contents of the system message.
767
- */
768
- export type UpdateDatapointMessagesDatasetsResponseContent =
769
- | string
770
- | Array<components.TextContentPartSchema>;
771
-
772
- /**
773
- * Developer-provided instructions that the model should follow, regardless of messages sent by the user.
774
- */
775
- export type UpdateDatapointMessagesDatasetsSystemMessage = {
776
- /**
777
- * The role of the messages author, in this case `system`.
778
- */
779
- role: "system";
780
- /**
781
- * The contents of the system message.
782
- */
783
- content: string | Array<components.TextContentPartSchema>;
784
- /**
785
- * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
786
- */
787
- name?: string | undefined;
788
- };
789
-
790
- export type UpdateDatapointDatasetsMessages =
791
- | UpdateDatapointMessagesDatasetsSystemMessage
792
- | UpdateDatapointMessagesDatasetsDeveloperMessage
793
- | UpdateDatapointMessagesDatasetsUserMessage
794
- | UpdateDatapointMessagesDatasetsAssistantMessage
795
- | UpdateDatapointMessagesDatasetsToolMessage;
796
-
797
- /**
798
- * The type of evaluation
799
- */
800
- export const UpdateDatapointEvaluationsDatasetsResponse200EvaluationType = {
801
- HumanReview: "human_review",
802
- } as const;
803
- /**
804
- * The type of evaluation
805
- */
806
- export type UpdateDatapointEvaluationsDatasetsResponse200EvaluationType =
807
- ClosedEnum<
808
- typeof UpdateDatapointEvaluationsDatasetsResponse200EvaluationType
809
- >;
810
-
811
- export const UpdateDatapointEvaluationsDatasetsResponse200Source = {
812
- Orq: "orq",
813
- External: "external",
814
- } as const;
815
- export type UpdateDatapointEvaluationsDatasetsResponse200Source = ClosedEnum<
816
- typeof UpdateDatapointEvaluationsDatasetsResponse200Source
817
- >;
818
-
819
- /**
820
- * The kind of annotator that produced the evaluation
821
- */
822
- export const UpdateDatapointEvaluationsDatasetsResponse200Kind = {
823
- Llm: "llm",
824
- Code: "code",
825
- Human: "human",
826
- Automation: "automation",
827
- } as const;
828
- /**
829
- * The kind of annotator that produced the evaluation
830
- */
831
- export type UpdateDatapointEvaluationsDatasetsResponse200Kind = ClosedEnum<
832
- typeof UpdateDatapointEvaluationsDatasetsResponse200Kind
833
- >;
834
-
835
- /**
836
- * The annotator that produced this evaluation. Optional during the dual-write deprecation window.
837
- */
838
- export type UpdateDatapointEvaluationsDatasetsResponse200Annotator = {
839
- /**
840
- * The kind of annotator that produced the evaluation
841
- */
842
- kind: UpdateDatapointEvaluationsDatasetsResponse200Kind;
843
- /**
844
- * Who/what produced this annotation. User/contact id for human, evaluator eval span id for llm/code, automation rule id for automation.
845
- */
846
- actorId: string;
847
- };
848
-
849
- /**
850
- * The expected shape of the value. Derived from the human review type, or inherited from the parent annotation for corrections.
851
- */
852
- export const UpdateDatapointEvaluationsDatasetsResponse200OutputSchema = {
853
- Boolean: "boolean",
854
- Number: "number",
855
- Categorical: "categorical",
856
- String: "string",
857
- } as const;
858
- /**
859
- * The expected shape of the value. Derived from the human review type, or inherited from the parent annotation for corrections.
860
- */
861
- export type UpdateDatapointEvaluationsDatasetsResponse200OutputSchema =
862
- ClosedEnum<typeof UpdateDatapointEvaluationsDatasetsResponse200OutputSchema>;
863
-
864
- export type UpdateDatapointEvaluations4 = {
865
- /**
866
- * The unique identifier of the human evaluation
867
- */
868
- id: string;
869
- /**
870
- * The type of evaluation
871
- */
872
- evaluationType: UpdateDatapointEvaluationsDatasetsResponse200EvaluationType;
873
- /**
874
- * The unique identifier of the human review. Omitted on corrections, which inherit the parent evaluator output schema.
875
- */
876
- humanReviewId?: string | undefined;
877
- source: UpdateDatapointEvaluationsDatasetsResponse200Source;
878
- /**
879
- * The annotator that produced this evaluation. Optional during the dual-write deprecation window.
880
- */
881
- annotator?:
882
- | UpdateDatapointEvaluationsDatasetsResponse200Annotator
883
- | undefined;
884
- /**
885
- * The expected shape of the value. Derived from the human review type, or inherited from the parent annotation for corrections.
886
- */
887
- outputSchema?:
888
- | UpdateDatapointEvaluationsDatasetsResponse200OutputSchema
889
- | undefined;
890
- /**
891
- * When present, references the id of the annotation this entry corrects. Presence of this field marks the entry as a correction.
892
- */
893
- parentAnnotationId?: string | undefined;
894
- /**
895
- * Optional free-text explanation of the value
896
- */
897
- explanation?: string | undefined;
898
- /**
899
- * Deprecated: use annotator.actor_id. The unique identifier of the user who reviewed the item.
900
- *
901
- * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
902
- */
903
- reviewedById: string;
904
- /**
905
- * Deprecated. The date and time the item was reviewed
906
- *
907
- * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
908
- */
909
- reviewedAt: Date;
910
- type: "string_array";
911
- values: Array<string>;
912
- };
913
-
914
- /**
915
- * The type of evaluation
916
- */
917
- export const UpdateDatapointEvaluationsDatasetsResponseEvaluationType = {
918
- HumanReview: "human_review",
919
- } as const;
920
- /**
921
- * The type of evaluation
922
- */
923
- export type UpdateDatapointEvaluationsDatasetsResponseEvaluationType =
924
- ClosedEnum<typeof UpdateDatapointEvaluationsDatasetsResponseEvaluationType>;
925
-
926
- export const UpdateDatapointEvaluationsDatasetsResponseSource = {
927
- Orq: "orq",
928
- External: "external",
929
- } as const;
930
- export type UpdateDatapointEvaluationsDatasetsResponseSource = ClosedEnum<
931
- typeof UpdateDatapointEvaluationsDatasetsResponseSource
932
- >;
933
-
934
- /**
935
- * The kind of annotator that produced the evaluation
936
- */
937
- export const UpdateDatapointEvaluationsDatasetsResponseKind = {
938
- Llm: "llm",
939
- Code: "code",
940
- Human: "human",
941
- Automation: "automation",
942
- } as const;
943
- /**
944
- * The kind of annotator that produced the evaluation
945
- */
946
- export type UpdateDatapointEvaluationsDatasetsResponseKind = ClosedEnum<
947
- typeof UpdateDatapointEvaluationsDatasetsResponseKind
948
- >;
949
-
950
- /**
951
- * The annotator that produced this evaluation. Optional during the dual-write deprecation window.
952
- */
953
- export type UpdateDatapointEvaluationsDatasetsResponseAnnotator = {
954
- /**
955
- * The kind of annotator that produced the evaluation
956
- */
957
- kind: UpdateDatapointEvaluationsDatasetsResponseKind;
958
- /**
959
- * Who/what produced this annotation. User/contact id for human, evaluator eval span id for llm/code, automation rule id for automation.
960
- */
961
- actorId: string;
962
- };
963
-
964
- /**
965
- * The expected shape of the value. Derived from the human review type, or inherited from the parent annotation for corrections.
966
- */
967
- export const UpdateDatapointEvaluationsDatasetsResponseOutputSchema = {
968
- Boolean: "boolean",
969
- Number: "number",
970
- Categorical: "categorical",
971
- String: "string",
972
- } as const;
973
- /**
974
- * The expected shape of the value. Derived from the human review type, or inherited from the parent annotation for corrections.
975
- */
976
- export type UpdateDatapointEvaluationsDatasetsResponseOutputSchema = ClosedEnum<
977
- typeof UpdateDatapointEvaluationsDatasetsResponseOutputSchema
978
- >;
979
-
980
- export type UpdateDatapointEvaluations3 = {
981
- /**
982
- * The unique identifier of the human evaluation
983
- */
984
- id: string;
985
- /**
986
- * The type of evaluation
987
- */
988
- evaluationType: UpdateDatapointEvaluationsDatasetsResponseEvaluationType;
989
- /**
990
- * The unique identifier of the human review. Omitted on corrections, which inherit the parent evaluator output schema.
991
- */
992
- humanReviewId?: string | undefined;
993
- source: UpdateDatapointEvaluationsDatasetsResponseSource;
994
- /**
995
- * The annotator that produced this evaluation. Optional during the dual-write deprecation window.
996
- */
997
- annotator?: UpdateDatapointEvaluationsDatasetsResponseAnnotator | undefined;
998
- /**
999
- * The expected shape of the value. Derived from the human review type, or inherited from the parent annotation for corrections.
1000
- */
1001
- outputSchema?:
1002
- | UpdateDatapointEvaluationsDatasetsResponseOutputSchema
1003
- | undefined;
1004
- /**
1005
- * When present, references the id of the annotation this entry corrects. Presence of this field marks the entry as a correction.
1006
- */
1007
- parentAnnotationId?: string | undefined;
1008
- /**
1009
- * Optional free-text explanation of the value
1010
- */
1011
- explanation?: string | undefined;
1012
- /**
1013
- * Deprecated: use annotator.actor_id. The unique identifier of the user who reviewed the item.
1014
- *
1015
- * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
1016
- */
1017
- reviewedById: string;
1018
- /**
1019
- * Deprecated. The date and time the item was reviewed
1020
- *
1021
- * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
1022
- */
1023
- reviewedAt: Date;
1024
- type: "boolean";
1025
- value: boolean;
1026
- };
1027
-
1028
- /**
1029
- * The type of evaluation
1030
- */
1031
- export const UpdateDatapointEvaluationsDatasetsEvaluationType = {
1032
- HumanReview: "human_review",
1033
- } as const;
1034
- /**
1035
- * The type of evaluation
1036
- */
1037
- export type UpdateDatapointEvaluationsDatasetsEvaluationType = ClosedEnum<
1038
- typeof UpdateDatapointEvaluationsDatasetsEvaluationType
1039
- >;
1040
-
1041
- export const UpdateDatapointEvaluationsDatasetsSource = {
1042
- Orq: "orq",
1043
- External: "external",
1044
- } as const;
1045
- export type UpdateDatapointEvaluationsDatasetsSource = ClosedEnum<
1046
- typeof UpdateDatapointEvaluationsDatasetsSource
1047
- >;
1048
-
1049
- /**
1050
- * The kind of annotator that produced the evaluation
1051
- */
1052
- export const UpdateDatapointEvaluationsDatasetsKind = {
1053
- Llm: "llm",
1054
- Code: "code",
1055
- Human: "human",
1056
- Automation: "automation",
1057
- } as const;
1058
- /**
1059
- * The kind of annotator that produced the evaluation
1060
- */
1061
- export type UpdateDatapointEvaluationsDatasetsKind = ClosedEnum<
1062
- typeof UpdateDatapointEvaluationsDatasetsKind
1063
- >;
1064
-
1065
- /**
1066
- * The annotator that produced this evaluation. Optional during the dual-write deprecation window.
1067
- */
1068
- export type UpdateDatapointEvaluationsDatasetsAnnotator = {
1069
- /**
1070
- * The kind of annotator that produced the evaluation
1071
- */
1072
- kind: UpdateDatapointEvaluationsDatasetsKind;
1073
- /**
1074
- * Who/what produced this annotation. User/contact id for human, evaluator eval span id for llm/code, automation rule id for automation.
1075
- */
1076
- actorId: string;
1077
- };
1078
-
1079
- /**
1080
- * The expected shape of the value. Derived from the human review type, or inherited from the parent annotation for corrections.
1081
- */
1082
- export const UpdateDatapointEvaluationsDatasetsOutputSchema = {
1083
- Boolean: "boolean",
1084
- Number: "number",
1085
- Categorical: "categorical",
1086
- String: "string",
1087
- } as const;
1088
- /**
1089
- * The expected shape of the value. Derived from the human review type, or inherited from the parent annotation for corrections.
1090
- */
1091
- export type UpdateDatapointEvaluationsDatasetsOutputSchema = ClosedEnum<
1092
- typeof UpdateDatapointEvaluationsDatasetsOutputSchema
1093
- >;
1094
-
1095
- export type UpdateDatapointEvaluations2 = {
1096
- /**
1097
- * The unique identifier of the human evaluation
1098
- */
1099
- id: string;
1100
- /**
1101
- * The type of evaluation
1102
- */
1103
- evaluationType: UpdateDatapointEvaluationsDatasetsEvaluationType;
1104
- /**
1105
- * The unique identifier of the human review. Omitted on corrections, which inherit the parent evaluator output schema.
1106
- */
1107
- humanReviewId?: string | undefined;
1108
- source: UpdateDatapointEvaluationsDatasetsSource;
1109
- /**
1110
- * The annotator that produced this evaluation. Optional during the dual-write deprecation window.
1111
- */
1112
- annotator?: UpdateDatapointEvaluationsDatasetsAnnotator | undefined;
1113
- /**
1114
- * The expected shape of the value. Derived from the human review type, or inherited from the parent annotation for corrections.
1115
- */
1116
- outputSchema?: UpdateDatapointEvaluationsDatasetsOutputSchema | undefined;
1117
- /**
1118
- * When present, references the id of the annotation this entry corrects. Presence of this field marks the entry as a correction.
1119
- */
1120
- parentAnnotationId?: string | undefined;
1121
- /**
1122
- * Optional free-text explanation of the value
1123
- */
1124
- explanation?: string | undefined;
1125
- /**
1126
- * Deprecated: use annotator.actor_id. The unique identifier of the user who reviewed the item.
1127
- *
1128
- * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
1129
- */
1130
- reviewedById: string;
1131
- /**
1132
- * Deprecated. The date and time the item was reviewed
1133
- *
1134
- * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
1135
- */
1136
- reviewedAt: Date;
1137
- type: "number";
1138
- value: number;
1139
- };
1140
-
1141
- /**
1142
- * The type of evaluation
1143
- */
1144
- export const UpdateDatapointEvaluationsEvaluationType = {
1145
- HumanReview: "human_review",
1146
- } as const;
1147
- /**
1148
- * The type of evaluation
1149
- */
1150
- export type UpdateDatapointEvaluationsEvaluationType = ClosedEnum<
1151
- typeof UpdateDatapointEvaluationsEvaluationType
1152
- >;
1153
-
1154
- export const UpdateDatapointEvaluationsSource = {
1155
- Orq: "orq",
1156
- External: "external",
1157
- } as const;
1158
- export type UpdateDatapointEvaluationsSource = ClosedEnum<
1159
- typeof UpdateDatapointEvaluationsSource
1160
- >;
1161
-
1162
- /**
1163
- * The kind of annotator that produced the evaluation
1164
- */
1165
- export const UpdateDatapointEvaluationsKind = {
1166
- Llm: "llm",
1167
- Code: "code",
1168
- Human: "human",
1169
- Automation: "automation",
1170
- } as const;
1171
- /**
1172
- * The kind of annotator that produced the evaluation
1173
- */
1174
- export type UpdateDatapointEvaluationsKind = ClosedEnum<
1175
- typeof UpdateDatapointEvaluationsKind
1176
- >;
1177
-
1178
- /**
1179
- * The annotator that produced this evaluation. Optional during the dual-write deprecation window.
1180
- */
1181
- export type UpdateDatapointEvaluationsAnnotator = {
1182
- /**
1183
- * The kind of annotator that produced the evaluation
1184
- */
1185
- kind: UpdateDatapointEvaluationsKind;
1186
- /**
1187
- * Who/what produced this annotation. User/contact id for human, evaluator eval span id for llm/code, automation rule id for automation.
1188
- */
1189
- actorId: string;
1190
- };
1191
-
1192
- /**
1193
- * The expected shape of the value. Derived from the human review type, or inherited from the parent annotation for corrections.
1194
- */
1195
- export const UpdateDatapointEvaluationsOutputSchema = {
1196
- Boolean: "boolean",
1197
- Number: "number",
1198
- Categorical: "categorical",
1199
- String: "string",
1200
- } as const;
1201
- /**
1202
- * The expected shape of the value. Derived from the human review type, or inherited from the parent annotation for corrections.
1203
- */
1204
- export type UpdateDatapointEvaluationsOutputSchema = ClosedEnum<
1205
- typeof UpdateDatapointEvaluationsOutputSchema
1206
- >;
1207
-
1208
- export type UpdateDatapointEvaluations1 = {
1209
- /**
1210
- * The unique identifier of the human evaluation
1211
- */
1212
- id: string;
1213
- /**
1214
- * The type of evaluation
1215
- */
1216
- evaluationType: UpdateDatapointEvaluationsEvaluationType;
1217
- /**
1218
- * The unique identifier of the human review. Omitted on corrections, which inherit the parent evaluator output schema.
1219
- */
1220
- humanReviewId?: string | undefined;
1221
- source: UpdateDatapointEvaluationsSource;
1222
- /**
1223
- * The annotator that produced this evaluation. Optional during the dual-write deprecation window.
1224
- */
1225
- annotator?: UpdateDatapointEvaluationsAnnotator | undefined;
1226
- /**
1227
- * The expected shape of the value. Derived from the human review type, or inherited from the parent annotation for corrections.
1228
- */
1229
- outputSchema?: UpdateDatapointEvaluationsOutputSchema | undefined;
1230
- /**
1231
- * When present, references the id of the annotation this entry corrects. Presence of this field marks the entry as a correction.
1232
- */
1233
- parentAnnotationId?: string | undefined;
1234
- /**
1235
- * Optional free-text explanation of the value
1236
- */
1237
- explanation?: string | undefined;
1238
- /**
1239
- * Deprecated: use annotator.actor_id. The unique identifier of the user who reviewed the item.
1240
- *
1241
- * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
1242
- */
1243
- reviewedById: string;
1244
- /**
1245
- * Deprecated. The date and time the item was reviewed
1246
- *
1247
- * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
1248
- */
1249
- reviewedAt: Date;
1250
- type: "string";
1251
- value: string;
1252
- };
1253
-
1254
- export type UpdateDatapointEvaluations =
1255
- | UpdateDatapointEvaluations1
1256
- | UpdateDatapointEvaluations2
1257
- | UpdateDatapointEvaluations3
1258
- | UpdateDatapointEvaluations4;
1259
-
1260
- /**
1261
- * Dataset item updated.
1262
- */
1263
- export type UpdateDatapointResponseBody = {
1264
- /**
1265
- * The unique identifier of the dataset item
1266
- */
1267
- id: string;
1268
- /**
1269
- * The unique identifier of the workspace it belongs to
1270
- */
1271
- workspaceId: string;
1272
- /**
1273
- * The inputs of the dataset. Key value pairs where the key is the input name and the value is the input value. Nested objects are not supported.
1274
- */
1275
- inputs?: { [k: string]: any } | undefined;
1276
- /**
1277
- * A list of messages comprising the conversation so far
1278
- */
1279
- messages?:
1280
- | Array<
1281
- | UpdateDatapointMessagesDatasetsSystemMessage
1282
- | UpdateDatapointMessagesDatasetsDeveloperMessage
1283
- | UpdateDatapointMessagesDatasetsUserMessage
1284
- | UpdateDatapointMessagesDatasetsAssistantMessage
1285
- | UpdateDatapointMessagesDatasetsToolMessage
1286
- >
1287
- | undefined;
1288
- expectedOutput?: string | undefined;
1289
- /**
1290
- * Evaluations associated with the datapoint
1291
- */
1292
- evaluations?:
1293
- | Array<
1294
- | UpdateDatapointEvaluations1
1295
- | UpdateDatapointEvaluations2
1296
- | UpdateDatapointEvaluations3
1297
- | UpdateDatapointEvaluations4
1298
- >
1299
- | undefined;
1300
- /**
1301
- * The unique identifier of the dataset
1302
- */
1303
- datasetId: string;
1304
- /**
1305
- * The version of the dataset snapshot
1306
- */
1307
- snapshotVersion?: string | undefined;
1308
- /**
1309
- * The unique identifier of the user who created the dataset
1310
- */
1311
- createdById?: string | null | undefined;
1312
- /**
1313
- * The unique identifier of the user who last updated the dataset
1314
- */
1315
- updatedById?: string | null | undefined;
1316
- /**
1317
- * The date and time the resource was created
1318
- */
1319
- created?: Date | undefined;
1320
- /**
1321
- * The date and time the resource was last updated
1322
- */
1323
- updated: Date;
1324
- };
1325
-
1326
- /** @internal */
1327
- export type UpdateDatapointInputs$Outbound = string | number | boolean;
1328
-
1329
- /** @internal */
1330
- export const UpdateDatapointInputs$outboundSchema: z.ZodType<
1331
- UpdateDatapointInputs$Outbound,
1332
- z.ZodTypeDef,
1333
- UpdateDatapointInputs
1334
- > = z.union([z.string(), z.number(), z.boolean()]);
1335
-
1336
- export function updateDatapointInputsToJSON(
1337
- updateDatapointInputs: UpdateDatapointInputs,
1338
- ): string {
1339
- return JSON.stringify(
1340
- UpdateDatapointInputs$outboundSchema.parse(updateDatapointInputs),
1341
- );
1342
- }
1343
-
1344
- /** @internal */
1345
- export type UpdateDatapointContentDatasetsRequest2$Outbound =
1346
- components.TextContentPartSchema$Outbound;
1347
-
1348
- /** @internal */
1349
- export const UpdateDatapointContentDatasetsRequest2$outboundSchema: z.ZodType<
1350
- UpdateDatapointContentDatasetsRequest2$Outbound,
1351
- z.ZodTypeDef,
1352
- UpdateDatapointContentDatasetsRequest2
1353
- > = components.TextContentPartSchema$outboundSchema;
1354
-
1355
- export function updateDatapointContentDatasetsRequest2ToJSON(
1356
- updateDatapointContentDatasetsRequest2:
1357
- UpdateDatapointContentDatasetsRequest2,
1358
- ): string {
1359
- return JSON.stringify(
1360
- UpdateDatapointContentDatasetsRequest2$outboundSchema.parse(
1361
- updateDatapointContentDatasetsRequest2,
1362
- ),
1363
- );
1364
- }
1365
-
1366
- /** @internal */
1367
- export type UpdateDatapointMessagesDatasetsRequestRequestBody5Content$Outbound =
1368
- | string
1369
- | Array<components.TextContentPartSchema$Outbound>;
1370
-
1371
- /** @internal */
1372
- export const UpdateDatapointMessagesDatasetsRequestRequestBody5Content$outboundSchema:
1373
- z.ZodType<
1374
- UpdateDatapointMessagesDatasetsRequestRequestBody5Content$Outbound,
1375
- z.ZodTypeDef,
1376
- UpdateDatapointMessagesDatasetsRequestRequestBody5Content
1377
- > = z.union([
1378
- z.string(),
1379
- z.array(components.TextContentPartSchema$outboundSchema),
1380
- ]);
1381
-
1382
- export function updateDatapointMessagesDatasetsRequestRequestBody5ContentToJSON(
1383
- updateDatapointMessagesDatasetsRequestRequestBody5Content:
1384
- UpdateDatapointMessagesDatasetsRequestRequestBody5Content,
1385
- ): string {
1386
- return JSON.stringify(
1387
- UpdateDatapointMessagesDatasetsRequestRequestBody5Content$outboundSchema
1388
- .parse(updateDatapointMessagesDatasetsRequestRequestBody5Content),
1389
- );
1390
- }
1391
-
1392
- /** @internal */
1393
- export const UpdateDatapointMessagesDatasetsType$outboundSchema:
1394
- z.ZodNativeEnum<typeof UpdateDatapointMessagesDatasetsType> = z.nativeEnum(
1395
- UpdateDatapointMessagesDatasetsType,
1396
- );
1397
-
1398
- /** @internal */
1399
- export const UpdateDatapointMessagesTtl$outboundSchema: z.ZodNativeEnum<
1400
- typeof UpdateDatapointMessagesTtl
1401
- > = z.nativeEnum(UpdateDatapointMessagesTtl);
1402
-
1403
- /** @internal */
1404
- export type UpdateDatapointMessagesCacheControl$Outbound = {
1405
- type: string;
1406
- ttl: string;
12
+ updateDatapointRequest: components.UpdateDatapointRequest;
1407
13
  };
1408
14
 
1409
15
  /** @internal */
1410
- export const UpdateDatapointMessagesCacheControl$outboundSchema: z.ZodType<
1411
- UpdateDatapointMessagesCacheControl$Outbound,
1412
- z.ZodTypeDef,
1413
- UpdateDatapointMessagesCacheControl
1414
- > = z.object({
1415
- type: UpdateDatapointMessagesDatasetsType$outboundSchema,
1416
- ttl: UpdateDatapointMessagesTtl$outboundSchema.default("5m"),
1417
- });
1418
-
1419
- export function updateDatapointMessagesCacheControlToJSON(
1420
- updateDatapointMessagesCacheControl: UpdateDatapointMessagesCacheControl,
1421
- ): string {
1422
- return JSON.stringify(
1423
- UpdateDatapointMessagesCacheControl$outboundSchema.parse(
1424
- updateDatapointMessagesCacheControl,
1425
- ),
1426
- );
1427
- }
1428
-
1429
- /** @internal */
1430
- export type UpdateDatapointMessagesToolMessage$Outbound = {
1431
- role: "tool";
1432
- content: string | Array<components.TextContentPartSchema$Outbound>;
1433
- tool_call_id: string | null;
1434
- cache_control?: UpdateDatapointMessagesCacheControl$Outbound | undefined;
16
+ export type UpdateDatapointRequest$Outbound = {
17
+ dataset_id: string;
18
+ datapoint_id: string;
19
+ UpdateDatapointRequest: components.UpdateDatapointRequest$Outbound;
1435
20
  };
1436
21
 
1437
22
  /** @internal */
1438
- export const UpdateDatapointMessagesToolMessage$outboundSchema: z.ZodType<
1439
- UpdateDatapointMessagesToolMessage$Outbound,
23
+ export const UpdateDatapointRequest$outboundSchema: z.ZodType<
24
+ UpdateDatapointRequest$Outbound,
1440
25
  z.ZodTypeDef,
1441
- UpdateDatapointMessagesToolMessage
26
+ UpdateDatapointRequest
1442
27
  > = z.object({
1443
- role: z.literal("tool"),
1444
- content: z.union([
1445
- z.string(),
1446
- z.array(components.TextContentPartSchema$outboundSchema),
1447
- ]),
1448
- toolCallId: z.nullable(z.string()),
1449
- cacheControl: z.lazy(() => UpdateDatapointMessagesCacheControl$outboundSchema)
1450
- .optional(),
28
+ datasetId: z.string(),
29
+ datapointId: z.string(),
30
+ updateDatapointRequest: components.UpdateDatapointRequest$outboundSchema,
1451
31
  }).transform((v) => {
1452
32
  return remap$(v, {
1453
- toolCallId: "tool_call_id",
1454
- cacheControl: "cache_control",
33
+ datasetId: "dataset_id",
34
+ datapointId: "datapoint_id",
35
+ updateDatapointRequest: "UpdateDatapointRequest",
1455
36
  });
1456
37
  });
1457
38
 
1458
- export function updateDatapointMessagesToolMessageToJSON(
1459
- updateDatapointMessagesToolMessage: UpdateDatapointMessagesToolMessage,
1460
- ): string {
1461
- return JSON.stringify(
1462
- UpdateDatapointMessagesToolMessage$outboundSchema.parse(
1463
- updateDatapointMessagesToolMessage,
1464
- ),
1465
- );
1466
- }
1467
-
1468
- /** @internal */
1469
- export type UpdateDatapointContentDatasets2$Outbound =
1470
- | (components.TextContentPartSchema$Outbound & { type: "text" })
1471
- | components.RefusalPartSchema$Outbound
1472
- | components.ReasoningPartSchema$Outbound
1473
- | components.RedactedReasoningPartSchema$Outbound;
1474
-
1475
- /** @internal */
1476
- export const UpdateDatapointContentDatasets2$outboundSchema: z.ZodType<
1477
- UpdateDatapointContentDatasets2$Outbound,
1478
- z.ZodTypeDef,
1479
- UpdateDatapointContentDatasets2
1480
- > = z.union([
1481
- components.TextContentPartSchema$outboundSchema.and(
1482
- z.object({ type: z.literal("text") }),
1483
- ),
1484
- components.RefusalPartSchema$outboundSchema,
1485
- components.ReasoningPartSchema$outboundSchema,
1486
- components.RedactedReasoningPartSchema$outboundSchema,
1487
- ]);
1488
-
1489
- export function updateDatapointContentDatasets2ToJSON(
1490
- updateDatapointContentDatasets2: UpdateDatapointContentDatasets2,
39
+ export function updateDatapointRequestToJSON(
40
+ updateDatapointRequest: UpdateDatapointRequest,
1491
41
  ): string {
1492
42
  return JSON.stringify(
1493
- UpdateDatapointContentDatasets2$outboundSchema.parse(
1494
- updateDatapointContentDatasets2,
1495
- ),
1496
- );
1497
- }
1498
-
1499
- /** @internal */
1500
- export type UpdateDatapointMessagesDatasetsRequestRequestBodyContent$Outbound =
1501
- | string
1502
- | Array<
1503
- | (components.TextContentPartSchema$Outbound & { type: "text" })
1504
- | components.RefusalPartSchema$Outbound
1505
- | components.ReasoningPartSchema$Outbound
1506
- | components.RedactedReasoningPartSchema$Outbound
1507
- >;
1508
-
1509
- /** @internal */
1510
- export const UpdateDatapointMessagesDatasetsRequestRequestBodyContent$outboundSchema:
1511
- z.ZodType<
1512
- UpdateDatapointMessagesDatasetsRequestRequestBodyContent$Outbound,
1513
- z.ZodTypeDef,
1514
- UpdateDatapointMessagesDatasetsRequestRequestBodyContent
1515
- > = z.union([
1516
- z.string(),
1517
- z.array(
1518
- z.union([
1519
- components.TextContentPartSchema$outboundSchema.and(
1520
- z.object({ type: z.literal("text") }),
1521
- ),
1522
- components.RefusalPartSchema$outboundSchema,
1523
- components.ReasoningPartSchema$outboundSchema,
1524
- components.RedactedReasoningPartSchema$outboundSchema,
1525
- ]),
1526
- ),
1527
- ]);
1528
-
1529
- export function updateDatapointMessagesDatasetsRequestRequestBodyContentToJSON(
1530
- updateDatapointMessagesDatasetsRequestRequestBodyContent:
1531
- UpdateDatapointMessagesDatasetsRequestRequestBodyContent,
1532
- ): string {
1533
- return JSON.stringify(
1534
- UpdateDatapointMessagesDatasetsRequestRequestBodyContent$outboundSchema
1535
- .parse(updateDatapointMessagesDatasetsRequestRequestBodyContent),
1536
- );
1537
- }
1538
-
1539
- /** @internal */
1540
- export type UpdateDatapointMessagesAudio$Outbound = {
1541
- id: string;
1542
- };
1543
-
1544
- /** @internal */
1545
- export const UpdateDatapointMessagesAudio$outboundSchema: z.ZodType<
1546
- UpdateDatapointMessagesAudio$Outbound,
1547
- z.ZodTypeDef,
1548
- UpdateDatapointMessagesAudio
1549
- > = z.object({
1550
- id: z.string(),
1551
- });
1552
-
1553
- export function updateDatapointMessagesAudioToJSON(
1554
- updateDatapointMessagesAudio: UpdateDatapointMessagesAudio,
1555
- ): string {
1556
- return JSON.stringify(
1557
- UpdateDatapointMessagesAudio$outboundSchema.parse(
1558
- updateDatapointMessagesAudio,
1559
- ),
1560
- );
1561
- }
1562
-
1563
- /** @internal */
1564
- export const UpdateDatapointMessagesType$outboundSchema: z.ZodNativeEnum<
1565
- typeof UpdateDatapointMessagesType
1566
- > = z.nativeEnum(UpdateDatapointMessagesType);
1567
-
1568
- /** @internal */
1569
- export type UpdateDatapointMessagesFunction$Outbound = {
1570
- name?: string | undefined;
1571
- arguments?: string | undefined;
1572
- };
1573
-
1574
- /** @internal */
1575
- export const UpdateDatapointMessagesFunction$outboundSchema: z.ZodType<
1576
- UpdateDatapointMessagesFunction$Outbound,
1577
- z.ZodTypeDef,
1578
- UpdateDatapointMessagesFunction
1579
- > = z.object({
1580
- name: z.string().optional(),
1581
- arguments: z.string().optional(),
1582
- });
1583
-
1584
- export function updateDatapointMessagesFunctionToJSON(
1585
- updateDatapointMessagesFunction: UpdateDatapointMessagesFunction,
1586
- ): string {
1587
- return JSON.stringify(
1588
- UpdateDatapointMessagesFunction$outboundSchema.parse(
1589
- updateDatapointMessagesFunction,
1590
- ),
1591
- );
1592
- }
1593
-
1594
- /** @internal */
1595
- export type UpdateDatapointMessagesGoogle$Outbound = {
1596
- thought_signature?: string | undefined;
1597
- };
1598
-
1599
- /** @internal */
1600
- export const UpdateDatapointMessagesGoogle$outboundSchema: z.ZodType<
1601
- UpdateDatapointMessagesGoogle$Outbound,
1602
- z.ZodTypeDef,
1603
- UpdateDatapointMessagesGoogle
1604
- > = z.object({
1605
- thoughtSignature: z.string().optional(),
1606
- }).transform((v) => {
1607
- return remap$(v, {
1608
- thoughtSignature: "thought_signature",
1609
- });
1610
- });
1611
-
1612
- export function updateDatapointMessagesGoogleToJSON(
1613
- updateDatapointMessagesGoogle: UpdateDatapointMessagesGoogle,
1614
- ): string {
1615
- return JSON.stringify(
1616
- UpdateDatapointMessagesGoogle$outboundSchema.parse(
1617
- updateDatapointMessagesGoogle,
1618
- ),
1619
- );
1620
- }
1621
-
1622
- /** @internal */
1623
- export type UpdateDatapointMessagesExtraContent$Outbound = {
1624
- google?: UpdateDatapointMessagesGoogle$Outbound | undefined;
1625
- };
1626
-
1627
- /** @internal */
1628
- export const UpdateDatapointMessagesExtraContent$outboundSchema: z.ZodType<
1629
- UpdateDatapointMessagesExtraContent$Outbound,
1630
- z.ZodTypeDef,
1631
- UpdateDatapointMessagesExtraContent
1632
- > = z.object({
1633
- google: z.lazy(() => UpdateDatapointMessagesGoogle$outboundSchema).optional(),
1634
- });
1635
-
1636
- export function updateDatapointMessagesExtraContentToJSON(
1637
- updateDatapointMessagesExtraContent: UpdateDatapointMessagesExtraContent,
1638
- ): string {
1639
- return JSON.stringify(
1640
- UpdateDatapointMessagesExtraContent$outboundSchema.parse(
1641
- updateDatapointMessagesExtraContent,
1642
- ),
1643
- );
1644
- }
1645
-
1646
- /** @internal */
1647
- export type UpdateDatapointMessagesToolCalls$Outbound = {
1648
- id: string;
1649
- type: string;
1650
- function: UpdateDatapointMessagesFunction$Outbound;
1651
- thought_signature?: string | undefined;
1652
- extra_content?: UpdateDatapointMessagesExtraContent$Outbound | undefined;
1653
- };
1654
-
1655
- /** @internal */
1656
- export const UpdateDatapointMessagesToolCalls$outboundSchema: z.ZodType<
1657
- UpdateDatapointMessagesToolCalls$Outbound,
1658
- z.ZodTypeDef,
1659
- UpdateDatapointMessagesToolCalls
1660
- > = z.object({
1661
- id: z.string(),
1662
- type: UpdateDatapointMessagesType$outboundSchema,
1663
- function: z.lazy(() => UpdateDatapointMessagesFunction$outboundSchema),
1664
- thoughtSignature: z.string().optional(),
1665
- extraContent: z.lazy(() => UpdateDatapointMessagesExtraContent$outboundSchema)
1666
- .optional(),
1667
- }).transform((v) => {
1668
- return remap$(v, {
1669
- thoughtSignature: "thought_signature",
1670
- extraContent: "extra_content",
1671
- });
1672
- });
1673
-
1674
- export function updateDatapointMessagesToolCallsToJSON(
1675
- updateDatapointMessagesToolCalls: UpdateDatapointMessagesToolCalls,
1676
- ): string {
1677
- return JSON.stringify(
1678
- UpdateDatapointMessagesToolCalls$outboundSchema.parse(
1679
- updateDatapointMessagesToolCalls,
1680
- ),
1681
- );
1682
- }
1683
-
1684
- /** @internal */
1685
- export type UpdateDatapointMessagesAssistantMessage$Outbound = {
1686
- reasoning_content?: string | undefined;
1687
- content?:
1688
- | string
1689
- | Array<
1690
- | (components.TextContentPartSchema$Outbound & { type: "text" })
1691
- | components.RefusalPartSchema$Outbound
1692
- | components.ReasoningPartSchema$Outbound
1693
- | components.RedactedReasoningPartSchema$Outbound
1694
- >
1695
- | null
1696
- | undefined;
1697
- refusal?: string | null | undefined;
1698
- role: "assistant";
1699
- name?: string | undefined;
1700
- audio?: UpdateDatapointMessagesAudio$Outbound | null | undefined;
1701
- tool_calls?: Array<UpdateDatapointMessagesToolCalls$Outbound> | undefined;
1702
- };
1703
-
1704
- /** @internal */
1705
- export const UpdateDatapointMessagesAssistantMessage$outboundSchema: z.ZodType<
1706
- UpdateDatapointMessagesAssistantMessage$Outbound,
1707
- z.ZodTypeDef,
1708
- UpdateDatapointMessagesAssistantMessage
1709
- > = z.object({
1710
- reasoningContent: z.string().optional(),
1711
- content: z.nullable(
1712
- z.union([
1713
- z.string(),
1714
- z.array(
1715
- z.union([
1716
- components.TextContentPartSchema$outboundSchema.and(
1717
- z.object({ type: z.literal("text") }),
1718
- ),
1719
- components.RefusalPartSchema$outboundSchema,
1720
- components.ReasoningPartSchema$outboundSchema,
1721
- components.RedactedReasoningPartSchema$outboundSchema,
1722
- ]),
1723
- ),
1724
- ]),
1725
- ).optional(),
1726
- refusal: z.nullable(z.string()).optional(),
1727
- role: z.literal("assistant"),
1728
- name: z.string().optional(),
1729
- audio: z.nullable(z.lazy(() => UpdateDatapointMessagesAudio$outboundSchema))
1730
- .optional(),
1731
- toolCalls: z.array(
1732
- z.lazy(() => UpdateDatapointMessagesToolCalls$outboundSchema),
1733
- ).optional(),
1734
- }).transform((v) => {
1735
- return remap$(v, {
1736
- reasoningContent: "reasoning_content",
1737
- toolCalls: "tool_calls",
1738
- });
1739
- });
1740
-
1741
- export function updateDatapointMessagesAssistantMessageToJSON(
1742
- updateDatapointMessagesAssistantMessage:
1743
- UpdateDatapointMessagesAssistantMessage,
1744
- ): string {
1745
- return JSON.stringify(
1746
- UpdateDatapointMessagesAssistantMessage$outboundSchema.parse(
1747
- updateDatapointMessagesAssistantMessage,
1748
- ),
1749
- );
1750
- }
1751
-
1752
- /** @internal */
1753
- export const UpdateDatapoint2DatasetsType$outboundSchema: z.ZodNativeEnum<
1754
- typeof UpdateDatapoint2DatasetsType
1755
- > = z.nativeEnum(UpdateDatapoint2DatasetsType);
1756
-
1757
- /** @internal */
1758
- export const UpdateDatapoint2Ttl$outboundSchema: z.ZodNativeEnum<
1759
- typeof UpdateDatapoint2Ttl
1760
- > = z.nativeEnum(UpdateDatapoint2Ttl);
1761
-
1762
- /** @internal */
1763
- export type UpdateDatapoint2CacheControl$Outbound = {
1764
- type: string;
1765
- ttl: string;
1766
- };
1767
-
1768
- /** @internal */
1769
- export const UpdateDatapoint2CacheControl$outboundSchema: z.ZodType<
1770
- UpdateDatapoint2CacheControl$Outbound,
1771
- z.ZodTypeDef,
1772
- UpdateDatapoint2CacheControl
1773
- > = z.object({
1774
- type: UpdateDatapoint2DatasetsType$outboundSchema,
1775
- ttl: UpdateDatapoint2Ttl$outboundSchema.default("5m"),
1776
- });
1777
-
1778
- export function updateDatapoint2CacheControlToJSON(
1779
- updateDatapoint2CacheControl: UpdateDatapoint2CacheControl,
1780
- ): string {
1781
- return JSON.stringify(
1782
- UpdateDatapoint2CacheControl$outboundSchema.parse(
1783
- updateDatapoint2CacheControl,
1784
- ),
1785
- );
1786
- }
1787
-
1788
- /** @internal */
1789
- export type UpdateDatapoint24$Outbound = {
1790
- type: "file";
1791
- cache_control?: UpdateDatapoint2CacheControl$Outbound | undefined;
1792
- file: components.FileContentPartSchema$Outbound;
1793
- };
1794
-
1795
- /** @internal */
1796
- export const UpdateDatapoint24$outboundSchema: z.ZodType<
1797
- UpdateDatapoint24$Outbound,
1798
- z.ZodTypeDef,
1799
- UpdateDatapoint24
1800
- > = z.object({
1801
- type: z.literal("file"),
1802
- cacheControl: z.lazy(() => UpdateDatapoint2CacheControl$outboundSchema)
1803
- .optional(),
1804
- file: components.FileContentPartSchema$outboundSchema,
1805
- }).transform((v) => {
1806
- return remap$(v, {
1807
- cacheControl: "cache_control",
1808
- });
1809
- });
1810
-
1811
- export function updateDatapoint24ToJSON(
1812
- updateDatapoint24: UpdateDatapoint24,
1813
- ): string {
1814
- return JSON.stringify(
1815
- UpdateDatapoint24$outboundSchema.parse(updateDatapoint24),
1816
- );
1817
- }
1818
-
1819
- /** @internal */
1820
- export type UpdateDatapointContent2$Outbound =
1821
- | (components.TextContentPartSchema$Outbound & { type: "text" })
1822
- | components.ImageContentPartSchema$Outbound
1823
- | components.AudioContentPartSchema$Outbound
1824
- | UpdateDatapoint24$Outbound;
1825
-
1826
- /** @internal */
1827
- export const UpdateDatapointContent2$outboundSchema: z.ZodType<
1828
- UpdateDatapointContent2$Outbound,
1829
- z.ZodTypeDef,
1830
- UpdateDatapointContent2
1831
- > = z.union([
1832
- components.TextContentPartSchema$outboundSchema.and(
1833
- z.object({ type: z.literal("text") }),
1834
- ),
1835
- components.ImageContentPartSchema$outboundSchema,
1836
- components.AudioContentPartSchema$outboundSchema,
1837
- z.lazy(() => UpdateDatapoint24$outboundSchema),
1838
- ]);
1839
-
1840
- export function updateDatapointContent2ToJSON(
1841
- updateDatapointContent2: UpdateDatapointContent2,
1842
- ): string {
1843
- return JSON.stringify(
1844
- UpdateDatapointContent2$outboundSchema.parse(updateDatapointContent2),
1845
- );
1846
- }
1847
-
1848
- /** @internal */
1849
- export type UpdateDatapointMessagesDatasetsRequestContent$Outbound =
1850
- | string
1851
- | Array<
1852
- | (components.TextContentPartSchema$Outbound & { type: "text" })
1853
- | components.ImageContentPartSchema$Outbound
1854
- | components.AudioContentPartSchema$Outbound
1855
- | UpdateDatapoint24$Outbound
1856
- >;
1857
-
1858
- /** @internal */
1859
- export const UpdateDatapointMessagesDatasetsRequestContent$outboundSchema:
1860
- z.ZodType<
1861
- UpdateDatapointMessagesDatasetsRequestContent$Outbound,
1862
- z.ZodTypeDef,
1863
- UpdateDatapointMessagesDatasetsRequestContent
1864
- > = z.union([
1865
- z.string(),
1866
- z.array(
1867
- z.union([
1868
- components.TextContentPartSchema$outboundSchema.and(
1869
- z.object({ type: z.literal("text") }),
1870
- ),
1871
- components.ImageContentPartSchema$outboundSchema,
1872
- components.AudioContentPartSchema$outboundSchema,
1873
- z.lazy(() => UpdateDatapoint24$outboundSchema),
1874
- ]),
1875
- ),
1876
- ]);
1877
-
1878
- export function updateDatapointMessagesDatasetsRequestContentToJSON(
1879
- updateDatapointMessagesDatasetsRequestContent:
1880
- UpdateDatapointMessagesDatasetsRequestContent,
1881
- ): string {
1882
- return JSON.stringify(
1883
- UpdateDatapointMessagesDatasetsRequestContent$outboundSchema.parse(
1884
- updateDatapointMessagesDatasetsRequestContent,
1885
- ),
1886
- );
1887
- }
1888
-
1889
- /** @internal */
1890
- export type UpdateDatapointMessagesUserMessage$Outbound = {
1891
- role: "user";
1892
- name?: string | undefined;
1893
- content:
1894
- | string
1895
- | Array<
1896
- | (components.TextContentPartSchema$Outbound & { type: "text" })
1897
- | components.ImageContentPartSchema$Outbound
1898
- | components.AudioContentPartSchema$Outbound
1899
- | UpdateDatapoint24$Outbound
1900
- >;
1901
- };
1902
-
1903
- /** @internal */
1904
- export const UpdateDatapointMessagesUserMessage$outboundSchema: z.ZodType<
1905
- UpdateDatapointMessagesUserMessage$Outbound,
1906
- z.ZodTypeDef,
1907
- UpdateDatapointMessagesUserMessage
1908
- > = z.object({
1909
- role: z.literal("user"),
1910
- name: z.string().optional(),
1911
- content: z.union([
1912
- z.string(),
1913
- z.array(
1914
- z.union([
1915
- components.TextContentPartSchema$outboundSchema.and(
1916
- z.object({ type: z.literal("text") }),
1917
- ),
1918
- components.ImageContentPartSchema$outboundSchema,
1919
- components.AudioContentPartSchema$outboundSchema,
1920
- z.lazy(() => UpdateDatapoint24$outboundSchema),
1921
- ]),
1922
- ),
1923
- ]),
1924
- });
1925
-
1926
- export function updateDatapointMessagesUserMessageToJSON(
1927
- updateDatapointMessagesUserMessage: UpdateDatapointMessagesUserMessage,
1928
- ): string {
1929
- return JSON.stringify(
1930
- UpdateDatapointMessagesUserMessage$outboundSchema.parse(
1931
- updateDatapointMessagesUserMessage,
1932
- ),
1933
- );
1934
- }
1935
-
1936
- /** @internal */
1937
- export type UpdateDatapointMessagesDatasetsContent$Outbound =
1938
- | string
1939
- | Array<components.TextContentPartSchema$Outbound>;
1940
-
1941
- /** @internal */
1942
- export const UpdateDatapointMessagesDatasetsContent$outboundSchema: z.ZodType<
1943
- UpdateDatapointMessagesDatasetsContent$Outbound,
1944
- z.ZodTypeDef,
1945
- UpdateDatapointMessagesDatasetsContent
1946
- > = z.union([
1947
- z.string(),
1948
- z.array(components.TextContentPartSchema$outboundSchema),
1949
- ]);
1950
-
1951
- export function updateDatapointMessagesDatasetsContentToJSON(
1952
- updateDatapointMessagesDatasetsContent:
1953
- UpdateDatapointMessagesDatasetsContent,
1954
- ): string {
1955
- return JSON.stringify(
1956
- UpdateDatapointMessagesDatasetsContent$outboundSchema.parse(
1957
- updateDatapointMessagesDatasetsContent,
1958
- ),
1959
- );
1960
- }
1961
-
1962
- /** @internal */
1963
- export type UpdateDatapointMessagesDeveloperMessage$Outbound = {
1964
- role: "developer";
1965
- content: string | Array<components.TextContentPartSchema$Outbound>;
1966
- name?: string | undefined;
1967
- };
1968
-
1969
- /** @internal */
1970
- export const UpdateDatapointMessagesDeveloperMessage$outboundSchema: z.ZodType<
1971
- UpdateDatapointMessagesDeveloperMessage$Outbound,
1972
- z.ZodTypeDef,
1973
- UpdateDatapointMessagesDeveloperMessage
1974
- > = z.object({
1975
- role: z.literal("developer"),
1976
- content: z.union([
1977
- z.string(),
1978
- z.array(components.TextContentPartSchema$outboundSchema),
1979
- ]),
1980
- name: z.string().optional(),
1981
- });
1982
-
1983
- export function updateDatapointMessagesDeveloperMessageToJSON(
1984
- updateDatapointMessagesDeveloperMessage:
1985
- UpdateDatapointMessagesDeveloperMessage,
1986
- ): string {
1987
- return JSON.stringify(
1988
- UpdateDatapointMessagesDeveloperMessage$outboundSchema.parse(
1989
- updateDatapointMessagesDeveloperMessage,
1990
- ),
1991
- );
1992
- }
1993
-
1994
- /** @internal */
1995
- export type UpdateDatapointMessagesContent$Outbound =
1996
- | string
1997
- | Array<components.TextContentPartSchema$Outbound>;
1998
-
1999
- /** @internal */
2000
- export const UpdateDatapointMessagesContent$outboundSchema: z.ZodType<
2001
- UpdateDatapointMessagesContent$Outbound,
2002
- z.ZodTypeDef,
2003
- UpdateDatapointMessagesContent
2004
- > = z.union([
2005
- z.string(),
2006
- z.array(components.TextContentPartSchema$outboundSchema),
2007
- ]);
2008
-
2009
- export function updateDatapointMessagesContentToJSON(
2010
- updateDatapointMessagesContent: UpdateDatapointMessagesContent,
2011
- ): string {
2012
- return JSON.stringify(
2013
- UpdateDatapointMessagesContent$outboundSchema.parse(
2014
- updateDatapointMessagesContent,
2015
- ),
2016
- );
2017
- }
2018
-
2019
- /** @internal */
2020
- export type UpdateDatapointMessagesSystemMessage$Outbound = {
2021
- role: "system";
2022
- content: string | Array<components.TextContentPartSchema$Outbound>;
2023
- name?: string | undefined;
2024
- };
2025
-
2026
- /** @internal */
2027
- export const UpdateDatapointMessagesSystemMessage$outboundSchema: z.ZodType<
2028
- UpdateDatapointMessagesSystemMessage$Outbound,
2029
- z.ZodTypeDef,
2030
- UpdateDatapointMessagesSystemMessage
2031
- > = z.object({
2032
- role: z.literal("system"),
2033
- content: z.union([
2034
- z.string(),
2035
- z.array(components.TextContentPartSchema$outboundSchema),
2036
- ]),
2037
- name: z.string().optional(),
2038
- });
2039
-
2040
- export function updateDatapointMessagesSystemMessageToJSON(
2041
- updateDatapointMessagesSystemMessage: UpdateDatapointMessagesSystemMessage,
2042
- ): string {
2043
- return JSON.stringify(
2044
- UpdateDatapointMessagesSystemMessage$outboundSchema.parse(
2045
- updateDatapointMessagesSystemMessage,
2046
- ),
2047
- );
2048
- }
2049
-
2050
- /** @internal */
2051
- export type UpdateDatapointMessages$Outbound =
2052
- | UpdateDatapointMessagesSystemMessage$Outbound
2053
- | UpdateDatapointMessagesDeveloperMessage$Outbound
2054
- | UpdateDatapointMessagesUserMessage$Outbound
2055
- | UpdateDatapointMessagesAssistantMessage$Outbound
2056
- | UpdateDatapointMessagesToolMessage$Outbound;
2057
-
2058
- /** @internal */
2059
- export const UpdateDatapointMessages$outboundSchema: z.ZodType<
2060
- UpdateDatapointMessages$Outbound,
2061
- z.ZodTypeDef,
2062
- UpdateDatapointMessages
2063
- > = z.union([
2064
- z.lazy(() => UpdateDatapointMessagesSystemMessage$outboundSchema),
2065
- z.lazy(() => UpdateDatapointMessagesDeveloperMessage$outboundSchema),
2066
- z.lazy(() => UpdateDatapointMessagesUserMessage$outboundSchema),
2067
- z.lazy(() => UpdateDatapointMessagesAssistantMessage$outboundSchema),
2068
- z.lazy(() => UpdateDatapointMessagesToolMessage$outboundSchema),
2069
- ]);
2070
-
2071
- export function updateDatapointMessagesToJSON(
2072
- updateDatapointMessages: UpdateDatapointMessages,
2073
- ): string {
2074
- return JSON.stringify(
2075
- UpdateDatapointMessages$outboundSchema.parse(updateDatapointMessages),
2076
- );
2077
- }
2078
-
2079
- /** @internal */
2080
- export type UpdateDatapointRequestBody$Outbound = {
2081
- inputs?: { [k: string]: string | number | boolean | null } | undefined;
2082
- messages?:
2083
- | Array<
2084
- | UpdateDatapointMessagesSystemMessage$Outbound
2085
- | UpdateDatapointMessagesDeveloperMessage$Outbound
2086
- | UpdateDatapointMessagesUserMessage$Outbound
2087
- | UpdateDatapointMessagesAssistantMessage$Outbound
2088
- | UpdateDatapointMessagesToolMessage$Outbound
2089
- >
2090
- | undefined;
2091
- expected_output?: string | undefined;
2092
- };
2093
-
2094
- /** @internal */
2095
- export const UpdateDatapointRequestBody$outboundSchema: z.ZodType<
2096
- UpdateDatapointRequestBody$Outbound,
2097
- z.ZodTypeDef,
2098
- UpdateDatapointRequestBody
2099
- > = z.object({
2100
- inputs: z.record(z.nullable(z.union([z.string(), z.number(), z.boolean()])))
2101
- .optional(),
2102
- messages: z.array(
2103
- z.union([
2104
- z.lazy(() => UpdateDatapointMessagesSystemMessage$outboundSchema),
2105
- z.lazy(() => UpdateDatapointMessagesDeveloperMessage$outboundSchema),
2106
- z.lazy(() => UpdateDatapointMessagesUserMessage$outboundSchema),
2107
- z.lazy(() => UpdateDatapointMessagesAssistantMessage$outboundSchema),
2108
- z.lazy(() => UpdateDatapointMessagesToolMessage$outboundSchema),
2109
- ]),
2110
- ).optional(),
2111
- expectedOutput: z.string().optional(),
2112
- }).transform((v) => {
2113
- return remap$(v, {
2114
- expectedOutput: "expected_output",
2115
- });
2116
- });
2117
-
2118
- export function updateDatapointRequestBodyToJSON(
2119
- updateDatapointRequestBody: UpdateDatapointRequestBody,
2120
- ): string {
2121
- return JSON.stringify(
2122
- UpdateDatapointRequestBody$outboundSchema.parse(updateDatapointRequestBody),
2123
- );
2124
- }
2125
-
2126
- /** @internal */
2127
- export type UpdateDatapointRequest$Outbound = {
2128
- dataset_id: string;
2129
- datapoint_id: string;
2130
- RequestBody?: UpdateDatapointRequestBody$Outbound | undefined;
2131
- };
2132
-
2133
- /** @internal */
2134
- export const UpdateDatapointRequest$outboundSchema: z.ZodType<
2135
- UpdateDatapointRequest$Outbound,
2136
- z.ZodTypeDef,
2137
- UpdateDatapointRequest
2138
- > = z.object({
2139
- datasetId: z.string(),
2140
- datapointId: z.string(),
2141
- requestBody: z.lazy(() => UpdateDatapointRequestBody$outboundSchema)
2142
- .optional(),
2143
- }).transform((v) => {
2144
- return remap$(v, {
2145
- datasetId: "dataset_id",
2146
- datapointId: "datapoint_id",
2147
- requestBody: "RequestBody",
2148
- });
2149
- });
2150
-
2151
- export function updateDatapointRequestToJSON(
2152
- updateDatapointRequest: UpdateDatapointRequest,
2153
- ): string {
2154
- return JSON.stringify(
2155
- UpdateDatapointRequest$outboundSchema.parse(updateDatapointRequest),
2156
- );
2157
- }
2158
-
2159
- /** @internal */
2160
- export const UpdateDatapointContentDatasetsResponse200ApplicationJson2$inboundSchema:
2161
- z.ZodType<
2162
- UpdateDatapointContentDatasetsResponse200ApplicationJson2,
2163
- z.ZodTypeDef,
2164
- unknown
2165
- > = components.TextContentPartSchema$inboundSchema;
2166
-
2167
- export function updateDatapointContentDatasetsResponse200ApplicationJSON2FromJSON(
2168
- jsonString: string,
2169
- ): SafeParseResult<
2170
- UpdateDatapointContentDatasetsResponse200ApplicationJson2,
2171
- SDKValidationError
2172
- > {
2173
- return safeParse(
2174
- jsonString,
2175
- (x) =>
2176
- UpdateDatapointContentDatasetsResponse200ApplicationJson2$inboundSchema
2177
- .parse(JSON.parse(x)),
2178
- `Failed to parse 'UpdateDatapointContentDatasetsResponse200ApplicationJson2' from JSON`,
2179
- );
2180
- }
2181
-
2182
- /** @internal */
2183
- export const UpdateDatapointMessagesDatasetsResponse200ApplicationJSONResponseBody5Content$inboundSchema:
2184
- z.ZodType<
2185
- UpdateDatapointMessagesDatasetsResponse200ApplicationJSONResponseBody5Content,
2186
- z.ZodTypeDef,
2187
- unknown
2188
- > = z.union([
2189
- z.string(),
2190
- z.array(components.TextContentPartSchema$inboundSchema),
2191
- ]);
2192
-
2193
- export function updateDatapointMessagesDatasetsResponse200ApplicationJSONResponseBody5ContentFromJSON(
2194
- jsonString: string,
2195
- ): SafeParseResult<
2196
- UpdateDatapointMessagesDatasetsResponse200ApplicationJSONResponseBody5Content,
2197
- SDKValidationError
2198
- > {
2199
- return safeParse(
2200
- jsonString,
2201
- (x) =>
2202
- UpdateDatapointMessagesDatasetsResponse200ApplicationJSONResponseBody5Content$inboundSchema
2203
- .parse(JSON.parse(x)),
2204
- `Failed to parse 'UpdateDatapointMessagesDatasetsResponse200ApplicationJSONResponseBody5Content' from JSON`,
2205
- );
2206
- }
2207
-
2208
- /** @internal */
2209
- export const UpdateDatapointMessagesDatasetsResponse200Type$inboundSchema:
2210
- z.ZodNativeEnum<typeof UpdateDatapointMessagesDatasetsResponse200Type> = z
2211
- .nativeEnum(UpdateDatapointMessagesDatasetsResponse200Type);
2212
-
2213
- /** @internal */
2214
- export const UpdateDatapointMessagesDatasetsTtl$inboundSchema: z.ZodNativeEnum<
2215
- typeof UpdateDatapointMessagesDatasetsTtl
2216
- > = z.nativeEnum(UpdateDatapointMessagesDatasetsTtl);
2217
-
2218
- /** @internal */
2219
- export const UpdateDatapointMessagesDatasetsCacheControl$inboundSchema:
2220
- z.ZodType<
2221
- UpdateDatapointMessagesDatasetsCacheControl,
2222
- z.ZodTypeDef,
2223
- unknown
2224
- > = z.object({
2225
- type: UpdateDatapointMessagesDatasetsResponse200Type$inboundSchema,
2226
- ttl: UpdateDatapointMessagesDatasetsTtl$inboundSchema.default("5m"),
2227
- });
2228
-
2229
- export function updateDatapointMessagesDatasetsCacheControlFromJSON(
2230
- jsonString: string,
2231
- ): SafeParseResult<
2232
- UpdateDatapointMessagesDatasetsCacheControl,
2233
- SDKValidationError
2234
- > {
2235
- return safeParse(
2236
- jsonString,
2237
- (x) =>
2238
- UpdateDatapointMessagesDatasetsCacheControl$inboundSchema.parse(
2239
- JSON.parse(x),
2240
- ),
2241
- `Failed to parse 'UpdateDatapointMessagesDatasetsCacheControl' from JSON`,
2242
- );
2243
- }
2244
-
2245
- /** @internal */
2246
- export const UpdateDatapointMessagesDatasetsToolMessage$inboundSchema:
2247
- z.ZodType<UpdateDatapointMessagesDatasetsToolMessage, z.ZodTypeDef, unknown> =
2248
- z.object({
2249
- role: z.literal("tool"),
2250
- content: z.union([
2251
- z.string(),
2252
- z.array(components.TextContentPartSchema$inboundSchema),
2253
- ]),
2254
- tool_call_id: z.nullable(z.string()),
2255
- cache_control: z.lazy(() =>
2256
- UpdateDatapointMessagesDatasetsCacheControl$inboundSchema
2257
- ).optional(),
2258
- }).transform((v) => {
2259
- return remap$(v, {
2260
- "tool_call_id": "toolCallId",
2261
- "cache_control": "cacheControl",
2262
- });
2263
- });
2264
-
2265
- export function updateDatapointMessagesDatasetsToolMessageFromJSON(
2266
- jsonString: string,
2267
- ): SafeParseResult<
2268
- UpdateDatapointMessagesDatasetsToolMessage,
2269
- SDKValidationError
2270
- > {
2271
- return safeParse(
2272
- jsonString,
2273
- (x) =>
2274
- UpdateDatapointMessagesDatasetsToolMessage$inboundSchema.parse(
2275
- JSON.parse(x),
2276
- ),
2277
- `Failed to parse 'UpdateDatapointMessagesDatasetsToolMessage' from JSON`,
2278
- );
2279
- }
2280
-
2281
- /** @internal */
2282
- export const UpdateDatapointContentDatasetsResponse2002$inboundSchema:
2283
- z.ZodType<UpdateDatapointContentDatasetsResponse2002, z.ZodTypeDef, unknown> =
2284
- z.union([
2285
- components.TextContentPartSchema$inboundSchema.and(
2286
- z.object({ type: z.literal("text") }),
2287
- ),
2288
- components.RefusalPartSchema$inboundSchema,
2289
- components.ReasoningPartSchema$inboundSchema,
2290
- components.RedactedReasoningPartSchema$inboundSchema,
2291
- ]);
2292
-
2293
- export function updateDatapointContentDatasetsResponse2002FromJSON(
2294
- jsonString: string,
2295
- ): SafeParseResult<
2296
- UpdateDatapointContentDatasetsResponse2002,
2297
- SDKValidationError
2298
- > {
2299
- return safeParse(
2300
- jsonString,
2301
- (x) =>
2302
- UpdateDatapointContentDatasetsResponse2002$inboundSchema.parse(
2303
- JSON.parse(x),
2304
- ),
2305
- `Failed to parse 'UpdateDatapointContentDatasetsResponse2002' from JSON`,
2306
- );
2307
- }
2308
-
2309
- /** @internal */
2310
- export const UpdateDatapointMessagesDatasetsResponse200ApplicationJSONResponseBodyContent$inboundSchema:
2311
- z.ZodType<
2312
- UpdateDatapointMessagesDatasetsResponse200ApplicationJSONResponseBodyContent,
2313
- z.ZodTypeDef,
2314
- unknown
2315
- > = z.union([
2316
- z.string(),
2317
- z.array(
2318
- z.union([
2319
- components.TextContentPartSchema$inboundSchema.and(
2320
- z.object({ type: z.literal("text") }),
2321
- ),
2322
- components.RefusalPartSchema$inboundSchema,
2323
- components.ReasoningPartSchema$inboundSchema,
2324
- components.RedactedReasoningPartSchema$inboundSchema,
2325
- ]),
2326
- ),
2327
- ]);
2328
-
2329
- export function updateDatapointMessagesDatasetsResponse200ApplicationJSONResponseBodyContentFromJSON(
2330
- jsonString: string,
2331
- ): SafeParseResult<
2332
- UpdateDatapointMessagesDatasetsResponse200ApplicationJSONResponseBodyContent,
2333
- SDKValidationError
2334
- > {
2335
- return safeParse(
2336
- jsonString,
2337
- (x) =>
2338
- UpdateDatapointMessagesDatasetsResponse200ApplicationJSONResponseBodyContent$inboundSchema
2339
- .parse(JSON.parse(x)),
2340
- `Failed to parse 'UpdateDatapointMessagesDatasetsResponse200ApplicationJSONResponseBodyContent' from JSON`,
2341
- );
2342
- }
2343
-
2344
- /** @internal */
2345
- export const UpdateDatapointMessagesDatasetsAudio$inboundSchema: z.ZodType<
2346
- UpdateDatapointMessagesDatasetsAudio,
2347
- z.ZodTypeDef,
2348
- unknown
2349
- > = z.object({
2350
- id: z.string(),
2351
- });
2352
-
2353
- export function updateDatapointMessagesDatasetsAudioFromJSON(
2354
- jsonString: string,
2355
- ): SafeParseResult<UpdateDatapointMessagesDatasetsAudio, SDKValidationError> {
2356
- return safeParse(
2357
- jsonString,
2358
- (x) =>
2359
- UpdateDatapointMessagesDatasetsAudio$inboundSchema.parse(JSON.parse(x)),
2360
- `Failed to parse 'UpdateDatapointMessagesDatasetsAudio' from JSON`,
2361
- );
2362
- }
2363
-
2364
- /** @internal */
2365
- export const UpdateDatapointMessagesDatasetsResponseType$inboundSchema:
2366
- z.ZodNativeEnum<typeof UpdateDatapointMessagesDatasetsResponseType> = z
2367
- .nativeEnum(UpdateDatapointMessagesDatasetsResponseType);
2368
-
2369
- /** @internal */
2370
- export const UpdateDatapointMessagesDatasetsFunction$inboundSchema: z.ZodType<
2371
- UpdateDatapointMessagesDatasetsFunction,
2372
- z.ZodTypeDef,
2373
- unknown
2374
- > = z.object({
2375
- name: z.string().optional(),
2376
- arguments: z.string().optional(),
2377
- });
2378
-
2379
- export function updateDatapointMessagesDatasetsFunctionFromJSON(
2380
- jsonString: string,
2381
- ): SafeParseResult<
2382
- UpdateDatapointMessagesDatasetsFunction,
2383
- SDKValidationError
2384
- > {
2385
- return safeParse(
2386
- jsonString,
2387
- (x) =>
2388
- UpdateDatapointMessagesDatasetsFunction$inboundSchema.parse(
2389
- JSON.parse(x),
2390
- ),
2391
- `Failed to parse 'UpdateDatapointMessagesDatasetsFunction' from JSON`,
2392
- );
2393
- }
2394
-
2395
- /** @internal */
2396
- export const UpdateDatapointMessagesDatasetsGoogle$inboundSchema: z.ZodType<
2397
- UpdateDatapointMessagesDatasetsGoogle,
2398
- z.ZodTypeDef,
2399
- unknown
2400
- > = z.object({
2401
- thought_signature: z.string().optional(),
2402
- }).transform((v) => {
2403
- return remap$(v, {
2404
- "thought_signature": "thoughtSignature",
2405
- });
2406
- });
2407
-
2408
- export function updateDatapointMessagesDatasetsGoogleFromJSON(
2409
- jsonString: string,
2410
- ): SafeParseResult<UpdateDatapointMessagesDatasetsGoogle, SDKValidationError> {
2411
- return safeParse(
2412
- jsonString,
2413
- (x) =>
2414
- UpdateDatapointMessagesDatasetsGoogle$inboundSchema.parse(JSON.parse(x)),
2415
- `Failed to parse 'UpdateDatapointMessagesDatasetsGoogle' from JSON`,
2416
- );
2417
- }
2418
-
2419
- /** @internal */
2420
- export const UpdateDatapointMessagesDatasetsExtraContent$inboundSchema:
2421
- z.ZodType<
2422
- UpdateDatapointMessagesDatasetsExtraContent,
2423
- z.ZodTypeDef,
2424
- unknown
2425
- > = z.object({
2426
- google: z.lazy(() => UpdateDatapointMessagesDatasetsGoogle$inboundSchema)
2427
- .optional(),
2428
- });
2429
-
2430
- export function updateDatapointMessagesDatasetsExtraContentFromJSON(
2431
- jsonString: string,
2432
- ): SafeParseResult<
2433
- UpdateDatapointMessagesDatasetsExtraContent,
2434
- SDKValidationError
2435
- > {
2436
- return safeParse(
2437
- jsonString,
2438
- (x) =>
2439
- UpdateDatapointMessagesDatasetsExtraContent$inboundSchema.parse(
2440
- JSON.parse(x),
2441
- ),
2442
- `Failed to parse 'UpdateDatapointMessagesDatasetsExtraContent' from JSON`,
2443
- );
2444
- }
2445
-
2446
- /** @internal */
2447
- export const UpdateDatapointMessagesDatasetsToolCalls$inboundSchema: z.ZodType<
2448
- UpdateDatapointMessagesDatasetsToolCalls,
2449
- z.ZodTypeDef,
2450
- unknown
2451
- > = z.object({
2452
- id: z.string(),
2453
- type: UpdateDatapointMessagesDatasetsResponseType$inboundSchema,
2454
- function: z.lazy(() => UpdateDatapointMessagesDatasetsFunction$inboundSchema),
2455
- thought_signature: z.string().optional(),
2456
- extra_content: z.lazy(() =>
2457
- UpdateDatapointMessagesDatasetsExtraContent$inboundSchema
2458
- ).optional(),
2459
- }).transform((v) => {
2460
- return remap$(v, {
2461
- "thought_signature": "thoughtSignature",
2462
- "extra_content": "extraContent",
2463
- });
2464
- });
2465
-
2466
- export function updateDatapointMessagesDatasetsToolCallsFromJSON(
2467
- jsonString: string,
2468
- ): SafeParseResult<
2469
- UpdateDatapointMessagesDatasetsToolCalls,
2470
- SDKValidationError
2471
- > {
2472
- return safeParse(
2473
- jsonString,
2474
- (x) =>
2475
- UpdateDatapointMessagesDatasetsToolCalls$inboundSchema.parse(
2476
- JSON.parse(x),
2477
- ),
2478
- `Failed to parse 'UpdateDatapointMessagesDatasetsToolCalls' from JSON`,
2479
- );
2480
- }
2481
-
2482
- /** @internal */
2483
- export const UpdateDatapointMessagesDatasetsAssistantMessage$inboundSchema:
2484
- z.ZodType<
2485
- UpdateDatapointMessagesDatasetsAssistantMessage,
2486
- z.ZodTypeDef,
2487
- unknown
2488
- > = z.object({
2489
- reasoning_content: z.string().optional(),
2490
- content: z.nullable(
2491
- z.union([
2492
- z.string(),
2493
- z.array(
2494
- z.union([
2495
- components.TextContentPartSchema$inboundSchema.and(
2496
- z.object({ type: z.literal("text") }),
2497
- ),
2498
- components.RefusalPartSchema$inboundSchema,
2499
- components.ReasoningPartSchema$inboundSchema,
2500
- components.RedactedReasoningPartSchema$inboundSchema,
2501
- ]),
2502
- ),
2503
- ]),
2504
- ).optional(),
2505
- refusal: z.nullable(z.string()).optional(),
2506
- role: z.literal("assistant"),
2507
- name: z.string().optional(),
2508
- audio: z.nullable(
2509
- z.lazy(() => UpdateDatapointMessagesDatasetsAudio$inboundSchema),
2510
- ).optional(),
2511
- tool_calls: z.array(
2512
- z.lazy(() => UpdateDatapointMessagesDatasetsToolCalls$inboundSchema),
2513
- ).optional(),
2514
- }).transform((v) => {
2515
- return remap$(v, {
2516
- "reasoning_content": "reasoningContent",
2517
- "tool_calls": "toolCalls",
2518
- });
2519
- });
2520
-
2521
- export function updateDatapointMessagesDatasetsAssistantMessageFromJSON(
2522
- jsonString: string,
2523
- ): SafeParseResult<
2524
- UpdateDatapointMessagesDatasetsAssistantMessage,
2525
- SDKValidationError
2526
- > {
2527
- return safeParse(
2528
- jsonString,
2529
- (x) =>
2530
- UpdateDatapointMessagesDatasetsAssistantMessage$inboundSchema.parse(
2531
- JSON.parse(x),
2532
- ),
2533
- `Failed to parse 'UpdateDatapointMessagesDatasetsAssistantMessage' from JSON`,
2534
- );
2535
- }
2536
-
2537
- /** @internal */
2538
- export const UpdateDatapoint2DatasetsResponse200Type$inboundSchema:
2539
- z.ZodNativeEnum<typeof UpdateDatapoint2DatasetsResponse200Type> = z
2540
- .nativeEnum(UpdateDatapoint2DatasetsResponse200Type);
2541
-
2542
- /** @internal */
2543
- export const UpdateDatapoint2DatasetsTtl$inboundSchema: z.ZodNativeEnum<
2544
- typeof UpdateDatapoint2DatasetsTtl
2545
- > = z.nativeEnum(UpdateDatapoint2DatasetsTtl);
2546
-
2547
- /** @internal */
2548
- export const UpdateDatapoint2DatasetsCacheControl$inboundSchema: z.ZodType<
2549
- UpdateDatapoint2DatasetsCacheControl,
2550
- z.ZodTypeDef,
2551
- unknown
2552
- > = z.object({
2553
- type: UpdateDatapoint2DatasetsResponse200Type$inboundSchema,
2554
- ttl: UpdateDatapoint2DatasetsTtl$inboundSchema.default("5m"),
2555
- });
2556
-
2557
- export function updateDatapoint2DatasetsCacheControlFromJSON(
2558
- jsonString: string,
2559
- ): SafeParseResult<UpdateDatapoint2DatasetsCacheControl, SDKValidationError> {
2560
- return safeParse(
2561
- jsonString,
2562
- (x) =>
2563
- UpdateDatapoint2DatasetsCacheControl$inboundSchema.parse(JSON.parse(x)),
2564
- `Failed to parse 'UpdateDatapoint2DatasetsCacheControl' from JSON`,
2565
- );
2566
- }
2567
-
2568
- /** @internal */
2569
- export const UpdateDatapoint2Datasets4$inboundSchema: z.ZodType<
2570
- UpdateDatapoint2Datasets4,
2571
- z.ZodTypeDef,
2572
- unknown
2573
- > = z.object({
2574
- type: z.literal("file"),
2575
- cache_control: z.lazy(() =>
2576
- UpdateDatapoint2DatasetsCacheControl$inboundSchema
2577
- ).optional(),
2578
- file: components.FileContentPartSchema$inboundSchema,
2579
- }).transform((v) => {
2580
- return remap$(v, {
2581
- "cache_control": "cacheControl",
2582
- });
2583
- });
2584
-
2585
- export function updateDatapoint2Datasets4FromJSON(
2586
- jsonString: string,
2587
- ): SafeParseResult<UpdateDatapoint2Datasets4, SDKValidationError> {
2588
- return safeParse(
2589
- jsonString,
2590
- (x) => UpdateDatapoint2Datasets4$inboundSchema.parse(JSON.parse(x)),
2591
- `Failed to parse 'UpdateDatapoint2Datasets4' from JSON`,
2592
- );
2593
- }
2594
-
2595
- /** @internal */
2596
- export const UpdateDatapointContentDatasetsResponse2$inboundSchema: z.ZodType<
2597
- UpdateDatapointContentDatasetsResponse2,
2598
- z.ZodTypeDef,
2599
- unknown
2600
- > = z.union([
2601
- components.TextContentPartSchema$inboundSchema.and(
2602
- z.object({ type: z.literal("text") }),
2603
- ),
2604
- components.ImageContentPartSchema$inboundSchema,
2605
- components.AudioContentPartSchema$inboundSchema,
2606
- z.lazy(() => UpdateDatapoint2Datasets4$inboundSchema),
2607
- ]);
2608
-
2609
- export function updateDatapointContentDatasetsResponse2FromJSON(
2610
- jsonString: string,
2611
- ): SafeParseResult<
2612
- UpdateDatapointContentDatasetsResponse2,
2613
- SDKValidationError
2614
- > {
2615
- return safeParse(
2616
- jsonString,
2617
- (x) =>
2618
- UpdateDatapointContentDatasetsResponse2$inboundSchema.parse(
2619
- JSON.parse(x),
2620
- ),
2621
- `Failed to parse 'UpdateDatapointContentDatasetsResponse2' from JSON`,
2622
- );
2623
- }
2624
-
2625
- /** @internal */
2626
- export const UpdateDatapointMessagesDatasetsResponse200ApplicationJSONContent$inboundSchema:
2627
- z.ZodType<
2628
- UpdateDatapointMessagesDatasetsResponse200ApplicationJSONContent,
2629
- z.ZodTypeDef,
2630
- unknown
2631
- > = z.union([
2632
- z.string(),
2633
- z.array(
2634
- z.union([
2635
- components.TextContentPartSchema$inboundSchema.and(
2636
- z.object({ type: z.literal("text") }),
2637
- ),
2638
- components.ImageContentPartSchema$inboundSchema,
2639
- components.AudioContentPartSchema$inboundSchema,
2640
- z.lazy(() => UpdateDatapoint2Datasets4$inboundSchema),
2641
- ]),
2642
- ),
2643
- ]);
2644
-
2645
- export function updateDatapointMessagesDatasetsResponse200ApplicationJSONContentFromJSON(
2646
- jsonString: string,
2647
- ): SafeParseResult<
2648
- UpdateDatapointMessagesDatasetsResponse200ApplicationJSONContent,
2649
- SDKValidationError
2650
- > {
2651
- return safeParse(
2652
- jsonString,
2653
- (x) =>
2654
- UpdateDatapointMessagesDatasetsResponse200ApplicationJSONContent$inboundSchema
2655
- .parse(JSON.parse(x)),
2656
- `Failed to parse 'UpdateDatapointMessagesDatasetsResponse200ApplicationJSONContent' from JSON`,
2657
- );
2658
- }
2659
-
2660
- /** @internal */
2661
- export const UpdateDatapointMessagesDatasetsUserMessage$inboundSchema:
2662
- z.ZodType<UpdateDatapointMessagesDatasetsUserMessage, z.ZodTypeDef, unknown> =
2663
- z.object({
2664
- role: z.literal("user"),
2665
- name: z.string().optional(),
2666
- content: z.union([
2667
- z.string(),
2668
- z.array(
2669
- z.union([
2670
- components.TextContentPartSchema$inboundSchema.and(
2671
- z.object({ type: z.literal("text") }),
2672
- ),
2673
- components.ImageContentPartSchema$inboundSchema,
2674
- components.AudioContentPartSchema$inboundSchema,
2675
- z.lazy(() => UpdateDatapoint2Datasets4$inboundSchema),
2676
- ]),
2677
- ),
2678
- ]),
2679
- });
2680
-
2681
- export function updateDatapointMessagesDatasetsUserMessageFromJSON(
2682
- jsonString: string,
2683
- ): SafeParseResult<
2684
- UpdateDatapointMessagesDatasetsUserMessage,
2685
- SDKValidationError
2686
- > {
2687
- return safeParse(
2688
- jsonString,
2689
- (x) =>
2690
- UpdateDatapointMessagesDatasetsUserMessage$inboundSchema.parse(
2691
- JSON.parse(x),
2692
- ),
2693
- `Failed to parse 'UpdateDatapointMessagesDatasetsUserMessage' from JSON`,
2694
- );
2695
- }
2696
-
2697
- /** @internal */
2698
- export const UpdateDatapointMessagesDatasetsResponse200Content$inboundSchema:
2699
- z.ZodType<
2700
- UpdateDatapointMessagesDatasetsResponse200Content,
2701
- z.ZodTypeDef,
2702
- unknown
2703
- > = z.union([
2704
- z.string(),
2705
- z.array(components.TextContentPartSchema$inboundSchema),
2706
- ]);
2707
-
2708
- export function updateDatapointMessagesDatasetsResponse200ContentFromJSON(
2709
- jsonString: string,
2710
- ): SafeParseResult<
2711
- UpdateDatapointMessagesDatasetsResponse200Content,
2712
- SDKValidationError
2713
- > {
2714
- return safeParse(
2715
- jsonString,
2716
- (x) =>
2717
- UpdateDatapointMessagesDatasetsResponse200Content$inboundSchema.parse(
2718
- JSON.parse(x),
2719
- ),
2720
- `Failed to parse 'UpdateDatapointMessagesDatasetsResponse200Content' from JSON`,
2721
- );
2722
- }
2723
-
2724
- /** @internal */
2725
- export const UpdateDatapointMessagesDatasetsDeveloperMessage$inboundSchema:
2726
- z.ZodType<
2727
- UpdateDatapointMessagesDatasetsDeveloperMessage,
2728
- z.ZodTypeDef,
2729
- unknown
2730
- > = z.object({
2731
- role: z.literal("developer"),
2732
- content: z.union([
2733
- z.string(),
2734
- z.array(components.TextContentPartSchema$inboundSchema),
2735
- ]),
2736
- name: z.string().optional(),
2737
- });
2738
-
2739
- export function updateDatapointMessagesDatasetsDeveloperMessageFromJSON(
2740
- jsonString: string,
2741
- ): SafeParseResult<
2742
- UpdateDatapointMessagesDatasetsDeveloperMessage,
2743
- SDKValidationError
2744
- > {
2745
- return safeParse(
2746
- jsonString,
2747
- (x) =>
2748
- UpdateDatapointMessagesDatasetsDeveloperMessage$inboundSchema.parse(
2749
- JSON.parse(x),
2750
- ),
2751
- `Failed to parse 'UpdateDatapointMessagesDatasetsDeveloperMessage' from JSON`,
2752
- );
2753
- }
2754
-
2755
- /** @internal */
2756
- export const UpdateDatapointMessagesDatasetsResponseContent$inboundSchema:
2757
- z.ZodType<
2758
- UpdateDatapointMessagesDatasetsResponseContent,
2759
- z.ZodTypeDef,
2760
- unknown
2761
- > = z.union([
2762
- z.string(),
2763
- z.array(components.TextContentPartSchema$inboundSchema),
2764
- ]);
2765
-
2766
- export function updateDatapointMessagesDatasetsResponseContentFromJSON(
2767
- jsonString: string,
2768
- ): SafeParseResult<
2769
- UpdateDatapointMessagesDatasetsResponseContent,
2770
- SDKValidationError
2771
- > {
2772
- return safeParse(
2773
- jsonString,
2774
- (x) =>
2775
- UpdateDatapointMessagesDatasetsResponseContent$inboundSchema.parse(
2776
- JSON.parse(x),
2777
- ),
2778
- `Failed to parse 'UpdateDatapointMessagesDatasetsResponseContent' from JSON`,
2779
- );
2780
- }
2781
-
2782
- /** @internal */
2783
- export const UpdateDatapointMessagesDatasetsSystemMessage$inboundSchema:
2784
- z.ZodType<
2785
- UpdateDatapointMessagesDatasetsSystemMessage,
2786
- z.ZodTypeDef,
2787
- unknown
2788
- > = z.object({
2789
- role: z.literal("system"),
2790
- content: z.union([
2791
- z.string(),
2792
- z.array(components.TextContentPartSchema$inboundSchema),
2793
- ]),
2794
- name: z.string().optional(),
2795
- });
2796
-
2797
- export function updateDatapointMessagesDatasetsSystemMessageFromJSON(
2798
- jsonString: string,
2799
- ): SafeParseResult<
2800
- UpdateDatapointMessagesDatasetsSystemMessage,
2801
- SDKValidationError
2802
- > {
2803
- return safeParse(
2804
- jsonString,
2805
- (x) =>
2806
- UpdateDatapointMessagesDatasetsSystemMessage$inboundSchema.parse(
2807
- JSON.parse(x),
2808
- ),
2809
- `Failed to parse 'UpdateDatapointMessagesDatasetsSystemMessage' from JSON`,
2810
- );
2811
- }
2812
-
2813
- /** @internal */
2814
- export const UpdateDatapointDatasetsMessages$inboundSchema: z.ZodType<
2815
- UpdateDatapointDatasetsMessages,
2816
- z.ZodTypeDef,
2817
- unknown
2818
- > = z.union([
2819
- z.lazy(() => UpdateDatapointMessagesDatasetsSystemMessage$inboundSchema),
2820
- z.lazy(() => UpdateDatapointMessagesDatasetsDeveloperMessage$inboundSchema),
2821
- z.lazy(() => UpdateDatapointMessagesDatasetsUserMessage$inboundSchema),
2822
- z.lazy(() => UpdateDatapointMessagesDatasetsAssistantMessage$inboundSchema),
2823
- z.lazy(() => UpdateDatapointMessagesDatasetsToolMessage$inboundSchema),
2824
- ]);
2825
-
2826
- export function updateDatapointDatasetsMessagesFromJSON(
2827
- jsonString: string,
2828
- ): SafeParseResult<UpdateDatapointDatasetsMessages, SDKValidationError> {
2829
- return safeParse(
2830
- jsonString,
2831
- (x) => UpdateDatapointDatasetsMessages$inboundSchema.parse(JSON.parse(x)),
2832
- `Failed to parse 'UpdateDatapointDatasetsMessages' from JSON`,
2833
- );
2834
- }
2835
-
2836
- /** @internal */
2837
- export const UpdateDatapointEvaluationsDatasetsResponse200EvaluationType$inboundSchema:
2838
- z.ZodNativeEnum<
2839
- typeof UpdateDatapointEvaluationsDatasetsResponse200EvaluationType
2840
- > = z.nativeEnum(UpdateDatapointEvaluationsDatasetsResponse200EvaluationType);
2841
-
2842
- /** @internal */
2843
- export const UpdateDatapointEvaluationsDatasetsResponse200Source$inboundSchema:
2844
- z.ZodNativeEnum<typeof UpdateDatapointEvaluationsDatasetsResponse200Source> =
2845
- z.nativeEnum(UpdateDatapointEvaluationsDatasetsResponse200Source);
2846
-
2847
- /** @internal */
2848
- export const UpdateDatapointEvaluationsDatasetsResponse200Kind$inboundSchema:
2849
- z.ZodNativeEnum<typeof UpdateDatapointEvaluationsDatasetsResponse200Kind> = z
2850
- .nativeEnum(UpdateDatapointEvaluationsDatasetsResponse200Kind);
2851
-
2852
- /** @internal */
2853
- export const UpdateDatapointEvaluationsDatasetsResponse200Annotator$inboundSchema:
2854
- z.ZodType<
2855
- UpdateDatapointEvaluationsDatasetsResponse200Annotator,
2856
- z.ZodTypeDef,
2857
- unknown
2858
- > = z.object({
2859
- kind: UpdateDatapointEvaluationsDatasetsResponse200Kind$inboundSchema,
2860
- actor_id: z.string(),
2861
- }).transform((v) => {
2862
- return remap$(v, {
2863
- "actor_id": "actorId",
2864
- });
2865
- });
2866
-
2867
- export function updateDatapointEvaluationsDatasetsResponse200AnnotatorFromJSON(
2868
- jsonString: string,
2869
- ): SafeParseResult<
2870
- UpdateDatapointEvaluationsDatasetsResponse200Annotator,
2871
- SDKValidationError
2872
- > {
2873
- return safeParse(
2874
- jsonString,
2875
- (x) =>
2876
- UpdateDatapointEvaluationsDatasetsResponse200Annotator$inboundSchema
2877
- .parse(JSON.parse(x)),
2878
- `Failed to parse 'UpdateDatapointEvaluationsDatasetsResponse200Annotator' from JSON`,
2879
- );
2880
- }
2881
-
2882
- /** @internal */
2883
- export const UpdateDatapointEvaluationsDatasetsResponse200OutputSchema$inboundSchema:
2884
- z.ZodNativeEnum<
2885
- typeof UpdateDatapointEvaluationsDatasetsResponse200OutputSchema
2886
- > = z.nativeEnum(UpdateDatapointEvaluationsDatasetsResponse200OutputSchema);
2887
-
2888
- /** @internal */
2889
- export const UpdateDatapointEvaluations4$inboundSchema: z.ZodType<
2890
- UpdateDatapointEvaluations4,
2891
- z.ZodTypeDef,
2892
- unknown
2893
- > = z.object({
2894
- id: z.string(),
2895
- evaluation_type:
2896
- UpdateDatapointEvaluationsDatasetsResponse200EvaluationType$inboundSchema,
2897
- human_review_id: z.string().optional(),
2898
- source: UpdateDatapointEvaluationsDatasetsResponse200Source$inboundSchema
2899
- .default("orq"),
2900
- annotator: z.lazy(() =>
2901
- UpdateDatapointEvaluationsDatasetsResponse200Annotator$inboundSchema
2902
- ).optional(),
2903
- output_schema:
2904
- UpdateDatapointEvaluationsDatasetsResponse200OutputSchema$inboundSchema
2905
- .optional(),
2906
- parent_annotation_id: z.string().optional(),
2907
- explanation: z.string().optional(),
2908
- reviewed_by_id: z.string(),
2909
- reviewed_at: z.string().datetime({ offset: true }).default(
2910
- "2026-09-21T07:21:40.026Z",
2911
- ).transform(v => new Date(v)),
2912
- type: z.literal("string_array"),
2913
- values: z.array(z.string()),
2914
- }).transform((v) => {
2915
- return remap$(v, {
2916
- "evaluation_type": "evaluationType",
2917
- "human_review_id": "humanReviewId",
2918
- "output_schema": "outputSchema",
2919
- "parent_annotation_id": "parentAnnotationId",
2920
- "reviewed_by_id": "reviewedById",
2921
- "reviewed_at": "reviewedAt",
2922
- });
2923
- });
2924
-
2925
- export function updateDatapointEvaluations4FromJSON(
2926
- jsonString: string,
2927
- ): SafeParseResult<UpdateDatapointEvaluations4, SDKValidationError> {
2928
- return safeParse(
2929
- jsonString,
2930
- (x) => UpdateDatapointEvaluations4$inboundSchema.parse(JSON.parse(x)),
2931
- `Failed to parse 'UpdateDatapointEvaluations4' from JSON`,
2932
- );
2933
- }
2934
-
2935
- /** @internal */
2936
- export const UpdateDatapointEvaluationsDatasetsResponseEvaluationType$inboundSchema:
2937
- z.ZodNativeEnum<
2938
- typeof UpdateDatapointEvaluationsDatasetsResponseEvaluationType
2939
- > = z.nativeEnum(UpdateDatapointEvaluationsDatasetsResponseEvaluationType);
2940
-
2941
- /** @internal */
2942
- export const UpdateDatapointEvaluationsDatasetsResponseSource$inboundSchema:
2943
- z.ZodNativeEnum<typeof UpdateDatapointEvaluationsDatasetsResponseSource> = z
2944
- .nativeEnum(UpdateDatapointEvaluationsDatasetsResponseSource);
2945
-
2946
- /** @internal */
2947
- export const UpdateDatapointEvaluationsDatasetsResponseKind$inboundSchema:
2948
- z.ZodNativeEnum<typeof UpdateDatapointEvaluationsDatasetsResponseKind> = z
2949
- .nativeEnum(UpdateDatapointEvaluationsDatasetsResponseKind);
2950
-
2951
- /** @internal */
2952
- export const UpdateDatapointEvaluationsDatasetsResponseAnnotator$inboundSchema:
2953
- z.ZodType<
2954
- UpdateDatapointEvaluationsDatasetsResponseAnnotator,
2955
- z.ZodTypeDef,
2956
- unknown
2957
- > = z.object({
2958
- kind: UpdateDatapointEvaluationsDatasetsResponseKind$inboundSchema,
2959
- actor_id: z.string(),
2960
- }).transform((v) => {
2961
- return remap$(v, {
2962
- "actor_id": "actorId",
2963
- });
2964
- });
2965
-
2966
- export function updateDatapointEvaluationsDatasetsResponseAnnotatorFromJSON(
2967
- jsonString: string,
2968
- ): SafeParseResult<
2969
- UpdateDatapointEvaluationsDatasetsResponseAnnotator,
2970
- SDKValidationError
2971
- > {
2972
- return safeParse(
2973
- jsonString,
2974
- (x) =>
2975
- UpdateDatapointEvaluationsDatasetsResponseAnnotator$inboundSchema.parse(
2976
- JSON.parse(x),
2977
- ),
2978
- `Failed to parse 'UpdateDatapointEvaluationsDatasetsResponseAnnotator' from JSON`,
2979
- );
2980
- }
2981
-
2982
- /** @internal */
2983
- export const UpdateDatapointEvaluationsDatasetsResponseOutputSchema$inboundSchema:
2984
- z.ZodNativeEnum<
2985
- typeof UpdateDatapointEvaluationsDatasetsResponseOutputSchema
2986
- > = z.nativeEnum(UpdateDatapointEvaluationsDatasetsResponseOutputSchema);
2987
-
2988
- /** @internal */
2989
- export const UpdateDatapointEvaluations3$inboundSchema: z.ZodType<
2990
- UpdateDatapointEvaluations3,
2991
- z.ZodTypeDef,
2992
- unknown
2993
- > = z.object({
2994
- id: z.string(),
2995
- evaluation_type:
2996
- UpdateDatapointEvaluationsDatasetsResponseEvaluationType$inboundSchema,
2997
- human_review_id: z.string().optional(),
2998
- source: UpdateDatapointEvaluationsDatasetsResponseSource$inboundSchema
2999
- .default("orq"),
3000
- annotator: z.lazy(() =>
3001
- UpdateDatapointEvaluationsDatasetsResponseAnnotator$inboundSchema
3002
- ).optional(),
3003
- output_schema:
3004
- UpdateDatapointEvaluationsDatasetsResponseOutputSchema$inboundSchema
3005
- .optional(),
3006
- parent_annotation_id: z.string().optional(),
3007
- explanation: z.string().optional(),
3008
- reviewed_by_id: z.string(),
3009
- reviewed_at: z.string().datetime({ offset: true }).default(
3010
- "2026-09-21T07:21:40.026Z",
3011
- ).transform(v => new Date(v)),
3012
- type: z.literal("boolean"),
3013
- value: z.boolean(),
3014
- }).transform((v) => {
3015
- return remap$(v, {
3016
- "evaluation_type": "evaluationType",
3017
- "human_review_id": "humanReviewId",
3018
- "output_schema": "outputSchema",
3019
- "parent_annotation_id": "parentAnnotationId",
3020
- "reviewed_by_id": "reviewedById",
3021
- "reviewed_at": "reviewedAt",
3022
- });
3023
- });
3024
-
3025
- export function updateDatapointEvaluations3FromJSON(
3026
- jsonString: string,
3027
- ): SafeParseResult<UpdateDatapointEvaluations3, SDKValidationError> {
3028
- return safeParse(
3029
- jsonString,
3030
- (x) => UpdateDatapointEvaluations3$inboundSchema.parse(JSON.parse(x)),
3031
- `Failed to parse 'UpdateDatapointEvaluations3' from JSON`,
3032
- );
3033
- }
3034
-
3035
- /** @internal */
3036
- export const UpdateDatapointEvaluationsDatasetsEvaluationType$inboundSchema:
3037
- z.ZodNativeEnum<typeof UpdateDatapointEvaluationsDatasetsEvaluationType> = z
3038
- .nativeEnum(UpdateDatapointEvaluationsDatasetsEvaluationType);
3039
-
3040
- /** @internal */
3041
- export const UpdateDatapointEvaluationsDatasetsSource$inboundSchema:
3042
- z.ZodNativeEnum<typeof UpdateDatapointEvaluationsDatasetsSource> = z
3043
- .nativeEnum(UpdateDatapointEvaluationsDatasetsSource);
3044
-
3045
- /** @internal */
3046
- export const UpdateDatapointEvaluationsDatasetsKind$inboundSchema:
3047
- z.ZodNativeEnum<typeof UpdateDatapointEvaluationsDatasetsKind> = z.nativeEnum(
3048
- UpdateDatapointEvaluationsDatasetsKind,
3049
- );
3050
-
3051
- /** @internal */
3052
- export const UpdateDatapointEvaluationsDatasetsAnnotator$inboundSchema:
3053
- z.ZodType<
3054
- UpdateDatapointEvaluationsDatasetsAnnotator,
3055
- z.ZodTypeDef,
3056
- unknown
3057
- > = z.object({
3058
- kind: UpdateDatapointEvaluationsDatasetsKind$inboundSchema,
3059
- actor_id: z.string(),
3060
- }).transform((v) => {
3061
- return remap$(v, {
3062
- "actor_id": "actorId",
3063
- });
3064
- });
3065
-
3066
- export function updateDatapointEvaluationsDatasetsAnnotatorFromJSON(
3067
- jsonString: string,
3068
- ): SafeParseResult<
3069
- UpdateDatapointEvaluationsDatasetsAnnotator,
3070
- SDKValidationError
3071
- > {
3072
- return safeParse(
3073
- jsonString,
3074
- (x) =>
3075
- UpdateDatapointEvaluationsDatasetsAnnotator$inboundSchema.parse(
3076
- JSON.parse(x),
3077
- ),
3078
- `Failed to parse 'UpdateDatapointEvaluationsDatasetsAnnotator' from JSON`,
3079
- );
3080
- }
3081
-
3082
- /** @internal */
3083
- export const UpdateDatapointEvaluationsDatasetsOutputSchema$inboundSchema:
3084
- z.ZodNativeEnum<typeof UpdateDatapointEvaluationsDatasetsOutputSchema> = z
3085
- .nativeEnum(UpdateDatapointEvaluationsDatasetsOutputSchema);
3086
-
3087
- /** @internal */
3088
- export const UpdateDatapointEvaluations2$inboundSchema: z.ZodType<
3089
- UpdateDatapointEvaluations2,
3090
- z.ZodTypeDef,
3091
- unknown
3092
- > = z.object({
3093
- id: z.string(),
3094
- evaluation_type:
3095
- UpdateDatapointEvaluationsDatasetsEvaluationType$inboundSchema,
3096
- human_review_id: z.string().optional(),
3097
- source: UpdateDatapointEvaluationsDatasetsSource$inboundSchema.default("orq"),
3098
- annotator: z.lazy(() =>
3099
- UpdateDatapointEvaluationsDatasetsAnnotator$inboundSchema
3100
- ).optional(),
3101
- output_schema: UpdateDatapointEvaluationsDatasetsOutputSchema$inboundSchema
3102
- .optional(),
3103
- parent_annotation_id: z.string().optional(),
3104
- explanation: z.string().optional(),
3105
- reviewed_by_id: z.string(),
3106
- reviewed_at: z.string().datetime({ offset: true }).default(
3107
- "2026-09-21T07:21:40.026Z",
3108
- ).transform(v => new Date(v)),
3109
- type: z.literal("number"),
3110
- value: z.number(),
3111
- }).transform((v) => {
3112
- return remap$(v, {
3113
- "evaluation_type": "evaluationType",
3114
- "human_review_id": "humanReviewId",
3115
- "output_schema": "outputSchema",
3116
- "parent_annotation_id": "parentAnnotationId",
3117
- "reviewed_by_id": "reviewedById",
3118
- "reviewed_at": "reviewedAt",
3119
- });
3120
- });
3121
-
3122
- export function updateDatapointEvaluations2FromJSON(
3123
- jsonString: string,
3124
- ): SafeParseResult<UpdateDatapointEvaluations2, SDKValidationError> {
3125
- return safeParse(
3126
- jsonString,
3127
- (x) => UpdateDatapointEvaluations2$inboundSchema.parse(JSON.parse(x)),
3128
- `Failed to parse 'UpdateDatapointEvaluations2' from JSON`,
3129
- );
3130
- }
3131
-
3132
- /** @internal */
3133
- export const UpdateDatapointEvaluationsEvaluationType$inboundSchema:
3134
- z.ZodNativeEnum<typeof UpdateDatapointEvaluationsEvaluationType> = z
3135
- .nativeEnum(UpdateDatapointEvaluationsEvaluationType);
3136
-
3137
- /** @internal */
3138
- export const UpdateDatapointEvaluationsSource$inboundSchema: z.ZodNativeEnum<
3139
- typeof UpdateDatapointEvaluationsSource
3140
- > = z.nativeEnum(UpdateDatapointEvaluationsSource);
3141
-
3142
- /** @internal */
3143
- export const UpdateDatapointEvaluationsKind$inboundSchema: z.ZodNativeEnum<
3144
- typeof UpdateDatapointEvaluationsKind
3145
- > = z.nativeEnum(UpdateDatapointEvaluationsKind);
3146
-
3147
- /** @internal */
3148
- export const UpdateDatapointEvaluationsAnnotator$inboundSchema: z.ZodType<
3149
- UpdateDatapointEvaluationsAnnotator,
3150
- z.ZodTypeDef,
3151
- unknown
3152
- > = z.object({
3153
- kind: UpdateDatapointEvaluationsKind$inboundSchema,
3154
- actor_id: z.string(),
3155
- }).transform((v) => {
3156
- return remap$(v, {
3157
- "actor_id": "actorId",
3158
- });
3159
- });
3160
-
3161
- export function updateDatapointEvaluationsAnnotatorFromJSON(
3162
- jsonString: string,
3163
- ): SafeParseResult<UpdateDatapointEvaluationsAnnotator, SDKValidationError> {
3164
- return safeParse(
3165
- jsonString,
3166
- (x) =>
3167
- UpdateDatapointEvaluationsAnnotator$inboundSchema.parse(JSON.parse(x)),
3168
- `Failed to parse 'UpdateDatapointEvaluationsAnnotator' from JSON`,
3169
- );
3170
- }
3171
-
3172
- /** @internal */
3173
- export const UpdateDatapointEvaluationsOutputSchema$inboundSchema:
3174
- z.ZodNativeEnum<typeof UpdateDatapointEvaluationsOutputSchema> = z.nativeEnum(
3175
- UpdateDatapointEvaluationsOutputSchema,
3176
- );
3177
-
3178
- /** @internal */
3179
- export const UpdateDatapointEvaluations1$inboundSchema: z.ZodType<
3180
- UpdateDatapointEvaluations1,
3181
- z.ZodTypeDef,
3182
- unknown
3183
- > = z.object({
3184
- id: z.string(),
3185
- evaluation_type: UpdateDatapointEvaluationsEvaluationType$inboundSchema,
3186
- human_review_id: z.string().optional(),
3187
- source: UpdateDatapointEvaluationsSource$inboundSchema.default("orq"),
3188
- annotator: z.lazy(() => UpdateDatapointEvaluationsAnnotator$inboundSchema)
3189
- .optional(),
3190
- output_schema: UpdateDatapointEvaluationsOutputSchema$inboundSchema
3191
- .optional(),
3192
- parent_annotation_id: z.string().optional(),
3193
- explanation: z.string().optional(),
3194
- reviewed_by_id: z.string(),
3195
- reviewed_at: z.string().datetime({ offset: true }).default(
3196
- "2026-09-21T07:21:40.026Z",
3197
- ).transform(v => new Date(v)),
3198
- type: z.literal("string"),
3199
- value: z.string(),
3200
- }).transform((v) => {
3201
- return remap$(v, {
3202
- "evaluation_type": "evaluationType",
3203
- "human_review_id": "humanReviewId",
3204
- "output_schema": "outputSchema",
3205
- "parent_annotation_id": "parentAnnotationId",
3206
- "reviewed_by_id": "reviewedById",
3207
- "reviewed_at": "reviewedAt",
3208
- });
3209
- });
3210
-
3211
- export function updateDatapointEvaluations1FromJSON(
3212
- jsonString: string,
3213
- ): SafeParseResult<UpdateDatapointEvaluations1, SDKValidationError> {
3214
- return safeParse(
3215
- jsonString,
3216
- (x) => UpdateDatapointEvaluations1$inboundSchema.parse(JSON.parse(x)),
3217
- `Failed to parse 'UpdateDatapointEvaluations1' from JSON`,
3218
- );
3219
- }
3220
-
3221
- /** @internal */
3222
- export const UpdateDatapointEvaluations$inboundSchema: z.ZodType<
3223
- UpdateDatapointEvaluations,
3224
- z.ZodTypeDef,
3225
- unknown
3226
- > = z.union([
3227
- z.lazy(() => UpdateDatapointEvaluations1$inboundSchema),
3228
- z.lazy(() => UpdateDatapointEvaluations2$inboundSchema),
3229
- z.lazy(() => UpdateDatapointEvaluations3$inboundSchema),
3230
- z.lazy(() => UpdateDatapointEvaluations4$inboundSchema),
3231
- ]);
3232
-
3233
- export function updateDatapointEvaluationsFromJSON(
3234
- jsonString: string,
3235
- ): SafeParseResult<UpdateDatapointEvaluations, SDKValidationError> {
3236
- return safeParse(
3237
- jsonString,
3238
- (x) => UpdateDatapointEvaluations$inboundSchema.parse(JSON.parse(x)),
3239
- `Failed to parse 'UpdateDatapointEvaluations' from JSON`,
3240
- );
3241
- }
3242
-
3243
- /** @internal */
3244
- export const UpdateDatapointResponseBody$inboundSchema: z.ZodType<
3245
- UpdateDatapointResponseBody,
3246
- z.ZodTypeDef,
3247
- unknown
3248
- > = z.object({
3249
- _id: z.string(),
3250
- workspace_id: z.string(),
3251
- inputs: z.record(z.any()).optional(),
3252
- messages: z.array(
3253
- z.union([
3254
- z.lazy(() => UpdateDatapointMessagesDatasetsSystemMessage$inboundSchema),
3255
- z.lazy(() =>
3256
- UpdateDatapointMessagesDatasetsDeveloperMessage$inboundSchema
3257
- ),
3258
- z.lazy(() => UpdateDatapointMessagesDatasetsUserMessage$inboundSchema),
3259
- z.lazy(() =>
3260
- UpdateDatapointMessagesDatasetsAssistantMessage$inboundSchema
3261
- ),
3262
- z.lazy(() => UpdateDatapointMessagesDatasetsToolMessage$inboundSchema),
3263
- ]),
3264
- ).optional(),
3265
- expected_output: z.string().optional(),
3266
- evaluations: z.array(
3267
- z.union([
3268
- z.lazy(() => UpdateDatapointEvaluations1$inboundSchema),
3269
- z.lazy(() => UpdateDatapointEvaluations2$inboundSchema),
3270
- z.lazy(() => UpdateDatapointEvaluations3$inboundSchema),
3271
- z.lazy(() => UpdateDatapointEvaluations4$inboundSchema),
3272
- ]),
3273
- ).optional(),
3274
- dataset_id: z.string(),
3275
- snapshot_version: z.string().optional(),
3276
- created_by_id: z.nullable(z.string()).optional(),
3277
- updated_by_id: z.nullable(z.string()).optional(),
3278
- created: z.string().datetime({ offset: true }).transform(v => new Date(v))
3279
- .optional(),
3280
- updated: z.string().datetime({ offset: true }).default(
3281
- "2026-09-21T07:21:34.711Z",
3282
- ).transform(v => new Date(v)),
3283
- }).transform((v) => {
3284
- return remap$(v, {
3285
- "_id": "id",
3286
- "workspace_id": "workspaceId",
3287
- "expected_output": "expectedOutput",
3288
- "dataset_id": "datasetId",
3289
- "snapshot_version": "snapshotVersion",
3290
- "created_by_id": "createdById",
3291
- "updated_by_id": "updatedById",
3292
- });
3293
- });
3294
-
3295
- export function updateDatapointResponseBodyFromJSON(
3296
- jsonString: string,
3297
- ): SafeParseResult<UpdateDatapointResponseBody, SDKValidationError> {
3298
- return safeParse(
3299
- jsonString,
3300
- (x) => UpdateDatapointResponseBody$inboundSchema.parse(JSON.parse(x)),
3301
- `Failed to parse 'UpdateDatapointResponseBody' from JSON`,
43
+ UpdateDatapointRequest$outboundSchema.parse(updateDatapointRequest),
3302
44
  );
3303
45
  }