@scenario-labs/sdk 3.2.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 (516) hide show
  1. package/CHANGELOG.md +27 -0
  2. package/client.d.mts +20 -5
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +20 -5
  5. package/client.d.ts.map +1 -1
  6. package/client.js +9 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +9 -0
  9. package/client.mjs.map +1 -1
  10. package/core/pagination.d.mts +42 -0
  11. package/core/pagination.d.mts.map +1 -1
  12. package/core/pagination.d.ts +42 -0
  13. package/core/pagination.d.ts.map +1 -1
  14. package/core/pagination.js +79 -1
  15. package/core/pagination.js.map +1 -1
  16. package/core/pagination.mjs +75 -0
  17. package/core/pagination.mjs.map +1 -1
  18. package/internal/utils/values.d.mts +6 -0
  19. package/internal/utils/values.d.mts.map +1 -1
  20. package/internal/utils/values.d.ts +6 -0
  21. package/internal/utils/values.d.ts.map +1 -1
  22. package/internal/utils/values.js +11 -0
  23. package/internal/utils/values.js.map +1 -1
  24. package/internal/utils/values.mjs +10 -0
  25. package/internal/utils/values.mjs.map +1 -1
  26. package/lib/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_validator.d.mts +5 -0
  83. package/lib/workflow_validator.d.mts.map +1 -1
  84. package/lib/workflow_validator.d.ts +5 -0
  85. package/lib/workflow_validator.d.ts.map +1 -1
  86. package/lib/workflow_validator.js +113 -0
  87. package/lib/workflow_validator.js.map +1 -1
  88. package/lib/workflow_validator.mjs +113 -0
  89. package/lib/workflow_validator.mjs.map +1 -1
  90. package/package.json +1 -1
  91. package/resources/assets/assets.d.mts +130 -31
  92. package/resources/assets/assets.d.mts.map +1 -1
  93. package/resources/assets/assets.d.ts +130 -31
  94. package/resources/assets/assets.d.ts.map +1 -1
  95. package/resources/assets/assets.js +34 -11
  96. package/resources/assets/assets.js.map +1 -1
  97. package/resources/assets/assets.mjs +34 -11
  98. package/resources/assets/assets.mjs.map +1 -1
  99. package/resources/assets/download.d.mts +24 -5
  100. package/resources/assets/download.d.mts.map +1 -1
  101. package/resources/assets/download.d.ts +24 -5
  102. package/resources/assets/download.d.ts.map +1 -1
  103. package/resources/assets/download.js +15 -3
  104. package/resources/assets/download.js.map +1 -1
  105. package/resources/assets/download.mjs +15 -3
  106. package/resources/assets/download.mjs.map +1 -1
  107. package/resources/collections/assets.d.mts.map +1 -1
  108. package/resources/collections/assets.d.ts.map +1 -1
  109. package/resources/collections/assets.js +3 -2
  110. package/resources/collections/assets.js.map +1 -1
  111. package/resources/collections/assets.mjs +3 -2
  112. package/resources/collections/assets.mjs.map +1 -1
  113. package/resources/collections/collections.d.mts.map +1 -1
  114. package/resources/collections/collections.d.ts.map +1 -1
  115. package/resources/collections/collections.js +20 -5
  116. package/resources/collections/collections.js.map +1 -1
  117. package/resources/collections/collections.mjs +20 -5
  118. package/resources/collections/collections.mjs.map +1 -1
  119. package/resources/collections/models.d.mts.map +1 -1
  120. package/resources/collections/models.d.ts.map +1 -1
  121. package/resources/collections/models.js +3 -2
  122. package/resources/collections/models.js.map +1 -1
  123. package/resources/collections/models.mjs +3 -2
  124. package/resources/collections/models.mjs.map +1 -1
  125. package/resources/generate.d.mts +1719 -225
  126. package/resources/generate.d.mts.map +1 -1
  127. package/resources/generate.d.ts +1719 -225
  128. package/resources/generate.d.ts.map +1 -1
  129. package/resources/generate.js +65 -8
  130. package/resources/generate.js.map +1 -1
  131. package/resources/generate.mjs +65 -8
  132. package/resources/generate.mjs.map +1 -1
  133. package/resources/index.d.mts +5 -2
  134. package/resources/index.d.mts.map +1 -1
  135. package/resources/index.d.ts +5 -2
  136. package/resources/index.d.ts.map +1 -1
  137. package/resources/index.js +7 -1
  138. package/resources/index.js.map +1 -1
  139. package/resources/index.mjs +3 -0
  140. package/resources/index.mjs.map +1 -1
  141. package/resources/jobs.d.mts +176 -74
  142. package/resources/jobs.d.mts.map +1 -1
  143. package/resources/jobs.d.ts +176 -74
  144. package/resources/jobs.d.ts.map +1 -1
  145. package/resources/jobs.js +16 -4
  146. package/resources/jobs.js.map +1 -1
  147. package/resources/jobs.mjs +16 -4
  148. package/resources/jobs.mjs.map +1 -1
  149. package/resources/models/description.d.mts +2 -2
  150. package/resources/models/description.d.mts.map +1 -1
  151. package/resources/models/description.d.ts +2 -2
  152. package/resources/models/description.d.ts.map +1 -1
  153. package/resources/models/description.js +6 -2
  154. package/resources/models/description.js.map +1 -1
  155. package/resources/models/description.mjs +6 -2
  156. package/resources/models/description.mjs.map +1 -1
  157. package/resources/models/examples.d.mts +120 -48
  158. package/resources/models/examples.d.mts.map +1 -1
  159. package/resources/models/examples.d.ts +120 -48
  160. package/resources/models/examples.d.ts.map +1 -1
  161. package/resources/models/examples.js +6 -2
  162. package/resources/models/examples.js.map +1 -1
  163. package/resources/models/examples.mjs +6 -2
  164. package/resources/models/examples.mjs.map +1 -1
  165. package/resources/models/index.d.mts +3 -0
  166. package/resources/models/index.d.mts.map +1 -1
  167. package/resources/models/index.d.ts +3 -0
  168. package/resources/models/index.d.ts.map +1 -1
  169. package/resources/models/index.js +7 -1
  170. package/resources/models/index.js.map +1 -1
  171. package/resources/models/index.mjs +3 -0
  172. package/resources/models/index.mjs.map +1 -1
  173. package/resources/models/models.d.mts +215 -77
  174. package/resources/models/models.d.mts.map +1 -1
  175. package/resources/models/models.d.ts +215 -77
  176. package/resources/models/models.d.ts.map +1 -1
  177. package/resources/models/models.js +52 -11
  178. package/resources/models/models.js.map +1 -1
  179. package/resources/models/models.mjs +52 -11
  180. package/resources/models/models.mjs.map +1 -1
  181. package/resources/models/presets.d.mts +1016 -0
  182. package/resources/models/presets.d.mts.map +1 -0
  183. package/resources/models/presets.d.ts +1016 -0
  184. package/resources/models/presets.d.ts.map +1 -0
  185. package/resources/models/presets.js +52 -0
  186. package/resources/models/presets.js.map +1 -0
  187. package/resources/models/presets.mjs +48 -0
  188. package/resources/models/presets.mjs.map +1 -0
  189. package/resources/models/prompt-guide.d.mts +64 -0
  190. package/resources/models/prompt-guide.d.mts.map +1 -0
  191. package/resources/models/prompt-guide.d.ts +64 -0
  192. package/resources/models/prompt-guide.d.ts.map +1 -0
  193. package/resources/models/prompt-guide.js +31 -0
  194. package/resources/models/prompt-guide.js.map +1 -0
  195. package/resources/models/prompt-guide.mjs +27 -0
  196. package/resources/models/prompt-guide.mjs.map +1 -0
  197. package/resources/models/scores.d.mts +278 -0
  198. package/resources/models/scores.d.mts.map +1 -0
  199. package/resources/models/scores.d.ts +278 -0
  200. package/resources/models/scores.d.ts.map +1 -0
  201. package/resources/models/scores.js +29 -0
  202. package/resources/models/scores.js.map +1 -0
  203. package/resources/models/scores.mjs +25 -0
  204. package/resources/models/scores.mjs.map +1 -0
  205. package/resources/models/train.d.mts +108 -45
  206. package/resources/models/train.d.mts.map +1 -1
  207. package/resources/models/train.d.ts +108 -45
  208. package/resources/models/train.d.ts.map +1 -1
  209. package/resources/models/train.js +3 -2
  210. package/resources/models/train.js.map +1 -1
  211. package/resources/models/train.mjs +3 -2
  212. package/resources/models/train.mjs.map +1 -1
  213. package/resources/models/training-images.d.mts.map +1 -1
  214. package/resources/models/training-images.d.ts.map +1 -1
  215. package/resources/models/training-images.js +5 -4
  216. package/resources/models/training-images.js.map +1 -1
  217. package/resources/models/training-images.mjs +5 -4
  218. package/resources/models/training-images.mjs.map +1 -1
  219. package/resources/projects/api-keys.d.mts +54 -0
  220. package/resources/projects/api-keys.d.mts.map +1 -0
  221. package/resources/projects/api-keys.d.ts +54 -0
  222. package/resources/projects/api-keys.d.ts.map +1 -0
  223. package/resources/projects/api-keys.js +23 -0
  224. package/resources/projects/api-keys.js.map +1 -0
  225. package/resources/projects/api-keys.mjs +19 -0
  226. package/resources/projects/api-keys.mjs.map +1 -0
  227. package/resources/projects/brief.d.mts +149 -0
  228. package/resources/projects/brief.d.mts.map +1 -0
  229. package/resources/projects/brief.d.ts +149 -0
  230. package/resources/projects/brief.d.ts.map +1 -0
  231. package/resources/projects/brief.js +28 -0
  232. package/resources/projects/brief.js.map +1 -0
  233. package/resources/projects/brief.mjs +24 -0
  234. package/resources/projects/brief.mjs.map +1 -0
  235. package/resources/projects/index.d.mts +9 -0
  236. package/resources/projects/index.d.mts.map +1 -0
  237. package/resources/projects/index.d.ts +9 -0
  238. package/resources/projects/index.d.ts.map +1 -0
  239. package/resources/projects/index.js +21 -0
  240. package/resources/projects/index.js.map +1 -0
  241. package/resources/projects/index.mjs +10 -0
  242. package/resources/projects/index.mjs.map +1 -0
  243. package/resources/projects/instructions.d.mts +102 -0
  244. package/resources/projects/instructions.d.mts.map +1 -0
  245. package/resources/projects/instructions.d.ts +102 -0
  246. package/resources/projects/instructions.d.ts.map +1 -0
  247. package/resources/projects/instructions.js +24 -0
  248. package/resources/projects/instructions.js.map +1 -0
  249. package/resources/projects/instructions.mjs +20 -0
  250. package/resources/projects/instructions.mjs.map +1 -0
  251. package/resources/projects/members.d.mts +788 -0
  252. package/resources/projects/members.d.mts.map +1 -0
  253. package/resources/projects/members.d.ts +788 -0
  254. package/resources/projects/members.d.ts.map +1 -0
  255. package/resources/projects/members.js +30 -0
  256. package/resources/projects/members.js.map +1 -0
  257. package/resources/projects/members.mjs +26 -0
  258. package/resources/projects/members.mjs.map +1 -0
  259. package/resources/projects/memory.d.mts +102 -0
  260. package/resources/projects/memory.d.mts.map +1 -0
  261. package/resources/projects/memory.d.ts +102 -0
  262. package/resources/projects/memory.d.ts.map +1 -0
  263. package/resources/projects/memory.js +24 -0
  264. package/resources/projects/memory.js.map +1 -0
  265. package/resources/projects/memory.mjs +20 -0
  266. package/resources/projects/memory.mjs.map +1 -0
  267. package/resources/projects/projects.d.mts +1129 -0
  268. package/resources/projects/projects.d.mts.map +1 -0
  269. package/resources/projects/projects.d.ts +1129 -0
  270. package/resources/projects/projects.d.ts.map +1 -0
  271. package/resources/projects/projects.js +79 -0
  272. package/resources/projects/projects.js.map +1 -0
  273. package/resources/projects/projects.mjs +74 -0
  274. package/resources/projects/projects.mjs.map +1 -0
  275. package/resources/projects/watermark.d.mts +459 -0
  276. package/resources/projects/watermark.d.mts.map +1 -0
  277. package/resources/projects/watermark.d.ts +459 -0
  278. package/resources/projects/watermark.d.ts.map +1 -0
  279. package/resources/projects/watermark.js +46 -0
  280. package/resources/projects/watermark.js.map +1 -0
  281. package/resources/projects/watermark.mjs +42 -0
  282. package/resources/projects/watermark.mjs.map +1 -0
  283. package/resources/projects/webhook-endpoints/events.d.mts +87 -0
  284. package/resources/projects/webhook-endpoints/events.d.mts.map +1 -0
  285. package/resources/projects/webhook-endpoints/events.d.ts +87 -0
  286. package/resources/projects/webhook-endpoints/events.d.ts.map +1 -0
  287. package/resources/projects/webhook-endpoints/events.js +28 -0
  288. package/resources/projects/webhook-endpoints/events.js.map +1 -0
  289. package/resources/projects/webhook-endpoints/events.mjs +24 -0
  290. package/resources/projects/webhook-endpoints/events.mjs.map +1 -0
  291. package/resources/projects/webhook-endpoints/index.d.mts +3 -0
  292. package/resources/projects/webhook-endpoints/index.d.mts.map +1 -0
  293. package/resources/projects/webhook-endpoints/index.d.ts +3 -0
  294. package/resources/projects/webhook-endpoints/index.d.ts.map +1 -0
  295. package/resources/projects/webhook-endpoints/index.js +9 -0
  296. package/resources/projects/webhook-endpoints/index.js.map +1 -0
  297. package/resources/projects/webhook-endpoints/index.mjs +4 -0
  298. package/resources/projects/webhook-endpoints/index.mjs.map +1 -0
  299. package/resources/projects/webhook-endpoints/webhook-endpoints.d.mts +249 -0
  300. package/resources/projects/webhook-endpoints/webhook-endpoints.d.mts.map +1 -0
  301. package/resources/projects/webhook-endpoints/webhook-endpoints.d.ts +249 -0
  302. package/resources/projects/webhook-endpoints/webhook-endpoints.d.ts.map +1 -0
  303. package/resources/projects/webhook-endpoints/webhook-endpoints.js +44 -0
  304. package/resources/projects/webhook-endpoints/webhook-endpoints.js.map +1 -0
  305. package/resources/projects/webhook-endpoints/webhook-endpoints.mjs +39 -0
  306. package/resources/projects/webhook-endpoints/webhook-endpoints.mjs.map +1 -0
  307. package/resources/projects/webhook-endpoints.d.mts +2 -0
  308. package/resources/projects/webhook-endpoints.d.mts.map +1 -0
  309. package/resources/projects/webhook-endpoints.d.ts +2 -0
  310. package/resources/projects/webhook-endpoints.d.ts.map +1 -0
  311. package/resources/projects/webhook-endpoints.js +6 -0
  312. package/resources/projects/webhook-endpoints.js.map +1 -0
  313. package/resources/projects/webhook-endpoints.mjs +3 -0
  314. package/resources/projects/webhook-endpoints.mjs.map +1 -0
  315. package/resources/projects.d.mts +2 -0
  316. package/resources/projects.d.mts.map +1 -0
  317. package/resources/projects.d.ts +2 -0
  318. package/resources/projects.d.ts.map +1 -0
  319. package/resources/projects.js +6 -0
  320. package/resources/projects.js.map +1 -0
  321. package/resources/projects.mjs +3 -0
  322. package/resources/projects.mjs.map +1 -0
  323. package/resources/recommendations.d.mts +1107 -0
  324. package/resources/recommendations.d.mts.map +1 -0
  325. package/resources/recommendations.d.ts +1107 -0
  326. package/resources/recommendations.d.ts.map +1 -0
  327. package/resources/recommendations.js +17 -0
  328. package/resources/recommendations.js.map +1 -0
  329. package/resources/recommendations.mjs +13 -0
  330. package/resources/recommendations.mjs.map +1 -0
  331. package/resources/search.d.mts.map +1 -1
  332. package/resources/search.d.ts.map +1 -1
  333. package/resources/search.js +4 -3
  334. package/resources/search.js.map +1 -1
  335. package/resources/search.mjs +4 -3
  336. package/resources/search.mjs.map +1 -1
  337. package/resources/tags.d.mts.map +1 -1
  338. package/resources/tags.d.ts.map +1 -1
  339. package/resources/tags.js +5 -1
  340. package/resources/tags.js.map +1 -1
  341. package/resources/tags.mjs +5 -1
  342. package/resources/tags.mjs.map +1 -1
  343. package/resources/teams/brief.d.mts +149 -0
  344. package/resources/teams/brief.d.mts.map +1 -0
  345. package/resources/teams/brief.d.ts +149 -0
  346. package/resources/teams/brief.d.ts.map +1 -0
  347. package/resources/teams/brief.js +28 -0
  348. package/resources/teams/brief.js.map +1 -0
  349. package/resources/teams/brief.mjs +24 -0
  350. package/resources/teams/brief.mjs.map +1 -0
  351. package/resources/teams/index.d.mts +7 -0
  352. package/resources/teams/index.d.mts.map +1 -0
  353. package/resources/teams/index.d.ts +7 -0
  354. package/resources/teams/index.d.ts.map +1 -0
  355. package/resources/teams/index.js +17 -0
  356. package/resources/teams/index.js.map +1 -0
  357. package/resources/teams/index.mjs +8 -0
  358. package/resources/teams/index.mjs.map +1 -0
  359. package/resources/teams/ip-filters.d.mts +115 -0
  360. package/resources/teams/ip-filters.d.mts.map +1 -0
  361. package/resources/teams/ip-filters.d.ts +115 -0
  362. package/resources/teams/ip-filters.d.ts.map +1 -0
  363. package/resources/teams/ip-filters.js +45 -0
  364. package/resources/teams/ip-filters.js.map +1 -0
  365. package/resources/teams/ip-filters.mjs +41 -0
  366. package/resources/teams/ip-filters.mjs.map +1 -0
  367. package/resources/teams/members.d.mts +204 -0
  368. package/resources/teams/members.d.mts.map +1 -0
  369. package/resources/teams/members.d.ts +204 -0
  370. package/resources/teams/members.d.ts.map +1 -0
  371. package/resources/teams/members.js +30 -0
  372. package/resources/teams/members.js.map +1 -0
  373. package/resources/teams/members.mjs +26 -0
  374. package/resources/teams/members.mjs.map +1 -0
  375. package/resources/teams/teams.d.mts +878 -0
  376. package/resources/teams/teams.d.mts.map +1 -0
  377. package/resources/teams/teams.d.ts +878 -0
  378. package/resources/teams/teams.d.ts.map +1 -0
  379. package/resources/teams/teams.js +66 -0
  380. package/resources/teams/teams.js.map +1 -0
  381. package/resources/teams/teams.mjs +61 -0
  382. package/resources/teams/teams.mjs.map +1 -0
  383. package/resources/teams/watermark.d.mts +459 -0
  384. package/resources/teams/watermark.d.mts.map +1 -0
  385. package/resources/teams/watermark.d.ts +459 -0
  386. package/resources/teams/watermark.d.ts.map +1 -0
  387. package/resources/teams/watermark.js +46 -0
  388. package/resources/teams/watermark.js.map +1 -0
  389. package/resources/teams/watermark.mjs +42 -0
  390. package/resources/teams/watermark.mjs.map +1 -0
  391. package/resources/teams/webhook-endpoints/events.d.mts +87 -0
  392. package/resources/teams/webhook-endpoints/events.d.mts.map +1 -0
  393. package/resources/teams/webhook-endpoints/events.d.ts +87 -0
  394. package/resources/teams/webhook-endpoints/events.d.ts.map +1 -0
  395. package/resources/teams/webhook-endpoints/events.js +28 -0
  396. package/resources/teams/webhook-endpoints/events.js.map +1 -0
  397. package/resources/teams/webhook-endpoints/events.mjs +24 -0
  398. package/resources/teams/webhook-endpoints/events.mjs.map +1 -0
  399. package/resources/teams/webhook-endpoints/index.d.mts +3 -0
  400. package/resources/teams/webhook-endpoints/index.d.mts.map +1 -0
  401. package/resources/teams/webhook-endpoints/index.d.ts +3 -0
  402. package/resources/teams/webhook-endpoints/index.d.ts.map +1 -0
  403. package/resources/teams/webhook-endpoints/index.js +9 -0
  404. package/resources/teams/webhook-endpoints/index.js.map +1 -0
  405. package/resources/teams/webhook-endpoints/index.mjs +4 -0
  406. package/resources/teams/webhook-endpoints/index.mjs.map +1 -0
  407. package/resources/teams/webhook-endpoints/webhook-endpoints.d.mts +250 -0
  408. package/resources/teams/webhook-endpoints/webhook-endpoints.d.mts.map +1 -0
  409. package/resources/teams/webhook-endpoints/webhook-endpoints.d.ts +250 -0
  410. package/resources/teams/webhook-endpoints/webhook-endpoints.d.ts.map +1 -0
  411. package/resources/teams/webhook-endpoints/webhook-endpoints.js +45 -0
  412. package/resources/teams/webhook-endpoints/webhook-endpoints.js.map +1 -0
  413. package/resources/teams/webhook-endpoints/webhook-endpoints.mjs +40 -0
  414. package/resources/teams/webhook-endpoints/webhook-endpoints.mjs.map +1 -0
  415. package/resources/teams/webhook-endpoints.d.mts +2 -0
  416. package/resources/teams/webhook-endpoints.d.mts.map +1 -0
  417. package/resources/teams/webhook-endpoints.d.ts +2 -0
  418. package/resources/teams/webhook-endpoints.d.ts.map +1 -0
  419. package/resources/teams/webhook-endpoints.js +6 -0
  420. package/resources/teams/webhook-endpoints.js.map +1 -0
  421. package/resources/teams/webhook-endpoints.mjs +3 -0
  422. package/resources/teams/webhook-endpoints.mjs.map +1 -0
  423. package/resources/teams.d.mts +2 -0
  424. package/resources/teams.d.mts.map +1 -0
  425. package/resources/teams.d.ts +2 -0
  426. package/resources/teams.d.ts.map +1 -0
  427. package/resources/teams.js +6 -0
  428. package/resources/teams.js.map +1 -0
  429. package/resources/teams.mjs +3 -0
  430. package/resources/teams.mjs.map +1 -0
  431. package/resources/uploads.d.mts.map +1 -1
  432. package/resources/uploads.d.ts.map +1 -1
  433. package/resources/uploads.js +15 -3
  434. package/resources/uploads.js.map +1 -1
  435. package/resources/uploads.mjs +15 -3
  436. package/resources/uploads.mjs.map +1 -1
  437. package/resources/usages.d.mts +51 -24
  438. package/resources/usages.d.mts.map +1 -1
  439. package/resources/usages.d.ts +51 -24
  440. package/resources/usages.d.ts.map +1 -1
  441. package/resources/usages.js +2 -1
  442. package/resources/usages.js.map +1 -1
  443. package/resources/usages.mjs +2 -1
  444. package/resources/usages.mjs.map +1 -1
  445. package/resources/workflows.d.mts +1381 -280
  446. package/resources/workflows.d.mts.map +1 -1
  447. package/resources/workflows.d.ts +1381 -280
  448. package/resources/workflows.d.ts.map +1 -1
  449. package/resources/workflows.js +39 -8
  450. package/resources/workflows.js.map +1 -1
  451. package/resources/workflows.mjs +39 -8
  452. package/resources/workflows.mjs.map +1 -1
  453. package/src/client.ts +101 -0
  454. package/src/core/pagination.ts +144 -0
  455. package/src/internal/utils/values.ts +10 -0
  456. package/src/lib/generate.ts +7 -7
  457. package/src/lib/job.ts +9 -7
  458. package/src/lib/models.ts +8 -6
  459. package/src/lib/query.ts +42 -0
  460. package/src/lib/scenario.ts +8 -0
  461. package/src/lib/scope.ts +42 -7
  462. package/src/lib/upload.ts +10 -8
  463. package/src/lib/workflow.ts +9 -7
  464. package/src/lib/workflow_validator.ts +115 -0
  465. package/src/resources/assets/assets.ts +192 -33
  466. package/src/resources/assets/download.ts +43 -8
  467. package/src/resources/collections/assets.ts +3 -2
  468. package/src/resources/collections/collections.ts +20 -5
  469. package/src/resources/collections/models.ts +3 -2
  470. package/src/resources/generate.ts +2350 -186
  471. package/src/resources/index.ts +34 -0
  472. package/src/resources/jobs.ts +204 -74
  473. package/src/resources/models/description.ts +10 -2
  474. package/src/resources/models/examples.ts +140 -46
  475. package/src/resources/models/index.ts +25 -0
  476. package/src/resources/models/models.ts +326 -88
  477. package/src/resources/models/presets.ts +1335 -0
  478. package/src/resources/models/prompt-guide.ts +102 -0
  479. package/src/resources/models/scores.ts +383 -0
  480. package/src/resources/models/train.ts +121 -46
  481. package/src/resources/models/training-images.ts +5 -4
  482. package/src/resources/projects/api-keys.ts +86 -0
  483. package/src/resources/projects/brief.ts +197 -0
  484. package/src/resources/projects/index.ts +71 -0
  485. package/src/resources/projects/instructions.ts +134 -0
  486. package/src/resources/projects/members.ts +958 -0
  487. package/src/resources/projects/memory.ts +134 -0
  488. package/src/resources/projects/projects.ts +1478 -0
  489. package/src/resources/projects/watermark.ts +590 -0
  490. package/src/resources/projects/webhook-endpoints/events.ts +179 -0
  491. package/src/resources/projects/webhook-endpoints/index.ts +19 -0
  492. package/src/resources/projects/webhook-endpoints/webhook-endpoints.ts +452 -0
  493. package/src/resources/projects/webhook-endpoints.ts +3 -0
  494. package/src/resources/projects.ts +3 -0
  495. package/src/resources/recommendations.ts +1502 -0
  496. package/src/resources/search.ts +4 -3
  497. package/src/resources/tags.ts +5 -1
  498. package/src/resources/teams/brief.ts +193 -0
  499. package/src/resources/teams/index.ts +62 -0
  500. package/src/resources/teams/ip-filters.ts +177 -0
  501. package/src/resources/teams/members.ts +282 -0
  502. package/src/resources/teams/teams.ts +1255 -0
  503. package/src/resources/teams/watermark.ts +590 -0
  504. package/src/resources/teams/webhook-endpoints/events.ts +179 -0
  505. package/src/resources/teams/webhook-endpoints/index.ts +19 -0
  506. package/src/resources/teams/webhook-endpoints/webhook-endpoints.ts +453 -0
  507. package/src/resources/teams/webhook-endpoints.ts +3 -0
  508. package/src/resources/teams.ts +3 -0
  509. package/src/resources/uploads.ts +15 -3
  510. package/src/resources/usages.ts +58 -23
  511. package/src/resources/workflows.ts +1707 -241
  512. package/src/version.ts +1 -1
  513. package/version.d.mts +1 -1
  514. package/version.d.ts +1 -1
  515. package/version.js +1 -1
  516. package/version.mjs +1 -1
@@ -0,0 +1,1107 @@
1
+ import { APIResource } from "../core/resource.js";
2
+ import { PagePromise, RecommendationsCursor, type RecommendationsCursorParams } from "../core/pagination.js";
3
+ import { RequestOptions } from "../internal/request-options.js";
4
+ export declare class Recommendations extends APIResource {
5
+ /**
6
+ * List recommended models matching the given filters
7
+ */
8
+ listModels(query?: RecommendationListModelsParams | null | undefined, options?: RequestOptions): PagePromise<RecommendationListModelsResponsesRecommendationsCursor, RecommendationListModelsResponse>;
9
+ }
10
+ export type RecommendationListModelsResponsesRecommendationsCursor = RecommendationsCursor<RecommendationListModelsResponse>;
11
+ export interface RecommendationListModelsResponse {
12
+ /**
13
+ * The model ID (example: "model_eyVcnFJcR92BxBkz7N6g5w")
14
+ */
15
+ id: string;
16
+ /**
17
+ * List of model capabilities (example: ["txt2img", "img2img",
18
+ * "txt2img_ip_adapter", ...])
19
+ */
20
+ capabilities: Array<'3d23d' | 'audio2audio' | 'audio2txt' | 'audio2video' | 'controlnet' | 'controlnet_img2img' | 'controlnet_inpaint' | 'controlnet_inpaint_ip_adapter' | 'controlnet_ip_adapter' | 'controlnet_reference' | 'controlnet_texture' | 'img23d' | 'img2img' | 'img2img_ip_adapter' | 'img2img_texture' | 'img2txt' | 'img2video' | 'inpaint' | 'inpaint_ip_adapter' | 'outpaint' | 'reference' | 'reference_texture' | 'txt23d' | 'txt2audio' | 'txt2img' | 'txt2img_ip_adapter' | 'txt2img_texture' | 'txt2txt' | 'txt2video' | 'video23d' | 'video2audio' | 'video2img' | 'video2video'>;
21
+ /**
22
+ * A list of CollectionId this model belongs to
23
+ */
24
+ collectionIds: Array<string>;
25
+ /**
26
+ * The model creation date as an ISO string (example: "2023-02-03T11:19:41.579Z")
27
+ */
28
+ createdAt: string;
29
+ /**
30
+ * Whether the model is a custom model and can be used only with POST
31
+ * /generate/custom/{modelId} endpoint
32
+ */
33
+ custom: boolean;
34
+ /**
35
+ * List of all example asset IDs setup by the model owner
36
+ */
37
+ exampleAssetIds: Array<string>;
38
+ /**
39
+ * The privacy of the model (default: private)
40
+ */
41
+ privacy: 'private' | 'public' | 'unlisted';
42
+ /**
43
+ * The source of the model
44
+ */
45
+ source: 'civitai' | 'huggingface' | 'other' | 'scenario';
46
+ /**
47
+ * The model status
48
+ */
49
+ status: 'copying' | 'failed' | 'new' | 'trained' | 'training' | 'training-canceled';
50
+ /**
51
+ * The associated tags (example: ["sci-fi", "landscape"])
52
+ */
53
+ tags: Array<string>;
54
+ /**
55
+ * The total number of training images
56
+ */
57
+ trainingImagesNumber: number;
58
+ /**
59
+ * The model type (example: "flux.1-lora")
60
+ */
61
+ type: 'custom' | 'elevenlabs-voice' | 'flux.1' | 'flux.1-composition' | 'flux.1-kontext-dev' | 'flux.1-kontext-lora' | 'flux.1-krea-dev' | 'flux.1-krea-lora' | 'flux.1-lora' | 'flux.1-pro' | 'flux.1.1-pro-ultra' | 'flux.2-dev-edit-lora' | 'flux.2-dev-lora' | 'flux.2-klein-4b-edit-lora' | 'flux.2-klein-4b-lora' | 'flux.2-klein-9b-edit-lora' | 'flux.2-klein-9b-lora' | 'flux.2-klein-base-4b-edit-lora' | 'flux.2-klein-base-4b-lora' | 'flux.2-klein-base-9b-edit-lora' | 'flux.2-klein-base-9b-lora' | 'flux1.1-pro' | 'gpt-image-1' | 'qwen-image-2512-lora' | 'qwen-image-edit-2509-lora' | 'qwen-image-edit-2511-lora' | 'qwen-image-edit-lora' | 'qwen-image-lora' | 'zimage-de-turbo-lora' | 'zimage-lora' | 'zimage-turbo-lora';
62
+ /**
63
+ * The model last update date as an ISO string (example:
64
+ * "2023-02-03T11:19:41.579Z")
65
+ */
66
+ updatedAt: string;
67
+ /**
68
+ * The access restrictions of the model 0: Free plan 25: Starter plan 50: Pro plan
69
+ * 75: Max plan 100: Enterprise plan
70
+ */
71
+ accessRestrictions?: 0 | 100 | 25 | 50 | 75;
72
+ /**
73
+ * The author user ID (example: "user_VFhihHKMRZyDDnZAJwLb2Q")
74
+ */
75
+ authorId?: string;
76
+ /**
77
+ * The class of the model
78
+ */
79
+ class?: RecommendationListModelsResponse.Class;
80
+ /**
81
+ * List of base model IDs compliant with the model (example: ["flux.1-dev",
82
+ * "flux.1-schnell"]) This attribute is mainly used for Flux LoRA models
83
+ */
84
+ compliantModelIds?: Array<string>;
85
+ /**
86
+ * The concepts is required for the type model: composition
87
+ */
88
+ concepts?: Array<RecommendationListModelsResponse.Concept>;
89
+ /**
90
+ * When true, credits spent on a generation with this model are not automatically
91
+ * refunded if the generation fails. Absent or false means failed generations are
92
+ * refunded as usual.
93
+ */
94
+ disableRefund?: boolean;
95
+ /**
96
+ * The epoch of the model. Only available for Flux Lora Trained models. If not set,
97
+ * uses the final model epoch (latest)
98
+ */
99
+ epoch?: string;
100
+ /**
101
+ * The epochs of the model. Only available for Flux Lora Trained models.
102
+ */
103
+ epochs?: Array<RecommendationListModelsResponse.Epoch>;
104
+ /**
105
+ * The inputs of the model. Only used for custom models. To retrieve this list, get
106
+ * it by modelId with GET /models/{modelId}
107
+ */
108
+ inputs?: Array<RecommendationListModelsResponse.Input>;
109
+ /**
110
+ * The ID of the job that trained the model, returned to the model owner only
111
+ * (example: "job_ocZCnG1Df35XRL1QyCZSRxAG8")
112
+ */
113
+ jobId?: string;
114
+ /**
115
+ * The model keyword, this is a legacy parameter, please use conceptPrompt in
116
+ * parameters
117
+ */
118
+ modelKeyword?: string;
119
+ /**
120
+ * The model name (example: "Cinematic Realism")
121
+ */
122
+ name?: string;
123
+ /**
124
+ * Fine-tune the model's inferences with negative prompt embedding
125
+ */
126
+ negativePromptEmbedding?: string;
127
+ /**
128
+ * The owner ID (example: "team_VFhihHKMRZyDDnZAJwLb2Q")
129
+ */
130
+ ownerId?: string;
131
+ /**
132
+ * The parameters of the model
133
+ */
134
+ parameters?: RecommendationListModelsResponse.Parameters;
135
+ /**
136
+ * The id of the parent model
137
+ */
138
+ parentModelId?: string;
139
+ /**
140
+ * Aggregated performance stats
141
+ */
142
+ performanceStats?: RecommendationListModelsResponse.PerformanceStats;
143
+ /**
144
+ * Fine-tune the model's inferences with prompt embedding
145
+ */
146
+ promptEmbedding?: string;
147
+ /**
148
+ * The model short description (example: "This model generates highly detailed
149
+ * cinematic scenes.")
150
+ */
151
+ shortDescription?: string;
152
+ /**
153
+ * The date when the model will be soft deleted (only for Free plan)
154
+ */
155
+ softDeletionOn?: string;
156
+ /**
157
+ * A thumbnail for your model
158
+ */
159
+ thumbnail?: RecommendationListModelsResponse.Thumbnail;
160
+ /**
161
+ * Array of training image pairs
162
+ */
163
+ trainingImagePairs?: Array<RecommendationListModelsResponse.TrainingImagePair>;
164
+ /**
165
+ * The URLs of the first 3 training images of the model. To retrieve the full set
166
+ * of images, get it by modelId
167
+ */
168
+ trainingImages?: Array<RecommendationListModelsResponse.TrainingImage>;
169
+ /**
170
+ * Additional information about the training progress of the model
171
+ */
172
+ trainingProgress?: RecommendationListModelsResponse.TrainingProgress;
173
+ /**
174
+ * Additional information about the model's training
175
+ */
176
+ trainingStats?: RecommendationListModelsResponse.TrainingStats;
177
+ /**
178
+ * The UI configuration for the model
179
+ */
180
+ uiConfig?: RecommendationListModelsResponse.UiConfig;
181
+ /**
182
+ * (Deprecated) The user ID (example: "user_VFhihHKMRZyDDnZAJwLb2Q")
183
+ */
184
+ userId?: string;
185
+ }
186
+ export declare namespace RecommendationListModelsResponse {
187
+ /**
188
+ * The class of the model
189
+ */
190
+ interface Class {
191
+ /**
192
+ * The category slug of the class (example: "art-style")
193
+ */
194
+ category: string;
195
+ /**
196
+ * The concept prompt of the class (example: "a sks character design")
197
+ */
198
+ conceptPrompt: string;
199
+ /**
200
+ * The model ID of the class. Only available for legacy models.
201
+ */
202
+ modelId: string;
203
+ /**
204
+ * The class name (example: "Character Design")
205
+ */
206
+ name: string;
207
+ /**
208
+ * The class prompt (example: "a character design")
209
+ */
210
+ prompt: string;
211
+ /**
212
+ * The class slug (example: "art-style-character-design")
213
+ */
214
+ slug: string;
215
+ /**
216
+ * The class status (only published classes are listed, but unpublished classes can
217
+ * still appear in existing models)
218
+ */
219
+ status: 'published' | 'unpublished';
220
+ /**
221
+ * Some example images URLs to showcase the class
222
+ */
223
+ thumbnails: Array<string>;
224
+ }
225
+ interface Concept {
226
+ /**
227
+ * The model ID (example: "model_eyVcnFJcR92BxBkz7N6g5w")
228
+ */
229
+ modelId: string;
230
+ /**
231
+ * The scale of the model (example: 1.0) For Flux Kontext Prompt Editing, the scale
232
+ * is between 0 and 2.
233
+ */
234
+ scale: number;
235
+ /**
236
+ * The epoch of the model (example: "000001") Only available for Flux Lora Trained
237
+ * models
238
+ */
239
+ modelEpoch?: string;
240
+ }
241
+ interface Epoch {
242
+ /**
243
+ * The epoch hash to identify the epoch
244
+ */
245
+ epoch: string;
246
+ /**
247
+ * The assets of the epoch if sample prompts as been supplied during training
248
+ */
249
+ assets?: Array<Epoch.Asset>;
250
+ }
251
+ namespace Epoch {
252
+ interface Asset {
253
+ /**
254
+ * The AssetId of the image during training (example:
255
+ * "asset_GTrL3mq4SXWyMxkOHRxlpw")
256
+ */
257
+ assetId: string;
258
+ /**
259
+ * The url of the asset
260
+ */
261
+ url: string;
262
+ }
263
+ }
264
+ /**
265
+ * Defines the input parameters for a model. Use this to understand the available
266
+ * input parameters for a given `modelId` when calling
267
+ * `POST /generate/custom/{modelId}`. See {@link
268
+ * https://docs.scenario.com/get-started/generation/video-generation} for examples.
269
+ */
270
+ interface Input {
271
+ /**
272
+ * The name that must be user to call the model through the API
273
+ */
274
+ name: string;
275
+ /**
276
+ * The data type of the input
277
+ */
278
+ type: 'boolean' | 'file' | 'file_array' | 'inputs_array' | 'model' | 'model_array' | 'number' | 'number_array' | 'string' | 'string_array';
279
+ /**
280
+ * The allowed values for the input. For \`string\` or \`number\` types, creates a
281
+ * single-select dropdown. For \`string_array\` type, creates a multi-select
282
+ * dropdown.
283
+ */
284
+ allowedValues?: Array<unknown>;
285
+ /**
286
+ * Specifies the background behavior for the input. Only available for \`file\` and
287
+ * \`file_array\` input types with kind \`image\`.
288
+ */
289
+ backgroundBehavior?: 'opaque' | 'transparent';
290
+ /**
291
+ * Whether the input is a color or not. Only available for \`string\` input type.
292
+ */
293
+ color?: boolean;
294
+ /**
295
+ * Whether this input affects the model's cost calculation
296
+ */
297
+ costImpact?: boolean;
298
+ /**
299
+ * The default value for the input
300
+ */
301
+ default?: unknown;
302
+ /**
303
+ * Help text displayed in the UI to provide additional information about the input
304
+ */
305
+ description?: string;
306
+ /**
307
+ * Used to visually group inputs together in the UI. Inputs with the same group
308
+ * value appear consecutively in the UI.
309
+ */
310
+ group?: string;
311
+ /**
312
+ * Hint text displayed in the UI as a tooltip to guide the user
313
+ */
314
+ hint?: string;
315
+ /**
316
+ * The list of inputs which form an object within a container array. All inputs are
317
+ * the same as the current object. This is only available for type inputs_array
318
+ * inputs.
319
+ */
320
+ inputs?: Array<{
321
+ [key: string]: unknown;
322
+ }>;
323
+ /**
324
+ * The asset kind of the input. Only taken into account for \`file\` and
325
+ * \`file_array\` input types. If model provides multiple kinds, the input will be
326
+ * not able to create the asset on the flight on API side with dataurl without
327
+ * data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
328
+ * a model does not declare one, \`image\` is returned, which is the kind used at
329
+ * generation time.
330
+ */
331
+ kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
332
+ /**
333
+ * The label displayed in the UI for this input
334
+ */
335
+ label?: string;
336
+ /**
337
+ * The name of the file input field to use as the mask source
338
+ */
339
+ maskFrom?: string;
340
+ /**
341
+ * The maximum allowed value. Only available for \`number\` and \`array\` input
342
+ * types.
343
+ */
344
+ max?: number;
345
+ /**
346
+ * The maximum allowed media duration in seconds. Only applies to \`file\` and
347
+ * \`file_array\` input types for video and audio assets. Validated against
348
+ * \`asset.properties.duration\` at job creation time.
349
+ */
350
+ maxDuration?: number;
351
+ /**
352
+ * The maximum allowed length for \`string\` and \`model\` inputs, in characters.
353
+ * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
354
+ * ITEMS instead — the length of each item is not constrained.
355
+ */
356
+ maxLength?: number;
357
+ /**
358
+ * The maximum allowed file size in bytes. Only applies to \`file\` and
359
+ * \`file_array\` input types. Validated against \`asset.properties.size\` at job
360
+ * creation time.
361
+ */
362
+ maxSize?: number;
363
+ /**
364
+ * The minimum allowed value. Only available for \`number\` and array input types.
365
+ */
366
+ min?: number;
367
+ /**
368
+ * The minimum allowed length for \`string\` and \`model\` inputs, in characters.
369
+ * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
370
+ * ITEMS instead — the length of each item is not constrained.
371
+ */
372
+ minLength?: number;
373
+ /**
374
+ * The allowed model types for this input. Example: \`["flux.1-lora"]\`. Only
375
+ * available for \`model_array\` input type.
376
+ */
377
+ modelTypes?: Array<'custom' | 'elevenlabs-voice' | 'flux.1' | 'flux.1-composition' | 'flux.1-kontext-dev' | 'flux.1-kontext-lora' | 'flux.1-krea-dev' | 'flux.1-krea-lora' | 'flux.1-lora' | 'flux.1-pro' | 'flux.1.1-pro-ultra' | 'flux.2-dev-edit-lora' | 'flux.2-dev-lora' | 'flux.2-klein-4b-edit-lora' | 'flux.2-klein-4b-lora' | 'flux.2-klein-9b-edit-lora' | 'flux.2-klein-9b-lora' | 'flux.2-klein-base-4b-edit-lora' | 'flux.2-klein-base-4b-lora' | 'flux.2-klein-base-9b-edit-lora' | 'flux.2-klein-base-9b-lora' | 'flux1.1-pro' | 'gpt-image-1' | 'qwen-image-2512-lora' | 'qwen-image-edit-2509-lora' | 'qwen-image-edit-2511-lora' | 'qwen-image-edit-lora' | 'qwen-image-lora' | 'zimage-de-turbo-lora' | 'zimage-lora' | 'zimage-turbo-lora'>;
378
+ /**
379
+ * Whether this input represents a parent asset to assign to the produced assets.
380
+ * Only available for \`file\` and \`file_array\` input types.
381
+ *
382
+ * For \`file_array\`, the parent asset is the first item in the array.
383
+ */
384
+ parent?: boolean;
385
+ /**
386
+ * Placeholder text for the input. Only available for 'string' input type.
387
+ */
388
+ placeholder?: string;
389
+ /**
390
+ * Whether the input is a prompt. When true, displays as a text area with prompt
391
+ * spark feature. Only available for \`string\` input type.
392
+ */
393
+ prompt?: boolean;
394
+ /**
395
+ * Whether the input is used with prompt spark. Only available for \`string\` input
396
+ * type.
397
+ */
398
+ promptSpark?: boolean;
399
+ /**
400
+ * Set of rules that describes when this input is required:
401
+ *
402
+ * - \`always\`: Input is always required
403
+ * - \`ifNotDefined\`: Input is required when another specified input is not
404
+ * defined
405
+ * - \`ifDefined\`: Input is required when another specified input is defined
406
+ * - \`conditional\`: Input is required when other inputs have specific values
407
+ *
408
+ * By default, the input is not required.
409
+ */
410
+ required?: Input.Required;
411
+ /**
412
+ * The step increment for numeric inputs. Only available for \`number\` input type.
413
+ */
414
+ step?: number;
415
+ }
416
+ namespace Input {
417
+ /**
418
+ * Set of rules that describes when this input is required:
419
+ *
420
+ * - \`always\`: Input is always required
421
+ * - \`ifNotDefined\`: Input is required when another specified input is not
422
+ * defined
423
+ * - \`ifDefined\`: Input is required when another specified input is defined
424
+ * - \`conditional\`: Input is required when other inputs have specific values
425
+ *
426
+ * By default, the input is not required.
427
+ */
428
+ interface Required {
429
+ /**
430
+ * Whether the input is always required
431
+ */
432
+ always?: boolean;
433
+ /**
434
+ * Makes this input required when other inputs have one of the listed values
435
+ */
436
+ conditional?: Required.Conditional;
437
+ /**
438
+ * Makes this input required when another input is defined:
439
+ *
440
+ * - Key: name of the input that must be defined
441
+ * - Value: message to display when this input is required
442
+ */
443
+ ifDefined?: unknown;
444
+ /**
445
+ * Makes this input required when another input is not defined:
446
+ *
447
+ * - Key: name of the input that must be undefined
448
+ * - Value: message to display when this input is required
449
+ */
450
+ ifNotDefined?: unknown;
451
+ }
452
+ namespace Required {
453
+ /**
454
+ * Makes this input required when other inputs have one of the listed values
455
+ */
456
+ interface Conditional {
457
+ /**
458
+ * The conditions to check:
459
+ *
460
+ * - Key: name of the input to check
461
+ * - Value: values of that input that satisfy the condition
462
+ */
463
+ values: unknown;
464
+ /**
465
+ * How the conditions combine: \`and\` (all must match) or \`or\` (any must match)
466
+ */
467
+ operator?: 'and' | 'or';
468
+ }
469
+ }
470
+ }
471
+ /**
472
+ * The parameters of the model
473
+ */
474
+ interface Parameters {
475
+ /**
476
+ * Age group of the voice (for professional cloning)
477
+ *
478
+ * Only available for ElevenLabs voice training
479
+ */
480
+ age?: string;
481
+ /**
482
+ * The batch size Less steps, and will increase the learning rate
483
+ *
484
+ * Only available for Flux LoRA training
485
+ */
486
+ batchSize?: number;
487
+ /**
488
+ * The prompt to specify images in the same class as provided instance images
489
+ *
490
+ * Deprecated legacy training parameter.
491
+ */
492
+ classPrompt?: string;
493
+ /**
494
+ * Type of voice cloning: "instant" (fast) or "professional" (higher quality,
495
+ * requires captcha)
496
+ *
497
+ * Only available for ElevenLabs voice training
498
+ */
499
+ cloneType?: string;
500
+ /**
501
+ * The prompt with identifier specifying the instance (or subject) of the class
502
+ * (example: "a daiton dog")
503
+ *
504
+ * Default value varies depending on the model type. For Flux LoRA, the default is
505
+ * an empty string.
506
+ */
507
+ conceptPrompt?: string;
508
+ /**
509
+ * Gender of the voice (for professional cloning)
510
+ *
511
+ * Only available for ElevenLabs voice training
512
+ */
513
+ gender?: string;
514
+ /**
515
+ * Language of the audio samples (ISO 639-1 code)
516
+ *
517
+ * Only available for ElevenLabs voice training
518
+ */
519
+ language?: string;
520
+ /**
521
+ * Initial learning rate (after the potential warmup period)
522
+ *
523
+ * Default value varies depending on the model type. For Flux LoRA, the default is
524
+ * 0.0001.
525
+ */
526
+ learningRate?: number;
527
+ /**
528
+ * Initial learning rate (after the potential warmup period) for the text encoder
529
+ *
530
+ * Maximum [Flux LoRA: 0.001] Default [Flux LoRA: 0.00001] Minimum [Flux LoRA:
531
+ * 0.000001]
532
+ */
533
+ learningRateTextEncoder?: number;
534
+ /**
535
+ * Initial learning rate (after the potential warmup period) for the UNet
536
+ *
537
+ * Deprecated legacy training parameter.
538
+ */
539
+ learningRateUnet?: number;
540
+ /**
541
+ * The scheduler type to use (default: "constant")
542
+ *
543
+ * Deprecated legacy training parameter.
544
+ */
545
+ lrScheduler?: 'constant' | 'constant-with-warmup' | 'cosine' | 'cosine-with-restarts' | 'linear' | 'polynomial';
546
+ /**
547
+ * Maximum number of training steps to execute (default: varies depending on the
548
+ * model type)
549
+ *
550
+ * Default value varies depending on the model type:
551
+ *
552
+ * - For Flux: number of training images \* 100
553
+ *
554
+ * Maximum value varies depending on the model type:
555
+ *
556
+ * - For Flux: [0, 10000]
557
+ */
558
+ maxTrainSteps?: number;
559
+ /**
560
+ * The number of epochs to train for
561
+ *
562
+ * Only available for Flux LoRA training
563
+ */
564
+ nbEpochs?: number;
565
+ /**
566
+ * The number of times to repeat the training
567
+ *
568
+ * Only available for Flux LoRA training
569
+ */
570
+ nbRepeats?: number;
571
+ /**
572
+ * The number of training steps for the text encoder
573
+ *
574
+ * Deprecated legacy training parameter.
575
+ */
576
+ numTextTrainSteps?: number;
577
+ /**
578
+ * The number of training steps for the UNet
579
+ *
580
+ * Deprecated legacy training parameter.
581
+ */
582
+ numUNetTrainSteps?: number;
583
+ /**
584
+ * Optimize the model training task for a specific type of input images. The
585
+ * available values are:
586
+ *
587
+ * - "likeness": optimize training for likeness or portrait (targets specific
588
+ * transformer blocks)
589
+ * - "all": train all transformer blocks
590
+ * - "none": train no specific transformer blocks
591
+ *
592
+ * This parameter controls which double and single transformer blocks are trained
593
+ * during the LoRA training process.
594
+ *
595
+ * Only available for Flux LoRA training
596
+ */
597
+ optimizeFor?: 'likeness';
598
+ /**
599
+ * The weight of prior preservation loss
600
+ *
601
+ * Deprecated legacy training parameter.
602
+ */
603
+ priorLossWeight?: number;
604
+ /**
605
+ * Whether to random crop or center crop images before resizing to the working
606
+ * resolution
607
+ *
608
+ * Deprecated legacy training parameter.
609
+ */
610
+ randomCrop?: boolean;
611
+ /**
612
+ * Ratio of random crops
613
+ *
614
+ * Deprecated legacy training parameter.
615
+ */
616
+ randomCropRatio?: number;
617
+ /**
618
+ * Scale of random crops
619
+ *
620
+ * Deprecated legacy training parameter.
621
+ */
622
+ randomCropScale?: number;
623
+ /**
624
+ * The dimension of the LoRA update matrices
625
+ *
626
+ * Only available for Flux LoRA and Musubi training
627
+ *
628
+ * Default value varies depending on the model type:
629
+ *
630
+ * - For Flux: 16
631
+ * - For Musubi: 64
632
+ *
633
+ * Each trainer enforces its own tighter limit (Flux LoRA: [2; 64], Musubi: [2;
634
+ * 128])
635
+ */
636
+ rank?: number;
637
+ /**
638
+ * Whether to remove background noise from audio samples before cloning. When
639
+ * enabled, each sample must be at least 5 seconds long.
640
+ *
641
+ * Only available for ElevenLabs voice training
642
+ */
643
+ removeBackgroundNoise?: boolean;
644
+ /**
645
+ * The prompts to use for each epoch Only available for Flux LoRA training
646
+ */
647
+ samplePrompts?: Array<string>;
648
+ /**
649
+ * The sample prompt images (AssetIds) paired with samplePrompts Only available for
650
+ * Flux LoRA training Must be the same length as samplePrompts
651
+ */
652
+ sampleSourceImages?: Array<string>;
653
+ /**
654
+ * Whether to scale the learning rate
655
+ *
656
+ * Note: Legacy parameter, will be ignored
657
+ *
658
+ * Deprecated legacy training parameter.
659
+ */
660
+ scaleLr?: boolean;
661
+ /**
662
+ * Used to reproduce previous results. Default: randomly generated number.
663
+ *
664
+ * Deprecated legacy training parameter.
665
+ */
666
+ seed?: number;
667
+ /**
668
+ * Whether to train the text encoder or not
669
+ *
670
+ * Example: For 100 steps and a value of 0.2, it means that the text encoder will
671
+ * be trained for 20 steps and then the UNet for 80 steps
672
+ *
673
+ * Note: Legacy parameter, please use `numTextTrainSteps` and `numUNetTrainSteps`
674
+ *
675
+ * Deprecated legacy training parameter.
676
+ */
677
+ textEncoderTrainingRatio?: number;
678
+ /**
679
+ * Validation frequency. Cannot be greater than maxTrainSteps value
680
+ *
681
+ * Deprecated legacy training parameter.
682
+ */
683
+ validationFrequency?: number;
684
+ /**
685
+ * Validation prompt
686
+ *
687
+ * Deprecated legacy training parameter.
688
+ */
689
+ validationPrompt?: string;
690
+ /**
691
+ * Description of the voice characteristics
692
+ *
693
+ * Only available for ElevenLabs voice training
694
+ */
695
+ voiceDescription?: string;
696
+ /**
697
+ * The Weights And Bias key to use for logging. The maximum length is 40 characters
698
+ */
699
+ wandbKey?: string;
700
+ }
701
+ /**
702
+ * Aggregated performance stats
703
+ */
704
+ interface PerformanceStats {
705
+ /**
706
+ * Performance metrics per variant
707
+ */
708
+ variants: Array<PerformanceStats.Variant>;
709
+ /**
710
+ * Default variant key for quick model comparison
711
+ */
712
+ default?: string;
713
+ }
714
+ namespace PerformanceStats {
715
+ /**
716
+ * Performance stats for a model variant
717
+ */
718
+ interface Variant {
719
+ /**
720
+ * The generation capability (example: "txt2img", "img2video", "txt2audio")
721
+ */
722
+ capability: string;
723
+ /**
724
+ * When these stats were last computed (ISO date)
725
+ */
726
+ computedAt: string;
727
+ /**
728
+ * Unique variant identifier (example: "txt2img:1K", "img2video:2K", "txt2audio")
729
+ */
730
+ variantKey: string;
731
+ /**
732
+ * External quality score from arena.ai leaderboard
733
+ */
734
+ arenaScore?: Variant.ArenaScore;
735
+ /**
736
+ * Maximum cost per output asset (CU)
737
+ */
738
+ costPerAssetMaxCU?: number;
739
+ /**
740
+ * Minimum cost per output asset (CU)
741
+ */
742
+ costPerAssetMinCU?: number;
743
+ /**
744
+ * Median cost per output asset (CU)
745
+ */
746
+ costPerAssetP50CU?: number;
747
+ /**
748
+ * Inference latency P50 per output asset (seconds)
749
+ */
750
+ inferenceLatencyP50Sec?: number;
751
+ /**
752
+ * Inference latency P75 per output asset (seconds)
753
+ */
754
+ inferenceLatencyP75Sec?: number;
755
+ /**
756
+ * The resolution bucket (example: "0.5K", "1K", "2K", "4K")
757
+ */
758
+ resolution?: string;
759
+ /**
760
+ * Total latency P50 per output asset, including queue time (seconds)
761
+ */
762
+ totalLatencyP50Sec?: number;
763
+ /**
764
+ * Total latency P75 per output asset, including queue time (seconds)
765
+ */
766
+ totalLatencyP75Sec?: number;
767
+ }
768
+ namespace Variant {
769
+ /**
770
+ * External quality score from arena.ai leaderboard
771
+ */
772
+ interface ArenaScore {
773
+ /**
774
+ * Arena category (example: "text_to_image", "image_to_video")
775
+ */
776
+ arenaCategory: string;
777
+ /**
778
+ * Model name on arena.ai
779
+ */
780
+ arenaModelName: string;
781
+ /**
782
+ * When this score was last fetched (ISO date)
783
+ */
784
+ fetchedAt: string;
785
+ /**
786
+ * Rank in the arena category
787
+ */
788
+ rank: number;
789
+ /**
790
+ * ELO rating
791
+ */
792
+ rating: number;
793
+ /**
794
+ * ELO rating confidence interval lower bound
795
+ */
796
+ ratingLower: number;
797
+ /**
798
+ * ELO rating confidence interval upper bound
799
+ */
800
+ ratingUpper: number;
801
+ /**
802
+ * Number of human votes
803
+ */
804
+ votes: number;
805
+ }
806
+ }
807
+ }
808
+ /**
809
+ * A thumbnail for your model
810
+ */
811
+ interface Thumbnail {
812
+ /**
813
+ * The AssetId of the image used as a thumbnail for your model (example:
814
+ * "asset_GTrL3mq4SXWyMxkOHRxlpw")
815
+ */
816
+ assetId: string;
817
+ /**
818
+ * The url of the image used as a thumbnail for your model
819
+ */
820
+ url: string;
821
+ }
822
+ interface TrainingImagePair {
823
+ /**
824
+ * The instruction for the image pair, source to target
825
+ */
826
+ instruction?: string;
827
+ /**
828
+ * The source asset ID (must be a training asset)
829
+ */
830
+ sourceId?: string;
831
+ /**
832
+ * The target asset ID (must be a training asset)
833
+ */
834
+ targetId?: string;
835
+ }
836
+ interface TrainingImage {
837
+ /**
838
+ * The training image ID (example: "asset_GTrL3mq4SXWyMxkOHRxlpw")
839
+ */
840
+ id: string;
841
+ /**
842
+ * Automatic captioning of the image
843
+ */
844
+ automaticCaptioning: string;
845
+ /**
846
+ * The training image upload date as an ISO string (example:
847
+ * "2023-02-03T11:19:41.579Z")
848
+ */
849
+ createdAt: string;
850
+ /**
851
+ * Description for the image
852
+ */
853
+ description: string;
854
+ /**
855
+ * The URL of the image
856
+ */
857
+ downloadUrl: string;
858
+ /**
859
+ * The original file name of the image (example: "my-training-image.jpg")
860
+ */
861
+ name: string;
862
+ }
863
+ /**
864
+ * Additional information about the training progress of the model
865
+ */
866
+ interface TrainingProgress {
867
+ /**
868
+ * The stage of the request
869
+ */
870
+ stage: 'pending' | 'pending-captcha' | 'queued-for-train' | 'ready-for-captcha' | 'running-train' | 'starting-train';
871
+ /**
872
+ * Timestamp in milliseconds of the last time the training progress was updated
873
+ */
874
+ updatedAt: number;
875
+ /**
876
+ * Signed URL of the captcha image to read aloud during PVC voice cloning. Only
877
+ * present when stage === 'pending-captcha'. Overwritten on each retry.
878
+ */
879
+ captchaImageUrl?: string;
880
+ /**
881
+ * Position of the job in the queue (ie. the number of job in the queue before this
882
+ * one)
883
+ */
884
+ position?: number;
885
+ /**
886
+ * The progress of the job
887
+ */
888
+ progress?: number;
889
+ /**
890
+ * The remaining time in milliseconds
891
+ */
892
+ remainingTimeMs?: number;
893
+ /**
894
+ * Last recoverable failure message during PVC. Present when the model has bounced
895
+ * back to stage === 'ready-for-captcha' after a step 2 or step 3 failure (e.g.
896
+ * captcha rejected, time limit exceeded). Surface above the retry button so the
897
+ * user understands why they're back here.
898
+ */
899
+ retryableError?: string;
900
+ /**
901
+ * Number of consecutive PVC step 2 / step 3 failures on this voice model. The
902
+ * model is marked Failed when this reaches the platform's max retries.
903
+ */
904
+ retryCount?: number;
905
+ /**
906
+ * The timestamp in millisecond marking the start of the process
907
+ */
908
+ startedAt?: number;
909
+ }
910
+ /**
911
+ * Additional information about the model's training
912
+ */
913
+ interface TrainingStats {
914
+ /**
915
+ * The training end time as an ISO date string
916
+ */
917
+ endedAt?: string;
918
+ /**
919
+ * The training queued duration in seconds
920
+ */
921
+ queueDuration?: number;
922
+ /**
923
+ * The training start time as an ISO date string
924
+ */
925
+ startedAt?: string;
926
+ /**
927
+ * The training duration in seconds
928
+ */
929
+ trainDuration?: number;
930
+ }
931
+ /**
932
+ * The UI configuration for the model
933
+ */
934
+ interface UiConfig {
935
+ /**
936
+ * Configuration for the input properties
937
+ */
938
+ inputProperties?: {
939
+ [key: string]: UiConfig.InputProperties;
940
+ };
941
+ /**
942
+ * Configuration for the loras component
943
+ */
944
+ lorasComponent?: UiConfig.LorasComponent;
945
+ /**
946
+ * Configuration for the provider outputs exposed by `exposeOutput`
947
+ */
948
+ outputProperties?: {
949
+ [key: string]: UiConfig.OutputProperties;
950
+ };
951
+ /**
952
+ * Configuration for the presets
953
+ */
954
+ presets?: Array<UiConfig.Preset>;
955
+ /**
956
+ * Configuration for the resolution component
957
+ */
958
+ resolutionComponent?: UiConfig.ResolutionComponent;
959
+ /**
960
+ * Configuration for the selects
961
+ */
962
+ selects?: {
963
+ [key: string]: unknown;
964
+ };
965
+ /**
966
+ * Configuration for the trigger generate button
967
+ */
968
+ triggerGenerate?: UiConfig.TriggerGenerate;
969
+ }
970
+ namespace UiConfig {
971
+ interface InputProperties {
972
+ collapsed?: boolean;
973
+ }
974
+ /**
975
+ * Configuration for the loras component
976
+ */
977
+ interface LorasComponent {
978
+ /**
979
+ * The label of the component
980
+ */
981
+ label: string;
982
+ /**
983
+ * The input name of the model (model_array)
984
+ */
985
+ modelInput: string;
986
+ /**
987
+ * The input name of the scale (number_array)
988
+ */
989
+ scaleInput: string;
990
+ /**
991
+ * The input model id (example: a composition or a single LoRA modelId) If
992
+ * specified, the model id will be attached to the output asset as a metadata If
993
+ * the model-decomposer parser is specified on it, modelInput and scaleInput will
994
+ * be automatically populated
995
+ */
996
+ modelIdInput?: string;
997
+ }
998
+ interface OutputProperties {
999
+ label: string;
1000
+ }
1001
+ interface Preset {
1002
+ fields: Array<string>;
1003
+ presets: unknown;
1004
+ }
1005
+ /**
1006
+ * Configuration for the resolution component
1007
+ */
1008
+ interface ResolutionComponent {
1009
+ /**
1010
+ * The input name of the height
1011
+ */
1012
+ heightInput: string;
1013
+ /**
1014
+ * The label of the component
1015
+ */
1016
+ label: string;
1017
+ /**
1018
+ * The resolution presets
1019
+ */
1020
+ presets: Array<ResolutionComponent.Preset>;
1021
+ /**
1022
+ * The input name of the width
1023
+ */
1024
+ widthInput: string;
1025
+ }
1026
+ namespace ResolutionComponent {
1027
+ interface Preset {
1028
+ height: number;
1029
+ label: string;
1030
+ width: number;
1031
+ }
1032
+ }
1033
+ /**
1034
+ * Configuration for the trigger generate button
1035
+ */
1036
+ interface TriggerGenerate {
1037
+ label: string;
1038
+ /**
1039
+ * The 'name' of the input where the trigger generate button will be displayed
1040
+ * (after the input). Do not specify both position and after.
1041
+ */
1042
+ after?: string;
1043
+ /**
1044
+ * The position of the trigger generate button. If position specified, the button
1045
+ * will be displayed at the specified position. Do not specify both position and
1046
+ * after.
1047
+ */
1048
+ position?: 'bottom' | 'top';
1049
+ }
1050
+ }
1051
+ }
1052
+ export interface RecommendationListModelsParams extends RecommendationsCursorParams {
1053
+ /**
1054
+ * Filter models by capabilities. Multiple values comma-separated. Can be any of
1055
+ * the following values: txt2img, txt2img_ip_adapter, txt2img_texture, img2img,
1056
+ * img2img_ip_adapter, img2img_texture, inpaint, outpaint, inpaint_ip_adapter,
1057
+ * controlnet, controlnet_ip_adapter, reference, reference_texture,
1058
+ * controlnet_reference, controlnet_img2img, controlnet_inpaint,
1059
+ * controlnet_inpaint_ip_adapter, controlnet_texture, img23d, txt23d, video23d,
1060
+ * 3d23d, img2video, txt2video, video2video, video2img, txt2audio, audio2audio,
1061
+ * audio2video, video2audio, txt2txt, img2txt, audio2txt. Examples: `txt2img`,
1062
+ * `img2img`. Also accepts prefixes or suffixes values such as `txt2`, `img2`,
1063
+ * `inpaint`, `control`. Default: no filter
1064
+ */
1065
+ capabilities?: Array<'txt2img' | 'txt2img_ip_adapter' | 'txt2img_texture' | 'img2img' | 'img2img_ip_adapter' | 'img2img_texture' | 'inpaint' | 'outpaint' | 'inpaint_ip_adapter' | 'controlnet' | 'controlnet_ip_adapter' | 'reference' | 'reference_texture' | 'controlnet_reference' | 'controlnet_img2img' | 'controlnet_inpaint' | 'controlnet_inpaint_ip_adapter' | 'controlnet_texture' | 'img23d' | 'txt23d' | 'video23d' | '3d23d' | 'img2video' | 'txt2video' | 'video2video' | 'video2img' | 'txt2audio' | 'audio2audio' | 'audio2video' | 'video2audio' | 'txt2txt' | 'img2txt' | 'audio2txt'>;
1066
+ /**
1067
+ * Exclude specific models by their IDs. Multiple IDs comma-separated. Example:
1068
+ * `model1,model2,model3`. Default: no exclusions
1069
+ */
1070
+ excludeModelIds?: string;
1071
+ /**
1072
+ * Exclude models by type. Multiple types comma-separated. Example:
1073
+ * `flux.1,flux.1-lora`. Default: no exclusions
1074
+ */
1075
+ excludeTypes?: string;
1076
+ /**
1077
+ * The maximum number of models to return. Default: `10`, Maximum: `30`
1078
+ */
1079
+ limit?: number;
1080
+ /**
1081
+ * If set to true, returns the original asset without transformation
1082
+ */
1083
+ originalAssets?: boolean;
1084
+ /**
1085
+ * Filter models by privacy level. Default: `private`. Values: `private`, `public`
1086
+ */
1087
+ privacy?: 'private' | 'public';
1088
+ /**
1089
+ * The projectId used for ownership resource management. Either to assert ownership
1090
+ * or to set the owner of the resource(s)
1091
+ */
1092
+ projectId?: string;
1093
+ /**
1094
+ * Filter models by tags. Multiple tags comma-separated. Example:
1095
+ * `anime,portrait,style`. Default: no filter
1096
+ */
1097
+ tags?: string;
1098
+ /**
1099
+ * Filter models by type. Examples: `flux.1`, `flux.1-lora`, etc. Default: no
1100
+ * filter
1101
+ */
1102
+ type?: 'flux.1' | 'flux.1-lora' | 'flux.1-kontext-dev' | 'flux.1-krea-dev' | 'flux.1-kontext-lora' | 'flux.1-krea-lora' | 'flux.1-composition' | 'flux.1-pro' | 'flux1.1-pro' | 'flux.1.1-pro-ultra' | 'flux.2-dev-lora' | 'flux.2-dev-edit-lora' | 'flux.2-klein-4b-lora' | 'flux.2-klein-9b-lora' | 'flux.2-klein-base-4b-lora' | 'flux.2-klein-base-9b-lora' | 'flux.2-klein-4b-edit-lora' | 'flux.2-klein-9b-edit-lora' | 'flux.2-klein-base-4b-edit-lora' | 'flux.2-klein-base-9b-edit-lora' | 'gpt-image-1' | 'qwen-image-lora' | 'qwen-image-2512-lora' | 'qwen-image-edit-lora' | 'qwen-image-edit-2509-lora' | 'qwen-image-edit-2511-lora' | 'zimage-lora' | 'zimage-turbo-lora' | 'zimage-de-turbo-lora' | 'custom' | 'elevenlabs-voice';
1103
+ }
1104
+ export declare namespace Recommendations {
1105
+ export { type RecommendationListModelsResponse as RecommendationListModelsResponse, type RecommendationListModelsResponsesRecommendationsCursor as RecommendationListModelsResponsesRecommendationsCursor, type RecommendationListModelsParams as RecommendationListModelsParams, };
1106
+ }
1107
+ //# sourceMappingURL=recommendations.d.ts.map