@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
@@ -11,7 +11,8 @@ export declare class Jobs extends APIResource {
11
11
  * List all jobs matching the given filters. A job is a synchronous operation or an
12
12
  * asynchronous task such as a training, a generation, etc. It offers a unified
13
13
  * view of all operations running on the platform along with their status and
14
- * results.
14
+ * results. A page can hold fewer jobs than "pageSize", or none, while
15
+ * "nextPaginationToken" is set: keep paginating until it is absent.
15
16
  */
16
17
  list(query?: JobListParams | null | undefined, options?: RequestOptions): PagePromise<JobListResponsesJobsCursor, JobListResponse>;
17
18
  /**
@@ -132,7 +133,7 @@ export declare namespace JobRetrieveResponse {
132
133
  /**
133
134
  * The type of the job for the node.
134
135
  */
135
- type: 'custom-model' | 'for-each' | 'generate-prompt' | 'list' | 'logic' | 'model' | 'remove-background' | 'transform' | 'user-approval' | 'workflow';
136
+ type: 'custom-model' | 'for-each' | 'generate-prompt' | 'list' | 'logic' | 'model' | 'remove-background' | 'transform' | 'user-approval' | 'user-selection' | 'workflow';
136
137
  /**
137
138
  * List of produced assets for this node.
138
139
  */
@@ -157,13 +158,14 @@ export declare namespace JobRetrieveResponse {
157
158
  */
158
159
  includeOutputsInWorkflowJob?: true;
159
160
  /**
160
- * The inputs of the node.
161
+ * The inputs of the node. For a user-selection node, the array input's `min`/`max`
162
+ * bound how many items the user may pick (defaults: 1 and 100); conditional
163
+ * connections may be present as additional inputs.
161
164
  */
162
165
  inputs?: Array<Flow.Input>;
163
166
  /**
164
- * Statically-configured items for a List node. The node outputs this array as-is
165
- * when executed. Only available for List nodes. The values can be strings,
166
- * numbers, or asset IDs.
167
+ * Statically-configured items for a List node, or the frozen candidate list of a
168
+ * UserSelection node. The values can be strings, numbers, or asset IDs.
167
169
  */
168
170
  items?: Array<string>;
169
171
  /**
@@ -280,7 +282,9 @@ export declare namespace JobRetrieveResponse {
280
282
  * The asset kind of the input. Only taken into account for \`file\` and
281
283
  * \`file_array\` input types. If model provides multiple kinds, the input will be
282
284
  * not able to create the asset on the flight on API side with dataurl without
283
- * data:kind, prefix
285
+ * data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
286
+ * a model does not declare one, \`image\` is returned, which is the kind used at
287
+ * generation time.
284
288
  */
285
289
  kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
286
290
  /**
@@ -303,8 +307,9 @@ export declare namespace JobRetrieveResponse {
303
307
  */
304
308
  maxDuration?: number;
305
309
  /**
306
- * The maximum allowed length for \`string\` inputs. Also applies to each item in
307
- * \`string_array\`.
310
+ * The maximum allowed length for \`string\` and \`model\` inputs, in characters.
311
+ * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
312
+ * ITEMS instead — the length of each item is not constrained.
308
313
  */
309
314
  maxLength?: number;
310
315
  /**
@@ -318,8 +323,9 @@ export declare namespace JobRetrieveResponse {
318
323
  */
319
324
  min?: number;
320
325
  /**
321
- * The minimum allowed length for string inputs. Also applies to each item in
322
- * \`string_array\`.
326
+ * The minimum allowed length for \`string\` and \`model\` inputs, in characters.
327
+ * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
328
+ * ITEMS instead — the length of each item is not constrained.
323
329
  */
324
330
  minLength?: number;
325
331
  /**
@@ -360,8 +366,7 @@ export declare namespace JobRetrieveResponse {
360
366
  * - \`ifNotDefined\`: Input is required when another specified input is not
361
367
  * defined
362
368
  * - \`ifDefined\`: Input is required when another specified input is defined
363
- * - \`conditionalValues\`: Input is required when another input has a specific
364
- * value
369
+ * - \`conditional\`: Input is required when other inputs have specific values
365
370
  *
366
371
  * By default, the input is not required.
367
372
  */
@@ -438,7 +443,9 @@ export declare namespace JobRetrieveResponse {
438
443
  * The asset kind of the input. Only taken into account for \`file\` and
439
444
  * \`file_array\` input types. If model provides multiple kinds, the input will be
440
445
  * not able to create the asset on the flight on API side with dataurl without
441
- * data:kind, prefix
446
+ * data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
447
+ * a model does not declare one, \`image\` is returned, which is the kind used at
448
+ * generation time.
442
449
  */
443
450
  kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
444
451
  /**
@@ -461,8 +468,9 @@ export declare namespace JobRetrieveResponse {
461
468
  */
462
469
  maxDuration?: number;
463
470
  /**
464
- * The maximum allowed length for \`string\` inputs. Also applies to each item in
465
- * \`string_array\`.
471
+ * The maximum allowed length for \`string\` and \`model\` inputs, in characters.
472
+ * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
473
+ * ITEMS instead — the length of each item is not constrained.
466
474
  */
467
475
  maxLength?: number;
468
476
  /**
@@ -476,8 +484,9 @@ export declare namespace JobRetrieveResponse {
476
484
  */
477
485
  min?: number;
478
486
  /**
479
- * The minimum allowed length for string inputs. Also applies to each item in
480
- * \`string_array\`.
487
+ * The minimum allowed length for \`string\` and \`model\` inputs, in characters.
488
+ * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
489
+ * ITEMS instead — the length of each item is not constrained.
481
490
  */
482
491
  minLength?: number;
483
492
  /**
@@ -518,8 +527,7 @@ export declare namespace JobRetrieveResponse {
518
527
  * - \`ifNotDefined\`: Input is required when another specified input is not
519
528
  * defined
520
529
  * - \`ifDefined\`: Input is required when another specified input is defined
521
- * - \`conditionalValues\`: Input is required when another input has a specific
522
- * value
530
+ * - \`conditional\`: Input is required when other inputs have specific values
523
531
  *
524
532
  * By default, the input is not required.
525
533
  */
@@ -569,8 +577,7 @@ export declare namespace JobRetrieveResponse {
569
577
  * - \`ifNotDefined\`: Input is required when another specified input is not
570
578
  * defined
571
579
  * - \`ifDefined\`: Input is required when another specified input is defined
572
- * - \`conditionalValues\`: Input is required when another input has a specific
573
- * value
580
+ * - \`conditional\`: Input is required when other inputs have specific values
574
581
  *
575
582
  * By default, the input is not required.
576
583
  */
@@ -580,12 +587,9 @@ export declare namespace JobRetrieveResponse {
580
587
  */
581
588
  always?: boolean;
582
589
  /**
583
- * Makes this input required when another input has a specific value:
584
- *
585
- * - Key: name of the input to check
586
- * - Value: operation and allowed values that trigger the requirement
590
+ * Makes this input required when other inputs have one of the listed values
587
591
  */
588
- conditionalValues?: unknown;
592
+ conditional?: Required.Conditional;
589
593
  /**
590
594
  * Makes this input required when another input is defined:
591
595
  *
@@ -601,6 +605,24 @@ export declare namespace JobRetrieveResponse {
601
605
  */
602
606
  ifNotDefined?: unknown;
603
607
  }
608
+ namespace Required {
609
+ /**
610
+ * Makes this input required when other inputs have one of the listed values
611
+ */
612
+ interface Conditional {
613
+ /**
614
+ * The conditions to check:
615
+ *
616
+ * - Key: name of the input to check
617
+ * - Value: values of that input that satisfy the condition
618
+ */
619
+ values: unknown;
620
+ /**
621
+ * How the conditions combine: \`and\` (all must match) or \`or\` (any must match)
622
+ */
623
+ operator?: 'and' | 'or';
624
+ }
625
+ }
604
626
  }
605
627
  /**
606
628
  * The reference to another input or output of the same workflow. Must have at
@@ -636,8 +658,7 @@ export declare namespace JobRetrieveResponse {
636
658
  * - \`ifNotDefined\`: Input is required when another specified input is not
637
659
  * defined
638
660
  * - \`ifDefined\`: Input is required when another specified input is defined
639
- * - \`conditionalValues\`: Input is required when another input has a specific
640
- * value
661
+ * - \`conditional\`: Input is required when other inputs have specific values
641
662
  *
642
663
  * By default, the input is not required.
643
664
  */
@@ -647,12 +668,9 @@ export declare namespace JobRetrieveResponse {
647
668
  */
648
669
  always?: boolean;
649
670
  /**
650
- * Makes this input required when another input has a specific value:
651
- *
652
- * - Key: name of the input to check
653
- * - Value: operation and allowed values that trigger the requirement
671
+ * Makes this input required when other inputs have one of the listed values
654
672
  */
655
- conditionalValues?: unknown;
673
+ conditional?: Required.Conditional;
656
674
  /**
657
675
  * Makes this input required when another input is defined:
658
676
  *
@@ -668,6 +686,24 @@ export declare namespace JobRetrieveResponse {
668
686
  */
669
687
  ifNotDefined?: unknown;
670
688
  }
689
+ namespace Required {
690
+ /**
691
+ * Makes this input required when other inputs have one of the listed values
692
+ */
693
+ interface Conditional {
694
+ /**
695
+ * The conditions to check:
696
+ *
697
+ * - Key: name of the input to check
698
+ * - Value: values of that input that satisfy the condition
699
+ */
700
+ values: unknown;
701
+ /**
702
+ * How the conditions combine: \`and\` (all must match) or \`or\` (any must match)
703
+ */
704
+ operator?: 'and' | 'or';
705
+ }
706
+ }
671
707
  }
672
708
  /**
673
709
  * The logic of the node. Only available for logic nodes.
@@ -707,7 +743,7 @@ export declare namespace JobRetrieveResponse {
707
743
  cuDiscount: number;
708
744
  /**
709
745
  * Compute Units charged for the ADD-ONS of this job, per action — the fees paid on
710
- * top of the generation itself, such as `slop-detection`.
746
+ * top of the generation itself, such as `quality-gate`.
711
747
  *
712
748
  * `cuCost` above is the main action alone, so the job's total is `cuCost` plus the
713
749
  * values here.
@@ -735,7 +771,7 @@ export declare namespace JobRetrieveResponse {
735
771
  namespace Billing {
736
772
  /**
737
773
  * Compute Units charged for the ADD-ONS of this job, per action — the fees paid on
738
- * top of the generation itself, such as `slop-detection`.
774
+ * top of the generation itself, such as `quality-gate`.
739
775
  *
740
776
  * `cuCost` above is the main action alone, so the job's total is `cuCost` plus the
741
777
  * values here.
@@ -754,7 +790,7 @@ export declare namespace JobRetrieveResponse {
754
790
  */
755
791
  interface CuCostDetails {
756
792
  'ip-detection'?: number;
757
- 'slop-detection'?: number;
793
+ 'quality-gate'?: number;
758
794
  }
759
795
  }
760
796
  }
@@ -867,7 +903,7 @@ export declare namespace JobListResponse {
867
903
  /**
868
904
  * The type of the job for the node.
869
905
  */
870
- type: 'custom-model' | 'for-each' | 'generate-prompt' | 'list' | 'logic' | 'model' | 'remove-background' | 'transform' | 'user-approval' | 'workflow';
906
+ type: 'custom-model' | 'for-each' | 'generate-prompt' | 'list' | 'logic' | 'model' | 'remove-background' | 'transform' | 'user-approval' | 'user-selection' | 'workflow';
871
907
  /**
872
908
  * List of produced assets for this node.
873
909
  */
@@ -892,13 +928,14 @@ export declare namespace JobListResponse {
892
928
  */
893
929
  includeOutputsInWorkflowJob?: true;
894
930
  /**
895
- * The inputs of the node.
931
+ * The inputs of the node. For a user-selection node, the array input's `min`/`max`
932
+ * bound how many items the user may pick (defaults: 1 and 100); conditional
933
+ * connections may be present as additional inputs.
896
934
  */
897
935
  inputs?: Array<Flow.Input>;
898
936
  /**
899
- * Statically-configured items for a List node. The node outputs this array as-is
900
- * when executed. Only available for List nodes. The values can be strings,
901
- * numbers, or asset IDs.
937
+ * Statically-configured items for a List node, or the frozen candidate list of a
938
+ * UserSelection node. The values can be strings, numbers, or asset IDs.
902
939
  */
903
940
  items?: Array<string>;
904
941
  /**
@@ -1015,7 +1052,9 @@ export declare namespace JobListResponse {
1015
1052
  * The asset kind of the input. Only taken into account for \`file\` and
1016
1053
  * \`file_array\` input types. If model provides multiple kinds, the input will be
1017
1054
  * not able to create the asset on the flight on API side with dataurl without
1018
- * data:kind, prefix
1055
+ * data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
1056
+ * a model does not declare one, \`image\` is returned, which is the kind used at
1057
+ * generation time.
1019
1058
  */
1020
1059
  kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
1021
1060
  /**
@@ -1038,8 +1077,9 @@ export declare namespace JobListResponse {
1038
1077
  */
1039
1078
  maxDuration?: number;
1040
1079
  /**
1041
- * The maximum allowed length for \`string\` inputs. Also applies to each item in
1042
- * \`string_array\`.
1080
+ * The maximum allowed length for \`string\` and \`model\` inputs, in characters.
1081
+ * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
1082
+ * ITEMS instead — the length of each item is not constrained.
1043
1083
  */
1044
1084
  maxLength?: number;
1045
1085
  /**
@@ -1053,8 +1093,9 @@ export declare namespace JobListResponse {
1053
1093
  */
1054
1094
  min?: number;
1055
1095
  /**
1056
- * The minimum allowed length for string inputs. Also applies to each item in
1057
- * \`string_array\`.
1096
+ * The minimum allowed length for \`string\` and \`model\` inputs, in characters.
1097
+ * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
1098
+ * ITEMS instead — the length of each item is not constrained.
1058
1099
  */
1059
1100
  minLength?: number;
1060
1101
  /**
@@ -1095,8 +1136,7 @@ export declare namespace JobListResponse {
1095
1136
  * - \`ifNotDefined\`: Input is required when another specified input is not
1096
1137
  * defined
1097
1138
  * - \`ifDefined\`: Input is required when another specified input is defined
1098
- * - \`conditionalValues\`: Input is required when another input has a specific
1099
- * value
1139
+ * - \`conditional\`: Input is required when other inputs have specific values
1100
1140
  *
1101
1141
  * By default, the input is not required.
1102
1142
  */
@@ -1173,7 +1213,9 @@ export declare namespace JobListResponse {
1173
1213
  * The asset kind of the input. Only taken into account for \`file\` and
1174
1214
  * \`file_array\` input types. If model provides multiple kinds, the input will be
1175
1215
  * not able to create the asset on the flight on API side with dataurl without
1176
- * data:kind, prefix
1216
+ * data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
1217
+ * a model does not declare one, \`image\` is returned, which is the kind used at
1218
+ * generation time.
1177
1219
  */
1178
1220
  kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
1179
1221
  /**
@@ -1196,8 +1238,9 @@ export declare namespace JobListResponse {
1196
1238
  */
1197
1239
  maxDuration?: number;
1198
1240
  /**
1199
- * The maximum allowed length for \`string\` inputs. Also applies to each item in
1200
- * \`string_array\`.
1241
+ * The maximum allowed length for \`string\` and \`model\` inputs, in characters.
1242
+ * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
1243
+ * ITEMS instead — the length of each item is not constrained.
1201
1244
  */
1202
1245
  maxLength?: number;
1203
1246
  /**
@@ -1211,8 +1254,9 @@ export declare namespace JobListResponse {
1211
1254
  */
1212
1255
  min?: number;
1213
1256
  /**
1214
- * The minimum allowed length for string inputs. Also applies to each item in
1215
- * \`string_array\`.
1257
+ * The minimum allowed length for \`string\` and \`model\` inputs, in characters.
1258
+ * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
1259
+ * ITEMS instead — the length of each item is not constrained.
1216
1260
  */
1217
1261
  minLength?: number;
1218
1262
  /**
@@ -1253,8 +1297,7 @@ export declare namespace JobListResponse {
1253
1297
  * - \`ifNotDefined\`: Input is required when another specified input is not
1254
1298
  * defined
1255
1299
  * - \`ifDefined\`: Input is required when another specified input is defined
1256
- * - \`conditionalValues\`: Input is required when another input has a specific
1257
- * value
1300
+ * - \`conditional\`: Input is required when other inputs have specific values
1258
1301
  *
1259
1302
  * By default, the input is not required.
1260
1303
  */
@@ -1304,8 +1347,7 @@ export declare namespace JobListResponse {
1304
1347
  * - \`ifNotDefined\`: Input is required when another specified input is not
1305
1348
  * defined
1306
1349
  * - \`ifDefined\`: Input is required when another specified input is defined
1307
- * - \`conditionalValues\`: Input is required when another input has a specific
1308
- * value
1350
+ * - \`conditional\`: Input is required when other inputs have specific values
1309
1351
  *
1310
1352
  * By default, the input is not required.
1311
1353
  */
@@ -1315,12 +1357,9 @@ export declare namespace JobListResponse {
1315
1357
  */
1316
1358
  always?: boolean;
1317
1359
  /**
1318
- * Makes this input required when another input has a specific value:
1319
- *
1320
- * - Key: name of the input to check
1321
- * - Value: operation and allowed values that trigger the requirement
1360
+ * Makes this input required when other inputs have one of the listed values
1322
1361
  */
1323
- conditionalValues?: unknown;
1362
+ conditional?: Required.Conditional;
1324
1363
  /**
1325
1364
  * Makes this input required when another input is defined:
1326
1365
  *
@@ -1336,6 +1375,24 @@ export declare namespace JobListResponse {
1336
1375
  */
1337
1376
  ifNotDefined?: unknown;
1338
1377
  }
1378
+ namespace Required {
1379
+ /**
1380
+ * Makes this input required when other inputs have one of the listed values
1381
+ */
1382
+ interface Conditional {
1383
+ /**
1384
+ * The conditions to check:
1385
+ *
1386
+ * - Key: name of the input to check
1387
+ * - Value: values of that input that satisfy the condition
1388
+ */
1389
+ values: unknown;
1390
+ /**
1391
+ * How the conditions combine: \`and\` (all must match) or \`or\` (any must match)
1392
+ */
1393
+ operator?: 'and' | 'or';
1394
+ }
1395
+ }
1339
1396
  }
1340
1397
  /**
1341
1398
  * The reference to another input or output of the same workflow. Must have at
@@ -1371,8 +1428,7 @@ export declare namespace JobListResponse {
1371
1428
  * - \`ifNotDefined\`: Input is required when another specified input is not
1372
1429
  * defined
1373
1430
  * - \`ifDefined\`: Input is required when another specified input is defined
1374
- * - \`conditionalValues\`: Input is required when another input has a specific
1375
- * value
1431
+ * - \`conditional\`: Input is required when other inputs have specific values
1376
1432
  *
1377
1433
  * By default, the input is not required.
1378
1434
  */
@@ -1382,12 +1438,9 @@ export declare namespace JobListResponse {
1382
1438
  */
1383
1439
  always?: boolean;
1384
1440
  /**
1385
- * Makes this input required when another input has a specific value:
1386
- *
1387
- * - Key: name of the input to check
1388
- * - Value: operation and allowed values that trigger the requirement
1441
+ * Makes this input required when other inputs have one of the listed values
1389
1442
  */
1390
- conditionalValues?: unknown;
1443
+ conditional?: Required.Conditional;
1391
1444
  /**
1392
1445
  * Makes this input required when another input is defined:
1393
1446
  *
@@ -1403,6 +1456,24 @@ export declare namespace JobListResponse {
1403
1456
  */
1404
1457
  ifNotDefined?: unknown;
1405
1458
  }
1459
+ namespace Required {
1460
+ /**
1461
+ * Makes this input required when other inputs have one of the listed values
1462
+ */
1463
+ interface Conditional {
1464
+ /**
1465
+ * The conditions to check:
1466
+ *
1467
+ * - Key: name of the input to check
1468
+ * - Value: values of that input that satisfy the condition
1469
+ */
1470
+ values: unknown;
1471
+ /**
1472
+ * How the conditions combine: \`and\` (all must match) or \`or\` (any must match)
1473
+ */
1474
+ operator?: 'and' | 'or';
1475
+ }
1476
+ }
1406
1477
  }
1407
1478
  /**
1408
1479
  * The logic of the node. Only available for logic nodes.
@@ -1442,7 +1513,7 @@ export declare namespace JobListResponse {
1442
1513
  cuDiscount: number;
1443
1514
  /**
1444
1515
  * Compute Units charged for the ADD-ONS of this job, per action — the fees paid on
1445
- * top of the generation itself, such as `slop-detection`.
1516
+ * top of the generation itself, such as `quality-gate`.
1446
1517
  *
1447
1518
  * `cuCost` above is the main action alone, so the job's total is `cuCost` plus the
1448
1519
  * values here.
@@ -1470,7 +1541,7 @@ export declare namespace JobListResponse {
1470
1541
  namespace Billing {
1471
1542
  /**
1472
1543
  * Compute Units charged for the ADD-ONS of this job, per action — the fees paid on
1473
- * top of the generation itself, such as `slop-detection`.
1544
+ * top of the generation itself, such as `quality-gate`.
1474
1545
  *
1475
1546
  * `cuCost` above is the main action alone, so the job's total is `cuCost` plus the
1476
1547
  * values here.
@@ -1489,7 +1560,7 @@ export declare namespace JobListResponse {
1489
1560
  */
1490
1561
  interface CuCostDetails {
1491
1562
  'ip-detection'?: number;
1492
- 'slop-detection'?: number;
1563
+ 'quality-gate'?: number;
1493
1564
  }
1494
1565
  }
1495
1566
  }
@@ -1605,7 +1676,7 @@ export declare namespace JobTriggerActionResponse {
1605
1676
  /**
1606
1677
  * The type of the job for the node.
1607
1678
  */
1608
- type: 'custom-model' | 'for-each' | 'generate-prompt' | 'list' | 'logic' | 'model' | 'remove-background' | 'transform' | 'user-approval' | 'workflow';
1679
+ type: 'custom-model' | 'for-each' | 'generate-prompt' | 'list' | 'logic' | 'model' | 'remove-background' | 'transform' | 'user-approval' | 'user-selection' | 'workflow';
1609
1680
  /**
1610
1681
  * List of produced assets for this node.
1611
1682
  */
@@ -1630,13 +1701,14 @@ export declare namespace JobTriggerActionResponse {
1630
1701
  */
1631
1702
  includeOutputsInWorkflowJob?: true;
1632
1703
  /**
1633
- * The inputs of the node.
1704
+ * The inputs of the node. For a user-selection node, the array input's `min`/`max`
1705
+ * bound how many items the user may pick (defaults: 1 and 100); conditional
1706
+ * connections may be present as additional inputs.
1634
1707
  */
1635
1708
  inputs?: Array<Flow.Input>;
1636
1709
  /**
1637
- * Statically-configured items for a List node. The node outputs this array as-is
1638
- * when executed. Only available for List nodes. The values can be strings,
1639
- * numbers, or asset IDs.
1710
+ * Statically-configured items for a List node, or the frozen candidate list of a
1711
+ * UserSelection node. The values can be strings, numbers, or asset IDs.
1640
1712
  */
1641
1713
  items?: Array<string>;
1642
1714
  /**
@@ -1753,7 +1825,9 @@ export declare namespace JobTriggerActionResponse {
1753
1825
  * The asset kind of the input. Only taken into account for \`file\` and
1754
1826
  * \`file_array\` input types. If model provides multiple kinds, the input will be
1755
1827
  * not able to create the asset on the flight on API side with dataurl without
1756
- * data:kind, prefix
1828
+ * data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
1829
+ * a model does not declare one, \`image\` is returned, which is the kind used at
1830
+ * generation time.
1757
1831
  */
1758
1832
  kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
1759
1833
  /**
@@ -1776,8 +1850,9 @@ export declare namespace JobTriggerActionResponse {
1776
1850
  */
1777
1851
  maxDuration?: number;
1778
1852
  /**
1779
- * The maximum allowed length for \`string\` inputs. Also applies to each item in
1780
- * \`string_array\`.
1853
+ * The maximum allowed length for \`string\` and \`model\` inputs, in characters.
1854
+ * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
1855
+ * ITEMS instead — the length of each item is not constrained.
1781
1856
  */
1782
1857
  maxLength?: number;
1783
1858
  /**
@@ -1791,8 +1866,9 @@ export declare namespace JobTriggerActionResponse {
1791
1866
  */
1792
1867
  min?: number;
1793
1868
  /**
1794
- * The minimum allowed length for string inputs. Also applies to each item in
1795
- * \`string_array\`.
1869
+ * The minimum allowed length for \`string\` and \`model\` inputs, in characters.
1870
+ * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
1871
+ * ITEMS instead — the length of each item is not constrained.
1796
1872
  */
1797
1873
  minLength?: number;
1798
1874
  /**
@@ -1833,8 +1909,7 @@ export declare namespace JobTriggerActionResponse {
1833
1909
  * - \`ifNotDefined\`: Input is required when another specified input is not
1834
1910
  * defined
1835
1911
  * - \`ifDefined\`: Input is required when another specified input is defined
1836
- * - \`conditionalValues\`: Input is required when another input has a specific
1837
- * value
1912
+ * - \`conditional\`: Input is required when other inputs have specific values
1838
1913
  *
1839
1914
  * By default, the input is not required.
1840
1915
  */
@@ -1911,7 +1986,9 @@ export declare namespace JobTriggerActionResponse {
1911
1986
  * The asset kind of the input. Only taken into account for \`file\` and
1912
1987
  * \`file_array\` input types. If model provides multiple kinds, the input will be
1913
1988
  * not able to create the asset on the flight on API side with dataurl without
1914
- * data:kind, prefix
1989
+ * data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
1990
+ * a model does not declare one, \`image\` is returned, which is the kind used at
1991
+ * generation time.
1915
1992
  */
1916
1993
  kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
1917
1994
  /**
@@ -1934,8 +2011,9 @@ export declare namespace JobTriggerActionResponse {
1934
2011
  */
1935
2012
  maxDuration?: number;
1936
2013
  /**
1937
- * The maximum allowed length for \`string\` inputs. Also applies to each item in
1938
- * \`string_array\`.
2014
+ * The maximum allowed length for \`string\` and \`model\` inputs, in characters.
2015
+ * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
2016
+ * ITEMS instead — the length of each item is not constrained.
1939
2017
  */
1940
2018
  maxLength?: number;
1941
2019
  /**
@@ -1949,8 +2027,9 @@ export declare namespace JobTriggerActionResponse {
1949
2027
  */
1950
2028
  min?: number;
1951
2029
  /**
1952
- * The minimum allowed length for string inputs. Also applies to each item in
1953
- * \`string_array\`.
2030
+ * The minimum allowed length for \`string\` and \`model\` inputs, in characters.
2031
+ * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
2032
+ * ITEMS instead — the length of each item is not constrained.
1954
2033
  */
1955
2034
  minLength?: number;
1956
2035
  /**
@@ -1991,8 +2070,7 @@ export declare namespace JobTriggerActionResponse {
1991
2070
  * - \`ifNotDefined\`: Input is required when another specified input is not
1992
2071
  * defined
1993
2072
  * - \`ifDefined\`: Input is required when another specified input is defined
1994
- * - \`conditionalValues\`: Input is required when another input has a specific
1995
- * value
2073
+ * - \`conditional\`: Input is required when other inputs have specific values
1996
2074
  *
1997
2075
  * By default, the input is not required.
1998
2076
  */
@@ -2042,8 +2120,7 @@ export declare namespace JobTriggerActionResponse {
2042
2120
  * - \`ifNotDefined\`: Input is required when another specified input is not
2043
2121
  * defined
2044
2122
  * - \`ifDefined\`: Input is required when another specified input is defined
2045
- * - \`conditionalValues\`: Input is required when another input has a specific
2046
- * value
2123
+ * - \`conditional\`: Input is required when other inputs have specific values
2047
2124
  *
2048
2125
  * By default, the input is not required.
2049
2126
  */
@@ -2053,12 +2130,9 @@ export declare namespace JobTriggerActionResponse {
2053
2130
  */
2054
2131
  always?: boolean;
2055
2132
  /**
2056
- * Makes this input required when another input has a specific value:
2057
- *
2058
- * - Key: name of the input to check
2059
- * - Value: operation and allowed values that trigger the requirement
2133
+ * Makes this input required when other inputs have one of the listed values
2060
2134
  */
2061
- conditionalValues?: unknown;
2135
+ conditional?: Required.Conditional;
2062
2136
  /**
2063
2137
  * Makes this input required when another input is defined:
2064
2138
  *
@@ -2074,6 +2148,24 @@ export declare namespace JobTriggerActionResponse {
2074
2148
  */
2075
2149
  ifNotDefined?: unknown;
2076
2150
  }
2151
+ namespace Required {
2152
+ /**
2153
+ * Makes this input required when other inputs have one of the listed values
2154
+ */
2155
+ interface Conditional {
2156
+ /**
2157
+ * The conditions to check:
2158
+ *
2159
+ * - Key: name of the input to check
2160
+ * - Value: values of that input that satisfy the condition
2161
+ */
2162
+ values: unknown;
2163
+ /**
2164
+ * How the conditions combine: \`and\` (all must match) or \`or\` (any must match)
2165
+ */
2166
+ operator?: 'and' | 'or';
2167
+ }
2168
+ }
2077
2169
  }
2078
2170
  /**
2079
2171
  * The reference to another input or output of the same workflow. Must have at
@@ -2109,8 +2201,7 @@ export declare namespace JobTriggerActionResponse {
2109
2201
  * - \`ifNotDefined\`: Input is required when another specified input is not
2110
2202
  * defined
2111
2203
  * - \`ifDefined\`: Input is required when another specified input is defined
2112
- * - \`conditionalValues\`: Input is required when another input has a specific
2113
- * value
2204
+ * - \`conditional\`: Input is required when other inputs have specific values
2114
2205
  *
2115
2206
  * By default, the input is not required.
2116
2207
  */
@@ -2120,12 +2211,9 @@ export declare namespace JobTriggerActionResponse {
2120
2211
  */
2121
2212
  always?: boolean;
2122
2213
  /**
2123
- * Makes this input required when another input has a specific value:
2124
- *
2125
- * - Key: name of the input to check
2126
- * - Value: operation and allowed values that trigger the requirement
2214
+ * Makes this input required when other inputs have one of the listed values
2127
2215
  */
2128
- conditionalValues?: unknown;
2216
+ conditional?: Required.Conditional;
2129
2217
  /**
2130
2218
  * Makes this input required when another input is defined:
2131
2219
  *
@@ -2141,6 +2229,24 @@ export declare namespace JobTriggerActionResponse {
2141
2229
  */
2142
2230
  ifNotDefined?: unknown;
2143
2231
  }
2232
+ namespace Required {
2233
+ /**
2234
+ * Makes this input required when other inputs have one of the listed values
2235
+ */
2236
+ interface Conditional {
2237
+ /**
2238
+ * The conditions to check:
2239
+ *
2240
+ * - Key: name of the input to check
2241
+ * - Value: values of that input that satisfy the condition
2242
+ */
2243
+ values: unknown;
2244
+ /**
2245
+ * How the conditions combine: \`and\` (all must match) or \`or\` (any must match)
2246
+ */
2247
+ operator?: 'and' | 'or';
2248
+ }
2249
+ }
2144
2250
  }
2145
2251
  /**
2146
2252
  * The logic of the node. Only available for logic nodes.
@@ -2180,7 +2286,7 @@ export declare namespace JobTriggerActionResponse {
2180
2286
  cuDiscount: number;
2181
2287
  /**
2182
2288
  * Compute Units charged for the ADD-ONS of this job, per action — the fees paid on
2183
- * top of the generation itself, such as `slop-detection`.
2289
+ * top of the generation itself, such as `quality-gate`.
2184
2290
  *
2185
2291
  * `cuCost` above is the main action alone, so the job's total is `cuCost` plus the
2186
2292
  * values here.
@@ -2208,7 +2314,7 @@ export declare namespace JobTriggerActionResponse {
2208
2314
  namespace Billing {
2209
2315
  /**
2210
2316
  * Compute Units charged for the ADD-ONS of this job, per action — the fees paid on
2211
- * top of the generation itself, such as `slop-detection`.
2317
+ * top of the generation itself, such as `quality-gate`.
2212
2318
  *
2213
2319
  * `cuCost` above is the main action alone, so the job's total is `cuCost` plus the
2214
2320
  * values here.
@@ -2227,29 +2333,50 @@ export declare namespace JobTriggerActionResponse {
2227
2333
  */
2228
2334
  interface CuCostDetails {
2229
2335
  'ip-detection'?: number;
2230
- 'slop-detection'?: number;
2336
+ 'quality-gate'?: number;
2231
2337
  }
2232
2338
  }
2233
2339
  }
2234
2340
  }
2235
2341
  export interface JobRetrieveParams {
2236
- projectId?: unknown;
2342
+ /**
2343
+ * The projectId used for ownership resource management. Either to assert ownership
2344
+ * or to set the owner of the resource(s)
2345
+ */
2346
+ projectId?: string;
2237
2347
  }
2238
2348
  export interface JobListParams extends JobsCursorParams {
2239
2349
  /**
2240
- * The authorId of the jobs to return. Optional.
2350
+ * The authorId of the jobs to return. When set, only jobs from the last 30 days
2351
+ * are returned (by creation date, or by update date when "status", "type", "types"
2352
+ * or "workflowId" is set) unless "createdAfter" or "updatedAfter" is set.
2353
+ * Optional.
2241
2354
  */
2242
2355
  authorId?: string;
2243
2356
  /**
2244
- * If false, jobs containing the hideResults param will be not returned. Optional.
2357
+ * Only return the jobs created after this date (ISO 8601). Only allowed without
2358
+ * "status", "type", "types" and "workflowId", which sort jobs by update date: use
2359
+ * "updatedAfter" with them. Overrides the 30-day window applied with "authorId" or
2360
+ * "hideResults=false". Optional.
2361
+ */
2362
+ createdAfter?: string;
2363
+ /**
2364
+ * If false, jobs submitted with "hideResults": true are not returned. When false,
2365
+ * only jobs from the last 30 days are returned (by creation date, or by update
2366
+ * date when "status", "type", "types" or "workflowId" is set) unless
2367
+ * "createdAfter" or "updatedAfter" is set. Optional.
2245
2368
  */
2246
2369
  hideResults?: boolean;
2247
2370
  /**
2248
- * The number of items to return in the response. The default value is 10, maximum
2249
- * value is 200, minimum value is 1
2371
+ * The number of items to return in the response. The default value is 50, maximum
2372
+ * value is 100, minimum value is 1
2250
2373
  */
2251
2374
  pageSize?: number;
2252
- projectId?: unknown;
2375
+ /**
2376
+ * The projectId used for ownership resource management. Either to assert ownership
2377
+ * or to set the owner of the resource(s)
2378
+ */
2379
+ projectId?: string;
2253
2380
  /**
2254
2381
  * The status of the jobs to return. Optional.
2255
2382
  */
@@ -2271,13 +2398,19 @@ export interface JobListParams extends JobsCursorParams {
2271
2398
  * mesh-preview-rendering, workflow. Optional.
2272
2399
  */
2273
2400
  types?: Array<'assets-download' | 'model-training' | 'flux-model-training' | 'musubi-model-training' | 'inference' | 'pixelate' | 'embed' | 'remove-background' | 'vectorize' | 'canvas-export' | 'image-generation' | 'image-prompt-editing' | 'caption' | 'generate-prompt' | 'describe-style' | 'translate' | 'detection' | 'restyle' | 'repaint' | 'reframe' | 'segment' | 'skybox-base-360' | 'skybox-upscale-360' | 'skybox-hdri' | 'skybox-3d' | 'texture' | 'upscale' | 'upscale-skybox' | 'upscale-texture' | 'flux' | 'openai-image-generation' | 'upload' | 'custom' | 'splat' | 'mesh-preview-rendering' | 'workflow'>;
2274
- workflowId?: unknown;
2275
- }
2276
- export interface JobTriggerActionParams {
2277
2401
  /**
2278
- * Query param: If set to true, returns the original asset without transformation
2402
+ * Only return the jobs updated after this date (ISO 8601). Only allowed with
2403
+ * "status", "type", "types" or "workflowId": without them jobs are sorted by
2404
+ * creation date, use "createdAfter". Overrides the 30-day window applied with
2405
+ * "authorId" or "hideResults=false". Optional.
2279
2406
  */
2280
- originalAssets?: boolean;
2407
+ updatedAfter?: string;
2408
+ /**
2409
+ * Only return the jobs produced by the given workflow. Optional.
2410
+ */
2411
+ workflowId?: string;
2412
+ }
2413
+ export interface JobTriggerActionParams {
2281
2414
  /**
2282
2415
  * Query param: The projectId used for ownership resource management. Either to
2283
2416
  * assert ownership or to set the owner of the resource(s)