@scenario-labs/sdk 3.1.0 → 3.3.0

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 (529) hide show
  1. package/CHANGELOG.md +119 -0
  2. package/client.d.mts +22 -7
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +22 -7
  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/generate.js +7 -7
  27. package/lib/generate.js.map +1 -1
  28. package/lib/generate.mjs +7 -7
  29. package/lib/generate.mjs.map +1 -1
  30. package/lib/job.d.mts +1 -1
  31. package/lib/job.d.mts.map +1 -1
  32. package/lib/job.d.ts +1 -1
  33. package/lib/job.d.ts.map +1 -1
  34. package/lib/job.js +5 -6
  35. package/lib/job.js.map +1 -1
  36. package/lib/job.mjs +6 -7
  37. package/lib/job.mjs.map +1 -1
  38. package/lib/models.d.mts.map +1 -1
  39. package/lib/models.d.ts.map +1 -1
  40. package/lib/models.js +7 -5
  41. package/lib/models.js.map +1 -1
  42. package/lib/models.mjs +8 -6
  43. package/lib/models.mjs.map +1 -1
  44. package/lib/query.d.mts +21 -0
  45. package/lib/query.d.mts.map +1 -0
  46. package/lib/query.d.ts +21 -0
  47. package/lib/query.d.ts.map +1 -0
  48. package/lib/query.js +36 -0
  49. package/lib/query.js.map +1 -0
  50. package/lib/query.mjs +33 -0
  51. package/lib/query.mjs.map +1 -0
  52. package/lib/scenario.d.mts +3 -0
  53. package/lib/scenario.d.mts.map +1 -1
  54. package/lib/scenario.d.ts +3 -0
  55. package/lib/scenario.d.ts.map +1 -1
  56. package/lib/scenario.js +6 -0
  57. package/lib/scenario.js.map +1 -1
  58. package/lib/scenario.mjs +6 -0
  59. package/lib/scenario.mjs.map +1 -1
  60. package/lib/scope.d.mts +27 -7
  61. package/lib/scope.d.mts.map +1 -1
  62. package/lib/scope.d.ts +27 -7
  63. package/lib/scope.d.ts.map +1 -1
  64. package/lib/scope.js +40 -7
  65. package/lib/scope.js.map +1 -1
  66. package/lib/scope.mjs +37 -7
  67. package/lib/scope.mjs.map +1 -1
  68. package/lib/upload.d.mts +1 -1
  69. package/lib/upload.d.mts.map +1 -1
  70. package/lib/upload.d.ts +1 -1
  71. package/lib/upload.d.ts.map +1 -1
  72. package/lib/upload.js +6 -7
  73. package/lib/upload.js.map +1 -1
  74. package/lib/upload.mjs +7 -8
  75. package/lib/upload.mjs.map +1 -1
  76. package/lib/workflow.d.mts.map +1 -1
  77. package/lib/workflow.d.ts.map +1 -1
  78. package/lib/workflow.js +8 -6
  79. package/lib/workflow.js.map +1 -1
  80. package/lib/workflow.mjs +9 -7
  81. package/lib/workflow.mjs.map +1 -1
  82. package/lib/workflow_converter.d.mts +6 -0
  83. package/lib/workflow_converter.d.mts.map +1 -1
  84. package/lib/workflow_converter.d.ts +6 -0
  85. package/lib/workflow_converter.d.ts.map +1 -1
  86. package/lib/workflow_converter.js +99 -12
  87. package/lib/workflow_converter.js.map +1 -1
  88. package/lib/workflow_converter.mjs +99 -12
  89. package/lib/workflow_converter.mjs.map +1 -1
  90. package/lib/workflow_validator.d.mts +8 -1
  91. package/lib/workflow_validator.d.mts.map +1 -1
  92. package/lib/workflow_validator.d.ts +8 -1
  93. package/lib/workflow_validator.d.ts.map +1 -1
  94. package/lib/workflow_validator.js +154 -1
  95. package/lib/workflow_validator.js.map +1 -1
  96. package/lib/workflow_validator.mjs +154 -1
  97. package/lib/workflow_validator.mjs.map +1 -1
  98. package/package.json +1 -1
  99. package/resources/assets/assets.d.mts +304 -122
  100. package/resources/assets/assets.d.mts.map +1 -1
  101. package/resources/assets/assets.d.ts +304 -122
  102. package/resources/assets/assets.d.ts.map +1 -1
  103. package/resources/assets/assets.js +34 -11
  104. package/resources/assets/assets.js.map +1 -1
  105. package/resources/assets/assets.mjs +34 -11
  106. package/resources/assets/assets.mjs.map +1 -1
  107. package/resources/assets/download.d.mts +39 -5
  108. package/resources/assets/download.d.mts.map +1 -1
  109. package/resources/assets/download.d.ts +39 -5
  110. package/resources/assets/download.d.ts.map +1 -1
  111. package/resources/assets/download.js +16 -4
  112. package/resources/assets/download.js.map +1 -1
  113. package/resources/assets/download.mjs +16 -4
  114. package/resources/assets/download.mjs.map +1 -1
  115. package/resources/collections/assets.d.mts.map +1 -1
  116. package/resources/collections/assets.d.ts.map +1 -1
  117. package/resources/collections/assets.js +3 -2
  118. package/resources/collections/assets.js.map +1 -1
  119. package/resources/collections/assets.mjs +3 -2
  120. package/resources/collections/assets.mjs.map +1 -1
  121. package/resources/collections/collections.d.mts.map +1 -1
  122. package/resources/collections/collections.d.ts.map +1 -1
  123. package/resources/collections/collections.js +20 -5
  124. package/resources/collections/collections.js.map +1 -1
  125. package/resources/collections/collections.mjs +20 -5
  126. package/resources/collections/collections.mjs.map +1 -1
  127. package/resources/collections/models.d.mts.map +1 -1
  128. package/resources/collections/models.d.ts.map +1 -1
  129. package/resources/collections/models.js +3 -2
  130. package/resources/collections/models.js.map +1 -1
  131. package/resources/collections/models.mjs +3 -2
  132. package/resources/collections/models.mjs.map +1 -1
  133. package/resources/generate.d.mts +2089 -437
  134. package/resources/generate.d.mts.map +1 -1
  135. package/resources/generate.d.ts +2089 -437
  136. package/resources/generate.d.ts.map +1 -1
  137. package/resources/generate.js +62 -9
  138. package/resources/generate.js.map +1 -1
  139. package/resources/generate.mjs +62 -9
  140. package/resources/generate.mjs.map +1 -1
  141. package/resources/index.d.mts +6 -3
  142. package/resources/index.d.mts.map +1 -1
  143. package/resources/index.d.ts +6 -3
  144. package/resources/index.d.ts.map +1 -1
  145. package/resources/index.js +7 -1
  146. package/resources/index.js.map +1 -1
  147. package/resources/index.mjs +3 -0
  148. package/resources/index.mjs.map +1 -1
  149. package/resources/jobs.d.mts +253 -120
  150. package/resources/jobs.d.mts.map +1 -1
  151. package/resources/jobs.d.ts +253 -120
  152. package/resources/jobs.d.ts.map +1 -1
  153. package/resources/jobs.js +13 -5
  154. package/resources/jobs.js.map +1 -1
  155. package/resources/jobs.mjs +13 -5
  156. package/resources/jobs.mjs.map +1 -1
  157. package/resources/models/description.d.mts +18 -0
  158. package/resources/models/description.d.mts.map +1 -1
  159. package/resources/models/description.d.ts +18 -0
  160. package/resources/models/description.d.ts.map +1 -1
  161. package/resources/models/description.js +6 -2
  162. package/resources/models/description.js.map +1 -1
  163. package/resources/models/description.mjs +6 -2
  164. package/resources/models/description.mjs.map +1 -1
  165. package/resources/models/examples.d.mts +198 -92
  166. package/resources/models/examples.d.mts.map +1 -1
  167. package/resources/models/examples.d.ts +198 -92
  168. package/resources/models/examples.d.ts.map +1 -1
  169. package/resources/models/examples.js +6 -2
  170. package/resources/models/examples.js.map +1 -1
  171. package/resources/models/examples.mjs +6 -2
  172. package/resources/models/examples.mjs.map +1 -1
  173. package/resources/models/index.d.mts +3 -0
  174. package/resources/models/index.d.mts.map +1 -1
  175. package/resources/models/index.d.ts +3 -0
  176. package/resources/models/index.d.ts.map +1 -1
  177. package/resources/models/index.js +7 -1
  178. package/resources/models/index.js.map +1 -1
  179. package/resources/models/index.mjs +3 -0
  180. package/resources/models/index.mjs.map +1 -1
  181. package/resources/models/models.d.mts +346 -112
  182. package/resources/models/models.d.mts.map +1 -1
  183. package/resources/models/models.d.ts +346 -112
  184. package/resources/models/models.d.ts.map +1 -1
  185. package/resources/models/models.js +57 -12
  186. package/resources/models/models.js.map +1 -1
  187. package/resources/models/models.mjs +57 -12
  188. package/resources/models/models.mjs.map +1 -1
  189. package/resources/models/presets.d.mts +1016 -0
  190. package/resources/models/presets.d.mts.map +1 -0
  191. package/resources/models/presets.d.ts +1016 -0
  192. package/resources/models/presets.d.ts.map +1 -0
  193. package/resources/models/presets.js +52 -0
  194. package/resources/models/presets.js.map +1 -0
  195. package/resources/models/presets.mjs +48 -0
  196. package/resources/models/presets.mjs.map +1 -0
  197. package/resources/models/prompt-guide.d.mts +64 -0
  198. package/resources/models/prompt-guide.d.mts.map +1 -0
  199. package/resources/models/prompt-guide.d.ts +64 -0
  200. package/resources/models/prompt-guide.d.ts.map +1 -0
  201. package/resources/models/prompt-guide.js +31 -0
  202. package/resources/models/prompt-guide.js.map +1 -0
  203. package/resources/models/prompt-guide.mjs +27 -0
  204. package/resources/models/prompt-guide.mjs.map +1 -0
  205. package/resources/models/scores.d.mts +278 -0
  206. package/resources/models/scores.d.mts.map +1 -0
  207. package/resources/models/scores.d.ts +278 -0
  208. package/resources/models/scores.d.ts.map +1 -0
  209. package/resources/models/scores.js +29 -0
  210. package/resources/models/scores.js.map +1 -0
  211. package/resources/models/scores.mjs +25 -0
  212. package/resources/models/scores.mjs.map +1 -0
  213. package/resources/models/train.d.mts +186 -83
  214. package/resources/models/train.d.mts.map +1 -1
  215. package/resources/models/train.d.ts +186 -83
  216. package/resources/models/train.d.ts.map +1 -1
  217. package/resources/models/train.js +4 -3
  218. package/resources/models/train.js.map +1 -1
  219. package/resources/models/train.mjs +4 -3
  220. package/resources/models/train.mjs.map +1 -1
  221. package/resources/models/training-images.d.mts.map +1 -1
  222. package/resources/models/training-images.d.ts.map +1 -1
  223. package/resources/models/training-images.js +5 -4
  224. package/resources/models/training-images.js.map +1 -1
  225. package/resources/models/training-images.mjs +5 -4
  226. package/resources/models/training-images.mjs.map +1 -1
  227. package/resources/projects/api-keys.d.mts +54 -0
  228. package/resources/projects/api-keys.d.mts.map +1 -0
  229. package/resources/projects/api-keys.d.ts +54 -0
  230. package/resources/projects/api-keys.d.ts.map +1 -0
  231. package/resources/projects/api-keys.js +23 -0
  232. package/resources/projects/api-keys.js.map +1 -0
  233. package/resources/projects/api-keys.mjs +19 -0
  234. package/resources/projects/api-keys.mjs.map +1 -0
  235. package/resources/projects/brief.d.mts +149 -0
  236. package/resources/projects/brief.d.mts.map +1 -0
  237. package/resources/projects/brief.d.ts +149 -0
  238. package/resources/projects/brief.d.ts.map +1 -0
  239. package/resources/projects/brief.js +28 -0
  240. package/resources/projects/brief.js.map +1 -0
  241. package/resources/projects/brief.mjs +24 -0
  242. package/resources/projects/brief.mjs.map +1 -0
  243. package/resources/projects/index.d.mts +9 -0
  244. package/resources/projects/index.d.mts.map +1 -0
  245. package/resources/projects/index.d.ts +9 -0
  246. package/resources/projects/index.d.ts.map +1 -0
  247. package/resources/projects/index.js +21 -0
  248. package/resources/projects/index.js.map +1 -0
  249. package/resources/projects/index.mjs +10 -0
  250. package/resources/projects/index.mjs.map +1 -0
  251. package/resources/projects/instructions.d.mts +102 -0
  252. package/resources/projects/instructions.d.mts.map +1 -0
  253. package/resources/projects/instructions.d.ts +102 -0
  254. package/resources/projects/instructions.d.ts.map +1 -0
  255. package/resources/projects/instructions.js +24 -0
  256. package/resources/projects/instructions.js.map +1 -0
  257. package/resources/projects/instructions.mjs +20 -0
  258. package/resources/projects/instructions.mjs.map +1 -0
  259. package/resources/projects/members.d.mts +788 -0
  260. package/resources/projects/members.d.mts.map +1 -0
  261. package/resources/projects/members.d.ts +788 -0
  262. package/resources/projects/members.d.ts.map +1 -0
  263. package/resources/projects/members.js +30 -0
  264. package/resources/projects/members.js.map +1 -0
  265. package/resources/projects/members.mjs +26 -0
  266. package/resources/projects/members.mjs.map +1 -0
  267. package/resources/projects/memory.d.mts +102 -0
  268. package/resources/projects/memory.d.mts.map +1 -0
  269. package/resources/projects/memory.d.ts +102 -0
  270. package/resources/projects/memory.d.ts.map +1 -0
  271. package/resources/projects/memory.js +24 -0
  272. package/resources/projects/memory.js.map +1 -0
  273. package/resources/projects/memory.mjs +20 -0
  274. package/resources/projects/memory.mjs.map +1 -0
  275. package/resources/projects/projects.d.mts +1129 -0
  276. package/resources/projects/projects.d.mts.map +1 -0
  277. package/resources/projects/projects.d.ts +1129 -0
  278. package/resources/projects/projects.d.ts.map +1 -0
  279. package/resources/projects/projects.js +79 -0
  280. package/resources/projects/projects.js.map +1 -0
  281. package/resources/projects/projects.mjs +74 -0
  282. package/resources/projects/projects.mjs.map +1 -0
  283. package/resources/projects/watermark.d.mts +459 -0
  284. package/resources/projects/watermark.d.mts.map +1 -0
  285. package/resources/projects/watermark.d.ts +459 -0
  286. package/resources/projects/watermark.d.ts.map +1 -0
  287. package/resources/projects/watermark.js +46 -0
  288. package/resources/projects/watermark.js.map +1 -0
  289. package/resources/projects/watermark.mjs +42 -0
  290. package/resources/projects/watermark.mjs.map +1 -0
  291. package/resources/projects/webhook-endpoints/events.d.mts +87 -0
  292. package/resources/projects/webhook-endpoints/events.d.mts.map +1 -0
  293. package/resources/projects/webhook-endpoints/events.d.ts +87 -0
  294. package/resources/projects/webhook-endpoints/events.d.ts.map +1 -0
  295. package/resources/projects/webhook-endpoints/events.js +28 -0
  296. package/resources/projects/webhook-endpoints/events.js.map +1 -0
  297. package/resources/projects/webhook-endpoints/events.mjs +24 -0
  298. package/resources/projects/webhook-endpoints/events.mjs.map +1 -0
  299. package/resources/projects/webhook-endpoints/index.d.mts +3 -0
  300. package/resources/projects/webhook-endpoints/index.d.mts.map +1 -0
  301. package/resources/projects/webhook-endpoints/index.d.ts +3 -0
  302. package/resources/projects/webhook-endpoints/index.d.ts.map +1 -0
  303. package/resources/projects/webhook-endpoints/index.js +9 -0
  304. package/resources/projects/webhook-endpoints/index.js.map +1 -0
  305. package/resources/projects/webhook-endpoints/index.mjs +4 -0
  306. package/resources/projects/webhook-endpoints/index.mjs.map +1 -0
  307. package/resources/projects/webhook-endpoints/webhook-endpoints.d.mts +249 -0
  308. package/resources/projects/webhook-endpoints/webhook-endpoints.d.mts.map +1 -0
  309. package/resources/projects/webhook-endpoints/webhook-endpoints.d.ts +249 -0
  310. package/resources/projects/webhook-endpoints/webhook-endpoints.d.ts.map +1 -0
  311. package/resources/projects/webhook-endpoints/webhook-endpoints.js +44 -0
  312. package/resources/projects/webhook-endpoints/webhook-endpoints.js.map +1 -0
  313. package/resources/projects/webhook-endpoints/webhook-endpoints.mjs +39 -0
  314. package/resources/projects/webhook-endpoints/webhook-endpoints.mjs.map +1 -0
  315. package/resources/projects/webhook-endpoints.d.mts +2 -0
  316. package/resources/projects/webhook-endpoints.d.mts.map +1 -0
  317. package/resources/projects/webhook-endpoints.d.ts +2 -0
  318. package/resources/projects/webhook-endpoints.d.ts.map +1 -0
  319. package/resources/projects/webhook-endpoints.js +6 -0
  320. package/resources/projects/webhook-endpoints.js.map +1 -0
  321. package/resources/projects/webhook-endpoints.mjs +3 -0
  322. package/resources/projects/webhook-endpoints.mjs.map +1 -0
  323. package/resources/projects.d.mts +2 -0
  324. package/resources/projects.d.mts.map +1 -0
  325. package/resources/projects.d.ts +2 -0
  326. package/resources/projects.d.ts.map +1 -0
  327. package/resources/projects.js +6 -0
  328. package/resources/projects.js.map +1 -0
  329. package/resources/projects.mjs +3 -0
  330. package/resources/projects.mjs.map +1 -0
  331. package/resources/recommendations.d.mts +1107 -0
  332. package/resources/recommendations.d.mts.map +1 -0
  333. package/resources/recommendations.d.ts +1107 -0
  334. package/resources/recommendations.d.ts.map +1 -0
  335. package/resources/recommendations.js +17 -0
  336. package/resources/recommendations.js.map +1 -0
  337. package/resources/recommendations.mjs +13 -0
  338. package/resources/recommendations.mjs.map +1 -0
  339. package/resources/search.d.mts +168 -5
  340. package/resources/search.d.mts.map +1 -1
  341. package/resources/search.d.ts +168 -5
  342. package/resources/search.d.ts.map +1 -1
  343. package/resources/search.js +17 -3
  344. package/resources/search.js.map +1 -1
  345. package/resources/search.mjs +17 -3
  346. package/resources/search.mjs.map +1 -1
  347. package/resources/tags.d.mts.map +1 -1
  348. package/resources/tags.d.ts.map +1 -1
  349. package/resources/tags.js +5 -1
  350. package/resources/tags.js.map +1 -1
  351. package/resources/tags.mjs +5 -1
  352. package/resources/tags.mjs.map +1 -1
  353. package/resources/teams/brief.d.mts +149 -0
  354. package/resources/teams/brief.d.mts.map +1 -0
  355. package/resources/teams/brief.d.ts +149 -0
  356. package/resources/teams/brief.d.ts.map +1 -0
  357. package/resources/teams/brief.js +28 -0
  358. package/resources/teams/brief.js.map +1 -0
  359. package/resources/teams/brief.mjs +24 -0
  360. package/resources/teams/brief.mjs.map +1 -0
  361. package/resources/teams/index.d.mts +7 -0
  362. package/resources/teams/index.d.mts.map +1 -0
  363. package/resources/teams/index.d.ts +7 -0
  364. package/resources/teams/index.d.ts.map +1 -0
  365. package/resources/teams/index.js +17 -0
  366. package/resources/teams/index.js.map +1 -0
  367. package/resources/teams/index.mjs +8 -0
  368. package/resources/teams/index.mjs.map +1 -0
  369. package/resources/teams/ip-filters.d.mts +115 -0
  370. package/resources/teams/ip-filters.d.mts.map +1 -0
  371. package/resources/teams/ip-filters.d.ts +115 -0
  372. package/resources/teams/ip-filters.d.ts.map +1 -0
  373. package/resources/teams/ip-filters.js +45 -0
  374. package/resources/teams/ip-filters.js.map +1 -0
  375. package/resources/teams/ip-filters.mjs +41 -0
  376. package/resources/teams/ip-filters.mjs.map +1 -0
  377. package/resources/teams/members.d.mts +204 -0
  378. package/resources/teams/members.d.mts.map +1 -0
  379. package/resources/teams/members.d.ts +204 -0
  380. package/resources/teams/members.d.ts.map +1 -0
  381. package/resources/teams/members.js +30 -0
  382. package/resources/teams/members.js.map +1 -0
  383. package/resources/teams/members.mjs +26 -0
  384. package/resources/teams/members.mjs.map +1 -0
  385. package/resources/teams/teams.d.mts +878 -0
  386. package/resources/teams/teams.d.mts.map +1 -0
  387. package/resources/teams/teams.d.ts +878 -0
  388. package/resources/teams/teams.d.ts.map +1 -0
  389. package/resources/teams/teams.js +66 -0
  390. package/resources/teams/teams.js.map +1 -0
  391. package/resources/teams/teams.mjs +61 -0
  392. package/resources/teams/teams.mjs.map +1 -0
  393. package/resources/teams/watermark.d.mts +459 -0
  394. package/resources/teams/watermark.d.mts.map +1 -0
  395. package/resources/teams/watermark.d.ts +459 -0
  396. package/resources/teams/watermark.d.ts.map +1 -0
  397. package/resources/teams/watermark.js +46 -0
  398. package/resources/teams/watermark.js.map +1 -0
  399. package/resources/teams/watermark.mjs +42 -0
  400. package/resources/teams/watermark.mjs.map +1 -0
  401. package/resources/teams/webhook-endpoints/events.d.mts +87 -0
  402. package/resources/teams/webhook-endpoints/events.d.mts.map +1 -0
  403. package/resources/teams/webhook-endpoints/events.d.ts +87 -0
  404. package/resources/teams/webhook-endpoints/events.d.ts.map +1 -0
  405. package/resources/teams/webhook-endpoints/events.js +28 -0
  406. package/resources/teams/webhook-endpoints/events.js.map +1 -0
  407. package/resources/teams/webhook-endpoints/events.mjs +24 -0
  408. package/resources/teams/webhook-endpoints/events.mjs.map +1 -0
  409. package/resources/teams/webhook-endpoints/index.d.mts +3 -0
  410. package/resources/teams/webhook-endpoints/index.d.mts.map +1 -0
  411. package/resources/teams/webhook-endpoints/index.d.ts +3 -0
  412. package/resources/teams/webhook-endpoints/index.d.ts.map +1 -0
  413. package/resources/teams/webhook-endpoints/index.js +9 -0
  414. package/resources/teams/webhook-endpoints/index.js.map +1 -0
  415. package/resources/teams/webhook-endpoints/index.mjs +4 -0
  416. package/resources/teams/webhook-endpoints/index.mjs.map +1 -0
  417. package/resources/teams/webhook-endpoints/webhook-endpoints.d.mts +250 -0
  418. package/resources/teams/webhook-endpoints/webhook-endpoints.d.mts.map +1 -0
  419. package/resources/teams/webhook-endpoints/webhook-endpoints.d.ts +250 -0
  420. package/resources/teams/webhook-endpoints/webhook-endpoints.d.ts.map +1 -0
  421. package/resources/teams/webhook-endpoints/webhook-endpoints.js +45 -0
  422. package/resources/teams/webhook-endpoints/webhook-endpoints.js.map +1 -0
  423. package/resources/teams/webhook-endpoints/webhook-endpoints.mjs +40 -0
  424. package/resources/teams/webhook-endpoints/webhook-endpoints.mjs.map +1 -0
  425. package/resources/teams/webhook-endpoints.d.mts +2 -0
  426. package/resources/teams/webhook-endpoints.d.mts.map +1 -0
  427. package/resources/teams/webhook-endpoints.d.ts +2 -0
  428. package/resources/teams/webhook-endpoints.d.ts.map +1 -0
  429. package/resources/teams/webhook-endpoints.js +6 -0
  430. package/resources/teams/webhook-endpoints.js.map +1 -0
  431. package/resources/teams/webhook-endpoints.mjs +3 -0
  432. package/resources/teams/webhook-endpoints.mjs.map +1 -0
  433. package/resources/teams.d.mts +2 -0
  434. package/resources/teams.d.mts.map +1 -0
  435. package/resources/teams.d.ts +2 -0
  436. package/resources/teams.d.ts.map +1 -0
  437. package/resources/teams.js +6 -0
  438. package/resources/teams.js.map +1 -0
  439. package/resources/teams.mjs +3 -0
  440. package/resources/teams.mjs.map +1 -0
  441. package/resources/uploads.d.mts +13 -3
  442. package/resources/uploads.d.mts.map +1 -1
  443. package/resources/uploads.d.ts +13 -3
  444. package/resources/uploads.d.ts.map +1 -1
  445. package/resources/uploads.js +16 -4
  446. package/resources/uploads.js.map +1 -1
  447. package/resources/uploads.mjs +16 -4
  448. package/resources/uploads.mjs.map +1 -1
  449. package/resources/usages.d.mts +85 -51
  450. package/resources/usages.d.mts.map +1 -1
  451. package/resources/usages.d.ts +85 -51
  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 +1639 -385
  458. package/resources/workflows.d.mts.map +1 -1
  459. package/resources/workflows.d.ts +1639 -385
  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 +107 -0
  466. package/src/core/pagination.ts +144 -0
  467. package/src/internal/utils/values.ts +10 -0
  468. package/src/lib/generate.ts +7 -7
  469. package/src/lib/job.ts +9 -7
  470. package/src/lib/models.ts +8 -6
  471. package/src/lib/query.ts +42 -0
  472. package/src/lib/scenario.ts +8 -0
  473. package/src/lib/scope.ts +42 -7
  474. package/src/lib/upload.ts +10 -8
  475. package/src/lib/workflow.ts +9 -7
  476. package/src/lib/workflow_converter.ts +126 -12
  477. package/src/lib/workflow_validator.ts +183 -1
  478. package/src/resources/assets/assets.ts +766 -132
  479. package/src/resources/assets/download.ts +61 -9
  480. package/src/resources/collections/assets.ts +3 -2
  481. package/src/resources/collections/collections.ts +20 -5
  482. package/src/resources/collections/models.ts +3 -2
  483. package/src/resources/generate.ts +2935 -512
  484. package/src/resources/index.ts +37 -0
  485. package/src/resources/jobs.ts +277 -121
  486. package/src/resources/models/description.ts +126 -2
  487. package/src/resources/models/examples.ts +318 -92
  488. package/src/resources/models/index.ts +25 -0
  489. package/src/resources/models/models.ts +463 -124
  490. package/src/resources/models/presets.ts +1335 -0
  491. package/src/resources/models/prompt-guide.ts +102 -0
  492. package/src/resources/models/scores.ts +383 -0
  493. package/src/resources/models/train.ts +202 -87
  494. package/src/resources/models/training-images.ts +5 -4
  495. package/src/resources/projects/api-keys.ts +86 -0
  496. package/src/resources/projects/brief.ts +197 -0
  497. package/src/resources/projects/index.ts +71 -0
  498. package/src/resources/projects/instructions.ts +134 -0
  499. package/src/resources/projects/members.ts +958 -0
  500. package/src/resources/projects/memory.ts +134 -0
  501. package/src/resources/projects/projects.ts +1478 -0
  502. package/src/resources/projects/watermark.ts +590 -0
  503. package/src/resources/projects/webhook-endpoints/events.ts +179 -0
  504. package/src/resources/projects/webhook-endpoints/index.ts +19 -0
  505. package/src/resources/projects/webhook-endpoints/webhook-endpoints.ts +452 -0
  506. package/src/resources/projects/webhook-endpoints.ts +3 -0
  507. package/src/resources/projects.ts +3 -0
  508. package/src/resources/recommendations.ts +1502 -0
  509. package/src/resources/search.ts +220 -8
  510. package/src/resources/tags.ts +5 -1
  511. package/src/resources/teams/brief.ts +193 -0
  512. package/src/resources/teams/index.ts +62 -0
  513. package/src/resources/teams/ip-filters.ts +177 -0
  514. package/src/resources/teams/members.ts +282 -0
  515. package/src/resources/teams/teams.ts +1255 -0
  516. package/src/resources/teams/watermark.ts +590 -0
  517. package/src/resources/teams/webhook-endpoints/events.ts +179 -0
  518. package/src/resources/teams/webhook-endpoints/index.ts +19 -0
  519. package/src/resources/teams/webhook-endpoints/webhook-endpoints.ts +453 -0
  520. package/src/resources/teams/webhook-endpoints.ts +3 -0
  521. package/src/resources/teams.ts +3 -0
  522. package/src/resources/uploads.ts +30 -7
  523. package/src/resources/usages.ts +98 -50
  524. package/src/resources/workflows.ts +2053 -434
  525. package/src/version.ts +1 -1
  526. package/version.d.mts +1 -1
  527. package/version.d.ts +1 -1
  528. package/version.js +1 -1
  529. package/version.mjs +1 -1
@@ -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
@@ -326,7 +331,9 @@ export declare namespace TrainActionResponse {
326
331
  * The asset kind of the input. Only taken into account for \`file\` and
327
332
  * \`file_array\` input types. If model provides multiple kinds, the input will be
328
333
  * not able to create the asset on the flight on API side with dataurl without
329
- * data:kind, prefix
334
+ * data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
335
+ * a model does not declare one, \`image\` is returned, which is the kind used at
336
+ * generation time.
330
337
  */
331
338
  kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
332
339
  /**
@@ -349,8 +356,9 @@ export declare namespace TrainActionResponse {
349
356
  */
350
357
  maxDuration?: number;
351
358
  /**
352
- * The maximum allowed length for \`string\` inputs. Also applies to each item in
353
- * \`string_array\`.
359
+ * The maximum allowed length for \`string\` and \`model\` inputs, in characters.
360
+ * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
361
+ * ITEMS instead — the length of each item is not constrained.
354
362
  */
355
363
  maxLength?: number;
356
364
  /**
@@ -364,8 +372,9 @@ export declare namespace TrainActionResponse {
364
372
  */
365
373
  min?: number;
366
374
  /**
367
- * The minimum allowed length for string inputs. Also applies to each item in
368
- * \`string_array\`.
375
+ * The minimum allowed length for \`string\` and \`model\` inputs, in characters.
376
+ * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
377
+ * ITEMS instead — the length of each item is not constrained.
369
378
  */
370
379
  minLength?: number;
371
380
  /**
@@ -401,8 +410,7 @@ export declare namespace TrainActionResponse {
401
410
  * - \`ifNotDefined\`: Input is required when another specified input is not
402
411
  * defined
403
412
  * - \`ifDefined\`: Input is required when another specified input is defined
404
- * - \`conditionalValues\`: Input is required when another input has a specific
405
- * value
413
+ * - \`conditional\`: Input is required when other inputs have specific values
406
414
  *
407
415
  * By default, the input is not required.
408
416
  */
@@ -420,8 +428,7 @@ export declare namespace TrainActionResponse {
420
428
  * - \`ifNotDefined\`: Input is required when another specified input is not
421
429
  * defined
422
430
  * - \`ifDefined\`: Input is required when another specified input is defined
423
- * - \`conditionalValues\`: Input is required when another input has a specific
424
- * value
431
+ * - \`conditional\`: Input is required when other inputs have specific values
425
432
  *
426
433
  * By default, the input is not required.
427
434
  */
@@ -431,12 +438,9 @@ export declare namespace TrainActionResponse {
431
438
  */
432
439
  always?: boolean;
433
440
  /**
434
- * Makes this input required when another input has a specific value:
435
- *
436
- * - Key: name of the input to check
437
- * - Value: operation and allowed values that trigger the requirement
441
+ * Makes this input required when other inputs have one of the listed values
438
442
  */
439
- conditionalValues?: unknown;
443
+ conditional?: Required.Conditional;
440
444
  /**
441
445
  * Makes this input required when another input is defined:
442
446
  *
@@ -452,6 +456,24 @@ export declare namespace TrainActionResponse {
452
456
  */
453
457
  ifNotDefined?: unknown;
454
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
+ }
455
477
  }
456
478
  /**
457
479
  * The parameters of the model
@@ -927,6 +949,12 @@ export declare namespace TrainActionResponse {
927
949
  * Configuration for the loras component
928
950
  */
929
951
  lorasComponent?: UiConfig.LorasComponent;
952
+ /**
953
+ * Configuration for the provider outputs exposed by `exposeOutput`
954
+ */
955
+ outputProperties?: {
956
+ [key: string]: UiConfig.OutputProperties;
957
+ };
930
958
  /**
931
959
  * Configuration for the presets
932
960
  */
@@ -974,6 +1002,9 @@ export declare namespace TrainActionResponse {
974
1002
  */
975
1003
  modelIdInput?: string;
976
1004
  }
1005
+ interface OutputProperties {
1006
+ label: string;
1007
+ }
977
1008
  interface Preset {
978
1009
  fields: Array<string>;
979
1010
  presets: unknown;
@@ -1032,8 +1063,8 @@ export interface TrainTriggerResponse {
1032
1063
  /**
1033
1064
  * Compute Units cost per billing action for this request, after discount. Values
1034
1065
  * sum to `creativeUnitsCost`. Only Compute-Units-consuming actions with a non-zero
1035
- * charge appear. Lets clients split the total (e.g. generation vs
1036
- * `slop-detection`) — including on dryRun estimates.
1066
+ * charge appear. Lets clients split the total (e.g. generation vs `quality-gate`)
1067
+ * — including on dryRun estimates.
1037
1068
  */
1038
1069
  costDetails?: TrainTriggerResponse.CostDetails;
1039
1070
  /**
@@ -1158,7 +1189,7 @@ export declare namespace TrainTriggerResponse {
1158
1189
  /**
1159
1190
  * The type of the job for the node.
1160
1191
  */
1161
- 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';
1162
1193
  /**
1163
1194
  * List of produced assets for this node.
1164
1195
  */
@@ -1183,13 +1214,14 @@ export declare namespace TrainTriggerResponse {
1183
1214
  */
1184
1215
  includeOutputsInWorkflowJob?: true;
1185
1216
  /**
1186
- * 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.
1187
1220
  */
1188
1221
  inputs?: Array<Flow.Input>;
1189
1222
  /**
1190
- * Statically-configured items for a List node. The node outputs this array as-is
1191
- * when executed. Only available for List nodes. The values can be strings,
1192
- * 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.
1193
1225
  */
1194
1226
  items?: Array<string>;
1195
1227
  /**
@@ -1306,7 +1338,9 @@ export declare namespace TrainTriggerResponse {
1306
1338
  * The asset kind of the input. Only taken into account for \`file\` and
1307
1339
  * \`file_array\` input types. If model provides multiple kinds, the input will be
1308
1340
  * not able to create the asset on the flight on API side with dataurl without
1309
- * data:kind, prefix
1341
+ * data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
1342
+ * a model does not declare one, \`image\` is returned, which is the kind used at
1343
+ * generation time.
1310
1344
  */
1311
1345
  kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
1312
1346
  /**
@@ -1329,8 +1363,9 @@ export declare namespace TrainTriggerResponse {
1329
1363
  */
1330
1364
  maxDuration?: number;
1331
1365
  /**
1332
- * The maximum allowed length for \`string\` inputs. Also applies to each item in
1333
- * \`string_array\`.
1366
+ * The maximum allowed length for \`string\` and \`model\` inputs, in characters.
1367
+ * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
1368
+ * ITEMS instead — the length of each item is not constrained.
1334
1369
  */
1335
1370
  maxLength?: number;
1336
1371
  /**
@@ -1344,8 +1379,9 @@ export declare namespace TrainTriggerResponse {
1344
1379
  */
1345
1380
  min?: number;
1346
1381
  /**
1347
- * The minimum allowed length for string inputs. Also applies to each item in
1348
- * \`string_array\`.
1382
+ * The minimum allowed length for \`string\` and \`model\` inputs, in characters.
1383
+ * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
1384
+ * ITEMS instead — the length of each item is not constrained.
1349
1385
  */
1350
1386
  minLength?: number;
1351
1387
  /**
@@ -1386,8 +1422,7 @@ export declare namespace TrainTriggerResponse {
1386
1422
  * - \`ifNotDefined\`: Input is required when another specified input is not
1387
1423
  * defined
1388
1424
  * - \`ifDefined\`: Input is required when another specified input is defined
1389
- * - \`conditionalValues\`: Input is required when another input has a specific
1390
- * value
1425
+ * - \`conditional\`: Input is required when other inputs have specific values
1391
1426
  *
1392
1427
  * By default, the input is not required.
1393
1428
  */
@@ -1464,7 +1499,9 @@ export declare namespace TrainTriggerResponse {
1464
1499
  * The asset kind of the input. Only taken into account for \`file\` and
1465
1500
  * \`file_array\` input types. If model provides multiple kinds, the input will be
1466
1501
  * not able to create the asset on the flight on API side with dataurl without
1467
- * data:kind, prefix
1502
+ * data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
1503
+ * a model does not declare one, \`image\` is returned, which is the kind used at
1504
+ * generation time.
1468
1505
  */
1469
1506
  kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
1470
1507
  /**
@@ -1487,8 +1524,9 @@ export declare namespace TrainTriggerResponse {
1487
1524
  */
1488
1525
  maxDuration?: number;
1489
1526
  /**
1490
- * The maximum allowed length for \`string\` inputs. Also applies to each item in
1491
- * \`string_array\`.
1527
+ * The maximum allowed length for \`string\` and \`model\` inputs, in characters.
1528
+ * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
1529
+ * ITEMS instead — the length of each item is not constrained.
1492
1530
  */
1493
1531
  maxLength?: number;
1494
1532
  /**
@@ -1502,8 +1540,9 @@ export declare namespace TrainTriggerResponse {
1502
1540
  */
1503
1541
  min?: number;
1504
1542
  /**
1505
- * The minimum allowed length for string inputs. Also applies to each item in
1506
- * \`string_array\`.
1543
+ * The minimum allowed length for \`string\` and \`model\` inputs, in characters.
1544
+ * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
1545
+ * ITEMS instead — the length of each item is not constrained.
1507
1546
  */
1508
1547
  minLength?: number;
1509
1548
  /**
@@ -1544,8 +1583,7 @@ export declare namespace TrainTriggerResponse {
1544
1583
  * - \`ifNotDefined\`: Input is required when another specified input is not
1545
1584
  * defined
1546
1585
  * - \`ifDefined\`: Input is required when another specified input is defined
1547
- * - \`conditionalValues\`: Input is required when another input has a specific
1548
- * value
1586
+ * - \`conditional\`: Input is required when other inputs have specific values
1549
1587
  *
1550
1588
  * By default, the input is not required.
1551
1589
  */
@@ -1595,8 +1633,7 @@ export declare namespace TrainTriggerResponse {
1595
1633
  * - \`ifNotDefined\`: Input is required when another specified input is not
1596
1634
  * defined
1597
1635
  * - \`ifDefined\`: Input is required when another specified input is defined
1598
- * - \`conditionalValues\`: Input is required when another input has a specific
1599
- * value
1636
+ * - \`conditional\`: Input is required when other inputs have specific values
1600
1637
  *
1601
1638
  * By default, the input is not required.
1602
1639
  */
@@ -1606,12 +1643,9 @@ export declare namespace TrainTriggerResponse {
1606
1643
  */
1607
1644
  always?: boolean;
1608
1645
  /**
1609
- * Makes this input required when another input has a specific value:
1610
- *
1611
- * - Key: name of the input to check
1612
- * - Value: operation and allowed values that trigger the requirement
1646
+ * Makes this input required when other inputs have one of the listed values
1613
1647
  */
1614
- conditionalValues?: unknown;
1648
+ conditional?: Required.Conditional;
1615
1649
  /**
1616
1650
  * Makes this input required when another input is defined:
1617
1651
  *
@@ -1627,6 +1661,24 @@ export declare namespace TrainTriggerResponse {
1627
1661
  */
1628
1662
  ifNotDefined?: unknown;
1629
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
+ }
1630
1682
  }
1631
1683
  /**
1632
1684
  * The reference to another input or output of the same workflow. Must have at
@@ -1662,8 +1714,7 @@ export declare namespace TrainTriggerResponse {
1662
1714
  * - \`ifNotDefined\`: Input is required when another specified input is not
1663
1715
  * defined
1664
1716
  * - \`ifDefined\`: Input is required when another specified input is defined
1665
- * - \`conditionalValues\`: Input is required when another input has a specific
1666
- * value
1717
+ * - \`conditional\`: Input is required when other inputs have specific values
1667
1718
  *
1668
1719
  * By default, the input is not required.
1669
1720
  */
@@ -1673,12 +1724,9 @@ export declare namespace TrainTriggerResponse {
1673
1724
  */
1674
1725
  always?: boolean;
1675
1726
  /**
1676
- * Makes this input required when another input has a specific value:
1677
- *
1678
- * - Key: name of the input to check
1679
- * - Value: operation and allowed values that trigger the requirement
1727
+ * Makes this input required when other inputs have one of the listed values
1680
1728
  */
1681
- conditionalValues?: unknown;
1729
+ conditional?: Required.Conditional;
1682
1730
  /**
1683
1731
  * Makes this input required when another input is defined:
1684
1732
  *
@@ -1694,6 +1742,24 @@ export declare namespace TrainTriggerResponse {
1694
1742
  */
1695
1743
  ifNotDefined?: unknown;
1696
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
+ }
1697
1763
  }
1698
1764
  /**
1699
1765
  * The logic of the node. Only available for logic nodes.
@@ -1733,7 +1799,7 @@ export declare namespace TrainTriggerResponse {
1733
1799
  cuDiscount: number;
1734
1800
  /**
1735
1801
  * Compute Units charged for the ADD-ONS of this job, per action — the fees paid on
1736
- * top of the generation itself, such as `slop-detection`.
1802
+ * top of the generation itself, such as `quality-gate`.
1737
1803
  *
1738
1804
  * `cuCost` above is the main action alone, so the job's total is `cuCost` plus the
1739
1805
  * values here.
@@ -1761,7 +1827,7 @@ export declare namespace TrainTriggerResponse {
1761
1827
  namespace Billing {
1762
1828
  /**
1763
1829
  * Compute Units charged for the ADD-ONS of this job, per action — the fees paid on
1764
- * top of the generation itself, such as `slop-detection`.
1830
+ * top of the generation itself, such as `quality-gate`.
1765
1831
  *
1766
1832
  * `cuCost` above is the main action alone, so the job's total is `cuCost` plus the
1767
1833
  * values here.
@@ -1780,7 +1846,7 @@ export declare namespace TrainTriggerResponse {
1780
1846
  */
1781
1847
  interface CuCostDetails {
1782
1848
  'ip-detection'?: number;
1783
- 'slop-detection'?: number;
1849
+ 'quality-gate'?: number;
1784
1850
  }
1785
1851
  }
1786
1852
  }
@@ -1841,8 +1907,8 @@ export declare namespace TrainTriggerResponse {
1841
1907
  */
1842
1908
  updatedAt: string;
1843
1909
  /**
1844
- * The access restrictions of the model 0: Free plan 25: Creator plan 50: Pro plan
1845
- * 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
1846
1912
  */
1847
1913
  accessRestrictions?: 0 | 100 | 25 | 50 | 75;
1848
1914
  /**
@@ -1882,6 +1948,11 @@ export declare namespace TrainTriggerResponse {
1882
1948
  * it by modelId with GET /models/{modelId}
1883
1949
  */
1884
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;
1885
1956
  /**
1886
1957
  * The model keyword, this is a legacy parameter, please use conceptPrompt in
1887
1958
  * parameters
@@ -2095,7 +2166,9 @@ export declare namespace TrainTriggerResponse {
2095
2166
  * The asset kind of the input. Only taken into account for \`file\` and
2096
2167
  * \`file_array\` input types. If model provides multiple kinds, the input will be
2097
2168
  * not able to create the asset on the flight on API side with dataurl without
2098
- * data:kind, prefix
2169
+ * data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
2170
+ * a model does not declare one, \`image\` is returned, which is the kind used at
2171
+ * generation time.
2099
2172
  */
2100
2173
  kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
2101
2174
  /**
@@ -2118,8 +2191,9 @@ export declare namespace TrainTriggerResponse {
2118
2191
  */
2119
2192
  maxDuration?: number;
2120
2193
  /**
2121
- * The maximum allowed length for \`string\` inputs. Also applies to each item in
2122
- * \`string_array\`.
2194
+ * The maximum allowed length for \`string\` and \`model\` inputs, in characters.
2195
+ * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
2196
+ * ITEMS instead — the length of each item is not constrained.
2123
2197
  */
2124
2198
  maxLength?: number;
2125
2199
  /**
@@ -2133,8 +2207,9 @@ export declare namespace TrainTriggerResponse {
2133
2207
  */
2134
2208
  min?: number;
2135
2209
  /**
2136
- * The minimum allowed length for string inputs. Also applies to each item in
2137
- * \`string_array\`.
2210
+ * The minimum allowed length for \`string\` and \`model\` inputs, in characters.
2211
+ * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
2212
+ * ITEMS instead — the length of each item is not constrained.
2138
2213
  */
2139
2214
  minLength?: number;
2140
2215
  /**
@@ -2170,8 +2245,7 @@ export declare namespace TrainTriggerResponse {
2170
2245
  * - \`ifNotDefined\`: Input is required when another specified input is not
2171
2246
  * defined
2172
2247
  * - \`ifDefined\`: Input is required when another specified input is defined
2173
- * - \`conditionalValues\`: Input is required when another input has a specific
2174
- * value
2248
+ * - \`conditional\`: Input is required when other inputs have specific values
2175
2249
  *
2176
2250
  * By default, the input is not required.
2177
2251
  */
@@ -2189,8 +2263,7 @@ export declare namespace TrainTriggerResponse {
2189
2263
  * - \`ifNotDefined\`: Input is required when another specified input is not
2190
2264
  * defined
2191
2265
  * - \`ifDefined\`: Input is required when another specified input is defined
2192
- * - \`conditionalValues\`: Input is required when another input has a specific
2193
- * value
2266
+ * - \`conditional\`: Input is required when other inputs have specific values
2194
2267
  *
2195
2268
  * By default, the input is not required.
2196
2269
  */
@@ -2200,12 +2273,9 @@ export declare namespace TrainTriggerResponse {
2200
2273
  */
2201
2274
  always?: boolean;
2202
2275
  /**
2203
- * Makes this input required when another input has a specific value:
2204
- *
2205
- * - Key: name of the input to check
2206
- * - Value: operation and allowed values that trigger the requirement
2276
+ * Makes this input required when other inputs have one of the listed values
2207
2277
  */
2208
- conditionalValues?: unknown;
2278
+ conditional?: Required.Conditional;
2209
2279
  /**
2210
2280
  * Makes this input required when another input is defined:
2211
2281
  *
@@ -2221,6 +2291,24 @@ export declare namespace TrainTriggerResponse {
2221
2291
  */
2222
2292
  ifNotDefined?: unknown;
2223
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
+ }
2224
2312
  }
2225
2313
  /**
2226
2314
  * The parameters of the model
@@ -2696,6 +2784,12 @@ export declare namespace TrainTriggerResponse {
2696
2784
  * Configuration for the loras component
2697
2785
  */
2698
2786
  lorasComponent?: UiConfig.LorasComponent;
2787
+ /**
2788
+ * Configuration for the provider outputs exposed by `exposeOutput`
2789
+ */
2790
+ outputProperties?: {
2791
+ [key: string]: UiConfig.OutputProperties;
2792
+ };
2699
2793
  /**
2700
2794
  * Configuration for the presets
2701
2795
  */
@@ -2743,6 +2837,9 @@ export declare namespace TrainTriggerResponse {
2743
2837
  */
2744
2838
  modelIdInput?: string;
2745
2839
  }
2840
+ interface OutputProperties {
2841
+ label: string;
2842
+ }
2746
2843
  interface Preset {
2747
2844
  fields: Array<string>;
2748
2845
  presets: unknown;
@@ -2797,8 +2894,8 @@ export declare namespace TrainTriggerResponse {
2797
2894
  /**
2798
2895
  * Compute Units cost per billing action for this request, after discount. Values
2799
2896
  * sum to `creativeUnitsCost`. Only Compute-Units-consuming actions with a non-zero
2800
- * charge appear. Lets clients split the total (e.g. generation vs
2801
- * `slop-detection`) — including on dryRun estimates.
2897
+ * charge appear. Lets clients split the total (e.g. generation vs `quality-gate`)
2898
+ * — including on dryRun estimates.
2802
2899
  */
2803
2900
  interface CostDetails {
2804
2901
  'assistant-message'?: number;
@@ -2812,13 +2909,13 @@ export declare namespace TrainTriggerResponse {
2812
2909
  'ip-detection'?: number;
2813
2910
  pixelate?: number;
2814
2911
  prompt?: number;
2912
+ 'quality-gate'?: number;
2815
2913
  'remove-background'?: number;
2816
2914
  repaint?: number;
2817
2915
  restyle?: number;
2818
2916
  segmentation?: number;
2819
2917
  'skybox-base-360'?: number;
2820
2918
  'skybox-upscale-360'?: number;
2821
- 'slop-detection'?: number;
2822
2919
  texture?: number;
2823
2920
  'train-model'?: number;
2824
2921
  translate?: number;
@@ -2834,8 +2931,15 @@ export declare namespace TrainTriggerResponse {
2834
2931
  */
2835
2932
  action: 'allowed' | 'blocked' | 'flagged';
2836
2933
  /**
2837
- * IP-detection CU fee, separate from creativeUnitsCost: a fixed base fee plus a
2838
- * per-image fee for each analyzed input image.
2934
+ * Number of images the detectors actually analyzed — a video counts as each of its
2935
+ * extracted frames, and an image that could not be read is excluded (and not
2936
+ * billed). Each of them is priced once per enabled filter.
2937
+ */
2938
+ analyzedImagesCount: number;
2939
+ /**
2940
+ * IP-detection CU fee, separate from creativeUnitsCost: it follows the provider
2941
+ * tokens the run sends — the prompt plus every analyzed image, once per enabled
2942
+ * filter — with a 1 CU minimum per run.
2839
2943
  */
2840
2944
  creativeUnitsCharged: number;
2841
2945
  /**
@@ -2847,7 +2951,8 @@ export declare namespace TrainTriggerResponse {
2847
2951
  */
2848
2952
  findings: Array<IPDetection.Finding>;
2849
2953
  /**
2850
- * Convenience flag; always true when action is not 'allowed'.
2954
+ * Whether a filter considered the inputs an IP risk. Independent of `action`: a
2955
+ * request blocked because a detector errored is `blocked` and NOT flagged.
2851
2956
  */
2852
2957
  flagged: boolean;
2853
2958
  /**
@@ -2896,10 +3001,6 @@ export interface TrainActionParams {
2896
3001
  * Body param: The action to perform on the model training
2897
3002
  */
2898
3003
  action: 'cancel';
2899
- /**
2900
- * Query param: If set to true, returns the original asset without transformation
2901
- */
2902
- originalAssets?: boolean;
2903
3004
  /**
2904
3005
  * Query param: The projectId used for ownership resource management. Either to
2905
3006
  * assert ownership or to set the owner of the resource(s)
@@ -2908,9 +3009,10 @@ export interface TrainActionParams {
2908
3009
  }
2909
3010
  export interface TrainTriggerParams {
2910
3011
  /**
2911
- * Query param
3012
+ * Query param: Estimate the operation instead of running it: the call returns a
3013
+ * 269 response carrying the creative units cost. `api` estimates at the API tier.
2912
3014
  */
2913
- dryRun?: unknown;
3015
+ dryRun?: 'true' | 'api';
2914
3016
  /**
2915
3017
  * Query param: If set to true, returns the original asset without transformation
2916
3018
  */
@@ -2921,7 +3023,8 @@ export interface TrainTriggerParams {
2921
3023
  */
2922
3024
  projectId?: string;
2923
3025
  /**
2924
- * Query param: Simulate the number of training images, used for dryRun purpose
3026
+ * Query param: Simulate the number of training images, used for dryRun purpose.
3027
+ * Ignored if the model already has training images.
2925
3028
  */
2926
3029
  trainingImagesCount?: number;
2927
3030
  /**