@orq-ai/node 4.15.8 → 4.15.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (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,963 +4,18 @@
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
- import * as components from "../components/index.js";
11
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
12
7
 
13
8
  export type ListDatasetDatapointsRequest = {
14
- /**
15
- * The unique identifier of the dataset
16
- */
17
9
  datasetId: string;
18
- /**
19
- * A limit on the number of objects to be returned. Limit can range between 1 and 200, and the default is 10
20
- */
21
10
  limit?: number | undefined;
22
- /**
23
- * A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 20 objects, ending with `01JJ1HDHN79XAS7A01WB3HYSDB`, your subsequent call can include `after=01JJ1HDHN79XAS7A01WB3HYSDB` in order to fetch the next page of the list.
24
- */
25
11
  startingAfter?: string | undefined;
26
- /**
27
- * A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 20 objects, starting with `01JJ1HDHN79XAS7A01WB3HYSDB`, your subsequent call can include `before=01JJ1HDHN79XAS7A01WB3HYSDB` in order to fetch the previous page of the list.
28
- */
29
12
  endingBefore?: string | undefined;
30
13
  };
31
14
 
32
- export const ListDatasetDatapointsObject = {
33
- List: "list",
34
- } as const;
35
- export type ListDatasetDatapointsObject = ClosedEnum<
36
- typeof ListDatasetDatapointsObject
37
- >;
38
-
39
- export type ListDatasetDatapointsContentDatasetsResponse2 =
40
- components.TextContentPartSchema;
41
-
42
- /**
43
- * The contents of the tool message.
44
- */
45
- export type ListDatasetDatapointsMessagesDatasetsResponse200ApplicationJSONContent =
46
- | string
47
- | Array<components.TextContentPartSchema>;
48
-
49
- /**
50
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
51
- */
52
- export const ListDatasetDatapointsMessagesDatasetsType = {
53
- Ephemeral: "ephemeral",
54
- } as const;
55
- /**
56
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
57
- */
58
- export type ListDatasetDatapointsMessagesDatasetsType = ClosedEnum<
59
- typeof ListDatasetDatapointsMessagesDatasetsType
60
- >;
61
-
62
- /**
63
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
64
- *
65
- * @remarks
66
- *
67
- * - `5m`: 5 minutes
68
- * - `1h`: 1 hour
69
- *
70
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
71
- */
72
- export const ListDatasetDatapointsMessagesTtl = {
73
- Fivem: "5m",
74
- Oneh: "1h",
75
- } as const;
76
- /**
77
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
78
- *
79
- * @remarks
80
- *
81
- * - `5m`: 5 minutes
82
- * - `1h`: 1 hour
83
- *
84
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
85
- */
86
- export type ListDatasetDatapointsMessagesTtl = ClosedEnum<
87
- typeof ListDatasetDatapointsMessagesTtl
88
- >;
89
-
90
- export type ListDatasetDatapointsMessagesCacheControl = {
91
- /**
92
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
93
- */
94
- type: ListDatasetDatapointsMessagesDatasetsType;
95
- /**
96
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
97
- *
98
- * @remarks
99
- *
100
- * - `5m`: 5 minutes
101
- * - `1h`: 1 hour
102
- *
103
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
104
- */
105
- ttl: ListDatasetDatapointsMessagesTtl;
106
- };
107
-
108
- export type ListDatasetDatapointsMessagesToolMessage = {
109
- /**
110
- * The role of the messages author, in this case tool.
111
- */
112
- role: "tool";
113
- /**
114
- * The contents of the tool message.
115
- */
116
- content: string | Array<components.TextContentPartSchema>;
117
- /**
118
- * Tool call that this message is responding to.
119
- */
120
- toolCallId: string | null;
121
- cacheControl?: ListDatasetDatapointsMessagesCacheControl | undefined;
122
- };
123
-
124
- export type ListDatasetDatapointsContentDatasets2 =
125
- | (components.TextContentPartSchema & { type: "text" })
126
- | components.RefusalPartSchema
127
- | components.ReasoningPartSchema
128
- | components.RedactedReasoningPartSchema;
129
-
130
- /**
131
- * The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
132
- */
133
- export type ListDatasetDatapointsMessagesDatasetsResponse200Content =
134
- | string
135
- | Array<
136
- | (components.TextContentPartSchema & { type: "text" })
137
- | components.RefusalPartSchema
138
- | components.ReasoningPartSchema
139
- | components.RedactedReasoningPartSchema
140
- >;
141
-
142
- /**
143
- * Data about a previous audio response from the model.
144
- */
145
- export type ListDatasetDatapointsMessagesAudio = {
146
- /**
147
- * Unique identifier for a previous audio response from the model.
148
- */
149
- id: string;
150
- };
151
-
152
- /**
153
- * The type of the tool. Currently, only `function` is supported.
154
- */
155
- export const ListDatasetDatapointsMessagesType = {
156
- Function: "function",
157
- } as const;
158
- /**
159
- * The type of the tool. Currently, only `function` is supported.
160
- */
161
- export type ListDatasetDatapointsMessagesType = ClosedEnum<
162
- typeof ListDatasetDatapointsMessagesType
163
- >;
164
-
165
- export type ListDatasetDatapointsMessagesFunction = {
166
- /**
167
- * The name of the function to call.
168
- */
169
- name?: string | undefined;
170
- /**
171
- * 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.
172
- */
173
- arguments?: string | undefined;
174
- };
175
-
176
- export type ListDatasetDatapointsMessagesGoogle = {
177
- /**
178
- * 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.
179
- */
180
- thoughtSignature?: string | undefined;
181
- };
182
-
183
- /**
184
- * Provider-specific extra content for the tool call.
185
- */
186
- export type ListDatasetDatapointsMessagesExtraContent = {
187
- google?: ListDatasetDatapointsMessagesGoogle | undefined;
188
- };
189
-
190
- export type ListDatasetDatapointsMessagesToolCalls = {
191
- /**
192
- * The ID of the tool call.
193
- */
194
- id: string;
195
- /**
196
- * The type of the tool. Currently, only `function` is supported.
197
- */
198
- type: ListDatasetDatapointsMessagesType;
199
- function: ListDatasetDatapointsMessagesFunction;
200
- /**
201
- * Encrypted representation of the model internal reasoning state during function calling. Required by Gemini 3 models when continuing a conversation after a tool call.
202
- */
203
- thoughtSignature?: string | undefined;
204
- /**
205
- * Provider-specific extra content for the tool call.
206
- */
207
- extraContent?: ListDatasetDatapointsMessagesExtraContent | undefined;
208
- };
209
-
210
- export type ListDatasetDatapointsMessagesAssistantMessage = {
211
- /**
212
- * Provider reasoning content that must be replayed with assistant tool calls when continuing a reasoning-model conversation.
213
- */
214
- reasoningContent?: string | undefined;
215
- /**
216
- * The contents of the assistant message. Required unless `tool_calls` or `function_call` is specified.
217
- */
218
- content?:
219
- | string
220
- | Array<
221
- | (components.TextContentPartSchema & { type: "text" })
222
- | components.RefusalPartSchema
223
- | components.ReasoningPartSchema
224
- | components.RedactedReasoningPartSchema
225
- >
226
- | null
227
- | undefined;
228
- /**
229
- * The refusal message by the assistant.
230
- */
231
- refusal?: string | null | undefined;
232
- /**
233
- * The role of the messages author, in this case `assistant`.
234
- */
235
- role: "assistant";
236
- /**
237
- * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
238
- */
239
- name?: string | undefined;
240
- /**
241
- * Data about a previous audio response from the model.
242
- */
243
- audio?: ListDatasetDatapointsMessagesAudio | null | undefined;
244
- /**
245
- * The tool calls generated by the model, such as function calls.
246
- */
247
- toolCalls?: Array<ListDatasetDatapointsMessagesToolCalls> | undefined;
248
- };
249
-
250
- /**
251
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
252
- */
253
- export const ListDatasetDatapoints2DatasetsType = {
254
- Ephemeral: "ephemeral",
255
- } as const;
256
- /**
257
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
258
- */
259
- export type ListDatasetDatapoints2DatasetsType = ClosedEnum<
260
- typeof ListDatasetDatapoints2DatasetsType
261
- >;
262
-
263
- /**
264
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
265
- *
266
- * @remarks
267
- *
268
- * - `5m`: 5 minutes
269
- * - `1h`: 1 hour
270
- *
271
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
272
- */
273
- export const ListDatasetDatapoints2Ttl = {
274
- Fivem: "5m",
275
- Oneh: "1h",
276
- } as const;
277
- /**
278
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
279
- *
280
- * @remarks
281
- *
282
- * - `5m`: 5 minutes
283
- * - `1h`: 1 hour
284
- *
285
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
286
- */
287
- export type ListDatasetDatapoints2Ttl = ClosedEnum<
288
- typeof ListDatasetDatapoints2Ttl
289
- >;
290
-
291
- export type ListDatasetDatapoints2CacheControl = {
292
- /**
293
- * Create a cache control breakpoint at this content block. Accepts only the value "ephemeral".
294
- */
295
- type: ListDatasetDatapoints2DatasetsType;
296
- /**
297
- * The time-to-live for the cache control breakpoint. This may be one of the following values:
298
- *
299
- * @remarks
300
- *
301
- * - `5m`: 5 minutes
302
- * - `1h`: 1 hour
303
- *
304
- * Defaults to `5m`. Only supported by `Anthropic` Claude models.
305
- */
306
- ttl: ListDatasetDatapoints2Ttl;
307
- };
308
-
309
- export type ListDatasetDatapoints24 = {
310
- /**
311
- * The type of the content part. Always `file`.
312
- */
313
- type: "file";
314
- cacheControl?: ListDatasetDatapoints2CacheControl | undefined;
315
- /**
316
- * File data for the content part. Must contain either file_data or uri, but not both.
317
- */
318
- file: components.FileContentPartSchema;
319
- };
320
-
321
- export type ListDatasetDatapointsContent2 =
322
- | (components.TextContentPartSchema & { type: "text" })
323
- | components.ImageContentPartSchema
324
- | components.AudioContentPartSchema
325
- | ListDatasetDatapoints24;
326
-
327
- /**
328
- * The contents of the user message.
329
- */
330
- export type ListDatasetDatapointsMessagesDatasetsResponseContent =
331
- | string
332
- | Array<
333
- | (components.TextContentPartSchema & { type: "text" })
334
- | components.ImageContentPartSchema
335
- | components.AudioContentPartSchema
336
- | ListDatasetDatapoints24
337
- >;
338
-
339
- export type ListDatasetDatapointsMessagesUserMessage = {
340
- /**
341
- * The role of the messages author, in this case `user`.
342
- */
343
- role: "user";
344
- /**
345
- * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
346
- */
347
- name?: string | undefined;
348
- /**
349
- * The contents of the user message.
350
- */
351
- content:
352
- | string
353
- | Array<
354
- | (components.TextContentPartSchema & { type: "text" })
355
- | components.ImageContentPartSchema
356
- | components.AudioContentPartSchema
357
- | ListDatasetDatapoints24
358
- >;
359
- };
360
-
361
- /**
362
- * The contents of the developer message.
363
- */
364
- export type ListDatasetDatapointsMessagesDatasetsContent =
365
- | string
366
- | Array<components.TextContentPartSchema>;
367
-
368
- export type ListDatasetDatapointsMessagesDeveloperMessage = {
369
- /**
370
- * The role of the messages author, in this case `developer`.
371
- */
372
- role: "developer";
373
- /**
374
- * The contents of the developer message.
375
- */
376
- content: string | Array<components.TextContentPartSchema>;
377
- /**
378
- * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
379
- */
380
- name?: string | undefined;
381
- };
382
-
383
- /**
384
- * The contents of the system message.
385
- */
386
- export type ListDatasetDatapointsMessagesContent =
387
- | string
388
- | Array<components.TextContentPartSchema>;
389
-
390
- /**
391
- * Developer-provided instructions that the model should follow, regardless of messages sent by the user.
392
- */
393
- export type ListDatasetDatapointsMessagesSystemMessage = {
394
- /**
395
- * The role of the messages author, in this case `system`.
396
- */
397
- role: "system";
398
- /**
399
- * The contents of the system message.
400
- */
401
- content: string | Array<components.TextContentPartSchema>;
402
- /**
403
- * An optional name for the participant. Provides the model information to differentiate between participants of the same role.
404
- */
405
- name?: string | undefined;
406
- };
407
-
408
- export type ListDatasetDatapointsMessages =
409
- | ListDatasetDatapointsMessagesSystemMessage
410
- | ListDatasetDatapointsMessagesDeveloperMessage
411
- | ListDatasetDatapointsMessagesUserMessage
412
- | ListDatasetDatapointsMessagesAssistantMessage
413
- | ListDatasetDatapointsMessagesToolMessage;
414
-
415
- /**
416
- * The type of evaluation
417
- */
418
- export const ListDatasetDatapointsEvaluationsDatasetsEvaluationType = {
419
- HumanReview: "human_review",
420
- } as const;
421
- /**
422
- * The type of evaluation
423
- */
424
- export type ListDatasetDatapointsEvaluationsDatasetsEvaluationType = ClosedEnum<
425
- typeof ListDatasetDatapointsEvaluationsDatasetsEvaluationType
426
- >;
427
-
428
- export const ListDatasetDatapointsEvaluationsDatasetsResponseSource = {
429
- Orq: "orq",
430
- External: "external",
431
- } as const;
432
- export type ListDatasetDatapointsEvaluationsDatasetsResponseSource = ClosedEnum<
433
- typeof ListDatasetDatapointsEvaluationsDatasetsResponseSource
434
- >;
435
-
436
- /**
437
- * The kind of annotator that produced the evaluation
438
- */
439
- export const ListDatasetDatapointsEvaluationsDatasetsResponseKind = {
440
- Llm: "llm",
441
- Code: "code",
442
- Human: "human",
443
- Automation: "automation",
444
- } as const;
445
- /**
446
- * The kind of annotator that produced the evaluation
447
- */
448
- export type ListDatasetDatapointsEvaluationsDatasetsResponseKind = ClosedEnum<
449
- typeof ListDatasetDatapointsEvaluationsDatasetsResponseKind
450
- >;
451
-
452
- /**
453
- * The annotator that produced this evaluation. Optional during the dual-write deprecation window.
454
- */
455
- export type ListDatasetDatapointsEvaluationsDatasetsAnnotator = {
456
- /**
457
- * The kind of annotator that produced the evaluation
458
- */
459
- kind: ListDatasetDatapointsEvaluationsDatasetsResponseKind;
460
- /**
461
- * Who/what produced this annotation. User/contact id for human, evaluator eval span id for llm/code, automation rule id for automation.
462
- */
463
- actorId: string;
464
- };
465
-
466
- /**
467
- * The expected shape of the value. Derived from the human review type, or inherited from the parent annotation for corrections.
468
- */
469
- export const ListDatasetDatapointsEvaluationsDatasetsOutputSchema = {
470
- Boolean: "boolean",
471
- Number: "number",
472
- Categorical: "categorical",
473
- String: "string",
474
- } as const;
475
- /**
476
- * The expected shape of the value. Derived from the human review type, or inherited from the parent annotation for corrections.
477
- */
478
- export type ListDatasetDatapointsEvaluationsDatasetsOutputSchema = ClosedEnum<
479
- typeof ListDatasetDatapointsEvaluationsDatasetsOutputSchema
480
- >;
481
-
482
- export type ListDatasetDatapointsEvaluations4 = {
483
- /**
484
- * The unique identifier of the human evaluation
485
- */
486
- id: string;
487
- /**
488
- * The type of evaluation
489
- */
490
- evaluationType: ListDatasetDatapointsEvaluationsDatasetsEvaluationType;
491
- /**
492
- * The unique identifier of the human review. Omitted on corrections, which inherit the parent evaluator output schema.
493
- */
494
- humanReviewId?: string | undefined;
495
- source: ListDatasetDatapointsEvaluationsDatasetsResponseSource;
496
- /**
497
- * The annotator that produced this evaluation. Optional during the dual-write deprecation window.
498
- */
499
- annotator?: ListDatasetDatapointsEvaluationsDatasetsAnnotator | undefined;
500
- /**
501
- * The expected shape of the value. Derived from the human review type, or inherited from the parent annotation for corrections.
502
- */
503
- outputSchema?:
504
- | ListDatasetDatapointsEvaluationsDatasetsOutputSchema
505
- | undefined;
506
- /**
507
- * When present, references the id of the annotation this entry corrects. Presence of this field marks the entry as a correction.
508
- */
509
- parentAnnotationId?: string | undefined;
510
- /**
511
- * Optional free-text explanation of the value
512
- */
513
- explanation?: string | undefined;
514
- /**
515
- * Deprecated: use annotator.actor_id. The unique identifier of the user who reviewed the item.
516
- *
517
- * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
518
- */
519
- reviewedById: string;
520
- /**
521
- * Deprecated. The date and time the item was reviewed
522
- *
523
- * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
524
- */
525
- reviewedAt: Date;
526
- type: "string_array";
527
- values: Array<string>;
528
- };
529
-
530
- /**
531
- * The type of evaluation
532
- */
533
- export const ListDatasetDatapointsEvaluationsEvaluationType = {
534
- HumanReview: "human_review",
535
- } as const;
536
- /**
537
- * The type of evaluation
538
- */
539
- export type ListDatasetDatapointsEvaluationsEvaluationType = ClosedEnum<
540
- typeof ListDatasetDatapointsEvaluationsEvaluationType
541
- >;
542
-
543
- export const ListDatasetDatapointsEvaluationsDatasetsSource = {
544
- Orq: "orq",
545
- External: "external",
546
- } as const;
547
- export type ListDatasetDatapointsEvaluationsDatasetsSource = ClosedEnum<
548
- typeof ListDatasetDatapointsEvaluationsDatasetsSource
549
- >;
550
-
551
- /**
552
- * The kind of annotator that produced the evaluation
553
- */
554
- export const ListDatasetDatapointsEvaluationsDatasetsKind = {
555
- Llm: "llm",
556
- Code: "code",
557
- Human: "human",
558
- Automation: "automation",
559
- } as const;
560
- /**
561
- * The kind of annotator that produced the evaluation
562
- */
563
- export type ListDatasetDatapointsEvaluationsDatasetsKind = ClosedEnum<
564
- typeof ListDatasetDatapointsEvaluationsDatasetsKind
565
- >;
566
-
567
- /**
568
- * The annotator that produced this evaluation. Optional during the dual-write deprecation window.
569
- */
570
- export type ListDatasetDatapointsEvaluationsAnnotator = {
571
- /**
572
- * The kind of annotator that produced the evaluation
573
- */
574
- kind: ListDatasetDatapointsEvaluationsDatasetsKind;
575
- /**
576
- * Who/what produced this annotation. User/contact id for human, evaluator eval span id for llm/code, automation rule id for automation.
577
- */
578
- actorId: string;
579
- };
580
-
581
- /**
582
- * The expected shape of the value. Derived from the human review type, or inherited from the parent annotation for corrections.
583
- */
584
- export const ListDatasetDatapointsEvaluationsOutputSchema = {
585
- Boolean: "boolean",
586
- Number: "number",
587
- Categorical: "categorical",
588
- String: "string",
589
- } as const;
590
- /**
591
- * The expected shape of the value. Derived from the human review type, or inherited from the parent annotation for corrections.
592
- */
593
- export type ListDatasetDatapointsEvaluationsOutputSchema = ClosedEnum<
594
- typeof ListDatasetDatapointsEvaluationsOutputSchema
595
- >;
596
-
597
- export type ListDatasetDatapointsEvaluations3 = {
598
- /**
599
- * The unique identifier of the human evaluation
600
- */
601
- id: string;
602
- /**
603
- * The type of evaluation
604
- */
605
- evaluationType: ListDatasetDatapointsEvaluationsEvaluationType;
606
- /**
607
- * The unique identifier of the human review. Omitted on corrections, which inherit the parent evaluator output schema.
608
- */
609
- humanReviewId?: string | undefined;
610
- source: ListDatasetDatapointsEvaluationsDatasetsSource;
611
- /**
612
- * The annotator that produced this evaluation. Optional during the dual-write deprecation window.
613
- */
614
- annotator?: ListDatasetDatapointsEvaluationsAnnotator | undefined;
615
- /**
616
- * The expected shape of the value. Derived from the human review type, or inherited from the parent annotation for corrections.
617
- */
618
- outputSchema?: ListDatasetDatapointsEvaluationsOutputSchema | undefined;
619
- /**
620
- * When present, references the id of the annotation this entry corrects. Presence of this field marks the entry as a correction.
621
- */
622
- parentAnnotationId?: string | undefined;
623
- /**
624
- * Optional free-text explanation of the value
625
- */
626
- explanation?: string | undefined;
627
- /**
628
- * Deprecated: use annotator.actor_id. The unique identifier of the user who reviewed the item.
629
- *
630
- * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
631
- */
632
- reviewedById: string;
633
- /**
634
- * Deprecated. The date and time the item was reviewed
635
- *
636
- * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
637
- */
638
- reviewedAt: Date;
639
- type: "boolean";
640
- value: boolean;
641
- };
642
-
643
- /**
644
- * The type of evaluation
645
- */
646
- export const ListDatasetDatapointsEvaluationsDatasetsResponse200EvaluationType =
647
- {
648
- HumanReview: "human_review",
649
- } as const;
650
- /**
651
- * The type of evaluation
652
- */
653
- export type ListDatasetDatapointsEvaluationsDatasetsResponse200EvaluationType =
654
- ClosedEnum<
655
- typeof ListDatasetDatapointsEvaluationsDatasetsResponse200EvaluationType
656
- >;
657
-
658
- export const ListDatasetDatapointsEvaluationsSource = {
659
- Orq: "orq",
660
- External: "external",
661
- } as const;
662
- export type ListDatasetDatapointsEvaluationsSource = ClosedEnum<
663
- typeof ListDatasetDatapointsEvaluationsSource
664
- >;
665
-
666
- /**
667
- * The kind of annotator that produced the evaluation
668
- */
669
- export const ListDatasetDatapointsEvaluationsKind = {
670
- Llm: "llm",
671
- Code: "code",
672
- Human: "human",
673
- Automation: "automation",
674
- } as const;
675
- /**
676
- * The kind of annotator that produced the evaluation
677
- */
678
- export type ListDatasetDatapointsEvaluationsKind = ClosedEnum<
679
- typeof ListDatasetDatapointsEvaluationsKind
680
- >;
681
-
682
- /**
683
- * The annotator that produced this evaluation. Optional during the dual-write deprecation window.
684
- */
685
- export type ListDatasetDatapointsEvaluationsDatasetsResponse200Annotator = {
686
- /**
687
- * The kind of annotator that produced the evaluation
688
- */
689
- kind: ListDatasetDatapointsEvaluationsKind;
690
- /**
691
- * Who/what produced this annotation. User/contact id for human, evaluator eval span id for llm/code, automation rule id for automation.
692
- */
693
- actorId: string;
694
- };
695
-
696
- /**
697
- * The expected shape of the value. Derived from the human review type, or inherited from the parent annotation for corrections.
698
- */
699
- export const ListDatasetDatapointsEvaluationsDatasetsResponse200OutputSchema = {
700
- Boolean: "boolean",
701
- Number: "number",
702
- Categorical: "categorical",
703
- String: "string",
704
- } as const;
705
- /**
706
- * The expected shape of the value. Derived from the human review type, or inherited from the parent annotation for corrections.
707
- */
708
- export type ListDatasetDatapointsEvaluationsDatasetsResponse200OutputSchema =
709
- ClosedEnum<
710
- typeof ListDatasetDatapointsEvaluationsDatasetsResponse200OutputSchema
711
- >;
712
-
713
- export type ListDatasetDatapointsEvaluations2 = {
714
- /**
715
- * The unique identifier of the human evaluation
716
- */
717
- id: string;
718
- /**
719
- * The type of evaluation
720
- */
721
- evaluationType:
722
- ListDatasetDatapointsEvaluationsDatasetsResponse200EvaluationType;
723
- /**
724
- * The unique identifier of the human review. Omitted on corrections, which inherit the parent evaluator output schema.
725
- */
726
- humanReviewId?: string | undefined;
727
- source: ListDatasetDatapointsEvaluationsSource;
728
- /**
729
- * The annotator that produced this evaluation. Optional during the dual-write deprecation window.
730
- */
731
- annotator?:
732
- | ListDatasetDatapointsEvaluationsDatasetsResponse200Annotator
733
- | undefined;
734
- /**
735
- * The expected shape of the value. Derived from the human review type, or inherited from the parent annotation for corrections.
736
- */
737
- outputSchema?:
738
- | ListDatasetDatapointsEvaluationsDatasetsResponse200OutputSchema
739
- | undefined;
740
- /**
741
- * When present, references the id of the annotation this entry corrects. Presence of this field marks the entry as a correction.
742
- */
743
- parentAnnotationId?: string | undefined;
744
- /**
745
- * Optional free-text explanation of the value
746
- */
747
- explanation?: string | undefined;
748
- /**
749
- * Deprecated: use annotator.actor_id. The unique identifier of the user who reviewed the item.
750
- *
751
- * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
752
- */
753
- reviewedById: string;
754
- /**
755
- * Deprecated. The date and time the item was reviewed
756
- *
757
- * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
758
- */
759
- reviewedAt: Date;
760
- type: "number";
761
- value: number;
762
- };
763
-
764
- /**
765
- * The type of evaluation
766
- */
767
- export const ListDatasetDatapointsEvaluationsDatasetsResponseEvaluationType = {
768
- HumanReview: "human_review",
769
- } as const;
770
- /**
771
- * The type of evaluation
772
- */
773
- export type ListDatasetDatapointsEvaluationsDatasetsResponseEvaluationType =
774
- ClosedEnum<
775
- typeof ListDatasetDatapointsEvaluationsDatasetsResponseEvaluationType
776
- >;
777
-
778
- export const ListDatasetDatapointsEvaluationsDatasetsResponse200Source = {
779
- Orq: "orq",
780
- External: "external",
781
- } as const;
782
- export type ListDatasetDatapointsEvaluationsDatasetsResponse200Source =
783
- ClosedEnum<typeof ListDatasetDatapointsEvaluationsDatasetsResponse200Source>;
784
-
785
- /**
786
- * The kind of annotator that produced the evaluation
787
- */
788
- export const ListDatasetDatapointsEvaluationsDatasetsResponse200Kind = {
789
- Llm: "llm",
790
- Code: "code",
791
- Human: "human",
792
- Automation: "automation",
793
- } as const;
794
- /**
795
- * The kind of annotator that produced the evaluation
796
- */
797
- export type ListDatasetDatapointsEvaluationsDatasetsResponse200Kind =
798
- ClosedEnum<typeof ListDatasetDatapointsEvaluationsDatasetsResponse200Kind>;
799
-
800
- /**
801
- * The annotator that produced this evaluation. Optional during the dual-write deprecation window.
802
- */
803
- export type ListDatasetDatapointsEvaluationsDatasetsResponseAnnotator = {
804
- /**
805
- * The kind of annotator that produced the evaluation
806
- */
807
- kind: ListDatasetDatapointsEvaluationsDatasetsResponse200Kind;
808
- /**
809
- * Who/what produced this annotation. User/contact id for human, evaluator eval span id for llm/code, automation rule id for automation.
810
- */
811
- actorId: string;
812
- };
813
-
814
- /**
815
- * The expected shape of the value. Derived from the human review type, or inherited from the parent annotation for corrections.
816
- */
817
- export const ListDatasetDatapointsEvaluationsDatasetsResponseOutputSchema = {
818
- Boolean: "boolean",
819
- Number: "number",
820
- Categorical: "categorical",
821
- String: "string",
822
- } as const;
823
- /**
824
- * The expected shape of the value. Derived from the human review type, or inherited from the parent annotation for corrections.
825
- */
826
- export type ListDatasetDatapointsEvaluationsDatasetsResponseOutputSchema =
827
- ClosedEnum<
828
- typeof ListDatasetDatapointsEvaluationsDatasetsResponseOutputSchema
829
- >;
830
-
831
- export type ListDatasetDatapointsEvaluations1 = {
832
- /**
833
- * The unique identifier of the human evaluation
834
- */
835
- id: string;
836
- /**
837
- * The type of evaluation
838
- */
839
- evaluationType:
840
- ListDatasetDatapointsEvaluationsDatasetsResponseEvaluationType;
841
- /**
842
- * The unique identifier of the human review. Omitted on corrections, which inherit the parent evaluator output schema.
843
- */
844
- humanReviewId?: string | undefined;
845
- source: ListDatasetDatapointsEvaluationsDatasetsResponse200Source;
846
- /**
847
- * The annotator that produced this evaluation. Optional during the dual-write deprecation window.
848
- */
849
- annotator?:
850
- | ListDatasetDatapointsEvaluationsDatasetsResponseAnnotator
851
- | undefined;
852
- /**
853
- * The expected shape of the value. Derived from the human review type, or inherited from the parent annotation for corrections.
854
- */
855
- outputSchema?:
856
- | ListDatasetDatapointsEvaluationsDatasetsResponseOutputSchema
857
- | undefined;
858
- /**
859
- * When present, references the id of the annotation this entry corrects. Presence of this field marks the entry as a correction.
860
- */
861
- parentAnnotationId?: string | undefined;
862
- /**
863
- * Optional free-text explanation of the value
864
- */
865
- explanation?: string | undefined;
866
- /**
867
- * Deprecated: use annotator.actor_id. The unique identifier of the user who reviewed the item.
868
- *
869
- * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
870
- */
871
- reviewedById: string;
872
- /**
873
- * Deprecated. The date and time the item was reviewed
874
- *
875
- * @deprecated field: This will be removed in a future release, please migrate away from it as soon as possible.
876
- */
877
- reviewedAt: Date;
878
- type: "string";
879
- value: string;
880
- };
881
-
882
- export type ListDatasetDatapointsEvaluations =
883
- | ListDatasetDatapointsEvaluations1
884
- | ListDatasetDatapointsEvaluations2
885
- | ListDatasetDatapointsEvaluations3
886
- | ListDatasetDatapointsEvaluations4;
887
-
888
- export type ListDatasetDatapointsData = {
889
- /**
890
- * The unique identifier of the dataset item
891
- */
892
- id: string;
893
- /**
894
- * The unique identifier of the workspace it belongs to
895
- */
896
- workspaceId: string;
897
- /**
898
- * 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.
899
- */
900
- inputs?: { [k: string]: any } | undefined;
901
- /**
902
- * A list of messages comprising the conversation so far
903
- */
904
- messages?:
905
- | Array<
906
- | ListDatasetDatapointsMessagesSystemMessage
907
- | ListDatasetDatapointsMessagesDeveloperMessage
908
- | ListDatasetDatapointsMessagesUserMessage
909
- | ListDatasetDatapointsMessagesAssistantMessage
910
- | ListDatasetDatapointsMessagesToolMessage
911
- >
912
- | undefined;
913
- expectedOutput?: string | undefined;
914
- /**
915
- * Evaluations associated with the datapoint
916
- */
917
- evaluations?:
918
- | Array<
919
- | ListDatasetDatapointsEvaluations1
920
- | ListDatasetDatapointsEvaluations2
921
- | ListDatasetDatapointsEvaluations3
922
- | ListDatasetDatapointsEvaluations4
923
- >
924
- | undefined;
925
- /**
926
- * The unique identifier of the dataset
927
- */
928
- datasetId: string;
929
- /**
930
- * The version of the dataset snapshot
931
- */
932
- snapshotVersion?: string | undefined;
933
- /**
934
- * The unique identifier of the user who created the dataset
935
- */
936
- createdById?: string | null | undefined;
937
- /**
938
- * The unique identifier of the user who last updated the dataset
939
- */
940
- updatedById?: string | null | undefined;
941
- /**
942
- * The date and time the resource was created
943
- */
944
- created?: Date | undefined;
945
- /**
946
- * The date and time the resource was last updated
947
- */
948
- updated: Date;
949
- };
950
-
951
- /**
952
- * Datapoints retrieved successfully. Returns a paginated list of datapoints.
953
- */
954
- export type ListDatasetDatapointsResponseBody = {
955
- object: ListDatasetDatapointsObject;
956
- data: Array<ListDatasetDatapointsData>;
957
- hasMore: boolean;
958
- };
959
-
960
15
  /** @internal */
961
16
  export type ListDatasetDatapointsRequest$Outbound = {
962
17
  dataset_id: string;
963
- limit: number;
18
+ limit?: number | undefined;
964
19
  starting_after?: string | undefined;
965
20
  ending_before?: string | undefined;
966
21
  };
@@ -972,7 +27,7 @@ export const ListDatasetDatapointsRequest$outboundSchema: z.ZodType<
972
27
  ListDatasetDatapointsRequest
973
28
  > = z.object({
974
29
  datasetId: z.string(),
975
- limit: z.number().int().default(10),
30
+ limit: z.number().int().optional(),
976
31
  startingAfter: z.string().optional(),
977
32
  endingBefore: z.string().optional(),
978
33
  }).transform((v) => {
@@ -992,1173 +47,3 @@ export function listDatasetDatapointsRequestToJSON(
992
47
  ),
993
48
  );
994
49
  }
995
-
996
- /** @internal */
997
- export const ListDatasetDatapointsObject$inboundSchema: z.ZodNativeEnum<
998
- typeof ListDatasetDatapointsObject
999
- > = z.nativeEnum(ListDatasetDatapointsObject);
1000
-
1001
- /** @internal */
1002
- export const ListDatasetDatapointsContentDatasetsResponse2$inboundSchema:
1003
- z.ZodType<
1004
- ListDatasetDatapointsContentDatasetsResponse2,
1005
- z.ZodTypeDef,
1006
- unknown
1007
- > = components.TextContentPartSchema$inboundSchema;
1008
-
1009
- export function listDatasetDatapointsContentDatasetsResponse2FromJSON(
1010
- jsonString: string,
1011
- ): SafeParseResult<
1012
- ListDatasetDatapointsContentDatasetsResponse2,
1013
- SDKValidationError
1014
- > {
1015
- return safeParse(
1016
- jsonString,
1017
- (x) =>
1018
- ListDatasetDatapointsContentDatasetsResponse2$inboundSchema.parse(
1019
- JSON.parse(x),
1020
- ),
1021
- `Failed to parse 'ListDatasetDatapointsContentDatasetsResponse2' from JSON`,
1022
- );
1023
- }
1024
-
1025
- /** @internal */
1026
- export const ListDatasetDatapointsMessagesDatasetsResponse200ApplicationJSONContent$inboundSchema:
1027
- z.ZodType<
1028
- ListDatasetDatapointsMessagesDatasetsResponse200ApplicationJSONContent,
1029
- z.ZodTypeDef,
1030
- unknown
1031
- > = z.union([
1032
- z.string(),
1033
- z.array(components.TextContentPartSchema$inboundSchema),
1034
- ]);
1035
-
1036
- export function listDatasetDatapointsMessagesDatasetsResponse200ApplicationJSONContentFromJSON(
1037
- jsonString: string,
1038
- ): SafeParseResult<
1039
- ListDatasetDatapointsMessagesDatasetsResponse200ApplicationJSONContent,
1040
- SDKValidationError
1041
- > {
1042
- return safeParse(
1043
- jsonString,
1044
- (x) =>
1045
- ListDatasetDatapointsMessagesDatasetsResponse200ApplicationJSONContent$inboundSchema
1046
- .parse(JSON.parse(x)),
1047
- `Failed to parse 'ListDatasetDatapointsMessagesDatasetsResponse200ApplicationJSONContent' from JSON`,
1048
- );
1049
- }
1050
-
1051
- /** @internal */
1052
- export const ListDatasetDatapointsMessagesDatasetsType$inboundSchema:
1053
- z.ZodNativeEnum<typeof ListDatasetDatapointsMessagesDatasetsType> = z
1054
- .nativeEnum(ListDatasetDatapointsMessagesDatasetsType);
1055
-
1056
- /** @internal */
1057
- export const ListDatasetDatapointsMessagesTtl$inboundSchema: z.ZodNativeEnum<
1058
- typeof ListDatasetDatapointsMessagesTtl
1059
- > = z.nativeEnum(ListDatasetDatapointsMessagesTtl);
1060
-
1061
- /** @internal */
1062
- export const ListDatasetDatapointsMessagesCacheControl$inboundSchema: z.ZodType<
1063
- ListDatasetDatapointsMessagesCacheControl,
1064
- z.ZodTypeDef,
1065
- unknown
1066
- > = z.object({
1067
- type: ListDatasetDatapointsMessagesDatasetsType$inboundSchema,
1068
- ttl: ListDatasetDatapointsMessagesTtl$inboundSchema.default("5m"),
1069
- });
1070
-
1071
- export function listDatasetDatapointsMessagesCacheControlFromJSON(
1072
- jsonString: string,
1073
- ): SafeParseResult<
1074
- ListDatasetDatapointsMessagesCacheControl,
1075
- SDKValidationError
1076
- > {
1077
- return safeParse(
1078
- jsonString,
1079
- (x) =>
1080
- ListDatasetDatapointsMessagesCacheControl$inboundSchema.parse(
1081
- JSON.parse(x),
1082
- ),
1083
- `Failed to parse 'ListDatasetDatapointsMessagesCacheControl' from JSON`,
1084
- );
1085
- }
1086
-
1087
- /** @internal */
1088
- export const ListDatasetDatapointsMessagesToolMessage$inboundSchema: z.ZodType<
1089
- ListDatasetDatapointsMessagesToolMessage,
1090
- z.ZodTypeDef,
1091
- unknown
1092
- > = z.object({
1093
- role: z.literal("tool"),
1094
- content: z.union([
1095
- z.string(),
1096
- z.array(components.TextContentPartSchema$inboundSchema),
1097
- ]),
1098
- tool_call_id: z.nullable(z.string()),
1099
- cache_control: z.lazy(() =>
1100
- ListDatasetDatapointsMessagesCacheControl$inboundSchema
1101
- ).optional(),
1102
- }).transform((v) => {
1103
- return remap$(v, {
1104
- "tool_call_id": "toolCallId",
1105
- "cache_control": "cacheControl",
1106
- });
1107
- });
1108
-
1109
- export function listDatasetDatapointsMessagesToolMessageFromJSON(
1110
- jsonString: string,
1111
- ): SafeParseResult<
1112
- ListDatasetDatapointsMessagesToolMessage,
1113
- SDKValidationError
1114
- > {
1115
- return safeParse(
1116
- jsonString,
1117
- (x) =>
1118
- ListDatasetDatapointsMessagesToolMessage$inboundSchema.parse(
1119
- JSON.parse(x),
1120
- ),
1121
- `Failed to parse 'ListDatasetDatapointsMessagesToolMessage' from JSON`,
1122
- );
1123
- }
1124
-
1125
- /** @internal */
1126
- export const ListDatasetDatapointsContentDatasets2$inboundSchema: z.ZodType<
1127
- ListDatasetDatapointsContentDatasets2,
1128
- z.ZodTypeDef,
1129
- unknown
1130
- > = z.union([
1131
- components.TextContentPartSchema$inboundSchema.and(
1132
- z.object({ type: z.literal("text") }),
1133
- ),
1134
- components.RefusalPartSchema$inboundSchema,
1135
- components.ReasoningPartSchema$inboundSchema,
1136
- components.RedactedReasoningPartSchema$inboundSchema,
1137
- ]);
1138
-
1139
- export function listDatasetDatapointsContentDatasets2FromJSON(
1140
- jsonString: string,
1141
- ): SafeParseResult<ListDatasetDatapointsContentDatasets2, SDKValidationError> {
1142
- return safeParse(
1143
- jsonString,
1144
- (x) =>
1145
- ListDatasetDatapointsContentDatasets2$inboundSchema.parse(JSON.parse(x)),
1146
- `Failed to parse 'ListDatasetDatapointsContentDatasets2' from JSON`,
1147
- );
1148
- }
1149
-
1150
- /** @internal */
1151
- export const ListDatasetDatapointsMessagesDatasetsResponse200Content$inboundSchema:
1152
- z.ZodType<
1153
- ListDatasetDatapointsMessagesDatasetsResponse200Content,
1154
- z.ZodTypeDef,
1155
- unknown
1156
- > = z.union([
1157
- z.string(),
1158
- z.array(
1159
- z.union([
1160
- components.TextContentPartSchema$inboundSchema.and(
1161
- z.object({ type: z.literal("text") }),
1162
- ),
1163
- components.RefusalPartSchema$inboundSchema,
1164
- components.ReasoningPartSchema$inboundSchema,
1165
- components.RedactedReasoningPartSchema$inboundSchema,
1166
- ]),
1167
- ),
1168
- ]);
1169
-
1170
- export function listDatasetDatapointsMessagesDatasetsResponse200ContentFromJSON(
1171
- jsonString: string,
1172
- ): SafeParseResult<
1173
- ListDatasetDatapointsMessagesDatasetsResponse200Content,
1174
- SDKValidationError
1175
- > {
1176
- return safeParse(
1177
- jsonString,
1178
- (x) =>
1179
- ListDatasetDatapointsMessagesDatasetsResponse200Content$inboundSchema
1180
- .parse(JSON.parse(x)),
1181
- `Failed to parse 'ListDatasetDatapointsMessagesDatasetsResponse200Content' from JSON`,
1182
- );
1183
- }
1184
-
1185
- /** @internal */
1186
- export const ListDatasetDatapointsMessagesAudio$inboundSchema: z.ZodType<
1187
- ListDatasetDatapointsMessagesAudio,
1188
- z.ZodTypeDef,
1189
- unknown
1190
- > = z.object({
1191
- id: z.string(),
1192
- });
1193
-
1194
- export function listDatasetDatapointsMessagesAudioFromJSON(
1195
- jsonString: string,
1196
- ): SafeParseResult<ListDatasetDatapointsMessagesAudio, SDKValidationError> {
1197
- return safeParse(
1198
- jsonString,
1199
- (x) =>
1200
- ListDatasetDatapointsMessagesAudio$inboundSchema.parse(JSON.parse(x)),
1201
- `Failed to parse 'ListDatasetDatapointsMessagesAudio' from JSON`,
1202
- );
1203
- }
1204
-
1205
- /** @internal */
1206
- export const ListDatasetDatapointsMessagesType$inboundSchema: z.ZodNativeEnum<
1207
- typeof ListDatasetDatapointsMessagesType
1208
- > = z.nativeEnum(ListDatasetDatapointsMessagesType);
1209
-
1210
- /** @internal */
1211
- export const ListDatasetDatapointsMessagesFunction$inboundSchema: z.ZodType<
1212
- ListDatasetDatapointsMessagesFunction,
1213
- z.ZodTypeDef,
1214
- unknown
1215
- > = z.object({
1216
- name: z.string().optional(),
1217
- arguments: z.string().optional(),
1218
- });
1219
-
1220
- export function listDatasetDatapointsMessagesFunctionFromJSON(
1221
- jsonString: string,
1222
- ): SafeParseResult<ListDatasetDatapointsMessagesFunction, SDKValidationError> {
1223
- return safeParse(
1224
- jsonString,
1225
- (x) =>
1226
- ListDatasetDatapointsMessagesFunction$inboundSchema.parse(JSON.parse(x)),
1227
- `Failed to parse 'ListDatasetDatapointsMessagesFunction' from JSON`,
1228
- );
1229
- }
1230
-
1231
- /** @internal */
1232
- export const ListDatasetDatapointsMessagesGoogle$inboundSchema: z.ZodType<
1233
- ListDatasetDatapointsMessagesGoogle,
1234
- z.ZodTypeDef,
1235
- unknown
1236
- > = z.object({
1237
- thought_signature: z.string().optional(),
1238
- }).transform((v) => {
1239
- return remap$(v, {
1240
- "thought_signature": "thoughtSignature",
1241
- });
1242
- });
1243
-
1244
- export function listDatasetDatapointsMessagesGoogleFromJSON(
1245
- jsonString: string,
1246
- ): SafeParseResult<ListDatasetDatapointsMessagesGoogle, SDKValidationError> {
1247
- return safeParse(
1248
- jsonString,
1249
- (x) =>
1250
- ListDatasetDatapointsMessagesGoogle$inboundSchema.parse(JSON.parse(x)),
1251
- `Failed to parse 'ListDatasetDatapointsMessagesGoogle' from JSON`,
1252
- );
1253
- }
1254
-
1255
- /** @internal */
1256
- export const ListDatasetDatapointsMessagesExtraContent$inboundSchema: z.ZodType<
1257
- ListDatasetDatapointsMessagesExtraContent,
1258
- z.ZodTypeDef,
1259
- unknown
1260
- > = z.object({
1261
- google: z.lazy(() => ListDatasetDatapointsMessagesGoogle$inboundSchema)
1262
- .optional(),
1263
- });
1264
-
1265
- export function listDatasetDatapointsMessagesExtraContentFromJSON(
1266
- jsonString: string,
1267
- ): SafeParseResult<
1268
- ListDatasetDatapointsMessagesExtraContent,
1269
- SDKValidationError
1270
- > {
1271
- return safeParse(
1272
- jsonString,
1273
- (x) =>
1274
- ListDatasetDatapointsMessagesExtraContent$inboundSchema.parse(
1275
- JSON.parse(x),
1276
- ),
1277
- `Failed to parse 'ListDatasetDatapointsMessagesExtraContent' from JSON`,
1278
- );
1279
- }
1280
-
1281
- /** @internal */
1282
- export const ListDatasetDatapointsMessagesToolCalls$inboundSchema: z.ZodType<
1283
- ListDatasetDatapointsMessagesToolCalls,
1284
- z.ZodTypeDef,
1285
- unknown
1286
- > = z.object({
1287
- id: z.string(),
1288
- type: ListDatasetDatapointsMessagesType$inboundSchema,
1289
- function: z.lazy(() => ListDatasetDatapointsMessagesFunction$inboundSchema),
1290
- thought_signature: z.string().optional(),
1291
- extra_content: z.lazy(() =>
1292
- ListDatasetDatapointsMessagesExtraContent$inboundSchema
1293
- ).optional(),
1294
- }).transform((v) => {
1295
- return remap$(v, {
1296
- "thought_signature": "thoughtSignature",
1297
- "extra_content": "extraContent",
1298
- });
1299
- });
1300
-
1301
- export function listDatasetDatapointsMessagesToolCallsFromJSON(
1302
- jsonString: string,
1303
- ): SafeParseResult<ListDatasetDatapointsMessagesToolCalls, SDKValidationError> {
1304
- return safeParse(
1305
- jsonString,
1306
- (x) =>
1307
- ListDatasetDatapointsMessagesToolCalls$inboundSchema.parse(JSON.parse(x)),
1308
- `Failed to parse 'ListDatasetDatapointsMessagesToolCalls' from JSON`,
1309
- );
1310
- }
1311
-
1312
- /** @internal */
1313
- export const ListDatasetDatapointsMessagesAssistantMessage$inboundSchema:
1314
- z.ZodType<
1315
- ListDatasetDatapointsMessagesAssistantMessage,
1316
- z.ZodTypeDef,
1317
- unknown
1318
- > = z.object({
1319
- reasoning_content: z.string().optional(),
1320
- content: z.nullable(
1321
- z.union([
1322
- z.string(),
1323
- z.array(
1324
- z.union([
1325
- components.TextContentPartSchema$inboundSchema.and(
1326
- z.object({ type: z.literal("text") }),
1327
- ),
1328
- components.RefusalPartSchema$inboundSchema,
1329
- components.ReasoningPartSchema$inboundSchema,
1330
- components.RedactedReasoningPartSchema$inboundSchema,
1331
- ]),
1332
- ),
1333
- ]),
1334
- ).optional(),
1335
- refusal: z.nullable(z.string()).optional(),
1336
- role: z.literal("assistant"),
1337
- name: z.string().optional(),
1338
- audio: z.nullable(
1339
- z.lazy(() => ListDatasetDatapointsMessagesAudio$inboundSchema),
1340
- ).optional(),
1341
- tool_calls: z.array(
1342
- z.lazy(() => ListDatasetDatapointsMessagesToolCalls$inboundSchema),
1343
- ).optional(),
1344
- }).transform((v) => {
1345
- return remap$(v, {
1346
- "reasoning_content": "reasoningContent",
1347
- "tool_calls": "toolCalls",
1348
- });
1349
- });
1350
-
1351
- export function listDatasetDatapointsMessagesAssistantMessageFromJSON(
1352
- jsonString: string,
1353
- ): SafeParseResult<
1354
- ListDatasetDatapointsMessagesAssistantMessage,
1355
- SDKValidationError
1356
- > {
1357
- return safeParse(
1358
- jsonString,
1359
- (x) =>
1360
- ListDatasetDatapointsMessagesAssistantMessage$inboundSchema.parse(
1361
- JSON.parse(x),
1362
- ),
1363
- `Failed to parse 'ListDatasetDatapointsMessagesAssistantMessage' from JSON`,
1364
- );
1365
- }
1366
-
1367
- /** @internal */
1368
- export const ListDatasetDatapoints2DatasetsType$inboundSchema: z.ZodNativeEnum<
1369
- typeof ListDatasetDatapoints2DatasetsType
1370
- > = z.nativeEnum(ListDatasetDatapoints2DatasetsType);
1371
-
1372
- /** @internal */
1373
- export const ListDatasetDatapoints2Ttl$inboundSchema: z.ZodNativeEnum<
1374
- typeof ListDatasetDatapoints2Ttl
1375
- > = z.nativeEnum(ListDatasetDatapoints2Ttl);
1376
-
1377
- /** @internal */
1378
- export const ListDatasetDatapoints2CacheControl$inboundSchema: z.ZodType<
1379
- ListDatasetDatapoints2CacheControl,
1380
- z.ZodTypeDef,
1381
- unknown
1382
- > = z.object({
1383
- type: ListDatasetDatapoints2DatasetsType$inboundSchema,
1384
- ttl: ListDatasetDatapoints2Ttl$inboundSchema.default("5m"),
1385
- });
1386
-
1387
- export function listDatasetDatapoints2CacheControlFromJSON(
1388
- jsonString: string,
1389
- ): SafeParseResult<ListDatasetDatapoints2CacheControl, SDKValidationError> {
1390
- return safeParse(
1391
- jsonString,
1392
- (x) =>
1393
- ListDatasetDatapoints2CacheControl$inboundSchema.parse(JSON.parse(x)),
1394
- `Failed to parse 'ListDatasetDatapoints2CacheControl' from JSON`,
1395
- );
1396
- }
1397
-
1398
- /** @internal */
1399
- export const ListDatasetDatapoints24$inboundSchema: z.ZodType<
1400
- ListDatasetDatapoints24,
1401
- z.ZodTypeDef,
1402
- unknown
1403
- > = z.object({
1404
- type: z.literal("file"),
1405
- cache_control: z.lazy(() => ListDatasetDatapoints2CacheControl$inboundSchema)
1406
- .optional(),
1407
- file: components.FileContentPartSchema$inboundSchema,
1408
- }).transform((v) => {
1409
- return remap$(v, {
1410
- "cache_control": "cacheControl",
1411
- });
1412
- });
1413
-
1414
- export function listDatasetDatapoints24FromJSON(
1415
- jsonString: string,
1416
- ): SafeParseResult<ListDatasetDatapoints24, SDKValidationError> {
1417
- return safeParse(
1418
- jsonString,
1419
- (x) => ListDatasetDatapoints24$inboundSchema.parse(JSON.parse(x)),
1420
- `Failed to parse 'ListDatasetDatapoints24' from JSON`,
1421
- );
1422
- }
1423
-
1424
- /** @internal */
1425
- export const ListDatasetDatapointsContent2$inboundSchema: z.ZodType<
1426
- ListDatasetDatapointsContent2,
1427
- z.ZodTypeDef,
1428
- unknown
1429
- > = z.union([
1430
- components.TextContentPartSchema$inboundSchema.and(
1431
- z.object({ type: z.literal("text") }),
1432
- ),
1433
- components.ImageContentPartSchema$inboundSchema,
1434
- components.AudioContentPartSchema$inboundSchema,
1435
- z.lazy(() => ListDatasetDatapoints24$inboundSchema),
1436
- ]);
1437
-
1438
- export function listDatasetDatapointsContent2FromJSON(
1439
- jsonString: string,
1440
- ): SafeParseResult<ListDatasetDatapointsContent2, SDKValidationError> {
1441
- return safeParse(
1442
- jsonString,
1443
- (x) => ListDatasetDatapointsContent2$inboundSchema.parse(JSON.parse(x)),
1444
- `Failed to parse 'ListDatasetDatapointsContent2' from JSON`,
1445
- );
1446
- }
1447
-
1448
- /** @internal */
1449
- export const ListDatasetDatapointsMessagesDatasetsResponseContent$inboundSchema:
1450
- z.ZodType<
1451
- ListDatasetDatapointsMessagesDatasetsResponseContent,
1452
- z.ZodTypeDef,
1453
- unknown
1454
- > = z.union([
1455
- z.string(),
1456
- z.array(
1457
- z.union([
1458
- components.TextContentPartSchema$inboundSchema.and(
1459
- z.object({ type: z.literal("text") }),
1460
- ),
1461
- components.ImageContentPartSchema$inboundSchema,
1462
- components.AudioContentPartSchema$inboundSchema,
1463
- z.lazy(() => ListDatasetDatapoints24$inboundSchema),
1464
- ]),
1465
- ),
1466
- ]);
1467
-
1468
- export function listDatasetDatapointsMessagesDatasetsResponseContentFromJSON(
1469
- jsonString: string,
1470
- ): SafeParseResult<
1471
- ListDatasetDatapointsMessagesDatasetsResponseContent,
1472
- SDKValidationError
1473
- > {
1474
- return safeParse(
1475
- jsonString,
1476
- (x) =>
1477
- ListDatasetDatapointsMessagesDatasetsResponseContent$inboundSchema.parse(
1478
- JSON.parse(x),
1479
- ),
1480
- `Failed to parse 'ListDatasetDatapointsMessagesDatasetsResponseContent' from JSON`,
1481
- );
1482
- }
1483
-
1484
- /** @internal */
1485
- export const ListDatasetDatapointsMessagesUserMessage$inboundSchema: z.ZodType<
1486
- ListDatasetDatapointsMessagesUserMessage,
1487
- z.ZodTypeDef,
1488
- unknown
1489
- > = z.object({
1490
- role: z.literal("user"),
1491
- name: z.string().optional(),
1492
- content: z.union([
1493
- z.string(),
1494
- z.array(
1495
- z.union([
1496
- components.TextContentPartSchema$inboundSchema.and(
1497
- z.object({ type: z.literal("text") }),
1498
- ),
1499
- components.ImageContentPartSchema$inboundSchema,
1500
- components.AudioContentPartSchema$inboundSchema,
1501
- z.lazy(() => ListDatasetDatapoints24$inboundSchema),
1502
- ]),
1503
- ),
1504
- ]),
1505
- });
1506
-
1507
- export function listDatasetDatapointsMessagesUserMessageFromJSON(
1508
- jsonString: string,
1509
- ): SafeParseResult<
1510
- ListDatasetDatapointsMessagesUserMessage,
1511
- SDKValidationError
1512
- > {
1513
- return safeParse(
1514
- jsonString,
1515
- (x) =>
1516
- ListDatasetDatapointsMessagesUserMessage$inboundSchema.parse(
1517
- JSON.parse(x),
1518
- ),
1519
- `Failed to parse 'ListDatasetDatapointsMessagesUserMessage' from JSON`,
1520
- );
1521
- }
1522
-
1523
- /** @internal */
1524
- export const ListDatasetDatapointsMessagesDatasetsContent$inboundSchema:
1525
- z.ZodType<
1526
- ListDatasetDatapointsMessagesDatasetsContent,
1527
- z.ZodTypeDef,
1528
- unknown
1529
- > = z.union([
1530
- z.string(),
1531
- z.array(components.TextContentPartSchema$inboundSchema),
1532
- ]);
1533
-
1534
- export function listDatasetDatapointsMessagesDatasetsContentFromJSON(
1535
- jsonString: string,
1536
- ): SafeParseResult<
1537
- ListDatasetDatapointsMessagesDatasetsContent,
1538
- SDKValidationError
1539
- > {
1540
- return safeParse(
1541
- jsonString,
1542
- (x) =>
1543
- ListDatasetDatapointsMessagesDatasetsContent$inboundSchema.parse(
1544
- JSON.parse(x),
1545
- ),
1546
- `Failed to parse 'ListDatasetDatapointsMessagesDatasetsContent' from JSON`,
1547
- );
1548
- }
1549
-
1550
- /** @internal */
1551
- export const ListDatasetDatapointsMessagesDeveloperMessage$inboundSchema:
1552
- z.ZodType<
1553
- ListDatasetDatapointsMessagesDeveloperMessage,
1554
- z.ZodTypeDef,
1555
- unknown
1556
- > = z.object({
1557
- role: z.literal("developer"),
1558
- content: z.union([
1559
- z.string(),
1560
- z.array(components.TextContentPartSchema$inboundSchema),
1561
- ]),
1562
- name: z.string().optional(),
1563
- });
1564
-
1565
- export function listDatasetDatapointsMessagesDeveloperMessageFromJSON(
1566
- jsonString: string,
1567
- ): SafeParseResult<
1568
- ListDatasetDatapointsMessagesDeveloperMessage,
1569
- SDKValidationError
1570
- > {
1571
- return safeParse(
1572
- jsonString,
1573
- (x) =>
1574
- ListDatasetDatapointsMessagesDeveloperMessage$inboundSchema.parse(
1575
- JSON.parse(x),
1576
- ),
1577
- `Failed to parse 'ListDatasetDatapointsMessagesDeveloperMessage' from JSON`,
1578
- );
1579
- }
1580
-
1581
- /** @internal */
1582
- export const ListDatasetDatapointsMessagesContent$inboundSchema: z.ZodType<
1583
- ListDatasetDatapointsMessagesContent,
1584
- z.ZodTypeDef,
1585
- unknown
1586
- > = z.union([
1587
- z.string(),
1588
- z.array(components.TextContentPartSchema$inboundSchema),
1589
- ]);
1590
-
1591
- export function listDatasetDatapointsMessagesContentFromJSON(
1592
- jsonString: string,
1593
- ): SafeParseResult<ListDatasetDatapointsMessagesContent, SDKValidationError> {
1594
- return safeParse(
1595
- jsonString,
1596
- (x) =>
1597
- ListDatasetDatapointsMessagesContent$inboundSchema.parse(JSON.parse(x)),
1598
- `Failed to parse 'ListDatasetDatapointsMessagesContent' from JSON`,
1599
- );
1600
- }
1601
-
1602
- /** @internal */
1603
- export const ListDatasetDatapointsMessagesSystemMessage$inboundSchema:
1604
- z.ZodType<ListDatasetDatapointsMessagesSystemMessage, z.ZodTypeDef, unknown> =
1605
- z.object({
1606
- role: z.literal("system"),
1607
- content: z.union([
1608
- z.string(),
1609
- z.array(components.TextContentPartSchema$inboundSchema),
1610
- ]),
1611
- name: z.string().optional(),
1612
- });
1613
-
1614
- export function listDatasetDatapointsMessagesSystemMessageFromJSON(
1615
- jsonString: string,
1616
- ): SafeParseResult<
1617
- ListDatasetDatapointsMessagesSystemMessage,
1618
- SDKValidationError
1619
- > {
1620
- return safeParse(
1621
- jsonString,
1622
- (x) =>
1623
- ListDatasetDatapointsMessagesSystemMessage$inboundSchema.parse(
1624
- JSON.parse(x),
1625
- ),
1626
- `Failed to parse 'ListDatasetDatapointsMessagesSystemMessage' from JSON`,
1627
- );
1628
- }
1629
-
1630
- /** @internal */
1631
- export const ListDatasetDatapointsMessages$inboundSchema: z.ZodType<
1632
- ListDatasetDatapointsMessages,
1633
- z.ZodTypeDef,
1634
- unknown
1635
- > = z.union([
1636
- z.lazy(() => ListDatasetDatapointsMessagesSystemMessage$inboundSchema),
1637
- z.lazy(() => ListDatasetDatapointsMessagesDeveloperMessage$inboundSchema),
1638
- z.lazy(() => ListDatasetDatapointsMessagesUserMessage$inboundSchema),
1639
- z.lazy(() => ListDatasetDatapointsMessagesAssistantMessage$inboundSchema),
1640
- z.lazy(() => ListDatasetDatapointsMessagesToolMessage$inboundSchema),
1641
- ]);
1642
-
1643
- export function listDatasetDatapointsMessagesFromJSON(
1644
- jsonString: string,
1645
- ): SafeParseResult<ListDatasetDatapointsMessages, SDKValidationError> {
1646
- return safeParse(
1647
- jsonString,
1648
- (x) => ListDatasetDatapointsMessages$inboundSchema.parse(JSON.parse(x)),
1649
- `Failed to parse 'ListDatasetDatapointsMessages' from JSON`,
1650
- );
1651
- }
1652
-
1653
- /** @internal */
1654
- export const ListDatasetDatapointsEvaluationsDatasetsEvaluationType$inboundSchema:
1655
- z.ZodNativeEnum<
1656
- typeof ListDatasetDatapointsEvaluationsDatasetsEvaluationType
1657
- > = z.nativeEnum(ListDatasetDatapointsEvaluationsDatasetsEvaluationType);
1658
-
1659
- /** @internal */
1660
- export const ListDatasetDatapointsEvaluationsDatasetsResponseSource$inboundSchema:
1661
- z.ZodNativeEnum<
1662
- typeof ListDatasetDatapointsEvaluationsDatasetsResponseSource
1663
- > = z.nativeEnum(ListDatasetDatapointsEvaluationsDatasetsResponseSource);
1664
-
1665
- /** @internal */
1666
- export const ListDatasetDatapointsEvaluationsDatasetsResponseKind$inboundSchema:
1667
- z.ZodNativeEnum<typeof ListDatasetDatapointsEvaluationsDatasetsResponseKind> =
1668
- z.nativeEnum(ListDatasetDatapointsEvaluationsDatasetsResponseKind);
1669
-
1670
- /** @internal */
1671
- export const ListDatasetDatapointsEvaluationsDatasetsAnnotator$inboundSchema:
1672
- z.ZodType<
1673
- ListDatasetDatapointsEvaluationsDatasetsAnnotator,
1674
- z.ZodTypeDef,
1675
- unknown
1676
- > = z.object({
1677
- kind: ListDatasetDatapointsEvaluationsDatasetsResponseKind$inboundSchema,
1678
- actor_id: z.string(),
1679
- }).transform((v) => {
1680
- return remap$(v, {
1681
- "actor_id": "actorId",
1682
- });
1683
- });
1684
-
1685
- export function listDatasetDatapointsEvaluationsDatasetsAnnotatorFromJSON(
1686
- jsonString: string,
1687
- ): SafeParseResult<
1688
- ListDatasetDatapointsEvaluationsDatasetsAnnotator,
1689
- SDKValidationError
1690
- > {
1691
- return safeParse(
1692
- jsonString,
1693
- (x) =>
1694
- ListDatasetDatapointsEvaluationsDatasetsAnnotator$inboundSchema.parse(
1695
- JSON.parse(x),
1696
- ),
1697
- `Failed to parse 'ListDatasetDatapointsEvaluationsDatasetsAnnotator' from JSON`,
1698
- );
1699
- }
1700
-
1701
- /** @internal */
1702
- export const ListDatasetDatapointsEvaluationsDatasetsOutputSchema$inboundSchema:
1703
- z.ZodNativeEnum<typeof ListDatasetDatapointsEvaluationsDatasetsOutputSchema> =
1704
- z.nativeEnum(ListDatasetDatapointsEvaluationsDatasetsOutputSchema);
1705
-
1706
- /** @internal */
1707
- export const ListDatasetDatapointsEvaluations4$inboundSchema: z.ZodType<
1708
- ListDatasetDatapointsEvaluations4,
1709
- z.ZodTypeDef,
1710
- unknown
1711
- > = z.object({
1712
- id: z.string(),
1713
- evaluation_type:
1714
- ListDatasetDatapointsEvaluationsDatasetsEvaluationType$inboundSchema,
1715
- human_review_id: z.string().optional(),
1716
- source: ListDatasetDatapointsEvaluationsDatasetsResponseSource$inboundSchema
1717
- .default("orq"),
1718
- annotator: z.lazy(() =>
1719
- ListDatasetDatapointsEvaluationsDatasetsAnnotator$inboundSchema
1720
- ).optional(),
1721
- output_schema:
1722
- ListDatasetDatapointsEvaluationsDatasetsOutputSchema$inboundSchema
1723
- .optional(),
1724
- parent_annotation_id: z.string().optional(),
1725
- explanation: z.string().optional(),
1726
- reviewed_by_id: z.string(),
1727
- reviewed_at: z.string().datetime({ offset: true }).default(
1728
- "2026-09-21T07:21:40.016Z",
1729
- ).transform(v => new Date(v)),
1730
- type: z.literal("string_array"),
1731
- values: z.array(z.string()),
1732
- }).transform((v) => {
1733
- return remap$(v, {
1734
- "evaluation_type": "evaluationType",
1735
- "human_review_id": "humanReviewId",
1736
- "output_schema": "outputSchema",
1737
- "parent_annotation_id": "parentAnnotationId",
1738
- "reviewed_by_id": "reviewedById",
1739
- "reviewed_at": "reviewedAt",
1740
- });
1741
- });
1742
-
1743
- export function listDatasetDatapointsEvaluations4FromJSON(
1744
- jsonString: string,
1745
- ): SafeParseResult<ListDatasetDatapointsEvaluations4, SDKValidationError> {
1746
- return safeParse(
1747
- jsonString,
1748
- (x) => ListDatasetDatapointsEvaluations4$inboundSchema.parse(JSON.parse(x)),
1749
- `Failed to parse 'ListDatasetDatapointsEvaluations4' from JSON`,
1750
- );
1751
- }
1752
-
1753
- /** @internal */
1754
- export const ListDatasetDatapointsEvaluationsEvaluationType$inboundSchema:
1755
- z.ZodNativeEnum<typeof ListDatasetDatapointsEvaluationsEvaluationType> = z
1756
- .nativeEnum(ListDatasetDatapointsEvaluationsEvaluationType);
1757
-
1758
- /** @internal */
1759
- export const ListDatasetDatapointsEvaluationsDatasetsSource$inboundSchema:
1760
- z.ZodNativeEnum<typeof ListDatasetDatapointsEvaluationsDatasetsSource> = z
1761
- .nativeEnum(ListDatasetDatapointsEvaluationsDatasetsSource);
1762
-
1763
- /** @internal */
1764
- export const ListDatasetDatapointsEvaluationsDatasetsKind$inboundSchema:
1765
- z.ZodNativeEnum<typeof ListDatasetDatapointsEvaluationsDatasetsKind> = z
1766
- .nativeEnum(ListDatasetDatapointsEvaluationsDatasetsKind);
1767
-
1768
- /** @internal */
1769
- export const ListDatasetDatapointsEvaluationsAnnotator$inboundSchema: z.ZodType<
1770
- ListDatasetDatapointsEvaluationsAnnotator,
1771
- z.ZodTypeDef,
1772
- unknown
1773
- > = z.object({
1774
- kind: ListDatasetDatapointsEvaluationsDatasetsKind$inboundSchema,
1775
- actor_id: z.string(),
1776
- }).transform((v) => {
1777
- return remap$(v, {
1778
- "actor_id": "actorId",
1779
- });
1780
- });
1781
-
1782
- export function listDatasetDatapointsEvaluationsAnnotatorFromJSON(
1783
- jsonString: string,
1784
- ): SafeParseResult<
1785
- ListDatasetDatapointsEvaluationsAnnotator,
1786
- SDKValidationError
1787
- > {
1788
- return safeParse(
1789
- jsonString,
1790
- (x) =>
1791
- ListDatasetDatapointsEvaluationsAnnotator$inboundSchema.parse(
1792
- JSON.parse(x),
1793
- ),
1794
- `Failed to parse 'ListDatasetDatapointsEvaluationsAnnotator' from JSON`,
1795
- );
1796
- }
1797
-
1798
- /** @internal */
1799
- export const ListDatasetDatapointsEvaluationsOutputSchema$inboundSchema:
1800
- z.ZodNativeEnum<typeof ListDatasetDatapointsEvaluationsOutputSchema> = z
1801
- .nativeEnum(ListDatasetDatapointsEvaluationsOutputSchema);
1802
-
1803
- /** @internal */
1804
- export const ListDatasetDatapointsEvaluations3$inboundSchema: z.ZodType<
1805
- ListDatasetDatapointsEvaluations3,
1806
- z.ZodTypeDef,
1807
- unknown
1808
- > = z.object({
1809
- id: z.string(),
1810
- evaluation_type: ListDatasetDatapointsEvaluationsEvaluationType$inboundSchema,
1811
- human_review_id: z.string().optional(),
1812
- source: ListDatasetDatapointsEvaluationsDatasetsSource$inboundSchema.default(
1813
- "orq",
1814
- ),
1815
- annotator: z.lazy(() =>
1816
- ListDatasetDatapointsEvaluationsAnnotator$inboundSchema
1817
- ).optional(),
1818
- output_schema: ListDatasetDatapointsEvaluationsOutputSchema$inboundSchema
1819
- .optional(),
1820
- parent_annotation_id: z.string().optional(),
1821
- explanation: z.string().optional(),
1822
- reviewed_by_id: z.string(),
1823
- reviewed_at: z.string().datetime({ offset: true }).default(
1824
- "2026-09-21T07:21:40.015Z",
1825
- ).transform(v => new Date(v)),
1826
- type: z.literal("boolean"),
1827
- value: z.boolean(),
1828
- }).transform((v) => {
1829
- return remap$(v, {
1830
- "evaluation_type": "evaluationType",
1831
- "human_review_id": "humanReviewId",
1832
- "output_schema": "outputSchema",
1833
- "parent_annotation_id": "parentAnnotationId",
1834
- "reviewed_by_id": "reviewedById",
1835
- "reviewed_at": "reviewedAt",
1836
- });
1837
- });
1838
-
1839
- export function listDatasetDatapointsEvaluations3FromJSON(
1840
- jsonString: string,
1841
- ): SafeParseResult<ListDatasetDatapointsEvaluations3, SDKValidationError> {
1842
- return safeParse(
1843
- jsonString,
1844
- (x) => ListDatasetDatapointsEvaluations3$inboundSchema.parse(JSON.parse(x)),
1845
- `Failed to parse 'ListDatasetDatapointsEvaluations3' from JSON`,
1846
- );
1847
- }
1848
-
1849
- /** @internal */
1850
- export const ListDatasetDatapointsEvaluationsDatasetsResponse200EvaluationType$inboundSchema:
1851
- z.ZodNativeEnum<
1852
- typeof ListDatasetDatapointsEvaluationsDatasetsResponse200EvaluationType
1853
- > = z.nativeEnum(
1854
- ListDatasetDatapointsEvaluationsDatasetsResponse200EvaluationType,
1855
- );
1856
-
1857
- /** @internal */
1858
- export const ListDatasetDatapointsEvaluationsSource$inboundSchema:
1859
- z.ZodNativeEnum<typeof ListDatasetDatapointsEvaluationsSource> = z.nativeEnum(
1860
- ListDatasetDatapointsEvaluationsSource,
1861
- );
1862
-
1863
- /** @internal */
1864
- export const ListDatasetDatapointsEvaluationsKind$inboundSchema:
1865
- z.ZodNativeEnum<typeof ListDatasetDatapointsEvaluationsKind> = z.nativeEnum(
1866
- ListDatasetDatapointsEvaluationsKind,
1867
- );
1868
-
1869
- /** @internal */
1870
- export const ListDatasetDatapointsEvaluationsDatasetsResponse200Annotator$inboundSchema:
1871
- z.ZodType<
1872
- ListDatasetDatapointsEvaluationsDatasetsResponse200Annotator,
1873
- z.ZodTypeDef,
1874
- unknown
1875
- > = z.object({
1876
- kind: ListDatasetDatapointsEvaluationsKind$inboundSchema,
1877
- actor_id: z.string(),
1878
- }).transform((v) => {
1879
- return remap$(v, {
1880
- "actor_id": "actorId",
1881
- });
1882
- });
1883
-
1884
- export function listDatasetDatapointsEvaluationsDatasetsResponse200AnnotatorFromJSON(
1885
- jsonString: string,
1886
- ): SafeParseResult<
1887
- ListDatasetDatapointsEvaluationsDatasetsResponse200Annotator,
1888
- SDKValidationError
1889
- > {
1890
- return safeParse(
1891
- jsonString,
1892
- (x) =>
1893
- ListDatasetDatapointsEvaluationsDatasetsResponse200Annotator$inboundSchema
1894
- .parse(JSON.parse(x)),
1895
- `Failed to parse 'ListDatasetDatapointsEvaluationsDatasetsResponse200Annotator' from JSON`,
1896
- );
1897
- }
1898
-
1899
- /** @internal */
1900
- export const ListDatasetDatapointsEvaluationsDatasetsResponse200OutputSchema$inboundSchema:
1901
- z.ZodNativeEnum<
1902
- typeof ListDatasetDatapointsEvaluationsDatasetsResponse200OutputSchema
1903
- > = z.nativeEnum(
1904
- ListDatasetDatapointsEvaluationsDatasetsResponse200OutputSchema,
1905
- );
1906
-
1907
- /** @internal */
1908
- export const ListDatasetDatapointsEvaluations2$inboundSchema: z.ZodType<
1909
- ListDatasetDatapointsEvaluations2,
1910
- z.ZodTypeDef,
1911
- unknown
1912
- > = z.object({
1913
- id: z.string(),
1914
- evaluation_type:
1915
- ListDatasetDatapointsEvaluationsDatasetsResponse200EvaluationType$inboundSchema,
1916
- human_review_id: z.string().optional(),
1917
- source: ListDatasetDatapointsEvaluationsSource$inboundSchema.default("orq"),
1918
- annotator: z.lazy(() =>
1919
- ListDatasetDatapointsEvaluationsDatasetsResponse200Annotator$inboundSchema
1920
- ).optional(),
1921
- output_schema:
1922
- ListDatasetDatapointsEvaluationsDatasetsResponse200OutputSchema$inboundSchema
1923
- .optional(),
1924
- parent_annotation_id: z.string().optional(),
1925
- explanation: z.string().optional(),
1926
- reviewed_by_id: z.string(),
1927
- reviewed_at: z.string().datetime({ offset: true }).default(
1928
- "2026-09-21T07:21:40.015Z",
1929
- ).transform(v => new Date(v)),
1930
- type: z.literal("number"),
1931
- value: z.number(),
1932
- }).transform((v) => {
1933
- return remap$(v, {
1934
- "evaluation_type": "evaluationType",
1935
- "human_review_id": "humanReviewId",
1936
- "output_schema": "outputSchema",
1937
- "parent_annotation_id": "parentAnnotationId",
1938
- "reviewed_by_id": "reviewedById",
1939
- "reviewed_at": "reviewedAt",
1940
- });
1941
- });
1942
-
1943
- export function listDatasetDatapointsEvaluations2FromJSON(
1944
- jsonString: string,
1945
- ): SafeParseResult<ListDatasetDatapointsEvaluations2, SDKValidationError> {
1946
- return safeParse(
1947
- jsonString,
1948
- (x) => ListDatasetDatapointsEvaluations2$inboundSchema.parse(JSON.parse(x)),
1949
- `Failed to parse 'ListDatasetDatapointsEvaluations2' from JSON`,
1950
- );
1951
- }
1952
-
1953
- /** @internal */
1954
- export const ListDatasetDatapointsEvaluationsDatasetsResponseEvaluationType$inboundSchema:
1955
- z.ZodNativeEnum<
1956
- typeof ListDatasetDatapointsEvaluationsDatasetsResponseEvaluationType
1957
- > = z.nativeEnum(
1958
- ListDatasetDatapointsEvaluationsDatasetsResponseEvaluationType,
1959
- );
1960
-
1961
- /** @internal */
1962
- export const ListDatasetDatapointsEvaluationsDatasetsResponse200Source$inboundSchema:
1963
- z.ZodNativeEnum<
1964
- typeof ListDatasetDatapointsEvaluationsDatasetsResponse200Source
1965
- > = z.nativeEnum(ListDatasetDatapointsEvaluationsDatasetsResponse200Source);
1966
-
1967
- /** @internal */
1968
- export const ListDatasetDatapointsEvaluationsDatasetsResponse200Kind$inboundSchema:
1969
- z.ZodNativeEnum<
1970
- typeof ListDatasetDatapointsEvaluationsDatasetsResponse200Kind
1971
- > = z.nativeEnum(ListDatasetDatapointsEvaluationsDatasetsResponse200Kind);
1972
-
1973
- /** @internal */
1974
- export const ListDatasetDatapointsEvaluationsDatasetsResponseAnnotator$inboundSchema:
1975
- z.ZodType<
1976
- ListDatasetDatapointsEvaluationsDatasetsResponseAnnotator,
1977
- z.ZodTypeDef,
1978
- unknown
1979
- > = z.object({
1980
- kind: ListDatasetDatapointsEvaluationsDatasetsResponse200Kind$inboundSchema,
1981
- actor_id: z.string(),
1982
- }).transform((v) => {
1983
- return remap$(v, {
1984
- "actor_id": "actorId",
1985
- });
1986
- });
1987
-
1988
- export function listDatasetDatapointsEvaluationsDatasetsResponseAnnotatorFromJSON(
1989
- jsonString: string,
1990
- ): SafeParseResult<
1991
- ListDatasetDatapointsEvaluationsDatasetsResponseAnnotator,
1992
- SDKValidationError
1993
- > {
1994
- return safeParse(
1995
- jsonString,
1996
- (x) =>
1997
- ListDatasetDatapointsEvaluationsDatasetsResponseAnnotator$inboundSchema
1998
- .parse(JSON.parse(x)),
1999
- `Failed to parse 'ListDatasetDatapointsEvaluationsDatasetsResponseAnnotator' from JSON`,
2000
- );
2001
- }
2002
-
2003
- /** @internal */
2004
- export const ListDatasetDatapointsEvaluationsDatasetsResponseOutputSchema$inboundSchema:
2005
- z.ZodNativeEnum<
2006
- typeof ListDatasetDatapointsEvaluationsDatasetsResponseOutputSchema
2007
- > = z.nativeEnum(
2008
- ListDatasetDatapointsEvaluationsDatasetsResponseOutputSchema,
2009
- );
2010
-
2011
- /** @internal */
2012
- export const ListDatasetDatapointsEvaluations1$inboundSchema: z.ZodType<
2013
- ListDatasetDatapointsEvaluations1,
2014
- z.ZodTypeDef,
2015
- unknown
2016
- > = z.object({
2017
- id: z.string(),
2018
- evaluation_type:
2019
- ListDatasetDatapointsEvaluationsDatasetsResponseEvaluationType$inboundSchema,
2020
- human_review_id: z.string().optional(),
2021
- source:
2022
- ListDatasetDatapointsEvaluationsDatasetsResponse200Source$inboundSchema
2023
- .default("orq"),
2024
- annotator: z.lazy(() =>
2025
- ListDatasetDatapointsEvaluationsDatasetsResponseAnnotator$inboundSchema
2026
- ).optional(),
2027
- output_schema:
2028
- ListDatasetDatapointsEvaluationsDatasetsResponseOutputSchema$inboundSchema
2029
- .optional(),
2030
- parent_annotation_id: z.string().optional(),
2031
- explanation: z.string().optional(),
2032
- reviewed_by_id: z.string(),
2033
- reviewed_at: z.string().datetime({ offset: true }).default(
2034
- "2026-09-21T07:21:40.015Z",
2035
- ).transform(v => new Date(v)),
2036
- type: z.literal("string"),
2037
- value: z.string(),
2038
- }).transform((v) => {
2039
- return remap$(v, {
2040
- "evaluation_type": "evaluationType",
2041
- "human_review_id": "humanReviewId",
2042
- "output_schema": "outputSchema",
2043
- "parent_annotation_id": "parentAnnotationId",
2044
- "reviewed_by_id": "reviewedById",
2045
- "reviewed_at": "reviewedAt",
2046
- });
2047
- });
2048
-
2049
- export function listDatasetDatapointsEvaluations1FromJSON(
2050
- jsonString: string,
2051
- ): SafeParseResult<ListDatasetDatapointsEvaluations1, SDKValidationError> {
2052
- return safeParse(
2053
- jsonString,
2054
- (x) => ListDatasetDatapointsEvaluations1$inboundSchema.parse(JSON.parse(x)),
2055
- `Failed to parse 'ListDatasetDatapointsEvaluations1' from JSON`,
2056
- );
2057
- }
2058
-
2059
- /** @internal */
2060
- export const ListDatasetDatapointsEvaluations$inboundSchema: z.ZodType<
2061
- ListDatasetDatapointsEvaluations,
2062
- z.ZodTypeDef,
2063
- unknown
2064
- > = z.union([
2065
- z.lazy(() => ListDatasetDatapointsEvaluations1$inboundSchema),
2066
- z.lazy(() => ListDatasetDatapointsEvaluations2$inboundSchema),
2067
- z.lazy(() => ListDatasetDatapointsEvaluations3$inboundSchema),
2068
- z.lazy(() => ListDatasetDatapointsEvaluations4$inboundSchema),
2069
- ]);
2070
-
2071
- export function listDatasetDatapointsEvaluationsFromJSON(
2072
- jsonString: string,
2073
- ): SafeParseResult<ListDatasetDatapointsEvaluations, SDKValidationError> {
2074
- return safeParse(
2075
- jsonString,
2076
- (x) => ListDatasetDatapointsEvaluations$inboundSchema.parse(JSON.parse(x)),
2077
- `Failed to parse 'ListDatasetDatapointsEvaluations' from JSON`,
2078
- );
2079
- }
2080
-
2081
- /** @internal */
2082
- export const ListDatasetDatapointsData$inboundSchema: z.ZodType<
2083
- ListDatasetDatapointsData,
2084
- z.ZodTypeDef,
2085
- unknown
2086
- > = z.object({
2087
- _id: z.string(),
2088
- workspace_id: z.string(),
2089
- inputs: z.record(z.any()).optional(),
2090
- messages: z.array(
2091
- z.union([
2092
- z.lazy(() => ListDatasetDatapointsMessagesSystemMessage$inboundSchema),
2093
- z.lazy(() =>
2094
- ListDatasetDatapointsMessagesDeveloperMessage$inboundSchema
2095
- ),
2096
- z.lazy(() => ListDatasetDatapointsMessagesUserMessage$inboundSchema),
2097
- z.lazy(() => ListDatasetDatapointsMessagesAssistantMessage$inboundSchema),
2098
- z.lazy(() => ListDatasetDatapointsMessagesToolMessage$inboundSchema),
2099
- ]),
2100
- ).optional(),
2101
- expected_output: z.string().optional(),
2102
- evaluations: z.array(
2103
- z.union([
2104
- z.lazy(() => ListDatasetDatapointsEvaluations1$inboundSchema),
2105
- z.lazy(() => ListDatasetDatapointsEvaluations2$inboundSchema),
2106
- z.lazy(() => ListDatasetDatapointsEvaluations3$inboundSchema),
2107
- z.lazy(() => ListDatasetDatapointsEvaluations4$inboundSchema),
2108
- ]),
2109
- ).optional(),
2110
- dataset_id: z.string(),
2111
- snapshot_version: z.string().optional(),
2112
- created_by_id: z.nullable(z.string()).optional(),
2113
- updated_by_id: z.nullable(z.string()).optional(),
2114
- created: z.string().datetime({ offset: true }).transform(v => new Date(v))
2115
- .optional(),
2116
- updated: z.string().datetime({ offset: true }).default(
2117
- "2026-09-21T07:21:34.711Z",
2118
- ).transform(v => new Date(v)),
2119
- }).transform((v) => {
2120
- return remap$(v, {
2121
- "_id": "id",
2122
- "workspace_id": "workspaceId",
2123
- "expected_output": "expectedOutput",
2124
- "dataset_id": "datasetId",
2125
- "snapshot_version": "snapshotVersion",
2126
- "created_by_id": "createdById",
2127
- "updated_by_id": "updatedById",
2128
- });
2129
- });
2130
-
2131
- export function listDatasetDatapointsDataFromJSON(
2132
- jsonString: string,
2133
- ): SafeParseResult<ListDatasetDatapointsData, SDKValidationError> {
2134
- return safeParse(
2135
- jsonString,
2136
- (x) => ListDatasetDatapointsData$inboundSchema.parse(JSON.parse(x)),
2137
- `Failed to parse 'ListDatasetDatapointsData' from JSON`,
2138
- );
2139
- }
2140
-
2141
- /** @internal */
2142
- export const ListDatasetDatapointsResponseBody$inboundSchema: z.ZodType<
2143
- ListDatasetDatapointsResponseBody,
2144
- z.ZodTypeDef,
2145
- unknown
2146
- > = z.object({
2147
- object: ListDatasetDatapointsObject$inboundSchema,
2148
- data: z.array(z.lazy(() => ListDatasetDatapointsData$inboundSchema)),
2149
- has_more: z.boolean(),
2150
- }).transform((v) => {
2151
- return remap$(v, {
2152
- "has_more": "hasMore",
2153
- });
2154
- });
2155
-
2156
- export function listDatasetDatapointsResponseBodyFromJSON(
2157
- jsonString: string,
2158
- ): SafeParseResult<ListDatasetDatapointsResponseBody, SDKValidationError> {
2159
- return safeParse(
2160
- jsonString,
2161
- (x) => ListDatasetDatapointsResponseBody$inboundSchema.parse(JSON.parse(x)),
2162
- `Failed to parse 'ListDatasetDatapointsResponseBody' from JSON`,
2163
- );
2164
- }