@atlanai/sdk 0.1.0 → 0.2.1

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 (232) hide show
  1. package/README.md +94 -26
  2. package/dist/client.js +3 -1
  3. package/dist/evals.d.ts +46 -0
  4. package/dist/evals.js +230 -0
  5. package/dist/index.d.ts +3 -0
  6. package/dist/index.js +8 -1
  7. package/dist/manifest.json +299 -3
  8. package/dist/raw/eval/apis/DatasetsApi.d.ts +304 -0
  9. package/dist/raw/eval/apis/DatasetsApi.js +706 -0
  10. package/dist/raw/eval/apis/ExperimentsApi.d.ts +371 -0
  11. package/dist/raw/eval/apis/ExperimentsApi.js +869 -0
  12. package/dist/raw/eval/apis/ScorersApi.d.ts +129 -0
  13. package/dist/raw/eval/apis/ScorersApi.js +308 -0
  14. package/dist/raw/eval/apis/index.d.ts +3 -0
  15. package/dist/raw/eval/apis/index.js +21 -0
  16. package/dist/raw/eval/index.d.ts +3 -0
  17. package/dist/raw/eval/index.js +21 -0
  18. package/dist/raw/eval/models/AccessView.d.ts +57 -0
  19. package/dist/raw/eval/models/AccessView.js +64 -0
  20. package/dist/raw/eval/models/ArtifactConflictProblem.d.ts +69 -0
  21. package/dist/raw/eval/models/ArtifactConflictProblem.js +66 -0
  22. package/dist/raw/eval/models/CostView.d.ts +50 -0
  23. package/dist/raw/eval/models/CostView.js +60 -0
  24. package/dist/raw/eval/models/CursorPage.d.ts +38 -0
  25. package/dist/raw/eval/models/CursorPage.js +52 -0
  26. package/dist/raw/eval/models/EvalArtifactEnvelope.d.ts +144 -0
  27. package/dist/raw/eval/models/EvalArtifactEnvelope.js +84 -0
  28. package/dist/raw/eval/models/EvalArtifactSearchRequest.d.ts +71 -0
  29. package/dist/raw/eval/models/EvalArtifactSearchRequest.js +60 -0
  30. package/dist/raw/eval/models/EvalBulkDatasetRecordResponse.d.ts +33 -0
  31. package/dist/raw/eval/models/EvalBulkDatasetRecordResponse.js +51 -0
  32. package/dist/raw/eval/models/EvalBulkDatasetRecordResult.d.ts +52 -0
  33. package/dist/raw/eval/models/EvalBulkDatasetRecordResult.js +60 -0
  34. package/dist/raw/eval/models/EvalBulkExperimentResultResponse.d.ts +33 -0
  35. package/dist/raw/eval/models/EvalBulkExperimentResultResponse.js +51 -0
  36. package/dist/raw/eval/models/EvalBulkExperimentResultSlot.d.ts +53 -0
  37. package/dist/raw/eval/models/EvalBulkExperimentResultSlot.js +60 -0
  38. package/dist/raw/eval/models/EvalCreateDataset400Response.d.ts +65 -0
  39. package/dist/raw/eval/models/EvalCreateDataset400Response.js +75 -0
  40. package/dist/raw/eval/models/EvalCreateDataset409Response.d.ts +63 -0
  41. package/dist/raw/eval/models/EvalCreateDataset409Response.js +75 -0
  42. package/dist/raw/eval/models/EvalCreateDataset413Response.d.ts +64 -0
  43. package/dist/raw/eval/models/EvalCreateDataset413Response.js +74 -0
  44. package/dist/raw/eval/models/EvalCreateDataset415Response.d.ts +64 -0
  45. package/dist/raw/eval/models/EvalCreateDataset415Response.js +74 -0
  46. package/dist/raw/eval/models/EvalCreateDataset422Response.d.ts +63 -0
  47. package/dist/raw/eval/models/EvalCreateDataset422Response.js +75 -0
  48. package/dist/raw/eval/models/EvalDatasetArtifactView.d.ts +277 -0
  49. package/dist/raw/eval/models/EvalDatasetArtifactView.js +146 -0
  50. package/dist/raw/eval/models/EvalDatasetCreate.d.ts +150 -0
  51. package/dist/raw/eval/models/EvalDatasetCreate.js +86 -0
  52. package/dist/raw/eval/models/EvalDatasetMeta.d.ts +46 -0
  53. package/dist/raw/eval/models/EvalDatasetMeta.js +48 -0
  54. package/dist/raw/eval/models/EvalDatasetPatch.d.ts +52 -0
  55. package/dist/raw/eval/models/EvalDatasetPatch.js +54 -0
  56. package/dist/raw/eval/models/EvalDatasetRecordArtifactView.d.ts +330 -0
  57. package/dist/raw/eval/models/EvalDatasetRecordArtifactView.js +161 -0
  58. package/dist/raw/eval/models/EvalDatasetRecordBulkCreate.d.ts +33 -0
  59. package/dist/raw/eval/models/EvalDatasetRecordBulkCreate.js +51 -0
  60. package/dist/raw/eval/models/EvalDatasetRecordCreate.d.ts +195 -0
  61. package/dist/raw/eval/models/EvalDatasetRecordCreate.js +101 -0
  62. package/dist/raw/eval/models/EvalDatasetRecordMeta.d.ts +96 -0
  63. package/dist/raw/eval/models/EvalDatasetRecordMeta.js +67 -0
  64. package/dist/raw/eval/models/EvalDatasetRecordPatch.d.ts +81 -0
  65. package/dist/raw/eval/models/EvalDatasetRecordPatch.js +62 -0
  66. package/dist/raw/eval/models/EvalExperimentArtifactView.d.ts +320 -0
  67. package/dist/raw/eval/models/EvalExperimentArtifactView.js +160 -0
  68. package/dist/raw/eval/models/EvalExperimentCreate.d.ts +193 -0
  69. package/dist/raw/eval/models/EvalExperimentCreate.js +100 -0
  70. package/dist/raw/eval/models/EvalExperimentMeta.d.ts +91 -0
  71. package/dist/raw/eval/models/EvalExperimentMeta.js +62 -0
  72. package/dist/raw/eval/models/EvalExperimentPatch.d.ts +63 -0
  73. package/dist/raw/eval/models/EvalExperimentPatch.js +57 -0
  74. package/dist/raw/eval/models/EvalExperimentResultArtifactView.d.ts +330 -0
  75. package/dist/raw/eval/models/EvalExperimentResultArtifactView.js +162 -0
  76. package/dist/raw/eval/models/EvalExperimentResultBulkCreate.d.ts +33 -0
  77. package/dist/raw/eval/models/EvalExperimentResultBulkCreate.js +51 -0
  78. package/dist/raw/eval/models/EvalExperimentResultCreate.d.ts +197 -0
  79. package/dist/raw/eval/models/EvalExperimentResultCreate.js +100 -0
  80. package/dist/raw/eval/models/EvalExperimentResultMeta.d.ts +102 -0
  81. package/dist/raw/eval/models/EvalExperimentResultMeta.js +66 -0
  82. package/dist/raw/eval/models/EvalExperimentStatus.d.ts +31 -0
  83. package/dist/raw/eval/models/EvalExperimentStatus.js +59 -0
  84. package/dist/raw/eval/models/EvalGetDataset404Response.d.ts +63 -0
  85. package/dist/raw/eval/models/EvalGetDataset404Response.js +75 -0
  86. package/dist/raw/eval/models/EvalGetExperimentTrace400Response.d.ts +63 -0
  87. package/dist/raw/eval/models/EvalGetExperimentTrace400Response.js +75 -0
  88. package/dist/raw/eval/models/EvalListDatasets400Response.d.ts +63 -0
  89. package/dist/raw/eval/models/EvalListDatasets400Response.js +75 -0
  90. package/dist/raw/eval/models/EvalListDatasets401Response.d.ts +79 -0
  91. package/dist/raw/eval/models/EvalListDatasets401Response.js +89 -0
  92. package/dist/raw/eval/models/EvalListDatasets403Response.d.ts +64 -0
  93. package/dist/raw/eval/models/EvalListDatasets403Response.js +74 -0
  94. package/dist/raw/eval/models/EvalListDatasets500Response.d.ts +63 -0
  95. package/dist/raw/eval/models/EvalListDatasets500Response.js +75 -0
  96. package/dist/raw/eval/models/EvalListDatasets503Response.d.ts +64 -0
  97. package/dist/raw/eval/models/EvalListDatasets503Response.js +74 -0
  98. package/dist/raw/eval/models/EvalListDatasets504Response.d.ts +63 -0
  99. package/dist/raw/eval/models/EvalListDatasets504Response.js +75 -0
  100. package/dist/raw/eval/models/EvalPageDatasetArtifactView.d.ts +44 -0
  101. package/dist/raw/eval/models/EvalPageDatasetArtifactView.js +56 -0
  102. package/dist/raw/eval/models/EvalPageDatasetRecordArtifactView.d.ts +44 -0
  103. package/dist/raw/eval/models/EvalPageDatasetRecordArtifactView.js +56 -0
  104. package/dist/raw/eval/models/EvalPageExperimentArtifactView.d.ts +44 -0
  105. package/dist/raw/eval/models/EvalPageExperimentArtifactView.js +56 -0
  106. package/dist/raw/eval/models/EvalPageExperimentResultArtifactView.d.ts +44 -0
  107. package/dist/raw/eval/models/EvalPageExperimentResultArtifactView.js +56 -0
  108. package/dist/raw/eval/models/EvalPageScorerArtifactView.d.ts +44 -0
  109. package/dist/raw/eval/models/EvalPageScorerArtifactView.js +56 -0
  110. package/dist/raw/eval/models/EvalPatchDataset412Response.d.ts +63 -0
  111. package/dist/raw/eval/models/EvalPatchDataset412Response.js +75 -0
  112. package/dist/raw/eval/models/EvalRecordSource.d.ts +27 -0
  113. package/dist/raw/eval/models/EvalRecordSource.js +55 -0
  114. package/dist/raw/eval/models/EvalScorerArtifactView.d.ts +301 -0
  115. package/dist/raw/eval/models/EvalScorerArtifactView.js +154 -0
  116. package/dist/raw/eval/models/EvalScorerCreate.d.ts +172 -0
  117. package/dist/raw/eval/models/EvalScorerCreate.js +98 -0
  118. package/dist/raw/eval/models/EvalScorerKind.d.ts +32 -0
  119. package/dist/raw/eval/models/EvalScorerKind.js +60 -0
  120. package/dist/raw/eval/models/EvalScorerMeta.d.ts +67 -0
  121. package/dist/raw/eval/models/EvalScorerMeta.js +60 -0
  122. package/dist/raw/eval/models/EvalScorerPatch.d.ts +75 -0
  123. package/dist/raw/eval/models/EvalScorerPatch.js +56 -0
  124. package/dist/raw/eval/models/EvalScorerScope.d.ts +32 -0
  125. package/dist/raw/eval/models/EvalScorerScope.js +60 -0
  126. package/dist/raw/eval/models/EvalSubjectKind.d.ts +33 -0
  127. package/dist/raw/eval/models/EvalSubjectKind.js +61 -0
  128. package/dist/raw/eval/models/GatewayArtifactBase.d.ts +250 -0
  129. package/dist/raw/eval/models/GatewayArtifactBase.js +139 -0
  130. package/dist/raw/eval/models/GatewayArtifactIdentityRevealView.d.ts +60 -0
  131. package/dist/raw/eval/models/GatewayArtifactIdentityRevealView.js +58 -0
  132. package/dist/raw/eval/models/GatewayPageMeta.d.ts +46 -0
  133. package/dist/raw/eval/models/GatewayPageMeta.js +58 -0
  134. package/dist/raw/eval/models/GatewaySourceEnvelope.d.ts +106 -0
  135. package/dist/raw/eval/models/GatewaySourceEnvelope.js +66 -0
  136. package/dist/raw/eval/models/GatewayTraceStatsBucket.d.ts +25 -0
  137. package/dist/raw/eval/models/GatewayTraceStatsBucket.js +53 -0
  138. package/dist/raw/eval/models/GatewayTraceStatsCompareMode.d.ts +25 -0
  139. package/dist/raw/eval/models/GatewayTraceStatsCompareMode.js +53 -0
  140. package/dist/raw/eval/models/GatewayTraceStatsComparison.d.ts +45 -0
  141. package/dist/raw/eval/models/GatewayTraceStatsComparison.js +59 -0
  142. package/dist/raw/eval/models/GatewayTraceStatsData.d.ts +24 -0
  143. package/dist/raw/eval/models/GatewayTraceStatsData.js +64 -0
  144. package/dist/raw/eval/models/GatewayTraceStatsDataOneOf.d.ts +46 -0
  145. package/dist/raw/eval/models/GatewayTraceStatsDataOneOf.js +66 -0
  146. package/dist/raw/eval/models/GatewayTraceStatsDataOneOf1.d.ts +53 -0
  147. package/dist/raw/eval/models/GatewayTraceStatsDataOneOf1.js +71 -0
  148. package/dist/raw/eval/models/GatewayTraceStatsDataOneOf2.d.ts +46 -0
  149. package/dist/raw/eval/models/GatewayTraceStatsDataOneOf2.js +66 -0
  150. package/dist/raw/eval/models/GatewayTraceStatsEnvelope.d.ts +50 -0
  151. package/dist/raw/eval/models/GatewayTraceStatsEnvelope.js +59 -0
  152. package/dist/raw/eval/models/GatewayTraceStatsFilter.d.ts +47 -0
  153. package/dist/raw/eval/models/GatewayTraceStatsFilter.js +59 -0
  154. package/dist/raw/eval/models/GatewayTraceStatsFilterOperator.d.ts +28 -0
  155. package/dist/raw/eval/models/GatewayTraceStatsFilterOperator.js +56 -0
  156. package/dist/raw/eval/models/GatewayTraceStatsFilterValue.d.ts +21 -0
  157. package/dist/raw/eval/models/GatewayTraceStatsFilterValue.js +85 -0
  158. package/dist/raw/eval/models/GatewayTraceStatsGroupBy.d.ts +35 -0
  159. package/dist/raw/eval/models/GatewayTraceStatsGroupBy.js +63 -0
  160. package/dist/raw/eval/models/GatewayTraceStatsMeasure.d.ts +39 -0
  161. package/dist/raw/eval/models/GatewayTraceStatsMeasure.js +67 -0
  162. package/dist/raw/eval/models/GatewayTraceStatsMeta.d.ts +49 -0
  163. package/dist/raw/eval/models/GatewayTraceStatsMeta.js +53 -0
  164. package/dist/raw/eval/models/GatewayTraceStatsOrder.d.ts +40 -0
  165. package/dist/raw/eval/models/GatewayTraceStatsOrder.js +56 -0
  166. package/dist/raw/eval/models/GatewayTraceStatsOrderBy.d.ts +25 -0
  167. package/dist/raw/eval/models/GatewayTraceStatsOrderBy.js +53 -0
  168. package/dist/raw/eval/models/GatewayTraceStatsOrderDirection.d.ts +25 -0
  169. package/dist/raw/eval/models/GatewayTraceStatsOrderDirection.js +53 -0
  170. package/dist/raw/eval/models/GatewayTraceStatsPanelQuery.d.ts +69 -0
  171. package/dist/raw/eval/models/GatewayTraceStatsPanelQuery.js +66 -0
  172. package/dist/raw/eval/models/GatewayTraceStatsRequest.d.ts +80 -0
  173. package/dist/raw/eval/models/GatewayTraceStatsRequest.js +72 -0
  174. package/dist/raw/eval/models/GatewayTraceStatsRequestType.d.ts +26 -0
  175. package/dist/raw/eval/models/GatewayTraceStatsRequestType.js +54 -0
  176. package/dist/raw/eval/models/GatewayTraceStatsScalarResult.d.ts +52 -0
  177. package/dist/raw/eval/models/GatewayTraceStatsScalarResult.js +59 -0
  178. package/dist/raw/eval/models/GatewayTraceStatsSeries.d.ts +52 -0
  179. package/dist/raw/eval/models/GatewayTraceStatsSeries.js +62 -0
  180. package/dist/raw/eval/models/GatewayTraceStatsSeriesPoint.d.ts +38 -0
  181. package/dist/raw/eval/models/GatewayTraceStatsSeriesPoint.js +52 -0
  182. package/dist/raw/eval/models/GatewayTraceStatsTableColumn.d.ts +45 -0
  183. package/dist/raw/eval/models/GatewayTraceStatsTableColumn.js +57 -0
  184. package/dist/raw/eval/models/GatewayTraceStatsTableColumnType.d.ts +25 -0
  185. package/dist/raw/eval/models/GatewayTraceStatsTableColumnType.js +53 -0
  186. package/dist/raw/eval/models/GatewayTraceStatsTableRow.d.ts +38 -0
  187. package/dist/raw/eval/models/GatewayTraceStatsTableRow.js +54 -0
  188. package/dist/raw/eval/models/GatewayTraceStatsWindow.d.ts +38 -0
  189. package/dist/raw/eval/models/GatewayTraceStatsWindow.js +54 -0
  190. package/dist/raw/eval/models/ProblemDetails.d.ts +76 -0
  191. package/dist/raw/eval/models/ProblemDetails.js +64 -0
  192. package/dist/raw/eval/models/RegistryEdgeTarget.d.ts +38 -0
  193. package/dist/raw/eval/models/RegistryEdgeTarget.js +54 -0
  194. package/dist/raw/eval/models/RegistryRelationshipEdge.d.ts +96 -0
  195. package/dist/raw/eval/models/RegistryRelationshipEdge.js +77 -0
  196. package/dist/raw/eval/models/RegistryRelationshipsView.d.ts +45 -0
  197. package/dist/raw/eval/models/RegistryRelationshipsView.js +59 -0
  198. package/dist/raw/eval/models/SpanListEnvelope.d.ts +40 -0
  199. package/dist/raw/eval/models/SpanListEnvelope.js +56 -0
  200. package/dist/raw/eval/models/SpanViewDto.d.ts +192 -0
  201. package/dist/raw/eval/models/SpanViewDto.js +117 -0
  202. package/dist/raw/eval/models/TraceDetailView.d.ts +177 -0
  203. package/dist/raw/eval/models/TraceDetailView.js +108 -0
  204. package/dist/raw/eval/models/TraceLinks.d.ts +45 -0
  205. package/dist/raw/eval/models/TraceLinks.js +58 -0
  206. package/dist/raw/eval/models/TraceListEnvelope.d.ts +47 -0
  207. package/dist/raw/eval/models/TraceListEnvelope.js +61 -0
  208. package/dist/raw/eval/models/TraceParentView.d.ts +68 -0
  209. package/dist/raw/eval/models/TraceParentView.js +64 -0
  210. package/dist/raw/eval/models/TraceStatus.d.ts +26 -0
  211. package/dist/raw/eval/models/TraceStatus.js +54 -0
  212. package/dist/raw/eval/models/TraceSummaryStats.d.ts +62 -0
  213. package/dist/raw/eval/models/TraceSummaryStats.js +62 -0
  214. package/dist/raw/eval/models/TraceSummaryView.d.ts +150 -0
  215. package/dist/raw/eval/models/TraceSummaryView.js +96 -0
  216. package/dist/raw/eval/models/UsageView.d.ts +56 -0
  217. package/dist/raw/eval/models/UsageView.js +66 -0
  218. package/dist/raw/eval/models/index.d.ts +100 -0
  219. package/dist/raw/eval/models/index.js +118 -0
  220. package/dist/raw/eval/runtime.d.ts +185 -0
  221. package/dist/raw/eval/runtime.js +369 -0
  222. package/dist/resources.json +307 -0
  223. package/dist/tracing/client.js +6 -4
  224. package/dist/tracing/propagation.d.ts +1 -0
  225. package/dist/tracing/propagation.js +7 -0
  226. package/dist/tracing/semconv.d.ts +8 -1
  227. package/dist/tracing/semconv.js +27 -13
  228. package/dist/tracing/spans.d.ts +8 -4
  229. package/dist/tracing/spans.js +28 -13
  230. package/dist/tracing/version.d.ts +1 -1
  231. package/dist/tracing/version.js +1 -1
  232. package/package.json +1 -1
@@ -0,0 +1,277 @@
1
+ /**
2
+ * Evaluation catalog
3
+ * The evaluation loop as registry artifacts: curated `dataset`s of examples pinned from production sessions and traces, `experiment` run snapshots with create-only per-case `experiment_result`s, and versioned `scorer` definitions. A verdict is a score span in the run\'s trace; `POST /experiments/{id}/summarize` rolls a run\'s score spans into its durable `summary`. The gateway executes and scores nothing — external harnesses, CI, and judges run the evals, emit score spans, and upload results here.
4
+ *
5
+ * The version of the OpenAPI document: 0.1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ import type { GatewayArtifactIdentityRevealView } from './GatewayArtifactIdentityRevealView';
13
+ import type { RegistryRelationshipsView } from './RegistryRelationshipsView';
14
+ /**
15
+ * Published representation of DatasetArtifact.
16
+ * @export
17
+ * @interface EvalDatasetArtifactView
18
+ */
19
+ export interface EvalDatasetArtifactView {
20
+ /**
21
+ * Value of the `artifact_status` field.
22
+ * @type {string}
23
+ * @memberof EvalDatasetArtifactView
24
+ */
25
+ artifactStatus: string;
26
+ /**
27
+ * RFC 3339 commit timestamp (the cross-table monotonic cursor).
28
+ * @type {string}
29
+ * @memberof EvalDatasetArtifactView
30
+ */
31
+ commitTs: string;
32
+ /**
33
+ * Value of the `content_hash_hex` field.
34
+ * @type {string}
35
+ * @memberof EvalDatasetArtifactView
36
+ */
37
+ contentHashHex?: string;
38
+ /**
39
+ * Value of the `created_at` field.
40
+ * @type {string}
41
+ * @memberof EvalDatasetArtifactView
42
+ */
43
+ createdAt: string;
44
+ /**
45
+ * Value of the `created_by` field.
46
+ * @type {string}
47
+ * @memberof EvalDatasetArtifactView
48
+ */
49
+ createdBy: string;
50
+ /**
51
+ * Human-readable description.
52
+ * @type {string}
53
+ * @memberof EvalDatasetArtifactView
54
+ */
55
+ description?: string;
56
+ /**
57
+ * Human-readable name.
58
+ * @type {string}
59
+ * @memberof EvalDatasetArtifactView
60
+ */
61
+ displayName?: string;
62
+ /**
63
+ * Value of the `extension` field.
64
+ * @type {string}
65
+ * @memberof EvalDatasetArtifactView
66
+ */
67
+ extension?: string;
68
+ /**
69
+ * Kind-prefixed Crockford-base32 handle (`<kind>_<base32>`).
70
+ * @type {string}
71
+ * @memberof EvalDatasetArtifactView
72
+ */
73
+ id: string;
74
+ /**
75
+ * Value of the `identity` field.
76
+ * @type {GatewayArtifactIdentityRevealView}
77
+ * @memberof EvalDatasetArtifactView
78
+ */
79
+ identity?: GatewayArtifactIdentityRevealView;
80
+ /**
81
+ * Whether this is the head (latest) version of its line.
82
+ * @type {boolean}
83
+ * @memberof EvalDatasetArtifactView
84
+ */
85
+ isLatest: boolean;
86
+ /**
87
+ * Domain discriminator for this resource.
88
+ * @type {string}
89
+ * @memberof EvalDatasetArtifactView
90
+ */
91
+ kind: string;
92
+ /**
93
+ * Stable machine handle ([AIP-122](https://google.aip.dev/122)): a short,
94
+ * identifier-shaped label (kebab-case by convention) meant for references,
95
+ * paths and code. **Not unique**, and not the artifact's identity — `id` is
96
+ * the only stable handle. Not format-validated today, so existing rows may
97
+ * hold prose.
98
+ * @type {string}
99
+ * @memberof EvalDatasetArtifactView
100
+ */
101
+ name: string;
102
+ /**
103
+ * The Control-Plane OIDC client id this artifact authenticates as
104
+ * (`x-gateway-identity` kinds); absent for every other kind.
105
+ *
106
+ * **Derived, not stored.** The registry resolves it from the artifact's
107
+ * `service_principals` row rather than keeping a second copy on the artifact,
108
+ * so it appears on the create response and on the single-artifact read — the
109
+ * two paths that make that lookup — and **not** on list, search, or a `PATCH`
110
+ * response, none of which do a per-row identity read. It is the public half of
111
+ * the credential pair and is not secret.
112
+ * @type {string}
113
+ * @memberof EvalDatasetArtifactView
114
+ */
115
+ oidcClientId?: string;
116
+ /**
117
+ * Canonical owner: the `users.user_id` this artifact belongs to, FK-backed.
118
+ * Absent when unset (legacy rows / system-plane creates).
119
+ * @type {string}
120
+ * @memberof EvalDatasetArtifactView
121
+ */
122
+ ownerId?: string;
123
+ /**
124
+ * `project_`-prefixed handle of the project grouping this artifact, when it has
125
+ * one. Absent for an artifact that lives directly in its workspace — which also
126
+ * means it is not packaged into any Claude Code plugin, since packaging is
127
+ * per-project (project-2026-07-30-first-class-project-table).
128
+ * @type {string}
129
+ * @memberof EvalDatasetArtifactView
130
+ */
131
+ projectId?: string;
132
+ /**
133
+ * The source repository this artifact came from, as a `repo_`-prefixed
134
+ * handle. Absent when the artifact has no repo.
135
+ * @type {string}
136
+ * @memberof EvalDatasetArtifactView
137
+ */
138
+ repoId?: string;
139
+ /**
140
+ * Advisory origin timestamp for imported artifacts (RFC 3339); absent for
141
+ * natively-created artifacts. Distinct from `created_at` (the commit time).
142
+ * @type {string}
143
+ * @memberof EvalDatasetArtifactView
144
+ */
145
+ sourceCreatedAt?: string;
146
+ /**
147
+ * Advisory upstream author (git `Name <email>`) of the first version
148
+ * upstream; absent when unset.
149
+ * @type {string}
150
+ * @memberof EvalDatasetArtifactView
151
+ */
152
+ sourceCreatedBy?: string;
153
+ /**
154
+ * sha256 of the materialized content; absent when unset.
155
+ * @type {string}
156
+ * @memberof EvalDatasetArtifactView
157
+ */
158
+ sourceDigest?: string;
159
+ /**
160
+ * The artifact's identifier in the system it came from — what the upstream
161
+ * calls it, as opposed to `source_uri`'s where-it-lives. Filterable and
162
+ * sortable, so a re-sync reconciles on this rather than on `name`; absent
163
+ * when unset.
164
+ * @type {string}
165
+ * @memberof EvalDatasetArtifactView
166
+ */
167
+ sourceId?: string;
168
+ /**
169
+ * Advisory upstream last-modified timestamp (RFC 3339); absent when unset.
170
+ * @type {string}
171
+ * @memberof EvalDatasetArtifactView
172
+ */
173
+ sourceLastModifiedAt?: string;
174
+ /**
175
+ * Advisory upstream author (git `Name <email>`) of the last change; absent
176
+ * when unset.
177
+ * @type {string}
178
+ * @memberof EvalDatasetArtifactView
179
+ */
180
+ sourceLastModifiedBy?: string;
181
+ /**
182
+ *
183
+ * @type {any}
184
+ * @memberof EvalDatasetArtifactView
185
+ */
186
+ sourceMetadata?: any | null;
187
+ /**
188
+ * Advisory timestamp (RFC 3339) of the last sync that produced a version.
189
+ * @type {string}
190
+ * @memberof EvalDatasetArtifactView
191
+ */
192
+ sourceSyncedAt?: string;
193
+ /**
194
+ * Content authority for the line: `git`, `atlan`, `local`, or `external`
195
+ * for a system the gateway does not know (a customer's own runner or catalog).
196
+ * @type {string}
197
+ * @memberof EvalDatasetArtifactView
198
+ */
199
+ sourceType: string;
200
+ /**
201
+ * Scheme-tagged origin; absent for a service-managed (`atlan`) line.
202
+ * @type {string}
203
+ * @memberof EvalDatasetArtifactView
204
+ */
205
+ sourceUri?: string;
206
+ /**
207
+ * Advisory upstream version id (git commit hash / tag); distinct from
208
+ * `version_label`. Absent when unset.
209
+ * @type {string}
210
+ * @memberof EvalDatasetArtifactView
211
+ */
212
+ sourceVersion?: string;
213
+ /**
214
+ * Value of the `updated_at` field.
215
+ * @type {string}
216
+ * @memberof EvalDatasetArtifactView
217
+ */
218
+ updatedAt: string;
219
+ /**
220
+ * Value of the `updated_by` field.
221
+ * @type {string}
222
+ * @memberof EvalDatasetArtifactView
223
+ */
224
+ updatedBy: string;
225
+ /**
226
+ * Optional human version selector (semver); absent when unset.
227
+ * @type {string}
228
+ * @memberof EvalDatasetArtifactView
229
+ */
230
+ versionLabel?: string;
231
+ /**
232
+ * Monotonic version coordinate within the artifact line.
233
+ * @type {number}
234
+ * @memberof EvalDatasetArtifactView
235
+ */
236
+ versionOrdinal: number;
237
+ /**
238
+ * `workspace_`-prefixed handle.
239
+ * @type {string}
240
+ * @memberof EvalDatasetArtifactView
241
+ */
242
+ workspaceId: string;
243
+ /**
244
+ * Anything else the team keys the set by (`metadata` is an envelope key,
245
+ * so this is `extra`). The blessed convention for dynamic-question sets:
246
+ * `extra.data_snapshot_ref` names the frozen data clone the bench ran
247
+ * against, so two experiments claiming this dataset provably ran the
248
+ * same data.
249
+ * @type {{ [key: string]: any; }}
250
+ * @memberof EvalDatasetArtifactView
251
+ */
252
+ extra?: {
253
+ [key: string]: any;
254
+ } | null;
255
+ /**
256
+ * Value of the `permissions` field.
257
+ * @type {{ [key: string]: boolean; }}
258
+ * @memberof EvalDatasetArtifactView
259
+ */
260
+ permissions?: {
261
+ [key: string]: boolean;
262
+ } | null;
263
+ /**
264
+ * Value of the `relationships` field.
265
+ * @type {RegistryRelationshipsView}
266
+ * @memberof EvalDatasetArtifactView
267
+ */
268
+ relationships?: RegistryRelationshipsView | null;
269
+ }
270
+ /**
271
+ * Check if a given object implements the EvalDatasetArtifactView interface.
272
+ */
273
+ export declare function instanceOfEvalDatasetArtifactView(value: object): value is EvalDatasetArtifactView;
274
+ export declare function EvalDatasetArtifactViewFromJSON(json: any): EvalDatasetArtifactView;
275
+ export declare function EvalDatasetArtifactViewFromJSONTyped(json: any, ignoreDiscriminator: boolean): EvalDatasetArtifactView;
276
+ export declare function EvalDatasetArtifactViewToJSON(json: any): EvalDatasetArtifactView;
277
+ export declare function EvalDatasetArtifactViewToJSONTyped(value?: EvalDatasetArtifactView | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,146 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Evaluation catalog
6
+ * The evaluation loop as registry artifacts: curated `dataset`s of examples pinned from production sessions and traces, `experiment` run snapshots with create-only per-case `experiment_result`s, and versioned `scorer` definitions. A verdict is a score span in the run\'s trace; `POST /experiments/{id}/summarize` rolls a run\'s score spans into its durable `summary`. The gateway executes and scores nothing — external harnesses, CI, and judges run the evals, emit score spans, and upload results here.
7
+ *
8
+ * The version of the OpenAPI document: 0.1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfEvalDatasetArtifactView = instanceOfEvalDatasetArtifactView;
17
+ exports.EvalDatasetArtifactViewFromJSON = EvalDatasetArtifactViewFromJSON;
18
+ exports.EvalDatasetArtifactViewFromJSONTyped = EvalDatasetArtifactViewFromJSONTyped;
19
+ exports.EvalDatasetArtifactViewToJSON = EvalDatasetArtifactViewToJSON;
20
+ exports.EvalDatasetArtifactViewToJSONTyped = EvalDatasetArtifactViewToJSONTyped;
21
+ const GatewayArtifactIdentityRevealView_1 = require("./GatewayArtifactIdentityRevealView");
22
+ const RegistryRelationshipsView_1 = require("./RegistryRelationshipsView");
23
+ /**
24
+ * Check if a given object implements the EvalDatasetArtifactView interface.
25
+ */
26
+ function instanceOfEvalDatasetArtifactView(value) {
27
+ if ((!('artifactStatus' in value) && !('artifact_status' in value)) || (value['artifactStatus'] === undefined && value['artifact_status'] === undefined))
28
+ return false;
29
+ if ((!('commitTs' in value) && !('commit_ts' in value)) || (value['commitTs'] === undefined && value['commit_ts'] === undefined))
30
+ return false;
31
+ if ((!('createdAt' in value) && !('created_at' in value)) || (value['createdAt'] === undefined && value['created_at'] === undefined))
32
+ return false;
33
+ if ((!('createdBy' in value) && !('created_by' in value)) || (value['createdBy'] === undefined && value['created_by'] === undefined))
34
+ return false;
35
+ if (!('id' in value) || value['id'] === undefined)
36
+ return false;
37
+ if ((!('isLatest' in value) && !('is_latest' in value)) || (value['isLatest'] === undefined && value['is_latest'] === undefined))
38
+ return false;
39
+ if (!('kind' in value) || value['kind'] === undefined)
40
+ return false;
41
+ if (!('name' in value) || value['name'] === undefined)
42
+ return false;
43
+ if ((!('sourceType' in value) && !('source_type' in value)) || (value['sourceType'] === undefined && value['source_type'] === undefined))
44
+ return false;
45
+ if ((!('updatedAt' in value) && !('updated_at' in value)) || (value['updatedAt'] === undefined && value['updated_at'] === undefined))
46
+ return false;
47
+ if ((!('updatedBy' in value) && !('updated_by' in value)) || (value['updatedBy'] === undefined && value['updated_by'] === undefined))
48
+ return false;
49
+ if ((!('versionOrdinal' in value) && !('version_ordinal' in value)) || (value['versionOrdinal'] === undefined && value['version_ordinal'] === undefined))
50
+ return false;
51
+ if ((!('workspaceId' in value) && !('workspace_id' in value)) || (value['workspaceId'] === undefined && value['workspace_id'] === undefined))
52
+ return false;
53
+ return true;
54
+ }
55
+ function EvalDatasetArtifactViewFromJSON(json) {
56
+ return EvalDatasetArtifactViewFromJSONTyped(json, false);
57
+ }
58
+ function EvalDatasetArtifactViewFromJSONTyped(json, ignoreDiscriminator) {
59
+ if (json == null) {
60
+ return json;
61
+ }
62
+ return {
63
+ 'artifactStatus': json['artifact_status'],
64
+ 'commitTs': json['commit_ts'],
65
+ 'contentHashHex': json['content_hash_hex'] == null ? undefined : json['content_hash_hex'],
66
+ 'createdAt': json['created_at'],
67
+ 'createdBy': json['created_by'],
68
+ 'description': json['description'] == null ? undefined : json['description'],
69
+ 'displayName': json['display_name'] == null ? undefined : json['display_name'],
70
+ 'extension': json['extension'] == null ? undefined : json['extension'],
71
+ 'id': json['id'],
72
+ 'identity': json['identity'] == null ? undefined : (0, GatewayArtifactIdentityRevealView_1.GatewayArtifactIdentityRevealViewFromJSON)(json['identity']),
73
+ 'isLatest': json['is_latest'],
74
+ 'kind': json['kind'],
75
+ 'name': json['name'],
76
+ 'oidcClientId': json['oidc_client_id'] == null ? undefined : json['oidc_client_id'],
77
+ 'ownerId': json['owner_id'] == null ? undefined : json['owner_id'],
78
+ 'projectId': json['project_id'] == null ? undefined : json['project_id'],
79
+ 'repoId': json['repo_id'] == null ? undefined : json['repo_id'],
80
+ 'sourceCreatedAt': json['source_created_at'] == null ? undefined : json['source_created_at'],
81
+ 'sourceCreatedBy': json['source_created_by'] == null ? undefined : json['source_created_by'],
82
+ 'sourceDigest': json['source_digest'] == null ? undefined : json['source_digest'],
83
+ 'sourceId': json['source_id'] == null ? undefined : json['source_id'],
84
+ 'sourceLastModifiedAt': json['source_last_modified_at'] == null ? undefined : json['source_last_modified_at'],
85
+ 'sourceLastModifiedBy': json['source_last_modified_by'] == null ? undefined : json['source_last_modified_by'],
86
+ 'sourceMetadata': json['source_metadata'] === undefined ? undefined : json['source_metadata'] === null ? null : json['source_metadata'],
87
+ 'sourceSyncedAt': json['source_synced_at'] == null ? undefined : json['source_synced_at'],
88
+ 'sourceType': json['source_type'],
89
+ 'sourceUri': json['source_uri'] == null ? undefined : json['source_uri'],
90
+ 'sourceVersion': json['source_version'] == null ? undefined : json['source_version'],
91
+ 'updatedAt': json['updated_at'],
92
+ 'updatedBy': json['updated_by'],
93
+ 'versionLabel': json['version_label'] == null ? undefined : json['version_label'],
94
+ 'versionOrdinal': json['version_ordinal'],
95
+ 'workspaceId': json['workspace_id'],
96
+ 'extra': json['extra'] === undefined ? undefined : json['extra'] === null ? null : json['extra'],
97
+ 'permissions': json['permissions'] === undefined ? undefined : json['permissions'] === null ? null : json['permissions'],
98
+ 'relationships': json['relationships'] === undefined ? undefined : json['relationships'] === null ? null : (0, RegistryRelationshipsView_1.RegistryRelationshipsViewFromJSON)(json['relationships']),
99
+ };
100
+ }
101
+ function EvalDatasetArtifactViewToJSON(json) {
102
+ return EvalDatasetArtifactViewToJSONTyped(json, false);
103
+ }
104
+ function EvalDatasetArtifactViewToJSONTyped(value, ignoreDiscriminator = false) {
105
+ if (value == null) {
106
+ return value;
107
+ }
108
+ return {
109
+ 'artifact_status': value['artifactStatus'],
110
+ 'commit_ts': value['commitTs'],
111
+ 'content_hash_hex': value['contentHashHex'],
112
+ 'created_at': value['createdAt'],
113
+ 'created_by': value['createdBy'],
114
+ 'description': value['description'],
115
+ 'display_name': value['displayName'],
116
+ 'extension': value['extension'],
117
+ 'id': value['id'],
118
+ 'identity': (0, GatewayArtifactIdentityRevealView_1.GatewayArtifactIdentityRevealViewToJSON)(value['identity']),
119
+ 'is_latest': value['isLatest'],
120
+ 'kind': value['kind'],
121
+ 'name': value['name'],
122
+ 'oidc_client_id': value['oidcClientId'],
123
+ 'owner_id': value['ownerId'],
124
+ 'project_id': value['projectId'],
125
+ 'repo_id': value['repoId'],
126
+ 'source_created_at': value['sourceCreatedAt'],
127
+ 'source_created_by': value['sourceCreatedBy'],
128
+ 'source_digest': value['sourceDigest'],
129
+ 'source_id': value['sourceId'],
130
+ 'source_last_modified_at': value['sourceLastModifiedAt'],
131
+ 'source_last_modified_by': value['sourceLastModifiedBy'],
132
+ 'source_metadata': value['sourceMetadata'],
133
+ 'source_synced_at': value['sourceSyncedAt'],
134
+ 'source_type': value['sourceType'],
135
+ 'source_uri': value['sourceUri'],
136
+ 'source_version': value['sourceVersion'],
137
+ 'updated_at': value['updatedAt'],
138
+ 'updated_by': value['updatedBy'],
139
+ 'version_label': value['versionLabel'],
140
+ 'version_ordinal': value['versionOrdinal'],
141
+ 'workspace_id': value['workspaceId'],
142
+ 'extra': value['extra'],
143
+ 'permissions': value['permissions'],
144
+ 'relationships': (0, RegistryRelationshipsView_1.RegistryRelationshipsViewToJSON)(value['relationships']),
145
+ };
146
+ }
@@ -0,0 +1,150 @@
1
+ /**
2
+ * Evaluation catalog
3
+ * The evaluation loop as registry artifacts: curated `dataset`s of examples pinned from production sessions and traces, `experiment` run snapshots with create-only per-case `experiment_result`s, and versioned `scorer` definitions. A verdict is a score span in the run\'s trace; `POST /experiments/{id}/summarize` rolls a run\'s score spans into its durable `summary`. The gateway executes and scores nothing — external harnesses, CI, and judges run the evals, emit score spans, and upload results here.
4
+ *
5
+ * The version of the OpenAPI document: 0.1.0
6
+ *
7
+ *
8
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
9
+ * https://openapi-generator.tech
10
+ * Do not edit the class manually.
11
+ */
12
+ /**
13
+ * The caller-writable surface of a new dataset.
14
+ * @export
15
+ * @interface EvalDatasetCreate
16
+ */
17
+ export interface EvalDatasetCreate {
18
+ /**
19
+ * RFC 3339. The upstream's own creation time, never the commit time.
20
+ * @type {string}
21
+ * @memberof EvalDatasetCreate
22
+ */
23
+ sourceCreatedAt?: string;
24
+ /**
25
+ * The upstream author, git `Name <email>` form (distinct from the registry
26
+ * principal `created_by`). The first author; see `source_last_modified_by`
27
+ * for who changed it last.
28
+ * @type {string}
29
+ * @memberof EvalDatasetCreate
30
+ */
31
+ sourceCreatedBy?: string;
32
+ /**
33
+ * What the upstream calls this object. The reconciliation key for a re-sync,
34
+ * and the reason to prefer it over matching on `name`.
35
+ * @type {string}
36
+ * @memberof EvalDatasetCreate
37
+ */
38
+ sourceId?: string;
39
+ /**
40
+ * RFC 3339.
41
+ * @type {string}
42
+ * @memberof EvalDatasetCreate
43
+ */
44
+ sourceLastModifiedAt?: string;
45
+ /**
46
+ * The upstream author of the last change, git `Name <email>` form.
47
+ * @type {string}
48
+ * @memberof EvalDatasetCreate
49
+ */
50
+ sourceLastModifiedBy?: string;
51
+ /**
52
+ *
53
+ * @type {any}
54
+ * @memberof EvalDatasetCreate
55
+ */
56
+ sourceMetadata?: any | null;
57
+ /**
58
+ * RFC 3339. The time of the sync that produced this version.
59
+ * @type {string}
60
+ * @memberof EvalDatasetCreate
61
+ */
62
+ sourceSyncedAt?: string;
63
+ /**
64
+ * The content authority: `git`, `atlan`, `local`, or `external` for a
65
+ * customer's own system. Omitted, the registry defaults it.
66
+ * @type {string}
67
+ * @memberof EvalDatasetCreate
68
+ */
69
+ sourceType?: string;
70
+ /**
71
+ * Scheme-tagged origin — where the upstream object lives.
72
+ * @type {string}
73
+ * @memberof EvalDatasetCreate
74
+ */
75
+ sourceUri?: string;
76
+ /**
77
+ * The upstream revision (a commit hash or tag), distinct from `version_label`.
78
+ * @type {string}
79
+ * @memberof EvalDatasetCreate
80
+ */
81
+ sourceVersion?: string;
82
+ /**
83
+ * Human-readable description.
84
+ * @type {string}
85
+ * @memberof EvalDatasetCreate
86
+ */
87
+ description?: string;
88
+ /**
89
+ * Human-readable label. Omitted, the gateway defaults it to `name`.
90
+ * @type {string}
91
+ * @memberof EvalDatasetCreate
92
+ */
93
+ displayName?: string;
94
+ /**
95
+ * Stable machine handle ([AIP-122](https://google.aip.dev/122)) — short and
96
+ * identifier-shaped, kebab-case by convention. Unique per `(workspace,
97
+ * kind)` among live rows (`artifacts_name_idx`), but not identity: `id`
98
+ * is the only stable handle.
99
+ * @type {string}
100
+ * @memberof EvalDatasetCreate
101
+ */
102
+ name: string;
103
+ /**
104
+ * Optional canonical owner (`users.user_id`). Omitted, the gateway
105
+ * attributes the caller.
106
+ * @type {string}
107
+ * @memberof EvalDatasetCreate
108
+ */
109
+ ownerId?: string;
110
+ /**
111
+ * Optional `project_`-prefixed handle to group under. Must belong to
112
+ * `workspace_id` (else 422).
113
+ * @type {string}
114
+ * @memberof EvalDatasetCreate
115
+ */
116
+ projectId?: string;
117
+ /**
118
+ * Optional `repo_`-prefixed source repository. No default — a repo is a
119
+ * factual claim about provenance, so it is never guessed.
120
+ * @type {string}
121
+ * @memberof EvalDatasetCreate
122
+ */
123
+ repoId?: string;
124
+ /**
125
+ * `workspace_`-prefixed handle to create in. **Required** — there is
126
+ * deliberately no default, because guessing a tenant's namespace is
127
+ * invisible until someone else reads the data.
128
+ * @type {string}
129
+ * @memberof EvalDatasetCreate
130
+ */
131
+ workspaceId: string;
132
+ /**
133
+ * Anything else the team keys the set by. Convention for
134
+ * dynamic-question sets: `extra.data_snapshot_ref` names the frozen data
135
+ * clone the bench ran against.
136
+ * @type {{ [key: string]: any; }}
137
+ * @memberof EvalDatasetCreate
138
+ */
139
+ extra?: {
140
+ [key: string]: any;
141
+ } | null;
142
+ }
143
+ /**
144
+ * Check if a given object implements the EvalDatasetCreate interface.
145
+ */
146
+ export declare function instanceOfEvalDatasetCreate(value: object): value is EvalDatasetCreate;
147
+ export declare function EvalDatasetCreateFromJSON(json: any): EvalDatasetCreate;
148
+ export declare function EvalDatasetCreateFromJSONTyped(json: any, ignoreDiscriminator: boolean): EvalDatasetCreate;
149
+ export declare function EvalDatasetCreateToJSON(json: any): EvalDatasetCreate;
150
+ export declare function EvalDatasetCreateToJSONTyped(value?: EvalDatasetCreate | null, ignoreDiscriminator?: boolean): any;
@@ -0,0 +1,86 @@
1
+ "use strict";
2
+ /* tslint:disable */
3
+ /* eslint-disable */
4
+ /**
5
+ * Evaluation catalog
6
+ * The evaluation loop as registry artifacts: curated `dataset`s of examples pinned from production sessions and traces, `experiment` run snapshots with create-only per-case `experiment_result`s, and versioned `scorer` definitions. A verdict is a score span in the run\'s trace; `POST /experiments/{id}/summarize` rolls a run\'s score spans into its durable `summary`. The gateway executes and scores nothing — external harnesses, CI, and judges run the evals, emit score spans, and upload results here.
7
+ *
8
+ * The version of the OpenAPI document: 0.1.0
9
+ *
10
+ *
11
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
12
+ * https://openapi-generator.tech
13
+ * Do not edit the class manually.
14
+ */
15
+ Object.defineProperty(exports, "__esModule", { value: true });
16
+ exports.instanceOfEvalDatasetCreate = instanceOfEvalDatasetCreate;
17
+ exports.EvalDatasetCreateFromJSON = EvalDatasetCreateFromJSON;
18
+ exports.EvalDatasetCreateFromJSONTyped = EvalDatasetCreateFromJSONTyped;
19
+ exports.EvalDatasetCreateToJSON = EvalDatasetCreateToJSON;
20
+ exports.EvalDatasetCreateToJSONTyped = EvalDatasetCreateToJSONTyped;
21
+ /**
22
+ * Check if a given object implements the EvalDatasetCreate interface.
23
+ */
24
+ function instanceOfEvalDatasetCreate(value) {
25
+ if (!('name' in value) || value['name'] === undefined)
26
+ return false;
27
+ if ((!('workspaceId' in value) && !('workspace_id' in value)) || (value['workspaceId'] === undefined && value['workspace_id'] === undefined))
28
+ return false;
29
+ return true;
30
+ }
31
+ function EvalDatasetCreateFromJSON(json) {
32
+ return EvalDatasetCreateFromJSONTyped(json, false);
33
+ }
34
+ function EvalDatasetCreateFromJSONTyped(json, ignoreDiscriminator) {
35
+ if (json == null) {
36
+ return json;
37
+ }
38
+ return {
39
+ 'sourceCreatedAt': json['source_created_at'] == null ? undefined : json['source_created_at'],
40
+ 'sourceCreatedBy': json['source_created_by'] == null ? undefined : json['source_created_by'],
41
+ 'sourceId': json['source_id'] == null ? undefined : json['source_id'],
42
+ 'sourceLastModifiedAt': json['source_last_modified_at'] == null ? undefined : json['source_last_modified_at'],
43
+ 'sourceLastModifiedBy': json['source_last_modified_by'] == null ? undefined : json['source_last_modified_by'],
44
+ 'sourceMetadata': json['source_metadata'] === undefined ? undefined : json['source_metadata'] === null ? null : json['source_metadata'],
45
+ 'sourceSyncedAt': json['source_synced_at'] == null ? undefined : json['source_synced_at'],
46
+ 'sourceType': json['source_type'] == null ? undefined : json['source_type'],
47
+ 'sourceUri': json['source_uri'] == null ? undefined : json['source_uri'],
48
+ 'sourceVersion': json['source_version'] == null ? undefined : json['source_version'],
49
+ 'description': json['description'] == null ? undefined : json['description'],
50
+ 'displayName': json['display_name'] == null ? undefined : json['display_name'],
51
+ 'name': json['name'],
52
+ 'ownerId': json['owner_id'] == null ? undefined : json['owner_id'],
53
+ 'projectId': json['project_id'] == null ? undefined : json['project_id'],
54
+ 'repoId': json['repo_id'] == null ? undefined : json['repo_id'],
55
+ 'workspaceId': json['workspace_id'],
56
+ 'extra': json['extra'] === undefined ? undefined : json['extra'] === null ? null : json['extra'],
57
+ };
58
+ }
59
+ function EvalDatasetCreateToJSON(json) {
60
+ return EvalDatasetCreateToJSONTyped(json, false);
61
+ }
62
+ function EvalDatasetCreateToJSONTyped(value, ignoreDiscriminator = false) {
63
+ if (value == null) {
64
+ return value;
65
+ }
66
+ return {
67
+ 'source_created_at': value['sourceCreatedAt'],
68
+ 'source_created_by': value['sourceCreatedBy'],
69
+ 'source_id': value['sourceId'],
70
+ 'source_last_modified_at': value['sourceLastModifiedAt'],
71
+ 'source_last_modified_by': value['sourceLastModifiedBy'],
72
+ 'source_metadata': value['sourceMetadata'],
73
+ 'source_synced_at': value['sourceSyncedAt'],
74
+ 'source_type': value['sourceType'],
75
+ 'source_uri': value['sourceUri'],
76
+ 'source_version': value['sourceVersion'],
77
+ 'description': value['description'],
78
+ 'display_name': value['displayName'],
79
+ 'name': value['name'],
80
+ 'owner_id': value['ownerId'],
81
+ 'project_id': value['projectId'],
82
+ 'repo_id': value['repoId'],
83
+ 'workspace_id': value['workspaceId'],
84
+ 'extra': value['extra'],
85
+ };
86
+ }