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