@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
Binary file
@@ -1 +1 @@
1
- b3ff8750d4254e81d4dccbba6db162057e702b7b823d76d6adc2e6b122212251 toloka.js.jsc
1
+ 4bc560d638ddf49386ccbb12f7eeaaa0922fd26ab13c69065cbb8540c27cbe50 toloka.js.jsc
@@ -1 +1 @@
1
- 122b2c1f1afe960176a8f8f5557f847da14ed454809f44d8ed4a5212be6ace2a toloka.js
1
+ e7e688bae427a1230ea0cbcacf81224527dc592f0e9087d584462d5ab3ec2059 toloka.js
package/docs/cli-v2.md CHANGED
@@ -64,7 +64,7 @@ Highest wins:
64
64
  2. `TOLOKA_PROJECT_ID` (keep accepting `POTATO_PROJECT_ID` until we rename the rest of the env surface)
65
65
  3. `toloka.json` in the discovered checkout (walk up from cwd, or `--source-root`)
66
66
  4. `current` in the machine registry
67
- 5. Fail: `No project selected. Run toloka project add, or cd into a checkout.`
67
+ 5. Fail: `No project selected. Run toloka project create for a new project, toloka project add for an existing project, or cd into a checkout.`
68
68
 
69
69
  A checkout wins over the machine default so a repo is self-describing for agents and CI. Flags and env still win over both, same as PostHog (`POSTHOG_CLI_PROJECT_ID`) and Windmill (`--workspace`).
70
70
 
package/docs/cli.md CHANGED
@@ -88,6 +88,8 @@ toloka project untrack <pipeline|dataset> <name> [--confirm]
88
88
 
89
89
  `project untrack` removes one pipeline or dataset binding from `toloka.json` without deleting the live resource. It previews the name and id in a terminal; outside a terminal, pass `--confirm` after reviewing the state file.
90
90
 
91
+ `list` prints `CURRENT`, `ID`, `NAME`, and `ALIAS` columns. `*` marks the selected project and `-` marks an unselected project or missing alias.
92
+
91
93
  `url` fetches the selected project to resolve its team and prints only its platform UI URL to stdout, making the output safe to capture in scripts and agent workflows.
92
94
 
93
95
  ## login
@@ -199,7 +201,7 @@ Runs the complete Local Check Gate, then makes the platform match source.
199
201
  toloka apply
200
202
  ```
201
203
 
202
- Checks run before credentials are resolved or any platform request is made. A failed or missing required check exits `1`; a checker infrastructure error exits `2`. After a pass, the preflight refuses before any write when a pipeline or dataset is removed from source, a project secret is missing, or a dataset field schema conflicts. On success it prints `No changes.` or `Applied N writes to project <projectId>.`
204
+ Checks run before credentials are resolved or any platform request is made. A failed or missing required check exits `1`; a checker infrastructure error exits `2`. After a pass, the preflight refuses before any write when a pipeline or dataset is removed from source, a project secret is missing, or a dataset field schema conflicts. On success it prints `No changes.` or reports both the number of approved planned changes and the lower-level platform writes used to apply them.
203
205
 
204
206
  ## secret set
205
207
 
@@ -37,7 +37,7 @@ CI does not need `login`. Set `POTATO_API_KEY` and the stored file is ignored. S
37
37
 
38
38
  ## Start with an agent
39
39
 
40
- For a guided first run, start a fresh coding-agent session and ask it to follow `https://platform.toloka.ai/onboarding.md`. The guide takes the agent through installation, credentials, project selection, local tests, plan approval, apply, cost review, and a bounded sample run.
40
+ For a guided first run, start a fresh coding-agent session and ask it to follow `https://platform.toloka.ai/agents/data-labeling.md`. The guide takes the agent through installation, credentials, project selection, local tests, plan approval, apply, cost review, and a bounded sample run.
41
41
 
42
42
  Initialize the current directory and install the Agent Bootstrap. No platform project needs to be selected yet.
43
43
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  What this Beta SDK does not do yet, stated plainly so you can decide what to depend on.
4
4
 
5
- `@toloka-platform/sdk` is `0.1.0`. This is a Beta: the authoring API, the CLI surface, and the generated source layout can change before general availability. Pin an exact version. Do not depend on this in production yet.
5
+ `@toloka-platform/sdk` is `0.2.0-preview.2`. This is a Beta: the authoring API, the CLI surface, and the generated source layout can change before general availability. Pin an exact version. Do not depend on this in production yet.
6
6
 
7
7
  ## Local checks do not certify deployability
8
8
 
@@ -15,7 +15,7 @@ What this Beta SDK does not do yet, stated plainly so you can decide what to dep
15
15
  | Training course content, when Training is enabled | platform validation | nothing |
16
16
  | labeler UI validation receipt | platform validation | nothing |
17
17
 
18
- The typed client can list, start, and poll Remote Node Checks. `toloka check` does not start them: it validates the authored source and its local tests. A `not_ran_node_check` result from `toloka validate` describes remote state, not missing local evidence.
18
+ The typed client can list, start, and poll Remote Node Checks. `toloka check` does not start them: it validates the authored source and its local tests. A `not_ran_node_check` result from `toloka validate` describes remote state rather than missing local evidence. Its severity is check-specific: lint checks report a blocking error, while other checks can report a warning.
19
19
 
20
20
  Python code nodes have executable behavior checks but no useful static Python typecheck yet. Their generated `Inputs` and `Outputs` aliases are currently `dict[str, Any]`; adding Pyright or mypy before those aliases become field-derived `TypedDict` contracts would provide little protection.
21
21
 
package/docs/testing.md CHANGED
@@ -112,4 +112,4 @@ File pickers, video upload/recording, and other hardware-backed fields cannot be
112
112
 
113
113
  ## Final gate
114
114
 
115
- `toloka check` loads every authored pipeline, runs the project TypeScript compiler, typechecks every Task UI against declarations bundled with the installed SDK, runs Vitest, and requires passing `test.code`, `test.ui`, and `test.pipeline` evidence. `missing`, `failed`, `partial`, and `infrastructure_error` are distinct blocking outcomes. `toloka apply` reruns this complete gate before resolving credentials or writing platform state. Platform source/spec errors from `toloka validate` remain separate; `not_ran_node_check` describes a Remote Node Check and does not replace local evidence.
115
+ `toloka check` loads every authored pipeline, runs the project TypeScript compiler, typechecks every Task UI against declarations bundled with the installed SDK, runs Vitest, and requires passing `test.code`, `test.ui`, and `test.pipeline` evidence. `missing`, `failed`, `partial`, and `infrastructure_error` are distinct blocking outcomes. `toloka apply` reruns this complete gate before resolving credentials or writing platform state. Platform validation remains separate: a `not_ran_node_check` describes Remote Node Check state rather than missing local evidence, but lint checks report it as a blocking remote error while other checks can report it as a warning.
@@ -30,7 +30,7 @@ toloka plan
30
30
  # ~ Node changed in pipelines/face-image-collection: annotate_faces (...)
31
31
 
32
32
  toloka apply
33
- # Applied 1 write to project pp.0190abcd-abcd-7abc-8abc-abcdefabcdef.
33
+ # Applied 1 planned change with 1 platform write to project pp.0190abcd-abcd-7abc-8abc-abcdefabcdef.
34
34
  ```
35
35
 
36
36
  `apply` creates the named dataset and missing required columns before it binds the pipeline. It never reconciles dataset items. Upload items explicitly as JSONL: