@arizeai/phoenix-client 6.12.0 → 6.12.2

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 (222) hide show
  1. package/dist/esm/__generated__/api/v1.d.ts +1005 -74
  2. package/dist/esm/__generated__/api/v1.d.ts.map +1 -1
  3. package/dist/esm/client.d.ts +11 -11
  4. package/dist/esm/client.d.ts.map +1 -1
  5. package/dist/esm/client.js.map +1 -1
  6. package/dist/esm/experiments/logging.d.ts.map +1 -1
  7. package/dist/esm/jest/reporter.d.ts.map +1 -1
  8. package/dist/esm/logger.js.map +1 -1
  9. package/dist/esm/prompts/sdks/constants.d.ts.map +1 -1
  10. package/dist/esm/prompts/sdks/toAI.d.ts.map +1 -1
  11. package/dist/esm/prompts/sdks/toAnthropic.d.ts.map +1 -1
  12. package/dist/esm/prompts/sdks/toOpenAI.d.ts.map +1 -1
  13. package/dist/esm/prompts/sdks/toSDK.d.ts +6 -3
  14. package/dist/esm/prompts/sdks/toSDK.d.ts.map +1 -1
  15. package/dist/esm/schemas/jsonSchema.d.ts +10 -10
  16. package/dist/esm/schemas/llm/anthropic/converters.d.ts +28 -28
  17. package/dist/esm/schemas/llm/anthropic/converters.js.map +1 -1
  18. package/dist/esm/schemas/llm/anthropic/messageSchemas.d.ts +4 -4
  19. package/dist/esm/schemas/llm/anthropic/toolSchemas.d.ts +10 -10
  20. package/dist/esm/schemas/llm/constants.d.ts +75 -75
  21. package/dist/esm/schemas/llm/converters.d.ts +339 -339
  22. package/dist/esm/schemas/llm/converters.d.ts.map +1 -1
  23. package/dist/esm/schemas/llm/openai/converters.d.ts +40 -40
  24. package/dist/esm/schemas/llm/openai/converters.js.map +1 -1
  25. package/dist/esm/schemas/llm/openai/messageSchemas.d.ts +3 -3
  26. package/dist/esm/schemas/llm/openai/responseFormatSchema.d.ts +10 -10
  27. package/dist/esm/schemas/llm/openai/toolSchemas.d.ts +10 -10
  28. package/dist/esm/schemas/llm/phoenixPrompt/converters.d.ts +15 -15
  29. package/dist/esm/schemas/llm/phoenixPrompt/messagePartSchemas.d.ts.map +1 -1
  30. package/dist/esm/schemas/llm/phoenixPrompt/messageSchemas.d.ts +12 -12
  31. package/dist/esm/schemas/llm/schemas.d.ts +25 -25
  32. package/dist/esm/schemas/llm/utils.d.ts.map +1 -1
  33. package/dist/esm/schemas/llm/vercel/messageSchemas.d.ts +2 -2
  34. package/dist/esm/spans/logSpans.d.ts.map +1 -1
  35. package/dist/esm/testing/report-artifacts.js.map +1 -1
  36. package/dist/esm/testing/report-run.d.ts.map +1 -1
  37. package/dist/esm/testing/reporter-format.js.map +1 -1
  38. package/dist/esm/testing/runner.js.map +1 -1
  39. package/dist/esm/tsconfig.esm.tsbuildinfo +1 -1
  40. package/dist/esm/utils/channel.d.ts.map +1 -1
  41. package/dist/esm/utils/channel.js.map +1 -1
  42. package/dist/esm/utils/formatPromptMessages.d.ts +1 -1
  43. package/dist/esm/utils/formatPromptMessages.d.ts.map +1 -1
  44. package/dist/esm/utils/formatPromptMessages.js.map +1 -1
  45. package/dist/esm/utils/getPromptBySelector.d.ts +5 -294
  46. package/dist/esm/utils/getPromptBySelector.d.ts.map +1 -1
  47. package/dist/esm/utils/schemaMatches.d.ts +1 -1
  48. package/dist/esm/utils/schemaMatches.d.ts.map +1 -1
  49. package/dist/esm/vitest/reporter.d.ts.map +1 -1
  50. package/dist/src/__generated__/api/v1.d.ts +1005 -74
  51. package/dist/src/__generated__/api/v1.d.ts.map +1 -1
  52. package/dist/src/client.d.ts +13 -13
  53. package/dist/src/client.d.ts.map +1 -1
  54. package/dist/src/client.js.map +1 -1
  55. package/dist/src/config.js.map +1 -1
  56. package/dist/src/constants/serverRequirements.js.map +1 -1
  57. package/dist/src/datasets/appendDatasetExamples.js.map +1 -1
  58. package/dist/src/datasets/createDataset.js +2 -1
  59. package/dist/src/datasets/createDataset.js.map +1 -1
  60. package/dist/src/datasets/getDataset.js.map +1 -1
  61. package/dist/src/datasets/getDatasetExamples.js.map +1 -1
  62. package/dist/src/datasets/getDatasetInfo.js.map +1 -1
  63. package/dist/src/datasets/getDatasetInfoByName.js.map +1 -1
  64. package/dist/src/datasets/listDatasets.js.map +1 -1
  65. package/dist/src/experiments/createExperiment.js.map +1 -1
  66. package/dist/src/experiments/deleteExperiment.js.map +1 -1
  67. package/dist/src/experiments/getExperiment.js.map +1 -1
  68. package/dist/src/experiments/getExperimentInfo.js.map +1 -1
  69. package/dist/src/experiments/getExperimentRuns.js.map +1 -1
  70. package/dist/src/experiments/helpers/asExperimentEvaluator.js.map +1 -1
  71. package/dist/src/experiments/helpers/fromPhoenixLLMEvaluator.js.map +1 -1
  72. package/dist/src/experiments/helpers/getExampleGlobalId.js.map +1 -1
  73. package/dist/src/experiments/helpers/getExperimentEvaluators.js.map +1 -1
  74. package/dist/src/experiments/listExperiments.js.map +1 -1
  75. package/dist/src/experiments/logging.d.ts.map +1 -1
  76. package/dist/src/experiments/logging.js.map +1 -1
  77. package/dist/src/experiments/resumeEvaluation.js +4 -3
  78. package/dist/src/experiments/resumeEvaluation.js.map +1 -1
  79. package/dist/src/experiments/resumeExperiment.js +4 -3
  80. package/dist/src/experiments/resumeExperiment.js.map +1 -1
  81. package/dist/src/experiments/runExperiment.js +2 -1
  82. package/dist/src/experiments/runExperiment.js.map +1 -1
  83. package/dist/src/experiments/tracing.js.map +1 -1
  84. package/dist/src/jest/index.js +1 -2
  85. package/dist/src/jest/index.js.map +1 -1
  86. package/dist/src/jest/reporter.d.ts.map +1 -1
  87. package/dist/src/jest/reporter.js.map +1 -1
  88. package/dist/src/logger.js.map +1 -1
  89. package/dist/src/prompts/createPrompt.js.map +1 -1
  90. package/dist/src/prompts/getPrompt.js.map +1 -1
  91. package/dist/src/prompts/listPrompts.js.map +1 -1
  92. package/dist/src/prompts/sdks/constants.d.ts.map +1 -1
  93. package/dist/src/prompts/sdks/toAI.d.ts.map +1 -1
  94. package/dist/src/prompts/sdks/toAI.js +8 -8
  95. package/dist/src/prompts/sdks/toAI.js.map +1 -1
  96. package/dist/src/prompts/sdks/toAnthropic.d.ts.map +1 -1
  97. package/dist/src/prompts/sdks/toAnthropic.js +4 -3
  98. package/dist/src/prompts/sdks/toAnthropic.js.map +1 -1
  99. package/dist/src/prompts/sdks/toOpenAI.d.ts.map +1 -1
  100. package/dist/src/prompts/sdks/toOpenAI.js +4 -3
  101. package/dist/src/prompts/sdks/toOpenAI.js.map +1 -1
  102. package/dist/src/prompts/sdks/toSDK.d.ts +6 -3
  103. package/dist/src/prompts/sdks/toSDK.d.ts.map +1 -1
  104. package/dist/src/prompts/sdks/toSDK.js.map +1 -1
  105. package/dist/src/schemas/jsonLiteralSchema.js.map +1 -1
  106. package/dist/src/schemas/jsonSchema.d.ts +10 -10
  107. package/dist/src/schemas/llm/anthropic/converters.d.ts +28 -28
  108. package/dist/src/schemas/llm/anthropic/converters.js +10 -13
  109. package/dist/src/schemas/llm/anthropic/converters.js.map +1 -1
  110. package/dist/src/schemas/llm/anthropic/messagePartSchemas.js.map +1 -1
  111. package/dist/src/schemas/llm/anthropic/messageSchemas.d.ts +4 -4
  112. package/dist/src/schemas/llm/anthropic/messageSchemas.js.map +1 -1
  113. package/dist/src/schemas/llm/anthropic/toolCallSchemas.js.map +1 -1
  114. package/dist/src/schemas/llm/anthropic/toolSchemas.d.ts +10 -10
  115. package/dist/src/schemas/llm/anthropic/toolSchemas.js.map +1 -1
  116. package/dist/src/schemas/llm/constants.d.ts +75 -75
  117. package/dist/src/schemas/llm/converters.d.ts +339 -339
  118. package/dist/src/schemas/llm/converters.d.ts.map +1 -1
  119. package/dist/src/schemas/llm/converters.js +5 -3
  120. package/dist/src/schemas/llm/converters.js.map +1 -1
  121. package/dist/src/schemas/llm/openai/converters.d.ts +40 -40
  122. package/dist/src/schemas/llm/openai/converters.js +10 -12
  123. package/dist/src/schemas/llm/openai/converters.js.map +1 -1
  124. package/dist/src/schemas/llm/openai/messagePartSchemas.js.map +1 -1
  125. package/dist/src/schemas/llm/openai/messageSchemas.d.ts +3 -3
  126. package/dist/src/schemas/llm/openai/messageSchemas.js.map +1 -1
  127. package/dist/src/schemas/llm/openai/responseFormatSchema.d.ts +10 -10
  128. package/dist/src/schemas/llm/openai/toolCallSchemas.js.map +1 -1
  129. package/dist/src/schemas/llm/openai/toolSchemas.d.ts +10 -10
  130. package/dist/src/schemas/llm/openai/toolSchemas.js.map +1 -1
  131. package/dist/src/schemas/llm/phoenixPrompt/converters.d.ts +15 -15
  132. package/dist/src/schemas/llm/phoenixPrompt/converters.js +7 -10
  133. package/dist/src/schemas/llm/phoenixPrompt/converters.js.map +1 -1
  134. package/dist/src/schemas/llm/phoenixPrompt/messagePartSchemas.d.ts.map +1 -1
  135. package/dist/src/schemas/llm/phoenixPrompt/messagePartSchemas.js.map +1 -1
  136. package/dist/src/schemas/llm/phoenixPrompt/messageSchemas.d.ts +12 -12
  137. package/dist/src/schemas/llm/phoenixPrompt/messageSchemas.js.map +1 -1
  138. package/dist/src/schemas/llm/schemas.d.ts +25 -25
  139. package/dist/src/schemas/llm/schemas.js.map +1 -1
  140. package/dist/src/schemas/llm/utils.d.ts.map +1 -1
  141. package/dist/src/schemas/llm/utils.js.map +1 -1
  142. package/dist/src/schemas/llm/vercel/messagePartSchemas.js.map +1 -1
  143. package/dist/src/schemas/llm/vercel/messageSchemas.d.ts +2 -2
  144. package/dist/src/sessions/addSessionAnnotation.js.map +1 -1
  145. package/dist/src/sessions/addSessionNote.js.map +1 -1
  146. package/dist/src/sessions/deleteSession.js.map +1 -1
  147. package/dist/src/sessions/deleteSessions.js.map +1 -1
  148. package/dist/src/sessions/getSession.js.map +1 -1
  149. package/dist/src/sessions/getSessionTurns.js.map +1 -1
  150. package/dist/src/sessions/listSessions.js +2 -1
  151. package/dist/src/sessions/listSessions.js.map +1 -1
  152. package/dist/src/sessions/logSessionAnnotations.js.map +1 -1
  153. package/dist/src/sessions/sessionUtils.js.map +1 -1
  154. package/dist/src/sessions/types.js +5 -4
  155. package/dist/src/sessions/types.js.map +1 -1
  156. package/dist/src/spans/addDocumentAnnotation.js.map +1 -1
  157. package/dist/src/spans/addSpanAnnotation.js.map +1 -1
  158. package/dist/src/spans/addSpanNote.js.map +1 -1
  159. package/dist/src/spans/deleteSpan.js.map +1 -1
  160. package/dist/src/spans/getSpanAnnotations.js.map +1 -1
  161. package/dist/src/spans/getSpans.js.map +1 -1
  162. package/dist/src/spans/logDocumentAnnotations.js.map +1 -1
  163. package/dist/src/spans/logSpanAnnotations.js.map +1 -1
  164. package/dist/src/spans/logSpans.d.ts.map +1 -1
  165. package/dist/src/spans/logSpans.js +4 -3
  166. package/dist/src/spans/logSpans.js.map +1 -1
  167. package/dist/src/spans/types.js +5 -4
  168. package/dist/src/spans/types.js.map +1 -1
  169. package/dist/src/testing/acceptance.js.map +1 -1
  170. package/dist/src/testing/define-api.js.map +1 -1
  171. package/dist/src/testing/helpers.js.map +1 -1
  172. package/dist/src/testing/phoenix-test-tracking.js +25 -23
  173. package/dist/src/testing/phoenix-test-tracking.js.map +1 -1
  174. package/dist/src/testing/report-artifacts.js.map +1 -1
  175. package/dist/src/testing/report-run.d.ts.map +1 -1
  176. package/dist/src/testing/report-run.js.map +1 -1
  177. package/dist/src/testing/reporter-format.js +8 -5
  178. package/dist/src/testing/reporter-format.js.map +1 -1
  179. package/dist/src/testing/runner.js.map +1 -1
  180. package/dist/src/testing/state.js.map +1 -1
  181. package/dist/src/testing/types.js.map +1 -1
  182. package/dist/src/traces/addTraceAnnotation.js.map +1 -1
  183. package/dist/src/traces/addTraceNote.js.map +1 -1
  184. package/dist/src/traces/getTraces.js.map +1 -1
  185. package/dist/src/traces/logTraceAnnotations.js.map +1 -1
  186. package/dist/src/traces/types.js +5 -4
  187. package/dist/src/traces/types.js.map +1 -1
  188. package/dist/src/types/projects.js.map +1 -1
  189. package/dist/src/types/prompts.js.map +1 -1
  190. package/dist/src/utils/apiErrorUtils.js.map +1 -1
  191. package/dist/src/utils/assertUnreachable.js.map +1 -1
  192. package/dist/src/utils/channel.d.ts.map +1 -1
  193. package/dist/src/utils/channel.js.map +1 -1
  194. package/dist/src/utils/ensureString.js +2 -1
  195. package/dist/src/utils/ensureString.js.map +1 -1
  196. package/dist/src/utils/formatPromptMessages.d.ts +1 -1
  197. package/dist/src/utils/formatPromptMessages.d.ts.map +1 -1
  198. package/dist/src/utils/formatPromptMessages.js.map +1 -1
  199. package/dist/src/utils/getPromptBySelector.d.ts +5 -294
  200. package/dist/src/utils/getPromptBySelector.d.ts.map +1 -1
  201. package/dist/src/utils/getPromptBySelector.js.map +1 -1
  202. package/dist/src/utils/isHttpError.js.map +1 -1
  203. package/dist/src/utils/isObject.js.map +1 -1
  204. package/dist/src/utils/pluralize.js.map +1 -1
  205. package/dist/src/utils/promisifyResult.js.map +1 -1
  206. package/dist/src/utils/safelyParseJSON.js.map +1 -1
  207. package/dist/src/utils/safelyStringifyJSON.js.map +1 -1
  208. package/dist/src/utils/schemaMatches.d.ts +1 -1
  209. package/dist/src/utils/schemaMatches.d.ts.map +1 -1
  210. package/dist/src/utils/schemaMatches.js.map +1 -1
  211. package/dist/src/utils/semverUtils.js.map +1 -1
  212. package/dist/src/utils/serverVersionUtils.js.map +1 -1
  213. package/dist/src/utils/toObjectHeaders.js.map +1 -1
  214. package/dist/src/utils/urlUtils.js.map +1 -1
  215. package/dist/src/vitest/index.js +1 -2
  216. package/dist/src/vitest/index.js.map +1 -1
  217. package/dist/src/vitest/reporter.d.ts.map +1 -1
  218. package/dist/src/vitest/reporter.js.map +1 -1
  219. package/dist/tsconfig.tsbuildinfo +1 -1
  220. package/docs/ci-evals.mdx +1 -1
  221. package/package.json +8 -8
  222. package/src/__generated__/api/v1.ts +1005 -74
@@ -59,6 +59,54 @@ export interface paths {
59
59
  patch?: never;
60
60
  trace?: never;
61
61
  };
62
+ "/v1/projects/{project_identifier}/annotation_configs": {
63
+ parameters: {
64
+ query?: never;
65
+ header?: never;
66
+ path?: never;
67
+ cookie?: never;
68
+ };
69
+ /**
70
+ * List annotation configurations assigned to a project
71
+ * @description Retrieve a paginated list of the annotation configurations assigned to a project, identified by either project ID or project name.
72
+ */
73
+ get: operations["getProjectAnnotationConfigs"];
74
+ /**
75
+ * Replace the set of annotation configurations assigned to a project
76
+ * @description Replace the project's entire set of assigned annotation configurations with the provided set. The server diffs the desired set against the current set: configs in the body but not assigned are added, and configs assigned but not in the body are removed. An empty array clears all assignments.
77
+ */
78
+ put: operations["setProjectAnnotationConfigs"];
79
+ post?: never;
80
+ delete?: never;
81
+ options?: never;
82
+ head?: never;
83
+ patch?: never;
84
+ trace?: never;
85
+ };
86
+ "/v1/projects/{project_identifier}/annotation_configs/{config_identifier}": {
87
+ parameters: {
88
+ query?: never;
89
+ header?: never;
90
+ path?: never;
91
+ cookie?: never;
92
+ };
93
+ get?: never;
94
+ /**
95
+ * Assign an annotation configuration to a project
96
+ * @description Assign an annotation configuration to a project. This operation is idempotent: re-assigning a config that is already assigned is a no-op that returns the config. Both the project and the config are identified by either ID or name.
97
+ */
98
+ put: operations["assignAnnotationConfigToProject"];
99
+ post?: never;
100
+ /**
101
+ * Unassign an annotation configuration from a project
102
+ * @description Unassign an annotation configuration from a project. This operation is idempotent: unassigning a config that is not currently assigned is a no-op. The underlying annotation config is not deleted. Both the project and the config are identified by either ID or name.
103
+ */
104
+ delete: operations["unassignAnnotationConfigFromProject"];
105
+ options?: never;
106
+ head?: never;
107
+ patch?: never;
108
+ trace?: never;
109
+ };
62
110
  "/v1/projects/{project_identifier}/span_annotations": {
63
111
  parameters: {
64
112
  query?: never;
@@ -197,6 +245,97 @@ export interface paths {
197
245
  patch?: never;
198
246
  trace?: never;
199
247
  };
248
+ "/v1/dataset_labels": {
249
+ parameters: {
250
+ query?: never;
251
+ header?: never;
252
+ path?: never;
253
+ cookie?: never;
254
+ };
255
+ /**
256
+ * List dataset labels
257
+ * @description Retrieve a paginated list of all dataset labels in the system.
258
+ */
259
+ get: operations["listDatasetLabels"];
260
+ put?: never;
261
+ /** Create a dataset label */
262
+ post: operations["createDatasetLabel"];
263
+ delete?: never;
264
+ options?: never;
265
+ head?: never;
266
+ patch?: never;
267
+ trace?: never;
268
+ };
269
+ "/v1/dataset_labels/{label_id}": {
270
+ parameters: {
271
+ query?: never;
272
+ header?: never;
273
+ path?: never;
274
+ cookie?: never;
275
+ };
276
+ /** Get a dataset label by ID */
277
+ get: operations["getDatasetLabel"];
278
+ put?: never;
279
+ post?: never;
280
+ /**
281
+ * Delete a dataset label by ID
282
+ * @description Delete a dataset label. This also removes the label from every dataset it is applied to.
283
+ */
284
+ delete: operations["deleteDatasetLabel"];
285
+ options?: never;
286
+ head?: never;
287
+ /**
288
+ * Update a dataset label by ID
289
+ * @description Partially update a dataset label's name, color, and/or description. Only the fields included in the request body are changed; omitted fields are left as-is.
290
+ */
291
+ patch: operations["updateDatasetLabel"];
292
+ trace?: never;
293
+ };
294
+ "/v1/datasets/{dataset_identifier}/labels": {
295
+ parameters: {
296
+ query?: never;
297
+ header?: never;
298
+ path?: never;
299
+ cookie?: never;
300
+ };
301
+ /** List the labels applied to a dataset */
302
+ get: operations["listDatasetLabelsForDataset"];
303
+ /**
304
+ * Replace the set of labels applied to a dataset
305
+ * @description Replace the entire set of labels applied to a dataset. Labels present in the request but not currently applied are added; labels currently applied but absent from the request are removed. An empty list removes all labels.
306
+ */
307
+ put: operations["setDatasetLabelsForDataset"];
308
+ post?: never;
309
+ delete?: never;
310
+ options?: never;
311
+ head?: never;
312
+ patch?: never;
313
+ trace?: never;
314
+ };
315
+ "/v1/datasets/{dataset_identifier}/labels/{label_id}": {
316
+ parameters: {
317
+ query?: never;
318
+ header?: never;
319
+ path?: never;
320
+ cookie?: never;
321
+ };
322
+ get?: never;
323
+ /**
324
+ * Apply a label to a dataset
325
+ * @description Apply an existing label to a dataset. This operation is idempotent: applying a label that is already applied is a no-op that returns the label.
326
+ */
327
+ put: operations["addDatasetLabelToDataset"];
328
+ post?: never;
329
+ /**
330
+ * Remove a label from a dataset
331
+ * @description Remove a label from a dataset without deleting the label itself. This operation is idempotent: removing a label that is not applied is a no-op.
332
+ */
333
+ delete: operations["removeDatasetLabelFromDataset"];
334
+ options?: never;
335
+ head?: never;
336
+ patch?: never;
337
+ trace?: never;
338
+ };
200
339
  "/v1/datasets": {
201
340
  parameters: {
202
341
  query?: never;
@@ -1420,6 +1559,10 @@ export interface paths {
1420
1559
  export type webhooks = Record<string, never>;
1421
1560
  export interface components {
1422
1561
  schemas: {
1562
+ /** AddDatasetLabelToDatasetResponseBody */
1563
+ AddDatasetLabelToDatasetResponseBody: {
1564
+ data: components["schemas"]["DatasetLabel"];
1565
+ };
1423
1566
  /**
1424
1567
  * AgentSpanContext
1425
1568
  * @description Span the user has selected.
@@ -1525,6 +1668,11 @@ export interface components {
1525
1668
  /** Timezone */
1526
1669
  timeZone: string;
1527
1670
  };
1671
+ /** AssignAnnotationConfigToProjectResponseBody */
1672
+ AssignAnnotationConfigToProjectResponseBody: {
1673
+ /** Data */
1674
+ data: components["schemas"]["CategoricalAnnotationConfig"] | components["schemas"]["ContinuousAnnotationConfig"] | components["schemas"]["FreeformAnnotationConfig"];
1675
+ };
1528
1676
  /**
1529
1677
  * AssistantMessageMetadata
1530
1678
  * @description Wire schema for the chat stream's `message_metadata` payload.
@@ -1807,6 +1955,28 @@ export interface components {
1807
1955
  /** Data */
1808
1956
  data: components["schemas"]["CategoricalAnnotationConfig"] | components["schemas"]["ContinuousAnnotationConfig"] | components["schemas"]["FreeformAnnotationConfig"];
1809
1957
  };
1958
+ /** CreateDatasetLabelRequestBody */
1959
+ CreateDatasetLabelRequestBody: {
1960
+ /**
1961
+ * Name
1962
+ * @description The name of the dataset label
1963
+ */
1964
+ name: string;
1965
+ /**
1966
+ * Color
1967
+ * @description A lowercase hex color code (e.g. '#00cc88') used to display the label
1968
+ */
1969
+ color: string;
1970
+ /**
1971
+ * Description
1972
+ * @description An optional description of the dataset label
1973
+ */
1974
+ description?: string | null;
1975
+ };
1976
+ /** CreateDatasetLabelResponseBody */
1977
+ CreateDatasetLabelResponseBody: {
1978
+ data: components["schemas"]["DatasetLabel"];
1979
+ };
1810
1980
  /**
1811
1981
  * CreateExperimentRequestBody
1812
1982
  * @description Details of the experiment to be created
@@ -2075,6 +2245,17 @@ export interface components {
2075
2245
  */
2076
2246
  updated_at: string;
2077
2247
  };
2248
+ /** DatasetLabel */
2249
+ DatasetLabel: {
2250
+ /** Id */
2251
+ id: string;
2252
+ /** Name */
2253
+ name: string;
2254
+ /** Description */
2255
+ description: string | null;
2256
+ /** Color */
2257
+ color: string;
2258
+ };
2078
2259
  /** DatasetVersion */
2079
2260
  DatasetVersion: {
2080
2261
  /** Version Id */
@@ -2608,6 +2789,17 @@ export interface components {
2608
2789
  /** Next Cursor */
2609
2790
  next_cursor: string | null;
2610
2791
  };
2792
+ /** GetDatasetLabelResponseBody */
2793
+ GetDatasetLabelResponseBody: {
2794
+ data: components["schemas"]["DatasetLabel"];
2795
+ };
2796
+ /** GetDatasetLabelsResponseBody */
2797
+ GetDatasetLabelsResponseBody: {
2798
+ /** Data */
2799
+ data: components["schemas"]["DatasetLabel"][];
2800
+ /** Next Cursor */
2801
+ next_cursor: string | null;
2802
+ };
2611
2803
  /** GetDatasetResponseBody */
2612
2804
  GetDatasetResponseBody: {
2613
2805
  data: components["schemas"]["DatasetWithExampleCount"];
@@ -2630,6 +2822,13 @@ export interface components {
2630
2822
  /** Next Cursor */
2631
2823
  next_cursor: string | null;
2632
2824
  };
2825
+ /** GetProjectAnnotationConfigsResponseBody */
2826
+ GetProjectAnnotationConfigsResponseBody: {
2827
+ /** Data */
2828
+ data: (components["schemas"]["CategoricalAnnotationConfig"] | components["schemas"]["ContinuousAnnotationConfig"] | components["schemas"]["FreeformAnnotationConfig"])[];
2829
+ /** Next Cursor */
2830
+ next_cursor: string | null;
2831
+ };
2633
2832
  /** GetProjectResponseBody */
2634
2833
  GetProjectResponseBody: {
2635
2834
  data: components["schemas"]["Project"];
@@ -2837,6 +3036,11 @@ export interface components {
2837
3036
  ListDatasetExamplesResponseBody: {
2838
3037
  data: components["schemas"]["ListDatasetExamplesData"];
2839
3038
  };
3039
+ /** ListDatasetLabelsForDatasetResponseBody */
3040
+ ListDatasetLabelsForDatasetResponseBody: {
3041
+ /** Data */
3042
+ data: components["schemas"]["DatasetLabel"][];
3043
+ };
2840
3044
  /** ListDatasetVersionsResponseBody */
2841
3045
  ListDatasetVersionsResponseBody: {
2842
3046
  /** Data */
@@ -4370,6 +4574,34 @@ export interface components {
4370
4574
  */
4371
4575
  end_time: string;
4372
4576
  };
4577
+ /** SetDatasetLabelsForDatasetResponseBody */
4578
+ SetDatasetLabelsForDatasetResponseBody: {
4579
+ /** Data */
4580
+ data: components["schemas"]["DatasetLabel"][];
4581
+ };
4582
+ /** SetDatasetLabelsRequestBody */
4583
+ SetDatasetLabelsRequestBody: {
4584
+ /**
4585
+ * Dataset Label Ids
4586
+ * @description The complete set of dataset label GlobalIDs to apply to the dataset. Labels not in this list are removed from the dataset; an empty list removes all labels.
4587
+ */
4588
+ dataset_label_ids?: string[];
4589
+ };
4590
+ /** SetProjectAnnotationConfigsRequestBody */
4591
+ SetProjectAnnotationConfigsRequestBody: {
4592
+ /**
4593
+ * Annotation Config Ids
4594
+ * @description The complete set of annotation configuration GlobalIDs that should be assigned to the project. Configs not in this list are unassigned; an empty list clears all assignments.
4595
+ */
4596
+ annotation_config_ids: string[];
4597
+ };
4598
+ /** SetProjectAnnotationConfigsResponseBody */
4599
+ SetProjectAnnotationConfigsResponseBody: {
4600
+ /** Data */
4601
+ data: (components["schemas"]["CategoricalAnnotationConfig"] | components["schemas"]["ContinuousAnnotationConfig"] | components["schemas"]["FreeformAnnotationConfig"])[];
4602
+ /** Next Cursor */
4603
+ next_cursor: string | null;
4604
+ };
4373
4605
  /**
4374
4606
  * SourceDocumentUIPart
4375
4607
  * @description A document source part of a message.
@@ -5253,6 +5485,31 @@ export interface components {
5253
5485
  /** Data */
5254
5486
  data: components["schemas"]["CategoricalAnnotationConfig"] | components["schemas"]["ContinuousAnnotationConfig"] | components["schemas"]["FreeformAnnotationConfig"];
5255
5487
  };
5488
+ /**
5489
+ * UpdateDatasetLabelRequestBody
5490
+ * @description Fields to update on a dataset label. Omit a field to leave it unchanged.
5491
+ */
5492
+ UpdateDatasetLabelRequestBody: {
5493
+ /**
5494
+ * Name
5495
+ * @description New name for the label (null is rejected; name is required)
5496
+ */
5497
+ name?: string | null;
5498
+ /**
5499
+ * Color
5500
+ * @description New lowercase hex color code for the label (null is rejected)
5501
+ */
5502
+ color?: string | null;
5503
+ /**
5504
+ * Description
5505
+ * @description New description for the label (null clears the description)
5506
+ */
5507
+ description?: string | null;
5508
+ };
5509
+ /** UpdateDatasetLabelResponseBody */
5510
+ UpdateDatasetLabelResponseBody: {
5511
+ data: components["schemas"]["DatasetLabel"];
5512
+ };
5256
5513
  /**
5257
5514
  * UpdateExperimentRequestBody
5258
5515
  * @description Fields to update on an experiment. Omit a field to leave it unchanged.
@@ -5680,38 +5937,30 @@ export interface operations {
5680
5937
  };
5681
5938
  };
5682
5939
  };
5683
- listSpanAnnotationsBySpanIds: {
5940
+ getProjectAnnotationConfigs: {
5684
5941
  parameters: {
5685
5942
  query?: {
5686
- /** @description Optional list of span ids to fetch annotations for. If omitted, `identifier` must be supplied. */
5687
- span_ids?: string[] | null;
5688
- /** @description Optional list of annotation identifiers to filter by. Each value must be non-empty. If omitted, `span_ids` must be supplied. When combined with `span_ids`, results are the AND-intersection of both filters. */
5689
- identifier?: string[] | null;
5690
- /** @description Optional list of annotation names to include. If provided, only annotations with these names will be returned (allowlist). When omitted, the response includes every matching row regardless of name (no annotation names are excluded by default). */
5691
- include_annotation_names?: string[] | null;
5692
- /** @description Optional list of annotation names to exclude from results. */
5693
- exclude_annotation_names?: string[] | null;
5694
- /** @description A cursor for pagination */
5943
+ /** @description Cursor for pagination (base64-encoded annotation config ID) */
5695
5944
  cursor?: string | null;
5696
- /** @description The maximum number of annotations to return in a single request */
5945
+ /** @description Maximum number of configs to return */
5697
5946
  limit?: number;
5698
5947
  };
5699
5948
  header?: never;
5700
5949
  path: {
5701
- /** @description The project identifier: either project ID or project name. If using a project name as the identifier, it cannot contain slash (/), question mark (?), or pound sign (#) characters. */
5950
+ /** @description The project identifier: either project ID or project name. */
5702
5951
  project_identifier: string;
5703
5952
  };
5704
5953
  cookie?: never;
5705
5954
  };
5706
5955
  requestBody?: never;
5707
5956
  responses: {
5708
- /** @description Successful Response */
5957
+ /** @description A list of the project's annotation configurations with pagination information */
5709
5958
  200: {
5710
5959
  headers: {
5711
5960
  [name: string]: unknown;
5712
5961
  };
5713
5962
  content: {
5714
- "application/json": components["schemas"]["SpanAnnotationsResponseBody"];
5963
+ "application/json": components["schemas"]["GetProjectAnnotationConfigsResponseBody"];
5715
5964
  };
5716
5965
  };
5717
5966
  /** @description Forbidden */
@@ -5723,7 +5972,7 @@ export interface operations {
5723
5972
  "text/plain": string;
5724
5973
  };
5725
5974
  };
5726
- /** @description Project or spans not found */
5975
+ /** @description Not Found */
5727
5976
  404: {
5728
5977
  headers: {
5729
5978
  [name: string]: unknown;
@@ -5732,7 +5981,7 @@ export interface operations {
5732
5981
  "text/plain": string;
5733
5982
  };
5734
5983
  };
5735
- /** @description Invalid parameters */
5984
+ /** @description Unprocessable Entity */
5736
5985
  422: {
5737
5986
  headers: {
5738
5987
  [name: string]: unknown;
@@ -5743,37 +5992,30 @@ export interface operations {
5743
5992
  };
5744
5993
  };
5745
5994
  };
5746
- deleteSpanAnnotations: {
5995
+ setProjectAnnotationConfigs: {
5747
5996
  parameters: {
5748
- query?: {
5749
- /** @description Optional annotation name. When provided, must be non-empty and narrows the delete to annotations of that name. */
5750
- name?: string | null;
5751
- /** @description Optional annotation identifier. When provided, must be non-empty and narrows the delete to annotations with that identifier. */
5752
- identifier?: string | null;
5753
- /** @description Optional annotator kind. When provided, narrows the delete to annotations produced by this annotator kind. */
5754
- annotator_kind?: ("LLM" | "CODE" | "HUMAN") | null;
5755
- /** @description Optional inclusive lower bound on `created_at` (>=). Naive datetimes are interpreted as UTC. */
5756
- start_time?: string | null;
5757
- /** @description Optional exclusive upper bound on `created_at` (<). Naive datetimes are interpreted as UTC. */
5758
- end_time?: string | null;
5759
- /** @description Opt-in flag that authorizes the request without a bounded `[start_time, end_time)` time window. When `false` (default) or absent, the request must supply both `start_time` AND `end_time` to bound the delete. When `true`, the time-range bound is waived and any other filters (`name`, `identifier`, `annotator_kind`) still narrow the delete within the project — e.g. `delete_all=true&name=X` deletes all annotations named X regardless of time. */
5760
- delete_all?: boolean;
5761
- };
5997
+ query?: never;
5762
5998
  header?: never;
5763
5999
  path: {
5764
- /** @description The project identifier: either project ID or project name. If using a project name as the identifier, it cannot contain slash (/), question mark (?), or pound sign (#) characters. */
6000
+ /** @description The project identifier: either project ID or project name. */
5765
6001
  project_identifier: string;
5766
6002
  };
5767
6003
  cookie?: never;
5768
6004
  };
5769
- requestBody?: never;
6005
+ requestBody: {
6006
+ content: {
6007
+ "application/json": components["schemas"]["SetProjectAnnotationConfigsRequestBody"];
6008
+ };
6009
+ };
5770
6010
  responses: {
5771
- /** @description Successful Response */
5772
- 204: {
6011
+ /** @description The resulting set of annotation configurations assigned to the project */
6012
+ 200: {
5773
6013
  headers: {
5774
6014
  [name: string]: unknown;
5775
6015
  };
5776
- content?: never;
6016
+ content: {
6017
+ "application/json": components["schemas"]["SetProjectAnnotationConfigsResponseBody"];
6018
+ };
5777
6019
  };
5778
6020
  /** @description Forbidden */
5779
6021
  403: {
@@ -5784,7 +6026,7 @@ export interface operations {
5784
6026
  "text/plain": string;
5785
6027
  };
5786
6028
  };
5787
- /** @description Project not found */
6029
+ /** @description Not Found */
5788
6030
  404: {
5789
6031
  headers: {
5790
6032
  [name: string]: unknown;
@@ -5793,7 +6035,7 @@ export interface operations {
5793
6035
  "text/plain": string;
5794
6036
  };
5795
6037
  };
5796
- /** @description Invalid parameters */
6038
+ /** @description Unprocessable Entity */
5797
6039
  422: {
5798
6040
  headers: {
5799
6041
  [name: string]: unknown;
@@ -5804,38 +6046,27 @@ export interface operations {
5804
6046
  };
5805
6047
  };
5806
6048
  };
5807
- listTraceAnnotationsByTraceIds: {
6049
+ assignAnnotationConfigToProject: {
5808
6050
  parameters: {
5809
- query?: {
5810
- /** @description Optional list of trace ids to fetch annotations for. If omitted, `identifier` must be supplied. */
5811
- trace_ids?: string[] | null;
5812
- /** @description Optional list of annotation identifiers to filter by. Each value must be non-empty. If omitted, `trace_ids` must be supplied. When combined with `trace_ids`, results are the AND-intersection of both filters. */
5813
- identifier?: string[] | null;
5814
- /** @description Optional list of annotation names to include. If provided, only annotations with these names will be returned (allowlist). When omitted, the response includes every matching row regardless of name (no annotation names are excluded by default). */
5815
- include_annotation_names?: string[] | null;
5816
- /** @description Optional list of annotation names to exclude from results. */
5817
- exclude_annotation_names?: string[] | null;
5818
- /** @description A cursor for pagination */
5819
- cursor?: string | null;
5820
- /** @description The maximum number of annotations to return in a single request */
5821
- limit?: number;
5822
- };
6051
+ query?: never;
5823
6052
  header?: never;
5824
6053
  path: {
5825
- /** @description The project identifier: either project ID or project name. If using a project name as the identifier, it cannot contain slash (/), question mark (?), or pound sign (#) characters. */
6054
+ /** @description The project identifier: either project ID or project name. */
5826
6055
  project_identifier: string;
6056
+ /** @description The annotation configuration identifier: either ID or name. */
6057
+ config_identifier: string;
5827
6058
  };
5828
6059
  cookie?: never;
5829
6060
  };
5830
6061
  requestBody?: never;
5831
6062
  responses: {
5832
- /** @description Successful Response */
6063
+ /** @description The annotation configuration assigned to the project */
5833
6064
  200: {
5834
6065
  headers: {
5835
6066
  [name: string]: unknown;
5836
6067
  };
5837
6068
  content: {
5838
- "application/json": components["schemas"]["TraceAnnotationsResponseBody"];
6069
+ "application/json": components["schemas"]["AssignAnnotationConfigToProjectResponseBody"];
5839
6070
  };
5840
6071
  };
5841
6072
  /** @description Forbidden */
@@ -5847,7 +6078,7 @@ export interface operations {
5847
6078
  "text/plain": string;
5848
6079
  };
5849
6080
  };
5850
- /** @description Project or traces not found */
6081
+ /** @description Not Found */
5851
6082
  404: {
5852
6083
  headers: {
5853
6084
  [name: string]: unknown;
@@ -5856,7 +6087,7 @@ export interface operations {
5856
6087
  "text/plain": string;
5857
6088
  };
5858
6089
  };
5859
- /** @description Invalid parameters */
6090
+ /** @description Unprocessable Entity */
5860
6091
  422: {
5861
6092
  headers: {
5862
6093
  [name: string]: unknown;
@@ -5867,25 +6098,262 @@ export interface operations {
5867
6098
  };
5868
6099
  };
5869
6100
  };
5870
- deleteTraceAnnotations: {
6101
+ unassignAnnotationConfigFromProject: {
5871
6102
  parameters: {
5872
- query?: {
5873
- /** @description Optional annotation name. When provided, must be non-empty and narrows the delete to annotations of that name. */
5874
- name?: string | null;
5875
- /** @description Optional annotation identifier. When provided, must be non-empty and narrows the delete to annotations with that identifier. */
5876
- identifier?: string | null;
5877
- /** @description Optional annotator kind. When provided, narrows the delete to annotations produced by this annotator kind. */
5878
- annotator_kind?: ("LLM" | "CODE" | "HUMAN") | null;
5879
- /** @description Optional inclusive lower bound on `created_at` (>=). Naive datetimes are interpreted as UTC. */
5880
- start_time?: string | null;
5881
- /** @description Optional exclusive upper bound on `created_at` (<). Naive datetimes are interpreted as UTC. */
5882
- end_time?: string | null;
5883
- /** @description Opt-in flag that authorizes the request without a bounded `[start_time, end_time)` time window. When `false` (default) or absent, the request must supply both `start_time` AND `end_time` to bound the delete. When `true`, the time-range bound is waived and any other filters (`name`, `identifier`, `annotator_kind`) still narrow the delete within the project — e.g. `delete_all=true&name=X` deletes all annotations named X regardless of time. */
5884
- delete_all?: boolean;
5885
- };
6103
+ query?: never;
5886
6104
  header?: never;
5887
6105
  path: {
5888
- /** @description The project identifier: either project ID or project name. If using a project name as the identifier, it cannot contain slash (/), question mark (?), or pound sign (#) characters. */
6106
+ /** @description The project identifier: either project ID or project name. */
6107
+ project_identifier: string;
6108
+ /** @description The annotation configuration identifier: either ID or name. */
6109
+ config_identifier: string;
6110
+ };
6111
+ cookie?: never;
6112
+ };
6113
+ requestBody?: never;
6114
+ responses: {
6115
+ /** @description No content returned on successful unassignment */
6116
+ 204: {
6117
+ headers: {
6118
+ [name: string]: unknown;
6119
+ };
6120
+ content?: never;
6121
+ };
6122
+ /** @description Forbidden */
6123
+ 403: {
6124
+ headers: {
6125
+ [name: string]: unknown;
6126
+ };
6127
+ content: {
6128
+ "text/plain": string;
6129
+ };
6130
+ };
6131
+ /** @description Not Found */
6132
+ 404: {
6133
+ headers: {
6134
+ [name: string]: unknown;
6135
+ };
6136
+ content: {
6137
+ "text/plain": string;
6138
+ };
6139
+ };
6140
+ /** @description Unprocessable Entity */
6141
+ 422: {
6142
+ headers: {
6143
+ [name: string]: unknown;
6144
+ };
6145
+ content: {
6146
+ "text/plain": string;
6147
+ };
6148
+ };
6149
+ };
6150
+ };
6151
+ listSpanAnnotationsBySpanIds: {
6152
+ parameters: {
6153
+ query?: {
6154
+ /** @description Optional list of span ids to fetch annotations for. If omitted, `identifier` must be supplied. */
6155
+ span_ids?: string[] | null;
6156
+ /** @description Optional list of annotation identifiers to filter by. Each value must be non-empty. If omitted, `span_ids` must be supplied. When combined with `span_ids`, results are the AND-intersection of both filters. */
6157
+ identifier?: string[] | null;
6158
+ /** @description Optional list of annotation names to include. If provided, only annotations with these names will be returned (allowlist). When omitted, the response includes every matching row regardless of name (no annotation names are excluded by default). */
6159
+ include_annotation_names?: string[] | null;
6160
+ /** @description Optional list of annotation names to exclude from results. */
6161
+ exclude_annotation_names?: string[] | null;
6162
+ /** @description A cursor for pagination */
6163
+ cursor?: string | null;
6164
+ /** @description The maximum number of annotations to return in a single request */
6165
+ limit?: number;
6166
+ };
6167
+ header?: never;
6168
+ path: {
6169
+ /** @description The project identifier: either project ID or project name. If using a project name as the identifier, it cannot contain slash (/), question mark (?), or pound sign (#) characters. */
6170
+ project_identifier: string;
6171
+ };
6172
+ cookie?: never;
6173
+ };
6174
+ requestBody?: never;
6175
+ responses: {
6176
+ /** @description Successful Response */
6177
+ 200: {
6178
+ headers: {
6179
+ [name: string]: unknown;
6180
+ };
6181
+ content: {
6182
+ "application/json": components["schemas"]["SpanAnnotationsResponseBody"];
6183
+ };
6184
+ };
6185
+ /** @description Forbidden */
6186
+ 403: {
6187
+ headers: {
6188
+ [name: string]: unknown;
6189
+ };
6190
+ content: {
6191
+ "text/plain": string;
6192
+ };
6193
+ };
6194
+ /** @description Project or spans not found */
6195
+ 404: {
6196
+ headers: {
6197
+ [name: string]: unknown;
6198
+ };
6199
+ content: {
6200
+ "text/plain": string;
6201
+ };
6202
+ };
6203
+ /** @description Invalid parameters */
6204
+ 422: {
6205
+ headers: {
6206
+ [name: string]: unknown;
6207
+ };
6208
+ content: {
6209
+ "text/plain": string;
6210
+ };
6211
+ };
6212
+ };
6213
+ };
6214
+ deleteSpanAnnotations: {
6215
+ parameters: {
6216
+ query?: {
6217
+ /** @description Optional annotation name. When provided, must be non-empty and narrows the delete to annotations of that name. */
6218
+ name?: string | null;
6219
+ /** @description Optional annotation identifier. When provided, must be non-empty and narrows the delete to annotations with that identifier. */
6220
+ identifier?: string | null;
6221
+ /** @description Optional annotator kind. When provided, narrows the delete to annotations produced by this annotator kind. */
6222
+ annotator_kind?: ("LLM" | "CODE" | "HUMAN") | null;
6223
+ /** @description Optional inclusive lower bound on `created_at` (>=). Naive datetimes are interpreted as UTC. */
6224
+ start_time?: string | null;
6225
+ /** @description Optional exclusive upper bound on `created_at` (<). Naive datetimes are interpreted as UTC. */
6226
+ end_time?: string | null;
6227
+ /** @description Opt-in flag that authorizes the request without a bounded `[start_time, end_time)` time window. When `false` (default) or absent, the request must supply both `start_time` AND `end_time` to bound the delete. When `true`, the time-range bound is waived and any other filters (`name`, `identifier`, `annotator_kind`) still narrow the delete within the project — e.g. `delete_all=true&name=X` deletes all annotations named X regardless of time. */
6228
+ delete_all?: boolean;
6229
+ };
6230
+ header?: never;
6231
+ path: {
6232
+ /** @description The project identifier: either project ID or project name. If using a project name as the identifier, it cannot contain slash (/), question mark (?), or pound sign (#) characters. */
6233
+ project_identifier: string;
6234
+ };
6235
+ cookie?: never;
6236
+ };
6237
+ requestBody?: never;
6238
+ responses: {
6239
+ /** @description Successful Response */
6240
+ 204: {
6241
+ headers: {
6242
+ [name: string]: unknown;
6243
+ };
6244
+ content?: never;
6245
+ };
6246
+ /** @description Forbidden */
6247
+ 403: {
6248
+ headers: {
6249
+ [name: string]: unknown;
6250
+ };
6251
+ content: {
6252
+ "text/plain": string;
6253
+ };
6254
+ };
6255
+ /** @description Project not found */
6256
+ 404: {
6257
+ headers: {
6258
+ [name: string]: unknown;
6259
+ };
6260
+ content: {
6261
+ "text/plain": string;
6262
+ };
6263
+ };
6264
+ /** @description Invalid parameters */
6265
+ 422: {
6266
+ headers: {
6267
+ [name: string]: unknown;
6268
+ };
6269
+ content: {
6270
+ "text/plain": string;
6271
+ };
6272
+ };
6273
+ };
6274
+ };
6275
+ listTraceAnnotationsByTraceIds: {
6276
+ parameters: {
6277
+ query?: {
6278
+ /** @description Optional list of trace ids to fetch annotations for. If omitted, `identifier` must be supplied. */
6279
+ trace_ids?: string[] | null;
6280
+ /** @description Optional list of annotation identifiers to filter by. Each value must be non-empty. If omitted, `trace_ids` must be supplied. When combined with `trace_ids`, results are the AND-intersection of both filters. */
6281
+ identifier?: string[] | null;
6282
+ /** @description Optional list of annotation names to include. If provided, only annotations with these names will be returned (allowlist). When omitted, the response includes every matching row regardless of name (no annotation names are excluded by default). */
6283
+ include_annotation_names?: string[] | null;
6284
+ /** @description Optional list of annotation names to exclude from results. */
6285
+ exclude_annotation_names?: string[] | null;
6286
+ /** @description A cursor for pagination */
6287
+ cursor?: string | null;
6288
+ /** @description The maximum number of annotations to return in a single request */
6289
+ limit?: number;
6290
+ };
6291
+ header?: never;
6292
+ path: {
6293
+ /** @description The project identifier: either project ID or project name. If using a project name as the identifier, it cannot contain slash (/), question mark (?), or pound sign (#) characters. */
6294
+ project_identifier: string;
6295
+ };
6296
+ cookie?: never;
6297
+ };
6298
+ requestBody?: never;
6299
+ responses: {
6300
+ /** @description Successful Response */
6301
+ 200: {
6302
+ headers: {
6303
+ [name: string]: unknown;
6304
+ };
6305
+ content: {
6306
+ "application/json": components["schemas"]["TraceAnnotationsResponseBody"];
6307
+ };
6308
+ };
6309
+ /** @description Forbidden */
6310
+ 403: {
6311
+ headers: {
6312
+ [name: string]: unknown;
6313
+ };
6314
+ content: {
6315
+ "text/plain": string;
6316
+ };
6317
+ };
6318
+ /** @description Project or traces not found */
6319
+ 404: {
6320
+ headers: {
6321
+ [name: string]: unknown;
6322
+ };
6323
+ content: {
6324
+ "text/plain": string;
6325
+ };
6326
+ };
6327
+ /** @description Invalid parameters */
6328
+ 422: {
6329
+ headers: {
6330
+ [name: string]: unknown;
6331
+ };
6332
+ content: {
6333
+ "text/plain": string;
6334
+ };
6335
+ };
6336
+ };
6337
+ };
6338
+ deleteTraceAnnotations: {
6339
+ parameters: {
6340
+ query?: {
6341
+ /** @description Optional annotation name. When provided, must be non-empty and narrows the delete to annotations of that name. */
6342
+ name?: string | null;
6343
+ /** @description Optional annotation identifier. When provided, must be non-empty and narrows the delete to annotations with that identifier. */
6344
+ identifier?: string | null;
6345
+ /** @description Optional annotator kind. When provided, narrows the delete to annotations produced by this annotator kind. */
6346
+ annotator_kind?: ("LLM" | "CODE" | "HUMAN") | null;
6347
+ /** @description Optional inclusive lower bound on `created_at` (>=). Naive datetimes are interpreted as UTC. */
6348
+ start_time?: string | null;
6349
+ /** @description Optional exclusive upper bound on `created_at` (<). Naive datetimes are interpreted as UTC. */
6350
+ end_time?: string | null;
6351
+ /** @description Opt-in flag that authorizes the request without a bounded `[start_time, end_time)` time window. When `false` (default) or absent, the request must supply both `start_time` AND `end_time` to bound the delete. When `true`, the time-range bound is waived and any other filters (`name`, `identifier`, `annotator_kind`) still narrow the delete within the project — e.g. `delete_all=true&name=X` deletes all annotations named X regardless of time. */
6352
+ delete_all?: boolean;
6353
+ };
6354
+ header?: never;
6355
+ path: {
6356
+ /** @description The project identifier: either project ID or project name. If using a project name as the identifier, it cannot contain slash (/), question mark (?), or pound sign (#) characters. */
5889
6357
  project_identifier: string;
5890
6358
  };
5891
6359
  cookie?: never;
@@ -6052,6 +6520,467 @@ export interface operations {
6052
6520
  };
6053
6521
  };
6054
6522
  };
6523
+ listDatasetLabels: {
6524
+ parameters: {
6525
+ query?: {
6526
+ /** @description Cursor for pagination (a dataset label GlobalID) */
6527
+ cursor?: string | null;
6528
+ /** @description The max number of dataset labels to return at a time. */
6529
+ limit?: number;
6530
+ };
6531
+ header?: never;
6532
+ path?: never;
6533
+ cookie?: never;
6534
+ };
6535
+ requestBody?: never;
6536
+ responses: {
6537
+ /** @description Successful Response */
6538
+ 200: {
6539
+ headers: {
6540
+ [name: string]: unknown;
6541
+ };
6542
+ content: {
6543
+ "application/json": components["schemas"]["GetDatasetLabelsResponseBody"];
6544
+ };
6545
+ };
6546
+ /** @description Forbidden */
6547
+ 403: {
6548
+ headers: {
6549
+ [name: string]: unknown;
6550
+ };
6551
+ content: {
6552
+ "text/plain": string;
6553
+ };
6554
+ };
6555
+ /** @description Unprocessable Entity */
6556
+ 422: {
6557
+ headers: {
6558
+ [name: string]: unknown;
6559
+ };
6560
+ content: {
6561
+ "text/plain": string;
6562
+ };
6563
+ };
6564
+ };
6565
+ };
6566
+ createDatasetLabel: {
6567
+ parameters: {
6568
+ query?: never;
6569
+ header?: never;
6570
+ path?: never;
6571
+ cookie?: never;
6572
+ };
6573
+ requestBody: {
6574
+ content: {
6575
+ "application/json": components["schemas"]["CreateDatasetLabelRequestBody"];
6576
+ };
6577
+ };
6578
+ responses: {
6579
+ /** @description Successful Response */
6580
+ 201: {
6581
+ headers: {
6582
+ [name: string]: unknown;
6583
+ };
6584
+ content: {
6585
+ "application/json": components["schemas"]["CreateDatasetLabelResponseBody"];
6586
+ };
6587
+ };
6588
+ /** @description Forbidden */
6589
+ 403: {
6590
+ headers: {
6591
+ [name: string]: unknown;
6592
+ };
6593
+ content: {
6594
+ "text/plain": string;
6595
+ };
6596
+ };
6597
+ /** @description A dataset label with the same name already exists */
6598
+ 409: {
6599
+ headers: {
6600
+ [name: string]: unknown;
6601
+ };
6602
+ content: {
6603
+ "text/plain": string;
6604
+ };
6605
+ };
6606
+ /** @description Invalid request body */
6607
+ 422: {
6608
+ headers: {
6609
+ [name: string]: unknown;
6610
+ };
6611
+ content: {
6612
+ "text/plain": string;
6613
+ };
6614
+ };
6615
+ };
6616
+ };
6617
+ getDatasetLabel: {
6618
+ parameters: {
6619
+ query?: never;
6620
+ header?: never;
6621
+ path: {
6622
+ /** @description The ID of the dataset label */
6623
+ label_id: string;
6624
+ };
6625
+ cookie?: never;
6626
+ };
6627
+ requestBody?: never;
6628
+ responses: {
6629
+ /** @description Successful Response */
6630
+ 200: {
6631
+ headers: {
6632
+ [name: string]: unknown;
6633
+ };
6634
+ content: {
6635
+ "application/json": components["schemas"]["GetDatasetLabelResponseBody"];
6636
+ };
6637
+ };
6638
+ /** @description Forbidden */
6639
+ 403: {
6640
+ headers: {
6641
+ [name: string]: unknown;
6642
+ };
6643
+ content: {
6644
+ "text/plain": string;
6645
+ };
6646
+ };
6647
+ /** @description Dataset label not found */
6648
+ 404: {
6649
+ headers: {
6650
+ [name: string]: unknown;
6651
+ };
6652
+ content: {
6653
+ "text/plain": string;
6654
+ };
6655
+ };
6656
+ /** @description Invalid dataset label ID */
6657
+ 422: {
6658
+ headers: {
6659
+ [name: string]: unknown;
6660
+ };
6661
+ content: {
6662
+ "text/plain": string;
6663
+ };
6664
+ };
6665
+ };
6666
+ };
6667
+ deleteDatasetLabel: {
6668
+ parameters: {
6669
+ query?: never;
6670
+ header?: never;
6671
+ path: {
6672
+ /** @description The ID of the dataset label */
6673
+ label_id: string;
6674
+ };
6675
+ cookie?: never;
6676
+ };
6677
+ requestBody?: never;
6678
+ responses: {
6679
+ /** @description Successful Response */
6680
+ 204: {
6681
+ headers: {
6682
+ [name: string]: unknown;
6683
+ };
6684
+ content?: never;
6685
+ };
6686
+ /** @description Forbidden */
6687
+ 403: {
6688
+ headers: {
6689
+ [name: string]: unknown;
6690
+ };
6691
+ content: {
6692
+ "text/plain": string;
6693
+ };
6694
+ };
6695
+ /** @description Dataset label not found */
6696
+ 404: {
6697
+ headers: {
6698
+ [name: string]: unknown;
6699
+ };
6700
+ content: {
6701
+ "text/plain": string;
6702
+ };
6703
+ };
6704
+ /** @description Invalid dataset label ID */
6705
+ 422: {
6706
+ headers: {
6707
+ [name: string]: unknown;
6708
+ };
6709
+ content: {
6710
+ "text/plain": string;
6711
+ };
6712
+ };
6713
+ };
6714
+ };
6715
+ updateDatasetLabel: {
6716
+ parameters: {
6717
+ query?: never;
6718
+ header?: never;
6719
+ path: {
6720
+ /** @description The ID of the dataset label */
6721
+ label_id: string;
6722
+ };
6723
+ cookie?: never;
6724
+ };
6725
+ requestBody: {
6726
+ content: {
6727
+ "application/json": components["schemas"]["UpdateDatasetLabelRequestBody"];
6728
+ };
6729
+ };
6730
+ responses: {
6731
+ /** @description Successful Response */
6732
+ 200: {
6733
+ headers: {
6734
+ [name: string]: unknown;
6735
+ };
6736
+ content: {
6737
+ "application/json": components["schemas"]["UpdateDatasetLabelResponseBody"];
6738
+ };
6739
+ };
6740
+ /** @description Forbidden */
6741
+ 403: {
6742
+ headers: {
6743
+ [name: string]: unknown;
6744
+ };
6745
+ content: {
6746
+ "text/plain": string;
6747
+ };
6748
+ };
6749
+ /** @description Dataset label not found */
6750
+ 404: {
6751
+ headers: {
6752
+ [name: string]: unknown;
6753
+ };
6754
+ content: {
6755
+ "text/plain": string;
6756
+ };
6757
+ };
6758
+ /** @description A dataset label with the same name already exists */
6759
+ 409: {
6760
+ headers: {
6761
+ [name: string]: unknown;
6762
+ };
6763
+ content: {
6764
+ "text/plain": string;
6765
+ };
6766
+ };
6767
+ /** @description Invalid dataset label ID or request body */
6768
+ 422: {
6769
+ headers: {
6770
+ [name: string]: unknown;
6771
+ };
6772
+ content: {
6773
+ "text/plain": string;
6774
+ };
6775
+ };
6776
+ };
6777
+ };
6778
+ listDatasetLabelsForDataset: {
6779
+ parameters: {
6780
+ query?: never;
6781
+ header?: never;
6782
+ path: {
6783
+ /** @description The dataset identifier: either the dataset ID (GlobalID) or its name. */
6784
+ dataset_identifier: string;
6785
+ };
6786
+ cookie?: never;
6787
+ };
6788
+ requestBody?: never;
6789
+ responses: {
6790
+ /** @description Successful Response */
6791
+ 200: {
6792
+ headers: {
6793
+ [name: string]: unknown;
6794
+ };
6795
+ content: {
6796
+ "application/json": components["schemas"]["ListDatasetLabelsForDatasetResponseBody"];
6797
+ };
6798
+ };
6799
+ /** @description Forbidden */
6800
+ 403: {
6801
+ headers: {
6802
+ [name: string]: unknown;
6803
+ };
6804
+ content: {
6805
+ "text/plain": string;
6806
+ };
6807
+ };
6808
+ /** @description Dataset not found */
6809
+ 404: {
6810
+ headers: {
6811
+ [name: string]: unknown;
6812
+ };
6813
+ content: {
6814
+ "text/plain": string;
6815
+ };
6816
+ };
6817
+ /** @description Invalid dataset identifier */
6818
+ 422: {
6819
+ headers: {
6820
+ [name: string]: unknown;
6821
+ };
6822
+ content: {
6823
+ "text/plain": string;
6824
+ };
6825
+ };
6826
+ };
6827
+ };
6828
+ setDatasetLabelsForDataset: {
6829
+ parameters: {
6830
+ query?: never;
6831
+ header?: never;
6832
+ path: {
6833
+ /** @description The dataset identifier: either the dataset ID (GlobalID) or its name. */
6834
+ dataset_identifier: string;
6835
+ };
6836
+ cookie?: never;
6837
+ };
6838
+ requestBody: {
6839
+ content: {
6840
+ "application/json": components["schemas"]["SetDatasetLabelsRequestBody"];
6841
+ };
6842
+ };
6843
+ responses: {
6844
+ /** @description Successful Response */
6845
+ 200: {
6846
+ headers: {
6847
+ [name: string]: unknown;
6848
+ };
6849
+ content: {
6850
+ "application/json": components["schemas"]["SetDatasetLabelsForDatasetResponseBody"];
6851
+ };
6852
+ };
6853
+ /** @description Forbidden */
6854
+ 403: {
6855
+ headers: {
6856
+ [name: string]: unknown;
6857
+ };
6858
+ content: {
6859
+ "text/plain": string;
6860
+ };
6861
+ };
6862
+ /** @description Dataset or one or more dataset labels not found */
6863
+ 404: {
6864
+ headers: {
6865
+ [name: string]: unknown;
6866
+ };
6867
+ content: {
6868
+ "text/plain": string;
6869
+ };
6870
+ };
6871
+ /** @description Invalid dataset identifier or request body */
6872
+ 422: {
6873
+ headers: {
6874
+ [name: string]: unknown;
6875
+ };
6876
+ content: {
6877
+ "text/plain": string;
6878
+ };
6879
+ };
6880
+ };
6881
+ };
6882
+ addDatasetLabelToDataset: {
6883
+ parameters: {
6884
+ query?: never;
6885
+ header?: never;
6886
+ path: {
6887
+ /** @description The dataset identifier: either the dataset ID (GlobalID) or its name. */
6888
+ dataset_identifier: string;
6889
+ /** @description The ID of the dataset label to apply */
6890
+ label_id: string;
6891
+ };
6892
+ cookie?: never;
6893
+ };
6894
+ requestBody?: never;
6895
+ responses: {
6896
+ /** @description Successful Response */
6897
+ 200: {
6898
+ headers: {
6899
+ [name: string]: unknown;
6900
+ };
6901
+ content: {
6902
+ "application/json": components["schemas"]["AddDatasetLabelToDatasetResponseBody"];
6903
+ };
6904
+ };
6905
+ /** @description Forbidden */
6906
+ 403: {
6907
+ headers: {
6908
+ [name: string]: unknown;
6909
+ };
6910
+ content: {
6911
+ "text/plain": string;
6912
+ };
6913
+ };
6914
+ /** @description Dataset or dataset label not found */
6915
+ 404: {
6916
+ headers: {
6917
+ [name: string]: unknown;
6918
+ };
6919
+ content: {
6920
+ "text/plain": string;
6921
+ };
6922
+ };
6923
+ /** @description Invalid dataset identifier or dataset label ID */
6924
+ 422: {
6925
+ headers: {
6926
+ [name: string]: unknown;
6927
+ };
6928
+ content: {
6929
+ "text/plain": string;
6930
+ };
6931
+ };
6932
+ };
6933
+ };
6934
+ removeDatasetLabelFromDataset: {
6935
+ parameters: {
6936
+ query?: never;
6937
+ header?: never;
6938
+ path: {
6939
+ /** @description The dataset identifier: either the dataset ID (GlobalID) or its name. */
6940
+ dataset_identifier: string;
6941
+ /** @description The ID of the dataset label to remove */
6942
+ label_id: string;
6943
+ };
6944
+ cookie?: never;
6945
+ };
6946
+ requestBody?: never;
6947
+ responses: {
6948
+ /** @description Successful Response */
6949
+ 204: {
6950
+ headers: {
6951
+ [name: string]: unknown;
6952
+ };
6953
+ content?: never;
6954
+ };
6955
+ /** @description Forbidden */
6956
+ 403: {
6957
+ headers: {
6958
+ [name: string]: unknown;
6959
+ };
6960
+ content: {
6961
+ "text/plain": string;
6962
+ };
6963
+ };
6964
+ /** @description Dataset not found */
6965
+ 404: {
6966
+ headers: {
6967
+ [name: string]: unknown;
6968
+ };
6969
+ content: {
6970
+ "text/plain": string;
6971
+ };
6972
+ };
6973
+ /** @description Invalid dataset identifier or dataset label ID */
6974
+ 422: {
6975
+ headers: {
6976
+ [name: string]: unknown;
6977
+ };
6978
+ content: {
6979
+ "text/plain": string;
6980
+ };
6981
+ };
6982
+ };
6983
+ };
6055
6984
  listDatasets: {
6056
6985
  parameters: {
6057
6986
  query?: {
@@ -8271,6 +9200,8 @@ export interface operations {
8271
9200
  include_experiment_projects?: boolean;
8272
9201
  /** @description Include dataset evaluator projects in the response. Dataset evaluator projects are created when running experiments with persisted evaluators. */
8273
9202
  include_dataset_evaluator_projects?: boolean;
9203
+ /** @description Return only projects whose name contains this substring (case-insensitive). */
9204
+ name_contains?: string | null;
8274
9205
  };
8275
9206
  header?: never;
8276
9207
  path?: never;