@scenario-labs/sdk 3.2.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 (516) hide show
  1. package/CHANGELOG.md +27 -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/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_validator.d.mts +5 -0
  83. package/lib/workflow_validator.d.mts.map +1 -1
  84. package/lib/workflow_validator.d.ts +5 -0
  85. package/lib/workflow_validator.d.ts.map +1 -1
  86. package/lib/workflow_validator.js +113 -0
  87. package/lib/workflow_validator.js.map +1 -1
  88. package/lib/workflow_validator.mjs +113 -0
  89. package/lib/workflow_validator.mjs.map +1 -1
  90. package/package.json +1 -1
  91. package/resources/assets/assets.d.mts +130 -31
  92. package/resources/assets/assets.d.mts.map +1 -1
  93. package/resources/assets/assets.d.ts +130 -31
  94. package/resources/assets/assets.d.ts.map +1 -1
  95. package/resources/assets/assets.js +34 -11
  96. package/resources/assets/assets.js.map +1 -1
  97. package/resources/assets/assets.mjs +34 -11
  98. package/resources/assets/assets.mjs.map +1 -1
  99. package/resources/assets/download.d.mts +24 -5
  100. package/resources/assets/download.d.mts.map +1 -1
  101. package/resources/assets/download.d.ts +24 -5
  102. package/resources/assets/download.d.ts.map +1 -1
  103. package/resources/assets/download.js +15 -3
  104. package/resources/assets/download.js.map +1 -1
  105. package/resources/assets/download.mjs +15 -3
  106. package/resources/assets/download.mjs.map +1 -1
  107. package/resources/collections/assets.d.mts.map +1 -1
  108. package/resources/collections/assets.d.ts.map +1 -1
  109. package/resources/collections/assets.js +3 -2
  110. package/resources/collections/assets.js.map +1 -1
  111. package/resources/collections/assets.mjs +3 -2
  112. package/resources/collections/assets.mjs.map +1 -1
  113. package/resources/collections/collections.d.mts.map +1 -1
  114. package/resources/collections/collections.d.ts.map +1 -1
  115. package/resources/collections/collections.js +20 -5
  116. package/resources/collections/collections.js.map +1 -1
  117. package/resources/collections/collections.mjs +20 -5
  118. package/resources/collections/collections.mjs.map +1 -1
  119. package/resources/collections/models.d.mts.map +1 -1
  120. package/resources/collections/models.d.ts.map +1 -1
  121. package/resources/collections/models.js +3 -2
  122. package/resources/collections/models.js.map +1 -1
  123. package/resources/collections/models.mjs +3 -2
  124. package/resources/collections/models.mjs.map +1 -1
  125. package/resources/generate.d.mts +1719 -225
  126. package/resources/generate.d.mts.map +1 -1
  127. package/resources/generate.d.ts +1719 -225
  128. package/resources/generate.d.ts.map +1 -1
  129. package/resources/generate.js +65 -8
  130. package/resources/generate.js.map +1 -1
  131. package/resources/generate.mjs +65 -8
  132. package/resources/generate.mjs.map +1 -1
  133. package/resources/index.d.mts +5 -2
  134. package/resources/index.d.mts.map +1 -1
  135. package/resources/index.d.ts +5 -2
  136. package/resources/index.d.ts.map +1 -1
  137. package/resources/index.js +7 -1
  138. package/resources/index.js.map +1 -1
  139. package/resources/index.mjs +3 -0
  140. package/resources/index.mjs.map +1 -1
  141. package/resources/jobs.d.mts +176 -74
  142. package/resources/jobs.d.mts.map +1 -1
  143. package/resources/jobs.d.ts +176 -74
  144. package/resources/jobs.d.ts.map +1 -1
  145. package/resources/jobs.js +16 -4
  146. package/resources/jobs.js.map +1 -1
  147. package/resources/jobs.mjs +16 -4
  148. package/resources/jobs.mjs.map +1 -1
  149. package/resources/models/description.d.mts +2 -2
  150. package/resources/models/description.d.mts.map +1 -1
  151. package/resources/models/description.d.ts +2 -2
  152. package/resources/models/description.d.ts.map +1 -1
  153. package/resources/models/description.js +6 -2
  154. package/resources/models/description.js.map +1 -1
  155. package/resources/models/description.mjs +6 -2
  156. package/resources/models/description.mjs.map +1 -1
  157. package/resources/models/examples.d.mts +120 -48
  158. package/resources/models/examples.d.mts.map +1 -1
  159. package/resources/models/examples.d.ts +120 -48
  160. package/resources/models/examples.d.ts.map +1 -1
  161. package/resources/models/examples.js +6 -2
  162. package/resources/models/examples.js.map +1 -1
  163. package/resources/models/examples.mjs +6 -2
  164. package/resources/models/examples.mjs.map +1 -1
  165. package/resources/models/index.d.mts +3 -0
  166. package/resources/models/index.d.mts.map +1 -1
  167. package/resources/models/index.d.ts +3 -0
  168. package/resources/models/index.d.ts.map +1 -1
  169. package/resources/models/index.js +7 -1
  170. package/resources/models/index.js.map +1 -1
  171. package/resources/models/index.mjs +3 -0
  172. package/resources/models/index.mjs.map +1 -1
  173. package/resources/models/models.d.mts +215 -77
  174. package/resources/models/models.d.mts.map +1 -1
  175. package/resources/models/models.d.ts +215 -77
  176. package/resources/models/models.d.ts.map +1 -1
  177. package/resources/models/models.js +52 -11
  178. package/resources/models/models.js.map +1 -1
  179. package/resources/models/models.mjs +52 -11
  180. package/resources/models/models.mjs.map +1 -1
  181. package/resources/models/presets.d.mts +1016 -0
  182. package/resources/models/presets.d.mts.map +1 -0
  183. package/resources/models/presets.d.ts +1016 -0
  184. package/resources/models/presets.d.ts.map +1 -0
  185. package/resources/models/presets.js +52 -0
  186. package/resources/models/presets.js.map +1 -0
  187. package/resources/models/presets.mjs +48 -0
  188. package/resources/models/presets.mjs.map +1 -0
  189. package/resources/models/prompt-guide.d.mts +64 -0
  190. package/resources/models/prompt-guide.d.mts.map +1 -0
  191. package/resources/models/prompt-guide.d.ts +64 -0
  192. package/resources/models/prompt-guide.d.ts.map +1 -0
  193. package/resources/models/prompt-guide.js +31 -0
  194. package/resources/models/prompt-guide.js.map +1 -0
  195. package/resources/models/prompt-guide.mjs +27 -0
  196. package/resources/models/prompt-guide.mjs.map +1 -0
  197. package/resources/models/scores.d.mts +278 -0
  198. package/resources/models/scores.d.mts.map +1 -0
  199. package/resources/models/scores.d.ts +278 -0
  200. package/resources/models/scores.d.ts.map +1 -0
  201. package/resources/models/scores.js +29 -0
  202. package/resources/models/scores.js.map +1 -0
  203. package/resources/models/scores.mjs +25 -0
  204. package/resources/models/scores.mjs.map +1 -0
  205. package/resources/models/train.d.mts +108 -45
  206. package/resources/models/train.d.mts.map +1 -1
  207. package/resources/models/train.d.ts +108 -45
  208. package/resources/models/train.d.ts.map +1 -1
  209. package/resources/models/train.js +3 -2
  210. package/resources/models/train.js.map +1 -1
  211. package/resources/models/train.mjs +3 -2
  212. package/resources/models/train.mjs.map +1 -1
  213. package/resources/models/training-images.d.mts.map +1 -1
  214. package/resources/models/training-images.d.ts.map +1 -1
  215. package/resources/models/training-images.js +5 -4
  216. package/resources/models/training-images.js.map +1 -1
  217. package/resources/models/training-images.mjs +5 -4
  218. package/resources/models/training-images.mjs.map +1 -1
  219. package/resources/projects/api-keys.d.mts +54 -0
  220. package/resources/projects/api-keys.d.mts.map +1 -0
  221. package/resources/projects/api-keys.d.ts +54 -0
  222. package/resources/projects/api-keys.d.ts.map +1 -0
  223. package/resources/projects/api-keys.js +23 -0
  224. package/resources/projects/api-keys.js.map +1 -0
  225. package/resources/projects/api-keys.mjs +19 -0
  226. package/resources/projects/api-keys.mjs.map +1 -0
  227. package/resources/projects/brief.d.mts +149 -0
  228. package/resources/projects/brief.d.mts.map +1 -0
  229. package/resources/projects/brief.d.ts +149 -0
  230. package/resources/projects/brief.d.ts.map +1 -0
  231. package/resources/projects/brief.js +28 -0
  232. package/resources/projects/brief.js.map +1 -0
  233. package/resources/projects/brief.mjs +24 -0
  234. package/resources/projects/brief.mjs.map +1 -0
  235. package/resources/projects/index.d.mts +9 -0
  236. package/resources/projects/index.d.mts.map +1 -0
  237. package/resources/projects/index.d.ts +9 -0
  238. package/resources/projects/index.d.ts.map +1 -0
  239. package/resources/projects/index.js +21 -0
  240. package/resources/projects/index.js.map +1 -0
  241. package/resources/projects/index.mjs +10 -0
  242. package/resources/projects/index.mjs.map +1 -0
  243. package/resources/projects/instructions.d.mts +102 -0
  244. package/resources/projects/instructions.d.mts.map +1 -0
  245. package/resources/projects/instructions.d.ts +102 -0
  246. package/resources/projects/instructions.d.ts.map +1 -0
  247. package/resources/projects/instructions.js +24 -0
  248. package/resources/projects/instructions.js.map +1 -0
  249. package/resources/projects/instructions.mjs +20 -0
  250. package/resources/projects/instructions.mjs.map +1 -0
  251. package/resources/projects/members.d.mts +788 -0
  252. package/resources/projects/members.d.mts.map +1 -0
  253. package/resources/projects/members.d.ts +788 -0
  254. package/resources/projects/members.d.ts.map +1 -0
  255. package/resources/projects/members.js +30 -0
  256. package/resources/projects/members.js.map +1 -0
  257. package/resources/projects/members.mjs +26 -0
  258. package/resources/projects/members.mjs.map +1 -0
  259. package/resources/projects/memory.d.mts +102 -0
  260. package/resources/projects/memory.d.mts.map +1 -0
  261. package/resources/projects/memory.d.ts +102 -0
  262. package/resources/projects/memory.d.ts.map +1 -0
  263. package/resources/projects/memory.js +24 -0
  264. package/resources/projects/memory.js.map +1 -0
  265. package/resources/projects/memory.mjs +20 -0
  266. package/resources/projects/memory.mjs.map +1 -0
  267. package/resources/projects/projects.d.mts +1129 -0
  268. package/resources/projects/projects.d.mts.map +1 -0
  269. package/resources/projects/projects.d.ts +1129 -0
  270. package/resources/projects/projects.d.ts.map +1 -0
  271. package/resources/projects/projects.js +79 -0
  272. package/resources/projects/projects.js.map +1 -0
  273. package/resources/projects/projects.mjs +74 -0
  274. package/resources/projects/projects.mjs.map +1 -0
  275. package/resources/projects/watermark.d.mts +459 -0
  276. package/resources/projects/watermark.d.mts.map +1 -0
  277. package/resources/projects/watermark.d.ts +459 -0
  278. package/resources/projects/watermark.d.ts.map +1 -0
  279. package/resources/projects/watermark.js +46 -0
  280. package/resources/projects/watermark.js.map +1 -0
  281. package/resources/projects/watermark.mjs +42 -0
  282. package/resources/projects/watermark.mjs.map +1 -0
  283. package/resources/projects/webhook-endpoints/events.d.mts +87 -0
  284. package/resources/projects/webhook-endpoints/events.d.mts.map +1 -0
  285. package/resources/projects/webhook-endpoints/events.d.ts +87 -0
  286. package/resources/projects/webhook-endpoints/events.d.ts.map +1 -0
  287. package/resources/projects/webhook-endpoints/events.js +28 -0
  288. package/resources/projects/webhook-endpoints/events.js.map +1 -0
  289. package/resources/projects/webhook-endpoints/events.mjs +24 -0
  290. package/resources/projects/webhook-endpoints/events.mjs.map +1 -0
  291. package/resources/projects/webhook-endpoints/index.d.mts +3 -0
  292. package/resources/projects/webhook-endpoints/index.d.mts.map +1 -0
  293. package/resources/projects/webhook-endpoints/index.d.ts +3 -0
  294. package/resources/projects/webhook-endpoints/index.d.ts.map +1 -0
  295. package/resources/projects/webhook-endpoints/index.js +9 -0
  296. package/resources/projects/webhook-endpoints/index.js.map +1 -0
  297. package/resources/projects/webhook-endpoints/index.mjs +4 -0
  298. package/resources/projects/webhook-endpoints/index.mjs.map +1 -0
  299. package/resources/projects/webhook-endpoints/webhook-endpoints.d.mts +249 -0
  300. package/resources/projects/webhook-endpoints/webhook-endpoints.d.mts.map +1 -0
  301. package/resources/projects/webhook-endpoints/webhook-endpoints.d.ts +249 -0
  302. package/resources/projects/webhook-endpoints/webhook-endpoints.d.ts.map +1 -0
  303. package/resources/projects/webhook-endpoints/webhook-endpoints.js +44 -0
  304. package/resources/projects/webhook-endpoints/webhook-endpoints.js.map +1 -0
  305. package/resources/projects/webhook-endpoints/webhook-endpoints.mjs +39 -0
  306. package/resources/projects/webhook-endpoints/webhook-endpoints.mjs.map +1 -0
  307. package/resources/projects/webhook-endpoints.d.mts +2 -0
  308. package/resources/projects/webhook-endpoints.d.mts.map +1 -0
  309. package/resources/projects/webhook-endpoints.d.ts +2 -0
  310. package/resources/projects/webhook-endpoints.d.ts.map +1 -0
  311. package/resources/projects/webhook-endpoints.js +6 -0
  312. package/resources/projects/webhook-endpoints.js.map +1 -0
  313. package/resources/projects/webhook-endpoints.mjs +3 -0
  314. package/resources/projects/webhook-endpoints.mjs.map +1 -0
  315. package/resources/projects.d.mts +2 -0
  316. package/resources/projects.d.mts.map +1 -0
  317. package/resources/projects.d.ts +2 -0
  318. package/resources/projects.d.ts.map +1 -0
  319. package/resources/projects.js +6 -0
  320. package/resources/projects.js.map +1 -0
  321. package/resources/projects.mjs +3 -0
  322. package/resources/projects.mjs.map +1 -0
  323. package/resources/recommendations.d.mts +1107 -0
  324. package/resources/recommendations.d.mts.map +1 -0
  325. package/resources/recommendations.d.ts +1107 -0
  326. package/resources/recommendations.d.ts.map +1 -0
  327. package/resources/recommendations.js +17 -0
  328. package/resources/recommendations.js.map +1 -0
  329. package/resources/recommendations.mjs +13 -0
  330. package/resources/recommendations.mjs.map +1 -0
  331. package/resources/search.d.mts.map +1 -1
  332. package/resources/search.d.ts.map +1 -1
  333. package/resources/search.js +4 -3
  334. package/resources/search.js.map +1 -1
  335. package/resources/search.mjs +4 -3
  336. package/resources/search.mjs.map +1 -1
  337. package/resources/tags.d.mts.map +1 -1
  338. package/resources/tags.d.ts.map +1 -1
  339. package/resources/tags.js +5 -1
  340. package/resources/tags.js.map +1 -1
  341. package/resources/tags.mjs +5 -1
  342. package/resources/tags.mjs.map +1 -1
  343. package/resources/teams/brief.d.mts +149 -0
  344. package/resources/teams/brief.d.mts.map +1 -0
  345. package/resources/teams/brief.d.ts +149 -0
  346. package/resources/teams/brief.d.ts.map +1 -0
  347. package/resources/teams/brief.js +28 -0
  348. package/resources/teams/brief.js.map +1 -0
  349. package/resources/teams/brief.mjs +24 -0
  350. package/resources/teams/brief.mjs.map +1 -0
  351. package/resources/teams/index.d.mts +7 -0
  352. package/resources/teams/index.d.mts.map +1 -0
  353. package/resources/teams/index.d.ts +7 -0
  354. package/resources/teams/index.d.ts.map +1 -0
  355. package/resources/teams/index.js +17 -0
  356. package/resources/teams/index.js.map +1 -0
  357. package/resources/teams/index.mjs +8 -0
  358. package/resources/teams/index.mjs.map +1 -0
  359. package/resources/teams/ip-filters.d.mts +115 -0
  360. package/resources/teams/ip-filters.d.mts.map +1 -0
  361. package/resources/teams/ip-filters.d.ts +115 -0
  362. package/resources/teams/ip-filters.d.ts.map +1 -0
  363. package/resources/teams/ip-filters.js +45 -0
  364. package/resources/teams/ip-filters.js.map +1 -0
  365. package/resources/teams/ip-filters.mjs +41 -0
  366. package/resources/teams/ip-filters.mjs.map +1 -0
  367. package/resources/teams/members.d.mts +204 -0
  368. package/resources/teams/members.d.mts.map +1 -0
  369. package/resources/teams/members.d.ts +204 -0
  370. package/resources/teams/members.d.ts.map +1 -0
  371. package/resources/teams/members.js +30 -0
  372. package/resources/teams/members.js.map +1 -0
  373. package/resources/teams/members.mjs +26 -0
  374. package/resources/teams/members.mjs.map +1 -0
  375. package/resources/teams/teams.d.mts +878 -0
  376. package/resources/teams/teams.d.mts.map +1 -0
  377. package/resources/teams/teams.d.ts +878 -0
  378. package/resources/teams/teams.d.ts.map +1 -0
  379. package/resources/teams/teams.js +66 -0
  380. package/resources/teams/teams.js.map +1 -0
  381. package/resources/teams/teams.mjs +61 -0
  382. package/resources/teams/teams.mjs.map +1 -0
  383. package/resources/teams/watermark.d.mts +459 -0
  384. package/resources/teams/watermark.d.mts.map +1 -0
  385. package/resources/teams/watermark.d.ts +459 -0
  386. package/resources/teams/watermark.d.ts.map +1 -0
  387. package/resources/teams/watermark.js +46 -0
  388. package/resources/teams/watermark.js.map +1 -0
  389. package/resources/teams/watermark.mjs +42 -0
  390. package/resources/teams/watermark.mjs.map +1 -0
  391. package/resources/teams/webhook-endpoints/events.d.mts +87 -0
  392. package/resources/teams/webhook-endpoints/events.d.mts.map +1 -0
  393. package/resources/teams/webhook-endpoints/events.d.ts +87 -0
  394. package/resources/teams/webhook-endpoints/events.d.ts.map +1 -0
  395. package/resources/teams/webhook-endpoints/events.js +28 -0
  396. package/resources/teams/webhook-endpoints/events.js.map +1 -0
  397. package/resources/teams/webhook-endpoints/events.mjs +24 -0
  398. package/resources/teams/webhook-endpoints/events.mjs.map +1 -0
  399. package/resources/teams/webhook-endpoints/index.d.mts +3 -0
  400. package/resources/teams/webhook-endpoints/index.d.mts.map +1 -0
  401. package/resources/teams/webhook-endpoints/index.d.ts +3 -0
  402. package/resources/teams/webhook-endpoints/index.d.ts.map +1 -0
  403. package/resources/teams/webhook-endpoints/index.js +9 -0
  404. package/resources/teams/webhook-endpoints/index.js.map +1 -0
  405. package/resources/teams/webhook-endpoints/index.mjs +4 -0
  406. package/resources/teams/webhook-endpoints/index.mjs.map +1 -0
  407. package/resources/teams/webhook-endpoints/webhook-endpoints.d.mts +250 -0
  408. package/resources/teams/webhook-endpoints/webhook-endpoints.d.mts.map +1 -0
  409. package/resources/teams/webhook-endpoints/webhook-endpoints.d.ts +250 -0
  410. package/resources/teams/webhook-endpoints/webhook-endpoints.d.ts.map +1 -0
  411. package/resources/teams/webhook-endpoints/webhook-endpoints.js +45 -0
  412. package/resources/teams/webhook-endpoints/webhook-endpoints.js.map +1 -0
  413. package/resources/teams/webhook-endpoints/webhook-endpoints.mjs +40 -0
  414. package/resources/teams/webhook-endpoints/webhook-endpoints.mjs.map +1 -0
  415. package/resources/teams/webhook-endpoints.d.mts +2 -0
  416. package/resources/teams/webhook-endpoints.d.mts.map +1 -0
  417. package/resources/teams/webhook-endpoints.d.ts +2 -0
  418. package/resources/teams/webhook-endpoints.d.ts.map +1 -0
  419. package/resources/teams/webhook-endpoints.js +6 -0
  420. package/resources/teams/webhook-endpoints.js.map +1 -0
  421. package/resources/teams/webhook-endpoints.mjs +3 -0
  422. package/resources/teams/webhook-endpoints.mjs.map +1 -0
  423. package/resources/teams.d.mts +2 -0
  424. package/resources/teams.d.mts.map +1 -0
  425. package/resources/teams.d.ts +2 -0
  426. package/resources/teams.d.ts.map +1 -0
  427. package/resources/teams.js +6 -0
  428. package/resources/teams.js.map +1 -0
  429. package/resources/teams.mjs +3 -0
  430. package/resources/teams.mjs.map +1 -0
  431. package/resources/uploads.d.mts.map +1 -1
  432. package/resources/uploads.d.ts.map +1 -1
  433. package/resources/uploads.js +15 -3
  434. package/resources/uploads.js.map +1 -1
  435. package/resources/uploads.mjs +15 -3
  436. package/resources/uploads.mjs.map +1 -1
  437. package/resources/usages.d.mts +51 -24
  438. package/resources/usages.d.mts.map +1 -1
  439. package/resources/usages.d.ts +51 -24
  440. package/resources/usages.d.ts.map +1 -1
  441. package/resources/usages.js +2 -1
  442. package/resources/usages.js.map +1 -1
  443. package/resources/usages.mjs +2 -1
  444. package/resources/usages.mjs.map +1 -1
  445. package/resources/workflows.d.mts +1381 -280
  446. package/resources/workflows.d.mts.map +1 -1
  447. package/resources/workflows.d.ts +1381 -280
  448. package/resources/workflows.d.ts.map +1 -1
  449. package/resources/workflows.js +39 -8
  450. package/resources/workflows.js.map +1 -1
  451. package/resources/workflows.mjs +39 -8
  452. package/resources/workflows.mjs.map +1 -1
  453. package/src/client.ts +101 -0
  454. package/src/core/pagination.ts +144 -0
  455. package/src/internal/utils/values.ts +10 -0
  456. package/src/lib/generate.ts +7 -7
  457. package/src/lib/job.ts +9 -7
  458. package/src/lib/models.ts +8 -6
  459. package/src/lib/query.ts +42 -0
  460. package/src/lib/scenario.ts +8 -0
  461. package/src/lib/scope.ts +42 -7
  462. package/src/lib/upload.ts +10 -8
  463. package/src/lib/workflow.ts +9 -7
  464. package/src/lib/workflow_validator.ts +115 -0
  465. package/src/resources/assets/assets.ts +192 -33
  466. package/src/resources/assets/download.ts +43 -8
  467. package/src/resources/collections/assets.ts +3 -2
  468. package/src/resources/collections/collections.ts +20 -5
  469. package/src/resources/collections/models.ts +3 -2
  470. package/src/resources/generate.ts +2350 -186
  471. package/src/resources/index.ts +34 -0
  472. package/src/resources/jobs.ts +204 -74
  473. package/src/resources/models/description.ts +10 -2
  474. package/src/resources/models/examples.ts +140 -46
  475. package/src/resources/models/index.ts +25 -0
  476. package/src/resources/models/models.ts +326 -88
  477. package/src/resources/models/presets.ts +1335 -0
  478. package/src/resources/models/prompt-guide.ts +102 -0
  479. package/src/resources/models/scores.ts +383 -0
  480. package/src/resources/models/train.ts +121 -46
  481. package/src/resources/models/training-images.ts +5 -4
  482. package/src/resources/projects/api-keys.ts +86 -0
  483. package/src/resources/projects/brief.ts +197 -0
  484. package/src/resources/projects/index.ts +71 -0
  485. package/src/resources/projects/instructions.ts +134 -0
  486. package/src/resources/projects/members.ts +958 -0
  487. package/src/resources/projects/memory.ts +134 -0
  488. package/src/resources/projects/projects.ts +1478 -0
  489. package/src/resources/projects/watermark.ts +590 -0
  490. package/src/resources/projects/webhook-endpoints/events.ts +179 -0
  491. package/src/resources/projects/webhook-endpoints/index.ts +19 -0
  492. package/src/resources/projects/webhook-endpoints/webhook-endpoints.ts +452 -0
  493. package/src/resources/projects/webhook-endpoints.ts +3 -0
  494. package/src/resources/projects.ts +3 -0
  495. package/src/resources/recommendations.ts +1502 -0
  496. package/src/resources/search.ts +4 -3
  497. package/src/resources/tags.ts +5 -1
  498. package/src/resources/teams/brief.ts +193 -0
  499. package/src/resources/teams/index.ts +62 -0
  500. package/src/resources/teams/ip-filters.ts +177 -0
  501. package/src/resources/teams/members.ts +282 -0
  502. package/src/resources/teams/teams.ts +1255 -0
  503. package/src/resources/teams/watermark.ts +590 -0
  504. package/src/resources/teams/webhook-endpoints/events.ts +179 -0
  505. package/src/resources/teams/webhook-endpoints/index.ts +19 -0
  506. package/src/resources/teams/webhook-endpoints/webhook-endpoints.ts +453 -0
  507. package/src/resources/teams/webhook-endpoints.ts +3 -0
  508. package/src/resources/teams.ts +3 -0
  509. package/src/resources/uploads.ts +15 -3
  510. package/src/resources/usages.ts +58 -23
  511. package/src/resources/workflows.ts +1707 -241
  512. package/src/version.ts +1 -1
  513. package/version.d.mts +1 -1
  514. package/version.d.ts +1 -1
  515. package/version.js +1 -1
  516. package/version.mjs +1 -1
@@ -3,6 +3,12 @@ import * as DescriptionAPI from "./description.mjs";
3
3
  import { Description, DescriptionRetrieveParams, DescriptionRetrieveResponse, DescriptionUpdateParams, DescriptionUpdateResponse } from "./description.mjs";
4
4
  import * as ExamplesAPI from "./examples.mjs";
5
5
  import { ExampleListParams, ExampleListResponse, ExampleUpdateParams, ExampleUpdateResponse, Examples } from "./examples.mjs";
6
+ import * as PresetsAPI from "./presets.mjs";
7
+ import { PresetCreateParams, PresetCreateResponse, PresetDeleteParams, PresetDeleteResponse, PresetListParams, PresetListResponse, PresetUpdateParams, PresetUpdateResponse, Presets } from "./presets.mjs";
8
+ import * as PromptGuideAPI from "./prompt-guide.mjs";
9
+ import { PromptGuide, PromptGuideRetrieveParams, PromptGuideRetrieveResponse, PromptGuideUpdateParams, PromptGuideUpdateResponse } from "./prompt-guide.mjs";
10
+ import * as ScoresAPI from "./scores.mjs";
11
+ import { ScoreRetrievePromptParams, ScoreRetrievePromptResponse, ScoreRetrieveTrainingDatasetParams, ScoreRetrieveTrainingDatasetResponse, Scores } from "./scores.mjs";
6
12
  import * as TrainAPI from "./train.mjs";
7
13
  import { Train, TrainActionParams, TrainActionResponse, TrainTriggerParams, TrainTriggerResponse } from "./train.mjs";
8
14
  import * as TrainingImagesAPI from "./training-images.mjs";
@@ -13,6 +19,9 @@ import { RequestOptions } from "../../internal/request-options.mjs";
13
19
  export declare class Models extends APIResource {
14
20
  description: DescriptionAPI.Description;
15
21
  examples: ExamplesAPI.Examples;
22
+ presets: PresetsAPI.Presets;
23
+ promptGuide: PromptGuideAPI.PromptGuide;
24
+ scores: ScoresAPI.Scores;
16
25
  train: TrainAPI.Train;
17
26
  trainingImages: TrainingImagesAPI.TrainingImages;
18
27
  /**
@@ -128,8 +137,8 @@ export declare namespace ModelCreateResponse {
128
137
  */
129
138
  updatedAt: string;
130
139
  /**
131
- * The access restrictions of the model 0: Free plan 25: Creator plan 50: Pro plan
132
- * 75: Team plan 100: Enterprise plan
140
+ * The access restrictions of the model 0: Free plan 25: Starter plan 50: Pro plan
141
+ * 75: Max plan 100: Enterprise plan
133
142
  */
134
143
  accessRestrictions?: 0 | 100 | 25 | 50 | 75;
135
144
  /**
@@ -169,6 +178,11 @@ export declare namespace ModelCreateResponse {
169
178
  * it by modelId with GET /models/{modelId}
170
179
  */
171
180
  inputs?: Array<Model.Input>;
181
+ /**
182
+ * The ID of the job that trained the model, returned to the model owner only
183
+ * (example: "job_ocZCnG1Df35XRL1QyCZSRxAG8")
184
+ */
185
+ jobId?: string;
172
186
  /**
173
187
  * The model keyword, this is a legacy parameter, please use conceptPrompt in
174
188
  * parameters
@@ -461,8 +475,7 @@ export declare namespace ModelCreateResponse {
461
475
  * - \`ifNotDefined\`: Input is required when another specified input is not
462
476
  * defined
463
477
  * - \`ifDefined\`: Input is required when another specified input is defined
464
- * - \`conditionalValues\`: Input is required when another input has a specific
465
- * value
478
+ * - \`conditional\`: Input is required when other inputs have specific values
466
479
  *
467
480
  * By default, the input is not required.
468
481
  */
@@ -480,8 +493,7 @@ export declare namespace ModelCreateResponse {
480
493
  * - \`ifNotDefined\`: Input is required when another specified input is not
481
494
  * defined
482
495
  * - \`ifDefined\`: Input is required when another specified input is defined
483
- * - \`conditionalValues\`: Input is required when another input has a specific
484
- * value
496
+ * - \`conditional\`: Input is required when other inputs have specific values
485
497
  *
486
498
  * By default, the input is not required.
487
499
  */
@@ -491,12 +503,9 @@ export declare namespace ModelCreateResponse {
491
503
  */
492
504
  always?: boolean;
493
505
  /**
494
- * Makes this input required when another input has a specific value:
495
- *
496
- * - Key: name of the input to check
497
- * - Value: operation and allowed values that trigger the requirement
506
+ * Makes this input required when other inputs have one of the listed values
498
507
  */
499
- conditionalValues?: unknown;
508
+ conditional?: Required.Conditional;
500
509
  /**
501
510
  * Makes this input required when another input is defined:
502
511
  *
@@ -512,6 +521,24 @@ export declare namespace ModelCreateResponse {
512
521
  */
513
522
  ifNotDefined?: unknown;
514
523
  }
524
+ namespace Required {
525
+ /**
526
+ * Makes this input required when other inputs have one of the listed values
527
+ */
528
+ interface Conditional {
529
+ /**
530
+ * The conditions to check:
531
+ *
532
+ * - Key: name of the input to check
533
+ * - Value: values of that input that satisfy the condition
534
+ */
535
+ values: unknown;
536
+ /**
537
+ * How the conditions combine: \`and\` (all must match) or \`or\` (any must match)
538
+ */
539
+ operator?: 'and' | 'or';
540
+ }
541
+ }
515
542
  }
516
543
  /**
517
544
  * The parameters of the model
@@ -1156,8 +1183,8 @@ export declare namespace ModelRetrieveResponse {
1156
1183
  */
1157
1184
  updatedAt: string;
1158
1185
  /**
1159
- * The access restrictions of the model 0: Free plan 25: Creator plan 50: Pro plan
1160
- * 75: Team plan 100: Enterprise plan
1186
+ * The access restrictions of the model 0: Free plan 25: Starter plan 50: Pro plan
1187
+ * 75: Max plan 100: Enterprise plan
1161
1188
  */
1162
1189
  accessRestrictions?: 0 | 100 | 25 | 50 | 75;
1163
1190
  /**
@@ -1197,6 +1224,11 @@ export declare namespace ModelRetrieveResponse {
1197
1224
  * it by modelId with GET /models/{modelId}
1198
1225
  */
1199
1226
  inputs?: Array<Model.Input>;
1227
+ /**
1228
+ * The ID of the job that trained the model, returned to the model owner only
1229
+ * (example: "job_ocZCnG1Df35XRL1QyCZSRxAG8")
1230
+ */
1231
+ jobId?: string;
1200
1232
  /**
1201
1233
  * The model keyword, this is a legacy parameter, please use conceptPrompt in
1202
1234
  * parameters
@@ -1489,8 +1521,7 @@ export declare namespace ModelRetrieveResponse {
1489
1521
  * - \`ifNotDefined\`: Input is required when another specified input is not
1490
1522
  * defined
1491
1523
  * - \`ifDefined\`: Input is required when another specified input is defined
1492
- * - \`conditionalValues\`: Input is required when another input has a specific
1493
- * value
1524
+ * - \`conditional\`: Input is required when other inputs have specific values
1494
1525
  *
1495
1526
  * By default, the input is not required.
1496
1527
  */
@@ -1508,8 +1539,7 @@ export declare namespace ModelRetrieveResponse {
1508
1539
  * - \`ifNotDefined\`: Input is required when another specified input is not
1509
1540
  * defined
1510
1541
  * - \`ifDefined\`: Input is required when another specified input is defined
1511
- * - \`conditionalValues\`: Input is required when another input has a specific
1512
- * value
1542
+ * - \`conditional\`: Input is required when other inputs have specific values
1513
1543
  *
1514
1544
  * By default, the input is not required.
1515
1545
  */
@@ -1519,12 +1549,9 @@ export declare namespace ModelRetrieveResponse {
1519
1549
  */
1520
1550
  always?: boolean;
1521
1551
  /**
1522
- * Makes this input required when another input has a specific value:
1523
- *
1524
- * - Key: name of the input to check
1525
- * - Value: operation and allowed values that trigger the requirement
1552
+ * Makes this input required when other inputs have one of the listed values
1526
1553
  */
1527
- conditionalValues?: unknown;
1554
+ conditional?: Required.Conditional;
1528
1555
  /**
1529
1556
  * Makes this input required when another input is defined:
1530
1557
  *
@@ -1540,6 +1567,24 @@ export declare namespace ModelRetrieveResponse {
1540
1567
  */
1541
1568
  ifNotDefined?: unknown;
1542
1569
  }
1570
+ namespace Required {
1571
+ /**
1572
+ * Makes this input required when other inputs have one of the listed values
1573
+ */
1574
+ interface Conditional {
1575
+ /**
1576
+ * The conditions to check:
1577
+ *
1578
+ * - Key: name of the input to check
1579
+ * - Value: values of that input that satisfy the condition
1580
+ */
1581
+ values: unknown;
1582
+ /**
1583
+ * How the conditions combine: \`and\` (all must match) or \`or\` (any must match)
1584
+ */
1585
+ operator?: 'and' | 'or';
1586
+ }
1587
+ }
1543
1588
  }
1544
1589
  /**
1545
1590
  * The parameters of the model
@@ -2184,8 +2229,8 @@ export declare namespace ModelUpdateResponse {
2184
2229
  */
2185
2230
  updatedAt: string;
2186
2231
  /**
2187
- * The access restrictions of the model 0: Free plan 25: Creator plan 50: Pro plan
2188
- * 75: Team plan 100: Enterprise plan
2232
+ * The access restrictions of the model 0: Free plan 25: Starter plan 50: Pro plan
2233
+ * 75: Max plan 100: Enterprise plan
2189
2234
  */
2190
2235
  accessRestrictions?: 0 | 100 | 25 | 50 | 75;
2191
2236
  /**
@@ -2225,6 +2270,11 @@ export declare namespace ModelUpdateResponse {
2225
2270
  * it by modelId with GET /models/{modelId}
2226
2271
  */
2227
2272
  inputs?: Array<Model.Input>;
2273
+ /**
2274
+ * The ID of the job that trained the model, returned to the model owner only
2275
+ * (example: "job_ocZCnG1Df35XRL1QyCZSRxAG8")
2276
+ */
2277
+ jobId?: string;
2228
2278
  /**
2229
2279
  * The model keyword, this is a legacy parameter, please use conceptPrompt in
2230
2280
  * parameters
@@ -2517,8 +2567,7 @@ export declare namespace ModelUpdateResponse {
2517
2567
  * - \`ifNotDefined\`: Input is required when another specified input is not
2518
2568
  * defined
2519
2569
  * - \`ifDefined\`: Input is required when another specified input is defined
2520
- * - \`conditionalValues\`: Input is required when another input has a specific
2521
- * value
2570
+ * - \`conditional\`: Input is required when other inputs have specific values
2522
2571
  *
2523
2572
  * By default, the input is not required.
2524
2573
  */
@@ -2536,8 +2585,7 @@ export declare namespace ModelUpdateResponse {
2536
2585
  * - \`ifNotDefined\`: Input is required when another specified input is not
2537
2586
  * defined
2538
2587
  * - \`ifDefined\`: Input is required when another specified input is defined
2539
- * - \`conditionalValues\`: Input is required when another input has a specific
2540
- * value
2588
+ * - \`conditional\`: Input is required when other inputs have specific values
2541
2589
  *
2542
2590
  * By default, the input is not required.
2543
2591
  */
@@ -2547,12 +2595,9 @@ export declare namespace ModelUpdateResponse {
2547
2595
  */
2548
2596
  always?: boolean;
2549
2597
  /**
2550
- * Makes this input required when another input has a specific value:
2551
- *
2552
- * - Key: name of the input to check
2553
- * - Value: operation and allowed values that trigger the requirement
2598
+ * Makes this input required when other inputs have one of the listed values
2554
2599
  */
2555
- conditionalValues?: unknown;
2600
+ conditional?: Required.Conditional;
2556
2601
  /**
2557
2602
  * Makes this input required when another input is defined:
2558
2603
  *
@@ -2568,6 +2613,24 @@ export declare namespace ModelUpdateResponse {
2568
2613
  */
2569
2614
  ifNotDefined?: unknown;
2570
2615
  }
2616
+ namespace Required {
2617
+ /**
2618
+ * Makes this input required when other inputs have one of the listed values
2619
+ */
2620
+ interface Conditional {
2621
+ /**
2622
+ * The conditions to check:
2623
+ *
2624
+ * - Key: name of the input to check
2625
+ * - Value: values of that input that satisfy the condition
2626
+ */
2627
+ values: unknown;
2628
+ /**
2629
+ * How the conditions combine: \`and\` (all must match) or \`or\` (any must match)
2630
+ */
2631
+ operator?: 'and' | 'or';
2632
+ }
2633
+ }
2571
2634
  }
2572
2635
  /**
2573
2636
  * The parameters of the model
@@ -3208,8 +3271,8 @@ export interface ModelListResponse {
3208
3271
  */
3209
3272
  updatedAt: string;
3210
3273
  /**
3211
- * The access restrictions of the model 0: Free plan 25: Creator plan 50: Pro plan
3212
- * 75: Team plan 100: Enterprise plan
3274
+ * The access restrictions of the model 0: Free plan 25: Starter plan 50: Pro plan
3275
+ * 75: Max plan 100: Enterprise plan
3213
3276
  */
3214
3277
  accessRestrictions?: 0 | 100 | 25 | 50 | 75;
3215
3278
  /**
@@ -3249,6 +3312,11 @@ export interface ModelListResponse {
3249
3312
  * it by modelId with GET /models/{modelId}
3250
3313
  */
3251
3314
  inputs?: Array<ModelListResponse.Input>;
3315
+ /**
3316
+ * The ID of the job that trained the model, returned to the model owner only
3317
+ * (example: "job_ocZCnG1Df35XRL1QyCZSRxAG8")
3318
+ */
3319
+ jobId?: string;
3252
3320
  /**
3253
3321
  * The model keyword, this is a legacy parameter, please use conceptPrompt in
3254
3322
  * parameters
@@ -3541,8 +3609,7 @@ export declare namespace ModelListResponse {
3541
3609
  * - \`ifNotDefined\`: Input is required when another specified input is not
3542
3610
  * defined
3543
3611
  * - \`ifDefined\`: Input is required when another specified input is defined
3544
- * - \`conditionalValues\`: Input is required when another input has a specific
3545
- * value
3612
+ * - \`conditional\`: Input is required when other inputs have specific values
3546
3613
  *
3547
3614
  * By default, the input is not required.
3548
3615
  */
@@ -3560,8 +3627,7 @@ export declare namespace ModelListResponse {
3560
3627
  * - \`ifNotDefined\`: Input is required when another specified input is not
3561
3628
  * defined
3562
3629
  * - \`ifDefined\`: Input is required when another specified input is defined
3563
- * - \`conditionalValues\`: Input is required when another input has a specific
3564
- * value
3630
+ * - \`conditional\`: Input is required when other inputs have specific values
3565
3631
  *
3566
3632
  * By default, the input is not required.
3567
3633
  */
@@ -3571,12 +3637,9 @@ export declare namespace ModelListResponse {
3571
3637
  */
3572
3638
  always?: boolean;
3573
3639
  /**
3574
- * Makes this input required when another input has a specific value:
3575
- *
3576
- * - Key: name of the input to check
3577
- * - Value: operation and allowed values that trigger the requirement
3640
+ * Makes this input required when other inputs have one of the listed values
3578
3641
  */
3579
- conditionalValues?: unknown;
3642
+ conditional?: Required.Conditional;
3580
3643
  /**
3581
3644
  * Makes this input required when another input is defined:
3582
3645
  *
@@ -3592,6 +3655,24 @@ export declare namespace ModelListResponse {
3592
3655
  */
3593
3656
  ifNotDefined?: unknown;
3594
3657
  }
3658
+ namespace Required {
3659
+ /**
3660
+ * Makes this input required when other inputs have one of the listed values
3661
+ */
3662
+ interface Conditional {
3663
+ /**
3664
+ * The conditions to check:
3665
+ *
3666
+ * - Key: name of the input to check
3667
+ * - Value: values of that input that satisfy the condition
3668
+ */
3669
+ values: unknown;
3670
+ /**
3671
+ * How the conditions combine: \`and\` (all must match) or \`or\` (any must match)
3672
+ */
3673
+ operator?: 'and' | 'or';
3674
+ }
3675
+ }
3595
3676
  }
3596
3677
  /**
3597
3678
  * The parameters of the model
@@ -4236,8 +4317,8 @@ export declare namespace ModelCopyResponse {
4236
4317
  */
4237
4318
  updatedAt: string;
4238
4319
  /**
4239
- * The access restrictions of the model 0: Free plan 25: Creator plan 50: Pro plan
4240
- * 75: Team plan 100: Enterprise plan
4320
+ * The access restrictions of the model 0: Free plan 25: Starter plan 50: Pro plan
4321
+ * 75: Max plan 100: Enterprise plan
4241
4322
  */
4242
4323
  accessRestrictions?: 0 | 100 | 25 | 50 | 75;
4243
4324
  /**
@@ -4277,6 +4358,11 @@ export declare namespace ModelCopyResponse {
4277
4358
  * it by modelId with GET /models/{modelId}
4278
4359
  */
4279
4360
  inputs?: Array<Model.Input>;
4361
+ /**
4362
+ * The ID of the job that trained the model, returned to the model owner only
4363
+ * (example: "job_ocZCnG1Df35XRL1QyCZSRxAG8")
4364
+ */
4365
+ jobId?: string;
4280
4366
  /**
4281
4367
  * The model keyword, this is a legacy parameter, please use conceptPrompt in
4282
4368
  * parameters
@@ -4569,8 +4655,7 @@ export declare namespace ModelCopyResponse {
4569
4655
  * - \`ifNotDefined\`: Input is required when another specified input is not
4570
4656
  * defined
4571
4657
  * - \`ifDefined\`: Input is required when another specified input is defined
4572
- * - \`conditionalValues\`: Input is required when another input has a specific
4573
- * value
4658
+ * - \`conditional\`: Input is required when other inputs have specific values
4574
4659
  *
4575
4660
  * By default, the input is not required.
4576
4661
  */
@@ -4588,8 +4673,7 @@ export declare namespace ModelCopyResponse {
4588
4673
  * - \`ifNotDefined\`: Input is required when another specified input is not
4589
4674
  * defined
4590
4675
  * - \`ifDefined\`: Input is required when another specified input is defined
4591
- * - \`conditionalValues\`: Input is required when another input has a specific
4592
- * value
4676
+ * - \`conditional\`: Input is required when other inputs have specific values
4593
4677
  *
4594
4678
  * By default, the input is not required.
4595
4679
  */
@@ -4599,12 +4683,9 @@ export declare namespace ModelCopyResponse {
4599
4683
  */
4600
4684
  always?: boolean;
4601
4685
  /**
4602
- * Makes this input required when another input has a specific value:
4603
- *
4604
- * - Key: name of the input to check
4605
- * - Value: operation and allowed values that trigger the requirement
4686
+ * Makes this input required when other inputs have one of the listed values
4606
4687
  */
4607
- conditionalValues?: unknown;
4688
+ conditional?: Required.Conditional;
4608
4689
  /**
4609
4690
  * Makes this input required when another input is defined:
4610
4691
  *
@@ -4620,6 +4701,24 @@ export declare namespace ModelCopyResponse {
4620
4701
  */
4621
4702
  ifNotDefined?: unknown;
4622
4703
  }
4704
+ namespace Required {
4705
+ /**
4706
+ * Makes this input required when other inputs have one of the listed values
4707
+ */
4708
+ interface Conditional {
4709
+ /**
4710
+ * The conditions to check:
4711
+ *
4712
+ * - Key: name of the input to check
4713
+ * - Value: values of that input that satisfy the condition
4714
+ */
4715
+ values: unknown;
4716
+ /**
4717
+ * How the conditions combine: \`and\` (all must match) or \`or\` (any must match)
4718
+ */
4719
+ operator?: 'and' | 'or';
4720
+ }
4721
+ }
4623
4722
  }
4624
4723
  /**
4625
4724
  * The parameters of the model
@@ -5228,8 +5327,8 @@ export declare namespace ModelGetBulkResponse {
5228
5327
  */
5229
5328
  type: 'custom' | 'elevenlabs-voice' | 'flux.1' | 'flux.1-composition' | 'flux.1-kontext-dev' | 'flux.1-kontext-lora' | 'flux.1-krea-dev' | 'flux.1-krea-lora' | 'flux.1-lora' | 'flux.1-pro' | 'flux.1.1-pro-ultra' | 'flux.2-dev-edit-lora' | 'flux.2-dev-lora' | 'flux.2-klein-4b-edit-lora' | 'flux.2-klein-4b-lora' | 'flux.2-klein-9b-edit-lora' | 'flux.2-klein-9b-lora' | 'flux.2-klein-base-4b-edit-lora' | 'flux.2-klein-base-4b-lora' | 'flux.2-klein-base-9b-edit-lora' | 'flux.2-klein-base-9b-lora' | 'flux1.1-pro' | 'gpt-image-1' | 'qwen-image-2512-lora' | 'qwen-image-edit-2509-lora' | 'qwen-image-edit-2511-lora' | 'qwen-image-edit-lora' | 'qwen-image-lora' | 'zimage-de-turbo-lora' | 'zimage-lora' | 'zimage-turbo-lora';
5230
5329
  /**
5231
- * The access restrictions of the model 0: Free plan 25: Creator plan 50: Pro plan
5232
- * 75: Team plan 100: Enterprise plan
5330
+ * The access restrictions of the model 0: Free plan 25: Starter plan 50: Pro plan
5331
+ * 75: Max plan 100: Enterprise plan
5233
5332
  */
5234
5333
  accessRestrictions?: 0 | 100 | 25 | 50 | 75;
5235
5334
  /**
@@ -5291,6 +5390,11 @@ export declare namespace ModelGetBulkResponse {
5291
5390
  * it by modelId with GET /models/{modelId}
5292
5391
  */
5293
5392
  inputs?: Array<Model.Input>;
5393
+ /**
5394
+ * The ID of the job that trained the model, returned to the model owner only
5395
+ * (example: "job_ocZCnG1Df35XRL1QyCZSRxAG8")
5396
+ */
5397
+ jobId?: string;
5294
5398
  /**
5295
5399
  * The model keyword, this is a legacy parameter, please use conceptPrompt in
5296
5400
  * parameters
@@ -5604,8 +5708,7 @@ export declare namespace ModelGetBulkResponse {
5604
5708
  * - \`ifNotDefined\`: Input is required when another specified input is not
5605
5709
  * defined
5606
5710
  * - \`ifDefined\`: Input is required when another specified input is defined
5607
- * - \`conditionalValues\`: Input is required when another input has a specific
5608
- * value
5711
+ * - \`conditional\`: Input is required when other inputs have specific values
5609
5712
  *
5610
5713
  * By default, the input is not required.
5611
5714
  */
@@ -5623,8 +5726,7 @@ export declare namespace ModelGetBulkResponse {
5623
5726
  * - \`ifNotDefined\`: Input is required when another specified input is not
5624
5727
  * defined
5625
5728
  * - \`ifDefined\`: Input is required when another specified input is defined
5626
- * - \`conditionalValues\`: Input is required when another input has a specific
5627
- * value
5729
+ * - \`conditional\`: Input is required when other inputs have specific values
5628
5730
  *
5629
5731
  * By default, the input is not required.
5630
5732
  */
@@ -5634,12 +5736,9 @@ export declare namespace ModelGetBulkResponse {
5634
5736
  */
5635
5737
  always?: boolean;
5636
5738
  /**
5637
- * Makes this input required when another input has a specific value:
5638
- *
5639
- * - Key: name of the input to check
5640
- * - Value: operation and allowed values that trigger the requirement
5739
+ * Makes this input required when other inputs have one of the listed values
5641
5740
  */
5642
- conditionalValues?: unknown;
5741
+ conditional?: Required.Conditional;
5643
5742
  /**
5644
5743
  * Makes this input required when another input is defined:
5645
5744
  *
@@ -5655,6 +5754,24 @@ export declare namespace ModelGetBulkResponse {
5655
5754
  */
5656
5755
  ifNotDefined?: unknown;
5657
5756
  }
5757
+ namespace Required {
5758
+ /**
5759
+ * Makes this input required when other inputs have one of the listed values
5760
+ */
5761
+ interface Conditional {
5762
+ /**
5763
+ * The conditions to check:
5764
+ *
5765
+ * - Key: name of the input to check
5766
+ * - Value: values of that input that satisfy the condition
5767
+ */
5768
+ values: unknown;
5769
+ /**
5770
+ * How the conditions combine: \`and\` (all must match) or \`or\` (any must match)
5771
+ */
5772
+ operator?: 'and' | 'or';
5773
+ }
5774
+ }
5658
5775
  }
5659
5776
  /**
5660
5777
  * The parameters of the model
@@ -6299,8 +6416,8 @@ export declare namespace ModelTransferResponse {
6299
6416
  */
6300
6417
  updatedAt: string;
6301
6418
  /**
6302
- * The access restrictions of the model 0: Free plan 25: Creator plan 50: Pro plan
6303
- * 75: Team plan 100: Enterprise plan
6419
+ * The access restrictions of the model 0: Free plan 25: Starter plan 50: Pro plan
6420
+ * 75: Max plan 100: Enterprise plan
6304
6421
  */
6305
6422
  accessRestrictions?: 0 | 100 | 25 | 50 | 75;
6306
6423
  /**
@@ -6340,6 +6457,11 @@ export declare namespace ModelTransferResponse {
6340
6457
  * it by modelId with GET /models/{modelId}
6341
6458
  */
6342
6459
  inputs?: Array<Model.Input>;
6460
+ /**
6461
+ * The ID of the job that trained the model, returned to the model owner only
6462
+ * (example: "job_ocZCnG1Df35XRL1QyCZSRxAG8")
6463
+ */
6464
+ jobId?: string;
6343
6465
  /**
6344
6466
  * The model keyword, this is a legacy parameter, please use conceptPrompt in
6345
6467
  * parameters
@@ -6632,8 +6754,7 @@ export declare namespace ModelTransferResponse {
6632
6754
  * - \`ifNotDefined\`: Input is required when another specified input is not
6633
6755
  * defined
6634
6756
  * - \`ifDefined\`: Input is required when another specified input is defined
6635
- * - \`conditionalValues\`: Input is required when another input has a specific
6636
- * value
6757
+ * - \`conditional\`: Input is required when other inputs have specific values
6637
6758
  *
6638
6759
  * By default, the input is not required.
6639
6760
  */
@@ -6651,8 +6772,7 @@ export declare namespace ModelTransferResponse {
6651
6772
  * - \`ifNotDefined\`: Input is required when another specified input is not
6652
6773
  * defined
6653
6774
  * - \`ifDefined\`: Input is required when another specified input is defined
6654
- * - \`conditionalValues\`: Input is required when another input has a specific
6655
- * value
6775
+ * - \`conditional\`: Input is required when other inputs have specific values
6656
6776
  *
6657
6777
  * By default, the input is not required.
6658
6778
  */
@@ -6662,12 +6782,9 @@ export declare namespace ModelTransferResponse {
6662
6782
  */
6663
6783
  always?: boolean;
6664
6784
  /**
6665
- * Makes this input required when another input has a specific value:
6666
- *
6667
- * - Key: name of the input to check
6668
- * - Value: operation and allowed values that trigger the requirement
6785
+ * Makes this input required when other inputs have one of the listed values
6669
6786
  */
6670
- conditionalValues?: unknown;
6787
+ conditional?: Required.Conditional;
6671
6788
  /**
6672
6789
  * Makes this input required when another input is defined:
6673
6790
  *
@@ -6683,6 +6800,24 @@ export declare namespace ModelTransferResponse {
6683
6800
  */
6684
6801
  ifNotDefined?: unknown;
6685
6802
  }
6803
+ namespace Required {
6804
+ /**
6805
+ * Makes this input required when other inputs have one of the listed values
6806
+ */
6807
+ interface Conditional {
6808
+ /**
6809
+ * The conditions to check:
6810
+ *
6811
+ * - Key: name of the input to check
6812
+ * - Value: values of that input that satisfy the condition
6813
+ */
6814
+ values: unknown;
6815
+ /**
6816
+ * How the conditions combine: \`and\` (all must match) or \`or\` (any must match)
6817
+ */
6818
+ operator?: 'and' | 'or';
6819
+ }
6820
+ }
6686
6821
  }
6687
6822
  /**
6688
6823
  * The parameters of the model
@@ -7942,6 +8077,9 @@ export declare namespace Models {
7942
8077
  export { type ModelCreateResponse as ModelCreateResponse, type ModelRetrieveResponse as ModelRetrieveResponse, type ModelUpdateResponse as ModelUpdateResponse, type ModelListResponse as ModelListResponse, type ModelDeleteResponse as ModelDeleteResponse, type ModelCopyResponse as ModelCopyResponse, type ModelDeleteImagesResponse as ModelDeleteImagesResponse, type ModelDownloadResponse as ModelDownloadResponse, type ModelGetBulkResponse as ModelGetBulkResponse, type ModelTransferResponse as ModelTransferResponse, type ModelUpdateTagsResponse as ModelUpdateTagsResponse, type ModelListResponsesModelsCursor as ModelListResponsesModelsCursor, type ModelCreateParams as ModelCreateParams, type ModelRetrieveParams as ModelRetrieveParams, type ModelUpdateParams as ModelUpdateParams, type ModelListParams as ModelListParams, type ModelDeleteParams as ModelDeleteParams, type ModelCopyParams as ModelCopyParams, type ModelDeleteImagesParams as ModelDeleteImagesParams, type ModelDownloadParams as ModelDownloadParams, type ModelGetBulkParams as ModelGetBulkParams, type ModelTransferParams as ModelTransferParams, type ModelUpdateTagsParams as ModelUpdateTagsParams, };
7943
8078
  export { Description as Description, type DescriptionRetrieveResponse as DescriptionRetrieveResponse, type DescriptionUpdateResponse as DescriptionUpdateResponse, type DescriptionRetrieveParams as DescriptionRetrieveParams, type DescriptionUpdateParams as DescriptionUpdateParams, };
7944
8079
  export { Examples as Examples, type ExampleUpdateResponse as ExampleUpdateResponse, type ExampleListResponse as ExampleListResponse, type ExampleUpdateParams as ExampleUpdateParams, type ExampleListParams as ExampleListParams, };
8080
+ export { Presets as Presets, type PresetCreateResponse as PresetCreateResponse, type PresetUpdateResponse as PresetUpdateResponse, type PresetListResponse as PresetListResponse, type PresetDeleteResponse as PresetDeleteResponse, type PresetCreateParams as PresetCreateParams, type PresetUpdateParams as PresetUpdateParams, type PresetListParams as PresetListParams, type PresetDeleteParams as PresetDeleteParams, };
8081
+ export { PromptGuide as PromptGuide, type PromptGuideRetrieveResponse as PromptGuideRetrieveResponse, type PromptGuideUpdateResponse as PromptGuideUpdateResponse, type PromptGuideRetrieveParams as PromptGuideRetrieveParams, type PromptGuideUpdateParams as PromptGuideUpdateParams, };
8082
+ export { Scores as Scores, type ScoreRetrievePromptResponse as ScoreRetrievePromptResponse, type ScoreRetrieveTrainingDatasetResponse as ScoreRetrieveTrainingDatasetResponse, type ScoreRetrievePromptParams as ScoreRetrievePromptParams, type ScoreRetrieveTrainingDatasetParams as ScoreRetrieveTrainingDatasetParams, };
7945
8083
  export { Train as Train, type TrainActionResponse as TrainActionResponse, type TrainTriggerResponse as TrainTriggerResponse, type TrainActionParams as TrainActionParams, type TrainTriggerParams as TrainTriggerParams, };
7946
8084
  export { TrainingImages as TrainingImages, type TrainingImageDeleteResponse as TrainingImageDeleteResponse, type TrainingImageAddResponse as TrainingImageAddResponse, type TrainingImageReplaceResponse as TrainingImageReplaceResponse, type TrainingImageReplacePairsResponse as TrainingImageReplacePairsResponse, type TrainingImageDeleteParams as TrainingImageDeleteParams, type TrainingImageAddParams as TrainingImageAddParams, type TrainingImageReplaceParams as TrainingImageReplaceParams, type TrainingImageReplacePairsParams as TrainingImageReplacePairsParams, };
7947
8085
  }