@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
@@ -5,6 +5,7 @@ import { APIPromise } from '../core/api-promise';
5
5
  import { JobsCursor, type JobsCursorParams, PagePromise } from '../core/pagination';
6
6
  import { RequestOptions } from '../internal/request-options';
7
7
  import { path } from '../internal/utils/path';
8
+ import { omitUndefined } from '../internal/utils/values';
8
9
 
9
10
  export class Jobs extends APIResource {
10
11
  /**
@@ -15,20 +16,27 @@ export class Jobs extends APIResource {
15
16
  query: JobRetrieveParams | null | undefined = {},
16
17
  options?: RequestOptions,
17
18
  ): APIPromise<JobRetrieveResponse> {
18
- return this._client.get(path`/jobs/${jobID}`, { query, ...options });
19
+ return this._client.get(path`/jobs/${jobID}`, {
20
+ ...options,
21
+ query: { ...query, ...omitUndefined(options?.query) },
22
+ });
19
23
  }
20
24
 
21
25
  /**
22
26
  * List all jobs matching the given filters. A job is a synchronous operation or an
23
27
  * asynchronous task such as a training, a generation, etc. It offers a unified
24
28
  * view of all operations running on the platform along with their status and
25
- * results.
29
+ * results. A page can hold fewer jobs than "pageSize", or none, while
30
+ * "nextPaginationToken" is set: keep paginating until it is absent.
26
31
  */
27
32
  list(
28
33
  query: JobListParams | null | undefined = {},
29
34
  options?: RequestOptions,
30
35
  ): PagePromise<JobListResponsesJobsCursor, JobListResponse> {
31
- return this._client.getAPIList('/jobs', JobsCursor<JobListResponse>, { query, ...options });
36
+ return this._client.getAPIList('/jobs', JobsCursor<JobListResponse>, {
37
+ ...options,
38
+ query: { ...query, ...omitUndefined(options?.query) },
39
+ });
32
40
  }
33
41
 
34
42
  /**
@@ -39,11 +47,11 @@ export class Jobs extends APIResource {
39
47
  params: JobTriggerActionParams,
40
48
  options?: RequestOptions,
41
49
  ): APIPromise<JobTriggerActionResponse> {
42
- const { originalAssets, projectId, ...body } = params;
50
+ const { projectId, ...body } = params;
43
51
  return this._client.post(path`/jobs/${jobID}/action`, {
44
- query: { originalAssets, projectId },
45
52
  body,
46
53
  ...options,
54
+ query: { projectId, ...omitUndefined(options?.query) },
47
55
  });
48
56
  }
49
57
  }
@@ -239,6 +247,7 @@ export namespace JobRetrieveResponse {
239
247
  | 'remove-background'
240
248
  | 'transform'
241
249
  | 'user-approval'
250
+ | 'user-selection'
242
251
  | 'workflow';
243
252
 
244
253
  /**
@@ -269,14 +278,15 @@ export namespace JobRetrieveResponse {
269
278
  includeOutputsInWorkflowJob?: true;
270
279
 
271
280
  /**
272
- * The inputs of the node.
281
+ * The inputs of the node. For a user-selection node, the array input's `min`/`max`
282
+ * bound how many items the user may pick (defaults: 1 and 100); conditional
283
+ * connections may be present as additional inputs.
273
284
  */
274
285
  inputs?: Array<Flow.Input>;
275
286
 
276
287
  /**
277
- * Statically-configured items for a List node. The node outputs this array as-is
278
- * when executed. Only available for List nodes. The values can be strings,
279
- * numbers, or asset IDs.
288
+ * Statically-configured items for a List node, or the frozen candidate list of a
289
+ * UserSelection node. The values can be strings, numbers, or asset IDs.
280
290
  */
281
291
  items?: Array<string>;
282
292
 
@@ -425,7 +435,9 @@ export namespace JobRetrieveResponse {
425
435
  * The asset kind of the input. Only taken into account for \`file\` and
426
436
  * \`file_array\` input types. If model provides multiple kinds, the input will be
427
437
  * not able to create the asset on the flight on API side with dataurl without
428
- * data:kind, prefix
438
+ * data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
439
+ * a model does not declare one, \`image\` is returned, which is the kind used at
440
+ * generation time.
429
441
  */
430
442
  kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
431
443
 
@@ -453,8 +465,9 @@ export namespace JobRetrieveResponse {
453
465
  maxDuration?: number;
454
466
 
455
467
  /**
456
- * The maximum allowed length for \`string\` inputs. Also applies to each item in
457
- * \`string_array\`.
468
+ * The maximum allowed length for \`string\` and \`model\` inputs, in characters.
469
+ * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
470
+ * ITEMS instead — the length of each item is not constrained.
458
471
  */
459
472
  maxLength?: number;
460
473
 
@@ -471,8 +484,9 @@ export namespace JobRetrieveResponse {
471
484
  min?: number;
472
485
 
473
486
  /**
474
- * The minimum allowed length for string inputs. Also applies to each item in
475
- * \`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.
476
490
  */
477
491
  minLength?: number;
478
492
 
@@ -552,8 +566,7 @@ export namespace JobRetrieveResponse {
552
566
  * - \`ifNotDefined\`: Input is required when another specified input is not
553
567
  * defined
554
568
  * - \`ifDefined\`: Input is required when another specified input is defined
555
- * - \`conditionalValues\`: Input is required when another input has a specific
556
- * value
569
+ * - \`conditional\`: Input is required when other inputs have specific values
557
570
  *
558
571
  * By default, the input is not required.
559
572
  */
@@ -652,7 +665,9 @@ export namespace JobRetrieveResponse {
652
665
  * The asset kind of the input. Only taken into account for \`file\` and
653
666
  * \`file_array\` input types. If model provides multiple kinds, the input will be
654
667
  * not able to create the asset on the flight on API side with dataurl without
655
- * data:kind, prefix
668
+ * data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
669
+ * a model does not declare one, \`image\` is returned, which is the kind used at
670
+ * generation time.
656
671
  */
657
672
  kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
658
673
 
@@ -680,8 +695,9 @@ export namespace JobRetrieveResponse {
680
695
  maxDuration?: number;
681
696
 
682
697
  /**
683
- * The maximum allowed length for \`string\` inputs. Also applies to each item in
684
- * \`string_array\`.
698
+ * The maximum allowed length for \`string\` and \`model\` inputs, in characters.
699
+ * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
700
+ * ITEMS instead — the length of each item is not constrained.
685
701
  */
686
702
  maxLength?: number;
687
703
 
@@ -698,8 +714,9 @@ export namespace JobRetrieveResponse {
698
714
  min?: number;
699
715
 
700
716
  /**
701
- * The minimum allowed length for string inputs. Also applies to each item in
702
- * \`string_array\`.
717
+ * The minimum allowed length for \`string\` and \`model\` inputs, in characters.
718
+ * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
719
+ * ITEMS instead — the length of each item is not constrained.
703
720
  */
704
721
  minLength?: number;
705
722
 
@@ -779,8 +796,7 @@ export namespace JobRetrieveResponse {
779
796
  * - \`ifNotDefined\`: Input is required when another specified input is not
780
797
  * defined
781
798
  * - \`ifDefined\`: Input is required when another specified input is defined
782
- * - \`conditionalValues\`: Input is required when another input has a specific
783
- * value
799
+ * - \`conditional\`: Input is required when other inputs have specific values
784
800
  *
785
801
  * By default, the input is not required.
786
802
  */
@@ -837,8 +853,7 @@ export namespace JobRetrieveResponse {
837
853
  * - \`ifNotDefined\`: Input is required when another specified input is not
838
854
  * defined
839
855
  * - \`ifDefined\`: Input is required when another specified input is defined
840
- * - \`conditionalValues\`: Input is required when another input has a specific
841
- * value
856
+ * - \`conditional\`: Input is required when other inputs have specific values
842
857
  *
843
858
  * By default, the input is not required.
844
859
  */
@@ -849,12 +864,9 @@ export namespace JobRetrieveResponse {
849
864
  always?: boolean;
850
865
 
851
866
  /**
852
- * Makes this input required when another input has a specific value:
853
- *
854
- * - Key: name of the input to check
855
- * - Value: operation and allowed values that trigger the requirement
867
+ * Makes this input required when other inputs have one of the listed values
856
868
  */
857
- conditionalValues?: unknown;
869
+ conditional?: Required.Conditional;
858
870
 
859
871
  /**
860
872
  * Makes this input required when another input is defined:
@@ -872,6 +884,26 @@ export namespace JobRetrieveResponse {
872
884
  */
873
885
  ifNotDefined?: unknown;
874
886
  }
887
+
888
+ export namespace Required {
889
+ /**
890
+ * Makes this input required when other inputs have one of the listed values
891
+ */
892
+ export interface Conditional {
893
+ /**
894
+ * The conditions to check:
895
+ *
896
+ * - Key: name of the input to check
897
+ * - Value: values of that input that satisfy the condition
898
+ */
899
+ values: unknown;
900
+
901
+ /**
902
+ * How the conditions combine: \`and\` (all must match) or \`or\` (any must match)
903
+ */
904
+ operator?: 'and' | 'or';
905
+ }
906
+ }
875
907
  }
876
908
 
877
909
  /**
@@ -912,8 +944,7 @@ export namespace JobRetrieveResponse {
912
944
  * - \`ifNotDefined\`: Input is required when another specified input is not
913
945
  * defined
914
946
  * - \`ifDefined\`: Input is required when another specified input is defined
915
- * - \`conditionalValues\`: Input is required when another input has a specific
916
- * value
947
+ * - \`conditional\`: Input is required when other inputs have specific values
917
948
  *
918
949
  * By default, the input is not required.
919
950
  */
@@ -924,12 +955,9 @@ export namespace JobRetrieveResponse {
924
955
  always?: boolean;
925
956
 
926
957
  /**
927
- * Makes this input required when another input has a specific value:
928
- *
929
- * - Key: name of the input to check
930
- * - Value: operation and allowed values that trigger the requirement
958
+ * Makes this input required when other inputs have one of the listed values
931
959
  */
932
- conditionalValues?: unknown;
960
+ conditional?: Required.Conditional;
933
961
 
934
962
  /**
935
963
  * Makes this input required when another input is defined:
@@ -947,6 +975,26 @@ export namespace JobRetrieveResponse {
947
975
  */
948
976
  ifNotDefined?: unknown;
949
977
  }
978
+
979
+ export namespace Required {
980
+ /**
981
+ * Makes this input required when other inputs have one of the listed values
982
+ */
983
+ export interface Conditional {
984
+ /**
985
+ * The conditions to check:
986
+ *
987
+ * - Key: name of the input to check
988
+ * - Value: values of that input that satisfy the condition
989
+ */
990
+ values: unknown;
991
+
992
+ /**
993
+ * How the conditions combine: \`and\` (all must match) or \`or\` (any must match)
994
+ */
995
+ operator?: 'and' | 'or';
996
+ }
997
+ }
950
998
  }
951
999
 
952
1000
  /**
@@ -1004,7 +1052,7 @@ export namespace JobRetrieveResponse {
1004
1052
 
1005
1053
  /**
1006
1054
  * Compute Units charged for the ADD-ONS of this job, per action — the fees paid on
1007
- * top of the generation itself, such as `slop-detection`.
1055
+ * top of the generation itself, such as `quality-gate`.
1008
1056
  *
1009
1057
  * `cuCost` above is the main action alone, so the job's total is `cuCost` plus the
1010
1058
  * values here.
@@ -1034,7 +1082,7 @@ export namespace JobRetrieveResponse {
1034
1082
  export namespace Billing {
1035
1083
  /**
1036
1084
  * Compute Units charged for the ADD-ONS of this job, per action — the fees paid on
1037
- * top of the generation itself, such as `slop-detection`.
1085
+ * top of the generation itself, such as `quality-gate`.
1038
1086
  *
1039
1087
  * `cuCost` above is the main action alone, so the job's total is `cuCost` plus the
1040
1088
  * values here.
@@ -1054,7 +1102,7 @@ export namespace JobRetrieveResponse {
1054
1102
  export interface CuCostDetails {
1055
1103
  'ip-detection'?: number;
1056
1104
 
1057
- 'slop-detection'?: number;
1105
+ 'quality-gate'?: number;
1058
1106
  }
1059
1107
  }
1060
1108
  }
@@ -1244,6 +1292,7 @@ export namespace JobListResponse {
1244
1292
  | 'remove-background'
1245
1293
  | 'transform'
1246
1294
  | 'user-approval'
1295
+ | 'user-selection'
1247
1296
  | 'workflow';
1248
1297
 
1249
1298
  /**
@@ -1274,14 +1323,15 @@ export namespace JobListResponse {
1274
1323
  includeOutputsInWorkflowJob?: true;
1275
1324
 
1276
1325
  /**
1277
- * The inputs of the node.
1326
+ * The inputs of the node. For a user-selection node, the array input's `min`/`max`
1327
+ * bound how many items the user may pick (defaults: 1 and 100); conditional
1328
+ * connections may be present as additional inputs.
1278
1329
  */
1279
1330
  inputs?: Array<Flow.Input>;
1280
1331
 
1281
1332
  /**
1282
- * Statically-configured items for a List node. The node outputs this array as-is
1283
- * when executed. Only available for List nodes. The values can be strings,
1284
- * numbers, or asset IDs.
1333
+ * Statically-configured items for a List node, or the frozen candidate list of a
1334
+ * UserSelection node. The values can be strings, numbers, or asset IDs.
1285
1335
  */
1286
1336
  items?: Array<string>;
1287
1337
 
@@ -1430,7 +1480,9 @@ export namespace JobListResponse {
1430
1480
  * The asset kind of the input. Only taken into account for \`file\` and
1431
1481
  * \`file_array\` input types. If model provides multiple kinds, the input will be
1432
1482
  * not able to create the asset on the flight on API side with dataurl without
1433
- * data:kind, prefix
1483
+ * data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
1484
+ * a model does not declare one, \`image\` is returned, which is the kind used at
1485
+ * generation time.
1434
1486
  */
1435
1487
  kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
1436
1488
 
@@ -1458,8 +1510,9 @@ export namespace JobListResponse {
1458
1510
  maxDuration?: number;
1459
1511
 
1460
1512
  /**
1461
- * The maximum allowed length for \`string\` inputs. Also applies to each item in
1462
- * \`string_array\`.
1513
+ * The maximum allowed length for \`string\` and \`model\` inputs, in characters.
1514
+ * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
1515
+ * ITEMS instead — the length of each item is not constrained.
1463
1516
  */
1464
1517
  maxLength?: number;
1465
1518
 
@@ -1476,8 +1529,9 @@ export namespace JobListResponse {
1476
1529
  min?: number;
1477
1530
 
1478
1531
  /**
1479
- * The minimum allowed length for string inputs. Also applies to each item in
1480
- * \`string_array\`.
1532
+ * The minimum allowed length for \`string\` and \`model\` inputs, in characters.
1533
+ * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
1534
+ * ITEMS instead — the length of each item is not constrained.
1481
1535
  */
1482
1536
  minLength?: number;
1483
1537
 
@@ -1557,8 +1611,7 @@ export namespace JobListResponse {
1557
1611
  * - \`ifNotDefined\`: Input is required when another specified input is not
1558
1612
  * defined
1559
1613
  * - \`ifDefined\`: Input is required when another specified input is defined
1560
- * - \`conditionalValues\`: Input is required when another input has a specific
1561
- * value
1614
+ * - \`conditional\`: Input is required when other inputs have specific values
1562
1615
  *
1563
1616
  * By default, the input is not required.
1564
1617
  */
@@ -1657,7 +1710,9 @@ export namespace JobListResponse {
1657
1710
  * The asset kind of the input. Only taken into account for \`file\` and
1658
1711
  * \`file_array\` input types. If model provides multiple kinds, the input will be
1659
1712
  * not able to create the asset on the flight on API side with dataurl without
1660
- * data:kind, prefix
1713
+ * data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
1714
+ * a model does not declare one, \`image\` is returned, which is the kind used at
1715
+ * generation time.
1661
1716
  */
1662
1717
  kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
1663
1718
 
@@ -1685,8 +1740,9 @@ export namespace JobListResponse {
1685
1740
  maxDuration?: number;
1686
1741
 
1687
1742
  /**
1688
- * The maximum allowed length for \`string\` inputs. Also applies to each item in
1689
- * \`string_array\`.
1743
+ * The maximum allowed length for \`string\` and \`model\` inputs, in characters.
1744
+ * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
1745
+ * ITEMS instead — the length of each item is not constrained.
1690
1746
  */
1691
1747
  maxLength?: number;
1692
1748
 
@@ -1703,8 +1759,9 @@ export namespace JobListResponse {
1703
1759
  min?: number;
1704
1760
 
1705
1761
  /**
1706
- * The minimum allowed length for string inputs. Also applies to each item in
1707
- * \`string_array\`.
1762
+ * The minimum allowed length for \`string\` and \`model\` inputs, in characters.
1763
+ * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
1764
+ * ITEMS instead — the length of each item is not constrained.
1708
1765
  */
1709
1766
  minLength?: number;
1710
1767
 
@@ -1784,8 +1841,7 @@ export namespace JobListResponse {
1784
1841
  * - \`ifNotDefined\`: Input is required when another specified input is not
1785
1842
  * defined
1786
1843
  * - \`ifDefined\`: Input is required when another specified input is defined
1787
- * - \`conditionalValues\`: Input is required when another input has a specific
1788
- * value
1844
+ * - \`conditional\`: Input is required when other inputs have specific values
1789
1845
  *
1790
1846
  * By default, the input is not required.
1791
1847
  */
@@ -1842,8 +1898,7 @@ export namespace JobListResponse {
1842
1898
  * - \`ifNotDefined\`: Input is required when another specified input is not
1843
1899
  * defined
1844
1900
  * - \`ifDefined\`: Input is required when another specified input is defined
1845
- * - \`conditionalValues\`: Input is required when another input has a specific
1846
- * value
1901
+ * - \`conditional\`: Input is required when other inputs have specific values
1847
1902
  *
1848
1903
  * By default, the input is not required.
1849
1904
  */
@@ -1854,12 +1909,9 @@ export namespace JobListResponse {
1854
1909
  always?: boolean;
1855
1910
 
1856
1911
  /**
1857
- * Makes this input required when another input has a specific value:
1858
- *
1859
- * - Key: name of the input to check
1860
- * - Value: operation and allowed values that trigger the requirement
1912
+ * Makes this input required when other inputs have one of the listed values
1861
1913
  */
1862
- conditionalValues?: unknown;
1914
+ conditional?: Required.Conditional;
1863
1915
 
1864
1916
  /**
1865
1917
  * Makes this input required when another input is defined:
@@ -1877,6 +1929,26 @@ export namespace JobListResponse {
1877
1929
  */
1878
1930
  ifNotDefined?: unknown;
1879
1931
  }
1932
+
1933
+ export namespace Required {
1934
+ /**
1935
+ * Makes this input required when other inputs have one of the listed values
1936
+ */
1937
+ export interface Conditional {
1938
+ /**
1939
+ * The conditions to check:
1940
+ *
1941
+ * - Key: name of the input to check
1942
+ * - Value: values of that input that satisfy the condition
1943
+ */
1944
+ values: unknown;
1945
+
1946
+ /**
1947
+ * How the conditions combine: \`and\` (all must match) or \`or\` (any must match)
1948
+ */
1949
+ operator?: 'and' | 'or';
1950
+ }
1951
+ }
1880
1952
  }
1881
1953
 
1882
1954
  /**
@@ -1917,8 +1989,7 @@ export namespace JobListResponse {
1917
1989
  * - \`ifNotDefined\`: Input is required when another specified input is not
1918
1990
  * defined
1919
1991
  * - \`ifDefined\`: Input is required when another specified input is defined
1920
- * - \`conditionalValues\`: Input is required when another input has a specific
1921
- * value
1992
+ * - \`conditional\`: Input is required when other inputs have specific values
1922
1993
  *
1923
1994
  * By default, the input is not required.
1924
1995
  */
@@ -1929,12 +2000,9 @@ export namespace JobListResponse {
1929
2000
  always?: boolean;
1930
2001
 
1931
2002
  /**
1932
- * Makes this input required when another input has a specific value:
1933
- *
1934
- * - Key: name of the input to check
1935
- * - Value: operation and allowed values that trigger the requirement
2003
+ * Makes this input required when other inputs have one of the listed values
1936
2004
  */
1937
- conditionalValues?: unknown;
2005
+ conditional?: Required.Conditional;
1938
2006
 
1939
2007
  /**
1940
2008
  * Makes this input required when another input is defined:
@@ -1952,6 +2020,26 @@ export namespace JobListResponse {
1952
2020
  */
1953
2021
  ifNotDefined?: unknown;
1954
2022
  }
2023
+
2024
+ export namespace Required {
2025
+ /**
2026
+ * Makes this input required when other inputs have one of the listed values
2027
+ */
2028
+ export interface Conditional {
2029
+ /**
2030
+ * The conditions to check:
2031
+ *
2032
+ * - Key: name of the input to check
2033
+ * - Value: values of that input that satisfy the condition
2034
+ */
2035
+ values: unknown;
2036
+
2037
+ /**
2038
+ * How the conditions combine: \`and\` (all must match) or \`or\` (any must match)
2039
+ */
2040
+ operator?: 'and' | 'or';
2041
+ }
2042
+ }
1955
2043
  }
1956
2044
 
1957
2045
  /**
@@ -2009,7 +2097,7 @@ export namespace JobListResponse {
2009
2097
 
2010
2098
  /**
2011
2099
  * Compute Units charged for the ADD-ONS of this job, per action — the fees paid on
2012
- * top of the generation itself, such as `slop-detection`.
2100
+ * top of the generation itself, such as `quality-gate`.
2013
2101
  *
2014
2102
  * `cuCost` above is the main action alone, so the job's total is `cuCost` plus the
2015
2103
  * values here.
@@ -2039,7 +2127,7 @@ export namespace JobListResponse {
2039
2127
  export namespace Billing {
2040
2128
  /**
2041
2129
  * Compute Units charged for the ADD-ONS of this job, per action — the fees paid on
2042
- * top of the generation itself, such as `slop-detection`.
2130
+ * top of the generation itself, such as `quality-gate`.
2043
2131
  *
2044
2132
  * `cuCost` above is the main action alone, so the job's total is `cuCost` plus the
2045
2133
  * values here.
@@ -2059,7 +2147,7 @@ export namespace JobListResponse {
2059
2147
  export interface CuCostDetails {
2060
2148
  'ip-detection'?: number;
2061
2149
 
2062
- 'slop-detection'?: number;
2150
+ 'quality-gate'?: number;
2063
2151
  }
2064
2152
  }
2065
2153
  }
@@ -2253,6 +2341,7 @@ export namespace JobTriggerActionResponse {
2253
2341
  | 'remove-background'
2254
2342
  | 'transform'
2255
2343
  | 'user-approval'
2344
+ | 'user-selection'
2256
2345
  | 'workflow';
2257
2346
 
2258
2347
  /**
@@ -2283,14 +2372,15 @@ export namespace JobTriggerActionResponse {
2283
2372
  includeOutputsInWorkflowJob?: true;
2284
2373
 
2285
2374
  /**
2286
- * The inputs of the node.
2375
+ * The inputs of the node. For a user-selection node, the array input's `min`/`max`
2376
+ * bound how many items the user may pick (defaults: 1 and 100); conditional
2377
+ * connections may be present as additional inputs.
2287
2378
  */
2288
2379
  inputs?: Array<Flow.Input>;
2289
2380
 
2290
2381
  /**
2291
- * Statically-configured items for a List node. The node outputs this array as-is
2292
- * when executed. Only available for List nodes. The values can be strings,
2293
- * numbers, or asset IDs.
2382
+ * Statically-configured items for a List node, or the frozen candidate list of a
2383
+ * UserSelection node. The values can be strings, numbers, or asset IDs.
2294
2384
  */
2295
2385
  items?: Array<string>;
2296
2386
 
@@ -2439,7 +2529,9 @@ export namespace JobTriggerActionResponse {
2439
2529
  * The asset kind of the input. Only taken into account for \`file\` and
2440
2530
  * \`file_array\` input types. If model provides multiple kinds, the input will be
2441
2531
  * not able to create the asset on the flight on API side with dataurl without
2442
- * data:kind, prefix
2532
+ * data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
2533
+ * a model does not declare one, \`image\` is returned, which is the kind used at
2534
+ * generation time.
2443
2535
  */
2444
2536
  kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
2445
2537
 
@@ -2467,8 +2559,9 @@ export namespace JobTriggerActionResponse {
2467
2559
  maxDuration?: number;
2468
2560
 
2469
2561
  /**
2470
- * The maximum allowed length for \`string\` inputs. Also applies to each item in
2471
- * \`string_array\`.
2562
+ * The maximum allowed length for \`string\` and \`model\` inputs, in characters.
2563
+ * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
2564
+ * ITEMS instead — the length of each item is not constrained.
2472
2565
  */
2473
2566
  maxLength?: number;
2474
2567
 
@@ -2485,8 +2578,9 @@ export namespace JobTriggerActionResponse {
2485
2578
  min?: number;
2486
2579
 
2487
2580
  /**
2488
- * The minimum allowed length for string inputs. Also applies to each item in
2489
- * \`string_array\`.
2581
+ * The minimum allowed length for \`string\` and \`model\` inputs, in characters.
2582
+ * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
2583
+ * ITEMS instead — the length of each item is not constrained.
2490
2584
  */
2491
2585
  minLength?: number;
2492
2586
 
@@ -2566,8 +2660,7 @@ export namespace JobTriggerActionResponse {
2566
2660
  * - \`ifNotDefined\`: Input is required when another specified input is not
2567
2661
  * defined
2568
2662
  * - \`ifDefined\`: Input is required when another specified input is defined
2569
- * - \`conditionalValues\`: Input is required when another input has a specific
2570
- * value
2663
+ * - \`conditional\`: Input is required when other inputs have specific values
2571
2664
  *
2572
2665
  * By default, the input is not required.
2573
2666
  */
@@ -2666,7 +2759,9 @@ export namespace JobTriggerActionResponse {
2666
2759
  * The asset kind of the input. Only taken into account for \`file\` and
2667
2760
  * \`file_array\` input types. If model provides multiple kinds, the input will be
2668
2761
  * not able to create the asset on the flight on API side with dataurl without
2669
- * data:kind, prefix
2762
+ * data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
2763
+ * a model does not declare one, \`image\` is returned, which is the kind used at
2764
+ * generation time.
2670
2765
  */
2671
2766
  kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
2672
2767
 
@@ -2694,8 +2789,9 @@ export namespace JobTriggerActionResponse {
2694
2789
  maxDuration?: number;
2695
2790
 
2696
2791
  /**
2697
- * The maximum allowed length for \`string\` inputs. Also applies to each item in
2698
- * \`string_array\`.
2792
+ * The maximum allowed length for \`string\` and \`model\` inputs, in characters.
2793
+ * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
2794
+ * ITEMS instead — the length of each item is not constrained.
2699
2795
  */
2700
2796
  maxLength?: number;
2701
2797
 
@@ -2712,8 +2808,9 @@ export namespace JobTriggerActionResponse {
2712
2808
  min?: number;
2713
2809
 
2714
2810
  /**
2715
- * The minimum allowed length for string inputs. Also applies to each item in
2716
- * \`string_array\`.
2811
+ * The minimum allowed length for \`string\` and \`model\` inputs, in characters.
2812
+ * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
2813
+ * ITEMS instead — the length of each item is not constrained.
2717
2814
  */
2718
2815
  minLength?: number;
2719
2816
 
@@ -2793,8 +2890,7 @@ export namespace JobTriggerActionResponse {
2793
2890
  * - \`ifNotDefined\`: Input is required when another specified input is not
2794
2891
  * defined
2795
2892
  * - \`ifDefined\`: Input is required when another specified input is defined
2796
- * - \`conditionalValues\`: Input is required when another input has a specific
2797
- * value
2893
+ * - \`conditional\`: Input is required when other inputs have specific values
2798
2894
  *
2799
2895
  * By default, the input is not required.
2800
2896
  */
@@ -2851,8 +2947,7 @@ export namespace JobTriggerActionResponse {
2851
2947
  * - \`ifNotDefined\`: Input is required when another specified input is not
2852
2948
  * defined
2853
2949
  * - \`ifDefined\`: Input is required when another specified input is defined
2854
- * - \`conditionalValues\`: Input is required when another input has a specific
2855
- * value
2950
+ * - \`conditional\`: Input is required when other inputs have specific values
2856
2951
  *
2857
2952
  * By default, the input is not required.
2858
2953
  */
@@ -2863,12 +2958,9 @@ export namespace JobTriggerActionResponse {
2863
2958
  always?: boolean;
2864
2959
 
2865
2960
  /**
2866
- * Makes this input required when another input has a specific value:
2867
- *
2868
- * - Key: name of the input to check
2869
- * - Value: operation and allowed values that trigger the requirement
2961
+ * Makes this input required when other inputs have one of the listed values
2870
2962
  */
2871
- conditionalValues?: unknown;
2963
+ conditional?: Required.Conditional;
2872
2964
 
2873
2965
  /**
2874
2966
  * Makes this input required when another input is defined:
@@ -2886,6 +2978,26 @@ export namespace JobTriggerActionResponse {
2886
2978
  */
2887
2979
  ifNotDefined?: unknown;
2888
2980
  }
2981
+
2982
+ export namespace Required {
2983
+ /**
2984
+ * Makes this input required when other inputs have one of the listed values
2985
+ */
2986
+ export interface Conditional {
2987
+ /**
2988
+ * The conditions to check:
2989
+ *
2990
+ * - Key: name of the input to check
2991
+ * - Value: values of that input that satisfy the condition
2992
+ */
2993
+ values: unknown;
2994
+
2995
+ /**
2996
+ * How the conditions combine: \`and\` (all must match) or \`or\` (any must match)
2997
+ */
2998
+ operator?: 'and' | 'or';
2999
+ }
3000
+ }
2889
3001
  }
2890
3002
 
2891
3003
  /**
@@ -2926,8 +3038,7 @@ export namespace JobTriggerActionResponse {
2926
3038
  * - \`ifNotDefined\`: Input is required when another specified input is not
2927
3039
  * defined
2928
3040
  * - \`ifDefined\`: Input is required when another specified input is defined
2929
- * - \`conditionalValues\`: Input is required when another input has a specific
2930
- * value
3041
+ * - \`conditional\`: Input is required when other inputs have specific values
2931
3042
  *
2932
3043
  * By default, the input is not required.
2933
3044
  */
@@ -2938,12 +3049,9 @@ export namespace JobTriggerActionResponse {
2938
3049
  always?: boolean;
2939
3050
 
2940
3051
  /**
2941
- * Makes this input required when another input has a specific value:
2942
- *
2943
- * - Key: name of the input to check
2944
- * - Value: operation and allowed values that trigger the requirement
3052
+ * Makes this input required when other inputs have one of the listed values
2945
3053
  */
2946
- conditionalValues?: unknown;
3054
+ conditional?: Required.Conditional;
2947
3055
 
2948
3056
  /**
2949
3057
  * Makes this input required when another input is defined:
@@ -2961,6 +3069,26 @@ export namespace JobTriggerActionResponse {
2961
3069
  */
2962
3070
  ifNotDefined?: unknown;
2963
3071
  }
3072
+
3073
+ export namespace Required {
3074
+ /**
3075
+ * Makes this input required when other inputs have one of the listed values
3076
+ */
3077
+ export interface Conditional {
3078
+ /**
3079
+ * The conditions to check:
3080
+ *
3081
+ * - Key: name of the input to check
3082
+ * - Value: values of that input that satisfy the condition
3083
+ */
3084
+ values: unknown;
3085
+
3086
+ /**
3087
+ * How the conditions combine: \`and\` (all must match) or \`or\` (any must match)
3088
+ */
3089
+ operator?: 'and' | 'or';
3090
+ }
3091
+ }
2964
3092
  }
2965
3093
 
2966
3094
  /**
@@ -3018,7 +3146,7 @@ export namespace JobTriggerActionResponse {
3018
3146
 
3019
3147
  /**
3020
3148
  * Compute Units charged for the ADD-ONS of this job, per action — the fees paid on
3021
- * top of the generation itself, such as `slop-detection`.
3149
+ * top of the generation itself, such as `quality-gate`.
3022
3150
  *
3023
3151
  * `cuCost` above is the main action alone, so the job's total is `cuCost` plus the
3024
3152
  * values here.
@@ -3048,7 +3176,7 @@ export namespace JobTriggerActionResponse {
3048
3176
  export namespace Billing {
3049
3177
  /**
3050
3178
  * Compute Units charged for the ADD-ONS of this job, per action — the fees paid on
3051
- * top of the generation itself, such as `slop-detection`.
3179
+ * top of the generation itself, such as `quality-gate`.
3052
3180
  *
3053
3181
  * `cuCost` above is the main action alone, so the job's total is `cuCost` plus the
3054
3182
  * values here.
@@ -3068,34 +3196,56 @@ export namespace JobTriggerActionResponse {
3068
3196
  export interface CuCostDetails {
3069
3197
  'ip-detection'?: number;
3070
3198
 
3071
- 'slop-detection'?: number;
3199
+ 'quality-gate'?: number;
3072
3200
  }
3073
3201
  }
3074
3202
  }
3075
3203
  }
3076
3204
 
3077
3205
  export interface JobRetrieveParams {
3078
- projectId?: unknown;
3206
+ /**
3207
+ * The projectId used for ownership resource management. Either to assert ownership
3208
+ * or to set the owner of the resource(s)
3209
+ */
3210
+ projectId?: string;
3079
3211
  }
3080
3212
 
3081
3213
  export interface JobListParams extends JobsCursorParams {
3082
3214
  /**
3083
- * The authorId of the jobs to return. Optional.
3215
+ * The authorId of the jobs to return. When set, only jobs from the last 30 days
3216
+ * are returned (by creation date, or by update date when "status", "type", "types"
3217
+ * or "workflowId" is set) unless "createdAfter" or "updatedAfter" is set.
3218
+ * Optional.
3084
3219
  */
3085
3220
  authorId?: string;
3086
3221
 
3087
3222
  /**
3088
- * If false, jobs containing the hideResults param will be not returned. Optional.
3223
+ * Only return the jobs created after this date (ISO 8601). Only allowed without
3224
+ * "status", "type", "types" and "workflowId", which sort jobs by update date: use
3225
+ * "updatedAfter" with them. Overrides the 30-day window applied with "authorId" or
3226
+ * "hideResults=false". Optional.
3227
+ */
3228
+ createdAfter?: string;
3229
+
3230
+ /**
3231
+ * If false, jobs submitted with "hideResults": true are not returned. When false,
3232
+ * only jobs from the last 30 days are returned (by creation date, or by update
3233
+ * date when "status", "type", "types" or "workflowId" is set) unless
3234
+ * "createdAfter" or "updatedAfter" is set. Optional.
3089
3235
  */
3090
3236
  hideResults?: boolean;
3091
3237
 
3092
3238
  /**
3093
- * The number of items to return in the response. The default value is 10, maximum
3094
- * value is 200, minimum value is 1
3239
+ * The number of items to return in the response. The default value is 50, maximum
3240
+ * value is 100, minimum value is 1
3095
3241
  */
3096
3242
  pageSize?: number;
3097
3243
 
3098
- projectId?: unknown;
3244
+ /**
3245
+ * The projectId used for ownership resource management. Either to assert ownership
3246
+ * or to set the owner of the resource(s)
3247
+ */
3248
+ projectId?: string;
3099
3249
 
3100
3250
  /**
3101
3251
  * The status of the jobs to return. Optional.
@@ -3202,15 +3352,21 @@ export interface JobListParams extends JobsCursorParams {
3202
3352
  | 'workflow'
3203
3353
  >;
3204
3354
 
3205
- workflowId?: unknown;
3206
- }
3355
+ /**
3356
+ * Only return the jobs updated after this date (ISO 8601). Only allowed with
3357
+ * "status", "type", "types" or "workflowId": without them jobs are sorted by
3358
+ * creation date, use "createdAfter". Overrides the 30-day window applied with
3359
+ * "authorId" or "hideResults=false". Optional.
3360
+ */
3361
+ updatedAfter?: string;
3207
3362
 
3208
- export interface JobTriggerActionParams {
3209
3363
  /**
3210
- * Query param: If set to true, returns the original asset without transformation
3364
+ * Only return the jobs produced by the given workflow. Optional.
3211
3365
  */
3212
- originalAssets?: boolean;
3366
+ workflowId?: string;
3367
+ }
3213
3368
 
3369
+ export interface JobTriggerActionParams {
3214
3370
  /**
3215
3371
  * Query param: The projectId used for ownership resource management. Either to
3216
3372
  * assert ownership or to set the owner of the resource(s)