@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
@@ -17,6 +17,34 @@ import {
17
17
  ExampleUpdateResponse,
18
18
  Examples,
19
19
  } from './examples';
20
+ import * as PresetsAPI from './presets';
21
+ import {
22
+ PresetCreateParams,
23
+ PresetCreateResponse,
24
+ PresetDeleteParams,
25
+ PresetDeleteResponse,
26
+ PresetListParams,
27
+ PresetListResponse,
28
+ PresetUpdateParams,
29
+ PresetUpdateResponse,
30
+ Presets,
31
+ } from './presets';
32
+ import * as PromptGuideAPI from './prompt-guide';
33
+ import {
34
+ PromptGuide,
35
+ PromptGuideRetrieveParams,
36
+ PromptGuideRetrieveResponse,
37
+ PromptGuideUpdateParams,
38
+ PromptGuideUpdateResponse,
39
+ } from './prompt-guide';
40
+ import * as ScoresAPI from './scores';
41
+ import {
42
+ ScoreRetrievePromptParams,
43
+ ScoreRetrievePromptResponse,
44
+ ScoreRetrieveTrainingDatasetParams,
45
+ ScoreRetrieveTrainingDatasetResponse,
46
+ Scores,
47
+ } from './scores';
20
48
  import * as TrainAPI from './train';
21
49
  import {
22
50
  Train,
@@ -41,10 +69,14 @@ import { APIPromise } from '../../core/api-promise';
41
69
  import { ModelsCursor, type ModelsCursorParams, PagePromise } from '../../core/pagination';
42
70
  import { RequestOptions } from '../../internal/request-options';
43
71
  import { path } from '../../internal/utils/path';
72
+ import { omitUndefined } from '../../internal/utils/values';
44
73
 
45
74
  export class Models extends APIResource {
46
75
  description: DescriptionAPI.Description = new DescriptionAPI.Description(this._client);
47
76
  examples: ExamplesAPI.Examples = new ExamplesAPI.Examples(this._client);
77
+ presets: PresetsAPI.Presets = new PresetsAPI.Presets(this._client);
78
+ promptGuide: PromptGuideAPI.PromptGuide = new PromptGuideAPI.PromptGuide(this._client);
79
+ scores: ScoresAPI.Scores = new ScoresAPI.Scores(this._client);
48
80
  train: TrainAPI.Train = new TrainAPI.Train(this._client);
49
81
  trainingImages: TrainingImagesAPI.TrainingImages = new TrainingImagesAPI.TrainingImages(this._client);
50
82
 
@@ -53,7 +85,11 @@ export class Models extends APIResource {
53
85
  */
54
86
  create(params: ModelCreateParams, options?: RequestOptions): APIPromise<ModelCreateResponse> {
55
87
  const { originalAssets, projectId, ...body } = params;
56
- return this._client.post('/models', { query: { originalAssets, projectId }, body, ...options });
88
+ return this._client.post('/models', {
89
+ body,
90
+ ...options,
91
+ query: { originalAssets, projectId, ...omitUndefined(options?.query) },
92
+ });
57
93
  }
58
94
 
59
95
  /**
@@ -67,7 +103,10 @@ export class Models extends APIResource {
67
103
  query: ModelRetrieveParams | null | undefined = {},
68
104
  options?: RequestOptions,
69
105
  ): APIPromise<ModelRetrieveResponse> {
70
- return this._client.get(path`/models/${modelID}`, { query, ...options });
106
+ return this._client.get(path`/models/${modelID}`, {
107
+ ...options,
108
+ query: { ...query, ...omitUndefined(options?.query) },
109
+ });
71
110
  }
72
111
 
73
112
  /**
@@ -80,9 +119,9 @@ export class Models extends APIResource {
80
119
  ): APIPromise<ModelUpdateResponse> {
81
120
  const { originalAssets, projectId, ...body } = params;
82
121
  return this._client.put(path`/models/${modelID}`, {
83
- query: { originalAssets, projectId },
84
122
  body,
85
123
  ...options,
124
+ query: { originalAssets, projectId, ...omitUndefined(options?.query) },
86
125
  });
87
126
  }
88
127
 
@@ -94,7 +133,10 @@ export class Models extends APIResource {
94
133
  query: ModelListParams | null | undefined = {},
95
134
  options?: RequestOptions,
96
135
  ): PagePromise<ModelListResponsesModelsCursor, ModelListResponse> {
97
- return this._client.getAPIList('/models', ModelsCursor<ModelListResponse>, { query, ...options });
136
+ return this._client.getAPIList('/models', ModelsCursor<ModelListResponse>, {
137
+ ...options,
138
+ query: { ...query, ...omitUndefined(options?.query) },
139
+ });
98
140
  }
99
141
 
100
142
  /**
@@ -106,7 +148,10 @@ export class Models extends APIResource {
106
148
  options?: RequestOptions,
107
149
  ): APIPromise<unknown> {
108
150
  const { projectId } = params ?? {};
109
- return this._client.delete(path`/models/${modelID}`, { query: { projectId }, ...options });
151
+ return this._client.delete(path`/models/${modelID}`, {
152
+ ...options,
153
+ query: { projectId, ...omitUndefined(options?.query) },
154
+ });
110
155
  }
111
156
 
112
157
  /**
@@ -116,9 +161,9 @@ export class Models extends APIResource {
116
161
  copy(modelID: string, params: ModelCopyParams, options?: RequestOptions): APIPromise<ModelCopyResponse> {
117
162
  const { originalAssets, projectId, ...body } = params;
118
163
  return this._client.post(path`/models/${modelID}/copy`, {
119
- query: { originalAssets, projectId },
120
164
  body,
121
165
  ...options,
166
+ query: { originalAssets, projectId, ...omitUndefined(options?.query) },
122
167
  });
123
168
  }
124
169
 
@@ -131,7 +176,10 @@ export class Models extends APIResource {
131
176
  options?: RequestOptions,
132
177
  ): APIPromise<unknown> {
133
178
  const { ids, projectId } = params;
134
- return this._client.delete(path`/models/${modelID}/images`, { query: { ids, projectId }, ...options });
179
+ return this._client.delete(path`/models/${modelID}/images`, {
180
+ ...options,
181
+ query: { ids, projectId, ...omitUndefined(options?.query) },
182
+ });
135
183
  }
136
184
 
137
185
  /**
@@ -144,9 +192,9 @@ export class Models extends APIResource {
144
192
  ): APIPromise<ModelDownloadResponse> {
145
193
  const { dryRun, projectId, ...body } = params;
146
194
  return this._client.post(path`/models/${modelID}/download`, {
147
- query: { dryRun, projectId },
148
195
  body,
149
196
  ...options,
197
+ query: { dryRun, projectId, ...omitUndefined(options?.query) },
150
198
  });
151
199
  }
152
200
 
@@ -155,7 +203,11 @@ export class Models extends APIResource {
155
203
  */
156
204
  getBulk(params: ModelGetBulkParams, options?: RequestOptions): APIPromise<ModelGetBulkResponse> {
157
205
  const { originalAssets, projectId, ...body } = params;
158
- return this._client.post('/models/get-bulk', { query: { originalAssets, projectId }, body, ...options });
206
+ return this._client.post('/models/get-bulk', {
207
+ body,
208
+ ...options,
209
+ query: { originalAssets, projectId, ...omitUndefined(options?.query) },
210
+ });
159
211
  }
160
212
 
161
213
  /**
@@ -168,7 +220,11 @@ export class Models extends APIResource {
168
220
  options?: RequestOptions,
169
221
  ): APIPromise<ModelTransferResponse> {
170
222
  const { projectId, ...body } = params;
171
- return this._client.post(path`/models/${modelID}/transfer`, { query: { projectId }, body, ...options });
223
+ return this._client.post(path`/models/${modelID}/transfer`, {
224
+ body,
225
+ ...options,
226
+ query: { projectId, ...omitUndefined(options?.query) },
227
+ });
172
228
  }
173
229
 
174
230
  /**
@@ -180,7 +236,11 @@ export class Models extends APIResource {
180
236
  options?: RequestOptions,
181
237
  ): APIPromise<ModelUpdateTagsResponse> {
182
238
  const { projectId, ...body } = params;
183
- return this._client.put(path`/models/${modelID}/tags`, { query: { projectId }, body, ...options });
239
+ return this._client.put(path`/models/${modelID}/tags`, {
240
+ body,
241
+ ...options,
242
+ query: { projectId, ...omitUndefined(options?.query) },
243
+ });
184
244
  }
185
245
  }
186
246
 
@@ -326,8 +386,8 @@ export namespace ModelCreateResponse {
326
386
  updatedAt: string;
327
387
 
328
388
  /**
329
- * The access restrictions of the model 0: Free plan 25: Creator plan 50: Pro plan
330
- * 75: Team plan 100: Enterprise plan
389
+ * The access restrictions of the model 0: Free plan 25: Starter plan 50: Pro plan
390
+ * 75: Max plan 100: Enterprise plan
331
391
  */
332
392
  accessRestrictions?: 0 | 100 | 25 | 50 | 75;
333
393
 
@@ -376,6 +436,12 @@ export namespace ModelCreateResponse {
376
436
  */
377
437
  inputs?: Array<Model.Input>;
378
438
 
439
+ /**
440
+ * The ID of the job that trained the model, returned to the model owner only
441
+ * (example: "job_ocZCnG1Df35XRL1QyCZSRxAG8")
442
+ */
443
+ jobId?: string;
444
+
379
445
  /**
380
446
  * The model keyword, this is a legacy parameter, please use conceptPrompt in
381
447
  * parameters
@@ -765,8 +831,7 @@ export namespace ModelCreateResponse {
765
831
  * - \`ifNotDefined\`: Input is required when another specified input is not
766
832
  * defined
767
833
  * - \`ifDefined\`: Input is required when another specified input is defined
768
- * - \`conditionalValues\`: Input is required when another input has a specific
769
- * value
834
+ * - \`conditional\`: Input is required when other inputs have specific values
770
835
  *
771
836
  * By default, the input is not required.
772
837
  */
@@ -786,8 +851,7 @@ export namespace ModelCreateResponse {
786
851
  * - \`ifNotDefined\`: Input is required when another specified input is not
787
852
  * defined
788
853
  * - \`ifDefined\`: Input is required when another specified input is defined
789
- * - \`conditionalValues\`: Input is required when another input has a specific
790
- * value
854
+ * - \`conditional\`: Input is required when other inputs have specific values
791
855
  *
792
856
  * By default, the input is not required.
793
857
  */
@@ -798,12 +862,9 @@ export namespace ModelCreateResponse {
798
862
  always?: boolean;
799
863
 
800
864
  /**
801
- * Makes this input required when another input has a specific value:
802
- *
803
- * - Key: name of the input to check
804
- * - Value: operation and allowed values that trigger the requirement
865
+ * Makes this input required when other inputs have one of the listed values
805
866
  */
806
- conditionalValues?: unknown;
867
+ conditional?: Required.Conditional;
807
868
 
808
869
  /**
809
870
  * Makes this input required when another input is defined:
@@ -821,6 +882,26 @@ export namespace ModelCreateResponse {
821
882
  */
822
883
  ifNotDefined?: unknown;
823
884
  }
885
+
886
+ export namespace Required {
887
+ /**
888
+ * Makes this input required when other inputs have one of the listed values
889
+ */
890
+ export interface Conditional {
891
+ /**
892
+ * The conditions to check:
893
+ *
894
+ * - Key: name of the input to check
895
+ * - Value: values of that input that satisfy the condition
896
+ */
897
+ values: unknown;
898
+
899
+ /**
900
+ * How the conditions combine: \`and\` (all must match) or \`or\` (any must match)
901
+ */
902
+ operator?: 'and' | 'or';
903
+ }
904
+ }
824
905
  }
825
906
 
826
907
  /**
@@ -1654,8 +1735,8 @@ export namespace ModelRetrieveResponse {
1654
1735
  updatedAt: string;
1655
1736
 
1656
1737
  /**
1657
- * The access restrictions of the model 0: Free plan 25: Creator plan 50: Pro plan
1658
- * 75: Team plan 100: Enterprise plan
1738
+ * The access restrictions of the model 0: Free plan 25: Starter plan 50: Pro plan
1739
+ * 75: Max plan 100: Enterprise plan
1659
1740
  */
1660
1741
  accessRestrictions?: 0 | 100 | 25 | 50 | 75;
1661
1742
 
@@ -1704,6 +1785,12 @@ export namespace ModelRetrieveResponse {
1704
1785
  */
1705
1786
  inputs?: Array<Model.Input>;
1706
1787
 
1788
+ /**
1789
+ * The ID of the job that trained the model, returned to the model owner only
1790
+ * (example: "job_ocZCnG1Df35XRL1QyCZSRxAG8")
1791
+ */
1792
+ jobId?: string;
1793
+
1707
1794
  /**
1708
1795
  * The model keyword, this is a legacy parameter, please use conceptPrompt in
1709
1796
  * parameters
@@ -2093,8 +2180,7 @@ export namespace ModelRetrieveResponse {
2093
2180
  * - \`ifNotDefined\`: Input is required when another specified input is not
2094
2181
  * defined
2095
2182
  * - \`ifDefined\`: Input is required when another specified input is defined
2096
- * - \`conditionalValues\`: Input is required when another input has a specific
2097
- * value
2183
+ * - \`conditional\`: Input is required when other inputs have specific values
2098
2184
  *
2099
2185
  * By default, the input is not required.
2100
2186
  */
@@ -2114,8 +2200,7 @@ export namespace ModelRetrieveResponse {
2114
2200
  * - \`ifNotDefined\`: Input is required when another specified input is not
2115
2201
  * defined
2116
2202
  * - \`ifDefined\`: Input is required when another specified input is defined
2117
- * - \`conditionalValues\`: Input is required when another input has a specific
2118
- * value
2203
+ * - \`conditional\`: Input is required when other inputs have specific values
2119
2204
  *
2120
2205
  * By default, the input is not required.
2121
2206
  */
@@ -2126,12 +2211,9 @@ export namespace ModelRetrieveResponse {
2126
2211
  always?: boolean;
2127
2212
 
2128
2213
  /**
2129
- * Makes this input required when another input has a specific value:
2130
- *
2131
- * - Key: name of the input to check
2132
- * - Value: operation and allowed values that trigger the requirement
2214
+ * Makes this input required when other inputs have one of the listed values
2133
2215
  */
2134
- conditionalValues?: unknown;
2216
+ conditional?: Required.Conditional;
2135
2217
 
2136
2218
  /**
2137
2219
  * Makes this input required when another input is defined:
@@ -2149,6 +2231,26 @@ export namespace ModelRetrieveResponse {
2149
2231
  */
2150
2232
  ifNotDefined?: unknown;
2151
2233
  }
2234
+
2235
+ export namespace Required {
2236
+ /**
2237
+ * Makes this input required when other inputs have one of the listed values
2238
+ */
2239
+ export interface Conditional {
2240
+ /**
2241
+ * The conditions to check:
2242
+ *
2243
+ * - Key: name of the input to check
2244
+ * - Value: values of that input that satisfy the condition
2245
+ */
2246
+ values: unknown;
2247
+
2248
+ /**
2249
+ * How the conditions combine: \`and\` (all must match) or \`or\` (any must match)
2250
+ */
2251
+ operator?: 'and' | 'or';
2252
+ }
2253
+ }
2152
2254
  }
2153
2255
 
2154
2256
  /**
@@ -2982,8 +3084,8 @@ export namespace ModelUpdateResponse {
2982
3084
  updatedAt: string;
2983
3085
 
2984
3086
  /**
2985
- * The access restrictions of the model 0: Free plan 25: Creator plan 50: Pro plan
2986
- * 75: Team plan 100: Enterprise plan
3087
+ * The access restrictions of the model 0: Free plan 25: Starter plan 50: Pro plan
3088
+ * 75: Max plan 100: Enterprise plan
2987
3089
  */
2988
3090
  accessRestrictions?: 0 | 100 | 25 | 50 | 75;
2989
3091
 
@@ -3032,6 +3134,12 @@ export namespace ModelUpdateResponse {
3032
3134
  */
3033
3135
  inputs?: Array<Model.Input>;
3034
3136
 
3137
+ /**
3138
+ * The ID of the job that trained the model, returned to the model owner only
3139
+ * (example: "job_ocZCnG1Df35XRL1QyCZSRxAG8")
3140
+ */
3141
+ jobId?: string;
3142
+
3035
3143
  /**
3036
3144
  * The model keyword, this is a legacy parameter, please use conceptPrompt in
3037
3145
  * parameters
@@ -3421,8 +3529,7 @@ export namespace ModelUpdateResponse {
3421
3529
  * - \`ifNotDefined\`: Input is required when another specified input is not
3422
3530
  * defined
3423
3531
  * - \`ifDefined\`: Input is required when another specified input is defined
3424
- * - \`conditionalValues\`: Input is required when another input has a specific
3425
- * value
3532
+ * - \`conditional\`: Input is required when other inputs have specific values
3426
3533
  *
3427
3534
  * By default, the input is not required.
3428
3535
  */
@@ -3442,8 +3549,7 @@ export namespace ModelUpdateResponse {
3442
3549
  * - \`ifNotDefined\`: Input is required when another specified input is not
3443
3550
  * defined
3444
3551
  * - \`ifDefined\`: Input is required when another specified input is defined
3445
- * - \`conditionalValues\`: Input is required when another input has a specific
3446
- * value
3552
+ * - \`conditional\`: Input is required when other inputs have specific values
3447
3553
  *
3448
3554
  * By default, the input is not required.
3449
3555
  */
@@ -3454,12 +3560,9 @@ export namespace ModelUpdateResponse {
3454
3560
  always?: boolean;
3455
3561
 
3456
3562
  /**
3457
- * Makes this input required when another input has a specific value:
3458
- *
3459
- * - Key: name of the input to check
3460
- * - Value: operation and allowed values that trigger the requirement
3563
+ * Makes this input required when other inputs have one of the listed values
3461
3564
  */
3462
- conditionalValues?: unknown;
3565
+ conditional?: Required.Conditional;
3463
3566
 
3464
3567
  /**
3465
3568
  * Makes this input required when another input is defined:
@@ -3477,6 +3580,26 @@ export namespace ModelUpdateResponse {
3477
3580
  */
3478
3581
  ifNotDefined?: unknown;
3479
3582
  }
3583
+
3584
+ export namespace Required {
3585
+ /**
3586
+ * Makes this input required when other inputs have one of the listed values
3587
+ */
3588
+ export interface Conditional {
3589
+ /**
3590
+ * The conditions to check:
3591
+ *
3592
+ * - Key: name of the input to check
3593
+ * - Value: values of that input that satisfy the condition
3594
+ */
3595
+ values: unknown;
3596
+
3597
+ /**
3598
+ * How the conditions combine: \`and\` (all must match) or \`or\` (any must match)
3599
+ */
3600
+ operator?: 'and' | 'or';
3601
+ }
3602
+ }
3480
3603
  }
3481
3604
 
3482
3605
  /**
@@ -4305,8 +4428,8 @@ export interface ModelListResponse {
4305
4428
  updatedAt: string;
4306
4429
 
4307
4430
  /**
4308
- * The access restrictions of the model 0: Free plan 25: Creator plan 50: Pro plan
4309
- * 75: Team plan 100: Enterprise plan
4431
+ * The access restrictions of the model 0: Free plan 25: Starter plan 50: Pro plan
4432
+ * 75: Max plan 100: Enterprise plan
4310
4433
  */
4311
4434
  accessRestrictions?: 0 | 100 | 25 | 50 | 75;
4312
4435
 
@@ -4355,6 +4478,12 @@ export interface ModelListResponse {
4355
4478
  */
4356
4479
  inputs?: Array<ModelListResponse.Input>;
4357
4480
 
4481
+ /**
4482
+ * The ID of the job that trained the model, returned to the model owner only
4483
+ * (example: "job_ocZCnG1Df35XRL1QyCZSRxAG8")
4484
+ */
4485
+ jobId?: string;
4486
+
4358
4487
  /**
4359
4488
  * The model keyword, this is a legacy parameter, please use conceptPrompt in
4360
4489
  * parameters
@@ -4744,8 +4873,7 @@ export namespace ModelListResponse {
4744
4873
  * - \`ifNotDefined\`: Input is required when another specified input is not
4745
4874
  * defined
4746
4875
  * - \`ifDefined\`: Input is required when another specified input is defined
4747
- * - \`conditionalValues\`: Input is required when another input has a specific
4748
- * value
4876
+ * - \`conditional\`: Input is required when other inputs have specific values
4749
4877
  *
4750
4878
  * By default, the input is not required.
4751
4879
  */
@@ -4765,8 +4893,7 @@ export namespace ModelListResponse {
4765
4893
  * - \`ifNotDefined\`: Input is required when another specified input is not
4766
4894
  * defined
4767
4895
  * - \`ifDefined\`: Input is required when another specified input is defined
4768
- * - \`conditionalValues\`: Input is required when another input has a specific
4769
- * value
4896
+ * - \`conditional\`: Input is required when other inputs have specific values
4770
4897
  *
4771
4898
  * By default, the input is not required.
4772
4899
  */
@@ -4777,12 +4904,9 @@ export namespace ModelListResponse {
4777
4904
  always?: boolean;
4778
4905
 
4779
4906
  /**
4780
- * Makes this input required when another input has a specific value:
4781
- *
4782
- * - Key: name of the input to check
4783
- * - Value: operation and allowed values that trigger the requirement
4907
+ * Makes this input required when other inputs have one of the listed values
4784
4908
  */
4785
- conditionalValues?: unknown;
4909
+ conditional?: Required.Conditional;
4786
4910
 
4787
4911
  /**
4788
4912
  * Makes this input required when another input is defined:
@@ -4800,6 +4924,26 @@ export namespace ModelListResponse {
4800
4924
  */
4801
4925
  ifNotDefined?: unknown;
4802
4926
  }
4927
+
4928
+ export namespace Required {
4929
+ /**
4930
+ * Makes this input required when other inputs have one of the listed values
4931
+ */
4932
+ export interface Conditional {
4933
+ /**
4934
+ * The conditions to check:
4935
+ *
4936
+ * - Key: name of the input to check
4937
+ * - Value: values of that input that satisfy the condition
4938
+ */
4939
+ values: unknown;
4940
+
4941
+ /**
4942
+ * How the conditions combine: \`and\` (all must match) or \`or\` (any must match)
4943
+ */
4944
+ operator?: 'and' | 'or';
4945
+ }
4946
+ }
4803
4947
  }
4804
4948
 
4805
4949
  /**
@@ -5634,8 +5778,8 @@ export namespace ModelCopyResponse {
5634
5778
  updatedAt: string;
5635
5779
 
5636
5780
  /**
5637
- * The access restrictions of the model 0: Free plan 25: Creator plan 50: Pro plan
5638
- * 75: Team plan 100: Enterprise plan
5781
+ * The access restrictions of the model 0: Free plan 25: Starter plan 50: Pro plan
5782
+ * 75: Max plan 100: Enterprise plan
5639
5783
  */
5640
5784
  accessRestrictions?: 0 | 100 | 25 | 50 | 75;
5641
5785
 
@@ -5684,6 +5828,12 @@ export namespace ModelCopyResponse {
5684
5828
  */
5685
5829
  inputs?: Array<Model.Input>;
5686
5830
 
5831
+ /**
5832
+ * The ID of the job that trained the model, returned to the model owner only
5833
+ * (example: "job_ocZCnG1Df35XRL1QyCZSRxAG8")
5834
+ */
5835
+ jobId?: string;
5836
+
5687
5837
  /**
5688
5838
  * The model keyword, this is a legacy parameter, please use conceptPrompt in
5689
5839
  * parameters
@@ -6073,8 +6223,7 @@ export namespace ModelCopyResponse {
6073
6223
  * - \`ifNotDefined\`: Input is required when another specified input is not
6074
6224
  * defined
6075
6225
  * - \`ifDefined\`: Input is required when another specified input is defined
6076
- * - \`conditionalValues\`: Input is required when another input has a specific
6077
- * value
6226
+ * - \`conditional\`: Input is required when other inputs have specific values
6078
6227
  *
6079
6228
  * By default, the input is not required.
6080
6229
  */
@@ -6094,8 +6243,7 @@ export namespace ModelCopyResponse {
6094
6243
  * - \`ifNotDefined\`: Input is required when another specified input is not
6095
6244
  * defined
6096
6245
  * - \`ifDefined\`: Input is required when another specified input is defined
6097
- * - \`conditionalValues\`: Input is required when another input has a specific
6098
- * value
6246
+ * - \`conditional\`: Input is required when other inputs have specific values
6099
6247
  *
6100
6248
  * By default, the input is not required.
6101
6249
  */
@@ -6106,12 +6254,9 @@ export namespace ModelCopyResponse {
6106
6254
  always?: boolean;
6107
6255
 
6108
6256
  /**
6109
- * Makes this input required when another input has a specific value:
6110
- *
6111
- * - Key: name of the input to check
6112
- * - Value: operation and allowed values that trigger the requirement
6257
+ * Makes this input required when other inputs have one of the listed values
6113
6258
  */
6114
- conditionalValues?: unknown;
6259
+ conditional?: Required.Conditional;
6115
6260
 
6116
6261
  /**
6117
6262
  * Makes this input required when another input is defined:
@@ -6129,6 +6274,26 @@ export namespace ModelCopyResponse {
6129
6274
  */
6130
6275
  ifNotDefined?: unknown;
6131
6276
  }
6277
+
6278
+ export namespace Required {
6279
+ /**
6280
+ * Makes this input required when other inputs have one of the listed values
6281
+ */
6282
+ export interface Conditional {
6283
+ /**
6284
+ * The conditions to check:
6285
+ *
6286
+ * - Key: name of the input to check
6287
+ * - Value: values of that input that satisfy the condition
6288
+ */
6289
+ values: unknown;
6290
+
6291
+ /**
6292
+ * How the conditions combine: \`and\` (all must match) or \`or\` (any must match)
6293
+ */
6294
+ operator?: 'and' | 'or';
6295
+ }
6296
+ }
6132
6297
  }
6133
6298
 
6134
6299
  /**
@@ -6884,8 +7049,8 @@ export namespace ModelGetBulkResponse {
6884
7049
  | 'zimage-turbo-lora';
6885
7050
 
6886
7051
  /**
6887
- * The access restrictions of the model 0: Free plan 25: Creator plan 50: Pro plan
6888
- * 75: Team plan 100: Enterprise plan
7052
+ * The access restrictions of the model 0: Free plan 25: Starter plan 50: Pro plan
7053
+ * 75: Max plan 100: Enterprise plan
6889
7054
  */
6890
7055
  accessRestrictions?: 0 | 100 | 25 | 50 | 75;
6891
7056
 
@@ -6995,6 +7160,12 @@ export namespace ModelGetBulkResponse {
6995
7160
  */
6996
7161
  inputs?: Array<Model.Input>;
6997
7162
 
7163
+ /**
7164
+ * The ID of the job that trained the model, returned to the model owner only
7165
+ * (example: "job_ocZCnG1Df35XRL1QyCZSRxAG8")
7166
+ */
7167
+ jobId?: string;
7168
+
6998
7169
  /**
6999
7170
  * The model keyword, this is a legacy parameter, please use conceptPrompt in
7000
7171
  * parameters
@@ -7410,8 +7581,7 @@ export namespace ModelGetBulkResponse {
7410
7581
  * - \`ifNotDefined\`: Input is required when another specified input is not
7411
7582
  * defined
7412
7583
  * - \`ifDefined\`: Input is required when another specified input is defined
7413
- * - \`conditionalValues\`: Input is required when another input has a specific
7414
- * value
7584
+ * - \`conditional\`: Input is required when other inputs have specific values
7415
7585
  *
7416
7586
  * By default, the input is not required.
7417
7587
  */
@@ -7431,8 +7601,7 @@ export namespace ModelGetBulkResponse {
7431
7601
  * - \`ifNotDefined\`: Input is required when another specified input is not
7432
7602
  * defined
7433
7603
  * - \`ifDefined\`: Input is required when another specified input is defined
7434
- * - \`conditionalValues\`: Input is required when another input has a specific
7435
- * value
7604
+ * - \`conditional\`: Input is required when other inputs have specific values
7436
7605
  *
7437
7606
  * By default, the input is not required.
7438
7607
  */
@@ -7443,12 +7612,9 @@ export namespace ModelGetBulkResponse {
7443
7612
  always?: boolean;
7444
7613
 
7445
7614
  /**
7446
- * Makes this input required when another input has a specific value:
7447
- *
7448
- * - Key: name of the input to check
7449
- * - Value: operation and allowed values that trigger the requirement
7615
+ * Makes this input required when other inputs have one of the listed values
7450
7616
  */
7451
- conditionalValues?: unknown;
7617
+ conditional?: Required.Conditional;
7452
7618
 
7453
7619
  /**
7454
7620
  * Makes this input required when another input is defined:
@@ -7466,6 +7632,26 @@ export namespace ModelGetBulkResponse {
7466
7632
  */
7467
7633
  ifNotDefined?: unknown;
7468
7634
  }
7635
+
7636
+ export namespace Required {
7637
+ /**
7638
+ * Makes this input required when other inputs have one of the listed values
7639
+ */
7640
+ export interface Conditional {
7641
+ /**
7642
+ * The conditions to check:
7643
+ *
7644
+ * - Key: name of the input to check
7645
+ * - Value: values of that input that satisfy the condition
7646
+ */
7647
+ values: unknown;
7648
+
7649
+ /**
7650
+ * How the conditions combine: \`and\` (all must match) or \`or\` (any must match)
7651
+ */
7652
+ operator?: 'and' | 'or';
7653
+ }
7654
+ }
7469
7655
  }
7470
7656
 
7471
7657
  /**
@@ -8299,8 +8485,8 @@ export namespace ModelTransferResponse {
8299
8485
  updatedAt: string;
8300
8486
 
8301
8487
  /**
8302
- * The access restrictions of the model 0: Free plan 25: Creator plan 50: Pro plan
8303
- * 75: Team plan 100: Enterprise plan
8488
+ * The access restrictions of the model 0: Free plan 25: Starter plan 50: Pro plan
8489
+ * 75: Max plan 100: Enterprise plan
8304
8490
  */
8305
8491
  accessRestrictions?: 0 | 100 | 25 | 50 | 75;
8306
8492
 
@@ -8349,6 +8535,12 @@ export namespace ModelTransferResponse {
8349
8535
  */
8350
8536
  inputs?: Array<Model.Input>;
8351
8537
 
8538
+ /**
8539
+ * The ID of the job that trained the model, returned to the model owner only
8540
+ * (example: "job_ocZCnG1Df35XRL1QyCZSRxAG8")
8541
+ */
8542
+ jobId?: string;
8543
+
8352
8544
  /**
8353
8545
  * The model keyword, this is a legacy parameter, please use conceptPrompt in
8354
8546
  * parameters
@@ -8738,8 +8930,7 @@ export namespace ModelTransferResponse {
8738
8930
  * - \`ifNotDefined\`: Input is required when another specified input is not
8739
8931
  * defined
8740
8932
  * - \`ifDefined\`: Input is required when another specified input is defined
8741
- * - \`conditionalValues\`: Input is required when another input has a specific
8742
- * value
8933
+ * - \`conditional\`: Input is required when other inputs have specific values
8743
8934
  *
8744
8935
  * By default, the input is not required.
8745
8936
  */
@@ -8759,8 +8950,7 @@ export namespace ModelTransferResponse {
8759
8950
  * - \`ifNotDefined\`: Input is required when another specified input is not
8760
8951
  * defined
8761
8952
  * - \`ifDefined\`: Input is required when another specified input is defined
8762
- * - \`conditionalValues\`: Input is required when another input has a specific
8763
- * value
8953
+ * - \`conditional\`: Input is required when other inputs have specific values
8764
8954
  *
8765
8955
  * By default, the input is not required.
8766
8956
  */
@@ -8771,12 +8961,9 @@ export namespace ModelTransferResponse {
8771
8961
  always?: boolean;
8772
8962
 
8773
8963
  /**
8774
- * Makes this input required when another input has a specific value:
8775
- *
8776
- * - Key: name of the input to check
8777
- * - Value: operation and allowed values that trigger the requirement
8964
+ * Makes this input required when other inputs have one of the listed values
8778
8965
  */
8779
- conditionalValues?: unknown;
8966
+ conditional?: Required.Conditional;
8780
8967
 
8781
8968
  /**
8782
8969
  * Makes this input required when another input is defined:
@@ -8794,6 +8981,26 @@ export namespace ModelTransferResponse {
8794
8981
  */
8795
8982
  ifNotDefined?: unknown;
8796
8983
  }
8984
+
8985
+ export namespace Required {
8986
+ /**
8987
+ * Makes this input required when other inputs have one of the listed values
8988
+ */
8989
+ export interface Conditional {
8990
+ /**
8991
+ * The conditions to check:
8992
+ *
8993
+ * - Key: name of the input to check
8994
+ * - Value: values of that input that satisfy the condition
8995
+ */
8996
+ values: unknown;
8997
+
8998
+ /**
8999
+ * How the conditions combine: \`and\` (all must match) or \`or\` (any must match)
9000
+ */
9001
+ operator?: 'and' | 'or';
9002
+ }
9003
+ }
8797
9004
  }
8798
9005
 
8799
9006
  /**
@@ -10398,6 +10605,9 @@ export interface ModelUpdateTagsParams {
10398
10605
 
10399
10606
  Models.Description = Description;
10400
10607
  Models.Examples = Examples;
10608
+ Models.Presets = Presets;
10609
+ Models.PromptGuide = PromptGuide;
10610
+ Models.Scores = Scores;
10401
10611
  Models.Train = Train;
10402
10612
  Models.TrainingImages = TrainingImages;
10403
10613
 
@@ -10444,6 +10654,34 @@ export declare namespace Models {
10444
10654
  type ExampleListParams as ExampleListParams,
10445
10655
  };
10446
10656
 
10657
+ export {
10658
+ Presets as Presets,
10659
+ type PresetCreateResponse as PresetCreateResponse,
10660
+ type PresetUpdateResponse as PresetUpdateResponse,
10661
+ type PresetListResponse as PresetListResponse,
10662
+ type PresetDeleteResponse as PresetDeleteResponse,
10663
+ type PresetCreateParams as PresetCreateParams,
10664
+ type PresetUpdateParams as PresetUpdateParams,
10665
+ type PresetListParams as PresetListParams,
10666
+ type PresetDeleteParams as PresetDeleteParams,
10667
+ };
10668
+
10669
+ export {
10670
+ PromptGuide as PromptGuide,
10671
+ type PromptGuideRetrieveResponse as PromptGuideRetrieveResponse,
10672
+ type PromptGuideUpdateResponse as PromptGuideUpdateResponse,
10673
+ type PromptGuideRetrieveParams as PromptGuideRetrieveParams,
10674
+ type PromptGuideUpdateParams as PromptGuideUpdateParams,
10675
+ };
10676
+
10677
+ export {
10678
+ Scores as Scores,
10679
+ type ScoreRetrievePromptResponse as ScoreRetrievePromptResponse,
10680
+ type ScoreRetrieveTrainingDatasetResponse as ScoreRetrieveTrainingDatasetResponse,
10681
+ type ScoreRetrievePromptParams as ScoreRetrievePromptParams,
10682
+ type ScoreRetrieveTrainingDatasetParams as ScoreRetrieveTrainingDatasetParams,
10683
+ };
10684
+
10447
10685
  export {
10448
10686
  Train as Train,
10449
10687
  type TrainActionResponse as TrainActionResponse,