@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
@@ -4,6 +4,7 @@ import { APIResource } from '../../core/resource';
4
4
  import { APIPromise } from '../../core/api-promise';
5
5
  import { RequestOptions } from '../../internal/request-options';
6
6
  import { path } from '../../internal/utils/path';
7
+ import { omitUndefined } from '../../internal/utils/values';
7
8
 
8
9
  export class Examples extends APIResource {
9
10
  /**
@@ -16,9 +17,9 @@ export class Examples extends APIResource {
16
17
  ): APIPromise<ExampleUpdateResponse> {
17
18
  const { originalAssets, projectId, ...body } = params;
18
19
  return this._client.put(path`/models/${modelID}/examples`, {
19
- query: { originalAssets, projectId },
20
20
  body,
21
21
  ...options,
22
+ query: { originalAssets, projectId, ...omitUndefined(options?.query) },
22
23
  });
23
24
  }
24
25
 
@@ -30,7 +31,10 @@ export class Examples extends APIResource {
30
31
  query: ExampleListParams | null | undefined = {},
31
32
  options?: RequestOptions,
32
33
  ): APIPromise<ExampleListResponse> {
33
- return this._client.get(path`/models/${modelID}/examples`, { query, ...options });
34
+ return this._client.get(path`/models/${modelID}/examples`, {
35
+ ...options,
36
+ query: { ...query, ...omitUndefined(options?.query) },
37
+ });
34
38
  }
35
39
  }
36
40
 
@@ -299,6 +303,66 @@ export namespace ExampleUpdateResponse {
299
303
  */
300
304
  originalFileUrl?: string;
301
305
 
306
+ /**
307
+ * The mime type of the original file url.
308
+ *
309
+ * The original file is stored under a key that carries no extension, so this is
310
+ * the only way to know which format `originalFileUrl` serves (e.g. an HDRi skybox
311
+ * exposes a JPEG preview as `url` and its `.exr` or `.hdr` file as the original).
312
+ * Omitted when the stored format could not be determined.
313
+ */
314
+ originalMimeType?:
315
+ | 'application/gzip'
316
+ | 'application/json'
317
+ | 'application/octet-stream'
318
+ | 'application/pdf'
319
+ | 'application/safetensors'
320
+ | 'application/vnd.autodesk.fbx'
321
+ | 'application/x-authorware-bin'
322
+ | 'application/x-zip-compressed'
323
+ | 'application/x.autodesk.fbx'
324
+ | 'application/zip'
325
+ | 'audio/flac'
326
+ | 'audio/m4a'
327
+ | 'audio/mpeg'
328
+ | 'audio/ogg'
329
+ | 'audio/wav'
330
+ | 'image/aces'
331
+ | 'image/avif'
332
+ | 'image/bmp'
333
+ | 'image/gif'
334
+ | 'image/heic'
335
+ | 'image/jpeg'
336
+ | 'image/png'
337
+ | 'image/svg+xml'
338
+ | 'image/tiff'
339
+ | 'image/vnd.radiance'
340
+ | 'image/webp'
341
+ | 'image/x-exr'
342
+ | 'model/glb'
343
+ | 'model/gltf+json'
344
+ | 'model/gltf-binary'
345
+ | 'model/ksplat'
346
+ | 'model/mtl'
347
+ | 'model/obj'
348
+ | 'model/ply'
349
+ | 'model/sog'
350
+ | 'model/splat'
351
+ | 'model/spz'
352
+ | 'model/stl'
353
+ | 'model/vnd.collada+xml'
354
+ | 'model/vnd.ms-package.3dmanufacturing-3dmodel+xml'
355
+ | 'model/x-3d-vox'
356
+ | 'model/x-blender'
357
+ | 'model/x-fbx'
358
+ | 'model/x-maya-ascii'
359
+ | 'model/x-maya-binary'
360
+ | 'model/x3d+xml'
361
+ | 'text/plain'
362
+ | 'video/mp4'
363
+ | 'video/quicktime'
364
+ | 'video/webm';
365
+
302
366
  /**
303
367
  * The output index of the asset within a job This index is an positive integer
304
368
  * that starts at 0 It is used to differentiate between multiple outputs of the
@@ -314,12 +378,12 @@ export namespace ExampleUpdateResponse {
314
378
  preview?: Asset.Preview;
315
379
 
316
380
  /**
317
- * SlopGuard detection result, computed asynchronously after generation.
381
+ * Quality Gate result, computed asynchronously after generation.
318
382
  *
319
383
  * `details` (the per-dimension reasons and suggestions) is returned only when the
320
- * asset is read with `withSlopGuardDetails=true`.
384
+ * asset is read with `withQualityGateDetails=true`.
321
385
  */
322
- slopGuard?: Asset.SlopGuard;
386
+ qualityGate?: Asset.QualityGate;
323
387
 
324
388
  /**
325
389
  * The asset's thumbnail.
@@ -527,6 +591,12 @@ export namespace ExampleUpdateResponse {
527
591
  */
528
592
  factor?: number;
529
593
 
594
+ /**
595
+ * The name its parent's files reference it by (an OBJ's MTL, an MTL's texture),
596
+ * kept as delivered.
597
+ */
598
+ fileName?: string;
599
+
530
600
  filterSpeckle?: number;
531
601
 
532
602
  /**
@@ -616,6 +686,11 @@ export namespace ExampleUpdateResponse {
616
686
  */
617
687
  invert?: boolean;
618
688
 
689
+ /**
690
+ * Its own references (an OBJ's `mtllib`, an MTL's maps) were kept as delivered.
691
+ */
692
+ keepsFileNames?: boolean;
693
+
619
694
  /**
620
695
  * How polished is the surface? 0 is like a rough surface, 1 is like a mirror
621
696
  */
@@ -1238,12 +1313,12 @@ export namespace ExampleUpdateResponse {
1238
1313
  }
1239
1314
 
1240
1315
  /**
1241
- * SlopGuard detection result, computed asynchronously after generation.
1316
+ * Quality Gate result, computed asynchronously after generation.
1242
1317
  *
1243
1318
  * `details` (the per-dimension reasons and suggestions) is returned only when the
1244
- * asset is read with `withSlopGuardDetails=true`.
1319
+ * asset is read with `withQualityGateDetails=true`.
1245
1320
  */
1246
- export interface SlopGuard {
1321
+ export interface QualityGate {
1247
1322
  /**
1248
1323
  * ISO-8601 timestamp of when scoring ran
1249
1324
  */
@@ -1277,13 +1352,13 @@ export namespace ExampleUpdateResponse {
1277
1352
  /**
1278
1353
  * Per-dimension reasons and suggestions, as produced by the detector.
1279
1354
  *
1280
- * Returned only when the asset is read with `withSlopGuardDetails=true` by the
1355
+ * Returned only when the asset is read with `withQualityGateDetails=true` by the
1281
1356
  * project that owns it — the brief-compliance text paraphrases that project's
1282
1357
  * brief, so a cross-project read of a public asset gets the summary alone. Also
1283
1358
  * omitted when the archived verdict is unavailable (asset scored by an older
1284
1359
  * version, or an unreadable archive).
1285
1360
  */
1286
- details?: SlopGuard.Details;
1361
+ details?: QualityGate.Details;
1287
1362
 
1288
1363
  /**
1289
1364
  * Error message when status is 'error' (truncated)
@@ -1306,11 +1381,11 @@ export namespace ExampleUpdateResponse {
1306
1381
  verdict?: 'fail' | 'pass' | 'warn';
1307
1382
  }
1308
1383
 
1309
- export namespace SlopGuard {
1384
+ export namespace QualityGate {
1310
1385
  /**
1311
1386
  * Per-dimension reasons and suggestions, as produced by the detector.
1312
1387
  *
1313
- * Returned only when the asset is read with `withSlopGuardDetails=true` by the
1388
+ * Returned only when the asset is read with `withQualityGateDetails=true` by the
1314
1389
  * project that owns it — the brief-compliance text paraphrases that project's
1315
1390
  * brief, so a cross-project read of a public asset gets the summary alone. Also
1316
1391
  * omitted when the archived verdict is unavailable (asset scored by an older
@@ -1913,6 +1988,7 @@ export namespace ExampleUpdateResponse {
1913
1988
  | 'remove-background'
1914
1989
  | 'transform'
1915
1990
  | 'user-approval'
1991
+ | 'user-selection'
1916
1992
  | 'workflow';
1917
1993
 
1918
1994
  /**
@@ -1943,14 +2019,15 @@ export namespace ExampleUpdateResponse {
1943
2019
  includeOutputsInWorkflowJob?: true;
1944
2020
 
1945
2021
  /**
1946
- * The inputs of the node.
2022
+ * The inputs of the node. For a user-selection node, the array input's `min`/`max`
2023
+ * bound how many items the user may pick (defaults: 1 and 100); conditional
2024
+ * connections may be present as additional inputs.
1947
2025
  */
1948
2026
  inputs?: Array<Flow.Input>;
1949
2027
 
1950
2028
  /**
1951
- * Statically-configured items for a List node. The node outputs this array as-is
1952
- * when executed. Only available for List nodes. The values can be strings,
1953
- * numbers, or asset IDs.
2029
+ * Statically-configured items for a List node, or the frozen candidate list of a
2030
+ * UserSelection node. The values can be strings, numbers, or asset IDs.
1954
2031
  */
1955
2032
  items?: Array<string>;
1956
2033
 
@@ -2099,7 +2176,9 @@ export namespace ExampleUpdateResponse {
2099
2176
  * The asset kind of the input. Only taken into account for \`file\` and
2100
2177
  * \`file_array\` input types. If model provides multiple kinds, the input will be
2101
2178
  * not able to create the asset on the flight on API side with dataurl without
2102
- * data:kind, prefix
2179
+ * data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
2180
+ * a model does not declare one, \`image\` is returned, which is the kind used at
2181
+ * generation time.
2103
2182
  */
2104
2183
  kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
2105
2184
 
@@ -2127,8 +2206,9 @@ export namespace ExampleUpdateResponse {
2127
2206
  maxDuration?: number;
2128
2207
 
2129
2208
  /**
2130
- * The maximum allowed length for \`string\` inputs. Also applies to each item in
2131
- * \`string_array\`.
2209
+ * The maximum allowed length for \`string\` and \`model\` inputs, in characters.
2210
+ * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
2211
+ * ITEMS instead — the length of each item is not constrained.
2132
2212
  */
2133
2213
  maxLength?: number;
2134
2214
 
@@ -2145,8 +2225,9 @@ export namespace ExampleUpdateResponse {
2145
2225
  min?: number;
2146
2226
 
2147
2227
  /**
2148
- * The minimum allowed length for string inputs. Also applies to each item in
2149
- * \`string_array\`.
2228
+ * The minimum allowed length for \`string\` and \`model\` inputs, in characters.
2229
+ * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
2230
+ * ITEMS instead — the length of each item is not constrained.
2150
2231
  */
2151
2232
  minLength?: number;
2152
2233
 
@@ -2226,8 +2307,7 @@ export namespace ExampleUpdateResponse {
2226
2307
  * - \`ifNotDefined\`: Input is required when another specified input is not
2227
2308
  * defined
2228
2309
  * - \`ifDefined\`: Input is required when another specified input is defined
2229
- * - \`conditionalValues\`: Input is required when another input has a specific
2230
- * value
2310
+ * - \`conditional\`: Input is required when other inputs have specific values
2231
2311
  *
2232
2312
  * By default, the input is not required.
2233
2313
  */
@@ -2326,7 +2406,9 @@ export namespace ExampleUpdateResponse {
2326
2406
  * The asset kind of the input. Only taken into account for \`file\` and
2327
2407
  * \`file_array\` input types. If model provides multiple kinds, the input will be
2328
2408
  * not able to create the asset on the flight on API side with dataurl without
2329
- * data:kind, prefix
2409
+ * data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
2410
+ * a model does not declare one, \`image\` is returned, which is the kind used at
2411
+ * generation time.
2330
2412
  */
2331
2413
  kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
2332
2414
 
@@ -2354,8 +2436,9 @@ export namespace ExampleUpdateResponse {
2354
2436
  maxDuration?: number;
2355
2437
 
2356
2438
  /**
2357
- * The maximum allowed length for \`string\` inputs. Also applies to each item in
2358
- * \`string_array\`.
2439
+ * The maximum allowed length for \`string\` and \`model\` inputs, in characters.
2440
+ * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
2441
+ * ITEMS instead — the length of each item is not constrained.
2359
2442
  */
2360
2443
  maxLength?: number;
2361
2444
 
@@ -2372,8 +2455,9 @@ export namespace ExampleUpdateResponse {
2372
2455
  min?: number;
2373
2456
 
2374
2457
  /**
2375
- * The minimum allowed length for string inputs. Also applies to each item in
2376
- * \`string_array\`.
2458
+ * The minimum allowed length for \`string\` and \`model\` inputs, in characters.
2459
+ * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
2460
+ * ITEMS instead — the length of each item is not constrained.
2377
2461
  */
2378
2462
  minLength?: number;
2379
2463
 
@@ -2453,8 +2537,7 @@ export namespace ExampleUpdateResponse {
2453
2537
  * - \`ifNotDefined\`: Input is required when another specified input is not
2454
2538
  * defined
2455
2539
  * - \`ifDefined\`: Input is required when another specified input is defined
2456
- * - \`conditionalValues\`: Input is required when another input has a specific
2457
- * value
2540
+ * - \`conditional\`: Input is required when other inputs have specific values
2458
2541
  *
2459
2542
  * By default, the input is not required.
2460
2543
  */
@@ -2511,8 +2594,7 @@ export namespace ExampleUpdateResponse {
2511
2594
  * - \`ifNotDefined\`: Input is required when another specified input is not
2512
2595
  * defined
2513
2596
  * - \`ifDefined\`: Input is required when another specified input is defined
2514
- * - \`conditionalValues\`: Input is required when another input has a specific
2515
- * value
2597
+ * - \`conditional\`: Input is required when other inputs have specific values
2516
2598
  *
2517
2599
  * By default, the input is not required.
2518
2600
  */
@@ -2523,12 +2605,9 @@ export namespace ExampleUpdateResponse {
2523
2605
  always?: boolean;
2524
2606
 
2525
2607
  /**
2526
- * Makes this input required when another input has a specific value:
2527
- *
2528
- * - Key: name of the input to check
2529
- * - Value: operation and allowed values that trigger the requirement
2608
+ * Makes this input required when other inputs have one of the listed values
2530
2609
  */
2531
- conditionalValues?: unknown;
2610
+ conditional?: Required.Conditional;
2532
2611
 
2533
2612
  /**
2534
2613
  * Makes this input required when another input is defined:
@@ -2546,6 +2625,26 @@ export namespace ExampleUpdateResponse {
2546
2625
  */
2547
2626
  ifNotDefined?: unknown;
2548
2627
  }
2628
+
2629
+ export namespace Required {
2630
+ /**
2631
+ * Makes this input required when other inputs have one of the listed values
2632
+ */
2633
+ export interface Conditional {
2634
+ /**
2635
+ * The conditions to check:
2636
+ *
2637
+ * - Key: name of the input to check
2638
+ * - Value: values of that input that satisfy the condition
2639
+ */
2640
+ values: unknown;
2641
+
2642
+ /**
2643
+ * How the conditions combine: \`and\` (all must match) or \`or\` (any must match)
2644
+ */
2645
+ operator?: 'and' | 'or';
2646
+ }
2647
+ }
2549
2648
  }
2550
2649
 
2551
2650
  /**
@@ -2586,8 +2685,7 @@ export namespace ExampleUpdateResponse {
2586
2685
  * - \`ifNotDefined\`: Input is required when another specified input is not
2587
2686
  * defined
2588
2687
  * - \`ifDefined\`: Input is required when another specified input is defined
2589
- * - \`conditionalValues\`: Input is required when another input has a specific
2590
- * value
2688
+ * - \`conditional\`: Input is required when other inputs have specific values
2591
2689
  *
2592
2690
  * By default, the input is not required.
2593
2691
  */
@@ -2598,12 +2696,9 @@ export namespace ExampleUpdateResponse {
2598
2696
  always?: boolean;
2599
2697
 
2600
2698
  /**
2601
- * Makes this input required when another input has a specific value:
2602
- *
2603
- * - Key: name of the input to check
2604
- * - Value: operation and allowed values that trigger the requirement
2699
+ * Makes this input required when other inputs have one of the listed values
2605
2700
  */
2606
- conditionalValues?: unknown;
2701
+ conditional?: Required.Conditional;
2607
2702
 
2608
2703
  /**
2609
2704
  * Makes this input required when another input is defined:
@@ -2621,6 +2716,26 @@ export namespace ExampleUpdateResponse {
2621
2716
  */
2622
2717
  ifNotDefined?: unknown;
2623
2718
  }
2719
+
2720
+ export namespace Required {
2721
+ /**
2722
+ * Makes this input required when other inputs have one of the listed values
2723
+ */
2724
+ export interface Conditional {
2725
+ /**
2726
+ * The conditions to check:
2727
+ *
2728
+ * - Key: name of the input to check
2729
+ * - Value: values of that input that satisfy the condition
2730
+ */
2731
+ values: unknown;
2732
+
2733
+ /**
2734
+ * How the conditions combine: \`and\` (all must match) or \`or\` (any must match)
2735
+ */
2736
+ operator?: 'and' | 'or';
2737
+ }
2738
+ }
2624
2739
  }
2625
2740
 
2626
2741
  /**
@@ -2678,7 +2793,7 @@ export namespace ExampleUpdateResponse {
2678
2793
 
2679
2794
  /**
2680
2795
  * Compute Units charged for the ADD-ONS of this job, per action — the fees paid on
2681
- * top of the generation itself, such as `slop-detection`.
2796
+ * top of the generation itself, such as `quality-gate`.
2682
2797
  *
2683
2798
  * `cuCost` above is the main action alone, so the job's total is `cuCost` plus the
2684
2799
  * values here.
@@ -2708,7 +2823,7 @@ export namespace ExampleUpdateResponse {
2708
2823
  export namespace Billing {
2709
2824
  /**
2710
2825
  * Compute Units charged for the ADD-ONS of this job, per action — the fees paid on
2711
- * top of the generation itself, such as `slop-detection`.
2826
+ * top of the generation itself, such as `quality-gate`.
2712
2827
  *
2713
2828
  * `cuCost` above is the main action alone, so the job's total is `cuCost` plus the
2714
2829
  * values here.
@@ -2728,7 +2843,7 @@ export namespace ExampleUpdateResponse {
2728
2843
  export interface CuCostDetails {
2729
2844
  'ip-detection'?: number;
2730
2845
 
2731
- 'slop-detection'?: number;
2846
+ 'quality-gate'?: number;
2732
2847
  }
2733
2848
  }
2734
2849
  }
@@ -3000,6 +3115,66 @@ export namespace ExampleListResponse {
3000
3115
  */
3001
3116
  originalFileUrl?: string;
3002
3117
 
3118
+ /**
3119
+ * The mime type of the original file url.
3120
+ *
3121
+ * The original file is stored under a key that carries no extension, so this is
3122
+ * the only way to know which format `originalFileUrl` serves (e.g. an HDRi skybox
3123
+ * exposes a JPEG preview as `url` and its `.exr` or `.hdr` file as the original).
3124
+ * Omitted when the stored format could not be determined.
3125
+ */
3126
+ originalMimeType?:
3127
+ | 'application/gzip'
3128
+ | 'application/json'
3129
+ | 'application/octet-stream'
3130
+ | 'application/pdf'
3131
+ | 'application/safetensors'
3132
+ | 'application/vnd.autodesk.fbx'
3133
+ | 'application/x-authorware-bin'
3134
+ | 'application/x-zip-compressed'
3135
+ | 'application/x.autodesk.fbx'
3136
+ | 'application/zip'
3137
+ | 'audio/flac'
3138
+ | 'audio/m4a'
3139
+ | 'audio/mpeg'
3140
+ | 'audio/ogg'
3141
+ | 'audio/wav'
3142
+ | 'image/aces'
3143
+ | 'image/avif'
3144
+ | 'image/bmp'
3145
+ | 'image/gif'
3146
+ | 'image/heic'
3147
+ | 'image/jpeg'
3148
+ | 'image/png'
3149
+ | 'image/svg+xml'
3150
+ | 'image/tiff'
3151
+ | 'image/vnd.radiance'
3152
+ | 'image/webp'
3153
+ | 'image/x-exr'
3154
+ | 'model/glb'
3155
+ | 'model/gltf+json'
3156
+ | 'model/gltf-binary'
3157
+ | 'model/ksplat'
3158
+ | 'model/mtl'
3159
+ | 'model/obj'
3160
+ | 'model/ply'
3161
+ | 'model/sog'
3162
+ | 'model/splat'
3163
+ | 'model/spz'
3164
+ | 'model/stl'
3165
+ | 'model/vnd.collada+xml'
3166
+ | 'model/vnd.ms-package.3dmanufacturing-3dmodel+xml'
3167
+ | 'model/x-3d-vox'
3168
+ | 'model/x-blender'
3169
+ | 'model/x-fbx'
3170
+ | 'model/x-maya-ascii'
3171
+ | 'model/x-maya-binary'
3172
+ | 'model/x3d+xml'
3173
+ | 'text/plain'
3174
+ | 'video/mp4'
3175
+ | 'video/quicktime'
3176
+ | 'video/webm';
3177
+
3003
3178
  /**
3004
3179
  * The output index of the asset within a job This index is an positive integer
3005
3180
  * that starts at 0 It is used to differentiate between multiple outputs of the
@@ -3015,12 +3190,12 @@ export namespace ExampleListResponse {
3015
3190
  preview?: Asset.Preview;
3016
3191
 
3017
3192
  /**
3018
- * SlopGuard detection result, computed asynchronously after generation.
3193
+ * Quality Gate result, computed asynchronously after generation.
3019
3194
  *
3020
3195
  * `details` (the per-dimension reasons and suggestions) is returned only when the
3021
- * asset is read with `withSlopGuardDetails=true`.
3196
+ * asset is read with `withQualityGateDetails=true`.
3022
3197
  */
3023
- slopGuard?: Asset.SlopGuard;
3198
+ qualityGate?: Asset.QualityGate;
3024
3199
 
3025
3200
  /**
3026
3201
  * The asset's thumbnail.
@@ -3228,6 +3403,12 @@ export namespace ExampleListResponse {
3228
3403
  */
3229
3404
  factor?: number;
3230
3405
 
3406
+ /**
3407
+ * The name its parent's files reference it by (an OBJ's MTL, an MTL's texture),
3408
+ * kept as delivered.
3409
+ */
3410
+ fileName?: string;
3411
+
3231
3412
  filterSpeckle?: number;
3232
3413
 
3233
3414
  /**
@@ -3317,6 +3498,11 @@ export namespace ExampleListResponse {
3317
3498
  */
3318
3499
  invert?: boolean;
3319
3500
 
3501
+ /**
3502
+ * Its own references (an OBJ's `mtllib`, an MTL's maps) were kept as delivered.
3503
+ */
3504
+ keepsFileNames?: boolean;
3505
+
3320
3506
  /**
3321
3507
  * How polished is the surface? 0 is like a rough surface, 1 is like a mirror
3322
3508
  */
@@ -3939,12 +4125,12 @@ export namespace ExampleListResponse {
3939
4125
  }
3940
4126
 
3941
4127
  /**
3942
- * SlopGuard detection result, computed asynchronously after generation.
4128
+ * Quality Gate result, computed asynchronously after generation.
3943
4129
  *
3944
4130
  * `details` (the per-dimension reasons and suggestions) is returned only when the
3945
- * asset is read with `withSlopGuardDetails=true`.
4131
+ * asset is read with `withQualityGateDetails=true`.
3946
4132
  */
3947
- export interface SlopGuard {
4133
+ export interface QualityGate {
3948
4134
  /**
3949
4135
  * ISO-8601 timestamp of when scoring ran
3950
4136
  */
@@ -3978,13 +4164,13 @@ export namespace ExampleListResponse {
3978
4164
  /**
3979
4165
  * Per-dimension reasons and suggestions, as produced by the detector.
3980
4166
  *
3981
- * Returned only when the asset is read with `withSlopGuardDetails=true` by the
4167
+ * Returned only when the asset is read with `withQualityGateDetails=true` by the
3982
4168
  * project that owns it — the brief-compliance text paraphrases that project's
3983
4169
  * brief, so a cross-project read of a public asset gets the summary alone. Also
3984
4170
  * omitted when the archived verdict is unavailable (asset scored by an older
3985
4171
  * version, or an unreadable archive).
3986
4172
  */
3987
- details?: SlopGuard.Details;
4173
+ details?: QualityGate.Details;
3988
4174
 
3989
4175
  /**
3990
4176
  * Error message when status is 'error' (truncated)
@@ -4007,11 +4193,11 @@ export namespace ExampleListResponse {
4007
4193
  verdict?: 'fail' | 'pass' | 'warn';
4008
4194
  }
4009
4195
 
4010
- export namespace SlopGuard {
4196
+ export namespace QualityGate {
4011
4197
  /**
4012
4198
  * Per-dimension reasons and suggestions, as produced by the detector.
4013
4199
  *
4014
- * Returned only when the asset is read with `withSlopGuardDetails=true` by the
4200
+ * Returned only when the asset is read with `withQualityGateDetails=true` by the
4015
4201
  * project that owns it — the brief-compliance text paraphrases that project's
4016
4202
  * brief, so a cross-project read of a public asset gets the summary alone. Also
4017
4203
  * omitted when the archived verdict is unavailable (asset scored by an older
@@ -4614,6 +4800,7 @@ export namespace ExampleListResponse {
4614
4800
  | 'remove-background'
4615
4801
  | 'transform'
4616
4802
  | 'user-approval'
4803
+ | 'user-selection'
4617
4804
  | 'workflow';
4618
4805
 
4619
4806
  /**
@@ -4644,14 +4831,15 @@ export namespace ExampleListResponse {
4644
4831
  includeOutputsInWorkflowJob?: true;
4645
4832
 
4646
4833
  /**
4647
- * The inputs of the node.
4834
+ * The inputs of the node. For a user-selection node, the array input's `min`/`max`
4835
+ * bound how many items the user may pick (defaults: 1 and 100); conditional
4836
+ * connections may be present as additional inputs.
4648
4837
  */
4649
4838
  inputs?: Array<Flow.Input>;
4650
4839
 
4651
4840
  /**
4652
- * Statically-configured items for a List node. The node outputs this array as-is
4653
- * when executed. Only available for List nodes. The values can be strings,
4654
- * numbers, or asset IDs.
4841
+ * Statically-configured items for a List node, or the frozen candidate list of a
4842
+ * UserSelection node. The values can be strings, numbers, or asset IDs.
4655
4843
  */
4656
4844
  items?: Array<string>;
4657
4845
 
@@ -4800,7 +4988,9 @@ export namespace ExampleListResponse {
4800
4988
  * The asset kind of the input. Only taken into account for \`file\` and
4801
4989
  * \`file_array\` input types. If model provides multiple kinds, the input will be
4802
4990
  * not able to create the asset on the flight on API side with dataurl without
4803
- * data:kind, prefix
4991
+ * data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
4992
+ * a model does not declare one, \`image\` is returned, which is the kind used at
4993
+ * generation time.
4804
4994
  */
4805
4995
  kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
4806
4996
 
@@ -4828,8 +5018,9 @@ export namespace ExampleListResponse {
4828
5018
  maxDuration?: number;
4829
5019
 
4830
5020
  /**
4831
- * The maximum allowed length for \`string\` inputs. Also applies to each item in
4832
- * \`string_array\`.
5021
+ * The maximum allowed length for \`string\` and \`model\` inputs, in characters.
5022
+ * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
5023
+ * ITEMS instead — the length of each item is not constrained.
4833
5024
  */
4834
5025
  maxLength?: number;
4835
5026
 
@@ -4846,8 +5037,9 @@ export namespace ExampleListResponse {
4846
5037
  min?: number;
4847
5038
 
4848
5039
  /**
4849
- * The minimum allowed length for string inputs. Also applies to each item in
4850
- * \`string_array\`.
5040
+ * The minimum allowed length for \`string\` and \`model\` inputs, in characters.
5041
+ * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
5042
+ * ITEMS instead — the length of each item is not constrained.
4851
5043
  */
4852
5044
  minLength?: number;
4853
5045
 
@@ -4927,8 +5119,7 @@ export namespace ExampleListResponse {
4927
5119
  * - \`ifNotDefined\`: Input is required when another specified input is not
4928
5120
  * defined
4929
5121
  * - \`ifDefined\`: Input is required when another specified input is defined
4930
- * - \`conditionalValues\`: Input is required when another input has a specific
4931
- * value
5122
+ * - \`conditional\`: Input is required when other inputs have specific values
4932
5123
  *
4933
5124
  * By default, the input is not required.
4934
5125
  */
@@ -5027,7 +5218,9 @@ export namespace ExampleListResponse {
5027
5218
  * The asset kind of the input. Only taken into account for \`file\` and
5028
5219
  * \`file_array\` input types. If model provides multiple kinds, the input will be
5029
5220
  * not able to create the asset on the flight on API side with dataurl without
5030
- * data:kind, prefix
5221
+ * data:kind, prefix \`file\` and \`file_array\` inputs always expose a kind: when
5222
+ * a model does not declare one, \`image\` is returned, which is the kind used at
5223
+ * generation time.
5031
5224
  */
5032
5225
  kind?: '3d' | 'audio' | 'document' | 'image' | 'image-hdr' | 'json' | 'text' | 'video';
5033
5226
 
@@ -5055,8 +5248,9 @@ export namespace ExampleListResponse {
5055
5248
  maxDuration?: number;
5056
5249
 
5057
5250
  /**
5058
- * The maximum allowed length for \`string\` inputs. Also applies to each item in
5059
- * \`string_array\`.
5251
+ * The maximum allowed length for \`string\` and \`model\` inputs, in characters.
5252
+ * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
5253
+ * ITEMS instead — the length of each item is not constrained.
5060
5254
  */
5061
5255
  maxLength?: number;
5062
5256
 
@@ -5073,8 +5267,9 @@ export namespace ExampleListResponse {
5073
5267
  min?: number;
5074
5268
 
5075
5269
  /**
5076
- * The minimum allowed length for string inputs. Also applies to each item in
5077
- * \`string_array\`.
5270
+ * The minimum allowed length for \`string\` and \`model\` inputs, in characters.
5271
+ * For the array types (\`string_array\`, \`model_array\`) it bounds the NUMBER OF
5272
+ * ITEMS instead — the length of each item is not constrained.
5078
5273
  */
5079
5274
  minLength?: number;
5080
5275
 
@@ -5154,8 +5349,7 @@ export namespace ExampleListResponse {
5154
5349
  * - \`ifNotDefined\`: Input is required when another specified input is not
5155
5350
  * defined
5156
5351
  * - \`ifDefined\`: Input is required when another specified input is defined
5157
- * - \`conditionalValues\`: Input is required when another input has a specific
5158
- * value
5352
+ * - \`conditional\`: Input is required when other inputs have specific values
5159
5353
  *
5160
5354
  * By default, the input is not required.
5161
5355
  */
@@ -5212,8 +5406,7 @@ export namespace ExampleListResponse {
5212
5406
  * - \`ifNotDefined\`: Input is required when another specified input is not
5213
5407
  * defined
5214
5408
  * - \`ifDefined\`: Input is required when another specified input is defined
5215
- * - \`conditionalValues\`: Input is required when another input has a specific
5216
- * value
5409
+ * - \`conditional\`: Input is required when other inputs have specific values
5217
5410
  *
5218
5411
  * By default, the input is not required.
5219
5412
  */
@@ -5224,12 +5417,9 @@ export namespace ExampleListResponse {
5224
5417
  always?: boolean;
5225
5418
 
5226
5419
  /**
5227
- * Makes this input required when another input has a specific value:
5228
- *
5229
- * - Key: name of the input to check
5230
- * - Value: operation and allowed values that trigger the requirement
5420
+ * Makes this input required when other inputs have one of the listed values
5231
5421
  */
5232
- conditionalValues?: unknown;
5422
+ conditional?: Required.Conditional;
5233
5423
 
5234
5424
  /**
5235
5425
  * Makes this input required when another input is defined:
@@ -5247,6 +5437,26 @@ export namespace ExampleListResponse {
5247
5437
  */
5248
5438
  ifNotDefined?: unknown;
5249
5439
  }
5440
+
5441
+ export namespace Required {
5442
+ /**
5443
+ * Makes this input required when other inputs have one of the listed values
5444
+ */
5445
+ export interface Conditional {
5446
+ /**
5447
+ * The conditions to check:
5448
+ *
5449
+ * - Key: name of the input to check
5450
+ * - Value: values of that input that satisfy the condition
5451
+ */
5452
+ values: unknown;
5453
+
5454
+ /**
5455
+ * How the conditions combine: \`and\` (all must match) or \`or\` (any must match)
5456
+ */
5457
+ operator?: 'and' | 'or';
5458
+ }
5459
+ }
5250
5460
  }
5251
5461
 
5252
5462
  /**
@@ -5287,8 +5497,7 @@ export namespace ExampleListResponse {
5287
5497
  * - \`ifNotDefined\`: Input is required when another specified input is not
5288
5498
  * defined
5289
5499
  * - \`ifDefined\`: Input is required when another specified input is defined
5290
- * - \`conditionalValues\`: Input is required when another input has a specific
5291
- * value
5500
+ * - \`conditional\`: Input is required when other inputs have specific values
5292
5501
  *
5293
5502
  * By default, the input is not required.
5294
5503
  */
@@ -5299,12 +5508,9 @@ export namespace ExampleListResponse {
5299
5508
  always?: boolean;
5300
5509
 
5301
5510
  /**
5302
- * Makes this input required when another input has a specific value:
5303
- *
5304
- * - Key: name of the input to check
5305
- * - Value: operation and allowed values that trigger the requirement
5511
+ * Makes this input required when other inputs have one of the listed values
5306
5512
  */
5307
- conditionalValues?: unknown;
5513
+ conditional?: Required.Conditional;
5308
5514
 
5309
5515
  /**
5310
5516
  * Makes this input required when another input is defined:
@@ -5322,6 +5528,26 @@ export namespace ExampleListResponse {
5322
5528
  */
5323
5529
  ifNotDefined?: unknown;
5324
5530
  }
5531
+
5532
+ export namespace Required {
5533
+ /**
5534
+ * Makes this input required when other inputs have one of the listed values
5535
+ */
5536
+ export interface Conditional {
5537
+ /**
5538
+ * The conditions to check:
5539
+ *
5540
+ * - Key: name of the input to check
5541
+ * - Value: values of that input that satisfy the condition
5542
+ */
5543
+ values: unknown;
5544
+
5545
+ /**
5546
+ * How the conditions combine: \`and\` (all must match) or \`or\` (any must match)
5547
+ */
5548
+ operator?: 'and' | 'or';
5549
+ }
5550
+ }
5325
5551
  }
5326
5552
 
5327
5553
  /**
@@ -5379,7 +5605,7 @@ export namespace ExampleListResponse {
5379
5605
 
5380
5606
  /**
5381
5607
  * Compute Units charged for the ADD-ONS of this job, per action — the fees paid on
5382
- * top of the generation itself, such as `slop-detection`.
5608
+ * top of the generation itself, such as `quality-gate`.
5383
5609
  *
5384
5610
  * `cuCost` above is the main action alone, so the job's total is `cuCost` plus the
5385
5611
  * values here.
@@ -5409,7 +5635,7 @@ export namespace ExampleListResponse {
5409
5635
  export namespace Billing {
5410
5636
  /**
5411
5637
  * Compute Units charged for the ADD-ONS of this job, per action — the fees paid on
5412
- * top of the generation itself, such as `slop-detection`.
5638
+ * top of the generation itself, such as `quality-gate`.
5413
5639
  *
5414
5640
  * `cuCost` above is the main action alone, so the job's total is `cuCost` plus the
5415
5641
  * values here.
@@ -5429,7 +5655,7 @@ export namespace ExampleListResponse {
5429
5655
  export interface CuCostDetails {
5430
5656
  'ip-detection'?: number;
5431
5657
 
5432
- 'slop-detection'?: number;
5658
+ 'quality-gate'?: number;
5433
5659
  }
5434
5660
  }
5435
5661
  }