@scenario-labs/sdk 3.2.0 → 3.3.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 (530) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/client.d.mts +20 -5
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +20 -5
  5. package/client.d.ts.map +1 -1
  6. package/client.js +9 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +9 -0
  9. package/client.mjs.map +1 -1
  10. package/core/pagination.d.mts +42 -0
  11. package/core/pagination.d.mts.map +1 -1
  12. package/core/pagination.d.ts +42 -0
  13. package/core/pagination.d.ts.map +1 -1
  14. package/core/pagination.js +79 -1
  15. package/core/pagination.js.map +1 -1
  16. package/core/pagination.mjs +75 -0
  17. package/core/pagination.mjs.map +1 -1
  18. package/internal/utils/values.d.mts +6 -0
  19. package/internal/utils/values.d.mts.map +1 -1
  20. package/internal/utils/values.d.ts +6 -0
  21. package/internal/utils/values.d.ts.map +1 -1
  22. package/internal/utils/values.js +11 -0
  23. package/internal/utils/values.js.map +1 -1
  24. package/internal/utils/values.mjs +10 -0
  25. package/internal/utils/values.mjs.map +1 -1
  26. package/lib/asset.d.mts +1 -1
  27. package/lib/asset.d.ts +1 -1
  28. package/lib/asset.js +1 -1
  29. package/lib/asset.mjs +1 -1
  30. package/lib/generate.js +7 -7
  31. package/lib/generate.js.map +1 -1
  32. package/lib/generate.mjs +7 -7
  33. package/lib/generate.mjs.map +1 -1
  34. package/lib/job.d.mts +1 -1
  35. package/lib/job.d.mts.map +1 -1
  36. package/lib/job.d.ts +1 -1
  37. package/lib/job.d.ts.map +1 -1
  38. package/lib/job.js +5 -6
  39. package/lib/job.js.map +1 -1
  40. package/lib/job.mjs +6 -7
  41. package/lib/job.mjs.map +1 -1
  42. package/lib/models.d.mts.map +1 -1
  43. package/lib/models.d.ts.map +1 -1
  44. package/lib/models.js +7 -5
  45. package/lib/models.js.map +1 -1
  46. package/lib/models.mjs +8 -6
  47. package/lib/models.mjs.map +1 -1
  48. package/lib/query.d.mts +21 -0
  49. package/lib/query.d.mts.map +1 -0
  50. package/lib/query.d.ts +21 -0
  51. package/lib/query.d.ts.map +1 -0
  52. package/lib/query.js +36 -0
  53. package/lib/query.js.map +1 -0
  54. package/lib/query.mjs +33 -0
  55. package/lib/query.mjs.map +1 -0
  56. package/lib/scenario.d.mts +3 -0
  57. package/lib/scenario.d.mts.map +1 -1
  58. package/lib/scenario.d.ts +3 -0
  59. package/lib/scenario.d.ts.map +1 -1
  60. package/lib/scenario.js +6 -0
  61. package/lib/scenario.js.map +1 -1
  62. package/lib/scenario.mjs +6 -0
  63. package/lib/scenario.mjs.map +1 -1
  64. package/lib/scope.d.mts +27 -7
  65. package/lib/scope.d.mts.map +1 -1
  66. package/lib/scope.d.ts +27 -7
  67. package/lib/scope.d.ts.map +1 -1
  68. package/lib/scope.js +40 -7
  69. package/lib/scope.js.map +1 -1
  70. package/lib/scope.mjs +37 -7
  71. package/lib/scope.mjs.map +1 -1
  72. package/lib/upload.d.mts +11 -6
  73. package/lib/upload.d.mts.map +1 -1
  74. package/lib/upload.d.ts +11 -6
  75. package/lib/upload.d.ts.map +1 -1
  76. package/lib/upload.js +6 -7
  77. package/lib/upload.js.map +1 -1
  78. package/lib/upload.mjs +7 -8
  79. package/lib/upload.mjs.map +1 -1
  80. package/lib/workflow.d.mts +4 -2
  81. package/lib/workflow.d.mts.map +1 -1
  82. package/lib/workflow.d.ts +4 -2
  83. package/lib/workflow.d.ts.map +1 -1
  84. package/lib/workflow.js +13 -7
  85. package/lib/workflow.js.map +1 -1
  86. package/lib/workflow.mjs +14 -8
  87. package/lib/workflow.mjs.map +1 -1
  88. package/lib/workflow_converter.d.mts.map +1 -1
  89. package/lib/workflow_converter.d.ts.map +1 -1
  90. package/lib/workflow_converter.js +1 -1
  91. package/lib/workflow_converter.js.map +1 -1
  92. package/lib/workflow_converter.mjs +1 -1
  93. package/lib/workflow_converter.mjs.map +1 -1
  94. package/lib/workflow_validator.d.mts +5 -0
  95. package/lib/workflow_validator.d.mts.map +1 -1
  96. package/lib/workflow_validator.d.ts +5 -0
  97. package/lib/workflow_validator.d.ts.map +1 -1
  98. package/lib/workflow_validator.js +113 -0
  99. package/lib/workflow_validator.js.map +1 -1
  100. package/lib/workflow_validator.mjs +113 -0
  101. package/lib/workflow_validator.mjs.map +1 -1
  102. package/package.json +1 -1
  103. package/resources/assets/assets.d.mts +130 -31
  104. package/resources/assets/assets.d.mts.map +1 -1
  105. package/resources/assets/assets.d.ts +130 -31
  106. package/resources/assets/assets.d.ts.map +1 -1
  107. package/resources/assets/assets.js +34 -11
  108. package/resources/assets/assets.js.map +1 -1
  109. package/resources/assets/assets.mjs +34 -11
  110. package/resources/assets/assets.mjs.map +1 -1
  111. package/resources/assets/download.d.mts +24 -5
  112. package/resources/assets/download.d.mts.map +1 -1
  113. package/resources/assets/download.d.ts +24 -5
  114. package/resources/assets/download.d.ts.map +1 -1
  115. package/resources/assets/download.js +15 -3
  116. package/resources/assets/download.js.map +1 -1
  117. package/resources/assets/download.mjs +15 -3
  118. package/resources/assets/download.mjs.map +1 -1
  119. package/resources/collections/assets.d.mts.map +1 -1
  120. package/resources/collections/assets.d.ts.map +1 -1
  121. package/resources/collections/assets.js +3 -2
  122. package/resources/collections/assets.js.map +1 -1
  123. package/resources/collections/assets.mjs +3 -2
  124. package/resources/collections/assets.mjs.map +1 -1
  125. package/resources/collections/collections.d.mts.map +1 -1
  126. package/resources/collections/collections.d.ts.map +1 -1
  127. package/resources/collections/collections.js +20 -5
  128. package/resources/collections/collections.js.map +1 -1
  129. package/resources/collections/collections.mjs +20 -5
  130. package/resources/collections/collections.mjs.map +1 -1
  131. package/resources/collections/models.d.mts.map +1 -1
  132. package/resources/collections/models.d.ts.map +1 -1
  133. package/resources/collections/models.js +3 -2
  134. package/resources/collections/models.js.map +1 -1
  135. package/resources/collections/models.mjs +3 -2
  136. package/resources/collections/models.mjs.map +1 -1
  137. package/resources/generate.d.mts +1719 -225
  138. package/resources/generate.d.mts.map +1 -1
  139. package/resources/generate.d.ts +1719 -225
  140. package/resources/generate.d.ts.map +1 -1
  141. package/resources/generate.js +65 -8
  142. package/resources/generate.js.map +1 -1
  143. package/resources/generate.mjs +65 -8
  144. package/resources/generate.mjs.map +1 -1
  145. package/resources/index.d.mts +5 -2
  146. package/resources/index.d.mts.map +1 -1
  147. package/resources/index.d.ts +5 -2
  148. package/resources/index.d.ts.map +1 -1
  149. package/resources/index.js +7 -1
  150. package/resources/index.js.map +1 -1
  151. package/resources/index.mjs +3 -0
  152. package/resources/index.mjs.map +1 -1
  153. package/resources/jobs.d.mts +176 -74
  154. package/resources/jobs.d.mts.map +1 -1
  155. package/resources/jobs.d.ts +176 -74
  156. package/resources/jobs.d.ts.map +1 -1
  157. package/resources/jobs.js +16 -4
  158. package/resources/jobs.js.map +1 -1
  159. package/resources/jobs.mjs +16 -4
  160. package/resources/jobs.mjs.map +1 -1
  161. package/resources/models/description.d.mts +2 -2
  162. package/resources/models/description.d.mts.map +1 -1
  163. package/resources/models/description.d.ts +2 -2
  164. package/resources/models/description.d.ts.map +1 -1
  165. package/resources/models/description.js +6 -2
  166. package/resources/models/description.js.map +1 -1
  167. package/resources/models/description.mjs +6 -2
  168. package/resources/models/description.mjs.map +1 -1
  169. package/resources/models/examples.d.mts +120 -48
  170. package/resources/models/examples.d.mts.map +1 -1
  171. package/resources/models/examples.d.ts +120 -48
  172. package/resources/models/examples.d.ts.map +1 -1
  173. package/resources/models/examples.js +6 -2
  174. package/resources/models/examples.js.map +1 -1
  175. package/resources/models/examples.mjs +6 -2
  176. package/resources/models/examples.mjs.map +1 -1
  177. package/resources/models/index.d.mts +3 -0
  178. package/resources/models/index.d.mts.map +1 -1
  179. package/resources/models/index.d.ts +3 -0
  180. package/resources/models/index.d.ts.map +1 -1
  181. package/resources/models/index.js +7 -1
  182. package/resources/models/index.js.map +1 -1
  183. package/resources/models/index.mjs +3 -0
  184. package/resources/models/index.mjs.map +1 -1
  185. package/resources/models/models.d.mts +215 -77
  186. package/resources/models/models.d.mts.map +1 -1
  187. package/resources/models/models.d.ts +215 -77
  188. package/resources/models/models.d.ts.map +1 -1
  189. package/resources/models/models.js +52 -11
  190. package/resources/models/models.js.map +1 -1
  191. package/resources/models/models.mjs +52 -11
  192. package/resources/models/models.mjs.map +1 -1
  193. package/resources/models/presets.d.mts +1016 -0
  194. package/resources/models/presets.d.mts.map +1 -0
  195. package/resources/models/presets.d.ts +1016 -0
  196. package/resources/models/presets.d.ts.map +1 -0
  197. package/resources/models/presets.js +52 -0
  198. package/resources/models/presets.js.map +1 -0
  199. package/resources/models/presets.mjs +48 -0
  200. package/resources/models/presets.mjs.map +1 -0
  201. package/resources/models/prompt-guide.d.mts +64 -0
  202. package/resources/models/prompt-guide.d.mts.map +1 -0
  203. package/resources/models/prompt-guide.d.ts +64 -0
  204. package/resources/models/prompt-guide.d.ts.map +1 -0
  205. package/resources/models/prompt-guide.js +31 -0
  206. package/resources/models/prompt-guide.js.map +1 -0
  207. package/resources/models/prompt-guide.mjs +27 -0
  208. package/resources/models/prompt-guide.mjs.map +1 -0
  209. package/resources/models/scores.d.mts +278 -0
  210. package/resources/models/scores.d.mts.map +1 -0
  211. package/resources/models/scores.d.ts +278 -0
  212. package/resources/models/scores.d.ts.map +1 -0
  213. package/resources/models/scores.js +29 -0
  214. package/resources/models/scores.js.map +1 -0
  215. package/resources/models/scores.mjs +25 -0
  216. package/resources/models/scores.mjs.map +1 -0
  217. package/resources/models/train.d.mts +108 -45
  218. package/resources/models/train.d.mts.map +1 -1
  219. package/resources/models/train.d.ts +108 -45
  220. package/resources/models/train.d.ts.map +1 -1
  221. package/resources/models/train.js +3 -2
  222. package/resources/models/train.js.map +1 -1
  223. package/resources/models/train.mjs +3 -2
  224. package/resources/models/train.mjs.map +1 -1
  225. package/resources/models/training-images.d.mts.map +1 -1
  226. package/resources/models/training-images.d.ts.map +1 -1
  227. package/resources/models/training-images.js +5 -4
  228. package/resources/models/training-images.js.map +1 -1
  229. package/resources/models/training-images.mjs +5 -4
  230. package/resources/models/training-images.mjs.map +1 -1
  231. package/resources/projects/api-keys.d.mts +54 -0
  232. package/resources/projects/api-keys.d.mts.map +1 -0
  233. package/resources/projects/api-keys.d.ts +54 -0
  234. package/resources/projects/api-keys.d.ts.map +1 -0
  235. package/resources/projects/api-keys.js +23 -0
  236. package/resources/projects/api-keys.js.map +1 -0
  237. package/resources/projects/api-keys.mjs +19 -0
  238. package/resources/projects/api-keys.mjs.map +1 -0
  239. package/resources/projects/brief.d.mts +149 -0
  240. package/resources/projects/brief.d.mts.map +1 -0
  241. package/resources/projects/brief.d.ts +149 -0
  242. package/resources/projects/brief.d.ts.map +1 -0
  243. package/resources/projects/brief.js +28 -0
  244. package/resources/projects/brief.js.map +1 -0
  245. package/resources/projects/brief.mjs +24 -0
  246. package/resources/projects/brief.mjs.map +1 -0
  247. package/resources/projects/index.d.mts +9 -0
  248. package/resources/projects/index.d.mts.map +1 -0
  249. package/resources/projects/index.d.ts +9 -0
  250. package/resources/projects/index.d.ts.map +1 -0
  251. package/resources/projects/index.js +21 -0
  252. package/resources/projects/index.js.map +1 -0
  253. package/resources/projects/index.mjs +10 -0
  254. package/resources/projects/index.mjs.map +1 -0
  255. package/resources/projects/instructions.d.mts +102 -0
  256. package/resources/projects/instructions.d.mts.map +1 -0
  257. package/resources/projects/instructions.d.ts +102 -0
  258. package/resources/projects/instructions.d.ts.map +1 -0
  259. package/resources/projects/instructions.js +24 -0
  260. package/resources/projects/instructions.js.map +1 -0
  261. package/resources/projects/instructions.mjs +20 -0
  262. package/resources/projects/instructions.mjs.map +1 -0
  263. package/resources/projects/members.d.mts +788 -0
  264. package/resources/projects/members.d.mts.map +1 -0
  265. package/resources/projects/members.d.ts +788 -0
  266. package/resources/projects/members.d.ts.map +1 -0
  267. package/resources/projects/members.js +30 -0
  268. package/resources/projects/members.js.map +1 -0
  269. package/resources/projects/members.mjs +26 -0
  270. package/resources/projects/members.mjs.map +1 -0
  271. package/resources/projects/memory.d.mts +102 -0
  272. package/resources/projects/memory.d.mts.map +1 -0
  273. package/resources/projects/memory.d.ts +102 -0
  274. package/resources/projects/memory.d.ts.map +1 -0
  275. package/resources/projects/memory.js +24 -0
  276. package/resources/projects/memory.js.map +1 -0
  277. package/resources/projects/memory.mjs +20 -0
  278. package/resources/projects/memory.mjs.map +1 -0
  279. package/resources/projects/projects.d.mts +1129 -0
  280. package/resources/projects/projects.d.mts.map +1 -0
  281. package/resources/projects/projects.d.ts +1129 -0
  282. package/resources/projects/projects.d.ts.map +1 -0
  283. package/resources/projects/projects.js +79 -0
  284. package/resources/projects/projects.js.map +1 -0
  285. package/resources/projects/projects.mjs +74 -0
  286. package/resources/projects/projects.mjs.map +1 -0
  287. package/resources/projects/watermark.d.mts +459 -0
  288. package/resources/projects/watermark.d.mts.map +1 -0
  289. package/resources/projects/watermark.d.ts +459 -0
  290. package/resources/projects/watermark.d.ts.map +1 -0
  291. package/resources/projects/watermark.js +46 -0
  292. package/resources/projects/watermark.js.map +1 -0
  293. package/resources/projects/watermark.mjs +42 -0
  294. package/resources/projects/watermark.mjs.map +1 -0
  295. package/resources/projects/webhook-endpoints/events.d.mts +87 -0
  296. package/resources/projects/webhook-endpoints/events.d.mts.map +1 -0
  297. package/resources/projects/webhook-endpoints/events.d.ts +87 -0
  298. package/resources/projects/webhook-endpoints/events.d.ts.map +1 -0
  299. package/resources/projects/webhook-endpoints/events.js +28 -0
  300. package/resources/projects/webhook-endpoints/events.js.map +1 -0
  301. package/resources/projects/webhook-endpoints/events.mjs +24 -0
  302. package/resources/projects/webhook-endpoints/events.mjs.map +1 -0
  303. package/resources/projects/webhook-endpoints/index.d.mts +3 -0
  304. package/resources/projects/webhook-endpoints/index.d.mts.map +1 -0
  305. package/resources/projects/webhook-endpoints/index.d.ts +3 -0
  306. package/resources/projects/webhook-endpoints/index.d.ts.map +1 -0
  307. package/resources/projects/webhook-endpoints/index.js +9 -0
  308. package/resources/projects/webhook-endpoints/index.js.map +1 -0
  309. package/resources/projects/webhook-endpoints/index.mjs +4 -0
  310. package/resources/projects/webhook-endpoints/index.mjs.map +1 -0
  311. package/resources/projects/webhook-endpoints/webhook-endpoints.d.mts +249 -0
  312. package/resources/projects/webhook-endpoints/webhook-endpoints.d.mts.map +1 -0
  313. package/resources/projects/webhook-endpoints/webhook-endpoints.d.ts +249 -0
  314. package/resources/projects/webhook-endpoints/webhook-endpoints.d.ts.map +1 -0
  315. package/resources/projects/webhook-endpoints/webhook-endpoints.js +44 -0
  316. package/resources/projects/webhook-endpoints/webhook-endpoints.js.map +1 -0
  317. package/resources/projects/webhook-endpoints/webhook-endpoints.mjs +39 -0
  318. package/resources/projects/webhook-endpoints/webhook-endpoints.mjs.map +1 -0
  319. package/resources/projects/webhook-endpoints.d.mts +2 -0
  320. package/resources/projects/webhook-endpoints.d.mts.map +1 -0
  321. package/resources/projects/webhook-endpoints.d.ts +2 -0
  322. package/resources/projects/webhook-endpoints.d.ts.map +1 -0
  323. package/resources/projects/webhook-endpoints.js +6 -0
  324. package/resources/projects/webhook-endpoints.js.map +1 -0
  325. package/resources/projects/webhook-endpoints.mjs +3 -0
  326. package/resources/projects/webhook-endpoints.mjs.map +1 -0
  327. package/resources/projects.d.mts +2 -0
  328. package/resources/projects.d.mts.map +1 -0
  329. package/resources/projects.d.ts +2 -0
  330. package/resources/projects.d.ts.map +1 -0
  331. package/resources/projects.js +6 -0
  332. package/resources/projects.js.map +1 -0
  333. package/resources/projects.mjs +3 -0
  334. package/resources/projects.mjs.map +1 -0
  335. package/resources/recommendations.d.mts +1107 -0
  336. package/resources/recommendations.d.mts.map +1 -0
  337. package/resources/recommendations.d.ts +1107 -0
  338. package/resources/recommendations.d.ts.map +1 -0
  339. package/resources/recommendations.js +17 -0
  340. package/resources/recommendations.js.map +1 -0
  341. package/resources/recommendations.mjs +13 -0
  342. package/resources/recommendations.mjs.map +1 -0
  343. package/resources/search.d.mts.map +1 -1
  344. package/resources/search.d.ts.map +1 -1
  345. package/resources/search.js +4 -3
  346. package/resources/search.js.map +1 -1
  347. package/resources/search.mjs +4 -3
  348. package/resources/search.mjs.map +1 -1
  349. package/resources/tags.d.mts.map +1 -1
  350. package/resources/tags.d.ts.map +1 -1
  351. package/resources/tags.js +5 -1
  352. package/resources/tags.js.map +1 -1
  353. package/resources/tags.mjs +5 -1
  354. package/resources/tags.mjs.map +1 -1
  355. package/resources/teams/brief.d.mts +149 -0
  356. package/resources/teams/brief.d.mts.map +1 -0
  357. package/resources/teams/brief.d.ts +149 -0
  358. package/resources/teams/brief.d.ts.map +1 -0
  359. package/resources/teams/brief.js +28 -0
  360. package/resources/teams/brief.js.map +1 -0
  361. package/resources/teams/brief.mjs +24 -0
  362. package/resources/teams/brief.mjs.map +1 -0
  363. package/resources/teams/index.d.mts +7 -0
  364. package/resources/teams/index.d.mts.map +1 -0
  365. package/resources/teams/index.d.ts +7 -0
  366. package/resources/teams/index.d.ts.map +1 -0
  367. package/resources/teams/index.js +17 -0
  368. package/resources/teams/index.js.map +1 -0
  369. package/resources/teams/index.mjs +8 -0
  370. package/resources/teams/index.mjs.map +1 -0
  371. package/resources/teams/ip-filters.d.mts +115 -0
  372. package/resources/teams/ip-filters.d.mts.map +1 -0
  373. package/resources/teams/ip-filters.d.ts +115 -0
  374. package/resources/teams/ip-filters.d.ts.map +1 -0
  375. package/resources/teams/ip-filters.js +45 -0
  376. package/resources/teams/ip-filters.js.map +1 -0
  377. package/resources/teams/ip-filters.mjs +41 -0
  378. package/resources/teams/ip-filters.mjs.map +1 -0
  379. package/resources/teams/members.d.mts +204 -0
  380. package/resources/teams/members.d.mts.map +1 -0
  381. package/resources/teams/members.d.ts +204 -0
  382. package/resources/teams/members.d.ts.map +1 -0
  383. package/resources/teams/members.js +30 -0
  384. package/resources/teams/members.js.map +1 -0
  385. package/resources/teams/members.mjs +26 -0
  386. package/resources/teams/members.mjs.map +1 -0
  387. package/resources/teams/teams.d.mts +878 -0
  388. package/resources/teams/teams.d.mts.map +1 -0
  389. package/resources/teams/teams.d.ts +878 -0
  390. package/resources/teams/teams.d.ts.map +1 -0
  391. package/resources/teams/teams.js +66 -0
  392. package/resources/teams/teams.js.map +1 -0
  393. package/resources/teams/teams.mjs +61 -0
  394. package/resources/teams/teams.mjs.map +1 -0
  395. package/resources/teams/watermark.d.mts +459 -0
  396. package/resources/teams/watermark.d.mts.map +1 -0
  397. package/resources/teams/watermark.d.ts +459 -0
  398. package/resources/teams/watermark.d.ts.map +1 -0
  399. package/resources/teams/watermark.js +46 -0
  400. package/resources/teams/watermark.js.map +1 -0
  401. package/resources/teams/watermark.mjs +42 -0
  402. package/resources/teams/watermark.mjs.map +1 -0
  403. package/resources/teams/webhook-endpoints/events.d.mts +87 -0
  404. package/resources/teams/webhook-endpoints/events.d.mts.map +1 -0
  405. package/resources/teams/webhook-endpoints/events.d.ts +87 -0
  406. package/resources/teams/webhook-endpoints/events.d.ts.map +1 -0
  407. package/resources/teams/webhook-endpoints/events.js +28 -0
  408. package/resources/teams/webhook-endpoints/events.js.map +1 -0
  409. package/resources/teams/webhook-endpoints/events.mjs +24 -0
  410. package/resources/teams/webhook-endpoints/events.mjs.map +1 -0
  411. package/resources/teams/webhook-endpoints/index.d.mts +3 -0
  412. package/resources/teams/webhook-endpoints/index.d.mts.map +1 -0
  413. package/resources/teams/webhook-endpoints/index.d.ts +3 -0
  414. package/resources/teams/webhook-endpoints/index.d.ts.map +1 -0
  415. package/resources/teams/webhook-endpoints/index.js +9 -0
  416. package/resources/teams/webhook-endpoints/index.js.map +1 -0
  417. package/resources/teams/webhook-endpoints/index.mjs +4 -0
  418. package/resources/teams/webhook-endpoints/index.mjs.map +1 -0
  419. package/resources/teams/webhook-endpoints/webhook-endpoints.d.mts +250 -0
  420. package/resources/teams/webhook-endpoints/webhook-endpoints.d.mts.map +1 -0
  421. package/resources/teams/webhook-endpoints/webhook-endpoints.d.ts +250 -0
  422. package/resources/teams/webhook-endpoints/webhook-endpoints.d.ts.map +1 -0
  423. package/resources/teams/webhook-endpoints/webhook-endpoints.js +45 -0
  424. package/resources/teams/webhook-endpoints/webhook-endpoints.js.map +1 -0
  425. package/resources/teams/webhook-endpoints/webhook-endpoints.mjs +40 -0
  426. package/resources/teams/webhook-endpoints/webhook-endpoints.mjs.map +1 -0
  427. package/resources/teams/webhook-endpoints.d.mts +2 -0
  428. package/resources/teams/webhook-endpoints.d.mts.map +1 -0
  429. package/resources/teams/webhook-endpoints.d.ts +2 -0
  430. package/resources/teams/webhook-endpoints.d.ts.map +1 -0
  431. package/resources/teams/webhook-endpoints.js +6 -0
  432. package/resources/teams/webhook-endpoints.js.map +1 -0
  433. package/resources/teams/webhook-endpoints.mjs +3 -0
  434. package/resources/teams/webhook-endpoints.mjs.map +1 -0
  435. package/resources/teams.d.mts +2 -0
  436. package/resources/teams.d.mts.map +1 -0
  437. package/resources/teams.d.ts +2 -0
  438. package/resources/teams.d.ts.map +1 -0
  439. package/resources/teams.js +6 -0
  440. package/resources/teams.js.map +1 -0
  441. package/resources/teams.mjs +3 -0
  442. package/resources/teams.mjs.map +1 -0
  443. package/resources/uploads.d.mts.map +1 -1
  444. package/resources/uploads.d.ts.map +1 -1
  445. package/resources/uploads.js +15 -3
  446. package/resources/uploads.js.map +1 -1
  447. package/resources/uploads.mjs +15 -3
  448. package/resources/uploads.mjs.map +1 -1
  449. package/resources/usages.d.mts +51 -24
  450. package/resources/usages.d.mts.map +1 -1
  451. package/resources/usages.d.ts +51 -24
  452. package/resources/usages.d.ts.map +1 -1
  453. package/resources/usages.js +2 -1
  454. package/resources/usages.js.map +1 -1
  455. package/resources/usages.mjs +2 -1
  456. package/resources/usages.mjs.map +1 -1
  457. package/resources/workflows.d.mts +1381 -280
  458. package/resources/workflows.d.mts.map +1 -1
  459. package/resources/workflows.d.ts +1381 -280
  460. package/resources/workflows.d.ts.map +1 -1
  461. package/resources/workflows.js +39 -8
  462. package/resources/workflows.js.map +1 -1
  463. package/resources/workflows.mjs +39 -8
  464. package/resources/workflows.mjs.map +1 -1
  465. package/src/client.ts +101 -0
  466. package/src/core/pagination.ts +144 -0
  467. package/src/internal/utils/values.ts +10 -0
  468. package/src/lib/asset.ts +1 -1
  469. package/src/lib/generate.ts +7 -7
  470. package/src/lib/job.ts +9 -7
  471. package/src/lib/models.ts +8 -6
  472. package/src/lib/query.ts +42 -0
  473. package/src/lib/scenario.ts +8 -0
  474. package/src/lib/scope.ts +42 -7
  475. package/src/lib/upload.ts +20 -13
  476. package/src/lib/workflow.ts +21 -8
  477. package/src/lib/workflow_converter.ts +4 -2
  478. package/src/lib/workflow_validator.ts +115 -0
  479. package/src/resources/assets/assets.ts +192 -33
  480. package/src/resources/assets/download.ts +43 -8
  481. package/src/resources/collections/assets.ts +3 -2
  482. package/src/resources/collections/collections.ts +20 -5
  483. package/src/resources/collections/models.ts +3 -2
  484. package/src/resources/generate.ts +2350 -186
  485. package/src/resources/index.ts +34 -0
  486. package/src/resources/jobs.ts +204 -74
  487. package/src/resources/models/description.ts +10 -2
  488. package/src/resources/models/examples.ts +140 -46
  489. package/src/resources/models/index.ts +25 -0
  490. package/src/resources/models/models.ts +326 -88
  491. package/src/resources/models/presets.ts +1335 -0
  492. package/src/resources/models/prompt-guide.ts +102 -0
  493. package/src/resources/models/scores.ts +383 -0
  494. package/src/resources/models/train.ts +121 -46
  495. package/src/resources/models/training-images.ts +5 -4
  496. package/src/resources/projects/api-keys.ts +86 -0
  497. package/src/resources/projects/brief.ts +197 -0
  498. package/src/resources/projects/index.ts +71 -0
  499. package/src/resources/projects/instructions.ts +134 -0
  500. package/src/resources/projects/members.ts +958 -0
  501. package/src/resources/projects/memory.ts +134 -0
  502. package/src/resources/projects/projects.ts +1478 -0
  503. package/src/resources/projects/watermark.ts +590 -0
  504. package/src/resources/projects/webhook-endpoints/events.ts +179 -0
  505. package/src/resources/projects/webhook-endpoints/index.ts +19 -0
  506. package/src/resources/projects/webhook-endpoints/webhook-endpoints.ts +452 -0
  507. package/src/resources/projects/webhook-endpoints.ts +3 -0
  508. package/src/resources/projects.ts +3 -0
  509. package/src/resources/recommendations.ts +1502 -0
  510. package/src/resources/search.ts +4 -3
  511. package/src/resources/tags.ts +5 -1
  512. package/src/resources/teams/brief.ts +193 -0
  513. package/src/resources/teams/index.ts +62 -0
  514. package/src/resources/teams/ip-filters.ts +177 -0
  515. package/src/resources/teams/members.ts +282 -0
  516. package/src/resources/teams/teams.ts +1255 -0
  517. package/src/resources/teams/watermark.ts +590 -0
  518. package/src/resources/teams/webhook-endpoints/events.ts +179 -0
  519. package/src/resources/teams/webhook-endpoints/index.ts +19 -0
  520. package/src/resources/teams/webhook-endpoints/webhook-endpoints.ts +453 -0
  521. package/src/resources/teams/webhook-endpoints.ts +3 -0
  522. package/src/resources/teams.ts +3 -0
  523. package/src/resources/uploads.ts +15 -3
  524. package/src/resources/usages.ts +58 -23
  525. package/src/resources/workflows.ts +1707 -241
  526. package/src/version.ts +1 -1
  527. package/version.d.mts +1 -1
  528. package/version.d.ts +1 -1
  529. package/version.js +1 -1
  530. package/version.mjs +1 -1
@@ -0,0 +1,278 @@
1
+ import { APIResource } from "../../core/resource.js";
2
+ import { APIPromise } from "../../core/api-promise.js";
3
+ import { RequestOptions } from "../../internal/request-options.js";
4
+ export declare class Scores extends APIResource {
5
+ /**
6
+ * Get the prompt scores for the given `modelId`
7
+ */
8
+ retrievePrompt(modelID: string, query?: ScoreRetrievePromptParams | null | undefined, options?: RequestOptions): APIPromise<ScoreRetrievePromptResponse>;
9
+ /**
10
+ * Get the training dataset scores for the given `modelId`
11
+ */
12
+ retrieveTrainingDataset(modelID: string, query?: ScoreRetrieveTrainingDatasetParams | null | undefined, options?: RequestOptions): APIPromise<ScoreRetrieveTrainingDatasetResponse>;
13
+ }
14
+ export interface ScoreRetrievePromptResponse {
15
+ /**
16
+ * Different components used to compute the final score
17
+ */
18
+ details: ScoreRetrievePromptResponse.Details;
19
+ /**
20
+ * The model ID (example: "model_eyVcnFJcR92BxBkz7N6g5w")
21
+ */
22
+ modelId: string;
23
+ /**
24
+ * The prompt's score for the input modelId
25
+ *
26
+ * The score is a number between 0 and 1. The higher the score, the better the
27
+ * prompt is for the model
28
+ */
29
+ score: number;
30
+ /**
31
+ * The status of the prompt's score
32
+ *
33
+ * Details if all the necessary data is present to compute the score
34
+ */
35
+ status: 'complete' | 'incomplete' | 'unknown';
36
+ /**
37
+ * Present only if the prompt has one or more syntax errors
38
+ *
39
+ * The API checks several syntax errors in the prompt
40
+ */
41
+ syntaxError?: 'Prompt weight should be between 0 and 2' | 'Prompt weight symbol should be - or + with a maximum length of 5. Ex: --, ++, ---, +++++' | "Unsupported prompt syntax: '[to:when], [from::when]'" | "Unsupported prompt syntax: 'word:<weight>' or '(word):<weight>'. Please use 'word<weight>' or '(word)<weight>' instead" | 'Unsupported prompt syntax: --(s|c)ref' | 'Unsupported prompt syntax: <name:weight> or <lora:name:weight>' | 'Unsupported url in prompt';
42
+ }
43
+ export declare namespace ScoreRetrievePromptResponse {
44
+ /**
45
+ * Different components used to compute the final score
46
+ */
47
+ interface Details {
48
+ /**
49
+ * The Dice-Sørensen similarity between the prompt and each captions from the
50
+ * model's training images
51
+ *
52
+ * The values are between 0 and 1. The higher the value, the more similar the
53
+ * prompt is to the training images' captions
54
+ */
55
+ captionsSimilarity: Details.CaptionsSimilarity;
56
+ /**
57
+ * The cosine similarity between the prompt and the model's caption embedding
58
+ *
59
+ * The value is a number between -1 and 1. The higher the value, the more similar
60
+ * the prompt is to the model's caption embedding
61
+ */
62
+ embeddingSimilarity: number;
63
+ /**
64
+ * The Dice-Sørensen similarity between the prompt and each prompts from the
65
+ * model's examples
66
+ *
67
+ * The values are between 0 and 1. The higher the value, the more similar the
68
+ * prompt is to the prompts' examples
69
+ */
70
+ promptsSimilarity?: Details.PromptsSimilarity;
71
+ }
72
+ namespace Details {
73
+ /**
74
+ * The Dice-Sørensen similarity between the prompt and each captions from the
75
+ * model's training images
76
+ *
77
+ * The values are between 0 and 1. The higher the value, the more similar the
78
+ * prompt is to the training images' captions
79
+ */
80
+ interface CaptionsSimilarity {
81
+ mean: number;
82
+ median: number;
83
+ min: number;
84
+ }
85
+ /**
86
+ * The Dice-Sørensen similarity between the prompt and each prompts from the
87
+ * model's examples
88
+ *
89
+ * The values are between 0 and 1. The higher the value, the more similar the
90
+ * prompt is to the prompts' examples
91
+ */
92
+ interface PromptsSimilarity {
93
+ mean: number;
94
+ median: number;
95
+ min: number;
96
+ }
97
+ }
98
+ }
99
+ export interface ScoreRetrieveTrainingDatasetResponse {
100
+ /**
101
+ * Different components used to compute the final score
102
+ */
103
+ details: ScoreRetrieveTrainingDatasetResponse.Details;
104
+ /**
105
+ * The model ID (example: "model_eyVcnFJcR92BxBkz7N6g5w")
106
+ */
107
+ modelId: string;
108
+ /**
109
+ * The training dataset's score for the input modelId
110
+ *
111
+ * The score is a number between 0 and 1. The higher the score, the most chance the
112
+ * model has to train well
113
+ */
114
+ score: number;
115
+ /**
116
+ * The status of the training dataset's score
117
+ *
118
+ * Details if all the necessary data is present to compute the score
119
+ */
120
+ status: 'complete' | 'incomplete' | 'unknown';
121
+ /**
122
+ * Present only if their is a warning between the assets of the couples
123
+ */
124
+ assetCouplesWarnings?: Array<ScoreRetrieveTrainingDatasetResponse.AssetCouplesWarning>;
125
+ /**
126
+ * Present only if the training image assets of the modelId have one or more
127
+ * warnings
128
+ */
129
+ assetsWarnings?: Array<ScoreRetrieveTrainingDatasetResponse.AssetsWarning>;
130
+ }
131
+ export declare namespace ScoreRetrieveTrainingDatasetResponse {
132
+ /**
133
+ * Different components used to compute the final score
134
+ */
135
+ interface Details {
136
+ /**
137
+ * For each couple of assets in the training dataset, the distance between the
138
+ * captions
139
+ */
140
+ assetCouplesCaptionsDistance: Array<Details.AssetCouplesCaptionsDistance>;
141
+ /**
142
+ * For each couple of assets in the training dataset, the similarity between the
143
+ * assets
144
+ */
145
+ assetCouplesSimilarity: Array<Details.AssetCouplesSimilarity>;
146
+ /**
147
+ * For each asset, the similarity with the model's embedding (excluding the current
148
+ * asset)
149
+ */
150
+ assetsEmbeddingSimilarity: Array<Details.AssetsEmbeddingSimilarity>;
151
+ /**
152
+ * The min, mean, median of the assetsEmbeddingSimilarity
153
+ */
154
+ assetsSimilarity: Details.AssetsSimilarity;
155
+ /**
156
+ * The min, mean, median of the assetCouplesCaptionsDistance
157
+ */
158
+ couplesCaptionsDistance: Details.CouplesCaptionsDistance;
159
+ /**
160
+ * The min, mean, median of the assetCouplesSimilarity
161
+ */
162
+ couplesSimilarity: Details.CouplesSimilarity;
163
+ /**
164
+ * Takes into account all missing data and warnings to compute a metadata score
165
+ */
166
+ metadataScore: number;
167
+ }
168
+ namespace Details {
169
+ interface AssetCouplesCaptionsDistance {
170
+ /**
171
+ * The couple of AssetIds (example: ['asset_GTrL3mq4SXWyMxkOHRxlpw',
172
+ * 'asset_6VrLs8nC1DHWCfKGaVne0gBn'])
173
+ */
174
+ couple: Array<string>;
175
+ /**
176
+ * The Dice-Sørensen distance between the captions of the assetIds of the couple.
177
+ */
178
+ distance: number;
179
+ }
180
+ interface AssetCouplesSimilarity {
181
+ /**
182
+ * The couple of AssetIds (example: ['asset_GTrL3mq4SXWyMxkOHRxlpw',
183
+ * 'asset_6VrLs8nC1DHWCfKGaVne0gBn'])
184
+ */
185
+ couple: Array<string>;
186
+ /**
187
+ * The cosine similarity between the assetIds of the couple.
188
+ *
189
+ * The value is a number between -1 and 1. The higher the value, the more similar
190
+ * the assets are to each other
191
+ */
192
+ similarity: number;
193
+ }
194
+ interface AssetsEmbeddingSimilarity {
195
+ /**
196
+ * The AssetId associated with their similarity (example:
197
+ * "asset_GTrL3mq4SXWyMxkOHRxlpw")
198
+ */
199
+ assetId: string;
200
+ /**
201
+ * The cosine similarity between the assetId and the model's embedding minus the
202
+ * asset's embedding
203
+ *
204
+ * The value is a number between -1 and 1. The higher the value, the more similar
205
+ * the asset is to the model's embedding
206
+ */
207
+ similarity: number;
208
+ }
209
+ /**
210
+ * The min, mean, median of the assetsEmbeddingSimilarity
211
+ */
212
+ interface AssetsSimilarity {
213
+ mean: number;
214
+ median: number;
215
+ min: number;
216
+ }
217
+ /**
218
+ * The min, mean, median of the assetCouplesCaptionsDistance
219
+ */
220
+ interface CouplesCaptionsDistance {
221
+ mean: number;
222
+ median: number;
223
+ min: number;
224
+ }
225
+ /**
226
+ * The min, mean, median of the assetCouplesSimilarity
227
+ */
228
+ interface CouplesSimilarity {
229
+ mean: number;
230
+ median: number;
231
+ min: number;
232
+ }
233
+ }
234
+ interface AssetCouplesWarning {
235
+ /**
236
+ * The couple of AssetIds (example: ['asset_GTrL3mq4SXWyMxkOHRxlpw',
237
+ * 'asset_6VrLs8nC1DHWCfKGaVne0gBn'])
238
+ */
239
+ couple: Array<string>;
240
+ /**
241
+ * An indicative message concerning the couple of assets
242
+ */
243
+ message: Array<'Captions are identical' | 'Captions are too close' | 'Empty caption' | 'Missing caption' | 'Missing metadata' | 'Same asset' | 'Similarity is too high' | 'Similarity with other assets is too low' | 'Width and height must be larger than 1024'>;
244
+ }
245
+ interface AssetsWarning {
246
+ /**
247
+ * The AssetId which has a warning (example: "asset_GTrL3mq4SXWyMxkOHRxlpw")
248
+ */
249
+ assetId: string;
250
+ /**
251
+ * An indicative message concerning the asset
252
+ */
253
+ message: Array<'Captions are identical' | 'Captions are too close' | 'Empty caption' | 'Missing caption' | 'Missing metadata' | 'Same asset' | 'Similarity is too high' | 'Similarity with other assets is too low' | 'Width and height must be larger than 1024'>;
254
+ }
255
+ }
256
+ export interface ScoreRetrievePromptParams {
257
+ /**
258
+ * The projectId used for ownership resource management. Either to assert ownership
259
+ * or to set the owner of the resource(s)
260
+ */
261
+ projectId?: string;
262
+ /**
263
+ * The prompt to score against the model. Required — the call returns 400 without
264
+ * it.
265
+ */
266
+ prompt?: string;
267
+ }
268
+ export interface ScoreRetrieveTrainingDatasetParams {
269
+ /**
270
+ * The projectId used for ownership resource management. Either to assert ownership
271
+ * or to set the owner of the resource(s)
272
+ */
273
+ projectId?: string;
274
+ }
275
+ export declare namespace Scores {
276
+ export { type ScoreRetrievePromptResponse as ScoreRetrievePromptResponse, type ScoreRetrieveTrainingDatasetResponse as ScoreRetrieveTrainingDatasetResponse, type ScoreRetrievePromptParams as ScoreRetrievePromptParams, type ScoreRetrieveTrainingDatasetParams as ScoreRetrieveTrainingDatasetParams, };
277
+ }
278
+ //# sourceMappingURL=scores.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scores.d.ts","sourceRoot":"","sources":["../../src/resources/models/scores.ts"],"names":[],"mappings":"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"}
@@ -0,0 +1,29 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.Scores = void 0;
5
+ const resource_1 = require("../../core/resource.js");
6
+ const path_1 = require("../../internal/utils/path.js");
7
+ const values_1 = require("../../internal/utils/values.js");
8
+ class Scores extends resource_1.APIResource {
9
+ /**
10
+ * Get the prompt scores for the given `modelId`
11
+ */
12
+ retrievePrompt(modelID, query = {}, options) {
13
+ return this._client.get((0, path_1.path) `/models/${modelID}/scores/prompt`, {
14
+ ...options,
15
+ query: { ...query, ...(0, values_1.omitUndefined)(options?.query) },
16
+ });
17
+ }
18
+ /**
19
+ * Get the training dataset scores for the given `modelId`
20
+ */
21
+ retrieveTrainingDataset(modelID, query = {}, options) {
22
+ return this._client.get((0, path_1.path) `/models/${modelID}/scores/training-dataset`, {
23
+ ...options,
24
+ query: { ...query, ...(0, values_1.omitUndefined)(options?.query) },
25
+ });
26
+ }
27
+ }
28
+ exports.Scores = Scores;
29
+ //# sourceMappingURL=scores.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scores.js","sourceRoot":"","sources":["../../src/resources/models/scores.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,uDAAiD;AACjD,2DAA4D;AAE5D,MAAa,MAAO,SAAQ,sBAAW;IACrC;;OAEG;IACH,cAAc,CACZ,OAAe,EACf,QAAsD,EAAE,EACxD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,WAAW,OAAO,gBAAgB,EAAE;YAC9D,GAAG,OAAO;YACV,KAAK,EAAE,EAAE,GAAG,KAAK,EAAE,GAAG,IAAA,sBAAa,EAAC,OAAO,EAAE,KAAK,CAAC,EAAE;SACtD,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,uBAAuB,CACrB,OAAe,EACf,QAA+D,EAAE,EACjE,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,WAAW,OAAO,0BAA0B,EAAE;YACxE,GAAG,OAAO;YACV,KAAK,EAAE,EAAE,GAAG,KAAK,EAAE,GAAG,IAAA,sBAAa,EAAC,OAAO,EAAE,KAAK,CAAC,EAAE;SACtD,CAAC,CAAC;IACL,CAAC;CACF;AA5BD,wBA4BC"}
@@ -0,0 +1,25 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../../core/resource.mjs";
3
+ import { path } from "../../internal/utils/path.mjs";
4
+ import { omitUndefined } from "../../internal/utils/values.mjs";
5
+ export class Scores extends APIResource {
6
+ /**
7
+ * Get the prompt scores for the given `modelId`
8
+ */
9
+ retrievePrompt(modelID, query = {}, options) {
10
+ return this._client.get(path `/models/${modelID}/scores/prompt`, {
11
+ ...options,
12
+ query: { ...query, ...omitUndefined(options?.query) },
13
+ });
14
+ }
15
+ /**
16
+ * Get the training dataset scores for the given `modelId`
17
+ */
18
+ retrieveTrainingDataset(modelID, query = {}, options) {
19
+ return this._client.get(path `/models/${modelID}/scores/training-dataset`, {
20
+ ...options,
21
+ query: { ...query, ...omitUndefined(options?.query) },
22
+ });
23
+ }
24
+ }
25
+ //# sourceMappingURL=scores.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"scores.mjs","sourceRoot":"","sources":["../../src/resources/models/scores.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAGlD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AACjD,OAAO,EAAE,aAAa,EAAE,wCAAoC;AAE5D,MAAM,OAAO,MAAO,SAAQ,WAAW;IACrC;;OAEG;IACH,cAAc,CACZ,OAAe,EACf,QAAsD,EAAE,EACxD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,WAAW,OAAO,gBAAgB,EAAE;YAC9D,GAAG,OAAO;YACV,KAAK,EAAE,EAAE,GAAG,KAAK,EAAE,GAAG,aAAa,CAAC,OAAO,EAAE,KAAK,CAAC,EAAE;SACtD,CAAC,CAAC;IACL,CAAC;IAED;;OAEG;IACH,uBAAuB,CACrB,OAAe,EACf,QAA+D,EAAE,EACjE,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,WAAW,OAAO,0BAA0B,EAAE;YACxE,GAAG,OAAO;YACV,KAAK,EAAE,EAAE,GAAG,KAAK,EAAE,GAAG,aAAa,CAAC,OAAO,EAAE,KAAK,CAAC,EAAE;SACtD,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -72,8 +72,8 @@ export declare namespace TrainActionResponse {
72
72
  */
73
73
  updatedAt: string;
74
74
  /**
75
- * The access restrictions of the model 0: Free plan 25: Creator plan 50: Pro plan
76
- * 75: Team plan 100: Enterprise plan
75
+ * The access restrictions of the model 0: Free plan 25: Starter plan 50: Pro plan
76
+ * 75: Max plan 100: Enterprise plan
77
77
  */
78
78
  accessRestrictions?: 0 | 100 | 25 | 50 | 75;
79
79
  /**
@@ -113,6 +113,11 @@ export declare namespace TrainActionResponse {
113
113
  * it by modelId with GET /models/{modelId}
114
114
  */
115
115
  inputs?: Array<Model.Input>;
116
+ /**
117
+ * The ID of the job that trained the model, returned to the model owner only
118
+ * (example: "job_ocZCnG1Df35XRL1QyCZSRxAG8")
119
+ */
120
+ jobId?: string;
116
121
  /**
117
122
  * The model keyword, this is a legacy parameter, please use conceptPrompt in
118
123
  * parameters
@@ -405,8 +410,7 @@ export declare namespace TrainActionResponse {
405
410
  * - \`ifNotDefined\`: Input is required when another specified input is not
406
411
  * defined
407
412
  * - \`ifDefined\`: Input is required when another specified input is defined
408
- * - \`conditionalValues\`: Input is required when another input has a specific
409
- * value
413
+ * - \`conditional\`: Input is required when other inputs have specific values
410
414
  *
411
415
  * By default, the input is not required.
412
416
  */
@@ -424,8 +428,7 @@ export declare namespace TrainActionResponse {
424
428
  * - \`ifNotDefined\`: Input is required when another specified input is not
425
429
  * defined
426
430
  * - \`ifDefined\`: Input is required when another specified input is defined
427
- * - \`conditionalValues\`: Input is required when another input has a specific
428
- * value
431
+ * - \`conditional\`: Input is required when other inputs have specific values
429
432
  *
430
433
  * By default, the input is not required.
431
434
  */
@@ -435,12 +438,9 @@ export declare namespace TrainActionResponse {
435
438
  */
436
439
  always?: boolean;
437
440
  /**
438
- * Makes this input required when another input has a specific value:
439
- *
440
- * - Key: name of the input to check
441
- * - Value: operation and allowed values that trigger the requirement
441
+ * Makes this input required when other inputs have one of the listed values
442
442
  */
443
- conditionalValues?: unknown;
443
+ conditional?: Required.Conditional;
444
444
  /**
445
445
  * Makes this input required when another input is defined:
446
446
  *
@@ -456,6 +456,24 @@ export declare namespace TrainActionResponse {
456
456
  */
457
457
  ifNotDefined?: unknown;
458
458
  }
459
+ namespace Required {
460
+ /**
461
+ * Makes this input required when other inputs have one of the listed values
462
+ */
463
+ interface Conditional {
464
+ /**
465
+ * The conditions to check:
466
+ *
467
+ * - Key: name of the input to check
468
+ * - Value: values of that input that satisfy the condition
469
+ */
470
+ values: unknown;
471
+ /**
472
+ * How the conditions combine: \`and\` (all must match) or \`or\` (any must match)
473
+ */
474
+ operator?: 'and' | 'or';
475
+ }
476
+ }
459
477
  }
460
478
  /**
461
479
  * The parameters of the model
@@ -1171,7 +1189,7 @@ export declare namespace TrainTriggerResponse {
1171
1189
  /**
1172
1190
  * The type of the job for the node.
1173
1191
  */
1174
- type: 'custom-model' | 'for-each' | 'generate-prompt' | 'list' | 'logic' | 'model' | 'remove-background' | 'transform' | 'user-approval' | 'workflow';
1192
+ type: 'custom-model' | 'for-each' | 'generate-prompt' | 'list' | 'logic' | 'model' | 'remove-background' | 'transform' | 'user-approval' | 'user-selection' | 'workflow';
1175
1193
  /**
1176
1194
  * List of produced assets for this node.
1177
1195
  */
@@ -1196,13 +1214,14 @@ export declare namespace TrainTriggerResponse {
1196
1214
  */
1197
1215
  includeOutputsInWorkflowJob?: true;
1198
1216
  /**
1199
- * The inputs of the node.
1217
+ * The inputs of the node. For a user-selection node, the array input's `min`/`max`
1218
+ * bound how many items the user may pick (defaults: 1 and 100); conditional
1219
+ * connections may be present as additional inputs.
1200
1220
  */
1201
1221
  inputs?: Array<Flow.Input>;
1202
1222
  /**
1203
- * Statically-configured items for a List node. The node outputs this array as-is
1204
- * when executed. Only available for List nodes. The values can be strings,
1205
- * numbers, or asset IDs.
1223
+ * Statically-configured items for a List node, or the frozen candidate list of a
1224
+ * UserSelection node. The values can be strings, numbers, or asset IDs.
1206
1225
  */
1207
1226
  items?: Array<string>;
1208
1227
  /**
@@ -1403,8 +1422,7 @@ export declare namespace TrainTriggerResponse {
1403
1422
  * - \`ifNotDefined\`: Input is required when another specified input is not
1404
1423
  * defined
1405
1424
  * - \`ifDefined\`: Input is required when another specified input is defined
1406
- * - \`conditionalValues\`: Input is required when another input has a specific
1407
- * value
1425
+ * - \`conditional\`: Input is required when other inputs have specific values
1408
1426
  *
1409
1427
  * By default, the input is not required.
1410
1428
  */
@@ -1565,8 +1583,7 @@ export declare namespace TrainTriggerResponse {
1565
1583
  * - \`ifNotDefined\`: Input is required when another specified input is not
1566
1584
  * defined
1567
1585
  * - \`ifDefined\`: Input is required when another specified input is defined
1568
- * - \`conditionalValues\`: Input is required when another input has a specific
1569
- * value
1586
+ * - \`conditional\`: Input is required when other inputs have specific values
1570
1587
  *
1571
1588
  * By default, the input is not required.
1572
1589
  */
@@ -1616,8 +1633,7 @@ export declare namespace TrainTriggerResponse {
1616
1633
  * - \`ifNotDefined\`: Input is required when another specified input is not
1617
1634
  * defined
1618
1635
  * - \`ifDefined\`: Input is required when another specified input is defined
1619
- * - \`conditionalValues\`: Input is required when another input has a specific
1620
- * value
1636
+ * - \`conditional\`: Input is required when other inputs have specific values
1621
1637
  *
1622
1638
  * By default, the input is not required.
1623
1639
  */
@@ -1627,12 +1643,9 @@ export declare namespace TrainTriggerResponse {
1627
1643
  */
1628
1644
  always?: boolean;
1629
1645
  /**
1630
- * Makes this input required when another input has a specific value:
1631
- *
1632
- * - Key: name of the input to check
1633
- * - Value: operation and allowed values that trigger the requirement
1646
+ * Makes this input required when other inputs have one of the listed values
1634
1647
  */
1635
- conditionalValues?: unknown;
1648
+ conditional?: Required.Conditional;
1636
1649
  /**
1637
1650
  * Makes this input required when another input is defined:
1638
1651
  *
@@ -1648,6 +1661,24 @@ export declare namespace TrainTriggerResponse {
1648
1661
  */
1649
1662
  ifNotDefined?: unknown;
1650
1663
  }
1664
+ namespace Required {
1665
+ /**
1666
+ * Makes this input required when other inputs have one of the listed values
1667
+ */
1668
+ interface Conditional {
1669
+ /**
1670
+ * The conditions to check:
1671
+ *
1672
+ * - Key: name of the input to check
1673
+ * - Value: values of that input that satisfy the condition
1674
+ */
1675
+ values: unknown;
1676
+ /**
1677
+ * How the conditions combine: \`and\` (all must match) or \`or\` (any must match)
1678
+ */
1679
+ operator?: 'and' | 'or';
1680
+ }
1681
+ }
1651
1682
  }
1652
1683
  /**
1653
1684
  * The reference to another input or output of the same workflow. Must have at
@@ -1683,8 +1714,7 @@ export declare namespace TrainTriggerResponse {
1683
1714
  * - \`ifNotDefined\`: Input is required when another specified input is not
1684
1715
  * defined
1685
1716
  * - \`ifDefined\`: Input is required when another specified input is defined
1686
- * - \`conditionalValues\`: Input is required when another input has a specific
1687
- * value
1717
+ * - \`conditional\`: Input is required when other inputs have specific values
1688
1718
  *
1689
1719
  * By default, the input is not required.
1690
1720
  */
@@ -1694,12 +1724,9 @@ export declare namespace TrainTriggerResponse {
1694
1724
  */
1695
1725
  always?: boolean;
1696
1726
  /**
1697
- * Makes this input required when another input has a specific value:
1698
- *
1699
- * - Key: name of the input to check
1700
- * - Value: operation and allowed values that trigger the requirement
1727
+ * Makes this input required when other inputs have one of the listed values
1701
1728
  */
1702
- conditionalValues?: unknown;
1729
+ conditional?: Required.Conditional;
1703
1730
  /**
1704
1731
  * Makes this input required when another input is defined:
1705
1732
  *
@@ -1715,6 +1742,24 @@ export declare namespace TrainTriggerResponse {
1715
1742
  */
1716
1743
  ifNotDefined?: unknown;
1717
1744
  }
1745
+ namespace Required {
1746
+ /**
1747
+ * Makes this input required when other inputs have one of the listed values
1748
+ */
1749
+ interface Conditional {
1750
+ /**
1751
+ * The conditions to check:
1752
+ *
1753
+ * - Key: name of the input to check
1754
+ * - Value: values of that input that satisfy the condition
1755
+ */
1756
+ values: unknown;
1757
+ /**
1758
+ * How the conditions combine: \`and\` (all must match) or \`or\` (any must match)
1759
+ */
1760
+ operator?: 'and' | 'or';
1761
+ }
1762
+ }
1718
1763
  }
1719
1764
  /**
1720
1765
  * The logic of the node. Only available for logic nodes.
@@ -1862,8 +1907,8 @@ export declare namespace TrainTriggerResponse {
1862
1907
  */
1863
1908
  updatedAt: string;
1864
1909
  /**
1865
- * The access restrictions of the model 0: Free plan 25: Creator plan 50: Pro plan
1866
- * 75: Team plan 100: Enterprise plan
1910
+ * The access restrictions of the model 0: Free plan 25: Starter plan 50: Pro plan
1911
+ * 75: Max plan 100: Enterprise plan
1867
1912
  */
1868
1913
  accessRestrictions?: 0 | 100 | 25 | 50 | 75;
1869
1914
  /**
@@ -1903,6 +1948,11 @@ export declare namespace TrainTriggerResponse {
1903
1948
  * it by modelId with GET /models/{modelId}
1904
1949
  */
1905
1950
  inputs?: Array<Model.Input>;
1951
+ /**
1952
+ * The ID of the job that trained the model, returned to the model owner only
1953
+ * (example: "job_ocZCnG1Df35XRL1QyCZSRxAG8")
1954
+ */
1955
+ jobId?: string;
1906
1956
  /**
1907
1957
  * The model keyword, this is a legacy parameter, please use conceptPrompt in
1908
1958
  * parameters
@@ -2195,8 +2245,7 @@ export declare namespace TrainTriggerResponse {
2195
2245
  * - \`ifNotDefined\`: Input is required when another specified input is not
2196
2246
  * defined
2197
2247
  * - \`ifDefined\`: Input is required when another specified input is defined
2198
- * - \`conditionalValues\`: Input is required when another input has a specific
2199
- * value
2248
+ * - \`conditional\`: Input is required when other inputs have specific values
2200
2249
  *
2201
2250
  * By default, the input is not required.
2202
2251
  */
@@ -2214,8 +2263,7 @@ export declare namespace TrainTriggerResponse {
2214
2263
  * - \`ifNotDefined\`: Input is required when another specified input is not
2215
2264
  * defined
2216
2265
  * - \`ifDefined\`: Input is required when another specified input is defined
2217
- * - \`conditionalValues\`: Input is required when another input has a specific
2218
- * value
2266
+ * - \`conditional\`: Input is required when other inputs have specific values
2219
2267
  *
2220
2268
  * By default, the input is not required.
2221
2269
  */
@@ -2225,12 +2273,9 @@ export declare namespace TrainTriggerResponse {
2225
2273
  */
2226
2274
  always?: boolean;
2227
2275
  /**
2228
- * Makes this input required when another input has a specific value:
2229
- *
2230
- * - Key: name of the input to check
2231
- * - Value: operation and allowed values that trigger the requirement
2276
+ * Makes this input required when other inputs have one of the listed values
2232
2277
  */
2233
- conditionalValues?: unknown;
2278
+ conditional?: Required.Conditional;
2234
2279
  /**
2235
2280
  * Makes this input required when another input is defined:
2236
2281
  *
@@ -2246,6 +2291,24 @@ export declare namespace TrainTriggerResponse {
2246
2291
  */
2247
2292
  ifNotDefined?: unknown;
2248
2293
  }
2294
+ namespace Required {
2295
+ /**
2296
+ * Makes this input required when other inputs have one of the listed values
2297
+ */
2298
+ interface Conditional {
2299
+ /**
2300
+ * The conditions to check:
2301
+ *
2302
+ * - Key: name of the input to check
2303
+ * - Value: values of that input that satisfy the condition
2304
+ */
2305
+ values: unknown;
2306
+ /**
2307
+ * How the conditions combine: \`and\` (all must match) or \`or\` (any must match)
2308
+ */
2309
+ operator?: 'and' | 'or';
2310
+ }
2311
+ }
2249
2312
  }
2250
2313
  /**
2251
2314
  * The parameters of the model