@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
@@ -3,6 +3,12 @@ import * as DescriptionAPI from "./description.mjs";
3
3
  import { Description, DescriptionRetrieveParams, DescriptionRetrieveResponse, DescriptionUpdateParams, DescriptionUpdateResponse } from "./description.mjs";
4
4
  import * as ExamplesAPI from "./examples.mjs";
5
5
  import { ExampleListParams, ExampleListResponse, ExampleUpdateParams, ExampleUpdateResponse, Examples } from "./examples.mjs";
6
+ import * as PresetsAPI from "./presets.mjs";
7
+ import { PresetCreateParams, PresetCreateResponse, PresetDeleteParams, PresetDeleteResponse, PresetListParams, PresetListResponse, PresetUpdateParams, PresetUpdateResponse, Presets } from "./presets.mjs";
8
+ import * as PromptGuideAPI from "./prompt-guide.mjs";
9
+ import { PromptGuide, PromptGuideRetrieveParams, PromptGuideRetrieveResponse, PromptGuideUpdateParams, PromptGuideUpdateResponse } from "./prompt-guide.mjs";
10
+ import * as ScoresAPI from "./scores.mjs";
11
+ import { ScoreRetrievePromptParams, ScoreRetrievePromptResponse, ScoreRetrieveTrainingDatasetParams, ScoreRetrieveTrainingDatasetResponse, Scores } from "./scores.mjs";
6
12
  import * as TrainAPI from "./train.mjs";
7
13
  import { Train, TrainActionParams, TrainActionResponse, TrainTriggerParams, TrainTriggerResponse } from "./train.mjs";
8
14
  import * as TrainingImagesAPI from "./training-images.mjs";
@@ -13,6 +19,9 @@ import { RequestOptions } from "../../internal/request-options.mjs";
13
19
  export declare class Models extends APIResource {
14
20
  description: DescriptionAPI.Description;
15
21
  examples: ExamplesAPI.Examples;
22
+ presets: PresetsAPI.Presets;
23
+ promptGuide: PromptGuideAPI.PromptGuide;
24
+ scores: ScoresAPI.Scores;
16
25
  train: TrainAPI.Train;
17
26
  trainingImages: TrainingImagesAPI.TrainingImages;
18
27
  /**
@@ -128,8 +137,8 @@ export declare namespace ModelCreateResponse {
128
137
  */
129
138
  updatedAt: string;
130
139
  /**
131
- * The access restrictions of the model 0: Free plan 25: Creator plan 50: Pro plan
132
- * 75: Team plan 100: Enterprise plan
140
+ * The access restrictions of the model 0: Free plan 25: Starter plan 50: Pro plan
141
+ * 75: Max plan 100: Enterprise plan
133
142
  */
134
143
  accessRestrictions?: 0 | 100 | 25 | 50 | 75;
135
144
  /**
@@ -169,6 +178,11 @@ export declare namespace ModelCreateResponse {
169
178
  * it by modelId with GET /models/{modelId}
170
179
  */
171
180
  inputs?: Array<Model.Input>;
181
+ /**
182
+ * The ID of the job that trained the model, returned to the model owner only
183
+ * (example: "job_ocZCnG1Df35XRL1QyCZSRxAG8")
184
+ */
185
+ jobId?: string;
172
186
  /**
173
187
  * The model keyword, this is a legacy parameter, please use conceptPrompt in
174
188
  * parameters
@@ -382,7 +396,9 @@ export declare namespace ModelCreateResponse {
382
396
  * The asset kind of the input. Only taken into account for \`file\` and
383
397
  * \`file_array\` input types. If model provides multiple kinds, the input will be
384
398
  * not able to create the asset on the flight on API side with dataurl without
385
- * data:kind, prefix
399
+ * data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
400
+ * a model does not declare one, \`image\` is returned, which is the kind used at
401
+ * generation time.
386
402
  */
387
403
  kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
388
404
  /**
@@ -405,8 +421,9 @@ export declare namespace ModelCreateResponse {
405
421
  */
406
422
  maxDuration?: number;
407
423
  /**
408
- * The maximum allowed length for \`string\` inputs. Also applies to each item in
409
- * \`string_array\`.
424
+ * The maximum allowed length for \`string\` and \`model\` inputs, in characters.
425
+ * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
426
+ * ITEMS instead — the length of each item is not constrained.
410
427
  */
411
428
  maxLength?: number;
412
429
  /**
@@ -420,8 +437,9 @@ export declare namespace ModelCreateResponse {
420
437
  */
421
438
  min?: number;
422
439
  /**
423
- * The minimum allowed length for string inputs. Also applies to each item in
424
- * \`string_array\`.
440
+ * The minimum allowed length for \`string\` and \`model\` inputs, in characters.
441
+ * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
442
+ * ITEMS instead — the length of each item is not constrained.
425
443
  */
426
444
  minLength?: number;
427
445
  /**
@@ -457,8 +475,7 @@ export declare namespace ModelCreateResponse {
457
475
  * - \`ifNotDefined\`: Input is required when another specified input is not
458
476
  * defined
459
477
  * - \`ifDefined\`: Input is required when another specified input is defined
460
- * - \`conditionalValues\`: Input is required when another input has a specific
461
- * value
478
+ * - \`conditional\`: Input is required when other inputs have specific values
462
479
  *
463
480
  * By default, the input is not required.
464
481
  */
@@ -476,8 +493,7 @@ export declare namespace ModelCreateResponse {
476
493
  * - \`ifNotDefined\`: Input is required when another specified input is not
477
494
  * defined
478
495
  * - \`ifDefined\`: Input is required when another specified input is defined
479
- * - \`conditionalValues\`: Input is required when another input has a specific
480
- * value
496
+ * - \`conditional\`: Input is required when other inputs have specific values
481
497
  *
482
498
  * By default, the input is not required.
483
499
  */
@@ -487,12 +503,9 @@ export declare namespace ModelCreateResponse {
487
503
  */
488
504
  always?: boolean;
489
505
  /**
490
- * Makes this input required when another input has a specific value:
491
- *
492
- * - Key: name of the input to check
493
- * - Value: operation and allowed values that trigger the requirement
506
+ * Makes this input required when other inputs have one of the listed values
494
507
  */
495
- conditionalValues?: unknown;
508
+ conditional?: Required.Conditional;
496
509
  /**
497
510
  * Makes this input required when another input is defined:
498
511
  *
@@ -508,6 +521,24 @@ export declare namespace ModelCreateResponse {
508
521
  */
509
522
  ifNotDefined?: unknown;
510
523
  }
524
+ namespace Required {
525
+ /**
526
+ * Makes this input required when other inputs have one of the listed values
527
+ */
528
+ interface Conditional {
529
+ /**
530
+ * The conditions to check:
531
+ *
532
+ * - Key: name of the input to check
533
+ * - Value: values of that input that satisfy the condition
534
+ */
535
+ values: unknown;
536
+ /**
537
+ * How the conditions combine: \`and\` (all must match) or \`or\` (any must match)
538
+ */
539
+ operator?: 'and' | 'or';
540
+ }
541
+ }
511
542
  }
512
543
  /**
513
544
  * The parameters of the model
@@ -983,6 +1014,12 @@ export declare namespace ModelCreateResponse {
983
1014
  * Configuration for the loras component
984
1015
  */
985
1016
  lorasComponent?: UiConfig.LorasComponent;
1017
+ /**
1018
+ * Configuration for the provider outputs exposed by `exposeOutput`
1019
+ */
1020
+ outputProperties?: {
1021
+ [key: string]: UiConfig.OutputProperties;
1022
+ };
986
1023
  /**
987
1024
  * Configuration for the presets
988
1025
  */
@@ -1030,6 +1067,9 @@ export declare namespace ModelCreateResponse {
1030
1067
  */
1031
1068
  modelIdInput?: string;
1032
1069
  }
1070
+ interface OutputProperties {
1071
+ label: string;
1072
+ }
1033
1073
  interface Preset {
1034
1074
  fields: Array<string>;
1035
1075
  presets: unknown;
@@ -1143,8 +1183,8 @@ export declare namespace ModelRetrieveResponse {
1143
1183
  */
1144
1184
  updatedAt: string;
1145
1185
  /**
1146
- * The access restrictions of the model 0: Free plan 25: Creator plan 50: Pro plan
1147
- * 75: Team plan 100: Enterprise plan
1186
+ * The access restrictions of the model 0: Free plan 25: Starter plan 50: Pro plan
1187
+ * 75: Max plan 100: Enterprise plan
1148
1188
  */
1149
1189
  accessRestrictions?: 0 | 100 | 25 | 50 | 75;
1150
1190
  /**
@@ -1184,6 +1224,11 @@ export declare namespace ModelRetrieveResponse {
1184
1224
  * it by modelId with GET /models/{modelId}
1185
1225
  */
1186
1226
  inputs?: Array<Model.Input>;
1227
+ /**
1228
+ * The ID of the job that trained the model, returned to the model owner only
1229
+ * (example: "job_ocZCnG1Df35XRL1QyCZSRxAG8")
1230
+ */
1231
+ jobId?: string;
1187
1232
  /**
1188
1233
  * The model keyword, this is a legacy parameter, please use conceptPrompt in
1189
1234
  * parameters
@@ -1397,7 +1442,9 @@ export declare namespace ModelRetrieveResponse {
1397
1442
  * The asset kind of the input. Only taken into account for \`file\` and
1398
1443
  * \`file_array\` input types. If model provides multiple kinds, the input will be
1399
1444
  * not able to create the asset on the flight on API side with dataurl without
1400
- * data:kind, prefix
1445
+ * data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
1446
+ * a model does not declare one, \`image\` is returned, which is the kind used at
1447
+ * generation time.
1401
1448
  */
1402
1449
  kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
1403
1450
  /**
@@ -1420,8 +1467,9 @@ export declare namespace ModelRetrieveResponse {
1420
1467
  */
1421
1468
  maxDuration?: number;
1422
1469
  /**
1423
- * The maximum allowed length for \`string\` inputs. Also applies to each item in
1424
- * \`string_array\`.
1470
+ * The maximum allowed length for \`string\` and \`model\` inputs, in characters.
1471
+ * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
1472
+ * ITEMS instead — the length of each item is not constrained.
1425
1473
  */
1426
1474
  maxLength?: number;
1427
1475
  /**
@@ -1435,8 +1483,9 @@ export declare namespace ModelRetrieveResponse {
1435
1483
  */
1436
1484
  min?: number;
1437
1485
  /**
1438
- * The minimum allowed length for string inputs. Also applies to each item in
1439
- * \`string_array\`.
1486
+ * The minimum allowed length for \`string\` and \`model\` inputs, in characters.
1487
+ * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
1488
+ * ITEMS instead — the length of each item is not constrained.
1440
1489
  */
1441
1490
  minLength?: number;
1442
1491
  /**
@@ -1472,8 +1521,7 @@ export declare namespace ModelRetrieveResponse {
1472
1521
  * - \`ifNotDefined\`: Input is required when another specified input is not
1473
1522
  * defined
1474
1523
  * - \`ifDefined\`: Input is required when another specified input is defined
1475
- * - \`conditionalValues\`: Input is required when another input has a specific
1476
- * value
1524
+ * - \`conditional\`: Input is required when other inputs have specific values
1477
1525
  *
1478
1526
  * By default, the input is not required.
1479
1527
  */
@@ -1491,8 +1539,7 @@ export declare namespace ModelRetrieveResponse {
1491
1539
  * - \`ifNotDefined\`: Input is required when another specified input is not
1492
1540
  * defined
1493
1541
  * - \`ifDefined\`: Input is required when another specified input is defined
1494
- * - \`conditionalValues\`: Input is required when another input has a specific
1495
- * value
1542
+ * - \`conditional\`: Input is required when other inputs have specific values
1496
1543
  *
1497
1544
  * By default, the input is not required.
1498
1545
  */
@@ -1502,12 +1549,9 @@ export declare namespace ModelRetrieveResponse {
1502
1549
  */
1503
1550
  always?: boolean;
1504
1551
  /**
1505
- * Makes this input required when another input has a specific value:
1506
- *
1507
- * - Key: name of the input to check
1508
- * - Value: operation and allowed values that trigger the requirement
1552
+ * Makes this input required when other inputs have one of the listed values
1509
1553
  */
1510
- conditionalValues?: unknown;
1554
+ conditional?: Required.Conditional;
1511
1555
  /**
1512
1556
  * Makes this input required when another input is defined:
1513
1557
  *
@@ -1523,6 +1567,24 @@ export declare namespace ModelRetrieveResponse {
1523
1567
  */
1524
1568
  ifNotDefined?: unknown;
1525
1569
  }
1570
+ namespace Required {
1571
+ /**
1572
+ * Makes this input required when other inputs have one of the listed values
1573
+ */
1574
+ interface Conditional {
1575
+ /**
1576
+ * The conditions to check:
1577
+ *
1578
+ * - Key: name of the input to check
1579
+ * - Value: values of that input that satisfy the condition
1580
+ */
1581
+ values: unknown;
1582
+ /**
1583
+ * How the conditions combine: \`and\` (all must match) or \`or\` (any must match)
1584
+ */
1585
+ operator?: 'and' | 'or';
1586
+ }
1587
+ }
1526
1588
  }
1527
1589
  /**
1528
1590
  * The parameters of the model
@@ -1998,6 +2060,12 @@ export declare namespace ModelRetrieveResponse {
1998
2060
  * Configuration for the loras component
1999
2061
  */
2000
2062
  lorasComponent?: UiConfig.LorasComponent;
2063
+ /**
2064
+ * Configuration for the provider outputs exposed by `exposeOutput`
2065
+ */
2066
+ outputProperties?: {
2067
+ [key: string]: UiConfig.OutputProperties;
2068
+ };
2001
2069
  /**
2002
2070
  * Configuration for the presets
2003
2071
  */
@@ -2045,6 +2113,9 @@ export declare namespace ModelRetrieveResponse {
2045
2113
  */
2046
2114
  modelIdInput?: string;
2047
2115
  }
2116
+ interface OutputProperties {
2117
+ label: string;
2118
+ }
2048
2119
  interface Preset {
2049
2120
  fields: Array<string>;
2050
2121
  presets: unknown;
@@ -2158,8 +2229,8 @@ export declare namespace ModelUpdateResponse {
2158
2229
  */
2159
2230
  updatedAt: string;
2160
2231
  /**
2161
- * The access restrictions of the model 0: Free plan 25: Creator plan 50: Pro plan
2162
- * 75: Team plan 100: Enterprise plan
2232
+ * The access restrictions of the model 0: Free plan 25: Starter plan 50: Pro plan
2233
+ * 75: Max plan 100: Enterprise plan
2163
2234
  */
2164
2235
  accessRestrictions?: 0 | 100 | 25 | 50 | 75;
2165
2236
  /**
@@ -2199,6 +2270,11 @@ export declare namespace ModelUpdateResponse {
2199
2270
  * it by modelId with GET /models/{modelId}
2200
2271
  */
2201
2272
  inputs?: Array<Model.Input>;
2273
+ /**
2274
+ * The ID of the job that trained the model, returned to the model owner only
2275
+ * (example: "job_ocZCnG1Df35XRL1QyCZSRxAG8")
2276
+ */
2277
+ jobId?: string;
2202
2278
  /**
2203
2279
  * The model keyword, this is a legacy parameter, please use conceptPrompt in
2204
2280
  * parameters
@@ -2412,7 +2488,9 @@ export declare namespace ModelUpdateResponse {
2412
2488
  * The asset kind of the input. Only taken into account for \`file\` and
2413
2489
  * \`file_array\` input types. If model provides multiple kinds, the input will be
2414
2490
  * not able to create the asset on the flight on API side with dataurl without
2415
- * data:kind, prefix
2491
+ * data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
2492
+ * a model does not declare one, \`image\` is returned, which is the kind used at
2493
+ * generation time.
2416
2494
  */
2417
2495
  kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
2418
2496
  /**
@@ -2435,8 +2513,9 @@ export declare namespace ModelUpdateResponse {
2435
2513
  */
2436
2514
  maxDuration?: number;
2437
2515
  /**
2438
- * The maximum allowed length for \`string\` inputs. Also applies to each item in
2439
- * \`string_array\`.
2516
+ * The maximum allowed length for \`string\` and \`model\` inputs, in characters.
2517
+ * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
2518
+ * ITEMS instead — the length of each item is not constrained.
2440
2519
  */
2441
2520
  maxLength?: number;
2442
2521
  /**
@@ -2450,8 +2529,9 @@ export declare namespace ModelUpdateResponse {
2450
2529
  */
2451
2530
  min?: number;
2452
2531
  /**
2453
- * The minimum allowed length for string inputs. Also applies to each item in
2454
- * \`string_array\`.
2532
+ * The minimum allowed length for \`string\` and \`model\` inputs, in characters.
2533
+ * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
2534
+ * ITEMS instead — the length of each item is not constrained.
2455
2535
  */
2456
2536
  minLength?: number;
2457
2537
  /**
@@ -2487,8 +2567,7 @@ export declare namespace ModelUpdateResponse {
2487
2567
  * - \`ifNotDefined\`: Input is required when another specified input is not
2488
2568
  * defined
2489
2569
  * - \`ifDefined\`: Input is required when another specified input is defined
2490
- * - \`conditionalValues\`: Input is required when another input has a specific
2491
- * value
2570
+ * - \`conditional\`: Input is required when other inputs have specific values
2492
2571
  *
2493
2572
  * By default, the input is not required.
2494
2573
  */
@@ -2506,8 +2585,7 @@ export declare namespace ModelUpdateResponse {
2506
2585
  * - \`ifNotDefined\`: Input is required when another specified input is not
2507
2586
  * defined
2508
2587
  * - \`ifDefined\`: Input is required when another specified input is defined
2509
- * - \`conditionalValues\`: Input is required when another input has a specific
2510
- * value
2588
+ * - \`conditional\`: Input is required when other inputs have specific values
2511
2589
  *
2512
2590
  * By default, the input is not required.
2513
2591
  */
@@ -2517,12 +2595,9 @@ export declare namespace ModelUpdateResponse {
2517
2595
  */
2518
2596
  always?: boolean;
2519
2597
  /**
2520
- * Makes this input required when another input has a specific value:
2521
- *
2522
- * - Key: name of the input to check
2523
- * - Value: operation and allowed values that trigger the requirement
2598
+ * Makes this input required when other inputs have one of the listed values
2524
2599
  */
2525
- conditionalValues?: unknown;
2600
+ conditional?: Required.Conditional;
2526
2601
  /**
2527
2602
  * Makes this input required when another input is defined:
2528
2603
  *
@@ -2538,6 +2613,24 @@ export declare namespace ModelUpdateResponse {
2538
2613
  */
2539
2614
  ifNotDefined?: unknown;
2540
2615
  }
2616
+ namespace Required {
2617
+ /**
2618
+ * Makes this input required when other inputs have one of the listed values
2619
+ */
2620
+ interface Conditional {
2621
+ /**
2622
+ * The conditions to check:
2623
+ *
2624
+ * - Key: name of the input to check
2625
+ * - Value: values of that input that satisfy the condition
2626
+ */
2627
+ values: unknown;
2628
+ /**
2629
+ * How the conditions combine: \`and\` (all must match) or \`or\` (any must match)
2630
+ */
2631
+ operator?: 'and' | 'or';
2632
+ }
2633
+ }
2541
2634
  }
2542
2635
  /**
2543
2636
  * The parameters of the model
@@ -3013,6 +3106,12 @@ export declare namespace ModelUpdateResponse {
3013
3106
  * Configuration for the loras component
3014
3107
  */
3015
3108
  lorasComponent?: UiConfig.LorasComponent;
3109
+ /**
3110
+ * Configuration for the provider outputs exposed by `exposeOutput`
3111
+ */
3112
+ outputProperties?: {
3113
+ [key: string]: UiConfig.OutputProperties;
3114
+ };
3016
3115
  /**
3017
3116
  * Configuration for the presets
3018
3117
  */
@@ -3060,6 +3159,9 @@ export declare namespace ModelUpdateResponse {
3060
3159
  */
3061
3160
  modelIdInput?: string;
3062
3161
  }
3162
+ interface OutputProperties {
3163
+ label: string;
3164
+ }
3063
3165
  interface Preset {
3064
3166
  fields: Array<string>;
3065
3167
  presets: unknown;
@@ -3169,8 +3271,8 @@ export interface ModelListResponse {
3169
3271
  */
3170
3272
  updatedAt: string;
3171
3273
  /**
3172
- * The access restrictions of the model 0: Free plan 25: Creator plan 50: Pro plan
3173
- * 75: Team plan 100: Enterprise plan
3274
+ * The access restrictions of the model 0: Free plan 25: Starter plan 50: Pro plan
3275
+ * 75: Max plan 100: Enterprise plan
3174
3276
  */
3175
3277
  accessRestrictions?: 0 | 100 | 25 | 50 | 75;
3176
3278
  /**
@@ -3210,6 +3312,11 @@ export interface ModelListResponse {
3210
3312
  * it by modelId with GET /models/{modelId}
3211
3313
  */
3212
3314
  inputs?: Array<ModelListResponse.Input>;
3315
+ /**
3316
+ * The ID of the job that trained the model, returned to the model owner only
3317
+ * (example: "job_ocZCnG1Df35XRL1QyCZSRxAG8")
3318
+ */
3319
+ jobId?: string;
3213
3320
  /**
3214
3321
  * The model keyword, this is a legacy parameter, please use conceptPrompt in
3215
3322
  * parameters
@@ -3423,7 +3530,9 @@ export declare namespace ModelListResponse {
3423
3530
  * The asset kind of the input. Only taken into account for \`file\` and
3424
3531
  * \`file_array\` input types. If model provides multiple kinds, the input will be
3425
3532
  * not able to create the asset on the flight on API side with dataurl without
3426
- * data:kind, prefix
3533
+ * data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
3534
+ * a model does not declare one, \`image\` is returned, which is the kind used at
3535
+ * generation time.
3427
3536
  */
3428
3537
  kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
3429
3538
  /**
@@ -3446,8 +3555,9 @@ export declare namespace ModelListResponse {
3446
3555
  */
3447
3556
  maxDuration?: number;
3448
3557
  /**
3449
- * The maximum allowed length for \`string\` inputs. Also applies to each item in
3450
- * \`string_array\`.
3558
+ * The maximum allowed length for \`string\` and \`model\` inputs, in characters.
3559
+ * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
3560
+ * ITEMS instead — the length of each item is not constrained.
3451
3561
  */
3452
3562
  maxLength?: number;
3453
3563
  /**
@@ -3461,8 +3571,9 @@ export declare namespace ModelListResponse {
3461
3571
  */
3462
3572
  min?: number;
3463
3573
  /**
3464
- * The minimum allowed length for string inputs. Also applies to each item in
3465
- * \`string_array\`.
3574
+ * The minimum allowed length for \`string\` and \`model\` inputs, in characters.
3575
+ * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
3576
+ * ITEMS instead — the length of each item is not constrained.
3466
3577
  */
3467
3578
  minLength?: number;
3468
3579
  /**
@@ -3498,8 +3609,7 @@ export declare namespace ModelListResponse {
3498
3609
  * - \`ifNotDefined\`: Input is required when another specified input is not
3499
3610
  * defined
3500
3611
  * - \`ifDefined\`: Input is required when another specified input is defined
3501
- * - \`conditionalValues\`: Input is required when another input has a specific
3502
- * value
3612
+ * - \`conditional\`: Input is required when other inputs have specific values
3503
3613
  *
3504
3614
  * By default, the input is not required.
3505
3615
  */
@@ -3517,8 +3627,7 @@ export declare namespace ModelListResponse {
3517
3627
  * - \`ifNotDefined\`: Input is required when another specified input is not
3518
3628
  * defined
3519
3629
  * - \`ifDefined\`: Input is required when another specified input is defined
3520
- * - \`conditionalValues\`: Input is required when another input has a specific
3521
- * value
3630
+ * - \`conditional\`: Input is required when other inputs have specific values
3522
3631
  *
3523
3632
  * By default, the input is not required.
3524
3633
  */
@@ -3528,12 +3637,9 @@ export declare namespace ModelListResponse {
3528
3637
  */
3529
3638
  always?: boolean;
3530
3639
  /**
3531
- * Makes this input required when another input has a specific value:
3532
- *
3533
- * - Key: name of the input to check
3534
- * - Value: operation and allowed values that trigger the requirement
3640
+ * Makes this input required when other inputs have one of the listed values
3535
3641
  */
3536
- conditionalValues?: unknown;
3642
+ conditional?: Required.Conditional;
3537
3643
  /**
3538
3644
  * Makes this input required when another input is defined:
3539
3645
  *
@@ -3549,6 +3655,24 @@ export declare namespace ModelListResponse {
3549
3655
  */
3550
3656
  ifNotDefined?: unknown;
3551
3657
  }
3658
+ namespace Required {
3659
+ /**
3660
+ * Makes this input required when other inputs have one of the listed values
3661
+ */
3662
+ interface Conditional {
3663
+ /**
3664
+ * The conditions to check:
3665
+ *
3666
+ * - Key: name of the input to check
3667
+ * - Value: values of that input that satisfy the condition
3668
+ */
3669
+ values: unknown;
3670
+ /**
3671
+ * How the conditions combine: \`and\` (all must match) or \`or\` (any must match)
3672
+ */
3673
+ operator?: 'and' | 'or';
3674
+ }
3675
+ }
3552
3676
  }
3553
3677
  /**
3554
3678
  * The parameters of the model
@@ -4024,6 +4148,12 @@ export declare namespace ModelListResponse {
4024
4148
  * Configuration for the loras component
4025
4149
  */
4026
4150
  lorasComponent?: UiConfig.LorasComponent;
4151
+ /**
4152
+ * Configuration for the provider outputs exposed by `exposeOutput`
4153
+ */
4154
+ outputProperties?: {
4155
+ [key: string]: UiConfig.OutputProperties;
4156
+ };
4027
4157
  /**
4028
4158
  * Configuration for the presets
4029
4159
  */
@@ -4071,6 +4201,9 @@ export declare namespace ModelListResponse {
4071
4201
  */
4072
4202
  modelIdInput?: string;
4073
4203
  }
4204
+ interface OutputProperties {
4205
+ label: string;
4206
+ }
4074
4207
  interface Preset {
4075
4208
  fields: Array<string>;
4076
4209
  presets: unknown;
@@ -4184,8 +4317,8 @@ export declare namespace ModelCopyResponse {
4184
4317
  */
4185
4318
  updatedAt: string;
4186
4319
  /**
4187
- * The access restrictions of the model 0: Free plan 25: Creator plan 50: Pro plan
4188
- * 75: Team plan 100: Enterprise plan
4320
+ * The access restrictions of the model 0: Free plan 25: Starter plan 50: Pro plan
4321
+ * 75: Max plan 100: Enterprise plan
4189
4322
  */
4190
4323
  accessRestrictions?: 0 | 100 | 25 | 50 | 75;
4191
4324
  /**
@@ -4225,6 +4358,11 @@ export declare namespace ModelCopyResponse {
4225
4358
  * it by modelId with GET /models/{modelId}
4226
4359
  */
4227
4360
  inputs?: Array<Model.Input>;
4361
+ /**
4362
+ * The ID of the job that trained the model, returned to the model owner only
4363
+ * (example: "job_ocZCnG1Df35XRL1QyCZSRxAG8")
4364
+ */
4365
+ jobId?: string;
4228
4366
  /**
4229
4367
  * The model keyword, this is a legacy parameter, please use conceptPrompt in
4230
4368
  * parameters
@@ -4438,7 +4576,9 @@ export declare namespace ModelCopyResponse {
4438
4576
  * The asset kind of the input. Only taken into account for \`file\` and
4439
4577
  * \`file_array\` input types. If model provides multiple kinds, the input will be
4440
4578
  * not able to create the asset on the flight on API side with dataurl without
4441
- * data:kind, prefix
4579
+ * data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
4580
+ * a model does not declare one, \`image\` is returned, which is the kind used at
4581
+ * generation time.
4442
4582
  */
4443
4583
  kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
4444
4584
  /**
@@ -4461,8 +4601,9 @@ export declare namespace ModelCopyResponse {
4461
4601
  */
4462
4602
  maxDuration?: number;
4463
4603
  /**
4464
- * The maximum allowed length for \`string\` inputs. Also applies to each item in
4465
- * \`string_array\`.
4604
+ * The maximum allowed length for \`string\` and \`model\` inputs, in characters.
4605
+ * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
4606
+ * ITEMS instead — the length of each item is not constrained.
4466
4607
  */
4467
4608
  maxLength?: number;
4468
4609
  /**
@@ -4476,8 +4617,9 @@ export declare namespace ModelCopyResponse {
4476
4617
  */
4477
4618
  min?: number;
4478
4619
  /**
4479
- * The minimum allowed length for string inputs. Also applies to each item in
4480
- * \`string_array\`.
4620
+ * The minimum allowed length for \`string\` and \`model\` inputs, in characters.
4621
+ * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
4622
+ * ITEMS instead — the length of each item is not constrained.
4481
4623
  */
4482
4624
  minLength?: number;
4483
4625
  /**
@@ -4513,8 +4655,7 @@ export declare namespace ModelCopyResponse {
4513
4655
  * - \`ifNotDefined\`: Input is required when another specified input is not
4514
4656
  * defined
4515
4657
  * - \`ifDefined\`: Input is required when another specified input is defined
4516
- * - \`conditionalValues\`: Input is required when another input has a specific
4517
- * value
4658
+ * - \`conditional\`: Input is required when other inputs have specific values
4518
4659
  *
4519
4660
  * By default, the input is not required.
4520
4661
  */
@@ -4532,8 +4673,7 @@ export declare namespace ModelCopyResponse {
4532
4673
  * - \`ifNotDefined\`: Input is required when another specified input is not
4533
4674
  * defined
4534
4675
  * - \`ifDefined\`: Input is required when another specified input is defined
4535
- * - \`conditionalValues\`: Input is required when another input has a specific
4536
- * value
4676
+ * - \`conditional\`: Input is required when other inputs have specific values
4537
4677
  *
4538
4678
  * By default, the input is not required.
4539
4679
  */
@@ -4543,12 +4683,9 @@ export declare namespace ModelCopyResponse {
4543
4683
  */
4544
4684
  always?: boolean;
4545
4685
  /**
4546
- * Makes this input required when another input has a specific value:
4547
- *
4548
- * - Key: name of the input to check
4549
- * - Value: operation and allowed values that trigger the requirement
4686
+ * Makes this input required when other inputs have one of the listed values
4550
4687
  */
4551
- conditionalValues?: unknown;
4688
+ conditional?: Required.Conditional;
4552
4689
  /**
4553
4690
  * Makes this input required when another input is defined:
4554
4691
  *
@@ -4564,6 +4701,24 @@ export declare namespace ModelCopyResponse {
4564
4701
  */
4565
4702
  ifNotDefined?: unknown;
4566
4703
  }
4704
+ namespace Required {
4705
+ /**
4706
+ * Makes this input required when other inputs have one of the listed values
4707
+ */
4708
+ interface Conditional {
4709
+ /**
4710
+ * The conditions to check:
4711
+ *
4712
+ * - Key: name of the input to check
4713
+ * - Value: values of that input that satisfy the condition
4714
+ */
4715
+ values: unknown;
4716
+ /**
4717
+ * How the conditions combine: \`and\` (all must match) or \`or\` (any must match)
4718
+ */
4719
+ operator?: 'and' | 'or';
4720
+ }
4721
+ }
4567
4722
  }
4568
4723
  /**
4569
4724
  * The parameters of the model
@@ -5039,6 +5194,12 @@ export declare namespace ModelCopyResponse {
5039
5194
  * Configuration for the loras component
5040
5195
  */
5041
5196
  lorasComponent?: UiConfig.LorasComponent;
5197
+ /**
5198
+ * Configuration for the provider outputs exposed by `exposeOutput`
5199
+ */
5200
+ outputProperties?: {
5201
+ [key: string]: UiConfig.OutputProperties;
5202
+ };
5042
5203
  /**
5043
5204
  * Configuration for the presets
5044
5205
  */
@@ -5086,6 +5247,9 @@ export declare namespace ModelCopyResponse {
5086
5247
  */
5087
5248
  modelIdInput?: string;
5088
5249
  }
5250
+ interface OutputProperties {
5251
+ label: string;
5252
+ }
5089
5253
  interface Preset {
5090
5254
  fields: Array<string>;
5091
5255
  presets: unknown;
@@ -5163,8 +5327,8 @@ export declare namespace ModelGetBulkResponse {
5163
5327
  */
5164
5328
  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';
5165
5329
  /**
5166
- * The access restrictions of the model 0: Free plan 25: Creator plan 50: Pro plan
5167
- * 75: Team plan 100: Enterprise plan
5330
+ * The access restrictions of the model 0: Free plan 25: Starter plan 50: Pro plan
5331
+ * 75: Max plan 100: Enterprise plan
5168
5332
  */
5169
5333
  accessRestrictions?: 0 | 100 | 25 | 50 | 75;
5170
5334
  /**
@@ -5226,6 +5390,11 @@ export declare namespace ModelGetBulkResponse {
5226
5390
  * it by modelId with GET /models/{modelId}
5227
5391
  */
5228
5392
  inputs?: Array<Model.Input>;
5393
+ /**
5394
+ * The ID of the job that trained the model, returned to the model owner only
5395
+ * (example: "job_ocZCnG1Df35XRL1QyCZSRxAG8")
5396
+ */
5397
+ jobId?: string;
5229
5398
  /**
5230
5399
  * The model keyword, this is a legacy parameter, please use conceptPrompt in
5231
5400
  * parameters
@@ -5460,7 +5629,9 @@ export declare namespace ModelGetBulkResponse {
5460
5629
  * The asset kind of the input. Only taken into account for \`file\` and
5461
5630
  * \`file_array\` input types. If model provides multiple kinds, the input will be
5462
5631
  * not able to create the asset on the flight on API side with dataurl without
5463
- * data:kind, prefix
5632
+ * data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
5633
+ * a model does not declare one, \`image\` is returned, which is the kind used at
5634
+ * generation time.
5464
5635
  */
5465
5636
  kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
5466
5637
  /**
@@ -5483,8 +5654,9 @@ export declare namespace ModelGetBulkResponse {
5483
5654
  */
5484
5655
  maxDuration?: number;
5485
5656
  /**
5486
- * The maximum allowed length for \`string\` inputs. Also applies to each item in
5487
- * \`string_array\`.
5657
+ * The maximum allowed length for \`string\` and \`model\` inputs, in characters.
5658
+ * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
5659
+ * ITEMS instead — the length of each item is not constrained.
5488
5660
  */
5489
5661
  maxLength?: number;
5490
5662
  /**
@@ -5498,8 +5670,9 @@ export declare namespace ModelGetBulkResponse {
5498
5670
  */
5499
5671
  min?: number;
5500
5672
  /**
5501
- * The minimum allowed length for string inputs. Also applies to each item in
5502
- * \`string_array\`.
5673
+ * The minimum allowed length for \`string\` and \`model\` inputs, in characters.
5674
+ * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
5675
+ * ITEMS instead — the length of each item is not constrained.
5503
5676
  */
5504
5677
  minLength?: number;
5505
5678
  /**
@@ -5535,8 +5708,7 @@ export declare namespace ModelGetBulkResponse {
5535
5708
  * - \`ifNotDefined\`: Input is required when another specified input is not
5536
5709
  * defined
5537
5710
  * - \`ifDefined\`: Input is required when another specified input is defined
5538
- * - \`conditionalValues\`: Input is required when another input has a specific
5539
- * value
5711
+ * - \`conditional\`: Input is required when other inputs have specific values
5540
5712
  *
5541
5713
  * By default, the input is not required.
5542
5714
  */
@@ -5554,8 +5726,7 @@ export declare namespace ModelGetBulkResponse {
5554
5726
  * - \`ifNotDefined\`: Input is required when another specified input is not
5555
5727
  * defined
5556
5728
  * - \`ifDefined\`: Input is required when another specified input is defined
5557
- * - \`conditionalValues\`: Input is required when another input has a specific
5558
- * value
5729
+ * - \`conditional\`: Input is required when other inputs have specific values
5559
5730
  *
5560
5731
  * By default, the input is not required.
5561
5732
  */
@@ -5565,12 +5736,9 @@ export declare namespace ModelGetBulkResponse {
5565
5736
  */
5566
5737
  always?: boolean;
5567
5738
  /**
5568
- * Makes this input required when another input has a specific value:
5569
- *
5570
- * - Key: name of the input to check
5571
- * - Value: operation and allowed values that trigger the requirement
5739
+ * Makes this input required when other inputs have one of the listed values
5572
5740
  */
5573
- conditionalValues?: unknown;
5741
+ conditional?: Required.Conditional;
5574
5742
  /**
5575
5743
  * Makes this input required when another input is defined:
5576
5744
  *
@@ -5586,6 +5754,24 @@ export declare namespace ModelGetBulkResponse {
5586
5754
  */
5587
5755
  ifNotDefined?: unknown;
5588
5756
  }
5757
+ namespace Required {
5758
+ /**
5759
+ * Makes this input required when other inputs have one of the listed values
5760
+ */
5761
+ interface Conditional {
5762
+ /**
5763
+ * The conditions to check:
5764
+ *
5765
+ * - Key: name of the input to check
5766
+ * - Value: values of that input that satisfy the condition
5767
+ */
5768
+ values: unknown;
5769
+ /**
5770
+ * How the conditions combine: \`and\` (all must match) or \`or\` (any must match)
5771
+ */
5772
+ operator?: 'and' | 'or';
5773
+ }
5774
+ }
5589
5775
  }
5590
5776
  /**
5591
5777
  * The parameters of the model
@@ -6061,6 +6247,12 @@ export declare namespace ModelGetBulkResponse {
6061
6247
  * Configuration for the loras component
6062
6248
  */
6063
6249
  lorasComponent?: UiConfig.LorasComponent;
6250
+ /**
6251
+ * Configuration for the provider outputs exposed by `exposeOutput`
6252
+ */
6253
+ outputProperties?: {
6254
+ [key: string]: UiConfig.OutputProperties;
6255
+ };
6064
6256
  /**
6065
6257
  * Configuration for the presets
6066
6258
  */
@@ -6108,6 +6300,9 @@ export declare namespace ModelGetBulkResponse {
6108
6300
  */
6109
6301
  modelIdInput?: string;
6110
6302
  }
6303
+ interface OutputProperties {
6304
+ label: string;
6305
+ }
6111
6306
  interface Preset {
6112
6307
  fields: Array<string>;
6113
6308
  presets: unknown;
@@ -6221,8 +6416,8 @@ export declare namespace ModelTransferResponse {
6221
6416
  */
6222
6417
  updatedAt: string;
6223
6418
  /**
6224
- * The access restrictions of the model 0: Free plan 25: Creator plan 50: Pro plan
6225
- * 75: Team plan 100: Enterprise plan
6419
+ * The access restrictions of the model 0: Free plan 25: Starter plan 50: Pro plan
6420
+ * 75: Max plan 100: Enterprise plan
6226
6421
  */
6227
6422
  accessRestrictions?: 0 | 100 | 25 | 50 | 75;
6228
6423
  /**
@@ -6262,6 +6457,11 @@ export declare namespace ModelTransferResponse {
6262
6457
  * it by modelId with GET /models/{modelId}
6263
6458
  */
6264
6459
  inputs?: Array<Model.Input>;
6460
+ /**
6461
+ * The ID of the job that trained the model, returned to the model owner only
6462
+ * (example: "job_ocZCnG1Df35XRL1QyCZSRxAG8")
6463
+ */
6464
+ jobId?: string;
6265
6465
  /**
6266
6466
  * The model keyword, this is a legacy parameter, please use conceptPrompt in
6267
6467
  * parameters
@@ -6475,7 +6675,9 @@ export declare namespace ModelTransferResponse {
6475
6675
  * The asset kind of the input. Only taken into account for \`file\` and
6476
6676
  * \`file_array\` input types. If model provides multiple kinds, the input will be
6477
6677
  * not able to create the asset on the flight on API side with dataurl without
6478
- * data:kind, prefix
6678
+ * data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
6679
+ * a model does not declare one, \`image\` is returned, which is the kind used at
6680
+ * generation time.
6479
6681
  */
6480
6682
  kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
6481
6683
  /**
@@ -6498,8 +6700,9 @@ export declare namespace ModelTransferResponse {
6498
6700
  */
6499
6701
  maxDuration?: number;
6500
6702
  /**
6501
- * The maximum allowed length for \`string\` inputs. Also applies to each item in
6502
- * \`string_array\`.
6703
+ * The maximum allowed length for \`string\` and \`model\` inputs, in characters.
6704
+ * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
6705
+ * ITEMS instead — the length of each item is not constrained.
6503
6706
  */
6504
6707
  maxLength?: number;
6505
6708
  /**
@@ -6513,8 +6716,9 @@ export declare namespace ModelTransferResponse {
6513
6716
  */
6514
6717
  min?: number;
6515
6718
  /**
6516
- * The minimum allowed length for string inputs. Also applies to each item in
6517
- * \`string_array\`.
6719
+ * The minimum allowed length for \`string\` and \`model\` inputs, in characters.
6720
+ * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
6721
+ * ITEMS instead — the length of each item is not constrained.
6518
6722
  */
6519
6723
  minLength?: number;
6520
6724
  /**
@@ -6550,8 +6754,7 @@ export declare namespace ModelTransferResponse {
6550
6754
  * - \`ifNotDefined\`: Input is required when another specified input is not
6551
6755
  * defined
6552
6756
  * - \`ifDefined\`: Input is required when another specified input is defined
6553
- * - \`conditionalValues\`: Input is required when another input has a specific
6554
- * value
6757
+ * - \`conditional\`: Input is required when other inputs have specific values
6555
6758
  *
6556
6759
  * By default, the input is not required.
6557
6760
  */
@@ -6569,8 +6772,7 @@ export declare namespace ModelTransferResponse {
6569
6772
  * - \`ifNotDefined\`: Input is required when another specified input is not
6570
6773
  * defined
6571
6774
  * - \`ifDefined\`: Input is required when another specified input is defined
6572
- * - \`conditionalValues\`: Input is required when another input has a specific
6573
- * value
6775
+ * - \`conditional\`: Input is required when other inputs have specific values
6574
6776
  *
6575
6777
  * By default, the input is not required.
6576
6778
  */
@@ -6580,12 +6782,9 @@ export declare namespace ModelTransferResponse {
6580
6782
  */
6581
6783
  always?: boolean;
6582
6784
  /**
6583
- * Makes this input required when another input has a specific value:
6584
- *
6585
- * - Key: name of the input to check
6586
- * - Value: operation and allowed values that trigger the requirement
6785
+ * Makes this input required when other inputs have one of the listed values
6587
6786
  */
6588
- conditionalValues?: unknown;
6787
+ conditional?: Required.Conditional;
6589
6788
  /**
6590
6789
  * Makes this input required when another input is defined:
6591
6790
  *
@@ -6601,6 +6800,24 @@ export declare namespace ModelTransferResponse {
6601
6800
  */
6602
6801
  ifNotDefined?: unknown;
6603
6802
  }
6803
+ namespace Required {
6804
+ /**
6805
+ * Makes this input required when other inputs have one of the listed values
6806
+ */
6807
+ interface Conditional {
6808
+ /**
6809
+ * The conditions to check:
6810
+ *
6811
+ * - Key: name of the input to check
6812
+ * - Value: values of that input that satisfy the condition
6813
+ */
6814
+ values: unknown;
6815
+ /**
6816
+ * How the conditions combine: \`and\` (all must match) or \`or\` (any must match)
6817
+ */
6818
+ operator?: 'and' | 'or';
6819
+ }
6820
+ }
6604
6821
  }
6605
6822
  /**
6606
6823
  * The parameters of the model
@@ -7076,6 +7293,12 @@ export declare namespace ModelTransferResponse {
7076
7293
  * Configuration for the loras component
7077
7294
  */
7078
7295
  lorasComponent?: UiConfig.LorasComponent;
7296
+ /**
7297
+ * Configuration for the provider outputs exposed by `exposeOutput`
7298
+ */
7299
+ outputProperties?: {
7300
+ [key: string]: UiConfig.OutputProperties;
7301
+ };
7079
7302
  /**
7080
7303
  * Configuration for the presets
7081
7304
  */
@@ -7123,6 +7346,9 @@ export declare namespace ModelTransferResponse {
7123
7346
  */
7124
7347
  modelIdInput?: string;
7125
7348
  }
7349
+ interface OutputProperties {
7350
+ label: string;
7351
+ }
7126
7352
  interface Preset {
7127
7353
  fields: Array<string>;
7128
7354
  presets: unknown;
@@ -7745,6 +7971,11 @@ export interface ModelDeleteImagesParams {
7745
7971
  projectId?: string;
7746
7972
  }
7747
7973
  export interface ModelDownloadParams {
7974
+ /**
7975
+ * Query param: Estimate the operation instead of running it: the call returns a
7976
+ * 269 response carrying the creative units cost. `api` estimates at the API tier.
7977
+ */
7978
+ dryRun?: 'true' | 'api';
7748
7979
  /**
7749
7980
  * Query param: The projectId used for ownership resource management. Either to
7750
7981
  * assert ownership or to set the owner of the resource(s)
@@ -7846,6 +8077,9 @@ export declare namespace Models {
7846
8077
  export { type ModelCreateResponse as ModelCreateResponse, type ModelRetrieveResponse as ModelRetrieveResponse, type ModelUpdateResponse as ModelUpdateResponse, type ModelListResponse as ModelListResponse, type ModelDeleteResponse as ModelDeleteResponse, type ModelCopyResponse as ModelCopyResponse, type ModelDeleteImagesResponse as ModelDeleteImagesResponse, type ModelDownloadResponse as ModelDownloadResponse, type ModelGetBulkResponse as ModelGetBulkResponse, type ModelTransferResponse as ModelTransferResponse, type ModelUpdateTagsResponse as ModelUpdateTagsResponse, type ModelListResponsesModelsCursor as ModelListResponsesModelsCursor, type ModelCreateParams as ModelCreateParams, type ModelRetrieveParams as ModelRetrieveParams, type ModelUpdateParams as ModelUpdateParams, type ModelListParams as ModelListParams, type ModelDeleteParams as ModelDeleteParams, type ModelCopyParams as ModelCopyParams, type ModelDeleteImagesParams as ModelDeleteImagesParams, type ModelDownloadParams as ModelDownloadParams, type ModelGetBulkParams as ModelGetBulkParams, type ModelTransferParams as ModelTransferParams, type ModelUpdateTagsParams as ModelUpdateTagsParams, };
7847
8078
  export { Description as Description, type DescriptionRetrieveResponse as DescriptionRetrieveResponse, type DescriptionUpdateResponse as DescriptionUpdateResponse, type DescriptionRetrieveParams as DescriptionRetrieveParams, type DescriptionUpdateParams as DescriptionUpdateParams, };
7848
8079
  export { Examples as Examples, type ExampleUpdateResponse as ExampleUpdateResponse, type ExampleListResponse as ExampleListResponse, type ExampleUpdateParams as ExampleUpdateParams, type ExampleListParams as ExampleListParams, };
8080
+ export { Presets as Presets, type PresetCreateResponse as PresetCreateResponse, type PresetUpdateResponse as PresetUpdateResponse, type PresetListResponse as PresetListResponse, type PresetDeleteResponse as PresetDeleteResponse, type PresetCreateParams as PresetCreateParams, type PresetUpdateParams as PresetUpdateParams, type PresetListParams as PresetListParams, type PresetDeleteParams as PresetDeleteParams, };
8081
+ export { PromptGuide as PromptGuide, type PromptGuideRetrieveResponse as PromptGuideRetrieveResponse, type PromptGuideUpdateResponse as PromptGuideUpdateResponse, type PromptGuideRetrieveParams as PromptGuideRetrieveParams, type PromptGuideUpdateParams as PromptGuideUpdateParams, };
8082
+ export { Scores as Scores, type ScoreRetrievePromptResponse as ScoreRetrievePromptResponse, type ScoreRetrieveTrainingDatasetResponse as ScoreRetrieveTrainingDatasetResponse, type ScoreRetrievePromptParams as ScoreRetrievePromptParams, type ScoreRetrieveTrainingDatasetParams as ScoreRetrieveTrainingDatasetParams, };
7849
8083
  export { Train as Train, type TrainActionResponse as TrainActionResponse, type TrainTriggerResponse as TrainTriggerResponse, type TrainActionParams as TrainActionParams, type TrainTriggerParams as TrainTriggerParams, };
7850
8084
  export { TrainingImages as TrainingImages, type TrainingImageDeleteResponse as TrainingImageDeleteResponse, type TrainingImageAddResponse as TrainingImageAddResponse, type TrainingImageReplaceResponse as TrainingImageReplaceResponse, type TrainingImageReplacePairsResponse as TrainingImageReplacePairsResponse, type TrainingImageDeleteParams as TrainingImageDeleteParams, type TrainingImageAddParams as TrainingImageAddParams, type TrainingImageReplaceParams as TrainingImageReplaceParams, type TrainingImageReplacePairsParams as TrainingImageReplacePairsParams, };
7851
8085
  }