@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
@@ -0,0 +1,1016 @@
1
+ import { APIResource } from "../../core/resource.mjs";
2
+ import { APIPromise } from "../../core/api-promise.mjs";
3
+ import { RequestOptions } from "../../internal/request-options.mjs";
4
+ export declare class Presets extends APIResource {
5
+ /**
6
+ * Create a new preset for the given `modelId`
7
+ */
8
+ create(modelID: string, params: PresetCreateParams, options?: RequestOptions): APIPromise<PresetCreateResponse>;
9
+ /**
10
+ * Modify the given `presetId`
11
+ */
12
+ update(presetID: string, params: PresetUpdateParams, options?: RequestOptions): APIPromise<PresetUpdateResponse>;
13
+ /**
14
+ * List all presets for the given `modelId`
15
+ */
16
+ list(modelID: string, query?: PresetListParams | null | undefined, options?: RequestOptions): APIPromise<PresetListResponse>;
17
+ /**
18
+ * Delete a preset for the given `modelId`
19
+ */
20
+ delete(presetID: string, params: PresetDeleteParams, options?: RequestOptions): APIPromise<unknown>;
21
+ }
22
+ export interface PresetCreateResponse {
23
+ preset: PresetCreateResponse.Preset;
24
+ }
25
+ export declare namespace PresetCreateResponse {
26
+ interface Preset {
27
+ /**
28
+ * The preset ID (example: "eyVcnFJcR92BxBkz7N6g5w")
29
+ */
30
+ id: string;
31
+ /**
32
+ * The author user ID (example: "VFhihHKMRZyDDnZAJwLb2Q")
33
+ */
34
+ authorId: string;
35
+ /**
36
+ * The preset creation date as an ISO string (example: "2023-02-03T11:19:41.579Z")
37
+ */
38
+ createdAt: string;
39
+ /**
40
+ * Whether the preset is the default preset of the model (example: true)
41
+ */
42
+ isDefault: boolean;
43
+ /**
44
+ * The model ID (example: "eyVcnFJcR92BxBkz7N6g5w")
45
+ */
46
+ modelId: string;
47
+ /**
48
+ * The owner ID (example: "VFhihHKMRZyDDnZAJwLb2Q")
49
+ */
50
+ ownerId: string;
51
+ /**
52
+ * The inference parameters
53
+ */
54
+ parameters: Preset.Parameters;
55
+ /**
56
+ * The preset last update date as an ISO string (example:
57
+ * "2023-02-03T11:19:41.579Z")
58
+ */
59
+ updatedAt: string;
60
+ }
61
+ namespace Preset {
62
+ /**
63
+ * The inference parameters
64
+ */
65
+ interface Parameters {
66
+ /**
67
+ * Full text prompt including the model placeholder. (example: "an illustration of
68
+ * phoenix in a fantasy world, flying over a mountain, 8k, bokeh effect")
69
+ */
70
+ prompt: string;
71
+ /**
72
+ * The type of inference to use. Example: txt2img, img2img, etc.
73
+ *
74
+ * Selecting the right type will condition the expected parameters.
75
+ *
76
+ * Note: for inpainting with models that support multiple base models, Scenario
77
+ * determines the best available `baseModel` for a given `modelId`.
78
+ */
79
+ type: 'controlnet' | 'controlnet_img2img' | 'controlnet_inpaint' | 'controlnet_inpaint_ip_adapter' | 'controlnet_ip_adapter' | 'controlnet_reference' | 'controlnet_texture' | 'img2img' | 'img2img_ip_adapter' | 'img2img_texture' | 'inpaint' | 'inpaint_ip_adapter' | 'outpaint' | 'reference' | 'reference_texture' | 'txt2img' | 'txt2img_ip_adapter' | 'txt2img_texture';
80
+ /**
81
+ * The aspect ratio of the generated images. Only used for the model
82
+ * flux.1.1-pro-ultra. The aspect ratio is a string formatted as "width:height"
83
+ * (example: "16:9").
84
+ */
85
+ aspectRatio?: '16:9' | '1:1' | '21:9' | '2:3' | '3:2' | '3:4' | '4:3' | '4:5' | '5:4' | '9:16' | '9:21';
86
+ /**
87
+ * The base model to use for the inference. Only Flux LoRA models can use this
88
+ * parameter. Allowed values are available in the model's attribute:
89
+ * `compliantModelIds`
90
+ */
91
+ baseModelId?: string;
92
+ concepts?: Array<Parameters.Concept>;
93
+ /**
94
+ * Specifies how long the ControlNet guidance should be applied during the
95
+ * inference process.
96
+ *
97
+ * Only available for Flux.1-dev based models.
98
+ *
99
+ * The value represents the percentage of total inference steps where the
100
+ * ControlNet guidance is active. For example:
101
+ *
102
+ * - 1.0: ControlNet guidance is applied during all inference steps
103
+ * - 0.5: ControlNet guidance is only applied during the first half of inference
104
+ * steps
105
+ *
106
+ * Default values:
107
+ *
108
+ * - 0.5 for Canny modality
109
+ * - 0.6 for all other modalities
110
+ */
111
+ controlEnd?: number;
112
+ /**
113
+ * Signed URL to display the controlnet input image
114
+ */
115
+ controlImage?: string;
116
+ /**
117
+ * Asset id of the controlnet input image
118
+ */
119
+ controlImageId?: string;
120
+ /**
121
+ * Specifies the starting point of the ControlNet guidance during the inference
122
+ * process.
123
+ *
124
+ * Only available for Flux.1-dev based models.
125
+ *
126
+ * The value represents the percentage of total inference steps where the
127
+ * ControlNet guidance starts. For example:
128
+ *
129
+ * - 0.0: ControlNet guidance starts at the beginning of the inference steps
130
+ * - 0.5: ControlNet guidance starts at the middle of the inference steps
131
+ */
132
+ controlStart?: number;
133
+ /**
134
+ * If set to true, the entire input image will likely change during inpainting.
135
+ * This results in faster inferences, but the output image will be harder to
136
+ * integrate if the input is just a small part of a larger image.
137
+ */
138
+ disableMerging?: boolean;
139
+ /**
140
+ * If false, the process uses the given image to detect the modality. If true
141
+ * (default), the process will not try to detect the modality of the given image.
142
+ *
143
+ * For example: with `pose` modality and `false` value, the process will detect the
144
+ * pose of people in the given image with `depth` modality and `false` value, the
145
+ * process will detect the depth of the given image with `scribble` modality and
146
+ * `true`value, the process will use the given image as a scribble
147
+ *
148
+ * ⚠️ For models of the FLUX schnell or dev families, this parameter is ignored.
149
+ * The modality detection is always disabled. ⚠️
150
+ */
151
+ disableModalityDetection?: boolean;
152
+ /**
153
+ * Controls how closely the generated image follows the prompt. Higher values
154
+ * result in stronger adherence to the prompt. Default and allowed values depend on
155
+ * the model type:
156
+ *
157
+ * - For Flux dev models, the default is 3.5 and allowed values are within [0, 10]
158
+ * - For Flux pro models, the default is 3 and allowed values are within [2, 5]
159
+ */
160
+ guidance?: number;
161
+ /**
162
+ * The height of the generated images, must be a 8 multiple (within [64, 2048],
163
+ * default: 512) If model.type is `flux.1.1-pro-ultra`, you can use the aspectRatio
164
+ * parameter instead
165
+ */
166
+ height?: number;
167
+ /**
168
+ * If set, generated assets will be hidden and not returned in the list of images
169
+ * of the inference or when listing assets (default: false)
170
+ */
171
+ hideResults?: boolean;
172
+ /**
173
+ * Signed URL to display the input image
174
+ */
175
+ image?: string;
176
+ /**
177
+ * Asset id of the input image
178
+ */
179
+ imageId?: string;
180
+ /**
181
+ * Enable or disable the intermediate images generation (default: false)
182
+ */
183
+ intermediateImages?: boolean;
184
+ /**
185
+ * Signed URL to display the IpAdapter image
186
+ */
187
+ ipAdapterImage?: string;
188
+ /**
189
+ * Asset id of the input IpAdapter image
190
+ */
191
+ ipAdapterImageId?: string;
192
+ /**
193
+ * Asset id of the input IpAdapter images
194
+ */
195
+ ipAdapterImageIds?: Array<string>;
196
+ /**
197
+ * Signed URL to display the IpAdapter images
198
+ */
199
+ ipAdapterImages?: Array<string>;
200
+ /**
201
+ * IpAdapter scale factor (within [0.0, 1.0], default: 0.9).
202
+ */
203
+ ipAdapterScale?: number;
204
+ /**
205
+ * IpAdapter scale factors (within [0.0, 1.0], default: 0.9).
206
+ */
207
+ ipAdapterScales?: Array<number>;
208
+ /**
209
+ * The type of IP Adapter model to use. Must be one of [`style`, `character`],
210
+ * default to `style``
211
+ */
212
+ ipAdapterType?: 'character' | 'style';
213
+ /**
214
+ * Signed URL to display the mask image
215
+ */
216
+ mask?: string;
217
+ /**
218
+ * Asset id of the mask image
219
+ */
220
+ maskId?: string;
221
+ /**
222
+ * The modality associated with the control image used for the generation: it can
223
+ * either be an object with a combination of maximum
224
+ *
225
+ * For models of the FLUX schnell or dev families:
226
+ *
227
+ * - one modality from: `canny`, `tile`, `depth`, `blur`, `pose`, `gray`,
228
+ * `low-quality`
229
+ *
230
+ * Optionally, you can associate a value to these modalities or presets. The value
231
+ * must be within `]0.0, 1.0]`.
232
+ *
233
+ * Examples:
234
+ *
235
+ * - `canny`
236
+ * - `depth:0.5,pose:1.0`
237
+ * - `canny:0.5,depth:0.5,lines:0.3`
238
+ * - `landscape`
239
+ * - `character:0.5`
240
+ * - `illusion:1`
241
+ *
242
+ * Note: if you use a value that is not supported by the model family, this will
243
+ * result in an error.
244
+ */
245
+ modality?: string;
246
+ /**
247
+ * The epoch of the model to use for the inference. Only available for Flux Lora
248
+ * Trained models.
249
+ */
250
+ modelEpoch?: string;
251
+ /**
252
+ * The prompt not to guide the image generation, ignored when guidance < 1
253
+ * (example: "((ugly face))") For Flux based model (not Fast-Flux): requires
254
+ * negativePromptStrength > 0 and active only for inference types txt2img / img2img
255
+ * / controlnet.
256
+ */
257
+ negativePrompt?: string;
258
+ /**
259
+ * Only applicable for flux-dev based models for `txt2img`, `img2img`, and
260
+ * `controlnet` inference types.
261
+ *
262
+ * Controls the influence of the negative prompt. Default 0 means the negative
263
+ * prompt has no effect. Higher values increase negative prompt influence. Must
264
+ * be > 0 if negativePrompt is provided.
265
+ */
266
+ negativePromptStrength?: number;
267
+ /**
268
+ * The number of denoising steps for each image generation (within [1, 150],
269
+ * default: 30)
270
+ */
271
+ numInferenceSteps?: number;
272
+ /**
273
+ * The number of images to generate (within [1, 128], default: 4)
274
+ */
275
+ numSamples?: number;
276
+ /**
277
+ * Whether to use reference adain Only for "reference" inference type
278
+ */
279
+ referenceAdain?: boolean;
280
+ /**
281
+ * Whether to use reference query for self attention's context Only for "reference"
282
+ * inference type
283
+ */
284
+ referenceAttn?: boolean;
285
+ /**
286
+ * The scheduler to use to override the default configured for the model. See
287
+ * detailed documentation for more details.
288
+ */
289
+ scheduler?: 'DDIMScheduler' | 'DDPMScheduler' | 'DEISMultistepScheduler' | 'DPMSolverMultistepScheduler' | 'DPMSolverSinglestepScheduler' | 'EulerAncestralDiscreteScheduler' | 'EulerDiscreteScheduler' | 'HeunDiscreteScheduler' | 'KDPM2AncestralDiscreteScheduler' | 'KDPM2DiscreteScheduler' | 'LCMScheduler' | 'LMSDiscreteScheduler' | 'PNDMScheduler' | 'TCDScheduler' | 'UniPCMultistepScheduler';
290
+ /**
291
+ * Used to reproduce previous results. Default: randomly generated number.
292
+ */
293
+ seed?: string;
294
+ /**
295
+ * Controls the noise intensity introduced to the input image, where a value of 1.0
296
+ * completely erases the original image's details. Available for img2img and
297
+ * inpainting. (within [0.01, 1.0], default: 0.75)
298
+ */
299
+ strength?: number;
300
+ /**
301
+ * If style_fidelity=1.0, control more important, else if style_fidelity=0.0,
302
+ * prompt more important, else balanced Only for "reference" inference type
303
+ */
304
+ styleFidelity?: number;
305
+ /**
306
+ * The width of the generated images, must be a 8 multiple (within [64, 2048],
307
+ * default: 512) If model.type is `flux.1.1-pro-ultra`, you can use the aspectRatio
308
+ * parameter instead
309
+ */
310
+ width?: number;
311
+ }
312
+ namespace Parameters {
313
+ interface Concept {
314
+ /**
315
+ * The model ID (example: "model_eyVcnFJcR92BxBkz7N6g5w")
316
+ */
317
+ modelId: string;
318
+ /**
319
+ * The scale of the model (example: 1.0) For Flux Kontext Prompt Editing, the scale
320
+ * is between 0 and 2.
321
+ */
322
+ scale: number;
323
+ /**
324
+ * The epoch of the model (example: "000001") Only available for Flux Lora Trained
325
+ * models
326
+ */
327
+ modelEpoch?: string;
328
+ }
329
+ }
330
+ }
331
+ }
332
+ export interface PresetUpdateResponse {
333
+ preset: PresetUpdateResponse.Preset;
334
+ }
335
+ export declare namespace PresetUpdateResponse {
336
+ interface Preset {
337
+ /**
338
+ * The preset ID (example: "eyVcnFJcR92BxBkz7N6g5w")
339
+ */
340
+ id: string;
341
+ /**
342
+ * The author user ID (example: "VFhihHKMRZyDDnZAJwLb2Q")
343
+ */
344
+ authorId: string;
345
+ /**
346
+ * The preset creation date as an ISO string (example: "2023-02-03T11:19:41.579Z")
347
+ */
348
+ createdAt: string;
349
+ /**
350
+ * Whether the preset is the default preset of the model (example: true)
351
+ */
352
+ isDefault: boolean;
353
+ /**
354
+ * The model ID (example: "eyVcnFJcR92BxBkz7N6g5w")
355
+ */
356
+ modelId: string;
357
+ /**
358
+ * The owner ID (example: "VFhihHKMRZyDDnZAJwLb2Q")
359
+ */
360
+ ownerId: string;
361
+ /**
362
+ * The inference parameters
363
+ */
364
+ parameters: Preset.Parameters;
365
+ /**
366
+ * The preset last update date as an ISO string (example:
367
+ * "2023-02-03T11:19:41.579Z")
368
+ */
369
+ updatedAt: string;
370
+ }
371
+ namespace Preset {
372
+ /**
373
+ * The inference parameters
374
+ */
375
+ interface Parameters {
376
+ /**
377
+ * Full text prompt including the model placeholder. (example: "an illustration of
378
+ * phoenix in a fantasy world, flying over a mountain, 8k, bokeh effect")
379
+ */
380
+ prompt: string;
381
+ /**
382
+ * The type of inference to use. Example: txt2img, img2img, etc.
383
+ *
384
+ * Selecting the right type will condition the expected parameters.
385
+ *
386
+ * Note: for inpainting with models that support multiple base models, Scenario
387
+ * determines the best available `baseModel` for a given `modelId`.
388
+ */
389
+ type: 'controlnet' | 'controlnet_img2img' | 'controlnet_inpaint' | 'controlnet_inpaint_ip_adapter' | 'controlnet_ip_adapter' | 'controlnet_reference' | 'controlnet_texture' | 'img2img' | 'img2img_ip_adapter' | 'img2img_texture' | 'inpaint' | 'inpaint_ip_adapter' | 'outpaint' | 'reference' | 'reference_texture' | 'txt2img' | 'txt2img_ip_adapter' | 'txt2img_texture';
390
+ /**
391
+ * The aspect ratio of the generated images. Only used for the model
392
+ * flux.1.1-pro-ultra. The aspect ratio is a string formatted as "width:height"
393
+ * (example: "16:9").
394
+ */
395
+ aspectRatio?: '16:9' | '1:1' | '21:9' | '2:3' | '3:2' | '3:4' | '4:3' | '4:5' | '5:4' | '9:16' | '9:21';
396
+ /**
397
+ * The base model to use for the inference. Only Flux LoRA models can use this
398
+ * parameter. Allowed values are available in the model's attribute:
399
+ * `compliantModelIds`
400
+ */
401
+ baseModelId?: string;
402
+ concepts?: Array<Parameters.Concept>;
403
+ /**
404
+ * Specifies how long the ControlNet guidance should be applied during the
405
+ * inference process.
406
+ *
407
+ * Only available for Flux.1-dev based models.
408
+ *
409
+ * The value represents the percentage of total inference steps where the
410
+ * ControlNet guidance is active. For example:
411
+ *
412
+ * - 1.0: ControlNet guidance is applied during all inference steps
413
+ * - 0.5: ControlNet guidance is only applied during the first half of inference
414
+ * steps
415
+ *
416
+ * Default values:
417
+ *
418
+ * - 0.5 for Canny modality
419
+ * - 0.6 for all other modalities
420
+ */
421
+ controlEnd?: number;
422
+ /**
423
+ * Signed URL to display the controlnet input image
424
+ */
425
+ controlImage?: string;
426
+ /**
427
+ * Asset id of the controlnet input image
428
+ */
429
+ controlImageId?: string;
430
+ /**
431
+ * Specifies the starting point of the ControlNet guidance during the inference
432
+ * process.
433
+ *
434
+ * Only available for Flux.1-dev based models.
435
+ *
436
+ * The value represents the percentage of total inference steps where the
437
+ * ControlNet guidance starts. For example:
438
+ *
439
+ * - 0.0: ControlNet guidance starts at the beginning of the inference steps
440
+ * - 0.5: ControlNet guidance starts at the middle of the inference steps
441
+ */
442
+ controlStart?: number;
443
+ /**
444
+ * If set to true, the entire input image will likely change during inpainting.
445
+ * This results in faster inferences, but the output image will be harder to
446
+ * integrate if the input is just a small part of a larger image.
447
+ */
448
+ disableMerging?: boolean;
449
+ /**
450
+ * If false, the process uses the given image to detect the modality. If true
451
+ * (default), the process will not try to detect the modality of the given image.
452
+ *
453
+ * For example: with `pose` modality and `false` value, the process will detect the
454
+ * pose of people in the given image with `depth` modality and `false` value, the
455
+ * process will detect the depth of the given image with `scribble` modality and
456
+ * `true`value, the process will use the given image as a scribble
457
+ *
458
+ * ⚠️ For models of the FLUX schnell or dev families, this parameter is ignored.
459
+ * The modality detection is always disabled. ⚠️
460
+ */
461
+ disableModalityDetection?: boolean;
462
+ /**
463
+ * Controls how closely the generated image follows the prompt. Higher values
464
+ * result in stronger adherence to the prompt. Default and allowed values depend on
465
+ * the model type:
466
+ *
467
+ * - For Flux dev models, the default is 3.5 and allowed values are within [0, 10]
468
+ * - For Flux pro models, the default is 3 and allowed values are within [2, 5]
469
+ */
470
+ guidance?: number;
471
+ /**
472
+ * The height of the generated images, must be a 8 multiple (within [64, 2048],
473
+ * default: 512) If model.type is `flux.1.1-pro-ultra`, you can use the aspectRatio
474
+ * parameter instead
475
+ */
476
+ height?: number;
477
+ /**
478
+ * If set, generated assets will be hidden and not returned in the list of images
479
+ * of the inference or when listing assets (default: false)
480
+ */
481
+ hideResults?: boolean;
482
+ /**
483
+ * Signed URL to display the input image
484
+ */
485
+ image?: string;
486
+ /**
487
+ * Asset id of the input image
488
+ */
489
+ imageId?: string;
490
+ /**
491
+ * Enable or disable the intermediate images generation (default: false)
492
+ */
493
+ intermediateImages?: boolean;
494
+ /**
495
+ * Signed URL to display the IpAdapter image
496
+ */
497
+ ipAdapterImage?: string;
498
+ /**
499
+ * Asset id of the input IpAdapter image
500
+ */
501
+ ipAdapterImageId?: string;
502
+ /**
503
+ * Asset id of the input IpAdapter images
504
+ */
505
+ ipAdapterImageIds?: Array<string>;
506
+ /**
507
+ * Signed URL to display the IpAdapter images
508
+ */
509
+ ipAdapterImages?: Array<string>;
510
+ /**
511
+ * IpAdapter scale factor (within [0.0, 1.0], default: 0.9).
512
+ */
513
+ ipAdapterScale?: number;
514
+ /**
515
+ * IpAdapter scale factors (within [0.0, 1.0], default: 0.9).
516
+ */
517
+ ipAdapterScales?: Array<number>;
518
+ /**
519
+ * The type of IP Adapter model to use. Must be one of [`style`, `character`],
520
+ * default to `style``
521
+ */
522
+ ipAdapterType?: 'character' | 'style';
523
+ /**
524
+ * Signed URL to display the mask image
525
+ */
526
+ mask?: string;
527
+ /**
528
+ * Asset id of the mask image
529
+ */
530
+ maskId?: string;
531
+ /**
532
+ * The modality associated with the control image used for the generation: it can
533
+ * either be an object with a combination of maximum
534
+ *
535
+ * For models of the FLUX schnell or dev families:
536
+ *
537
+ * - one modality from: `canny`, `tile`, `depth`, `blur`, `pose`, `gray`,
538
+ * `low-quality`
539
+ *
540
+ * Optionally, you can associate a value to these modalities or presets. The value
541
+ * must be within `]0.0, 1.0]`.
542
+ *
543
+ * Examples:
544
+ *
545
+ * - `canny`
546
+ * - `depth:0.5,pose:1.0`
547
+ * - `canny:0.5,depth:0.5,lines:0.3`
548
+ * - `landscape`
549
+ * - `character:0.5`
550
+ * - `illusion:1`
551
+ *
552
+ * Note: if you use a value that is not supported by the model family, this will
553
+ * result in an error.
554
+ */
555
+ modality?: string;
556
+ /**
557
+ * The epoch of the model to use for the inference. Only available for Flux Lora
558
+ * Trained models.
559
+ */
560
+ modelEpoch?: string;
561
+ /**
562
+ * The prompt not to guide the image generation, ignored when guidance < 1
563
+ * (example: "((ugly face))") For Flux based model (not Fast-Flux): requires
564
+ * negativePromptStrength > 0 and active only for inference types txt2img / img2img
565
+ * / controlnet.
566
+ */
567
+ negativePrompt?: string;
568
+ /**
569
+ * Only applicable for flux-dev based models for `txt2img`, `img2img`, and
570
+ * `controlnet` inference types.
571
+ *
572
+ * Controls the influence of the negative prompt. Default 0 means the negative
573
+ * prompt has no effect. Higher values increase negative prompt influence. Must
574
+ * be > 0 if negativePrompt is provided.
575
+ */
576
+ negativePromptStrength?: number;
577
+ /**
578
+ * The number of denoising steps for each image generation (within [1, 150],
579
+ * default: 30)
580
+ */
581
+ numInferenceSteps?: number;
582
+ /**
583
+ * The number of images to generate (within [1, 128], default: 4)
584
+ */
585
+ numSamples?: number;
586
+ /**
587
+ * Whether to use reference adain Only for "reference" inference type
588
+ */
589
+ referenceAdain?: boolean;
590
+ /**
591
+ * Whether to use reference query for self attention's context Only for "reference"
592
+ * inference type
593
+ */
594
+ referenceAttn?: boolean;
595
+ /**
596
+ * The scheduler to use to override the default configured for the model. See
597
+ * detailed documentation for more details.
598
+ */
599
+ scheduler?: 'DDIMScheduler' | 'DDPMScheduler' | 'DEISMultistepScheduler' | 'DPMSolverMultistepScheduler' | 'DPMSolverSinglestepScheduler' | 'EulerAncestralDiscreteScheduler' | 'EulerDiscreteScheduler' | 'HeunDiscreteScheduler' | 'KDPM2AncestralDiscreteScheduler' | 'KDPM2DiscreteScheduler' | 'LCMScheduler' | 'LMSDiscreteScheduler' | 'PNDMScheduler' | 'TCDScheduler' | 'UniPCMultistepScheduler';
600
+ /**
601
+ * Used to reproduce previous results. Default: randomly generated number.
602
+ */
603
+ seed?: string;
604
+ /**
605
+ * Controls the noise intensity introduced to the input image, where a value of 1.0
606
+ * completely erases the original image's details. Available for img2img and
607
+ * inpainting. (within [0.01, 1.0], default: 0.75)
608
+ */
609
+ strength?: number;
610
+ /**
611
+ * If style_fidelity=1.0, control more important, else if style_fidelity=0.0,
612
+ * prompt more important, else balanced Only for "reference" inference type
613
+ */
614
+ styleFidelity?: number;
615
+ /**
616
+ * The width of the generated images, must be a 8 multiple (within [64, 2048],
617
+ * default: 512) If model.type is `flux.1.1-pro-ultra`, you can use the aspectRatio
618
+ * parameter instead
619
+ */
620
+ width?: number;
621
+ }
622
+ namespace Parameters {
623
+ interface Concept {
624
+ /**
625
+ * The model ID (example: "model_eyVcnFJcR92BxBkz7N6g5w")
626
+ */
627
+ modelId: string;
628
+ /**
629
+ * The scale of the model (example: 1.0) For Flux Kontext Prompt Editing, the scale
630
+ * is between 0 and 2.
631
+ */
632
+ scale: number;
633
+ /**
634
+ * The epoch of the model (example: "000001") Only available for Flux Lora Trained
635
+ * models
636
+ */
637
+ modelEpoch?: string;
638
+ }
639
+ }
640
+ }
641
+ }
642
+ export interface PresetListResponse {
643
+ presets: Array<PresetListResponse.Preset>;
644
+ }
645
+ export declare namespace PresetListResponse {
646
+ interface Preset {
647
+ /**
648
+ * The preset ID (example: "eyVcnFJcR92BxBkz7N6g5w")
649
+ */
650
+ id: string;
651
+ /**
652
+ * The author user ID (example: "VFhihHKMRZyDDnZAJwLb2Q")
653
+ */
654
+ authorId: string;
655
+ /**
656
+ * The preset creation date as an ISO string (example: "2023-02-03T11:19:41.579Z")
657
+ */
658
+ createdAt: string;
659
+ /**
660
+ * Whether the preset is the default preset of the model (example: true)
661
+ */
662
+ isDefault: boolean;
663
+ /**
664
+ * The model ID (example: "eyVcnFJcR92BxBkz7N6g5w")
665
+ */
666
+ modelId: string;
667
+ /**
668
+ * The owner ID (example: "VFhihHKMRZyDDnZAJwLb2Q")
669
+ */
670
+ ownerId: string;
671
+ /**
672
+ * The inference parameters
673
+ */
674
+ parameters: Preset.Parameters;
675
+ /**
676
+ * The preset last update date as an ISO string (example:
677
+ * "2023-02-03T11:19:41.579Z")
678
+ */
679
+ updatedAt: string;
680
+ }
681
+ namespace Preset {
682
+ /**
683
+ * The inference parameters
684
+ */
685
+ interface Parameters {
686
+ /**
687
+ * Full text prompt including the model placeholder. (example: "an illustration of
688
+ * phoenix in a fantasy world, flying over a mountain, 8k, bokeh effect")
689
+ */
690
+ prompt: string;
691
+ /**
692
+ * The type of inference to use. Example: txt2img, img2img, etc.
693
+ *
694
+ * Selecting the right type will condition the expected parameters.
695
+ *
696
+ * Note: for inpainting with models that support multiple base models, Scenario
697
+ * determines the best available `baseModel` for a given `modelId`.
698
+ */
699
+ type: 'controlnet' | 'controlnet_img2img' | 'controlnet_inpaint' | 'controlnet_inpaint_ip_adapter' | 'controlnet_ip_adapter' | 'controlnet_reference' | 'controlnet_texture' | 'img2img' | 'img2img_ip_adapter' | 'img2img_texture' | 'inpaint' | 'inpaint_ip_adapter' | 'outpaint' | 'reference' | 'reference_texture' | 'txt2img' | 'txt2img_ip_adapter' | 'txt2img_texture';
700
+ /**
701
+ * The aspect ratio of the generated images. Only used for the model
702
+ * flux.1.1-pro-ultra. The aspect ratio is a string formatted as "width:height"
703
+ * (example: "16:9").
704
+ */
705
+ aspectRatio?: '16:9' | '1:1' | '21:9' | '2:3' | '3:2' | '3:4' | '4:3' | '4:5' | '5:4' | '9:16' | '9:21';
706
+ /**
707
+ * The base model to use for the inference. Only Flux LoRA models can use this
708
+ * parameter. Allowed values are available in the model's attribute:
709
+ * `compliantModelIds`
710
+ */
711
+ baseModelId?: string;
712
+ concepts?: Array<Parameters.Concept>;
713
+ /**
714
+ * Specifies how long the ControlNet guidance should be applied during the
715
+ * inference process.
716
+ *
717
+ * Only available for Flux.1-dev based models.
718
+ *
719
+ * The value represents the percentage of total inference steps where the
720
+ * ControlNet guidance is active. For example:
721
+ *
722
+ * - 1.0: ControlNet guidance is applied during all inference steps
723
+ * - 0.5: ControlNet guidance is only applied during the first half of inference
724
+ * steps
725
+ *
726
+ * Default values:
727
+ *
728
+ * - 0.5 for Canny modality
729
+ * - 0.6 for all other modalities
730
+ */
731
+ controlEnd?: number;
732
+ /**
733
+ * Signed URL to display the controlnet input image
734
+ */
735
+ controlImage?: string;
736
+ /**
737
+ * Asset id of the controlnet input image
738
+ */
739
+ controlImageId?: string;
740
+ /**
741
+ * Specifies the starting point of the ControlNet guidance during the inference
742
+ * process.
743
+ *
744
+ * Only available for Flux.1-dev based models.
745
+ *
746
+ * The value represents the percentage of total inference steps where the
747
+ * ControlNet guidance starts. For example:
748
+ *
749
+ * - 0.0: ControlNet guidance starts at the beginning of the inference steps
750
+ * - 0.5: ControlNet guidance starts at the middle of the inference steps
751
+ */
752
+ controlStart?: number;
753
+ /**
754
+ * If set to true, the entire input image will likely change during inpainting.
755
+ * This results in faster inferences, but the output image will be harder to
756
+ * integrate if the input is just a small part of a larger image.
757
+ */
758
+ disableMerging?: boolean;
759
+ /**
760
+ * If false, the process uses the given image to detect the modality. If true
761
+ * (default), the process will not try to detect the modality of the given image.
762
+ *
763
+ * For example: with `pose` modality and `false` value, the process will detect the
764
+ * pose of people in the given image with `depth` modality and `false` value, the
765
+ * process will detect the depth of the given image with `scribble` modality and
766
+ * `true`value, the process will use the given image as a scribble
767
+ *
768
+ * ⚠️ For models of the FLUX schnell or dev families, this parameter is ignored.
769
+ * The modality detection is always disabled. ⚠️
770
+ */
771
+ disableModalityDetection?: boolean;
772
+ /**
773
+ * Controls how closely the generated image follows the prompt. Higher values
774
+ * result in stronger adherence to the prompt. Default and allowed values depend on
775
+ * the model type:
776
+ *
777
+ * - For Flux dev models, the default is 3.5 and allowed values are within [0, 10]
778
+ * - For Flux pro models, the default is 3 and allowed values are within [2, 5]
779
+ */
780
+ guidance?: number;
781
+ /**
782
+ * The height of the generated images, must be a 8 multiple (within [64, 2048],
783
+ * default: 512) If model.type is `flux.1.1-pro-ultra`, you can use the aspectRatio
784
+ * parameter instead
785
+ */
786
+ height?: number;
787
+ /**
788
+ * If set, generated assets will be hidden and not returned in the list of images
789
+ * of the inference or when listing assets (default: false)
790
+ */
791
+ hideResults?: boolean;
792
+ /**
793
+ * Signed URL to display the input image
794
+ */
795
+ image?: string;
796
+ /**
797
+ * Asset id of the input image
798
+ */
799
+ imageId?: string;
800
+ /**
801
+ * Enable or disable the intermediate images generation (default: false)
802
+ */
803
+ intermediateImages?: boolean;
804
+ /**
805
+ * Signed URL to display the IpAdapter image
806
+ */
807
+ ipAdapterImage?: string;
808
+ /**
809
+ * Asset id of the input IpAdapter image
810
+ */
811
+ ipAdapterImageId?: string;
812
+ /**
813
+ * Asset id of the input IpAdapter images
814
+ */
815
+ ipAdapterImageIds?: Array<string>;
816
+ /**
817
+ * Signed URL to display the IpAdapter images
818
+ */
819
+ ipAdapterImages?: Array<string>;
820
+ /**
821
+ * IpAdapter scale factor (within [0.0, 1.0], default: 0.9).
822
+ */
823
+ ipAdapterScale?: number;
824
+ /**
825
+ * IpAdapter scale factors (within [0.0, 1.0], default: 0.9).
826
+ */
827
+ ipAdapterScales?: Array<number>;
828
+ /**
829
+ * The type of IP Adapter model to use. Must be one of [`style`, `character`],
830
+ * default to `style``
831
+ */
832
+ ipAdapterType?: 'character' | 'style';
833
+ /**
834
+ * Signed URL to display the mask image
835
+ */
836
+ mask?: string;
837
+ /**
838
+ * Asset id of the mask image
839
+ */
840
+ maskId?: string;
841
+ /**
842
+ * The modality associated with the control image used for the generation: it can
843
+ * either be an object with a combination of maximum
844
+ *
845
+ * For models of the FLUX schnell or dev families:
846
+ *
847
+ * - one modality from: `canny`, `tile`, `depth`, `blur`, `pose`, `gray`,
848
+ * `low-quality`
849
+ *
850
+ * Optionally, you can associate a value to these modalities or presets. The value
851
+ * must be within `]0.0, 1.0]`.
852
+ *
853
+ * Examples:
854
+ *
855
+ * - `canny`
856
+ * - `depth:0.5,pose:1.0`
857
+ * - `canny:0.5,depth:0.5,lines:0.3`
858
+ * - `landscape`
859
+ * - `character:0.5`
860
+ * - `illusion:1`
861
+ *
862
+ * Note: if you use a value that is not supported by the model family, this will
863
+ * result in an error.
864
+ */
865
+ modality?: string;
866
+ /**
867
+ * The epoch of the model to use for the inference. Only available for Flux Lora
868
+ * Trained models.
869
+ */
870
+ modelEpoch?: string;
871
+ /**
872
+ * The prompt not to guide the image generation, ignored when guidance < 1
873
+ * (example: "((ugly face))") For Flux based model (not Fast-Flux): requires
874
+ * negativePromptStrength > 0 and active only for inference types txt2img / img2img
875
+ * / controlnet.
876
+ */
877
+ negativePrompt?: string;
878
+ /**
879
+ * Only applicable for flux-dev based models for `txt2img`, `img2img`, and
880
+ * `controlnet` inference types.
881
+ *
882
+ * Controls the influence of the negative prompt. Default 0 means the negative
883
+ * prompt has no effect. Higher values increase negative prompt influence. Must
884
+ * be > 0 if negativePrompt is provided.
885
+ */
886
+ negativePromptStrength?: number;
887
+ /**
888
+ * The number of denoising steps for each image generation (within [1, 150],
889
+ * default: 30)
890
+ */
891
+ numInferenceSteps?: number;
892
+ /**
893
+ * The number of images to generate (within [1, 128], default: 4)
894
+ */
895
+ numSamples?: number;
896
+ /**
897
+ * Whether to use reference adain Only for "reference" inference type
898
+ */
899
+ referenceAdain?: boolean;
900
+ /**
901
+ * Whether to use reference query for self attention's context Only for "reference"
902
+ * inference type
903
+ */
904
+ referenceAttn?: boolean;
905
+ /**
906
+ * The scheduler to use to override the default configured for the model. See
907
+ * detailed documentation for more details.
908
+ */
909
+ scheduler?: 'DDIMScheduler' | 'DDPMScheduler' | 'DEISMultistepScheduler' | 'DPMSolverMultistepScheduler' | 'DPMSolverSinglestepScheduler' | 'EulerAncestralDiscreteScheduler' | 'EulerDiscreteScheduler' | 'HeunDiscreteScheduler' | 'KDPM2AncestralDiscreteScheduler' | 'KDPM2DiscreteScheduler' | 'LCMScheduler' | 'LMSDiscreteScheduler' | 'PNDMScheduler' | 'TCDScheduler' | 'UniPCMultistepScheduler';
910
+ /**
911
+ * Used to reproduce previous results. Default: randomly generated number.
912
+ */
913
+ seed?: string;
914
+ /**
915
+ * Controls the noise intensity introduced to the input image, where a value of 1.0
916
+ * completely erases the original image's details. Available for img2img and
917
+ * inpainting. (within [0.01, 1.0], default: 0.75)
918
+ */
919
+ strength?: number;
920
+ /**
921
+ * If style_fidelity=1.0, control more important, else if style_fidelity=0.0,
922
+ * prompt more important, else balanced Only for "reference" inference type
923
+ */
924
+ styleFidelity?: number;
925
+ /**
926
+ * The width of the generated images, must be a 8 multiple (within [64, 2048],
927
+ * default: 512) If model.type is `flux.1.1-pro-ultra`, you can use the aspectRatio
928
+ * parameter instead
929
+ */
930
+ width?: number;
931
+ }
932
+ namespace Parameters {
933
+ interface Concept {
934
+ /**
935
+ * The model ID (example: "model_eyVcnFJcR92BxBkz7N6g5w")
936
+ */
937
+ modelId: string;
938
+ /**
939
+ * The scale of the model (example: 1.0) For Flux Kontext Prompt Editing, the scale
940
+ * is between 0 and 2.
941
+ */
942
+ scale: number;
943
+ /**
944
+ * The epoch of the model (example: "000001") Only available for Flux Lora Trained
945
+ * models
946
+ */
947
+ modelEpoch?: string;
948
+ }
949
+ }
950
+ }
951
+ }
952
+ export type PresetDeleteResponse = unknown;
953
+ export interface PresetCreateParams {
954
+ /**
955
+ * Body param: The inference ID used to generate new images
956
+ */
957
+ inferenceId: string;
958
+ /**
959
+ * Query param: If set to true, returns the original asset without transformation
960
+ */
961
+ originalAssets?: boolean;
962
+ /**
963
+ * Query param: The projectId used for ownership resource management. Either to
964
+ * assert ownership or to set the owner of the resource(s)
965
+ */
966
+ projectId?: string;
967
+ /**
968
+ * Body param: Whether this preset should be the default preset for the model
969
+ */
970
+ isDefault?: boolean;
971
+ }
972
+ export interface PresetUpdateParams {
973
+ /**
974
+ * Path param: The preset's `modelId`
975
+ */
976
+ modelId: string;
977
+ /**
978
+ * Body param: Whether this preset should be the default preset for the model
979
+ */
980
+ isDefault: boolean;
981
+ /**
982
+ * Query param: If set to true, returns the original asset without transformation
983
+ */
984
+ originalAssets?: boolean;
985
+ /**
986
+ * Query param: The projectId used for ownership resource management. Either to
987
+ * assert ownership or to set the owner of the resource(s)
988
+ */
989
+ projectId?: string;
990
+ }
991
+ export interface PresetListParams {
992
+ /**
993
+ * If set to true, returns the original asset without transformation
994
+ */
995
+ originalAssets?: boolean;
996
+ /**
997
+ * The projectId used for ownership resource management. Either to assert ownership
998
+ * or to set the owner of the resource(s)
999
+ */
1000
+ projectId?: string;
1001
+ }
1002
+ export interface PresetDeleteParams {
1003
+ /**
1004
+ * Path param: The preset's `modelId` to delete
1005
+ */
1006
+ modelId: string;
1007
+ /**
1008
+ * Query param: The projectId used for ownership resource management. Either to
1009
+ * assert ownership or to set the owner of the resource(s)
1010
+ */
1011
+ projectId?: string;
1012
+ }
1013
+ export declare namespace Presets {
1014
+ export { 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, };
1015
+ }
1016
+ //# sourceMappingURL=presets.d.mts.map