@scenario-labs/sdk 3.2.0 → 3.3.1

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 (530) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/client.d.mts +20 -5
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +20 -5
  5. package/client.d.ts.map +1 -1
  6. package/client.js +9 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +9 -0
  9. package/client.mjs.map +1 -1
  10. package/core/pagination.d.mts +42 -0
  11. package/core/pagination.d.mts.map +1 -1
  12. package/core/pagination.d.ts +42 -0
  13. package/core/pagination.d.ts.map +1 -1
  14. package/core/pagination.js +79 -1
  15. package/core/pagination.js.map +1 -1
  16. package/core/pagination.mjs +75 -0
  17. package/core/pagination.mjs.map +1 -1
  18. package/internal/utils/values.d.mts +6 -0
  19. package/internal/utils/values.d.mts.map +1 -1
  20. package/internal/utils/values.d.ts +6 -0
  21. package/internal/utils/values.d.ts.map +1 -1
  22. package/internal/utils/values.js +11 -0
  23. package/internal/utils/values.js.map +1 -1
  24. package/internal/utils/values.mjs +10 -0
  25. package/internal/utils/values.mjs.map +1 -1
  26. package/lib/asset.d.mts +1 -1
  27. package/lib/asset.d.ts +1 -1
  28. package/lib/asset.js +1 -1
  29. package/lib/asset.mjs +1 -1
  30. package/lib/generate.js +7 -7
  31. package/lib/generate.js.map +1 -1
  32. package/lib/generate.mjs +7 -7
  33. package/lib/generate.mjs.map +1 -1
  34. package/lib/job.d.mts +1 -1
  35. package/lib/job.d.mts.map +1 -1
  36. package/lib/job.d.ts +1 -1
  37. package/lib/job.d.ts.map +1 -1
  38. package/lib/job.js +5 -6
  39. package/lib/job.js.map +1 -1
  40. package/lib/job.mjs +6 -7
  41. package/lib/job.mjs.map +1 -1
  42. package/lib/models.d.mts.map +1 -1
  43. package/lib/models.d.ts.map +1 -1
  44. package/lib/models.js +7 -5
  45. package/lib/models.js.map +1 -1
  46. package/lib/models.mjs +8 -6
  47. package/lib/models.mjs.map +1 -1
  48. package/lib/query.d.mts +21 -0
  49. package/lib/query.d.mts.map +1 -0
  50. package/lib/query.d.ts +21 -0
  51. package/lib/query.d.ts.map +1 -0
  52. package/lib/query.js +36 -0
  53. package/lib/query.js.map +1 -0
  54. package/lib/query.mjs +33 -0
  55. package/lib/query.mjs.map +1 -0
  56. package/lib/scenario.d.mts +3 -0
  57. package/lib/scenario.d.mts.map +1 -1
  58. package/lib/scenario.d.ts +3 -0
  59. package/lib/scenario.d.ts.map +1 -1
  60. package/lib/scenario.js +6 -0
  61. package/lib/scenario.js.map +1 -1
  62. package/lib/scenario.mjs +6 -0
  63. package/lib/scenario.mjs.map +1 -1
  64. package/lib/scope.d.mts +27 -7
  65. package/lib/scope.d.mts.map +1 -1
  66. package/lib/scope.d.ts +27 -7
  67. package/lib/scope.d.ts.map +1 -1
  68. package/lib/scope.js +40 -7
  69. package/lib/scope.js.map +1 -1
  70. package/lib/scope.mjs +37 -7
  71. package/lib/scope.mjs.map +1 -1
  72. package/lib/upload.d.mts +11 -6
  73. package/lib/upload.d.mts.map +1 -1
  74. package/lib/upload.d.ts +11 -6
  75. package/lib/upload.d.ts.map +1 -1
  76. package/lib/upload.js +6 -7
  77. package/lib/upload.js.map +1 -1
  78. package/lib/upload.mjs +7 -8
  79. package/lib/upload.mjs.map +1 -1
  80. package/lib/workflow.d.mts +4 -2
  81. package/lib/workflow.d.mts.map +1 -1
  82. package/lib/workflow.d.ts +4 -2
  83. package/lib/workflow.d.ts.map +1 -1
  84. package/lib/workflow.js +13 -7
  85. package/lib/workflow.js.map +1 -1
  86. package/lib/workflow.mjs +14 -8
  87. package/lib/workflow.mjs.map +1 -1
  88. package/lib/workflow_converter.d.mts.map +1 -1
  89. package/lib/workflow_converter.d.ts.map +1 -1
  90. package/lib/workflow_converter.js +1 -1
  91. package/lib/workflow_converter.js.map +1 -1
  92. package/lib/workflow_converter.mjs +1 -1
  93. package/lib/workflow_converter.mjs.map +1 -1
  94. package/lib/workflow_validator.d.mts +5 -0
  95. package/lib/workflow_validator.d.mts.map +1 -1
  96. package/lib/workflow_validator.d.ts +5 -0
  97. package/lib/workflow_validator.d.ts.map +1 -1
  98. package/lib/workflow_validator.js +113 -0
  99. package/lib/workflow_validator.js.map +1 -1
  100. package/lib/workflow_validator.mjs +113 -0
  101. package/lib/workflow_validator.mjs.map +1 -1
  102. package/package.json +1 -1
  103. package/resources/assets/assets.d.mts +130 -31
  104. package/resources/assets/assets.d.mts.map +1 -1
  105. package/resources/assets/assets.d.ts +130 -31
  106. package/resources/assets/assets.d.ts.map +1 -1
  107. package/resources/assets/assets.js +34 -11
  108. package/resources/assets/assets.js.map +1 -1
  109. package/resources/assets/assets.mjs +34 -11
  110. package/resources/assets/assets.mjs.map +1 -1
  111. package/resources/assets/download.d.mts +24 -5
  112. package/resources/assets/download.d.mts.map +1 -1
  113. package/resources/assets/download.d.ts +24 -5
  114. package/resources/assets/download.d.ts.map +1 -1
  115. package/resources/assets/download.js +15 -3
  116. package/resources/assets/download.js.map +1 -1
  117. package/resources/assets/download.mjs +15 -3
  118. package/resources/assets/download.mjs.map +1 -1
  119. package/resources/collections/assets.d.mts.map +1 -1
  120. package/resources/collections/assets.d.ts.map +1 -1
  121. package/resources/collections/assets.js +3 -2
  122. package/resources/collections/assets.js.map +1 -1
  123. package/resources/collections/assets.mjs +3 -2
  124. package/resources/collections/assets.mjs.map +1 -1
  125. package/resources/collections/collections.d.mts.map +1 -1
  126. package/resources/collections/collections.d.ts.map +1 -1
  127. package/resources/collections/collections.js +20 -5
  128. package/resources/collections/collections.js.map +1 -1
  129. package/resources/collections/collections.mjs +20 -5
  130. package/resources/collections/collections.mjs.map +1 -1
  131. package/resources/collections/models.d.mts.map +1 -1
  132. package/resources/collections/models.d.ts.map +1 -1
  133. package/resources/collections/models.js +3 -2
  134. package/resources/collections/models.js.map +1 -1
  135. package/resources/collections/models.mjs +3 -2
  136. package/resources/collections/models.mjs.map +1 -1
  137. package/resources/generate.d.mts +1719 -225
  138. package/resources/generate.d.mts.map +1 -1
  139. package/resources/generate.d.ts +1719 -225
  140. package/resources/generate.d.ts.map +1 -1
  141. package/resources/generate.js +65 -8
  142. package/resources/generate.js.map +1 -1
  143. package/resources/generate.mjs +65 -8
  144. package/resources/generate.mjs.map +1 -1
  145. package/resources/index.d.mts +5 -2
  146. package/resources/index.d.mts.map +1 -1
  147. package/resources/index.d.ts +5 -2
  148. package/resources/index.d.ts.map +1 -1
  149. package/resources/index.js +7 -1
  150. package/resources/index.js.map +1 -1
  151. package/resources/index.mjs +3 -0
  152. package/resources/index.mjs.map +1 -1
  153. package/resources/jobs.d.mts +176 -74
  154. package/resources/jobs.d.mts.map +1 -1
  155. package/resources/jobs.d.ts +176 -74
  156. package/resources/jobs.d.ts.map +1 -1
  157. package/resources/jobs.js +16 -4
  158. package/resources/jobs.js.map +1 -1
  159. package/resources/jobs.mjs +16 -4
  160. package/resources/jobs.mjs.map +1 -1
  161. package/resources/models/description.d.mts +2 -2
  162. package/resources/models/description.d.mts.map +1 -1
  163. package/resources/models/description.d.ts +2 -2
  164. package/resources/models/description.d.ts.map +1 -1
  165. package/resources/models/description.js +6 -2
  166. package/resources/models/description.js.map +1 -1
  167. package/resources/models/description.mjs +6 -2
  168. package/resources/models/description.mjs.map +1 -1
  169. package/resources/models/examples.d.mts +120 -48
  170. package/resources/models/examples.d.mts.map +1 -1
  171. package/resources/models/examples.d.ts +120 -48
  172. package/resources/models/examples.d.ts.map +1 -1
  173. package/resources/models/examples.js +6 -2
  174. package/resources/models/examples.js.map +1 -1
  175. package/resources/models/examples.mjs +6 -2
  176. package/resources/models/examples.mjs.map +1 -1
  177. package/resources/models/index.d.mts +3 -0
  178. package/resources/models/index.d.mts.map +1 -1
  179. package/resources/models/index.d.ts +3 -0
  180. package/resources/models/index.d.ts.map +1 -1
  181. package/resources/models/index.js +7 -1
  182. package/resources/models/index.js.map +1 -1
  183. package/resources/models/index.mjs +3 -0
  184. package/resources/models/index.mjs.map +1 -1
  185. package/resources/models/models.d.mts +215 -77
  186. package/resources/models/models.d.mts.map +1 -1
  187. package/resources/models/models.d.ts +215 -77
  188. package/resources/models/models.d.ts.map +1 -1
  189. package/resources/models/models.js +52 -11
  190. package/resources/models/models.js.map +1 -1
  191. package/resources/models/models.mjs +52 -11
  192. package/resources/models/models.mjs.map +1 -1
  193. package/resources/models/presets.d.mts +1016 -0
  194. package/resources/models/presets.d.mts.map +1 -0
  195. package/resources/models/presets.d.ts +1016 -0
  196. package/resources/models/presets.d.ts.map +1 -0
  197. package/resources/models/presets.js +52 -0
  198. package/resources/models/presets.js.map +1 -0
  199. package/resources/models/presets.mjs +48 -0
  200. package/resources/models/presets.mjs.map +1 -0
  201. package/resources/models/prompt-guide.d.mts +64 -0
  202. package/resources/models/prompt-guide.d.mts.map +1 -0
  203. package/resources/models/prompt-guide.d.ts +64 -0
  204. package/resources/models/prompt-guide.d.ts.map +1 -0
  205. package/resources/models/prompt-guide.js +31 -0
  206. package/resources/models/prompt-guide.js.map +1 -0
  207. package/resources/models/prompt-guide.mjs +27 -0
  208. package/resources/models/prompt-guide.mjs.map +1 -0
  209. package/resources/models/scores.d.mts +278 -0
  210. package/resources/models/scores.d.mts.map +1 -0
  211. package/resources/models/scores.d.ts +278 -0
  212. package/resources/models/scores.d.ts.map +1 -0
  213. package/resources/models/scores.js +29 -0
  214. package/resources/models/scores.js.map +1 -0
  215. package/resources/models/scores.mjs +25 -0
  216. package/resources/models/scores.mjs.map +1 -0
  217. package/resources/models/train.d.mts +108 -45
  218. package/resources/models/train.d.mts.map +1 -1
  219. package/resources/models/train.d.ts +108 -45
  220. package/resources/models/train.d.ts.map +1 -1
  221. package/resources/models/train.js +3 -2
  222. package/resources/models/train.js.map +1 -1
  223. package/resources/models/train.mjs +3 -2
  224. package/resources/models/train.mjs.map +1 -1
  225. package/resources/models/training-images.d.mts.map +1 -1
  226. package/resources/models/training-images.d.ts.map +1 -1
  227. package/resources/models/training-images.js +5 -4
  228. package/resources/models/training-images.js.map +1 -1
  229. package/resources/models/training-images.mjs +5 -4
  230. package/resources/models/training-images.mjs.map +1 -1
  231. package/resources/projects/api-keys.d.mts +54 -0
  232. package/resources/projects/api-keys.d.mts.map +1 -0
  233. package/resources/projects/api-keys.d.ts +54 -0
  234. package/resources/projects/api-keys.d.ts.map +1 -0
  235. package/resources/projects/api-keys.js +23 -0
  236. package/resources/projects/api-keys.js.map +1 -0
  237. package/resources/projects/api-keys.mjs +19 -0
  238. package/resources/projects/api-keys.mjs.map +1 -0
  239. package/resources/projects/brief.d.mts +149 -0
  240. package/resources/projects/brief.d.mts.map +1 -0
  241. package/resources/projects/brief.d.ts +149 -0
  242. package/resources/projects/brief.d.ts.map +1 -0
  243. package/resources/projects/brief.js +28 -0
  244. package/resources/projects/brief.js.map +1 -0
  245. package/resources/projects/brief.mjs +24 -0
  246. package/resources/projects/brief.mjs.map +1 -0
  247. package/resources/projects/index.d.mts +9 -0
  248. package/resources/projects/index.d.mts.map +1 -0
  249. package/resources/projects/index.d.ts +9 -0
  250. package/resources/projects/index.d.ts.map +1 -0
  251. package/resources/projects/index.js +21 -0
  252. package/resources/projects/index.js.map +1 -0
  253. package/resources/projects/index.mjs +10 -0
  254. package/resources/projects/index.mjs.map +1 -0
  255. package/resources/projects/instructions.d.mts +102 -0
  256. package/resources/projects/instructions.d.mts.map +1 -0
  257. package/resources/projects/instructions.d.ts +102 -0
  258. package/resources/projects/instructions.d.ts.map +1 -0
  259. package/resources/projects/instructions.js +24 -0
  260. package/resources/projects/instructions.js.map +1 -0
  261. package/resources/projects/instructions.mjs +20 -0
  262. package/resources/projects/instructions.mjs.map +1 -0
  263. package/resources/projects/members.d.mts +788 -0
  264. package/resources/projects/members.d.mts.map +1 -0
  265. package/resources/projects/members.d.ts +788 -0
  266. package/resources/projects/members.d.ts.map +1 -0
  267. package/resources/projects/members.js +30 -0
  268. package/resources/projects/members.js.map +1 -0
  269. package/resources/projects/members.mjs +26 -0
  270. package/resources/projects/members.mjs.map +1 -0
  271. package/resources/projects/memory.d.mts +102 -0
  272. package/resources/projects/memory.d.mts.map +1 -0
  273. package/resources/projects/memory.d.ts +102 -0
  274. package/resources/projects/memory.d.ts.map +1 -0
  275. package/resources/projects/memory.js +24 -0
  276. package/resources/projects/memory.js.map +1 -0
  277. package/resources/projects/memory.mjs +20 -0
  278. package/resources/projects/memory.mjs.map +1 -0
  279. package/resources/projects/projects.d.mts +1129 -0
  280. package/resources/projects/projects.d.mts.map +1 -0
  281. package/resources/projects/projects.d.ts +1129 -0
  282. package/resources/projects/projects.d.ts.map +1 -0
  283. package/resources/projects/projects.js +79 -0
  284. package/resources/projects/projects.js.map +1 -0
  285. package/resources/projects/projects.mjs +74 -0
  286. package/resources/projects/projects.mjs.map +1 -0
  287. package/resources/projects/watermark.d.mts +459 -0
  288. package/resources/projects/watermark.d.mts.map +1 -0
  289. package/resources/projects/watermark.d.ts +459 -0
  290. package/resources/projects/watermark.d.ts.map +1 -0
  291. package/resources/projects/watermark.js +46 -0
  292. package/resources/projects/watermark.js.map +1 -0
  293. package/resources/projects/watermark.mjs +42 -0
  294. package/resources/projects/watermark.mjs.map +1 -0
  295. package/resources/projects/webhook-endpoints/events.d.mts +87 -0
  296. package/resources/projects/webhook-endpoints/events.d.mts.map +1 -0
  297. package/resources/projects/webhook-endpoints/events.d.ts +87 -0
  298. package/resources/projects/webhook-endpoints/events.d.ts.map +1 -0
  299. package/resources/projects/webhook-endpoints/events.js +28 -0
  300. package/resources/projects/webhook-endpoints/events.js.map +1 -0
  301. package/resources/projects/webhook-endpoints/events.mjs +24 -0
  302. package/resources/projects/webhook-endpoints/events.mjs.map +1 -0
  303. package/resources/projects/webhook-endpoints/index.d.mts +3 -0
  304. package/resources/projects/webhook-endpoints/index.d.mts.map +1 -0
  305. package/resources/projects/webhook-endpoints/index.d.ts +3 -0
  306. package/resources/projects/webhook-endpoints/index.d.ts.map +1 -0
  307. package/resources/projects/webhook-endpoints/index.js +9 -0
  308. package/resources/projects/webhook-endpoints/index.js.map +1 -0
  309. package/resources/projects/webhook-endpoints/index.mjs +4 -0
  310. package/resources/projects/webhook-endpoints/index.mjs.map +1 -0
  311. package/resources/projects/webhook-endpoints/webhook-endpoints.d.mts +249 -0
  312. package/resources/projects/webhook-endpoints/webhook-endpoints.d.mts.map +1 -0
  313. package/resources/projects/webhook-endpoints/webhook-endpoints.d.ts +249 -0
  314. package/resources/projects/webhook-endpoints/webhook-endpoints.d.ts.map +1 -0
  315. package/resources/projects/webhook-endpoints/webhook-endpoints.js +44 -0
  316. package/resources/projects/webhook-endpoints/webhook-endpoints.js.map +1 -0
  317. package/resources/projects/webhook-endpoints/webhook-endpoints.mjs +39 -0
  318. package/resources/projects/webhook-endpoints/webhook-endpoints.mjs.map +1 -0
  319. package/resources/projects/webhook-endpoints.d.mts +2 -0
  320. package/resources/projects/webhook-endpoints.d.mts.map +1 -0
  321. package/resources/projects/webhook-endpoints.d.ts +2 -0
  322. package/resources/projects/webhook-endpoints.d.ts.map +1 -0
  323. package/resources/projects/webhook-endpoints.js +6 -0
  324. package/resources/projects/webhook-endpoints.js.map +1 -0
  325. package/resources/projects/webhook-endpoints.mjs +3 -0
  326. package/resources/projects/webhook-endpoints.mjs.map +1 -0
  327. package/resources/projects.d.mts +2 -0
  328. package/resources/projects.d.mts.map +1 -0
  329. package/resources/projects.d.ts +2 -0
  330. package/resources/projects.d.ts.map +1 -0
  331. package/resources/projects.js +6 -0
  332. package/resources/projects.js.map +1 -0
  333. package/resources/projects.mjs +3 -0
  334. package/resources/projects.mjs.map +1 -0
  335. package/resources/recommendations.d.mts +1107 -0
  336. package/resources/recommendations.d.mts.map +1 -0
  337. package/resources/recommendations.d.ts +1107 -0
  338. package/resources/recommendations.d.ts.map +1 -0
  339. package/resources/recommendations.js +17 -0
  340. package/resources/recommendations.js.map +1 -0
  341. package/resources/recommendations.mjs +13 -0
  342. package/resources/recommendations.mjs.map +1 -0
  343. package/resources/search.d.mts.map +1 -1
  344. package/resources/search.d.ts.map +1 -1
  345. package/resources/search.js +4 -3
  346. package/resources/search.js.map +1 -1
  347. package/resources/search.mjs +4 -3
  348. package/resources/search.mjs.map +1 -1
  349. package/resources/tags.d.mts.map +1 -1
  350. package/resources/tags.d.ts.map +1 -1
  351. package/resources/tags.js +5 -1
  352. package/resources/tags.js.map +1 -1
  353. package/resources/tags.mjs +5 -1
  354. package/resources/tags.mjs.map +1 -1
  355. package/resources/teams/brief.d.mts +149 -0
  356. package/resources/teams/brief.d.mts.map +1 -0
  357. package/resources/teams/brief.d.ts +149 -0
  358. package/resources/teams/brief.d.ts.map +1 -0
  359. package/resources/teams/brief.js +28 -0
  360. package/resources/teams/brief.js.map +1 -0
  361. package/resources/teams/brief.mjs +24 -0
  362. package/resources/teams/brief.mjs.map +1 -0
  363. package/resources/teams/index.d.mts +7 -0
  364. package/resources/teams/index.d.mts.map +1 -0
  365. package/resources/teams/index.d.ts +7 -0
  366. package/resources/teams/index.d.ts.map +1 -0
  367. package/resources/teams/index.js +17 -0
  368. package/resources/teams/index.js.map +1 -0
  369. package/resources/teams/index.mjs +8 -0
  370. package/resources/teams/index.mjs.map +1 -0
  371. package/resources/teams/ip-filters.d.mts +115 -0
  372. package/resources/teams/ip-filters.d.mts.map +1 -0
  373. package/resources/teams/ip-filters.d.ts +115 -0
  374. package/resources/teams/ip-filters.d.ts.map +1 -0
  375. package/resources/teams/ip-filters.js +45 -0
  376. package/resources/teams/ip-filters.js.map +1 -0
  377. package/resources/teams/ip-filters.mjs +41 -0
  378. package/resources/teams/ip-filters.mjs.map +1 -0
  379. package/resources/teams/members.d.mts +204 -0
  380. package/resources/teams/members.d.mts.map +1 -0
  381. package/resources/teams/members.d.ts +204 -0
  382. package/resources/teams/members.d.ts.map +1 -0
  383. package/resources/teams/members.js +30 -0
  384. package/resources/teams/members.js.map +1 -0
  385. package/resources/teams/members.mjs +26 -0
  386. package/resources/teams/members.mjs.map +1 -0
  387. package/resources/teams/teams.d.mts +878 -0
  388. package/resources/teams/teams.d.mts.map +1 -0
  389. package/resources/teams/teams.d.ts +878 -0
  390. package/resources/teams/teams.d.ts.map +1 -0
  391. package/resources/teams/teams.js +66 -0
  392. package/resources/teams/teams.js.map +1 -0
  393. package/resources/teams/teams.mjs +61 -0
  394. package/resources/teams/teams.mjs.map +1 -0
  395. package/resources/teams/watermark.d.mts +459 -0
  396. package/resources/teams/watermark.d.mts.map +1 -0
  397. package/resources/teams/watermark.d.ts +459 -0
  398. package/resources/teams/watermark.d.ts.map +1 -0
  399. package/resources/teams/watermark.js +46 -0
  400. package/resources/teams/watermark.js.map +1 -0
  401. package/resources/teams/watermark.mjs +42 -0
  402. package/resources/teams/watermark.mjs.map +1 -0
  403. package/resources/teams/webhook-endpoints/events.d.mts +87 -0
  404. package/resources/teams/webhook-endpoints/events.d.mts.map +1 -0
  405. package/resources/teams/webhook-endpoints/events.d.ts +87 -0
  406. package/resources/teams/webhook-endpoints/events.d.ts.map +1 -0
  407. package/resources/teams/webhook-endpoints/events.js +28 -0
  408. package/resources/teams/webhook-endpoints/events.js.map +1 -0
  409. package/resources/teams/webhook-endpoints/events.mjs +24 -0
  410. package/resources/teams/webhook-endpoints/events.mjs.map +1 -0
  411. package/resources/teams/webhook-endpoints/index.d.mts +3 -0
  412. package/resources/teams/webhook-endpoints/index.d.mts.map +1 -0
  413. package/resources/teams/webhook-endpoints/index.d.ts +3 -0
  414. package/resources/teams/webhook-endpoints/index.d.ts.map +1 -0
  415. package/resources/teams/webhook-endpoints/index.js +9 -0
  416. package/resources/teams/webhook-endpoints/index.js.map +1 -0
  417. package/resources/teams/webhook-endpoints/index.mjs +4 -0
  418. package/resources/teams/webhook-endpoints/index.mjs.map +1 -0
  419. package/resources/teams/webhook-endpoints/webhook-endpoints.d.mts +250 -0
  420. package/resources/teams/webhook-endpoints/webhook-endpoints.d.mts.map +1 -0
  421. package/resources/teams/webhook-endpoints/webhook-endpoints.d.ts +250 -0
  422. package/resources/teams/webhook-endpoints/webhook-endpoints.d.ts.map +1 -0
  423. package/resources/teams/webhook-endpoints/webhook-endpoints.js +45 -0
  424. package/resources/teams/webhook-endpoints/webhook-endpoints.js.map +1 -0
  425. package/resources/teams/webhook-endpoints/webhook-endpoints.mjs +40 -0
  426. package/resources/teams/webhook-endpoints/webhook-endpoints.mjs.map +1 -0
  427. package/resources/teams/webhook-endpoints.d.mts +2 -0
  428. package/resources/teams/webhook-endpoints.d.mts.map +1 -0
  429. package/resources/teams/webhook-endpoints.d.ts +2 -0
  430. package/resources/teams/webhook-endpoints.d.ts.map +1 -0
  431. package/resources/teams/webhook-endpoints.js +6 -0
  432. package/resources/teams/webhook-endpoints.js.map +1 -0
  433. package/resources/teams/webhook-endpoints.mjs +3 -0
  434. package/resources/teams/webhook-endpoints.mjs.map +1 -0
  435. package/resources/teams.d.mts +2 -0
  436. package/resources/teams.d.mts.map +1 -0
  437. package/resources/teams.d.ts +2 -0
  438. package/resources/teams.d.ts.map +1 -0
  439. package/resources/teams.js +6 -0
  440. package/resources/teams.js.map +1 -0
  441. package/resources/teams.mjs +3 -0
  442. package/resources/teams.mjs.map +1 -0
  443. package/resources/uploads.d.mts.map +1 -1
  444. package/resources/uploads.d.ts.map +1 -1
  445. package/resources/uploads.js +15 -3
  446. package/resources/uploads.js.map +1 -1
  447. package/resources/uploads.mjs +15 -3
  448. package/resources/uploads.mjs.map +1 -1
  449. package/resources/usages.d.mts +51 -24
  450. package/resources/usages.d.mts.map +1 -1
  451. package/resources/usages.d.ts +51 -24
  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 +1381 -280
  458. package/resources/workflows.d.mts.map +1 -1
  459. package/resources/workflows.d.ts +1381 -280
  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 +101 -0
  466. package/src/core/pagination.ts +144 -0
  467. package/src/internal/utils/values.ts +10 -0
  468. package/src/lib/asset.ts +1 -1
  469. package/src/lib/generate.ts +7 -7
  470. package/src/lib/job.ts +9 -7
  471. package/src/lib/models.ts +8 -6
  472. package/src/lib/query.ts +42 -0
  473. package/src/lib/scenario.ts +8 -0
  474. package/src/lib/scope.ts +42 -7
  475. package/src/lib/upload.ts +20 -13
  476. package/src/lib/workflow.ts +21 -8
  477. package/src/lib/workflow_converter.ts +4 -2
  478. package/src/lib/workflow_validator.ts +115 -0
  479. package/src/resources/assets/assets.ts +192 -33
  480. package/src/resources/assets/download.ts +43 -8
  481. package/src/resources/collections/assets.ts +3 -2
  482. package/src/resources/collections/collections.ts +20 -5
  483. package/src/resources/collections/models.ts +3 -2
  484. package/src/resources/generate.ts +2350 -186
  485. package/src/resources/index.ts +34 -0
  486. package/src/resources/jobs.ts +204 -74
  487. package/src/resources/models/description.ts +10 -2
  488. package/src/resources/models/examples.ts +140 -46
  489. package/src/resources/models/index.ts +25 -0
  490. package/src/resources/models/models.ts +326 -88
  491. package/src/resources/models/presets.ts +1335 -0
  492. package/src/resources/models/prompt-guide.ts +102 -0
  493. package/src/resources/models/scores.ts +383 -0
  494. package/src/resources/models/train.ts +121 -46
  495. package/src/resources/models/training-images.ts +5 -4
  496. package/src/resources/projects/api-keys.ts +86 -0
  497. package/src/resources/projects/brief.ts +197 -0
  498. package/src/resources/projects/index.ts +71 -0
  499. package/src/resources/projects/instructions.ts +134 -0
  500. package/src/resources/projects/members.ts +958 -0
  501. package/src/resources/projects/memory.ts +134 -0
  502. package/src/resources/projects/projects.ts +1478 -0
  503. package/src/resources/projects/watermark.ts +590 -0
  504. package/src/resources/projects/webhook-endpoints/events.ts +179 -0
  505. package/src/resources/projects/webhook-endpoints/index.ts +19 -0
  506. package/src/resources/projects/webhook-endpoints/webhook-endpoints.ts +452 -0
  507. package/src/resources/projects/webhook-endpoints.ts +3 -0
  508. package/src/resources/projects.ts +3 -0
  509. package/src/resources/recommendations.ts +1502 -0
  510. package/src/resources/search.ts +4 -3
  511. package/src/resources/tags.ts +5 -1
  512. package/src/resources/teams/brief.ts +193 -0
  513. package/src/resources/teams/index.ts +62 -0
  514. package/src/resources/teams/ip-filters.ts +177 -0
  515. package/src/resources/teams/members.ts +282 -0
  516. package/src/resources/teams/teams.ts +1255 -0
  517. package/src/resources/teams/watermark.ts +590 -0
  518. package/src/resources/teams/webhook-endpoints/events.ts +179 -0
  519. package/src/resources/teams/webhook-endpoints/index.ts +19 -0
  520. package/src/resources/teams/webhook-endpoints/webhook-endpoints.ts +453 -0
  521. package/src/resources/teams/webhook-endpoints.ts +3 -0
  522. package/src/resources/teams.ts +3 -0
  523. package/src/resources/uploads.ts +15 -3
  524. package/src/resources/usages.ts +58 -23
  525. package/src/resources/workflows.ts +1707 -241
  526. package/src/version.ts +1 -1
  527. package/version.d.mts +1 -1
  528. package/version.d.ts +1 -1
  529. package/version.js +1 -1
  530. package/version.mjs +1 -1
@@ -47,16 +47,20 @@ export {
47
47
  type GenerateDescribeStyleResponse,
48
48
  type GenerateDetectResponse,
49
49
  type GenerateEmbedResponse,
50
+ type GenerateIPDetectionResponse,
50
51
  type GeneratePatchResponse,
51
52
  type GeneratePromptResponse,
53
+ type GenerateQualityGateResponse,
52
54
  type GenerateRunModelResponse,
53
55
  type GenerateTranslateResponse,
54
56
  type GenerateCaptionParams,
55
57
  type GenerateDescribeStyleParams,
56
58
  type GenerateDetectParams,
57
59
  type GenerateEmbedParams,
60
+ type GenerateIPDetectionParams,
58
61
  type GeneratePatchParams,
59
62
  type GeneratePromptParams,
63
+ type GenerateQualityGateParams,
60
64
  type GenerateRunModelParams,
61
65
  type GenerateTranslateParams,
62
66
  } from './generate';
@@ -98,6 +102,24 @@ export {
98
102
  } from './models/models';
99
103
  export { Oscu, type OscuRetrievePricesResponse } from './oscu';
100
104
  export { Pricing } from './pricing/pricing';
105
+ export {
106
+ Projects,
107
+ type ProjectCreateResponse,
108
+ type ProjectRetrieveResponse,
109
+ type ProjectUpdateResponse,
110
+ type ProjectListResponse,
111
+ type ProjectDeleteResponse,
112
+ type ProjectCreateParams,
113
+ type ProjectUpdateParams,
114
+ type ProjectListParams,
115
+ type ProjectListResponsesProjectsCursor,
116
+ } from './projects/projects';
117
+ export {
118
+ Recommendations,
119
+ type RecommendationListModelsResponse,
120
+ type RecommendationListModelsParams,
121
+ type RecommendationListModelsResponsesRecommendationsCursor,
122
+ } from './recommendations';
101
123
  export {
102
124
  Search,
103
125
  type SearchAssetSearchResponse,
@@ -111,6 +133,16 @@ export {
111
133
  type SearchWorkflowSearchResponsesSearchHitsOffset,
112
134
  } from './search';
113
135
  export { Tags, type TagListResponse, type TagListParams, type TagListResponsesTagsCursor } from './tags';
136
+ export {
137
+ Teams,
138
+ type TeamRetrieveResponse,
139
+ type TeamUpdateResponse,
140
+ type TeamListResponse,
141
+ type TeamDeleteInvitationsResponse,
142
+ type TeamRetrieveLimitsResponse,
143
+ type TeamUpdateParams,
144
+ type TeamDeleteInvitationsParams,
145
+ } from './teams/teams';
114
146
  export {
115
147
  Uploads,
116
148
  type UploadCreateResponse,
@@ -131,6 +163,7 @@ export {
131
163
  type WorkflowGetTagsResponse,
132
164
  type WorkflowRunResponse,
133
165
  type WorkflowUserApprovalResponse,
166
+ type WorkflowUserSelectionResponse,
134
167
  type WorkflowCreateParams,
135
168
  type WorkflowRetrieveParams,
136
169
  type WorkflowUpdateParams,
@@ -139,6 +172,7 @@ export {
139
172
  type WorkflowGetTagsParams,
140
173
  type WorkflowRunParams,
141
174
  type WorkflowUserApprovalParams,
175
+ type WorkflowUserSelectionParams,
142
176
  type WorkflowApproveUserParams,
143
177
  type WorkflowListResponsesWorkflowsCursor,
144
178
  } from './workflows';
@@ -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
  /**
@@ -40,7 +48,11 @@ export class Jobs extends APIResource {
40
48
  options?: RequestOptions,
41
49
  ): APIPromise<JobTriggerActionResponse> {
42
50
  const { projectId, ...body } = params;
43
- return this._client.post(path`/jobs/${jobID}/action`, { query: { projectId }, body, ...options });
51
+ return this._client.post(path`/jobs/${jobID}/action`, {
52
+ body,
53
+ ...options,
54
+ query: { projectId, ...omitUndefined(options?.query) },
55
+ });
44
56
  }
45
57
  }
46
58
 
@@ -235,6 +247,7 @@ export namespace JobRetrieveResponse {
235
247
  | 'remove-background'
236
248
  | 'transform'
237
249
  | 'user-approval'
250
+ | 'user-selection'
238
251
  | 'workflow';
239
252
 
240
253
  /**
@@ -265,14 +278,15 @@ export namespace JobRetrieveResponse {
265
278
  includeOutputsInWorkflowJob?: true;
266
279
 
267
280
  /**
268
- * 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.
269
284
  */
270
285
  inputs?: Array<Flow.Input>;
271
286
 
272
287
  /**
273
- * Statically-configured items for a List node. The node outputs this array as-is
274
- * when executed. Only available for List nodes. The values can be strings,
275
- * 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.
276
290
  */
277
291
  items?: Array<string>;
278
292
 
@@ -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
  */
@@ -783,8 +796,7 @@ export namespace JobRetrieveResponse {
783
796
  * - \`ifNotDefined\`: Input is required when another specified input is not
784
797
  * defined
785
798
  * - \`ifDefined\`: Input is required when another specified input is defined
786
- * - \`conditionalValues\`: Input is required when another input has a specific
787
- * value
799
+ * - \`conditional\`: Input is required when other inputs have specific values
788
800
  *
789
801
  * By default, the input is not required.
790
802
  */
@@ -841,8 +853,7 @@ export namespace JobRetrieveResponse {
841
853
  * - \`ifNotDefined\`: Input is required when another specified input is not
842
854
  * defined
843
855
  * - \`ifDefined\`: Input is required when another specified input is defined
844
- * - \`conditionalValues\`: Input is required when another input has a specific
845
- * value
856
+ * - \`conditional\`: Input is required when other inputs have specific values
846
857
  *
847
858
  * By default, the input is not required.
848
859
  */
@@ -853,12 +864,9 @@ export namespace JobRetrieveResponse {
853
864
  always?: boolean;
854
865
 
855
866
  /**
856
- * Makes this input required when another input has a specific value:
857
- *
858
- * - Key: name of the input to check
859
- * - Value: operation and allowed values that trigger the requirement
867
+ * Makes this input required when other inputs have one of the listed values
860
868
  */
861
- conditionalValues?: unknown;
869
+ conditional?: Required.Conditional;
862
870
 
863
871
  /**
864
872
  * Makes this input required when another input is defined:
@@ -876,6 +884,26 @@ export namespace JobRetrieveResponse {
876
884
  */
877
885
  ifNotDefined?: unknown;
878
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
+ }
879
907
  }
880
908
 
881
909
  /**
@@ -916,8 +944,7 @@ export namespace JobRetrieveResponse {
916
944
  * - \`ifNotDefined\`: Input is required when another specified input is not
917
945
  * defined
918
946
  * - \`ifDefined\`: Input is required when another specified input is defined
919
- * - \`conditionalValues\`: Input is required when another input has a specific
920
- * value
947
+ * - \`conditional\`: Input is required when other inputs have specific values
921
948
  *
922
949
  * By default, the input is not required.
923
950
  */
@@ -928,12 +955,9 @@ export namespace JobRetrieveResponse {
928
955
  always?: boolean;
929
956
 
930
957
  /**
931
- * Makes this input required when another input has a specific value:
932
- *
933
- * - Key: name of the input to check
934
- * - Value: operation and allowed values that trigger the requirement
958
+ * Makes this input required when other inputs have one of the listed values
935
959
  */
936
- conditionalValues?: unknown;
960
+ conditional?: Required.Conditional;
937
961
 
938
962
  /**
939
963
  * Makes this input required when another input is defined:
@@ -951,6 +975,26 @@ export namespace JobRetrieveResponse {
951
975
  */
952
976
  ifNotDefined?: unknown;
953
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
+ }
954
998
  }
955
999
 
956
1000
  /**
@@ -1248,6 +1292,7 @@ export namespace JobListResponse {
1248
1292
  | 'remove-background'
1249
1293
  | 'transform'
1250
1294
  | 'user-approval'
1295
+ | 'user-selection'
1251
1296
  | 'workflow';
1252
1297
 
1253
1298
  /**
@@ -1278,14 +1323,15 @@ export namespace JobListResponse {
1278
1323
  includeOutputsInWorkflowJob?: true;
1279
1324
 
1280
1325
  /**
1281
- * 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.
1282
1329
  */
1283
1330
  inputs?: Array<Flow.Input>;
1284
1331
 
1285
1332
  /**
1286
- * Statically-configured items for a List node. The node outputs this array as-is
1287
- * when executed. Only available for List nodes. The values can be strings,
1288
- * 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.
1289
1335
  */
1290
1336
  items?: Array<string>;
1291
1337
 
@@ -1565,8 +1611,7 @@ export namespace JobListResponse {
1565
1611
  * - \`ifNotDefined\`: Input is required when another specified input is not
1566
1612
  * defined
1567
1613
  * - \`ifDefined\`: Input is required when another specified input is defined
1568
- * - \`conditionalValues\`: Input is required when another input has a specific
1569
- * value
1614
+ * - \`conditional\`: Input is required when other inputs have specific values
1570
1615
  *
1571
1616
  * By default, the input is not required.
1572
1617
  */
@@ -1796,8 +1841,7 @@ export namespace JobListResponse {
1796
1841
  * - \`ifNotDefined\`: Input is required when another specified input is not
1797
1842
  * defined
1798
1843
  * - \`ifDefined\`: Input is required when another specified input is defined
1799
- * - \`conditionalValues\`: Input is required when another input has a specific
1800
- * value
1844
+ * - \`conditional\`: Input is required when other inputs have specific values
1801
1845
  *
1802
1846
  * By default, the input is not required.
1803
1847
  */
@@ -1854,8 +1898,7 @@ export namespace JobListResponse {
1854
1898
  * - \`ifNotDefined\`: Input is required when another specified input is not
1855
1899
  * defined
1856
1900
  * - \`ifDefined\`: Input is required when another specified input is defined
1857
- * - \`conditionalValues\`: Input is required when another input has a specific
1858
- * value
1901
+ * - \`conditional\`: Input is required when other inputs have specific values
1859
1902
  *
1860
1903
  * By default, the input is not required.
1861
1904
  */
@@ -1866,12 +1909,9 @@ export namespace JobListResponse {
1866
1909
  always?: boolean;
1867
1910
 
1868
1911
  /**
1869
- * Makes this input required when another input has a specific value:
1870
- *
1871
- * - Key: name of the input to check
1872
- * - Value: operation and allowed values that trigger the requirement
1912
+ * Makes this input required when other inputs have one of the listed values
1873
1913
  */
1874
- conditionalValues?: unknown;
1914
+ conditional?: Required.Conditional;
1875
1915
 
1876
1916
  /**
1877
1917
  * Makes this input required when another input is defined:
@@ -1889,6 +1929,26 @@ export namespace JobListResponse {
1889
1929
  */
1890
1930
  ifNotDefined?: unknown;
1891
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
+ }
1892
1952
  }
1893
1953
 
1894
1954
  /**
@@ -1929,8 +1989,7 @@ export namespace JobListResponse {
1929
1989
  * - \`ifNotDefined\`: Input is required when another specified input is not
1930
1990
  * defined
1931
1991
  * - \`ifDefined\`: Input is required when another specified input is defined
1932
- * - \`conditionalValues\`: Input is required when another input has a specific
1933
- * value
1992
+ * - \`conditional\`: Input is required when other inputs have specific values
1934
1993
  *
1935
1994
  * By default, the input is not required.
1936
1995
  */
@@ -1941,12 +2000,9 @@ export namespace JobListResponse {
1941
2000
  always?: boolean;
1942
2001
 
1943
2002
  /**
1944
- * Makes this input required when another input has a specific value:
1945
- *
1946
- * - Key: name of the input to check
1947
- * - Value: operation and allowed values that trigger the requirement
2003
+ * Makes this input required when other inputs have one of the listed values
1948
2004
  */
1949
- conditionalValues?: unknown;
2005
+ conditional?: Required.Conditional;
1950
2006
 
1951
2007
  /**
1952
2008
  * Makes this input required when another input is defined:
@@ -1964,6 +2020,26 @@ export namespace JobListResponse {
1964
2020
  */
1965
2021
  ifNotDefined?: unknown;
1966
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
+ }
1967
2043
  }
1968
2044
 
1969
2045
  /**
@@ -2265,6 +2341,7 @@ export namespace JobTriggerActionResponse {
2265
2341
  | 'remove-background'
2266
2342
  | 'transform'
2267
2343
  | 'user-approval'
2344
+ | 'user-selection'
2268
2345
  | 'workflow';
2269
2346
 
2270
2347
  /**
@@ -2295,14 +2372,15 @@ export namespace JobTriggerActionResponse {
2295
2372
  includeOutputsInWorkflowJob?: true;
2296
2373
 
2297
2374
  /**
2298
- * 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.
2299
2378
  */
2300
2379
  inputs?: Array<Flow.Input>;
2301
2380
 
2302
2381
  /**
2303
- * Statically-configured items for a List node. The node outputs this array as-is
2304
- * when executed. Only available for List nodes. The values can be strings,
2305
- * 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.
2306
2384
  */
2307
2385
  items?: Array<string>;
2308
2386
 
@@ -2582,8 +2660,7 @@ export namespace JobTriggerActionResponse {
2582
2660
  * - \`ifNotDefined\`: Input is required when another specified input is not
2583
2661
  * defined
2584
2662
  * - \`ifDefined\`: Input is required when another specified input is defined
2585
- * - \`conditionalValues\`: Input is required when another input has a specific
2586
- * value
2663
+ * - \`conditional\`: Input is required when other inputs have specific values
2587
2664
  *
2588
2665
  * By default, the input is not required.
2589
2666
  */
@@ -2813,8 +2890,7 @@ export namespace JobTriggerActionResponse {
2813
2890
  * - \`ifNotDefined\`: Input is required when another specified input is not
2814
2891
  * defined
2815
2892
  * - \`ifDefined\`: Input is required when another specified input is defined
2816
- * - \`conditionalValues\`: Input is required when another input has a specific
2817
- * value
2893
+ * - \`conditional\`: Input is required when other inputs have specific values
2818
2894
  *
2819
2895
  * By default, the input is not required.
2820
2896
  */
@@ -2871,8 +2947,7 @@ export namespace JobTriggerActionResponse {
2871
2947
  * - \`ifNotDefined\`: Input is required when another specified input is not
2872
2948
  * defined
2873
2949
  * - \`ifDefined\`: Input is required when another specified input is defined
2874
- * - \`conditionalValues\`: Input is required when another input has a specific
2875
- * value
2950
+ * - \`conditional\`: Input is required when other inputs have specific values
2876
2951
  *
2877
2952
  * By default, the input is not required.
2878
2953
  */
@@ -2883,12 +2958,9 @@ export namespace JobTriggerActionResponse {
2883
2958
  always?: boolean;
2884
2959
 
2885
2960
  /**
2886
- * Makes this input required when another input has a specific value:
2887
- *
2888
- * - Key: name of the input to check
2889
- * - Value: operation and allowed values that trigger the requirement
2961
+ * Makes this input required when other inputs have one of the listed values
2890
2962
  */
2891
- conditionalValues?: unknown;
2963
+ conditional?: Required.Conditional;
2892
2964
 
2893
2965
  /**
2894
2966
  * Makes this input required when another input is defined:
@@ -2906,6 +2978,26 @@ export namespace JobTriggerActionResponse {
2906
2978
  */
2907
2979
  ifNotDefined?: unknown;
2908
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
+ }
2909
3001
  }
2910
3002
 
2911
3003
  /**
@@ -2946,8 +3038,7 @@ export namespace JobTriggerActionResponse {
2946
3038
  * - \`ifNotDefined\`: Input is required when another specified input is not
2947
3039
  * defined
2948
3040
  * - \`ifDefined\`: Input is required when another specified input is defined
2949
- * - \`conditionalValues\`: Input is required when another input has a specific
2950
- * value
3041
+ * - \`conditional\`: Input is required when other inputs have specific values
2951
3042
  *
2952
3043
  * By default, the input is not required.
2953
3044
  */
@@ -2958,12 +3049,9 @@ export namespace JobTriggerActionResponse {
2958
3049
  always?: boolean;
2959
3050
 
2960
3051
  /**
2961
- * Makes this input required when another input has a specific value:
2962
- *
2963
- * - Key: name of the input to check
2964
- * - Value: operation and allowed values that trigger the requirement
3052
+ * Makes this input required when other inputs have one of the listed values
2965
3053
  */
2966
- conditionalValues?: unknown;
3054
+ conditional?: Required.Conditional;
2967
3055
 
2968
3056
  /**
2969
3057
  * Makes this input required when another input is defined:
@@ -2981,6 +3069,26 @@ export namespace JobTriggerActionResponse {
2981
3069
  */
2982
3070
  ifNotDefined?: unknown;
2983
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
+ }
2984
3092
  }
2985
3093
 
2986
3094
  /**
@@ -3104,18 +3212,32 @@ export interface JobRetrieveParams {
3104
3212
 
3105
3213
  export interface JobListParams extends JobsCursorParams {
3106
3214
  /**
3107
- * 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.
3108
3219
  */
3109
3220
  authorId?: string;
3110
3221
 
3111
3222
  /**
3112
- * 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.
3113
3235
  */
3114
3236
  hideResults?: boolean;
3115
3237
 
3116
3238
  /**
3117
- * The number of items to return in the response. The default value is 10, maximum
3118
- * 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
3119
3241
  */
3120
3242
  pageSize?: number;
3121
3243
 
@@ -3230,6 +3352,14 @@ export interface JobListParams extends JobsCursorParams {
3230
3352
  | 'workflow'
3231
3353
  >;
3232
3354
 
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;
3362
+
3233
3363
  /**
3234
3364
  * Only return the jobs produced by the given workflow. Optional.
3235
3365
  */