@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
@@ -4,6 +4,7 @@ import { APIResource } from '../../core/resource';
4
4
  import { APIPromise } from '../../core/api-promise';
5
5
  import { RequestOptions } from '../../internal/request-options';
6
6
  import { path } from '../../internal/utils/path';
7
+ import { omitUndefined } from '../../internal/utils/values';
7
8
 
8
9
  export class Train extends APIResource {
9
10
  /**
@@ -14,11 +15,11 @@ export class Train extends APIResource {
14
15
  params: TrainActionParams,
15
16
  options?: RequestOptions,
16
17
  ): APIPromise<TrainActionResponse> {
17
- const { originalAssets, projectId, ...body } = params;
18
+ const { projectId, ...body } = params;
18
19
  return this._client.post(path`/models/${modelID}/train/action`, {
19
- query: { originalAssets, projectId },
20
20
  body,
21
21
  ...options,
22
+ query: { projectId, ...omitUndefined(options?.query) },
22
23
  });
23
24
  }
24
25
 
@@ -32,9 +33,9 @@ export class Train extends APIResource {
32
33
  ): APIPromise<TrainTriggerResponse> {
33
34
  const { dryRun, originalAssets, projectId, trainingImagesCount, ...body } = params;
34
35
  return this._client.put(path`/models/${modelID}/train`, {
35
- query: { dryRun, originalAssets, projectId, trainingImagesCount },
36
36
  body,
37
37
  ...options,
38
+ query: { dryRun, originalAssets, projectId, trainingImagesCount, ...omitUndefined(options?.query) },
38
39
  });
39
40
  }
40
41
  }
@@ -179,8 +180,8 @@ export namespace TrainActionResponse {
179
180
  updatedAt: string;
180
181
 
181
182
  /**
182
- * The access restrictions of the model 0: Free plan 25: Creator plan 50: Pro plan
183
- * 75: Team plan 100: Enterprise plan
183
+ * The access restrictions of the model 0: Free plan 25: Starter plan 50: Pro plan
184
+ * 75: Max plan 100: Enterprise plan
184
185
  */
185
186
  accessRestrictions?: 0 | 100 | 25 | 50 | 75;
186
187
 
@@ -229,6 +230,12 @@ export namespace TrainActionResponse {
229
230
  */
230
231
  inputs?: Array<Model.Input>;
231
232
 
233
+ /**
234
+ * The ID of the job that trained the model, returned to the model owner only
235
+ * (example: "job_ocZCnG1Df35XRL1QyCZSRxAG8")
236
+ */
237
+ jobId?: string;
238
+
232
239
  /**
233
240
  * The model keyword, this is a legacy parameter, please use conceptPrompt in
234
241
  * parameters
@@ -493,7 +500,9 @@ export namespace TrainActionResponse {
493
500
  * The asset kind of the input. Only taken into account for \`file\` and
494
501
  * \`file_array\` input types. If model provides multiple kinds, the input will be
495
502
  * not able to create the asset on the flight on API side with dataurl without
496
- * data:kind, prefix
503
+ * data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
504
+ * a model does not declare one, \`image\` is returned, which is the kind used at
505
+ * generation time.
497
506
  */
498
507
  kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
499
508
 
@@ -521,8 +530,9 @@ export namespace TrainActionResponse {
521
530
  maxDuration?: number;
522
531
 
523
532
  /**
524
- * The maximum allowed length for \`string\` inputs. Also applies to each item in
525
- * \`string_array\`.
533
+ * The maximum allowed length for \`string\` and \`model\` inputs, in characters.
534
+ * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
535
+ * ITEMS instead — the length of each item is not constrained.
526
536
  */
527
537
  maxLength?: number;
528
538
 
@@ -539,8 +549,9 @@ export namespace TrainActionResponse {
539
549
  min?: number;
540
550
 
541
551
  /**
542
- * The minimum allowed length for string inputs. Also applies to each item in
543
- * \`string_array\`.
552
+ * The minimum allowed length for \`string\` and \`model\` inputs, in characters.
553
+ * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
554
+ * ITEMS instead — the length of each item is not constrained.
544
555
  */
545
556
  minLength?: number;
546
557
 
@@ -614,8 +625,7 @@ export namespace TrainActionResponse {
614
625
  * - \`ifNotDefined\`: Input is required when another specified input is not
615
626
  * defined
616
627
  * - \`ifDefined\`: Input is required when another specified input is defined
617
- * - \`conditionalValues\`: Input is required when another input has a specific
618
- * value
628
+ * - \`conditional\`: Input is required when other inputs have specific values
619
629
  *
620
630
  * By default, the input is not required.
621
631
  */
@@ -635,8 +645,7 @@ export namespace TrainActionResponse {
635
645
  * - \`ifNotDefined\`: Input is required when another specified input is not
636
646
  * defined
637
647
  * - \`ifDefined\`: Input is required when another specified input is defined
638
- * - \`conditionalValues\`: Input is required when another input has a specific
639
- * value
648
+ * - \`conditional\`: Input is required when other inputs have specific values
640
649
  *
641
650
  * By default, the input is not required.
642
651
  */
@@ -647,12 +656,9 @@ export namespace TrainActionResponse {
647
656
  always?: boolean;
648
657
 
649
658
  /**
650
- * Makes this input required when another input has a specific value:
651
- *
652
- * - Key: name of the input to check
653
- * - Value: operation and allowed values that trigger the requirement
659
+ * Makes this input required when other inputs have one of the listed values
654
660
  */
655
- conditionalValues?: unknown;
661
+ conditional?: Required.Conditional;
656
662
 
657
663
  /**
658
664
  * Makes this input required when another input is defined:
@@ -670,6 +676,26 @@ export namespace TrainActionResponse {
670
676
  */
671
677
  ifNotDefined?: unknown;
672
678
  }
679
+
680
+ export namespace Required {
681
+ /**
682
+ * Makes this input required when other inputs have one of the listed values
683
+ */
684
+ export interface Conditional {
685
+ /**
686
+ * The conditions to check:
687
+ *
688
+ * - Key: name of the input to check
689
+ * - Value: values of that input that satisfy the condition
690
+ */
691
+ values: unknown;
692
+
693
+ /**
694
+ * How the conditions combine: \`and\` (all must match) or \`or\` (any must match)
695
+ */
696
+ operator?: 'and' | 'or';
697
+ }
698
+ }
673
699
  }
674
700
 
675
701
  /**
@@ -1236,6 +1262,11 @@ export namespace TrainActionResponse {
1236
1262
  */
1237
1263
  lorasComponent?: UiConfig.LorasComponent;
1238
1264
 
1265
+ /**
1266
+ * Configuration for the provider outputs exposed by `exposeOutput`
1267
+ */
1268
+ outputProperties?: { [key: string]: UiConfig.OutputProperties };
1269
+
1239
1270
  /**
1240
1271
  * Configuration for the presets
1241
1272
  */
@@ -1290,6 +1321,10 @@ export namespace TrainActionResponse {
1290
1321
  modelIdInput?: string;
1291
1322
  }
1292
1323
 
1324
+ export interface OutputProperties {
1325
+ label: string;
1326
+ }
1327
+
1293
1328
  export interface Preset {
1294
1329
  fields: Array<string>;
1295
1330
 
@@ -1362,8 +1397,8 @@ export interface TrainTriggerResponse {
1362
1397
  /**
1363
1398
  * Compute Units cost per billing action for this request, after discount. Values
1364
1399
  * sum to `creativeUnitsCost`. Only Compute-Units-consuming actions with a non-zero
1365
- * charge appear. Lets clients split the total (e.g. generation vs
1366
- * `slop-detection`) — including on dryRun estimates.
1400
+ * charge appear. Lets clients split the total (e.g. generation vs `quality-gate`)
1401
+ * — including on dryRun estimates.
1367
1402
  */
1368
1403
  costDetails?: TrainTriggerResponse.CostDetails;
1369
1404
 
@@ -1568,6 +1603,7 @@ export namespace TrainTriggerResponse {
1568
1603
  | 'remove-background'
1569
1604
  | 'transform'
1570
1605
  | 'user-approval'
1606
+ | 'user-selection'
1571
1607
  | 'workflow';
1572
1608
 
1573
1609
  /**
@@ -1598,14 +1634,15 @@ export namespace TrainTriggerResponse {
1598
1634
  includeOutputsInWorkflowJob?: true;
1599
1635
 
1600
1636
  /**
1601
- * The inputs of the node.
1637
+ * The inputs of the node. For a user-selection node, the array input's `min`/`max`
1638
+ * bound how many items the user may pick (defaults: 1 and 100); conditional
1639
+ * connections may be present as additional inputs.
1602
1640
  */
1603
1641
  inputs?: Array<Flow.Input>;
1604
1642
 
1605
1643
  /**
1606
- * Statically-configured items for a List node. The node outputs this array as-is
1607
- * when executed. Only available for List nodes. The values can be strings,
1608
- * numbers, or asset IDs.
1644
+ * Statically-configured items for a List node, or the frozen candidate list of a
1645
+ * UserSelection node. The values can be strings, numbers, or asset IDs.
1609
1646
  */
1610
1647
  items?: Array<string>;
1611
1648
 
@@ -1754,7 +1791,9 @@ export namespace TrainTriggerResponse {
1754
1791
  * The asset kind of the input. Only taken into account for \`file\` and
1755
1792
  * \`file_array\` input types. If model provides multiple kinds, the input will be
1756
1793
  * not able to create the asset on the flight on API side with dataurl without
1757
- * data:kind, prefix
1794
+ * data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
1795
+ * a model does not declare one, \`image\` is returned, which is the kind used at
1796
+ * generation time.
1758
1797
  */
1759
1798
  kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
1760
1799
 
@@ -1782,8 +1821,9 @@ export namespace TrainTriggerResponse {
1782
1821
  maxDuration?: number;
1783
1822
 
1784
1823
  /**
1785
- * The maximum allowed length for \`string\` inputs. Also applies to each item in
1786
- * \`string_array\`.
1824
+ * The maximum allowed length for \`string\` and \`model\` inputs, in characters.
1825
+ * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
1826
+ * ITEMS instead — the length of each item is not constrained.
1787
1827
  */
1788
1828
  maxLength?: number;
1789
1829
 
@@ -1800,8 +1840,9 @@ export namespace TrainTriggerResponse {
1800
1840
  min?: number;
1801
1841
 
1802
1842
  /**
1803
- * The minimum allowed length for string inputs. Also applies to each item in
1804
- * \`string_array\`.
1843
+ * The minimum allowed length for \`string\` and \`model\` inputs, in characters.
1844
+ * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
1845
+ * ITEMS instead — the length of each item is not constrained.
1805
1846
  */
1806
1847
  minLength?: number;
1807
1848
 
@@ -1881,8 +1922,7 @@ export namespace TrainTriggerResponse {
1881
1922
  * - \`ifNotDefined\`: Input is required when another specified input is not
1882
1923
  * defined
1883
1924
  * - \`ifDefined\`: Input is required when another specified input is defined
1884
- * - \`conditionalValues\`: Input is required when another input has a specific
1885
- * value
1925
+ * - \`conditional\`: Input is required when other inputs have specific values
1886
1926
  *
1887
1927
  * By default, the input is not required.
1888
1928
  */
@@ -1981,7 +2021,9 @@ export namespace TrainTriggerResponse {
1981
2021
  * The asset kind of the input. Only taken into account for \`file\` and
1982
2022
  * \`file_array\` input types. If model provides multiple kinds, the input will be
1983
2023
  * not able to create the asset on the flight on API side with dataurl without
1984
- * data:kind, prefix
2024
+ * data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
2025
+ * a model does not declare one, \`image\` is returned, which is the kind used at
2026
+ * generation time.
1985
2027
  */
1986
2028
  kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
1987
2029
 
@@ -2009,8 +2051,9 @@ export namespace TrainTriggerResponse {
2009
2051
  maxDuration?: number;
2010
2052
 
2011
2053
  /**
2012
- * The maximum allowed length for \`string\` inputs. Also applies to each item in
2013
- * \`string_array\`.
2054
+ * The maximum allowed length for \`string\` and \`model\` inputs, in characters.
2055
+ * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
2056
+ * ITEMS instead — the length of each item is not constrained.
2014
2057
  */
2015
2058
  maxLength?: number;
2016
2059
 
@@ -2027,8 +2070,9 @@ export namespace TrainTriggerResponse {
2027
2070
  min?: number;
2028
2071
 
2029
2072
  /**
2030
- * The minimum allowed length for string inputs. Also applies to each item in
2031
- * \`string_array\`.
2073
+ * The minimum allowed length for \`string\` and \`model\` inputs, in characters.
2074
+ * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
2075
+ * ITEMS instead — the length of each item is not constrained.
2032
2076
  */
2033
2077
  minLength?: number;
2034
2078
 
@@ -2108,8 +2152,7 @@ export namespace TrainTriggerResponse {
2108
2152
  * - \`ifNotDefined\`: Input is required when another specified input is not
2109
2153
  * defined
2110
2154
  * - \`ifDefined\`: Input is required when another specified input is defined
2111
- * - \`conditionalValues\`: Input is required when another input has a specific
2112
- * value
2155
+ * - \`conditional\`: Input is required when other inputs have specific values
2113
2156
  *
2114
2157
  * By default, the input is not required.
2115
2158
  */
@@ -2166,8 +2209,7 @@ export namespace TrainTriggerResponse {
2166
2209
  * - \`ifNotDefined\`: Input is required when another specified input is not
2167
2210
  * defined
2168
2211
  * - \`ifDefined\`: Input is required when another specified input is defined
2169
- * - \`conditionalValues\`: Input is required when another input has a specific
2170
- * value
2212
+ * - \`conditional\`: Input is required when other inputs have specific values
2171
2213
  *
2172
2214
  * By default, the input is not required.
2173
2215
  */
@@ -2178,12 +2220,9 @@ export namespace TrainTriggerResponse {
2178
2220
  always?: boolean;
2179
2221
 
2180
2222
  /**
2181
- * Makes this input required when another input has a specific value:
2182
- *
2183
- * - Key: name of the input to check
2184
- * - Value: operation and allowed values that trigger the requirement
2223
+ * Makes this input required when other inputs have one of the listed values
2185
2224
  */
2186
- conditionalValues?: unknown;
2225
+ conditional?: Required.Conditional;
2187
2226
 
2188
2227
  /**
2189
2228
  * Makes this input required when another input is defined:
@@ -2201,6 +2240,26 @@ export namespace TrainTriggerResponse {
2201
2240
  */
2202
2241
  ifNotDefined?: unknown;
2203
2242
  }
2243
+
2244
+ export namespace Required {
2245
+ /**
2246
+ * Makes this input required when other inputs have one of the listed values
2247
+ */
2248
+ export interface Conditional {
2249
+ /**
2250
+ * The conditions to check:
2251
+ *
2252
+ * - Key: name of the input to check
2253
+ * - Value: values of that input that satisfy the condition
2254
+ */
2255
+ values: unknown;
2256
+
2257
+ /**
2258
+ * How the conditions combine: \`and\` (all must match) or \`or\` (any must match)
2259
+ */
2260
+ operator?: 'and' | 'or';
2261
+ }
2262
+ }
2204
2263
  }
2205
2264
 
2206
2265
  /**
@@ -2241,8 +2300,7 @@ export namespace TrainTriggerResponse {
2241
2300
  * - \`ifNotDefined\`: Input is required when another specified input is not
2242
2301
  * defined
2243
2302
  * - \`ifDefined\`: Input is required when another specified input is defined
2244
- * - \`conditionalValues\`: Input is required when another input has a specific
2245
- * value
2303
+ * - \`conditional\`: Input is required when other inputs have specific values
2246
2304
  *
2247
2305
  * By default, the input is not required.
2248
2306
  */
@@ -2253,12 +2311,9 @@ export namespace TrainTriggerResponse {
2253
2311
  always?: boolean;
2254
2312
 
2255
2313
  /**
2256
- * Makes this input required when another input has a specific value:
2257
- *
2258
- * - Key: name of the input to check
2259
- * - Value: operation and allowed values that trigger the requirement
2314
+ * Makes this input required when other inputs have one of the listed values
2260
2315
  */
2261
- conditionalValues?: unknown;
2316
+ conditional?: Required.Conditional;
2262
2317
 
2263
2318
  /**
2264
2319
  * Makes this input required when another input is defined:
@@ -2276,6 +2331,26 @@ export namespace TrainTriggerResponse {
2276
2331
  */
2277
2332
  ifNotDefined?: unknown;
2278
2333
  }
2334
+
2335
+ export namespace Required {
2336
+ /**
2337
+ * Makes this input required when other inputs have one of the listed values
2338
+ */
2339
+ export interface Conditional {
2340
+ /**
2341
+ * The conditions to check:
2342
+ *
2343
+ * - Key: name of the input to check
2344
+ * - Value: values of that input that satisfy the condition
2345
+ */
2346
+ values: unknown;
2347
+
2348
+ /**
2349
+ * How the conditions combine: \`and\` (all must match) or \`or\` (any must match)
2350
+ */
2351
+ operator?: 'and' | 'or';
2352
+ }
2353
+ }
2279
2354
  }
2280
2355
 
2281
2356
  /**
@@ -2333,7 +2408,7 @@ export namespace TrainTriggerResponse {
2333
2408
 
2334
2409
  /**
2335
2410
  * Compute Units charged for the ADD-ONS of this job, per action — the fees paid on
2336
- * top of the generation itself, such as `slop-detection`.
2411
+ * top of the generation itself, such as `quality-gate`.
2337
2412
  *
2338
2413
  * `cuCost` above is the main action alone, so the job's total is `cuCost` plus the
2339
2414
  * values here.
@@ -2363,7 +2438,7 @@ export namespace TrainTriggerResponse {
2363
2438
  export namespace Billing {
2364
2439
  /**
2365
2440
  * Compute Units charged for the ADD-ONS of this job, per action — the fees paid on
2366
- * top of the generation itself, such as `slop-detection`.
2441
+ * top of the generation itself, such as `quality-gate`.
2367
2442
  *
2368
2443
  * `cuCost` above is the main action alone, so the job's total is `cuCost` plus the
2369
2444
  * values here.
@@ -2383,7 +2458,7 @@ export namespace TrainTriggerResponse {
2383
2458
  export interface CuCostDetails {
2384
2459
  'ip-detection'?: number;
2385
2460
 
2386
- 'slop-detection'?: number;
2461
+ 'quality-gate'?: number;
2387
2462
  }
2388
2463
  }
2389
2464
  }
@@ -2523,8 +2598,8 @@ export namespace TrainTriggerResponse {
2523
2598
  updatedAt: string;
2524
2599
 
2525
2600
  /**
2526
- * The access restrictions of the model 0: Free plan 25: Creator plan 50: Pro plan
2527
- * 75: Team plan 100: Enterprise plan
2601
+ * The access restrictions of the model 0: Free plan 25: Starter plan 50: Pro plan
2602
+ * 75: Max plan 100: Enterprise plan
2528
2603
  */
2529
2604
  accessRestrictions?: 0 | 100 | 25 | 50 | 75;
2530
2605
 
@@ -2573,6 +2648,12 @@ export namespace TrainTriggerResponse {
2573
2648
  */
2574
2649
  inputs?: Array<Model.Input>;
2575
2650
 
2651
+ /**
2652
+ * The ID of the job that trained the model, returned to the model owner only
2653
+ * (example: "job_ocZCnG1Df35XRL1QyCZSRxAG8")
2654
+ */
2655
+ jobId?: string;
2656
+
2576
2657
  /**
2577
2658
  * The model keyword, this is a legacy parameter, please use conceptPrompt in
2578
2659
  * parameters
@@ -2837,7 +2918,9 @@ export namespace TrainTriggerResponse {
2837
2918
  * The asset kind of the input. Only taken into account for \`file\` and
2838
2919
  * \`file_array\` input types. If model provides multiple kinds, the input will be
2839
2920
  * not able to create the asset on the flight on API side with dataurl without
2840
- * data:kind, prefix
2921
+ * data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
2922
+ * a model does not declare one, \`image\` is returned, which is the kind used at
2923
+ * generation time.
2841
2924
  */
2842
2925
  kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
2843
2926
 
@@ -2865,8 +2948,9 @@ export namespace TrainTriggerResponse {
2865
2948
  maxDuration?: number;
2866
2949
 
2867
2950
  /**
2868
- * The maximum allowed length for \`string\` inputs. Also applies to each item in
2869
- * \`string_array\`.
2951
+ * The maximum allowed length for \`string\` and \`model\` inputs, in characters.
2952
+ * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
2953
+ * ITEMS instead — the length of each item is not constrained.
2870
2954
  */
2871
2955
  maxLength?: number;
2872
2956
 
@@ -2883,8 +2967,9 @@ export namespace TrainTriggerResponse {
2883
2967
  min?: number;
2884
2968
 
2885
2969
  /**
2886
- * The minimum allowed length for string inputs. Also applies to each item in
2887
- * \`string_array\`.
2970
+ * The minimum allowed length for \`string\` and \`model\` inputs, in characters.
2971
+ * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
2972
+ * ITEMS instead — the length of each item is not constrained.
2888
2973
  */
2889
2974
  minLength?: number;
2890
2975
 
@@ -2958,8 +3043,7 @@ export namespace TrainTriggerResponse {
2958
3043
  * - \`ifNotDefined\`: Input is required when another specified input is not
2959
3044
  * defined
2960
3045
  * - \`ifDefined\`: Input is required when another specified input is defined
2961
- * - \`conditionalValues\`: Input is required when another input has a specific
2962
- * value
3046
+ * - \`conditional\`: Input is required when other inputs have specific values
2963
3047
  *
2964
3048
  * By default, the input is not required.
2965
3049
  */
@@ -2979,8 +3063,7 @@ export namespace TrainTriggerResponse {
2979
3063
  * - \`ifNotDefined\`: Input is required when another specified input is not
2980
3064
  * defined
2981
3065
  * - \`ifDefined\`: Input is required when another specified input is defined
2982
- * - \`conditionalValues\`: Input is required when another input has a specific
2983
- * value
3066
+ * - \`conditional\`: Input is required when other inputs have specific values
2984
3067
  *
2985
3068
  * By default, the input is not required.
2986
3069
  */
@@ -2991,12 +3074,9 @@ export namespace TrainTriggerResponse {
2991
3074
  always?: boolean;
2992
3075
 
2993
3076
  /**
2994
- * Makes this input required when another input has a specific value:
2995
- *
2996
- * - Key: name of the input to check
2997
- * - Value: operation and allowed values that trigger the requirement
3077
+ * Makes this input required when other inputs have one of the listed values
2998
3078
  */
2999
- conditionalValues?: unknown;
3079
+ conditional?: Required.Conditional;
3000
3080
 
3001
3081
  /**
3002
3082
  * Makes this input required when another input is defined:
@@ -3014,6 +3094,26 @@ export namespace TrainTriggerResponse {
3014
3094
  */
3015
3095
  ifNotDefined?: unknown;
3016
3096
  }
3097
+
3098
+ export namespace Required {
3099
+ /**
3100
+ * Makes this input required when other inputs have one of the listed values
3101
+ */
3102
+ export interface Conditional {
3103
+ /**
3104
+ * The conditions to check:
3105
+ *
3106
+ * - Key: name of the input to check
3107
+ * - Value: values of that input that satisfy the condition
3108
+ */
3109
+ values: unknown;
3110
+
3111
+ /**
3112
+ * How the conditions combine: \`and\` (all must match) or \`or\` (any must match)
3113
+ */
3114
+ operator?: 'and' | 'or';
3115
+ }
3116
+ }
3017
3117
  }
3018
3118
 
3019
3119
  /**
@@ -3580,6 +3680,11 @@ export namespace TrainTriggerResponse {
3580
3680
  */
3581
3681
  lorasComponent?: UiConfig.LorasComponent;
3582
3682
 
3683
+ /**
3684
+ * Configuration for the provider outputs exposed by `exposeOutput`
3685
+ */
3686
+ outputProperties?: { [key: string]: UiConfig.OutputProperties };
3687
+
3583
3688
  /**
3584
3689
  * Configuration for the presets
3585
3690
  */
@@ -3634,6 +3739,10 @@ export namespace TrainTriggerResponse {
3634
3739
  modelIdInput?: string;
3635
3740
  }
3636
3741
 
3742
+ export interface OutputProperties {
3743
+ label: string;
3744
+ }
3745
+
3637
3746
  export interface Preset {
3638
3747
  fields: Array<string>;
3639
3748
 
@@ -3700,8 +3809,8 @@ export namespace TrainTriggerResponse {
3700
3809
  /**
3701
3810
  * Compute Units cost per billing action for this request, after discount. Values
3702
3811
  * sum to `creativeUnitsCost`. Only Compute-Units-consuming actions with a non-zero
3703
- * charge appear. Lets clients split the total (e.g. generation vs
3704
- * `slop-detection`) — including on dryRun estimates.
3812
+ * charge appear. Lets clients split the total (e.g. generation vs `quality-gate`)
3813
+ * — including on dryRun estimates.
3705
3814
  */
3706
3815
  export interface CostDetails {
3707
3816
  'assistant-message'?: number;
@@ -3726,6 +3835,8 @@ export namespace TrainTriggerResponse {
3726
3835
 
3727
3836
  prompt?: number;
3728
3837
 
3838
+ 'quality-gate'?: number;
3839
+
3729
3840
  'remove-background'?: number;
3730
3841
 
3731
3842
  repaint?: number;
@@ -3738,8 +3849,6 @@ export namespace TrainTriggerResponse {
3738
3849
 
3739
3850
  'skybox-upscale-360'?: number;
3740
3851
 
3741
- 'slop-detection'?: number;
3742
-
3743
3852
  texture?: number;
3744
3853
 
3745
3854
  'train-model'?: number;
@@ -3761,8 +3870,16 @@ export namespace TrainTriggerResponse {
3761
3870
  action: 'allowed' | 'blocked' | 'flagged';
3762
3871
 
3763
3872
  /**
3764
- * IP-detection CU fee, separate from creativeUnitsCost: a fixed base fee plus a
3765
- * per-image fee for each analyzed input image.
3873
+ * Number of images the detectors actually analyzed — a video counts as each of its
3874
+ * extracted frames, and an image that could not be read is excluded (and not
3875
+ * billed). Each of them is priced once per enabled filter.
3876
+ */
3877
+ analyzedImagesCount: number;
3878
+
3879
+ /**
3880
+ * IP-detection CU fee, separate from creativeUnitsCost: it follows the provider
3881
+ * tokens the run sends — the prompt plus every analyzed image, once per enabled
3882
+ * filter — with a 1 CU minimum per run.
3766
3883
  */
3767
3884
  creativeUnitsCharged: number;
3768
3885
 
@@ -3777,7 +3894,8 @@ export namespace TrainTriggerResponse {
3777
3894
  findings: Array<IPDetection.Finding>;
3778
3895
 
3779
3896
  /**
3780
- * Convenience flag; always true when action is not 'allowed'.
3897
+ * Whether a filter considered the inputs an IP risk. Independent of `action`: a
3898
+ * request blocked because a detector errored is `blocked` and NOT flagged.
3781
3899
  */
3782
3900
  flagged: boolean;
3783
3901
 
@@ -3836,11 +3954,6 @@ export interface TrainActionParams {
3836
3954
  */
3837
3955
  action: 'cancel';
3838
3956
 
3839
- /**
3840
- * Query param: If set to true, returns the original asset without transformation
3841
- */
3842
- originalAssets?: boolean;
3843
-
3844
3957
  /**
3845
3958
  * Query param: The projectId used for ownership resource management. Either to
3846
3959
  * assert ownership or to set the owner of the resource(s)
@@ -3850,9 +3963,10 @@ export interface TrainActionParams {
3850
3963
 
3851
3964
  export interface TrainTriggerParams {
3852
3965
  /**
3853
- * Query param
3966
+ * Query param: Estimate the operation instead of running it: the call returns a
3967
+ * 269 response carrying the creative units cost. `api` estimates at the API tier.
3854
3968
  */
3855
- dryRun?: unknown;
3969
+ dryRun?: 'true' | 'api';
3856
3970
 
3857
3971
  /**
3858
3972
  * Query param: If set to true, returns the original asset without transformation
@@ -3866,7 +3980,8 @@ export interface TrainTriggerParams {
3866
3980
  projectId?: string;
3867
3981
 
3868
3982
  /**
3869
- * Query param: Simulate the number of training images, used for dryRun purpose
3983
+ * Query param: Simulate the number of training images, used for dryRun purpose.
3984
+ * Ignored if the model already has training images.
3870
3985
  */
3871
3986
  trainingImagesCount?: number;
3872
3987