@toloka-platform/sdk 0.1.0-preview.9 → 0.2.0-preview.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 (286) hide show
  1. package/README.md +6 -5
  2. package/dist/cli/toloka.js +143 -139
  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/authoring.md +9 -4
  7. package/docs/cli-v2.md +3 -3
  8. package/docs/cli.md +16 -3
  9. package/docs/getting-started.md +4 -4
  10. package/docs/limitations.md +3 -3
  11. package/docs/testing.md +1 -1
  12. package/examples/face-image-collection/README.md +1 -1
  13. package/openapi/gen/api.ts +1482 -777
  14. package/openapi/gen/models/createDatasetExportBody.ts +5 -3
  15. package/openapi/gen/models/createDatasetExportBodyFormat.ts +2 -0
  16. package/openapi/gen/models/createProjectTrainingBody.ts +6 -0
  17. package/openapi/gen/models/createTrainingRunBody.ts +6 -0
  18. package/openapi/gen/models/datasetExportReportTokens.ts +4 -1
  19. package/openapi/gen/models/datasetExportReportTokensEstimatorVersion.ts +2 -0
  20. package/openapi/gen/models/datasetExportReportTokensTotal.ts +2 -0
  21. package/openapi/gen/models/estimateTrainingCostBody.ts +5 -0
  22. package/openapi/gen/models/exportJob.ts +2 -0
  23. package/openapi/gen/models/exportJobError.ts +3 -0
  24. package/openapi/gen/models/exportJobErrorAnyOf.ts +7 -0
  25. package/openapi/gen/models/exportJobErrorAnyOfCode.ts +2 -0
  26. package/openapi/gen/models/exportJobStatus.ts +1 -1
  27. package/openapi/gen/models/getTrainingRunLogsParams.ts +5 -0
  28. package/openapi/gen/models/gistingTrainingConfiguration.ts +13 -0
  29. package/openapi/gen/models/gistingTrainingConfigurationInput.ts +13 -0
  30. package/openapi/gen/models/gistingTrainingConfigurationInputRegime.ts +2 -0
  31. package/openapi/gen/models/gistingTrainingConfigurationRegime.ts +2 -0
  32. package/openapi/gen/models/index.ts +230 -16
  33. package/openapi/gen/models/listProjectTrainings200.ts +7 -0
  34. package/openapi/gen/models/listProjectTrainingsParams.ts +5 -0
  35. package/openapi/gen/models/listTrainingRuns200.ts +7 -0
  36. package/openapi/gen/models/listTrainingRunsParams.ts +5 -0
  37. package/openapi/gen/models/modelVersion.ts +6 -1
  38. package/openapi/gen/models/modelVersionContent.ts +4 -0
  39. package/openapi/gen/models/modelVersionContentDownload.ts +11 -0
  40. package/openapi/gen/models/modelVersionContentDownloadContent.ts +4 -0
  41. package/openapi/gen/models/modelVersionContentDownloadContentOneOf.ts +10 -0
  42. package/openapi/gen/models/modelVersionContentDownloadContentOneOfManifestItem.ts +8 -0
  43. package/openapi/gen/models/modelVersionContentDownloadContentOneOfManifestItemMediaType.ts +2 -0
  44. package/openapi/gen/models/modelVersionContentDownloadContentOneOfNine.ts +8 -0
  45. package/openapi/gen/models/modelVersionContentDownloadContentOneOfNineManifestItem.ts +8 -0
  46. package/openapi/gen/models/modelVersionContentDownloadContentOneOfNineManifestItemMediaType.ts +2 -0
  47. package/openapi/gen/models/modelVersionContentDownloadContentOneOfNineRuntimeBase.ts +2 -0
  48. package/openapi/gen/models/modelVersionContentDownloadContentOneOfParent.ts +4 -0
  49. package/openapi/gen/models/modelVersionContentDownloadContentOneOfParentOneOf.ts +6 -0
  50. package/openapi/gen/models/modelVersionContentDownloadContentOneOfParentOneOfBaseModelId.ts +2 -0
  51. package/openapi/gen/models/modelVersionContentDownloadContentOneOfParentOneOfThree.ts +5 -0
  52. package/openapi/gen/models/modelVersionContentDownloadContentOneOfRuntimeBase.ts +2 -0
  53. package/openapi/gen/models/modelVersionContentDownloadFilesItem.ts +9 -0
  54. package/openapi/gen/models/modelVersionContentDownloadFilesItemMediaType.ts +2 -0
  55. package/openapi/gen/models/modelVersionContentOneOf.ts +10 -0
  56. package/openapi/gen/models/modelVersionContentOneOfManifestItem.ts +8 -0
  57. package/openapi/gen/models/modelVersionContentOneOfManifestItemMediaType.ts +2 -0
  58. package/openapi/gen/models/modelVersionContentOneOfNine.ts +8 -0
  59. package/openapi/gen/models/modelVersionContentOneOfNineManifestItem.ts +8 -0
  60. package/openapi/gen/models/modelVersionContentOneOfNineManifestItemMediaType.ts +2 -0
  61. package/openapi/gen/models/modelVersionContentOneOfNineRuntimeBase.ts +2 -0
  62. package/openapi/gen/models/modelVersionContentOneOfParent.ts +4 -0
  63. package/openapi/gen/models/modelVersionContentOneOfParentOneOf.ts +6 -0
  64. package/openapi/gen/models/modelVersionContentOneOfParentOneOfBaseModelId.ts +2 -0
  65. package/openapi/gen/models/modelVersionContentOneOfParentOneOfThree.ts +5 -0
  66. package/openapi/gen/models/modelVersionContentOneOfRuntimeBase.ts +2 -0
  67. package/openapi/gen/models/modelVersionProducer.ts +5 -0
  68. package/openapi/gen/models/prepareTrainingCostEstimateInputsBody.ts +2 -0
  69. package/openapi/gen/models/replaceTrainingConfigurationBody.ts +5 -0
  70. package/openapi/gen/models/sftTrainingConfiguration.ts +13 -0
  71. package/openapi/gen/models/sftTrainingConfigurationInput.ts +13 -0
  72. package/openapi/gen/models/sftTrainingConfigurationInputRegime.ts +2 -0
  73. package/openapi/gen/models/sftTrainingConfigurationRegime.ts +2 -0
  74. package/openapi/gen/models/training.ts +16 -0
  75. package/openapi/gen/models/trainingArchivedAt.ts +2 -0
  76. package/openapi/gen/models/trainingConfiguration.ts +4 -0
  77. package/openapi/gen/models/trainingConfigurationInput.ts +4 -0
  78. package/openapi/gen/models/trainingCostEstimate.ts +4 -0
  79. package/openapi/gen/models/trainingCostEstimateInputSet.ts +12 -0
  80. package/openapi/gen/models/trainingCostEstimateInputSetExports.ts +6 -0
  81. package/openapi/gen/models/trainingCostEstimateInputSetExportsValidation.ts +2 -0
  82. package/openapi/gen/models/trainingCostEstimateInputSetId.ts +2 -0
  83. package/openapi/gen/models/trainingCostEstimateOneOf.ts +16 -0
  84. package/openapi/gen/models/trainingCostEstimateOneOfInputs.ts +7 -0
  85. package/openapi/gen/models/trainingCostEstimateOneOfInputsTraining.ts +9 -0
  86. package/openapi/gen/models/trainingCostEstimateOneOfInputsTrainingFailure.ts +3 -0
  87. package/openapi/gen/models/trainingCostEstimateOneOfInputsTrainingFailureAnyOf.ts +7 -0
  88. package/openapi/gen/models/trainingCostEstimateOneOfInputsTrainingFailureAnyOfCode.ts +2 -0
  89. package/openapi/gen/models/trainingCostEstimateOneOfInputsTrainingReport.ts +3 -0
  90. package/openapi/gen/models/trainingCostEstimateOneOfInputsTrainingReportAnyOf.ts +9 -0
  91. package/openapi/gen/models/trainingCostEstimateOneOfInputsTrainingReportAnyOfErrorsItem.ts +5 -0
  92. package/openapi/gen/models/trainingCostEstimateOneOfInputsTrainingReportAnyOfTokens.ts +10 -0
  93. package/openapi/gen/models/trainingCostEstimateOneOfInputsTrainingReportAnyOfTokensEstimatorVersion.ts +2 -0
  94. package/openapi/gen/models/trainingCostEstimateOneOfInputsTrainingReportAnyOfTokensTotal.ts +2 -0
  95. package/openapi/gen/models/trainingCostEstimateOneOfInputsValidation.ts +3 -0
  96. package/openapi/gen/models/trainingCostEstimateOneOfInputsValidationAnyOf.ts +9 -0
  97. package/openapi/gen/models/trainingCostEstimateOneOfInputsValidationAnyOfFailure.ts +3 -0
  98. package/openapi/gen/models/trainingCostEstimateOneOfInputsValidationAnyOfFailureAnyOf.ts +7 -0
  99. package/openapi/gen/models/trainingCostEstimateOneOfInputsValidationAnyOfFailureAnyOfCode.ts +2 -0
  100. package/openapi/gen/models/trainingCostEstimateOneOfInputsValidationAnyOfReport.ts +3 -0
  101. package/openapi/gen/models/trainingCostEstimateOneOfInputsValidationAnyOfReportAnyOf.ts +9 -0
  102. package/openapi/gen/models/trainingCostEstimateOneOfInputsValidationAnyOfReportAnyOfErrorsItem.ts +5 -0
  103. package/openapi/gen/models/trainingCostEstimateOneOfInputsValidationAnyOfReportAnyOfTokens.ts +10 -0
  104. package/openapi/gen/models/trainingCostEstimateOneOfInputsValidationAnyOfReportAnyOfTokensEstimatorVersion.ts +2 -0
  105. package/openapi/gen/models/trainingCostEstimateOneOfInputsValidationAnyOfReportAnyOfTokensTotal.ts +2 -0
  106. package/openapi/gen/models/trainingCostEstimateOneOfIssuesItem.ts +8 -0
  107. package/openapi/gen/models/trainingCostEstimateOneOfIssuesItemCode.ts +2 -0
  108. package/openapi/gen/models/trainingCostEstimateOneOfIssuesItemPurpose.ts +2 -0
  109. package/openapi/gen/models/trainingCostEstimateOneOfTwoseven.ts +23 -0
  110. package/openapi/gen/models/trainingCostEstimateOneOfTwosevenBudget.ts +9 -0
  111. package/openapi/gen/models/trainingCostEstimateOneOfTwosevenInputs.ts +7 -0
  112. package/openapi/gen/models/trainingCostEstimateOneOfTwosevenInputsTraining.ts +9 -0
  113. package/openapi/gen/models/trainingCostEstimateOneOfTwosevenInputsTrainingFailure.ts +3 -0
  114. package/openapi/gen/models/trainingCostEstimateOneOfTwosevenInputsTrainingFailureAnyOf.ts +7 -0
  115. package/openapi/gen/models/trainingCostEstimateOneOfTwosevenInputsTrainingFailureAnyOfCode.ts +2 -0
  116. package/openapi/gen/models/trainingCostEstimateOneOfTwosevenInputsTrainingReport.ts +3 -0
  117. package/openapi/gen/models/trainingCostEstimateOneOfTwosevenInputsTrainingReportAnyOf.ts +9 -0
  118. package/openapi/gen/models/trainingCostEstimateOneOfTwosevenInputsTrainingReportAnyOfErrorsItem.ts +5 -0
  119. package/openapi/gen/models/trainingCostEstimateOneOfTwosevenInputsTrainingReportAnyOfTokens.ts +10 -0
  120. package/openapi/gen/models/trainingCostEstimateOneOfTwosevenInputsTrainingReportAnyOfTokensEstimatorVersion.ts +2 -0
  121. package/openapi/gen/models/trainingCostEstimateOneOfTwosevenInputsTrainingReportAnyOfTokensTotal.ts +2 -0
  122. package/openapi/gen/models/trainingCostEstimateOneOfTwosevenInputsValidation.ts +3 -0
  123. package/openapi/gen/models/trainingCostEstimateOneOfTwosevenInputsValidationAnyOf.ts +9 -0
  124. package/openapi/gen/models/trainingCostEstimateOneOfTwosevenInputsValidationAnyOfFailure.ts +3 -0
  125. package/openapi/gen/models/trainingCostEstimateOneOfTwosevenInputsValidationAnyOfFailureAnyOf.ts +7 -0
  126. package/openapi/gen/models/trainingCostEstimateOneOfTwosevenInputsValidationAnyOfFailureAnyOfCode.ts +2 -0
  127. package/openapi/gen/models/trainingCostEstimateOneOfTwosevenInputsValidationAnyOfReport.ts +3 -0
  128. package/openapi/gen/models/trainingCostEstimateOneOfTwosevenInputsValidationAnyOfReportAnyOf.ts +9 -0
  129. package/openapi/gen/models/trainingCostEstimateOneOfTwosevenInputsValidationAnyOfReportAnyOfErrorsItem.ts +5 -0
  130. package/openapi/gen/models/trainingCostEstimateOneOfTwosevenInputsValidationAnyOfReportAnyOfTokens.ts +10 -0
  131. package/openapi/gen/models/trainingCostEstimateOneOfTwosevenInputsValidationAnyOfReportAnyOfTokensEstimatorVersion.ts +2 -0
  132. package/openapi/gen/models/trainingCostEstimateOneOfTwosevenInputsValidationAnyOfReportAnyOfTokensTotal.ts +2 -0
  133. package/openapi/gen/models/trainingCostEstimateOneOfTwosevenIssuesItem.ts +8 -0
  134. package/openapi/gen/models/trainingCostEstimateOneOfTwosevenIssuesItemCode.ts +2 -0
  135. package/openapi/gen/models/trainingCostEstimateOneOfTwosevenIssuesItemPurpose.ts +2 -0
  136. package/openapi/gen/models/trainingDatasetItemFilter.ts +8 -0
  137. package/openapi/gen/models/trainingDatasetItemFilterFieldSourcesItem.ts +6 -0
  138. package/openapi/gen/models/trainingDatasetItemFilterFieldSourcesItemSourcesItem.ts +4 -0
  139. package/openapi/gen/models/trainingDatasetItemFilterFieldSourcesItemSourcesItemOneOf.ts +5 -0
  140. package/openapi/gen/models/trainingDatasetItemFilterFieldSourcesItemSourcesItemOneOfTwo.ts +5 -0
  141. package/openapi/gen/models/trainingDatasetItemFilterFieldValuesItem.ts +12 -0
  142. package/openapi/gen/models/trainingDatasetItemFilterFieldValuesItemOperator.ts +2 -0
  143. package/openapi/gen/models/trainingDatasetItemFilterFieldValuesItemSourcesItem.ts +4 -0
  144. package/openapi/gen/models/trainingDatasetItemFilterFieldValuesItemSourcesItemOneOf.ts +5 -0
  145. package/openapi/gen/models/trainingDatasetItemFilterFieldValuesItemSourcesItemOneOfTwo.ts +5 -0
  146. package/openapi/gen/models/trainingDatasetItemFilterFieldValuesItemValue.ts +2 -0
  147. package/openapi/gen/models/trainingDatasetItemFilterInput.ts +8 -0
  148. package/openapi/gen/models/trainingDatasetItemFilterInputFieldSourcesItem.ts +6 -0
  149. package/openapi/gen/models/trainingDatasetItemFilterInputFieldSourcesItemSourcesItem.ts +4 -0
  150. package/openapi/gen/models/trainingDatasetItemFilterInputFieldSourcesItemSourcesItemOneOf.ts +5 -0
  151. package/openapi/gen/models/trainingDatasetItemFilterInputFieldSourcesItemSourcesItemOneOfTwo.ts +5 -0
  152. package/openapi/gen/models/trainingDatasetItemFilterInputFieldValuesItem.ts +12 -0
  153. package/openapi/gen/models/trainingDatasetItemFilterInputFieldValuesItemOperator.ts +2 -0
  154. package/openapi/gen/models/trainingDatasetItemFilterInputFieldValuesItemSourcesItem.ts +4 -0
  155. package/openapi/gen/models/trainingDatasetItemFilterInputFieldValuesItemSourcesItemOneOf.ts +5 -0
  156. package/openapi/gen/models/trainingDatasetItemFilterInputFieldValuesItemSourcesItemOneOfTwo.ts +5 -0
  157. package/openapi/gen/models/trainingDatasetItemFilterInputFieldValuesItemValue.ts +2 -0
  158. package/openapi/gen/models/trainingDatasetSelection.ts +6 -0
  159. package/openapi/gen/models/trainingDatasetSelectionInput.ts +6 -0
  160. package/openapi/gen/models/trainingId.ts +2 -0
  161. package/openapi/gen/models/trainingModelId.ts +3 -0
  162. package/openapi/gen/models/trainingModelSource.ts +4 -0
  163. package/openapi/gen/models/trainingModelSourceOneOf.ts +6 -0
  164. package/openapi/gen/models/trainingModelSourceOneOfBaseModelId.ts +2 -0
  165. package/openapi/gen/models/trainingModelSourceOneOfThree.ts +5 -0
  166. package/openapi/gen/models/trainingRun.ts +39 -0
  167. package/openapi/gen/models/trainingRunBillingStatus.ts +2 -0
  168. package/openapi/gen/models/trainingRunBlockedReason.ts +2 -0
  169. package/openapi/gen/models/trainingRunChargedAmount.ts +2 -0
  170. package/openapi/gen/models/trainingRunError.ts +3 -0
  171. package/openapi/gen/models/trainingRunErrorAnyOf.ts +7 -0
  172. package/openapi/gen/models/trainingRunErrorAnyOfCode.ts +2 -0
  173. package/openapi/gen/models/trainingRunId.ts +2 -0
  174. package/openapi/gen/models/trainingRunInputs.ts +3 -0
  175. package/openapi/gen/models/trainingRunInputsAnyOf.ts +7 -0
  176. package/openapi/gen/models/trainingRunInputsAnyOfTraining.ts +15 -0
  177. package/openapi/gen/models/trainingRunInputsAnyOfTrainingContract.ts +2 -0
  178. package/openapi/gen/models/trainingRunInputsAnyOfTrainingItemFilter.ts +9 -0
  179. package/openapi/gen/models/trainingRunInputsAnyOfTrainingItemFilterFieldSourcesItem.ts +6 -0
  180. package/openapi/gen/models/trainingRunInputsAnyOfTrainingItemFilterFieldSourcesItemSourcesItem.ts +4 -0
  181. package/openapi/gen/models/trainingRunInputsAnyOfTrainingItemFilterFieldSourcesItemSourcesItemOneOf.ts +5 -0
  182. package/openapi/gen/models/trainingRunInputsAnyOfTrainingItemFilterFieldSourcesItemSourcesItemOneOfTwo.ts +5 -0
  183. package/openapi/gen/models/trainingRunInputsAnyOfTrainingItemFilterFieldValuesItem.ts +12 -0
  184. package/openapi/gen/models/trainingRunInputsAnyOfTrainingItemFilterFieldValuesItemOperator.ts +2 -0
  185. package/openapi/gen/models/trainingRunInputsAnyOfTrainingItemFilterFieldValuesItemSourcesItem.ts +4 -0
  186. package/openapi/gen/models/trainingRunInputsAnyOfTrainingItemFilterFieldValuesItemSourcesItemOneOf.ts +5 -0
  187. package/openapi/gen/models/trainingRunInputsAnyOfTrainingItemFilterFieldValuesItemSourcesItemOneOfTwo.ts +5 -0
  188. package/openapi/gen/models/trainingRunInputsAnyOfTrainingItemFilterFieldValuesItemValue.ts +2 -0
  189. package/openapi/gen/models/trainingRunInputsAnyOfTrainingReport.ts +9 -0
  190. package/openapi/gen/models/trainingRunInputsAnyOfTrainingReportErrorsItem.ts +5 -0
  191. package/openapi/gen/models/trainingRunInputsAnyOfTrainingReportTokens.ts +10 -0
  192. package/openapi/gen/models/trainingRunInputsAnyOfTrainingReportTokensEstimatorVersion.ts +2 -0
  193. package/openapi/gen/models/trainingRunInputsAnyOfTrainingReportTokensTotal.ts +2 -0
  194. package/openapi/gen/models/trainingRunInputsAnyOfValidation.ts +3 -0
  195. package/openapi/gen/models/trainingRunInputsAnyOfValidationAnyOf.ts +15 -0
  196. package/openapi/gen/models/trainingRunInputsAnyOfValidationAnyOfContract.ts +2 -0
  197. package/openapi/gen/models/trainingRunInputsAnyOfValidationAnyOfItemFilter.ts +9 -0
  198. package/openapi/gen/models/trainingRunInputsAnyOfValidationAnyOfItemFilterFieldSourcesItem.ts +6 -0
  199. package/openapi/gen/models/trainingRunInputsAnyOfValidationAnyOfItemFilterFieldSourcesItemSourcesItem.ts +4 -0
  200. package/openapi/gen/models/trainingRunInputsAnyOfValidationAnyOfItemFilterFieldSourcesItemSourcesItemOneOf.ts +5 -0
  201. package/openapi/gen/models/trainingRunInputsAnyOfValidationAnyOfItemFilterFieldSourcesItemSourcesItemOneOfTwo.ts +5 -0
  202. package/openapi/gen/models/trainingRunInputsAnyOfValidationAnyOfItemFilterFieldValuesItem.ts +12 -0
  203. package/openapi/gen/models/trainingRunInputsAnyOfValidationAnyOfItemFilterFieldValuesItemOperator.ts +2 -0
  204. package/openapi/gen/models/trainingRunInputsAnyOfValidationAnyOfItemFilterFieldValuesItemSourcesItem.ts +4 -0
  205. package/openapi/gen/models/trainingRunInputsAnyOfValidationAnyOfItemFilterFieldValuesItemSourcesItemOneOf.ts +5 -0
  206. package/openapi/gen/models/trainingRunInputsAnyOfValidationAnyOfItemFilterFieldValuesItemSourcesItemOneOfTwo.ts +5 -0
  207. package/openapi/gen/models/trainingRunInputsAnyOfValidationAnyOfItemFilterFieldValuesItemValue.ts +2 -0
  208. package/openapi/gen/models/trainingRunInputsAnyOfValidationAnyOfReport.ts +9 -0
  209. package/openapi/gen/models/trainingRunInputsAnyOfValidationAnyOfReportErrorsItem.ts +5 -0
  210. package/openapi/gen/models/trainingRunInputsAnyOfValidationAnyOfReportTokens.ts +10 -0
  211. package/openapi/gen/models/trainingRunInputsAnyOfValidationAnyOfReportTokensEstimatorVersion.ts +2 -0
  212. package/openapi/gen/models/trainingRunInputsAnyOfValidationAnyOfReportTokensTotal.ts +2 -0
  213. package/openapi/gen/models/trainingRunLogs.ts +9 -0
  214. package/openapi/gen/models/trainingRunLogsEntriesItem.ts +7 -0
  215. package/openapi/gen/models/trainingRunLogsEntriesItemLevel.ts +2 -0
  216. package/openapi/gen/models/trainingRunLogsNextCursor.ts +2 -0
  217. package/openapi/gen/models/trainingRunMessage.ts +2 -0
  218. package/openapi/gen/models/trainingRunOutputModelVersionRevision.ts +2 -0
  219. package/openapi/gen/models/trainingRunProgress.ts +3 -0
  220. package/openapi/gen/models/trainingRunProgressAnyOf.ts +10 -0
  221. package/openapi/gen/models/trainingRunProgressAnyOfMessage.ts +2 -0
  222. package/openapi/gen/models/trainingRunProgressAnyOfStep.ts +2 -0
  223. package/openapi/gen/models/trainingRunProgressAnyOfTotal.ts +2 -0
  224. package/openapi/gen/models/trainingRunQuote.ts +17 -0
  225. package/openapi/gen/models/trainingRunQuoteBudget.ts +9 -0
  226. package/openapi/gen/models/trainingRunQuoteInputs.ts +7 -0
  227. package/openapi/gen/models/trainingRunQuoteInputsTraining.ts +9 -0
  228. package/openapi/gen/models/trainingRunQuoteInputsTrainingFailure.ts +3 -0
  229. package/openapi/gen/models/trainingRunQuoteInputsTrainingFailureAnyOf.ts +7 -0
  230. package/openapi/gen/models/trainingRunQuoteInputsTrainingFailureAnyOfCode.ts +2 -0
  231. package/openapi/gen/models/trainingRunQuoteInputsTrainingReport.ts +3 -0
  232. package/openapi/gen/models/trainingRunQuoteInputsTrainingReportAnyOf.ts +9 -0
  233. package/openapi/gen/models/trainingRunQuoteInputsTrainingReportAnyOfErrorsItem.ts +5 -0
  234. package/openapi/gen/models/trainingRunQuoteInputsTrainingReportAnyOfTokens.ts +10 -0
  235. package/openapi/gen/models/trainingRunQuoteInputsTrainingReportAnyOfTokensEstimatorVersion.ts +2 -0
  236. package/openapi/gen/models/trainingRunQuoteInputsTrainingReportAnyOfTokensTotal.ts +2 -0
  237. package/openapi/gen/models/trainingRunQuoteInputsValidation.ts +3 -0
  238. package/openapi/gen/models/trainingRunQuoteInputsValidationAnyOf.ts +9 -0
  239. package/openapi/gen/models/trainingRunQuoteInputsValidationAnyOfFailure.ts +3 -0
  240. package/openapi/gen/models/trainingRunQuoteInputsValidationAnyOfFailureAnyOf.ts +7 -0
  241. package/openapi/gen/models/trainingRunQuoteInputsValidationAnyOfFailureAnyOfCode.ts +2 -0
  242. package/openapi/gen/models/trainingRunQuoteInputsValidationAnyOfReport.ts +3 -0
  243. package/openapi/gen/models/trainingRunQuoteInputsValidationAnyOfReportAnyOf.ts +9 -0
  244. package/openapi/gen/models/trainingRunQuoteInputsValidationAnyOfReportAnyOfErrorsItem.ts +5 -0
  245. package/openapi/gen/models/trainingRunQuoteInputsValidationAnyOfReportAnyOfTokens.ts +10 -0
  246. package/openapi/gen/models/trainingRunQuoteInputsValidationAnyOfReportAnyOfTokensEstimatorVersion.ts +2 -0
  247. package/openapi/gen/models/trainingRunQuoteInputsValidationAnyOfReportAnyOfTokensTotal.ts +2 -0
  248. package/openapi/gen/models/trainingRunStatus.ts +2 -0
  249. package/openapi/gen/models/updateTrainingMetadataBody.ts +5 -0
  250. package/package.json +3 -3
  251. package/skills/catalog.json +19 -7
  252. package/skills/toloka-build/SKILL.md +4 -4
  253. package/skills/toloka-build/references/node-semantics.md +2 -2
  254. package/skills/toloka-build/references/workflow-and-cli.md +21 -3
  255. package/skills/toloka-report-issue/references/report-template.md +1 -1
  256. package/src/authoring/index.ts +10 -0
  257. package/src/cli/auth.ts +1 -1
  258. package/src/cli/auto-update.ts +1 -5
  259. package/src/cli/bin.ts +1 -1
  260. package/src/cli/check.ts +91 -30
  261. package/src/cli/cost.ts +8 -2
  262. package/src/cli/models.ts +107 -2
  263. package/src/cli/program.ts +271 -2
  264. package/src/cli/project-context.ts +55 -11
  265. package/src/cli/project.ts +55 -11
  266. package/src/cli/secrets.ts +4 -4
  267. package/src/cli/trainings.ts +627 -0
  268. package/src/cli/version.ts +68 -0
  269. package/src/client.ts +164 -30
  270. package/src/index.ts +4 -0
  271. package/openapi/gen/models/createDatasetExportBodyOneOf.ts +0 -6
  272. package/openapi/gen/models/createDatasetExportBodyOneOfFormat.ts +0 -2
  273. package/openapi/gen/models/createDatasetExportBodyOneOfThree.ts +0 -10
  274. package/openapi/gen/models/createDatasetExportBodyOneOfThreeContract.ts +0 -2
  275. package/openapi/gen/models/createDatasetExportBodyOneOfThreeFormat.ts +0 -2
  276. package/openapi/gen/models/createDatasetExportBodyOneOfThreeItemFilter.ts +0 -9
  277. package/openapi/gen/models/createDatasetExportBodyOneOfThreeItemFilterFieldSourcesItem.ts +0 -6
  278. package/openapi/gen/models/createDatasetExportBodyOneOfThreeItemFilterFieldSourcesItemSourcesItem.ts +0 -4
  279. package/openapi/gen/models/createDatasetExportBodyOneOfThreeItemFilterFieldSourcesItemSourcesItemOneOf.ts +0 -5
  280. package/openapi/gen/models/createDatasetExportBodyOneOfThreeItemFilterFieldSourcesItemSourcesItemOneOfTwo.ts +0 -5
  281. package/openapi/gen/models/createDatasetExportBodyOneOfThreeItemFilterFieldValuesItem.ts +0 -12
  282. package/openapi/gen/models/createDatasetExportBodyOneOfThreeItemFilterFieldValuesItemOperator.ts +0 -2
  283. package/openapi/gen/models/createDatasetExportBodyOneOfThreeItemFilterFieldValuesItemSourcesItem.ts +0 -4
  284. package/openapi/gen/models/createDatasetExportBodyOneOfThreeItemFilterFieldValuesItemSourcesItemOneOf.ts +0 -5
  285. package/openapi/gen/models/createDatasetExportBodyOneOfThreeItemFilterFieldValuesItemSourcesItemOneOfTwo.ts +0 -5
  286. package/openapi/gen/models/createDatasetExportBodyOneOfThreeItemFilterFieldValuesItemValue.ts +0 -2
Binary file
@@ -1 +1 @@
1
- 92bbe68b3e86c7e0a8d7d66dfc8277f682402c5513db4a58844ba6173975afd1 toloka.js.jsc
1
+ 19983b733a3e06f8b57ec971da718a2d169e6afe9c45a37ba02cf4a30a6bc6f1 toloka.js.jsc
@@ -1 +1 @@
1
- 16b1b42414dbde194d20e05efb359538bae80906bba75e1af3e0b8638a82ec43 toloka.js
1
+ e9731d96ceea4fa47b10bf5b846240437fe966e231929ed5f02a586aa886c22a toloka.js
package/docs/authoring.md CHANGED
@@ -37,19 +37,24 @@ The name is a bare identifier. When a field is a pipeline **input**, its name mu
37
37
 
38
38
  ## Node constructors
39
39
 
40
- Five constructors cover the whole palette. Each takes a name, a settings object, and optional `{ id }`.
40
+ Four work-node constructors take a name, settings, and optional `{ id }`: `code`, `generation`, `quorum`, and `match`. `root` is the single pipeline boundary and takes only settings plus optional `{ id }`.
41
41
 
42
42
  ### root
43
43
 
44
44
  Defines the pipeline's input and output contract. `started` is what each item carries in from the dataset; `completed` is what gets written back.
45
45
 
46
46
  ```ts
47
- import { root } from "@toloka-platform/sdk";
47
+ import { optional, root } from "@toloka-platform/sdk";
48
48
 
49
- export const collection = root({ started: [imageUrl], completed: [annotations] });
49
+ export const collection = root({
50
+ started: [imageUrl],
51
+ completed: [optional(annotations)],
52
+ });
50
53
  ```
51
54
 
52
- Pass `{ field, optional: true }` instead of a bare field to make a binding optional.
55
+ Pass a bare field for a required binding. Use `optional(field)` for new optional bindings. The explicit `{ field, optional }` form remains supported and may appear in imported source.
56
+
57
+ `root()` deliberately has no name argument: a pipeline has exactly one boundary, and its default wire id is `root`.
53
58
 
54
59
  ### code
55
60
 
package/docs/cli-v2.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # CLI v2: project as the root
2
2
 
3
- How `toloka` should work in the next version. Preview is unreleased, so this is a clean cutover, not a compatibility layer.
3
+ How `toloka` should work in the next version. Beta remains a clean cutover rather than a compatibility layer.
4
4
 
5
5
  The platform object is a **project** (`pp.…`, today's pipeline project). Windmill calls the same role a workspace. PostHog calls it a project. We keep **project** so the CLI matches the API and the console.
6
6
 
@@ -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
 
@@ -212,7 +212,7 @@ Do not add those groups until the resource exists. The rule is already fixed: th
212
212
  | `toloka runs` / `cost` / `cancel` / `results` | `toloka pipeline …` |
213
213
  | root = `toloka.json` or `pipelines/` | root = `toloka.json` only |
214
214
 
215
- No shims. Preview callers update.
215
+ No shims. Beta callers update.
216
216
 
217
217
  ## Out of scope
218
218
 
package/docs/cli.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  The `toloka` CLI reads TypeScript source as the desired state, compares it with the live platform state, and reconciles the two.
4
4
 
5
- This CLI is Preview software. Commands, flags, and output can change without a major version bump.
5
+ This CLI is Beta software. Commands, flags, and output can change before general availability.
6
6
 
7
7
  `toloka` requires Bun 1.4.0. The published package ships matching CLI bytecode; the launcher falls back to TypeScript source in a development checkout when the bytecode is absent.
8
8
 
@@ -61,6 +61,14 @@ The CLI is resource-first: `toloka <resource> <action>`. A Base Action has one m
61
61
 
62
62
  Resources may also expose specialized actions beyond the Base Actions, such as `pipeline cost`, `skill search`, and `skill install`.
63
63
 
64
+ ## version
65
+
66
+ Print the SDK/CLI version. `toloka version --json` also prints build provenance: the build commit when the bytecode bundle recorded one, the install channel (`global-registry`, `linked`, or `project-local`), and the local package path for linked installs. `toloka -v` and `toloka --version` remain semver-only for scripts.
67
+
68
+ ```sh
69
+ toloka version [--json]
70
+ ```
71
+
64
72
  ## project
65
73
 
66
74
  Register and select the platform project later commands use.
@@ -73,9 +81,14 @@ toloka project current
73
81
  toloka project url
74
82
  toloka project remove <alias>
75
83
  toloka project create [alias] [--name <name>] [--team-id <id>]
84
+ toloka project untrack <pipeline|dataset> <name> [--confirm]
76
85
  ```
77
86
 
78
- `add`, `switch`, `remove`, and `create` write the machine registry in the credentials file. They refuse `--api-key` / `--base-url` / `POTATO_*` when those would select a different key or platform than the stored file. `create` reuses the only visible team when every listed project shares one; otherwise pass `--team-id`.
87
+ `add`, `switch`, `remove`, and `create` write the machine registry in the credentials file. They refuse `--api-key` / `--base-url` / `POTATO_*` when those would select a different key or platform than the stored file. `project list` prints project id, name, and team id. `create` reuses the only visible team when every listed project shares one; otherwise pass `--team-id`.
88
+
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
+
91
+ `list` prints `CURRENT`, `ID`, `NAME`, and `ALIAS` columns. `*` marks the selected project and `-` marks an unselected project or missing alias.
79
92
 
80
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.
81
94
 
@@ -188,7 +201,7 @@ Runs the complete Local Check Gate, then makes the platform match source.
188
201
  toloka apply
189
202
  ```
190
203
 
191
- 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.
192
205
 
193
206
  ## secret set
194
207
 
@@ -4,11 +4,11 @@ Install the SDK, sign in, and get a pipeline project reconciling from source in
4
4
 
5
5
  ## Install
6
6
 
7
- Install the bytecode-cached CLI globally and declare the Preview SDK in the project:
7
+ Install the bytecode-cached CLI globally and declare the Beta SDK in the project:
8
8
 
9
9
  ```sh
10
10
  curl -fsSL https://platform.toloka.ai/cli/install.sh | sh
11
- bun add @toloka-platform/sdk@preview
11
+ bun add @toloka-platform/sdk@latest
12
12
  ```
13
13
 
14
14
  The installer requires Bun 1.4.0, installs `@toloka-platform/sdk` globally, and exposes `toloka` through Bun's global binary directory. The published CLI includes matching precompiled bytecode. The project install makes SDK imports resolvable.
@@ -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
 
@@ -140,4 +140,4 @@ Exit code `0` means the run reached a successful terminal state, `1` a failed on
140
140
  - [Nodes](./nodes.md) — which node to reach for, and the pricing floors you must clear
141
141
  - [CLI](./cli.md) — every command and flag
142
142
  - [Troubleshooting](./troubleshooting.md) — the failures you will hit
143
- - [Limitations](./limitations.md) — Preview status and what this SDK does not do yet
143
+ - [Limitations](./limitations.md) — Beta status and what this SDK does not do yet
@@ -1,8 +1,8 @@
1
1
  # Limitations
2
2
 
3
- What this Preview SDK does not do yet, stated plainly so you can decide what to depend on.
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-preview.9`. This is a Preview: the authoring API, the CLI surface, and the generated source layout can change without a major version bump. Pin an exact version. Do not depend on this in production yet.
5
+ `@toloka-platform/sdk` is `0.2.0-preview.1`. 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 Preview SDK does not do yet, stated plainly so you can decide what to
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: