@toloka-platform/sdk 0.1.0 → 0.2.0-preview.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 (294) hide show
  1. package/README.md +2 -2
  2. package/dist/cli/toloka.js +138 -136
  3. package/dist/cli/toloka.js.jsc +0 -0
  4. package/dist/cli/toloka.js.jsc.sha256 +1 -1
  5. package/dist/cli/toloka.js.sha256 +1 -1
  6. package/docs/cli-v2.md +1 -1
  7. package/docs/cli.md +3 -1
  8. package/docs/getting-started.md +1 -1
  9. package/docs/limitations.md +2 -2
  10. package/docs/testing.md +1 -1
  11. package/examples/face-image-collection/README.md +1 -1
  12. package/openapi/gen/api.ts +1482 -777
  13. package/openapi/gen/models/createDatasetExportBody.ts +5 -3
  14. package/openapi/gen/models/createDatasetExportBodyFormat.ts +2 -0
  15. package/openapi/gen/models/createProjectTrainingBody.ts +6 -0
  16. package/openapi/gen/models/createTrainingRunBody.ts +6 -0
  17. package/openapi/gen/models/datasetExportReportTokens.ts +4 -1
  18. package/openapi/gen/models/datasetExportReportTokensEstimatorVersion.ts +2 -0
  19. package/openapi/gen/models/datasetExportReportTokensTotal.ts +2 -0
  20. package/openapi/gen/models/estimateTrainingCostBody.ts +5 -0
  21. package/openapi/gen/models/exportJob.ts +2 -0
  22. package/openapi/gen/models/exportJobError.ts +3 -0
  23. package/openapi/gen/models/exportJobErrorAnyOf.ts +7 -0
  24. package/openapi/gen/models/exportJobErrorAnyOfCode.ts +2 -0
  25. package/openapi/gen/models/exportJobStatus.ts +1 -1
  26. package/openapi/gen/models/generationNodeSettingsAudienceAndPricingOneOfOneoneGenerationModelId.ts +1 -1
  27. package/openapi/gen/models/generationNodeSettingsQualityAssuranceOneOfFourLlmQaModelId.ts +1 -1
  28. package/openapi/gen/models/generationNodeSettingsQualityAssuranceOneOfLlmQaModelId.ts +1 -1
  29. package/openapi/gen/models/getTrainingRunLogsParams.ts +5 -0
  30. package/openapi/gen/models/gistingTrainingConfiguration.ts +13 -0
  31. package/openapi/gen/models/gistingTrainingConfigurationInput.ts +13 -0
  32. package/openapi/gen/models/gistingTrainingConfigurationInputRegime.ts +2 -0
  33. package/openapi/gen/models/gistingTrainingConfigurationRegime.ts +2 -0
  34. package/openapi/gen/models/index.ts +230 -16
  35. package/openapi/gen/models/listProjectTrainings200.ts +7 -0
  36. package/openapi/gen/models/listProjectTrainingsParams.ts +5 -0
  37. package/openapi/gen/models/listTrainingRuns200.ts +7 -0
  38. package/openapi/gen/models/listTrainingRunsParams.ts +5 -0
  39. package/openapi/gen/models/modelVersion.ts +6 -1
  40. package/openapi/gen/models/modelVersionContent.ts +4 -0
  41. package/openapi/gen/models/modelVersionContentDownload.ts +11 -0
  42. package/openapi/gen/models/modelVersionContentDownloadContent.ts +4 -0
  43. package/openapi/gen/models/modelVersionContentDownloadContentOneOf.ts +10 -0
  44. package/openapi/gen/models/modelVersionContentDownloadContentOneOfManifestItem.ts +8 -0
  45. package/openapi/gen/models/modelVersionContentDownloadContentOneOfManifestItemMediaType.ts +2 -0
  46. package/openapi/gen/models/modelVersionContentDownloadContentOneOfNine.ts +8 -0
  47. package/openapi/gen/models/modelVersionContentDownloadContentOneOfNineManifestItem.ts +8 -0
  48. package/openapi/gen/models/modelVersionContentDownloadContentOneOfNineManifestItemMediaType.ts +2 -0
  49. package/openapi/gen/models/modelVersionContentDownloadContentOneOfNineRuntimeBase.ts +2 -0
  50. package/openapi/gen/models/modelVersionContentDownloadContentOneOfParent.ts +4 -0
  51. package/openapi/gen/models/modelVersionContentDownloadContentOneOfParentOneOf.ts +6 -0
  52. package/openapi/gen/models/modelVersionContentDownloadContentOneOfParentOneOfBaseModelId.ts +2 -0
  53. package/openapi/gen/models/modelVersionContentDownloadContentOneOfParentOneOfThree.ts +5 -0
  54. package/openapi/gen/models/modelVersionContentDownloadContentOneOfRuntimeBase.ts +2 -0
  55. package/openapi/gen/models/modelVersionContentDownloadFilesItem.ts +9 -0
  56. package/openapi/gen/models/modelVersionContentDownloadFilesItemMediaType.ts +2 -0
  57. package/openapi/gen/models/modelVersionContentOneOf.ts +10 -0
  58. package/openapi/gen/models/modelVersionContentOneOfManifestItem.ts +8 -0
  59. package/openapi/gen/models/modelVersionContentOneOfManifestItemMediaType.ts +2 -0
  60. package/openapi/gen/models/modelVersionContentOneOfNine.ts +8 -0
  61. package/openapi/gen/models/modelVersionContentOneOfNineManifestItem.ts +8 -0
  62. package/openapi/gen/models/modelVersionContentOneOfNineManifestItemMediaType.ts +2 -0
  63. package/openapi/gen/models/modelVersionContentOneOfNineRuntimeBase.ts +2 -0
  64. package/openapi/gen/models/modelVersionContentOneOfParent.ts +4 -0
  65. package/openapi/gen/models/modelVersionContentOneOfParentOneOf.ts +6 -0
  66. package/openapi/gen/models/modelVersionContentOneOfParentOneOfBaseModelId.ts +2 -0
  67. package/openapi/gen/models/modelVersionContentOneOfParentOneOfThree.ts +5 -0
  68. package/openapi/gen/models/modelVersionContentOneOfRuntimeBase.ts +2 -0
  69. package/openapi/gen/models/modelVersionProducer.ts +5 -0
  70. package/openapi/gen/models/pipelineGraphSnapshotGraphNodesItemOneOfOnefoursevenSettingsQualityAssuranceOneOfLlmQaModelId.ts +1 -1
  71. package/openapi/gen/models/pipelineGraphSnapshotGraphNodesItemOneOfThreeoneSettingsAudienceAndPricingOneOfOneoneGenerationModelId.ts +1 -1
  72. package/openapi/gen/models/pipelineGraphSnapshotGraphNodesItemOneOfThreeoneSettingsQualityAssuranceOneOfFourLlmQaModelId.ts +1 -1
  73. package/openapi/gen/models/pipelineGraphSnapshotGraphNodesItemOneOfThreeoneSettingsQualityAssuranceOneOfLlmQaModelId.ts +1 -1
  74. package/openapi/gen/models/prepareTrainingCostEstimateInputsBody.ts +2 -0
  75. package/openapi/gen/models/quorumNodeSettingsQualityAssuranceOneOfLlmQaModelId.ts +1 -1
  76. package/openapi/gen/models/replaceTrainingConfigurationBody.ts +5 -0
  77. package/openapi/gen/models/sftTrainingConfiguration.ts +13 -0
  78. package/openapi/gen/models/sftTrainingConfigurationInput.ts +13 -0
  79. package/openapi/gen/models/sftTrainingConfigurationInputRegime.ts +2 -0
  80. package/openapi/gen/models/sftTrainingConfigurationRegime.ts +2 -0
  81. package/openapi/gen/models/training.ts +16 -0
  82. package/openapi/gen/models/trainingArchivedAt.ts +2 -0
  83. package/openapi/gen/models/trainingConfiguration.ts +4 -0
  84. package/openapi/gen/models/trainingConfigurationInput.ts +4 -0
  85. package/openapi/gen/models/trainingCostEstimate.ts +4 -0
  86. package/openapi/gen/models/trainingCostEstimateInputSet.ts +12 -0
  87. package/openapi/gen/models/trainingCostEstimateInputSetExports.ts +6 -0
  88. package/openapi/gen/models/trainingCostEstimateInputSetExportsValidation.ts +2 -0
  89. package/openapi/gen/models/trainingCostEstimateInputSetId.ts +2 -0
  90. package/openapi/gen/models/trainingCostEstimateOneOf.ts +16 -0
  91. package/openapi/gen/models/trainingCostEstimateOneOfInputs.ts +7 -0
  92. package/openapi/gen/models/trainingCostEstimateOneOfInputsTraining.ts +9 -0
  93. package/openapi/gen/models/trainingCostEstimateOneOfInputsTrainingFailure.ts +3 -0
  94. package/openapi/gen/models/trainingCostEstimateOneOfInputsTrainingFailureAnyOf.ts +7 -0
  95. package/openapi/gen/models/trainingCostEstimateOneOfInputsTrainingFailureAnyOfCode.ts +2 -0
  96. package/openapi/gen/models/trainingCostEstimateOneOfInputsTrainingReport.ts +3 -0
  97. package/openapi/gen/models/trainingCostEstimateOneOfInputsTrainingReportAnyOf.ts +9 -0
  98. package/openapi/gen/models/trainingCostEstimateOneOfInputsTrainingReportAnyOfErrorsItem.ts +5 -0
  99. package/openapi/gen/models/trainingCostEstimateOneOfInputsTrainingReportAnyOfTokens.ts +10 -0
  100. package/openapi/gen/models/trainingCostEstimateOneOfInputsTrainingReportAnyOfTokensEstimatorVersion.ts +2 -0
  101. package/openapi/gen/models/trainingCostEstimateOneOfInputsTrainingReportAnyOfTokensTotal.ts +2 -0
  102. package/openapi/gen/models/trainingCostEstimateOneOfInputsValidation.ts +3 -0
  103. package/openapi/gen/models/trainingCostEstimateOneOfInputsValidationAnyOf.ts +9 -0
  104. package/openapi/gen/models/trainingCostEstimateOneOfInputsValidationAnyOfFailure.ts +3 -0
  105. package/openapi/gen/models/trainingCostEstimateOneOfInputsValidationAnyOfFailureAnyOf.ts +7 -0
  106. package/openapi/gen/models/trainingCostEstimateOneOfInputsValidationAnyOfFailureAnyOfCode.ts +2 -0
  107. package/openapi/gen/models/trainingCostEstimateOneOfInputsValidationAnyOfReport.ts +3 -0
  108. package/openapi/gen/models/trainingCostEstimateOneOfInputsValidationAnyOfReportAnyOf.ts +9 -0
  109. package/openapi/gen/models/trainingCostEstimateOneOfInputsValidationAnyOfReportAnyOfErrorsItem.ts +5 -0
  110. package/openapi/gen/models/trainingCostEstimateOneOfInputsValidationAnyOfReportAnyOfTokens.ts +10 -0
  111. package/openapi/gen/models/trainingCostEstimateOneOfInputsValidationAnyOfReportAnyOfTokensEstimatorVersion.ts +2 -0
  112. package/openapi/gen/models/trainingCostEstimateOneOfInputsValidationAnyOfReportAnyOfTokensTotal.ts +2 -0
  113. package/openapi/gen/models/trainingCostEstimateOneOfIssuesItem.ts +8 -0
  114. package/openapi/gen/models/trainingCostEstimateOneOfIssuesItemCode.ts +2 -0
  115. package/openapi/gen/models/trainingCostEstimateOneOfIssuesItemPurpose.ts +2 -0
  116. package/openapi/gen/models/trainingCostEstimateOneOfTwoseven.ts +23 -0
  117. package/openapi/gen/models/trainingCostEstimateOneOfTwosevenBudget.ts +9 -0
  118. package/openapi/gen/models/trainingCostEstimateOneOfTwosevenInputs.ts +7 -0
  119. package/openapi/gen/models/trainingCostEstimateOneOfTwosevenInputsTraining.ts +9 -0
  120. package/openapi/gen/models/trainingCostEstimateOneOfTwosevenInputsTrainingFailure.ts +3 -0
  121. package/openapi/gen/models/trainingCostEstimateOneOfTwosevenInputsTrainingFailureAnyOf.ts +7 -0
  122. package/openapi/gen/models/trainingCostEstimateOneOfTwosevenInputsTrainingFailureAnyOfCode.ts +2 -0
  123. package/openapi/gen/models/trainingCostEstimateOneOfTwosevenInputsTrainingReport.ts +3 -0
  124. package/openapi/gen/models/trainingCostEstimateOneOfTwosevenInputsTrainingReportAnyOf.ts +9 -0
  125. package/openapi/gen/models/trainingCostEstimateOneOfTwosevenInputsTrainingReportAnyOfErrorsItem.ts +5 -0
  126. package/openapi/gen/models/trainingCostEstimateOneOfTwosevenInputsTrainingReportAnyOfTokens.ts +10 -0
  127. package/openapi/gen/models/trainingCostEstimateOneOfTwosevenInputsTrainingReportAnyOfTokensEstimatorVersion.ts +2 -0
  128. package/openapi/gen/models/trainingCostEstimateOneOfTwosevenInputsTrainingReportAnyOfTokensTotal.ts +2 -0
  129. package/openapi/gen/models/trainingCostEstimateOneOfTwosevenInputsValidation.ts +3 -0
  130. package/openapi/gen/models/trainingCostEstimateOneOfTwosevenInputsValidationAnyOf.ts +9 -0
  131. package/openapi/gen/models/trainingCostEstimateOneOfTwosevenInputsValidationAnyOfFailure.ts +3 -0
  132. package/openapi/gen/models/trainingCostEstimateOneOfTwosevenInputsValidationAnyOfFailureAnyOf.ts +7 -0
  133. package/openapi/gen/models/trainingCostEstimateOneOfTwosevenInputsValidationAnyOfFailureAnyOfCode.ts +2 -0
  134. package/openapi/gen/models/trainingCostEstimateOneOfTwosevenInputsValidationAnyOfReport.ts +3 -0
  135. package/openapi/gen/models/trainingCostEstimateOneOfTwosevenInputsValidationAnyOfReportAnyOf.ts +9 -0
  136. package/openapi/gen/models/trainingCostEstimateOneOfTwosevenInputsValidationAnyOfReportAnyOfErrorsItem.ts +5 -0
  137. package/openapi/gen/models/trainingCostEstimateOneOfTwosevenInputsValidationAnyOfReportAnyOfTokens.ts +10 -0
  138. package/openapi/gen/models/trainingCostEstimateOneOfTwosevenInputsValidationAnyOfReportAnyOfTokensEstimatorVersion.ts +2 -0
  139. package/openapi/gen/models/trainingCostEstimateOneOfTwosevenInputsValidationAnyOfReportAnyOfTokensTotal.ts +2 -0
  140. package/openapi/gen/models/trainingCostEstimateOneOfTwosevenIssuesItem.ts +8 -0
  141. package/openapi/gen/models/trainingCostEstimateOneOfTwosevenIssuesItemCode.ts +2 -0
  142. package/openapi/gen/models/trainingCostEstimateOneOfTwosevenIssuesItemPurpose.ts +2 -0
  143. package/openapi/gen/models/trainingDatasetItemFilter.ts +8 -0
  144. package/openapi/gen/models/trainingDatasetItemFilterFieldSourcesItem.ts +6 -0
  145. package/openapi/gen/models/trainingDatasetItemFilterFieldSourcesItemSourcesItem.ts +4 -0
  146. package/openapi/gen/models/trainingDatasetItemFilterFieldSourcesItemSourcesItemOneOf.ts +5 -0
  147. package/openapi/gen/models/trainingDatasetItemFilterFieldSourcesItemSourcesItemOneOfTwo.ts +5 -0
  148. package/openapi/gen/models/trainingDatasetItemFilterFieldValuesItem.ts +12 -0
  149. package/openapi/gen/models/trainingDatasetItemFilterFieldValuesItemOperator.ts +2 -0
  150. package/openapi/gen/models/trainingDatasetItemFilterFieldValuesItemSourcesItem.ts +4 -0
  151. package/openapi/gen/models/trainingDatasetItemFilterFieldValuesItemSourcesItemOneOf.ts +5 -0
  152. package/openapi/gen/models/trainingDatasetItemFilterFieldValuesItemSourcesItemOneOfTwo.ts +5 -0
  153. package/openapi/gen/models/trainingDatasetItemFilterFieldValuesItemValue.ts +2 -0
  154. package/openapi/gen/models/trainingDatasetItemFilterInput.ts +8 -0
  155. package/openapi/gen/models/trainingDatasetItemFilterInputFieldSourcesItem.ts +6 -0
  156. package/openapi/gen/models/trainingDatasetItemFilterInputFieldSourcesItemSourcesItem.ts +4 -0
  157. package/openapi/gen/models/trainingDatasetItemFilterInputFieldSourcesItemSourcesItemOneOf.ts +5 -0
  158. package/openapi/gen/models/trainingDatasetItemFilterInputFieldSourcesItemSourcesItemOneOfTwo.ts +5 -0
  159. package/openapi/gen/models/trainingDatasetItemFilterInputFieldValuesItem.ts +12 -0
  160. package/openapi/gen/models/trainingDatasetItemFilterInputFieldValuesItemOperator.ts +2 -0
  161. package/openapi/gen/models/trainingDatasetItemFilterInputFieldValuesItemSourcesItem.ts +4 -0
  162. package/openapi/gen/models/trainingDatasetItemFilterInputFieldValuesItemSourcesItemOneOf.ts +5 -0
  163. package/openapi/gen/models/trainingDatasetItemFilterInputFieldValuesItemSourcesItemOneOfTwo.ts +5 -0
  164. package/openapi/gen/models/trainingDatasetItemFilterInputFieldValuesItemValue.ts +2 -0
  165. package/openapi/gen/models/trainingDatasetSelection.ts +6 -0
  166. package/openapi/gen/models/trainingDatasetSelectionInput.ts +6 -0
  167. package/openapi/gen/models/trainingId.ts +2 -0
  168. package/openapi/gen/models/trainingModelId.ts +3 -0
  169. package/openapi/gen/models/trainingModelSource.ts +4 -0
  170. package/openapi/gen/models/trainingModelSourceOneOf.ts +6 -0
  171. package/openapi/gen/models/trainingModelSourceOneOfBaseModelId.ts +2 -0
  172. package/openapi/gen/models/trainingModelSourceOneOfThree.ts +5 -0
  173. package/openapi/gen/models/trainingRun.ts +39 -0
  174. package/openapi/gen/models/trainingRunBillingStatus.ts +2 -0
  175. package/openapi/gen/models/trainingRunBlockedReason.ts +2 -0
  176. package/openapi/gen/models/trainingRunChargedAmount.ts +2 -0
  177. package/openapi/gen/models/trainingRunError.ts +3 -0
  178. package/openapi/gen/models/trainingRunErrorAnyOf.ts +7 -0
  179. package/openapi/gen/models/trainingRunErrorAnyOfCode.ts +2 -0
  180. package/openapi/gen/models/trainingRunId.ts +2 -0
  181. package/openapi/gen/models/trainingRunInputs.ts +3 -0
  182. package/openapi/gen/models/trainingRunInputsAnyOf.ts +7 -0
  183. package/openapi/gen/models/trainingRunInputsAnyOfTraining.ts +15 -0
  184. package/openapi/gen/models/trainingRunInputsAnyOfTrainingContract.ts +2 -0
  185. package/openapi/gen/models/trainingRunInputsAnyOfTrainingItemFilter.ts +9 -0
  186. package/openapi/gen/models/trainingRunInputsAnyOfTrainingItemFilterFieldSourcesItem.ts +6 -0
  187. package/openapi/gen/models/trainingRunInputsAnyOfTrainingItemFilterFieldSourcesItemSourcesItem.ts +4 -0
  188. package/openapi/gen/models/trainingRunInputsAnyOfTrainingItemFilterFieldSourcesItemSourcesItemOneOf.ts +5 -0
  189. package/openapi/gen/models/trainingRunInputsAnyOfTrainingItemFilterFieldSourcesItemSourcesItemOneOfTwo.ts +5 -0
  190. package/openapi/gen/models/trainingRunInputsAnyOfTrainingItemFilterFieldValuesItem.ts +12 -0
  191. package/openapi/gen/models/trainingRunInputsAnyOfTrainingItemFilterFieldValuesItemOperator.ts +2 -0
  192. package/openapi/gen/models/trainingRunInputsAnyOfTrainingItemFilterFieldValuesItemSourcesItem.ts +4 -0
  193. package/openapi/gen/models/trainingRunInputsAnyOfTrainingItemFilterFieldValuesItemSourcesItemOneOf.ts +5 -0
  194. package/openapi/gen/models/trainingRunInputsAnyOfTrainingItemFilterFieldValuesItemSourcesItemOneOfTwo.ts +5 -0
  195. package/openapi/gen/models/trainingRunInputsAnyOfTrainingItemFilterFieldValuesItemValue.ts +2 -0
  196. package/openapi/gen/models/trainingRunInputsAnyOfTrainingReport.ts +9 -0
  197. package/openapi/gen/models/trainingRunInputsAnyOfTrainingReportErrorsItem.ts +5 -0
  198. package/openapi/gen/models/trainingRunInputsAnyOfTrainingReportTokens.ts +10 -0
  199. package/openapi/gen/models/trainingRunInputsAnyOfTrainingReportTokensEstimatorVersion.ts +2 -0
  200. package/openapi/gen/models/trainingRunInputsAnyOfTrainingReportTokensTotal.ts +2 -0
  201. package/openapi/gen/models/trainingRunInputsAnyOfValidation.ts +3 -0
  202. package/openapi/gen/models/trainingRunInputsAnyOfValidationAnyOf.ts +15 -0
  203. package/openapi/gen/models/trainingRunInputsAnyOfValidationAnyOfContract.ts +2 -0
  204. package/openapi/gen/models/trainingRunInputsAnyOfValidationAnyOfItemFilter.ts +9 -0
  205. package/openapi/gen/models/trainingRunInputsAnyOfValidationAnyOfItemFilterFieldSourcesItem.ts +6 -0
  206. package/openapi/gen/models/trainingRunInputsAnyOfValidationAnyOfItemFilterFieldSourcesItemSourcesItem.ts +4 -0
  207. package/openapi/gen/models/trainingRunInputsAnyOfValidationAnyOfItemFilterFieldSourcesItemSourcesItemOneOf.ts +5 -0
  208. package/openapi/gen/models/trainingRunInputsAnyOfValidationAnyOfItemFilterFieldSourcesItemSourcesItemOneOfTwo.ts +5 -0
  209. package/openapi/gen/models/trainingRunInputsAnyOfValidationAnyOfItemFilterFieldValuesItem.ts +12 -0
  210. package/openapi/gen/models/trainingRunInputsAnyOfValidationAnyOfItemFilterFieldValuesItemOperator.ts +2 -0
  211. package/openapi/gen/models/trainingRunInputsAnyOfValidationAnyOfItemFilterFieldValuesItemSourcesItem.ts +4 -0
  212. package/openapi/gen/models/trainingRunInputsAnyOfValidationAnyOfItemFilterFieldValuesItemSourcesItemOneOf.ts +5 -0
  213. package/openapi/gen/models/trainingRunInputsAnyOfValidationAnyOfItemFilterFieldValuesItemSourcesItemOneOfTwo.ts +5 -0
  214. package/openapi/gen/models/trainingRunInputsAnyOfValidationAnyOfItemFilterFieldValuesItemValue.ts +2 -0
  215. package/openapi/gen/models/trainingRunInputsAnyOfValidationAnyOfReport.ts +9 -0
  216. package/openapi/gen/models/trainingRunInputsAnyOfValidationAnyOfReportErrorsItem.ts +5 -0
  217. package/openapi/gen/models/trainingRunInputsAnyOfValidationAnyOfReportTokens.ts +10 -0
  218. package/openapi/gen/models/trainingRunInputsAnyOfValidationAnyOfReportTokensEstimatorVersion.ts +2 -0
  219. package/openapi/gen/models/trainingRunInputsAnyOfValidationAnyOfReportTokensTotal.ts +2 -0
  220. package/openapi/gen/models/trainingRunLogs.ts +9 -0
  221. package/openapi/gen/models/trainingRunLogsEntriesItem.ts +7 -0
  222. package/openapi/gen/models/trainingRunLogsEntriesItemLevel.ts +2 -0
  223. package/openapi/gen/models/trainingRunLogsNextCursor.ts +2 -0
  224. package/openapi/gen/models/trainingRunMessage.ts +2 -0
  225. package/openapi/gen/models/trainingRunOutputModelVersionRevision.ts +2 -0
  226. package/openapi/gen/models/trainingRunProgress.ts +3 -0
  227. package/openapi/gen/models/trainingRunProgressAnyOf.ts +10 -0
  228. package/openapi/gen/models/trainingRunProgressAnyOfMessage.ts +2 -0
  229. package/openapi/gen/models/trainingRunProgressAnyOfStep.ts +2 -0
  230. package/openapi/gen/models/trainingRunProgressAnyOfTotal.ts +2 -0
  231. package/openapi/gen/models/trainingRunQuote.ts +17 -0
  232. package/openapi/gen/models/trainingRunQuoteBudget.ts +9 -0
  233. package/openapi/gen/models/trainingRunQuoteInputs.ts +7 -0
  234. package/openapi/gen/models/trainingRunQuoteInputsTraining.ts +9 -0
  235. package/openapi/gen/models/trainingRunQuoteInputsTrainingFailure.ts +3 -0
  236. package/openapi/gen/models/trainingRunQuoteInputsTrainingFailureAnyOf.ts +7 -0
  237. package/openapi/gen/models/trainingRunQuoteInputsTrainingFailureAnyOfCode.ts +2 -0
  238. package/openapi/gen/models/trainingRunQuoteInputsTrainingReport.ts +3 -0
  239. package/openapi/gen/models/trainingRunQuoteInputsTrainingReportAnyOf.ts +9 -0
  240. package/openapi/gen/models/trainingRunQuoteInputsTrainingReportAnyOfErrorsItem.ts +5 -0
  241. package/openapi/gen/models/trainingRunQuoteInputsTrainingReportAnyOfTokens.ts +10 -0
  242. package/openapi/gen/models/trainingRunQuoteInputsTrainingReportAnyOfTokensEstimatorVersion.ts +2 -0
  243. package/openapi/gen/models/trainingRunQuoteInputsTrainingReportAnyOfTokensTotal.ts +2 -0
  244. package/openapi/gen/models/trainingRunQuoteInputsValidation.ts +3 -0
  245. package/openapi/gen/models/trainingRunQuoteInputsValidationAnyOf.ts +9 -0
  246. package/openapi/gen/models/trainingRunQuoteInputsValidationAnyOfFailure.ts +3 -0
  247. package/openapi/gen/models/trainingRunQuoteInputsValidationAnyOfFailureAnyOf.ts +7 -0
  248. package/openapi/gen/models/trainingRunQuoteInputsValidationAnyOfFailureAnyOfCode.ts +2 -0
  249. package/openapi/gen/models/trainingRunQuoteInputsValidationAnyOfReport.ts +3 -0
  250. package/openapi/gen/models/trainingRunQuoteInputsValidationAnyOfReportAnyOf.ts +9 -0
  251. package/openapi/gen/models/trainingRunQuoteInputsValidationAnyOfReportAnyOfErrorsItem.ts +5 -0
  252. package/openapi/gen/models/trainingRunQuoteInputsValidationAnyOfReportAnyOfTokens.ts +10 -0
  253. package/openapi/gen/models/trainingRunQuoteInputsValidationAnyOfReportAnyOfTokensEstimatorVersion.ts +2 -0
  254. package/openapi/gen/models/trainingRunQuoteInputsValidationAnyOfReportAnyOfTokensTotal.ts +2 -0
  255. package/openapi/gen/models/trainingRunStatus.ts +2 -0
  256. package/openapi/gen/models/updateTrainingMetadataBody.ts +5 -0
  257. package/openapi/gen/models/validatePipelineGraphBodyGraphNodesItemOneOfOnefoursevenSettingsQualityAssuranceOneOfLlmQaModelId.ts +1 -1
  258. package/openapi/gen/models/validatePipelineGraphBodyGraphNodesItemOneOfThreeoneSettingsAudienceAndPricingOneOfOneoneGenerationModelId.ts +1 -1
  259. package/openapi/gen/models/validatePipelineGraphBodyGraphNodesItemOneOfThreeoneSettingsQualityAssuranceOneOfFourLlmQaModelId.ts +1 -1
  260. package/openapi/gen/models/validatePipelineGraphBodyGraphNodesItemOneOfThreeoneSettingsQualityAssuranceOneOfLlmQaModelId.ts +1 -1
  261. package/package.json +1 -1
  262. package/skills/catalog.json +19 -7
  263. package/skills/toloka-build/SKILL.md +3 -3
  264. package/skills/toloka-build/references/node-semantics.md +2 -1
  265. package/skills/toloka-build/references/workflow-and-cli.md +19 -2
  266. package/skills/toloka-report-issue/references/report-template.md +1 -1
  267. package/src/cli/auth.ts +1 -1
  268. package/src/cli/bin.ts +1 -1
  269. package/src/cli/cost.ts +1 -1
  270. package/src/cli/models.ts +107 -2
  271. package/src/cli/program.ts +243 -0
  272. package/src/cli/project-context.ts +9 -10
  273. package/src/cli/project.ts +2 -1
  274. package/src/cli/secrets.ts +4 -4
  275. package/src/cli/trainings.ts +627 -0
  276. package/src/client.ts +164 -30
  277. package/src/index.ts +2 -0
  278. package/src/pipeline-graph-v1.contract.json +16 -6
  279. package/openapi/gen/models/createDatasetExportBodyOneOf.ts +0 -6
  280. package/openapi/gen/models/createDatasetExportBodyOneOfFormat.ts +0 -2
  281. package/openapi/gen/models/createDatasetExportBodyOneOfThree.ts +0 -10
  282. package/openapi/gen/models/createDatasetExportBodyOneOfThreeContract.ts +0 -2
  283. package/openapi/gen/models/createDatasetExportBodyOneOfThreeFormat.ts +0 -2
  284. package/openapi/gen/models/createDatasetExportBodyOneOfThreeItemFilter.ts +0 -9
  285. package/openapi/gen/models/createDatasetExportBodyOneOfThreeItemFilterFieldSourcesItem.ts +0 -6
  286. package/openapi/gen/models/createDatasetExportBodyOneOfThreeItemFilterFieldSourcesItemSourcesItem.ts +0 -4
  287. package/openapi/gen/models/createDatasetExportBodyOneOfThreeItemFilterFieldSourcesItemSourcesItemOneOf.ts +0 -5
  288. package/openapi/gen/models/createDatasetExportBodyOneOfThreeItemFilterFieldSourcesItemSourcesItemOneOfTwo.ts +0 -5
  289. package/openapi/gen/models/createDatasetExportBodyOneOfThreeItemFilterFieldValuesItem.ts +0 -12
  290. package/openapi/gen/models/createDatasetExportBodyOneOfThreeItemFilterFieldValuesItemOperator.ts +0 -2
  291. package/openapi/gen/models/createDatasetExportBodyOneOfThreeItemFilterFieldValuesItemSourcesItem.ts +0 -4
  292. package/openapi/gen/models/createDatasetExportBodyOneOfThreeItemFilterFieldValuesItemSourcesItemOneOf.ts +0 -5
  293. package/openapi/gen/models/createDatasetExportBodyOneOfThreeItemFilterFieldValuesItemSourcesItemOneOfTwo.ts +0 -5
  294. package/openapi/gen/models/createDatasetExportBodyOneOfThreeItemFilterFieldValuesItemValue.ts +0 -2
@@ -0,0 +1,2 @@
1
+
2
+ export type TrainingRunInputsAnyOfValidationAnyOfItemFilterFieldValuesItemOperator = 'text_eq' | 'text_neq';
@@ -0,0 +1,4 @@
1
+ import type { TrainingRunInputsAnyOfValidationAnyOfItemFilterFieldValuesItemSourcesItemOneOf } from './trainingRunInputsAnyOfValidationAnyOfItemFilterFieldValuesItemSourcesItemOneOf';
2
+ import type { TrainingRunInputsAnyOfValidationAnyOfItemFilterFieldValuesItemSourcesItemOneOfTwo } from './trainingRunInputsAnyOfValidationAnyOfItemFilterFieldValuesItemSourcesItemOneOfTwo';
3
+
4
+ export type TrainingRunInputsAnyOfValidationAnyOfItemFilterFieldValuesItemSourcesItem = TrainingRunInputsAnyOfValidationAnyOfItemFilterFieldValuesItemSourcesItemOneOf | TrainingRunInputsAnyOfValidationAnyOfItemFilterFieldValuesItemSourcesItemOneOfTwo;
@@ -0,0 +1,5 @@
1
+
2
+ export type TrainingRunInputsAnyOfValidationAnyOfItemFilterFieldValuesItemSourcesItemOneOf = {
3
+ type: 'user';
4
+ userId: string;
5
+ };
@@ -0,0 +1,5 @@
1
+
2
+ export type TrainingRunInputsAnyOfValidationAnyOfItemFilterFieldValuesItemSourcesItemOneOfTwo = {
3
+ type: 'system';
4
+ source: string;
5
+ };
@@ -0,0 +1,2 @@
1
+
2
+ export type TrainingRunInputsAnyOfValidationAnyOfItemFilterFieldValuesItemValue = string | number | boolean | null;
@@ -0,0 +1,9 @@
1
+ import type { TrainingRunInputsAnyOfValidationAnyOfReportErrorsItem } from './trainingRunInputsAnyOfValidationAnyOfReportErrorsItem';
2
+ import type { TrainingRunInputsAnyOfValidationAnyOfReportTokens } from './trainingRunInputsAnyOfValidationAnyOfReportTokens';
3
+
4
+ export type TrainingRunInputsAnyOfValidationAnyOfReport = {
5
+ validCount: number;
6
+ invalidCount: number;
7
+ errors: TrainingRunInputsAnyOfValidationAnyOfReportErrorsItem[];
8
+ tokens: TrainingRunInputsAnyOfValidationAnyOfReportTokens;
9
+ };
@@ -0,0 +1,5 @@
1
+
2
+ export type TrainingRunInputsAnyOfValidationAnyOfReportErrorsItem = {
3
+ itemIndex: number;
4
+ reason: string;
5
+ };
@@ -0,0 +1,10 @@
1
+ import type { TrainingRunInputsAnyOfValidationAnyOfReportTokensTotal } from './trainingRunInputsAnyOfValidationAnyOfReportTokensTotal';
2
+ import type { TrainingRunInputsAnyOfValidationAnyOfReportTokensEstimatorVersion } from './trainingRunInputsAnyOfValidationAnyOfReportTokensEstimatorVersion';
3
+
4
+ export type TrainingRunInputsAnyOfValidationAnyOfReportTokens = {
5
+ p50: number;
6
+ p95: number;
7
+ max: number;
8
+ total?: TrainingRunInputsAnyOfValidationAnyOfReportTokensTotal;
9
+ estimatorVersion?: TrainingRunInputsAnyOfValidationAnyOfReportTokensEstimatorVersion;
10
+ };
@@ -0,0 +1,2 @@
1
+
2
+ export type TrainingRunInputsAnyOfValidationAnyOfReportTokensEstimatorVersion = 'utf16-code-units-div-4-v1' | null;
@@ -0,0 +1,2 @@
1
+
2
+ export type TrainingRunInputsAnyOfValidationAnyOfReportTokensTotal = number | null;
@@ -0,0 +1,9 @@
1
+ import type { TrainingRunLogsEntriesItem } from './trainingRunLogsEntriesItem';
2
+ import type { TrainingRunLogsNextCursor } from './trainingRunLogsNextCursor';
3
+
4
+ export interface TrainingRunLogs {
5
+ entries: TrainingRunLogsEntriesItem[];
6
+ nextCursor: TrainingRunLogsNextCursor;
7
+ complete: boolean;
8
+ truncated: boolean;
9
+ }
@@ -0,0 +1,7 @@
1
+ import type { TrainingRunLogsEntriesItemLevel } from './trainingRunLogsEntriesItemLevel';
2
+
3
+ export type TrainingRunLogsEntriesItem = {
4
+ timestamp: string;
5
+ level: TrainingRunLogsEntriesItemLevel;
6
+ message: string;
7
+ };
@@ -0,0 +1,2 @@
1
+
2
+ export type TrainingRunLogsEntriesItemLevel = 'trace' | 'debug' | 'info' | 'warn' | 'error';
@@ -0,0 +1,2 @@
1
+
2
+ export type TrainingRunLogsNextCursor = string | null;
@@ -0,0 +1,2 @@
1
+
2
+ export type TrainingRunMessage = string | null;
@@ -0,0 +1,2 @@
1
+
2
+ export type TrainingRunOutputModelVersionRevision = number | null;
@@ -0,0 +1,3 @@
1
+ import type { TrainingRunProgressAnyOf } from './trainingRunProgressAnyOf';
2
+
3
+ export type TrainingRunProgress = TrainingRunProgressAnyOf | null;
@@ -0,0 +1,10 @@
1
+ import type { TrainingRunProgressAnyOfStep } from './trainingRunProgressAnyOfStep';
2
+ import type { TrainingRunProgressAnyOfTotal } from './trainingRunProgressAnyOfTotal';
3
+ import type { TrainingRunProgressAnyOfMessage } from './trainingRunProgressAnyOfMessage';
4
+
5
+ export type TrainingRunProgressAnyOf = {
6
+ phase: string;
7
+ step: TrainingRunProgressAnyOfStep;
8
+ total: TrainingRunProgressAnyOfTotal;
9
+ message: TrainingRunProgressAnyOfMessage;
10
+ };
@@ -0,0 +1,2 @@
1
+
2
+ export type TrainingRunProgressAnyOfMessage = string | null;
@@ -0,0 +1,2 @@
1
+
2
+ export type TrainingRunProgressAnyOfStep = number | null;
@@ -0,0 +1,2 @@
1
+
2
+ export type TrainingRunProgressAnyOfTotal = number | null;
@@ -0,0 +1,17 @@
1
+ import type { TrainingCostEstimateInputSetId } from './trainingCostEstimateInputSetId';
2
+ import type { TrainingRunQuoteInputs } from './trainingRunQuoteInputs';
3
+ import type { TrainingRunQuoteBudget } from './trainingRunQuoteBudget';
4
+
5
+ export type TrainingRunQuote = {
6
+ inputSetId: TrainingCostEstimateInputSetId;
7
+ cutoff: string;
8
+ inputs: TrainingRunQuoteInputs;
9
+ capabilityVersion: string;
10
+ pricingVersion: string;
11
+ calculatedAt: string;
12
+ budget: TrainingRunQuoteBudget;
13
+ basePricePerGpuHour: string;
14
+ marginMultiplier: string;
15
+ maximumCharge: string;
16
+ currency: 'USD';
17
+ };
@@ -0,0 +1,9 @@
1
+
2
+ export type TrainingRunQuoteBudget = {
3
+ methodWorkUnits: number;
4
+ estimatedGpuSeconds: number;
5
+ estimatedWallSeconds: number;
6
+ maximumWallSeconds: number;
7
+ maximumGpuSeconds: number;
8
+ gpuCount: number;
9
+ };
@@ -0,0 +1,7 @@
1
+ import type { TrainingRunQuoteInputsTraining } from './trainingRunQuoteInputsTraining';
2
+ import type { TrainingRunQuoteInputsValidation } from './trainingRunQuoteInputsValidation';
3
+
4
+ export type TrainingRunQuoteInputs = {
5
+ training: TrainingRunQuoteInputsTraining;
6
+ validation: TrainingRunQuoteInputsValidation;
7
+ };
@@ -0,0 +1,9 @@
1
+ import type { TrainingRunQuoteInputsTrainingReport } from './trainingRunQuoteInputsTrainingReport';
2
+ import type { TrainingRunQuoteInputsTrainingFailure } from './trainingRunQuoteInputsTrainingFailure';
3
+
4
+ export type TrainingRunQuoteInputsTraining = {
5
+ datasetId: string;
6
+ datasetExportId: string;
7
+ report: TrainingRunQuoteInputsTrainingReport;
8
+ failure: TrainingRunQuoteInputsTrainingFailure;
9
+ };
@@ -0,0 +1,3 @@
1
+ import type { TrainingRunQuoteInputsTrainingFailureAnyOf } from './trainingRunQuoteInputsTrainingFailureAnyOf';
2
+
3
+ export type TrainingRunQuoteInputsTrainingFailure = TrainingRunQuoteInputsTrainingFailureAnyOf | null;
@@ -0,0 +1,7 @@
1
+ import type { TrainingRunQuoteInputsTrainingFailureAnyOfCode } from './trainingRunQuoteInputsTrainingFailureAnyOfCode';
2
+
3
+ export type TrainingRunQuoteInputsTrainingFailureAnyOf = {
4
+ timestamp: string;
5
+ code: TrainingRunQuoteInputsTrainingFailureAnyOfCode;
6
+ message: string;
7
+ };
@@ -0,0 +1,2 @@
1
+
2
+ export type TrainingRunQuoteInputsTrainingFailureAnyOfCode = 'empty_selection' | 'size_limit_exceeded' | 'assembly_failed';
@@ -0,0 +1,3 @@
1
+ import type { TrainingRunQuoteInputsTrainingReportAnyOf } from './trainingRunQuoteInputsTrainingReportAnyOf';
2
+
3
+ export type TrainingRunQuoteInputsTrainingReport = TrainingRunQuoteInputsTrainingReportAnyOf | null;
@@ -0,0 +1,9 @@
1
+ import type { TrainingRunQuoteInputsTrainingReportAnyOfErrorsItem } from './trainingRunQuoteInputsTrainingReportAnyOfErrorsItem';
2
+ import type { TrainingRunQuoteInputsTrainingReportAnyOfTokens } from './trainingRunQuoteInputsTrainingReportAnyOfTokens';
3
+
4
+ export type TrainingRunQuoteInputsTrainingReportAnyOf = {
5
+ validCount: number;
6
+ invalidCount: number;
7
+ errors: TrainingRunQuoteInputsTrainingReportAnyOfErrorsItem[];
8
+ tokens: TrainingRunQuoteInputsTrainingReportAnyOfTokens;
9
+ };
@@ -0,0 +1,5 @@
1
+
2
+ export type TrainingRunQuoteInputsTrainingReportAnyOfErrorsItem = {
3
+ itemIndex: number;
4
+ reason: string;
5
+ };
@@ -0,0 +1,10 @@
1
+ import type { TrainingRunQuoteInputsTrainingReportAnyOfTokensTotal } from './trainingRunQuoteInputsTrainingReportAnyOfTokensTotal';
2
+ import type { TrainingRunQuoteInputsTrainingReportAnyOfTokensEstimatorVersion } from './trainingRunQuoteInputsTrainingReportAnyOfTokensEstimatorVersion';
3
+
4
+ export type TrainingRunQuoteInputsTrainingReportAnyOfTokens = {
5
+ p50: number;
6
+ p95: number;
7
+ max: number;
8
+ total?: TrainingRunQuoteInputsTrainingReportAnyOfTokensTotal;
9
+ estimatorVersion?: TrainingRunQuoteInputsTrainingReportAnyOfTokensEstimatorVersion;
10
+ };
@@ -0,0 +1,2 @@
1
+
2
+ export type TrainingRunQuoteInputsTrainingReportAnyOfTokensEstimatorVersion = 'utf16-code-units-div-4-v1' | null;
@@ -0,0 +1,2 @@
1
+
2
+ export type TrainingRunQuoteInputsTrainingReportAnyOfTokensTotal = number | null;
@@ -0,0 +1,3 @@
1
+ import type { TrainingRunQuoteInputsValidationAnyOf } from './trainingRunQuoteInputsValidationAnyOf';
2
+
3
+ export type TrainingRunQuoteInputsValidation = TrainingRunQuoteInputsValidationAnyOf | null;
@@ -0,0 +1,9 @@
1
+ import type { TrainingRunQuoteInputsValidationAnyOfReport } from './trainingRunQuoteInputsValidationAnyOfReport';
2
+ import type { TrainingRunQuoteInputsValidationAnyOfFailure } from './trainingRunQuoteInputsValidationAnyOfFailure';
3
+
4
+ export type TrainingRunQuoteInputsValidationAnyOf = {
5
+ datasetId: string;
6
+ datasetExportId: string;
7
+ report: TrainingRunQuoteInputsValidationAnyOfReport;
8
+ failure: TrainingRunQuoteInputsValidationAnyOfFailure;
9
+ };
@@ -0,0 +1,3 @@
1
+ import type { TrainingRunQuoteInputsValidationAnyOfFailureAnyOf } from './trainingRunQuoteInputsValidationAnyOfFailureAnyOf';
2
+
3
+ export type TrainingRunQuoteInputsValidationAnyOfFailure = TrainingRunQuoteInputsValidationAnyOfFailureAnyOf | null;
@@ -0,0 +1,7 @@
1
+ import type { TrainingRunQuoteInputsValidationAnyOfFailureAnyOfCode } from './trainingRunQuoteInputsValidationAnyOfFailureAnyOfCode';
2
+
3
+ export type TrainingRunQuoteInputsValidationAnyOfFailureAnyOf = {
4
+ timestamp: string;
5
+ code: TrainingRunQuoteInputsValidationAnyOfFailureAnyOfCode;
6
+ message: string;
7
+ };
@@ -0,0 +1,2 @@
1
+
2
+ export type TrainingRunQuoteInputsValidationAnyOfFailureAnyOfCode = 'empty_selection' | 'size_limit_exceeded' | 'assembly_failed';
@@ -0,0 +1,3 @@
1
+ import type { TrainingRunQuoteInputsValidationAnyOfReportAnyOf } from './trainingRunQuoteInputsValidationAnyOfReportAnyOf';
2
+
3
+ export type TrainingRunQuoteInputsValidationAnyOfReport = TrainingRunQuoteInputsValidationAnyOfReportAnyOf | null;
@@ -0,0 +1,9 @@
1
+ import type { TrainingRunQuoteInputsValidationAnyOfReportAnyOfErrorsItem } from './trainingRunQuoteInputsValidationAnyOfReportAnyOfErrorsItem';
2
+ import type { TrainingRunQuoteInputsValidationAnyOfReportAnyOfTokens } from './trainingRunQuoteInputsValidationAnyOfReportAnyOfTokens';
3
+
4
+ export type TrainingRunQuoteInputsValidationAnyOfReportAnyOf = {
5
+ validCount: number;
6
+ invalidCount: number;
7
+ errors: TrainingRunQuoteInputsValidationAnyOfReportAnyOfErrorsItem[];
8
+ tokens: TrainingRunQuoteInputsValidationAnyOfReportAnyOfTokens;
9
+ };
@@ -0,0 +1,5 @@
1
+
2
+ export type TrainingRunQuoteInputsValidationAnyOfReportAnyOfErrorsItem = {
3
+ itemIndex: number;
4
+ reason: string;
5
+ };
@@ -0,0 +1,10 @@
1
+ import type { TrainingRunQuoteInputsValidationAnyOfReportAnyOfTokensTotal } from './trainingRunQuoteInputsValidationAnyOfReportAnyOfTokensTotal';
2
+ import type { TrainingRunQuoteInputsValidationAnyOfReportAnyOfTokensEstimatorVersion } from './trainingRunQuoteInputsValidationAnyOfReportAnyOfTokensEstimatorVersion';
3
+
4
+ export type TrainingRunQuoteInputsValidationAnyOfReportAnyOfTokens = {
5
+ p50: number;
6
+ p95: number;
7
+ max: number;
8
+ total?: TrainingRunQuoteInputsValidationAnyOfReportAnyOfTokensTotal;
9
+ estimatorVersion?: TrainingRunQuoteInputsValidationAnyOfReportAnyOfTokensEstimatorVersion;
10
+ };
@@ -0,0 +1,2 @@
1
+
2
+ export type TrainingRunQuoteInputsValidationAnyOfReportAnyOfTokensEstimatorVersion = 'utf16-code-units-div-4-v1' | null;
@@ -0,0 +1,2 @@
1
+
2
+ export type TrainingRunQuoteInputsValidationAnyOfReportAnyOfTokensTotal = number | null;
@@ -0,0 +1,2 @@
1
+
2
+ export type TrainingRunStatus = 'queued' | 'running' | 'stopping' | 'blocked' | 'completed' | 'failed' | 'canceled';
@@ -0,0 +1,5 @@
1
+
2
+ export type UpdateTrainingMetadataBody = {
3
+ name?: string;
4
+ archived?: boolean;
5
+ };
@@ -1,2 +1,2 @@
1
1
 
2
- export type ValidatePipelineGraphBodyGraphNodesItemOneOfOnefoursevenSettingsQualityAssuranceOneOfLlmQaModelId = 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5' | 'gpt-5-mini' | 'claude-sonnet-4-6';
2
+ export type ValidatePipelineGraphBodyGraphNodesItemOneOfOnefoursevenSettingsQualityAssuranceOneOfLlmQaModelId = 'gpt-5.6-terra' | 'gpt-5.6-luna' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5' | 'gpt-5-mini' | 'claude-sonnet-4-6';
@@ -1,2 +1,2 @@
1
1
 
2
- export type ValidatePipelineGraphBodyGraphNodesItemOneOfThreeoneSettingsAudienceAndPricingOneOfOneoneGenerationModelId = 'gpt-5.4' | 'gpt-5.4-mini' | 'claude-sonnet-4-6' | 'gemini-3.1-pro-preview' | 'gemini-3.5-flash' | 'claude-sonnet-5' | 'gpt-5.6-terra' | 'gpt-5.6-luna';
2
+ export type ValidatePipelineGraphBodyGraphNodesItemOneOfThreeoneSettingsAudienceAndPricingOneOfOneoneGenerationModelId = 'gpt-5.4' | 'gpt-5.4-mini' | 'claude-sonnet-4-6' | 'gemini-3.1-pro-preview' | 'gemini-3.5-flash' | 'gemini-3.7-flash' | 'claude-sonnet-5' | 'claude-opus-5' | 'claude-fable-5' | 'gpt-5.6-terra' | 'gpt-5.6-luna' | 'gpt-5.6-sol';
@@ -1,2 +1,2 @@
1
1
 
2
- export type ValidatePipelineGraphBodyGraphNodesItemOneOfThreeoneSettingsQualityAssuranceOneOfFourLlmQaModelId = 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5' | 'gpt-5-mini' | 'claude-sonnet-4-6';
2
+ export type ValidatePipelineGraphBodyGraphNodesItemOneOfThreeoneSettingsQualityAssuranceOneOfFourLlmQaModelId = 'gpt-5.6-terra' | 'gpt-5.6-luna' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5' | 'gpt-5-mini' | 'claude-sonnet-4-6';
@@ -1,2 +1,2 @@
1
1
 
2
- export type ValidatePipelineGraphBodyGraphNodesItemOneOfThreeoneSettingsQualityAssuranceOneOfLlmQaModelId = 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5' | 'gpt-5-mini' | 'claude-sonnet-4-6';
2
+ export type ValidatePipelineGraphBodyGraphNodesItemOneOfThreeoneSettingsQualityAssuranceOneOfLlmQaModelId = 'gpt-5.6-terra' | 'gpt-5.6-luna' | 'gpt-5.4' | 'gpt-5.4-mini' | 'gpt-5' | 'gpt-5-mini' | 'claude-sonnet-4-6';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@toloka-platform/sdk",
3
- "version": "0.1.0",
3
+ "version": "0.2.0-preview.2",
4
4
  "private": false,
5
5
  "description": "Beta. Build, inspect, and operate Toloka pipeline projects as TypeScript source. The public API may change.",
6
6
  "license": "Apache-2.0",
@@ -13,18 +13,30 @@
13
13
  "testing",
14
14
  "checks"
15
15
  ],
16
- "version": "0.1.0",
17
- "digest": "bcdb60e89bc4b8e345c1793c7a7d5275e8b196e171bd09adba242ed89f117a50",
18
- "files": ["SKILL.md", "references/node-semantics.md", "references/workflow-and-cli.md"]
16
+ "version": "0.2.0-preview.2",
17
+ "digest": "0777193859ccc60959ba91c2733e8d1631d1b4c89f313c9989ed6c67b40f1c5a",
18
+ "files": [
19
+ "SKILL.md",
20
+ "references/node-semantics.md",
21
+ "references/workflow-and-cli.md"
22
+ ]
19
23
  },
20
24
  {
21
25
  "id": "toloka-report-issue",
22
26
  "name": "Report a Toloka problem",
23
27
  "description": "Report a problem with the Toloka platform, CLI, or SDK as a redacted Markdown issue report sent through the toloka CLI only after explicit approval. Use when the user hits unexpected behavior, an error, or a bug and wants Toloka engineers to investigate.",
24
- "tags": ["support", "issue", "bug", "report"],
25
- "version": "0.1.0",
26
- "digest": "969aedef68e56243395e0a9115d90041c7c1e27f759762b07e62a7d521a8a251",
27
- "files": ["SKILL.md", "references/report-template.md"]
28
+ "tags": [
29
+ "support",
30
+ "issue",
31
+ "bug",
32
+ "report"
33
+ ],
34
+ "version": "0.2.0-preview.2",
35
+ "digest": "9faa9ed606cdb55ca701d2662f8633daebe49b865ff9b8f4cf9bb7d9b621f675",
36
+ "files": [
37
+ "SKILL.md",
38
+ "references/report-template.md"
39
+ ]
28
40
  }
29
41
  ]
30
42
  }
@@ -11,7 +11,7 @@ Use this skill when the user wants to get started or to create, inspect, test, o
11
11
 
12
12
  ## Guide a first-time user
13
13
 
14
- When the user asks to get started or points to `https://platform.toloka.ai/onboarding.md`, read that guide before acting. The guide owns the session order and its user checkpoints. This skill owns authoring semantics, local test requirements, recovery, and evidence reporting.
14
+ When the user asks to get started or points to `https://platform.toloka.ai/agents/data-labeling.md`, read that guide before acting. The guide owns the session order and its user checkpoints. This skill owns authoring semantics, local test requirements, recovery, and evidence reporting.
15
15
 
16
16
  Do not replace the guide's quick demo with another example, and do not run the demo when the user chooses their own task. Never cross its API-key, project-creation, plan, or run-cost checkpoint without the user's required action or approval.
17
17
 
@@ -75,7 +75,7 @@ These are server rules that `definePipeline` does not check. Each one costs an a
75
75
 
76
76
  `toloka check` is the required local gate. It runs the project TypeScript compiler, typechecks every authored Task UI against declarations bundled with this SDK version, runs Vitest, and requires passing typed `test.code`, `test.ui`, and `test.pipeline` evidence for every checkable node and pipeline. Use `toloka check <pipeline> --node <name-or-id>` while iterating, then run the unfiltered command before plan or run. Status `missing` means required test evidence does not exist; `failed` means a check ran and failed; `partial` means hardware-backed behavior remains unverified; `infrastructure_error` means the checker could not run. All four block apply.
77
77
 
78
- `toloka validate` posts each bound graph to the platform. Treat source/spec errors as blocking and warnings as informational. `not_ran_node_check` concerns a separate Remote Node Check and does not invalidate a passing Local Check Gate. A pipeline not yet on the platform is skipped until `toloka apply` creates it. When a reviewed plan adds a dataset field already bound by an existing live pipeline, pre-apply validation can report that exact field as missing; apply only the reviewed additive plan, then require post-apply validation to clear source/spec errors. Never rewrite valid source for a missing Remote Node Check.
78
+ `toloka validate` posts each bound graph to the platform. Treat source/spec errors as blocking and warnings as informational. A `not_ran_node_check` concerns a separate Remote Node Check and does not replace a passing Local Check Gate, but its remote-validation severity still matters: lint checks report it as a blocking error while other checks can report it as a warning. A pipeline not yet on the platform is skipped until `toloka apply` creates it. When a reviewed plan adds a dataset field already bound by an existing live pipeline, pre-apply validation can report that exact field as missing; apply only the reviewed additive plan, then require post-apply validation to clear source/spec errors. Never rewrite valid source for a missing Remote Node Check.
79
79
 
80
80
  Before choosing Task UI components, call `ui.componentDocumentation()` from a local `@toloka-platform/sdk/testing` scenario. A component's usable contract is the returned `propsType` plus its returned `valueType` and `example`; shared `Field` props such as `path`, `label`, `hint`, and `validation` can be confirmed from any current `Field.*` example, but do not invent any other prop. For structured or array-valued Fields, derive the dataset field schema from `valueType`, then feed the documented example value through `setValue`, `getValue`, and `submit` in the UI scenario so upstream contract drift fails locally. Never translate undocumented property names or replace missing values with defaults. Every identifier in `ui.code` must be a returned component or documented `actions` API, and JSX must have one root element. Register each required UI scenario with `test.ui(pipeline, node, name, callback)` and submit through its bound `render` helper. Run `toloka check <pipeline> --node <name-or-id>` after every Task UI edit; require passing UI types, empty browser validation errors, valid postprocessed entity output, and visual inspection where relevant. Never weaken authored validation merely to make a test pass.
81
81
 
@@ -104,7 +104,7 @@ A globally installed CLI auto-updates by default; turn that off with `toloka con
104
104
 
105
105
  ## Run a deployed pipeline
106
106
 
107
- Before starting a run, require a passing `toloka check` and no blocking source/spec error from `toloka validate`. Do not block on `not_ran_node_check`, which concerns separate Remote Node Checks. Run `toloka pipeline cost <name>` when pricing evidence is needed; if it skips a billed node, report the authored rate and a labeled labor floor instead of presenting `$0.00` as the price.
107
+ Before starting a run, require a passing `toloka check` and no blocking error from `toloka validate`. A warning-severity `not_ran_node_check` concerns a separate Remote Node Check and does not block the Local Check Gate; an error-severity instance remains a blocking remote-validation result. Run `toloka pipeline cost <name>` when pricing evidence is needed; if it skips a billed node, report the authored rate and a labeled labor floor instead of presenting `$0.00` as the price.
108
108
 
109
109
  Start a run with `toloka pipeline run <name> --wait --timeout <ms>`, then read its exit code: `0` succeeded, `1` reached a failed terminal state, `2` still running when the window closed. Without `--wait`, exit `0` only means the run was accepted. Nothing reports back later, so never describe a started run as a finished one. Name the live pipeline; there is no implicit only-pipeline.
110
110
 
@@ -167,7 +167,7 @@ For humans, set `audienceType: 'human'`, `verifiedExperts`, all three audience f
167
167
 
168
168
  Start with `$0.20` and 120 seconds when the task gives no stronger signal, then change them only for an explicit rate or clearly longer work. The per-expert cap is normally off. For `data_collection`, use a cap of 50 by default; use 1 for one-response-per-expert collection.
169
169
 
170
- Use `audienceType: 'synthetic'` only when the user explicitly asks for synthetic or model-generated data. Configure its optional `generationModelId`, `reasoningEffort`, and `llmInstruction`; do not include human pricing or audience fields. Synthetic generation is incompatible with `data_collection`, human QA, audience reuse, expert sourcing, and Training.
170
+ Use `audienceType: 'synthetic'` only when the user explicitly asks for synthetic or model-generated data. Set the required `maxCostPerAttempt`, the per-attempt ceiling in charged US dollars across fresh input, cached input, and output together, and configure the optional `generationModelId`, `reasoningEffort`, and `llmInstruction`; do not include human pricing or audience fields. Take `generationModelId` only from the union the SDK exports, and never invent an id; when the user names no model, omit the property and accept the platform default instead of guessing one. Synthetic generation is incompatible with `data_collection`, human QA, audience reuse, expert sourcing, and Training.
171
171
 
172
172
  #### Training, Exam, UI, and advanced settings
173
173
 
@@ -188,6 +188,7 @@ Use `reuseAudienceWithNodeId` only with real imported `{ pipelineId, nodeId }` v
188
188
  - Do not treat the constructor's generated placeholder Training or blank UI as production-ready configuration.
189
189
  - Do not pair `projectType: 'general'` with `verifiedExperts: false`. General projects require an ID-verified audience, and the server rejects the graph with `General projects require an ID-verified audience`. `data_collection` supports both modes but requires a hardware upload or recording component supported by the current UI catalog. An annotation task with an unverified audience therefore cannot be expressed: `general` demands verified experts and `data_collection` demands an upload control the task has no use for. When a request asks for one, say so and let the requester choose, rather than quietly flipping a setting.
190
190
  - Do not omit `ui.constants`. It is required alongside `code`, `data`, `preprocess`, and `postprocess`; `'{}'` is the right value when there is nothing to pass. Omitting it fails validation with `must have required property 'constants'`, usually reported together with a misleading `type must be equal to constant` from the failed node discrimination.
191
+ - Do not omit `maxCostPerAttempt` from a synthetic `audienceAndPricing`. Omitting it fails validation with `must have required property 'maxCostPerAttempt'`, reported together with a misleading `type must be equal to constant` and the human branch's `must have required property 'verifiedExperts'` from the failed `oneOf` discrimination.
191
192
  - Do not ship a generation node without Training. `onboarding` is mandatory: at least three `steps`, of which at least one carries a `quiz` block. The server rejects fewer with `Onboarding must have at least 3 steps` and `Onboarding must include at least one quiz block`.
192
193
  - Do not treat the server's materialized defaults as your configuration. A deployed node reports `qualityAssurance`, `exam`, `reuseAudienceWithNodeId`, and `smartSearch` even when source never set them. Leave them out unless you mean to control them. Omitted top-level object keys are preserved, but defaults materialized inside list elements can still cause drift; use the generic import-and-diff recovery flow.
193
194
 
@@ -26,7 +26,7 @@ Treat the three layers differently:
26
26
 
27
27
  ## Initialize the source root
28
28
 
29
- For a first-time guided session, read `https://platform.toloka.ai/onboarding.md` first. Keep its stage order and checkpoints; use this reference for the commands and source-first invariants inside those stages.
29
+ For a first-time guided session, read `https://platform.toloka.ai/agents/data-labeling.md` first. Keep its stage order and checkpoints; use this reference for the commands and source-first invariants inside those stages.
30
30
 
31
31
  Install the SDK before invoking project commands:
32
32
 
@@ -126,6 +126,17 @@ toloka model get <name-or-id> [--json]
126
126
  toloka model versions <name-or-id> [--json]
127
127
  toloka model create <name> --base <base-model-id> [--description <text>] [--json]
128
128
  toloka model archive <name-or-id> [--json]
129
+ toloka training list [--json]
130
+ toloka training get <name-or-id> [--json]
131
+ toloka training create <name> (--base-model <id> | --model-version <id>) --dataset <id> [--json]
132
+ toloka training update <name-or-id> [configuration flags] [--json]
133
+ toloka training cost <name-or-id> [--idempotency-key <key>] [--json]
134
+ toloka training run <name-or-id> --estimate-file <path> --version-name <name> [--idempotency-key <key>] [--json]
135
+ toloka training runs <name-or-id> [--json]
136
+ toloka training status <training-run-id> [--json]
137
+ toloka training resume <training-run-id> [--json]
138
+ toloka training cancel <training-run-id> [--json]
139
+ toloka training logs <training-run-id> [--follow]
129
140
  toloka skill list [--json]
130
141
  toloka skill search <query> [--json]
131
142
  toloka skill install <skill-id> [--force]
@@ -142,6 +153,12 @@ Select the platform project with `toloka project add` or `toloka project create`
142
153
 
143
154
  The global Base Model Catalog is read-only and uses `toloka base-model`. `base-model list` prints aligned ID, name, provider, and upstream-model columns by default. `toloka model` manages project-owned lineages; creation requires one catalog `baseModelId` and creates metadata without a Model Version. Every Base Model and Model command accepts `--json` for machine-readable output. Model Version upload, validation, and download commands are deferred until the separate upload-processing contract is implemented.
144
155
 
156
+ ## Train a model
157
+
158
+ `toloka training create` requires one source (`--base-model` or `--model-version`) and a training Dataset. The output Model is created on the first Training Run from the Training name, or bound from an existing Model Version source.
159
+
160
+ Use `training cost` to validate inputs and produce a ready estimate JSON file before `training run`. The run command requires that file and an explicit maximum cost. Use `training status`, `training logs`, `training resume`, and `training cancel` with the returned Training Run ID.
161
+
145
162
  ## Adopt an existing live project
146
163
 
147
164
  1. Install `@toloka-platform/sdk` in the intended source root.
@@ -181,7 +198,7 @@ toloka validate
181
198
 
182
199
  With `--watch --json`, each completed rerun writes one JSON line. Do not start another watcher while one is active.
183
200
 
184
- `toloka validate` posts each authored graph to the platform. Distinguish source/spec errors, which require source changes; `not_ran_node_check`, which describes a separate Remote Node Check; and warnings. It does not write the graph. A pipeline that is not on the platform yet is skipped until `toloka apply` creates it. When plan adds a dataset field used by an already-live pipeline, pre-apply validation can report that exact field as `misconfigured_node_form_component` because the column is not live yet. Treat it as expected only when the reviewed plan adds the same field, then require post-apply validation to clear the source/spec error.
201
+ `toloka validate` posts each authored graph to the platform. Distinguish source/spec errors, which require source changes; Remote Node Check state; and warnings. A lint `not_ran_node_check` is a blocking remote-validation error, while other check types can report the same code as a warning; neither replaces the Local Check Gate. Validation does not write the graph. A pipeline that is not on the platform yet is skipped until `toloka apply` creates it. When plan adds a dataset field used by an already-live pipeline, pre-apply validation can report that exact field as `misconfigured_node_form_component` because the column is not live yet. Treat it as expected only when the reviewed plan adds the same field, then require post-apply validation to clear the source/spec error.
185
202
 
186
203
  The authored API still supplies extra local safety:
187
204
 
@@ -26,7 +26,7 @@ The CLI exits 1 with `Potato API request failed with status 500`. The same comma
26
26
 
27
27
  ## Environment
28
28
 
29
- - toloka CLI 0.1.0 (`toloka --version`), Bun 1.4.0, macOS 15
29
+ - toloka CLI 0.2.0-preview.2 (`toloka --version`), Bun 1.4.0, macOS 15
30
30
  - Platform: https://platform.toloka.ai
31
31
 
32
32
  ## Redactions
package/src/cli/auth.ts CHANGED
@@ -81,7 +81,7 @@ export async function login(options: LoginOptions = {}): Promise<LoginResult> {
81
81
  PRODUCTION_BASE_URL,
82
82
  );
83
83
 
84
- let apiKey = options.apiKey;
84
+ let apiKey = options.apiKey ?? environment.POTATO_API_KEY;
85
85
  if (apiKey === undefined) {
86
86
  assert(
87
87
  options.prompt,
package/src/cli/bin.ts CHANGED
@@ -1,4 +1,4 @@
1
1
  #!/usr/bin/env bun
2
- import { runTolokaCli } from './program';
2
+ import { runTolokaCli } from "./program";
3
3
 
4
4
  process.exitCode = await runTolokaCli(process.argv.slice(2));
package/src/cli/cost.ts CHANGED
@@ -88,7 +88,7 @@ const collectTotalRows = (total: PipelineCostEstimate["total"]): TableRow[] => {
88
88
  ["Maximum run cost", "", total.worstCase],
89
89
  ];
90
90
  if (total.bestCase != null) {
91
- totals.push(["Best case", total.bestCase, ""]);
91
+ totals.push(["Best case", total.bestCase, "N/A"]);
92
92
  }
93
93
  if (total.perItemExpected != null) {
94
94
  totals.push(["Per item", total.perItemExpected, total.perItemWorstCase ?? ""]);