@scenario-labs/sdk 3.1.0 → 3.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (529) hide show
  1. package/CHANGELOG.md +119 -0
  2. package/client.d.mts +22 -7
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts +22 -7
  5. package/client.d.ts.map +1 -1
  6. package/client.js +9 -0
  7. package/client.js.map +1 -1
  8. package/client.mjs +9 -0
  9. package/client.mjs.map +1 -1
  10. package/core/pagination.d.mts +42 -0
  11. package/core/pagination.d.mts.map +1 -1
  12. package/core/pagination.d.ts +42 -0
  13. package/core/pagination.d.ts.map +1 -1
  14. package/core/pagination.js +79 -1
  15. package/core/pagination.js.map +1 -1
  16. package/core/pagination.mjs +75 -0
  17. package/core/pagination.mjs.map +1 -1
  18. package/internal/utils/values.d.mts +6 -0
  19. package/internal/utils/values.d.mts.map +1 -1
  20. package/internal/utils/values.d.ts +6 -0
  21. package/internal/utils/values.d.ts.map +1 -1
  22. package/internal/utils/values.js +11 -0
  23. package/internal/utils/values.js.map +1 -1
  24. package/internal/utils/values.mjs +10 -0
  25. package/internal/utils/values.mjs.map +1 -1
  26. package/lib/generate.js +7 -7
  27. package/lib/generate.js.map +1 -1
  28. package/lib/generate.mjs +7 -7
  29. package/lib/generate.mjs.map +1 -1
  30. package/lib/job.d.mts +1 -1
  31. package/lib/job.d.mts.map +1 -1
  32. package/lib/job.d.ts +1 -1
  33. package/lib/job.d.ts.map +1 -1
  34. package/lib/job.js +5 -6
  35. package/lib/job.js.map +1 -1
  36. package/lib/job.mjs +6 -7
  37. package/lib/job.mjs.map +1 -1
  38. package/lib/models.d.mts.map +1 -1
  39. package/lib/models.d.ts.map +1 -1
  40. package/lib/models.js +7 -5
  41. package/lib/models.js.map +1 -1
  42. package/lib/models.mjs +8 -6
  43. package/lib/models.mjs.map +1 -1
  44. package/lib/query.d.mts +21 -0
  45. package/lib/query.d.mts.map +1 -0
  46. package/lib/query.d.ts +21 -0
  47. package/lib/query.d.ts.map +1 -0
  48. package/lib/query.js +36 -0
  49. package/lib/query.js.map +1 -0
  50. package/lib/query.mjs +33 -0
  51. package/lib/query.mjs.map +1 -0
  52. package/lib/scenario.d.mts +3 -0
  53. package/lib/scenario.d.mts.map +1 -1
  54. package/lib/scenario.d.ts +3 -0
  55. package/lib/scenario.d.ts.map +1 -1
  56. package/lib/scenario.js +6 -0
  57. package/lib/scenario.js.map +1 -1
  58. package/lib/scenario.mjs +6 -0
  59. package/lib/scenario.mjs.map +1 -1
  60. package/lib/scope.d.mts +27 -7
  61. package/lib/scope.d.mts.map +1 -1
  62. package/lib/scope.d.ts +27 -7
  63. package/lib/scope.d.ts.map +1 -1
  64. package/lib/scope.js +40 -7
  65. package/lib/scope.js.map +1 -1
  66. package/lib/scope.mjs +37 -7
  67. package/lib/scope.mjs.map +1 -1
  68. package/lib/upload.d.mts +1 -1
  69. package/lib/upload.d.mts.map +1 -1
  70. package/lib/upload.d.ts +1 -1
  71. package/lib/upload.d.ts.map +1 -1
  72. package/lib/upload.js +6 -7
  73. package/lib/upload.js.map +1 -1
  74. package/lib/upload.mjs +7 -8
  75. package/lib/upload.mjs.map +1 -1
  76. package/lib/workflow.d.mts.map +1 -1
  77. package/lib/workflow.d.ts.map +1 -1
  78. package/lib/workflow.js +8 -6
  79. package/lib/workflow.js.map +1 -1
  80. package/lib/workflow.mjs +9 -7
  81. package/lib/workflow.mjs.map +1 -1
  82. package/lib/workflow_converter.d.mts +6 -0
  83. package/lib/workflow_converter.d.mts.map +1 -1
  84. package/lib/workflow_converter.d.ts +6 -0
  85. package/lib/workflow_converter.d.ts.map +1 -1
  86. package/lib/workflow_converter.js +99 -12
  87. package/lib/workflow_converter.js.map +1 -1
  88. package/lib/workflow_converter.mjs +99 -12
  89. package/lib/workflow_converter.mjs.map +1 -1
  90. package/lib/workflow_validator.d.mts +8 -1
  91. package/lib/workflow_validator.d.mts.map +1 -1
  92. package/lib/workflow_validator.d.ts +8 -1
  93. package/lib/workflow_validator.d.ts.map +1 -1
  94. package/lib/workflow_validator.js +154 -1
  95. package/lib/workflow_validator.js.map +1 -1
  96. package/lib/workflow_validator.mjs +154 -1
  97. package/lib/workflow_validator.mjs.map +1 -1
  98. package/package.json +1 -1
  99. package/resources/assets/assets.d.mts +304 -122
  100. package/resources/assets/assets.d.mts.map +1 -1
  101. package/resources/assets/assets.d.ts +304 -122
  102. package/resources/assets/assets.d.ts.map +1 -1
  103. package/resources/assets/assets.js +34 -11
  104. package/resources/assets/assets.js.map +1 -1
  105. package/resources/assets/assets.mjs +34 -11
  106. package/resources/assets/assets.mjs.map +1 -1
  107. package/resources/assets/download.d.mts +39 -5
  108. package/resources/assets/download.d.mts.map +1 -1
  109. package/resources/assets/download.d.ts +39 -5
  110. package/resources/assets/download.d.ts.map +1 -1
  111. package/resources/assets/download.js +16 -4
  112. package/resources/assets/download.js.map +1 -1
  113. package/resources/assets/download.mjs +16 -4
  114. package/resources/assets/download.mjs.map +1 -1
  115. package/resources/collections/assets.d.mts.map +1 -1
  116. package/resources/collections/assets.d.ts.map +1 -1
  117. package/resources/collections/assets.js +3 -2
  118. package/resources/collections/assets.js.map +1 -1
  119. package/resources/collections/assets.mjs +3 -2
  120. package/resources/collections/assets.mjs.map +1 -1
  121. package/resources/collections/collections.d.mts.map +1 -1
  122. package/resources/collections/collections.d.ts.map +1 -1
  123. package/resources/collections/collections.js +20 -5
  124. package/resources/collections/collections.js.map +1 -1
  125. package/resources/collections/collections.mjs +20 -5
  126. package/resources/collections/collections.mjs.map +1 -1
  127. package/resources/collections/models.d.mts.map +1 -1
  128. package/resources/collections/models.d.ts.map +1 -1
  129. package/resources/collections/models.js +3 -2
  130. package/resources/collections/models.js.map +1 -1
  131. package/resources/collections/models.mjs +3 -2
  132. package/resources/collections/models.mjs.map +1 -1
  133. package/resources/generate.d.mts +2089 -437
  134. package/resources/generate.d.mts.map +1 -1
  135. package/resources/generate.d.ts +2089 -437
  136. package/resources/generate.d.ts.map +1 -1
  137. package/resources/generate.js +62 -9
  138. package/resources/generate.js.map +1 -1
  139. package/resources/generate.mjs +62 -9
  140. package/resources/generate.mjs.map +1 -1
  141. package/resources/index.d.mts +6 -3
  142. package/resources/index.d.mts.map +1 -1
  143. package/resources/index.d.ts +6 -3
  144. package/resources/index.d.ts.map +1 -1
  145. package/resources/index.js +7 -1
  146. package/resources/index.js.map +1 -1
  147. package/resources/index.mjs +3 -0
  148. package/resources/index.mjs.map +1 -1
  149. package/resources/jobs.d.mts +253 -120
  150. package/resources/jobs.d.mts.map +1 -1
  151. package/resources/jobs.d.ts +253 -120
  152. package/resources/jobs.d.ts.map +1 -1
  153. package/resources/jobs.js +13 -5
  154. package/resources/jobs.js.map +1 -1
  155. package/resources/jobs.mjs +13 -5
  156. package/resources/jobs.mjs.map +1 -1
  157. package/resources/models/description.d.mts +18 -0
  158. package/resources/models/description.d.mts.map +1 -1
  159. package/resources/models/description.d.ts +18 -0
  160. package/resources/models/description.d.ts.map +1 -1
  161. package/resources/models/description.js +6 -2
  162. package/resources/models/description.js.map +1 -1
  163. package/resources/models/description.mjs +6 -2
  164. package/resources/models/description.mjs.map +1 -1
  165. package/resources/models/examples.d.mts +198 -92
  166. package/resources/models/examples.d.mts.map +1 -1
  167. package/resources/models/examples.d.ts +198 -92
  168. package/resources/models/examples.d.ts.map +1 -1
  169. package/resources/models/examples.js +6 -2
  170. package/resources/models/examples.js.map +1 -1
  171. package/resources/models/examples.mjs +6 -2
  172. package/resources/models/examples.mjs.map +1 -1
  173. package/resources/models/index.d.mts +3 -0
  174. package/resources/models/index.d.mts.map +1 -1
  175. package/resources/models/index.d.ts +3 -0
  176. package/resources/models/index.d.ts.map +1 -1
  177. package/resources/models/index.js +7 -1
  178. package/resources/models/index.js.map +1 -1
  179. package/resources/models/index.mjs +3 -0
  180. package/resources/models/index.mjs.map +1 -1
  181. package/resources/models/models.d.mts +346 -112
  182. package/resources/models/models.d.mts.map +1 -1
  183. package/resources/models/models.d.ts +346 -112
  184. package/resources/models/models.d.ts.map +1 -1
  185. package/resources/models/models.js +57 -12
  186. package/resources/models/models.js.map +1 -1
  187. package/resources/models/models.mjs +57 -12
  188. package/resources/models/models.mjs.map +1 -1
  189. package/resources/models/presets.d.mts +1016 -0
  190. package/resources/models/presets.d.mts.map +1 -0
  191. package/resources/models/presets.d.ts +1016 -0
  192. package/resources/models/presets.d.ts.map +1 -0
  193. package/resources/models/presets.js +52 -0
  194. package/resources/models/presets.js.map +1 -0
  195. package/resources/models/presets.mjs +48 -0
  196. package/resources/models/presets.mjs.map +1 -0
  197. package/resources/models/prompt-guide.d.mts +64 -0
  198. package/resources/models/prompt-guide.d.mts.map +1 -0
  199. package/resources/models/prompt-guide.d.ts +64 -0
  200. package/resources/models/prompt-guide.d.ts.map +1 -0
  201. package/resources/models/prompt-guide.js +31 -0
  202. package/resources/models/prompt-guide.js.map +1 -0
  203. package/resources/models/prompt-guide.mjs +27 -0
  204. package/resources/models/prompt-guide.mjs.map +1 -0
  205. package/resources/models/scores.d.mts +278 -0
  206. package/resources/models/scores.d.mts.map +1 -0
  207. package/resources/models/scores.d.ts +278 -0
  208. package/resources/models/scores.d.ts.map +1 -0
  209. package/resources/models/scores.js +29 -0
  210. package/resources/models/scores.js.map +1 -0
  211. package/resources/models/scores.mjs +25 -0
  212. package/resources/models/scores.mjs.map +1 -0
  213. package/resources/models/train.d.mts +186 -83
  214. package/resources/models/train.d.mts.map +1 -1
  215. package/resources/models/train.d.ts +186 -83
  216. package/resources/models/train.d.ts.map +1 -1
  217. package/resources/models/train.js +4 -3
  218. package/resources/models/train.js.map +1 -1
  219. package/resources/models/train.mjs +4 -3
  220. package/resources/models/train.mjs.map +1 -1
  221. package/resources/models/training-images.d.mts.map +1 -1
  222. package/resources/models/training-images.d.ts.map +1 -1
  223. package/resources/models/training-images.js +5 -4
  224. package/resources/models/training-images.js.map +1 -1
  225. package/resources/models/training-images.mjs +5 -4
  226. package/resources/models/training-images.mjs.map +1 -1
  227. package/resources/projects/api-keys.d.mts +54 -0
  228. package/resources/projects/api-keys.d.mts.map +1 -0
  229. package/resources/projects/api-keys.d.ts +54 -0
  230. package/resources/projects/api-keys.d.ts.map +1 -0
  231. package/resources/projects/api-keys.js +23 -0
  232. package/resources/projects/api-keys.js.map +1 -0
  233. package/resources/projects/api-keys.mjs +19 -0
  234. package/resources/projects/api-keys.mjs.map +1 -0
  235. package/resources/projects/brief.d.mts +149 -0
  236. package/resources/projects/brief.d.mts.map +1 -0
  237. package/resources/projects/brief.d.ts +149 -0
  238. package/resources/projects/brief.d.ts.map +1 -0
  239. package/resources/projects/brief.js +28 -0
  240. package/resources/projects/brief.js.map +1 -0
  241. package/resources/projects/brief.mjs +24 -0
  242. package/resources/projects/brief.mjs.map +1 -0
  243. package/resources/projects/index.d.mts +9 -0
  244. package/resources/projects/index.d.mts.map +1 -0
  245. package/resources/projects/index.d.ts +9 -0
  246. package/resources/projects/index.d.ts.map +1 -0
  247. package/resources/projects/index.js +21 -0
  248. package/resources/projects/index.js.map +1 -0
  249. package/resources/projects/index.mjs +10 -0
  250. package/resources/projects/index.mjs.map +1 -0
  251. package/resources/projects/instructions.d.mts +102 -0
  252. package/resources/projects/instructions.d.mts.map +1 -0
  253. package/resources/projects/instructions.d.ts +102 -0
  254. package/resources/projects/instructions.d.ts.map +1 -0
  255. package/resources/projects/instructions.js +24 -0
  256. package/resources/projects/instructions.js.map +1 -0
  257. package/resources/projects/instructions.mjs +20 -0
  258. package/resources/projects/instructions.mjs.map +1 -0
  259. package/resources/projects/members.d.mts +788 -0
  260. package/resources/projects/members.d.mts.map +1 -0
  261. package/resources/projects/members.d.ts +788 -0
  262. package/resources/projects/members.d.ts.map +1 -0
  263. package/resources/projects/members.js +30 -0
  264. package/resources/projects/members.js.map +1 -0
  265. package/resources/projects/members.mjs +26 -0
  266. package/resources/projects/members.mjs.map +1 -0
  267. package/resources/projects/memory.d.mts +102 -0
  268. package/resources/projects/memory.d.mts.map +1 -0
  269. package/resources/projects/memory.d.ts +102 -0
  270. package/resources/projects/memory.d.ts.map +1 -0
  271. package/resources/projects/memory.js +24 -0
  272. package/resources/projects/memory.js.map +1 -0
  273. package/resources/projects/memory.mjs +20 -0
  274. package/resources/projects/memory.mjs.map +1 -0
  275. package/resources/projects/projects.d.mts +1129 -0
  276. package/resources/projects/projects.d.mts.map +1 -0
  277. package/resources/projects/projects.d.ts +1129 -0
  278. package/resources/projects/projects.d.ts.map +1 -0
  279. package/resources/projects/projects.js +79 -0
  280. package/resources/projects/projects.js.map +1 -0
  281. package/resources/projects/projects.mjs +74 -0
  282. package/resources/projects/projects.mjs.map +1 -0
  283. package/resources/projects/watermark.d.mts +459 -0
  284. package/resources/projects/watermark.d.mts.map +1 -0
  285. package/resources/projects/watermark.d.ts +459 -0
  286. package/resources/projects/watermark.d.ts.map +1 -0
  287. package/resources/projects/watermark.js +46 -0
  288. package/resources/projects/watermark.js.map +1 -0
  289. package/resources/projects/watermark.mjs +42 -0
  290. package/resources/projects/watermark.mjs.map +1 -0
  291. package/resources/projects/webhook-endpoints/events.d.mts +87 -0
  292. package/resources/projects/webhook-endpoints/events.d.mts.map +1 -0
  293. package/resources/projects/webhook-endpoints/events.d.ts +87 -0
  294. package/resources/projects/webhook-endpoints/events.d.ts.map +1 -0
  295. package/resources/projects/webhook-endpoints/events.js +28 -0
  296. package/resources/projects/webhook-endpoints/events.js.map +1 -0
  297. package/resources/projects/webhook-endpoints/events.mjs +24 -0
  298. package/resources/projects/webhook-endpoints/events.mjs.map +1 -0
  299. package/resources/projects/webhook-endpoints/index.d.mts +3 -0
  300. package/resources/projects/webhook-endpoints/index.d.mts.map +1 -0
  301. package/resources/projects/webhook-endpoints/index.d.ts +3 -0
  302. package/resources/projects/webhook-endpoints/index.d.ts.map +1 -0
  303. package/resources/projects/webhook-endpoints/index.js +9 -0
  304. package/resources/projects/webhook-endpoints/index.js.map +1 -0
  305. package/resources/projects/webhook-endpoints/index.mjs +4 -0
  306. package/resources/projects/webhook-endpoints/index.mjs.map +1 -0
  307. package/resources/projects/webhook-endpoints/webhook-endpoints.d.mts +249 -0
  308. package/resources/projects/webhook-endpoints/webhook-endpoints.d.mts.map +1 -0
  309. package/resources/projects/webhook-endpoints/webhook-endpoints.d.ts +249 -0
  310. package/resources/projects/webhook-endpoints/webhook-endpoints.d.ts.map +1 -0
  311. package/resources/projects/webhook-endpoints/webhook-endpoints.js +44 -0
  312. package/resources/projects/webhook-endpoints/webhook-endpoints.js.map +1 -0
  313. package/resources/projects/webhook-endpoints/webhook-endpoints.mjs +39 -0
  314. package/resources/projects/webhook-endpoints/webhook-endpoints.mjs.map +1 -0
  315. package/resources/projects/webhook-endpoints.d.mts +2 -0
  316. package/resources/projects/webhook-endpoints.d.mts.map +1 -0
  317. package/resources/projects/webhook-endpoints.d.ts +2 -0
  318. package/resources/projects/webhook-endpoints.d.ts.map +1 -0
  319. package/resources/projects/webhook-endpoints.js +6 -0
  320. package/resources/projects/webhook-endpoints.js.map +1 -0
  321. package/resources/projects/webhook-endpoints.mjs +3 -0
  322. package/resources/projects/webhook-endpoints.mjs.map +1 -0
  323. package/resources/projects.d.mts +2 -0
  324. package/resources/projects.d.mts.map +1 -0
  325. package/resources/projects.d.ts +2 -0
  326. package/resources/projects.d.ts.map +1 -0
  327. package/resources/projects.js +6 -0
  328. package/resources/projects.js.map +1 -0
  329. package/resources/projects.mjs +3 -0
  330. package/resources/projects.mjs.map +1 -0
  331. package/resources/recommendations.d.mts +1107 -0
  332. package/resources/recommendations.d.mts.map +1 -0
  333. package/resources/recommendations.d.ts +1107 -0
  334. package/resources/recommendations.d.ts.map +1 -0
  335. package/resources/recommendations.js +17 -0
  336. package/resources/recommendations.js.map +1 -0
  337. package/resources/recommendations.mjs +13 -0
  338. package/resources/recommendations.mjs.map +1 -0
  339. package/resources/search.d.mts +168 -5
  340. package/resources/search.d.mts.map +1 -1
  341. package/resources/search.d.ts +168 -5
  342. package/resources/search.d.ts.map +1 -1
  343. package/resources/search.js +17 -3
  344. package/resources/search.js.map +1 -1
  345. package/resources/search.mjs +17 -3
  346. package/resources/search.mjs.map +1 -1
  347. package/resources/tags.d.mts.map +1 -1
  348. package/resources/tags.d.ts.map +1 -1
  349. package/resources/tags.js +5 -1
  350. package/resources/tags.js.map +1 -1
  351. package/resources/tags.mjs +5 -1
  352. package/resources/tags.mjs.map +1 -1
  353. package/resources/teams/brief.d.mts +149 -0
  354. package/resources/teams/brief.d.mts.map +1 -0
  355. package/resources/teams/brief.d.ts +149 -0
  356. package/resources/teams/brief.d.ts.map +1 -0
  357. package/resources/teams/brief.js +28 -0
  358. package/resources/teams/brief.js.map +1 -0
  359. package/resources/teams/brief.mjs +24 -0
  360. package/resources/teams/brief.mjs.map +1 -0
  361. package/resources/teams/index.d.mts +7 -0
  362. package/resources/teams/index.d.mts.map +1 -0
  363. package/resources/teams/index.d.ts +7 -0
  364. package/resources/teams/index.d.ts.map +1 -0
  365. package/resources/teams/index.js +17 -0
  366. package/resources/teams/index.js.map +1 -0
  367. package/resources/teams/index.mjs +8 -0
  368. package/resources/teams/index.mjs.map +1 -0
  369. package/resources/teams/ip-filters.d.mts +115 -0
  370. package/resources/teams/ip-filters.d.mts.map +1 -0
  371. package/resources/teams/ip-filters.d.ts +115 -0
  372. package/resources/teams/ip-filters.d.ts.map +1 -0
  373. package/resources/teams/ip-filters.js +45 -0
  374. package/resources/teams/ip-filters.js.map +1 -0
  375. package/resources/teams/ip-filters.mjs +41 -0
  376. package/resources/teams/ip-filters.mjs.map +1 -0
  377. package/resources/teams/members.d.mts +204 -0
  378. package/resources/teams/members.d.mts.map +1 -0
  379. package/resources/teams/members.d.ts +204 -0
  380. package/resources/teams/members.d.ts.map +1 -0
  381. package/resources/teams/members.js +30 -0
  382. package/resources/teams/members.js.map +1 -0
  383. package/resources/teams/members.mjs +26 -0
  384. package/resources/teams/members.mjs.map +1 -0
  385. package/resources/teams/teams.d.mts +878 -0
  386. package/resources/teams/teams.d.mts.map +1 -0
  387. package/resources/teams/teams.d.ts +878 -0
  388. package/resources/teams/teams.d.ts.map +1 -0
  389. package/resources/teams/teams.js +66 -0
  390. package/resources/teams/teams.js.map +1 -0
  391. package/resources/teams/teams.mjs +61 -0
  392. package/resources/teams/teams.mjs.map +1 -0
  393. package/resources/teams/watermark.d.mts +459 -0
  394. package/resources/teams/watermark.d.mts.map +1 -0
  395. package/resources/teams/watermark.d.ts +459 -0
  396. package/resources/teams/watermark.d.ts.map +1 -0
  397. package/resources/teams/watermark.js +46 -0
  398. package/resources/teams/watermark.js.map +1 -0
  399. package/resources/teams/watermark.mjs +42 -0
  400. package/resources/teams/watermark.mjs.map +1 -0
  401. package/resources/teams/webhook-endpoints/events.d.mts +87 -0
  402. package/resources/teams/webhook-endpoints/events.d.mts.map +1 -0
  403. package/resources/teams/webhook-endpoints/events.d.ts +87 -0
  404. package/resources/teams/webhook-endpoints/events.d.ts.map +1 -0
  405. package/resources/teams/webhook-endpoints/events.js +28 -0
  406. package/resources/teams/webhook-endpoints/events.js.map +1 -0
  407. package/resources/teams/webhook-endpoints/events.mjs +24 -0
  408. package/resources/teams/webhook-endpoints/events.mjs.map +1 -0
  409. package/resources/teams/webhook-endpoints/index.d.mts +3 -0
  410. package/resources/teams/webhook-endpoints/index.d.mts.map +1 -0
  411. package/resources/teams/webhook-endpoints/index.d.ts +3 -0
  412. package/resources/teams/webhook-endpoints/index.d.ts.map +1 -0
  413. package/resources/teams/webhook-endpoints/index.js +9 -0
  414. package/resources/teams/webhook-endpoints/index.js.map +1 -0
  415. package/resources/teams/webhook-endpoints/index.mjs +4 -0
  416. package/resources/teams/webhook-endpoints/index.mjs.map +1 -0
  417. package/resources/teams/webhook-endpoints/webhook-endpoints.d.mts +250 -0
  418. package/resources/teams/webhook-endpoints/webhook-endpoints.d.mts.map +1 -0
  419. package/resources/teams/webhook-endpoints/webhook-endpoints.d.ts +250 -0
  420. package/resources/teams/webhook-endpoints/webhook-endpoints.d.ts.map +1 -0
  421. package/resources/teams/webhook-endpoints/webhook-endpoints.js +45 -0
  422. package/resources/teams/webhook-endpoints/webhook-endpoints.js.map +1 -0
  423. package/resources/teams/webhook-endpoints/webhook-endpoints.mjs +40 -0
  424. package/resources/teams/webhook-endpoints/webhook-endpoints.mjs.map +1 -0
  425. package/resources/teams/webhook-endpoints.d.mts +2 -0
  426. package/resources/teams/webhook-endpoints.d.mts.map +1 -0
  427. package/resources/teams/webhook-endpoints.d.ts +2 -0
  428. package/resources/teams/webhook-endpoints.d.ts.map +1 -0
  429. package/resources/teams/webhook-endpoints.js +6 -0
  430. package/resources/teams/webhook-endpoints.js.map +1 -0
  431. package/resources/teams/webhook-endpoints.mjs +3 -0
  432. package/resources/teams/webhook-endpoints.mjs.map +1 -0
  433. package/resources/teams.d.mts +2 -0
  434. package/resources/teams.d.mts.map +1 -0
  435. package/resources/teams.d.ts +2 -0
  436. package/resources/teams.d.ts.map +1 -0
  437. package/resources/teams.js +6 -0
  438. package/resources/teams.js.map +1 -0
  439. package/resources/teams.mjs +3 -0
  440. package/resources/teams.mjs.map +1 -0
  441. package/resources/uploads.d.mts +13 -3
  442. package/resources/uploads.d.mts.map +1 -1
  443. package/resources/uploads.d.ts +13 -3
  444. package/resources/uploads.d.ts.map +1 -1
  445. package/resources/uploads.js +16 -4
  446. package/resources/uploads.js.map +1 -1
  447. package/resources/uploads.mjs +16 -4
  448. package/resources/uploads.mjs.map +1 -1
  449. package/resources/usages.d.mts +85 -51
  450. package/resources/usages.d.mts.map +1 -1
  451. package/resources/usages.d.ts +85 -51
  452. package/resources/usages.d.ts.map +1 -1
  453. package/resources/usages.js +2 -1
  454. package/resources/usages.js.map +1 -1
  455. package/resources/usages.mjs +2 -1
  456. package/resources/usages.mjs.map +1 -1
  457. package/resources/workflows.d.mts +1639 -385
  458. package/resources/workflows.d.mts.map +1 -1
  459. package/resources/workflows.d.ts +1639 -385
  460. package/resources/workflows.d.ts.map +1 -1
  461. package/resources/workflows.js +39 -8
  462. package/resources/workflows.js.map +1 -1
  463. package/resources/workflows.mjs +39 -8
  464. package/resources/workflows.mjs.map +1 -1
  465. package/src/client.ts +107 -0
  466. package/src/core/pagination.ts +144 -0
  467. package/src/internal/utils/values.ts +10 -0
  468. package/src/lib/generate.ts +7 -7
  469. package/src/lib/job.ts +9 -7
  470. package/src/lib/models.ts +8 -6
  471. package/src/lib/query.ts +42 -0
  472. package/src/lib/scenario.ts +8 -0
  473. package/src/lib/scope.ts +42 -7
  474. package/src/lib/upload.ts +10 -8
  475. package/src/lib/workflow.ts +9 -7
  476. package/src/lib/workflow_converter.ts +126 -12
  477. package/src/lib/workflow_validator.ts +183 -1
  478. package/src/resources/assets/assets.ts +766 -132
  479. package/src/resources/assets/download.ts +61 -9
  480. package/src/resources/collections/assets.ts +3 -2
  481. package/src/resources/collections/collections.ts +20 -5
  482. package/src/resources/collections/models.ts +3 -2
  483. package/src/resources/generate.ts +2935 -512
  484. package/src/resources/index.ts +37 -0
  485. package/src/resources/jobs.ts +277 -121
  486. package/src/resources/models/description.ts +126 -2
  487. package/src/resources/models/examples.ts +318 -92
  488. package/src/resources/models/index.ts +25 -0
  489. package/src/resources/models/models.ts +463 -124
  490. package/src/resources/models/presets.ts +1335 -0
  491. package/src/resources/models/prompt-guide.ts +102 -0
  492. package/src/resources/models/scores.ts +383 -0
  493. package/src/resources/models/train.ts +202 -87
  494. package/src/resources/models/training-images.ts +5 -4
  495. package/src/resources/projects/api-keys.ts +86 -0
  496. package/src/resources/projects/brief.ts +197 -0
  497. package/src/resources/projects/index.ts +71 -0
  498. package/src/resources/projects/instructions.ts +134 -0
  499. package/src/resources/projects/members.ts +958 -0
  500. package/src/resources/projects/memory.ts +134 -0
  501. package/src/resources/projects/projects.ts +1478 -0
  502. package/src/resources/projects/watermark.ts +590 -0
  503. package/src/resources/projects/webhook-endpoints/events.ts +179 -0
  504. package/src/resources/projects/webhook-endpoints/index.ts +19 -0
  505. package/src/resources/projects/webhook-endpoints/webhook-endpoints.ts +452 -0
  506. package/src/resources/projects/webhook-endpoints.ts +3 -0
  507. package/src/resources/projects.ts +3 -0
  508. package/src/resources/recommendations.ts +1502 -0
  509. package/src/resources/search.ts +220 -8
  510. package/src/resources/tags.ts +5 -1
  511. package/src/resources/teams/brief.ts +193 -0
  512. package/src/resources/teams/index.ts +62 -0
  513. package/src/resources/teams/ip-filters.ts +177 -0
  514. package/src/resources/teams/members.ts +282 -0
  515. package/src/resources/teams/teams.ts +1255 -0
  516. package/src/resources/teams/watermark.ts +590 -0
  517. package/src/resources/teams/webhook-endpoints/events.ts +179 -0
  518. package/src/resources/teams/webhook-endpoints/index.ts +19 -0
  519. package/src/resources/teams/webhook-endpoints/webhook-endpoints.ts +453 -0
  520. package/src/resources/teams/webhook-endpoints.ts +3 -0
  521. package/src/resources/teams.ts +3 -0
  522. package/src/resources/uploads.ts +30 -7
  523. package/src/resources/usages.ts +98 -50
  524. package/src/resources/workflows.ts +2053 -434
  525. package/src/version.ts +1 -1
  526. package/version.d.mts +1 -1
  527. package/version.d.ts +1 -1
  528. package/version.js +1 -1
  529. package/version.mjs +1 -1
@@ -0,0 +1,878 @@
1
+ import { APIResource } from "../../core/resource.mjs";
2
+ import * as BriefAPI from "./brief.mjs";
3
+ import { Brief, BriefDeleteResponse, BriefRetrieveResponse, BriefUpdateParams, BriefUpdateResponse } from "./brief.mjs";
4
+ import * as IPFiltersAPI from "./ip-filters.mjs";
5
+ import { IPFilterCreateParams, IPFilterCreateResponse, IPFilterDeleteParams, IPFilterDeleteResponse, IPFilterDraftInstructionParams, IPFilterDraftInstructionResponse, IPFilterListResponse, IPFilterUpdateParams, IPFilterUpdateResponse, IPFilters } from "./ip-filters.mjs";
6
+ import * as MembersAPI from "./members.mjs";
7
+ import { MemberCreateParams, MemberCreateResponse, MemberDeleteParams, MemberDeleteResponse, MemberUpdateParams, MemberUpdateResponse, Members } from "./members.mjs";
8
+ import * as WatermarkAPI from "./watermark.mjs";
9
+ import { Watermark, WatermarkDeleteLogoResponse, WatermarkDeleteResponse, WatermarkPreviewParams, WatermarkPreviewResponse, WatermarkRetrieveResponse, WatermarkUpdateLogoParams, WatermarkUpdateLogoResponse, WatermarkUpdateParams, WatermarkUpdateResponse } from "./watermark.mjs";
10
+ import * as WebhookEndpointsAPI from "./webhook-endpoints/webhook-endpoints.mjs";
11
+ import { WebhookEndpointCreateParams, WebhookEndpointCreateResponse, WebhookEndpointDeleteParams, WebhookEndpointDeleteResponse, WebhookEndpointListResponse, WebhookEndpointUpdateParams, WebhookEndpointUpdateResponse, WebhookEndpoints } from "./webhook-endpoints/webhook-endpoints.mjs";
12
+ import { APIPromise } from "../../core/api-promise.mjs";
13
+ import { RequestOptions } from "../../internal/request-options.mjs";
14
+ export declare class Teams extends APIResource {
15
+ brief: BriefAPI.Brief;
16
+ ipFilters: IPFiltersAPI.IPFilters;
17
+ members: MembersAPI.Members;
18
+ watermark: WatermarkAPI.Watermark;
19
+ webhookEndpoints: WebhookEndpointsAPI.WebhookEndpoints;
20
+ /**
21
+ * Get the details of a team
22
+ */
23
+ retrieve(teamID: string, options?: RequestOptions): APIPromise<TeamRetrieveResponse>;
24
+ /**
25
+ * Update a particular team
26
+ */
27
+ update(teamID: string, body: TeamUpdateParams, options?: RequestOptions): APIPromise<TeamUpdateResponse>;
28
+ /**
29
+ * List the teams the user belongs to
30
+ */
31
+ list(options?: RequestOptions): APIPromise<TeamListResponse>;
32
+ /**
33
+ * Withdraw a user invitation on the team
34
+ */
35
+ deleteInvitations(teamID: string, params: TeamDeleteInvitationsParams, options?: RequestOptions): APIPromise<unknown>;
36
+ /**
37
+ * Retrieve current limits for a team
38
+ */
39
+ retrieveLimits(teamID: string, options?: RequestOptions): APIPromise<TeamRetrieveLimitsResponse>;
40
+ }
41
+ export interface TeamRetrieveResponse {
42
+ team: TeamRetrieveResponse.Team;
43
+ }
44
+ export declare namespace TeamRetrieveResponse {
45
+ interface Team {
46
+ /**
47
+ * The team ID (example: "eyVcnFJcR92BxBkz7N6g5w")
48
+ */
49
+ id: string;
50
+ /**
51
+ * The team creation date as an ISO string (example: "2023-02-03T11:19:41.579Z")
52
+ */
53
+ createdAt: string;
54
+ /**
55
+ * The list of pending invitations
56
+ */
57
+ invitations: Array<Team.Invitation>;
58
+ /**
59
+ * The list of API keys
60
+ */
61
+ keys: Array<Team.Key>;
62
+ /**
63
+ * The team name (example: "Scenario")
64
+ */
65
+ name: string;
66
+ /**
67
+ * The paymentStatus for the team
68
+ */
69
+ paymentStatus: 'failed' | 'succeeded';
70
+ /**
71
+ * The team plan
72
+ */
73
+ plan: 'cu-basic' | 'cu-creator' | 'cu-max' | 'cu-pro' | 'cu-pro-q3-25' | 'cu-team' | 'cu-team-v2' | 'enterprise' | 'essential' | 'free' | 'premium' | 'pro';
74
+ /**
75
+ * Projects of the team
76
+ */
77
+ projects: Array<Team.Project>;
78
+ /**
79
+ * The search host for the team
80
+ */
81
+ searchHost: string;
82
+ /**
83
+ * The search indexes for the team
84
+ */
85
+ searchIndexes: Team.SearchIndexes;
86
+ /**
87
+ * The team type
88
+ */
89
+ type: 'personal' | 'shared';
90
+ /**
91
+ * The team update date as an ISO string (example: "2023-02-03T11:19:41.579Z")
92
+ */
93
+ updatedAt: string;
94
+ /**
95
+ * The list of teams members and their role
96
+ */
97
+ users: Array<Team.User>;
98
+ /**
99
+ * The team's avatar
100
+ */
101
+ avatar?: Team.Avatar;
102
+ /**
103
+ * BYOK pricing override. Admin-only — omitted for non-admin callers.
104
+ */
105
+ byok?: Team.Byok;
106
+ /**
107
+ * Team-wide default max consumption (CU) applied to every member over the billing
108
+ * period, unless overridden per member. Absent when no team-wide default is set.
109
+ */
110
+ defaultUserMaxConsumption?: number;
111
+ /**
112
+ * The IP detection enforcement posture for the team. 'disabled': IP detection is
113
+ * not performed. 'active-fail-open': IP detection runs; on detector error the
114
+ * request is allowed through. 'active-fail-closed': IP detection runs; on detector
115
+ * error the request is blocked.
116
+ */
117
+ ipDetectionEnforcement?: 'active-fail-closed' | 'active-fail-open' | 'disabled';
118
+ /**
119
+ * Quality Gate auto-detection default for the team.
120
+ */
121
+ qualityGateAutoDetect?: boolean;
122
+ /**
123
+ * Team settings. Returned on `GET` and `PUT /teams/{teamId}`, absent from the
124
+ * teams list.
125
+ */
126
+ settings?: Team.Settings;
127
+ /**
128
+ * The subscriptionStatus for the team
129
+ */
130
+ subscriptionStatus?: 'active' | 'inactive' | 'paused';
131
+ }
132
+ namespace Team {
133
+ interface Invitation {
134
+ /**
135
+ * The user creation date as an ISO string (example: "2023-02-03T11:19:41.579Z")
136
+ */
137
+ createdAt: string;
138
+ /**
139
+ * The invited user email (example: "herve@scenario.com")
140
+ */
141
+ email: string;
142
+ /**
143
+ * The role of the invited user inside the team
144
+ */
145
+ role: 'admin' | 'key' | 'member';
146
+ /**
147
+ * The status of the invitation
148
+ */
149
+ status: 'accepted' | 'expired' | 'pending' | 'withdrawn';
150
+ /**
151
+ * The link the invited user opens to accept the invitation, as sent by email
152
+ */
153
+ url: string;
154
+ /**
155
+ * The list of project IDs for which the user is invited
156
+ */
157
+ projectIds?: Array<string>;
158
+ }
159
+ interface Key {
160
+ /**
161
+ * The key's member id (its API user id, `apiu_...`), taken by the member and usage
162
+ * routes (example: "apiu_eyVcnFJcR92BxBkz7N6g5w")
163
+ */
164
+ id: string;
165
+ /**
166
+ * The API key id (`api_...`), taken by the api-keys routes (example:
167
+ * "api_eyVcnFJcR92BxBkz7N6g5w")
168
+ */
169
+ apiKeyId: string;
170
+ /**
171
+ * The status of the API key
172
+ */
173
+ apiKeyStatus: 'active' | 'inactive';
174
+ /**
175
+ * The API key creation date as an ISO string (example: "2023-02-03T11:19:41.579Z")
176
+ */
177
+ createdAt: string;
178
+ /**
179
+ * The API key name (example: "eurv-scenario")
180
+ */
181
+ name: string;
182
+ /**
183
+ * The scope of the API key: 'project' for project-scoped keys, 'team' for
184
+ * team-scoped keys
185
+ */
186
+ scope: 'project' | 'team';
187
+ /**
188
+ * The API key last update date as an ISO string (example:
189
+ * "2023-02-03T11:19:41.579Z")
190
+ */
191
+ updatedAt: string;
192
+ /**
193
+ * The member who created the key: a human, or the member id (`apiu_...`) of the
194
+ * team API key that created it.
195
+ */
196
+ authorId?: string;
197
+ /**
198
+ * Consumption (CU) used by this key over the current billing period.
199
+ */
200
+ consumption?: number;
201
+ /**
202
+ * The date the API key was last used to authenticate a request, as an ISO string
203
+ * (example: "2023-02-03T11:19:41.579Z"). Absent if the key has never been used.
204
+ */
205
+ lastUsedAt?: string;
206
+ /**
207
+ * The key's effective consumption (CU) cap for the period (per-key override, else
208
+ * the team-wide default). Absent when the key is uncapped.
209
+ */
210
+ maxConsumption?: number;
211
+ /**
212
+ * For a PROJECT key: the project it was created on (the team id on some legacy
213
+ * keys). Absent for team keys.
214
+ */
215
+ ownerId?: string;
216
+ /**
217
+ * For a PROJECT key: the projects it has access to and its role on each. Empty
218
+ * when the key is currently not a member of any (live) project. Absent for team
219
+ * keys.
220
+ */
221
+ projects?: Array<Key.Project>;
222
+ /**
223
+ * The key's role. For a TEAM key: its effective team-plane scopes as a
224
+ * `;`-separated list (e.g. `"team.read;team.usage.read"`). Project keys carry
225
+ * their project-plane role(s) per project in `projects` instead.
226
+ */
227
+ role?: string;
228
+ }
229
+ namespace Key {
230
+ /**
231
+ * A project a `project`-scoped API key has access to, with its role on that
232
+ * project. A key can be granted roles on several projects, potentially with
233
+ * different roles — one entry per project.
234
+ */
235
+ interface Project {
236
+ /**
237
+ * The project the key has a role on
238
+ */
239
+ projectId: string;
240
+ /**
241
+ * The key's role on this project: a built-in role (`admin`/`editor`/`reader`) or a
242
+ * custom `;`-separated scope list (example: `"asset.read;model.read"`).
243
+ */
244
+ role: string;
245
+ }
246
+ }
247
+ interface Project {
248
+ id: string;
249
+ createdAt: string;
250
+ name: string;
251
+ updatedAt: string;
252
+ avatar?: Project.Avatar;
253
+ /**
254
+ * When true, IP detection is switched off for this project.
255
+ */
256
+ disableIpDetection?: boolean;
257
+ /**
258
+ * Whether Quality Gate auto-detection runs on generation for this project.
259
+ */
260
+ qualityGateAutoDetect?: boolean;
261
+ }
262
+ namespace Project {
263
+ interface Avatar {
264
+ /**
265
+ * ID of the asset used as thumbnail if provided, otherwise undefined
266
+ */
267
+ assetId?: string;
268
+ /**
269
+ * Signed URL of the assetId or free url if assetId is undefined
270
+ */
271
+ url?: string;
272
+ }
273
+ }
274
+ /**
275
+ * The search indexes for the team
276
+ */
277
+ interface SearchIndexes {
278
+ assets: SearchIndexes.Assets;
279
+ models: SearchIndexes.Models;
280
+ workflows: SearchIndexes.Workflows;
281
+ }
282
+ namespace SearchIndexes {
283
+ interface Assets {
284
+ /**
285
+ * The private search index for the team
286
+ */
287
+ private: string;
288
+ /**
289
+ * The public search index for the team
290
+ */
291
+ public: string;
292
+ }
293
+ interface Models {
294
+ /**
295
+ * The private search index for the team
296
+ */
297
+ private: string;
298
+ /**
299
+ * The public search index for the team
300
+ */
301
+ public: string;
302
+ }
303
+ interface Workflows {
304
+ /**
305
+ * The private search index for the team
306
+ */
307
+ private: string;
308
+ /**
309
+ * The public search index for the team
310
+ */
311
+ public: string;
312
+ }
313
+ }
314
+ interface User {
315
+ /**
316
+ * The user ID (example: "eyVcnFJcR92BxBkz7N6g5w")
317
+ */
318
+ id: string;
319
+ /**
320
+ * The user creation date as an ISO string (example: "2023-02-03T11:19:41.579Z")
321
+ */
322
+ createdAt: string;
323
+ /**
324
+ * The user email (example: "herve@scenario.com")
325
+ */
326
+ email: string;
327
+ /**
328
+ * The role of the user inside the team
329
+ */
330
+ role: 'admin' | 'key' | 'member';
331
+ /**
332
+ * The user last update date as an ISO string (example: "2023-02-03T11:19:41.579Z")
333
+ */
334
+ updatedAt: string;
335
+ /**
336
+ * The user's avatar
337
+ */
338
+ avatar?: User.Avatar;
339
+ /**
340
+ * Consumption (CU) used by this member over the current billing period.
341
+ */
342
+ consumption?: number;
343
+ /**
344
+ * The member's effective consumption (CU) cap for the period (per-user override,
345
+ * else the team-wide default). Absent when the member is uncapped.
346
+ */
347
+ maxConsumption?: number;
348
+ }
349
+ namespace User {
350
+ /**
351
+ * The user's avatar
352
+ */
353
+ interface Avatar {
354
+ /**
355
+ * ID of the asset used as thumbnail if provided, otherwise undefined
356
+ */
357
+ assetId?: string;
358
+ /**
359
+ * Signed URL of the assetId or free url if assetId is undefined
360
+ */
361
+ url?: string;
362
+ }
363
+ }
364
+ /**
365
+ * The team's avatar
366
+ */
367
+ interface Avatar {
368
+ /**
369
+ * ID of the asset used as thumbnail if provided, otherwise undefined
370
+ */
371
+ assetId?: string;
372
+ /**
373
+ * Signed URL of the assetId or free url if assetId is undefined
374
+ */
375
+ url?: string;
376
+ }
377
+ /**
378
+ * BYOK pricing override. Admin-only — omitted for non-admin callers.
379
+ */
380
+ interface Byok {
381
+ markupMultiplier: number;
382
+ /**
383
+ * ISO timestamp of the last update. Optional — legacy rows may lack it.
384
+ */
385
+ updatedAt?: string;
386
+ /**
387
+ * Human-readable handle of who last updated the markup (display name).
388
+ */
389
+ updatedBy?: string;
390
+ }
391
+ /**
392
+ * Team settings. Returned on `GET` and `PUT /teams/{teamId}`, absent from the
393
+ * teams list.
394
+ */
395
+ interface Settings {
396
+ /**
397
+ * Published homepage layout.
398
+ */
399
+ homepage?: {
400
+ [key: string]: unknown;
401
+ };
402
+ }
403
+ }
404
+ }
405
+ export interface TeamUpdateResponse {
406
+ /**
407
+ * The updated team.
408
+ */
409
+ team: TeamUpdateResponse.Team;
410
+ }
411
+ export declare namespace TeamUpdateResponse {
412
+ /**
413
+ * The updated team.
414
+ */
415
+ interface Team {
416
+ /**
417
+ * The team ID (example: "eyVcnFJcR92BxBkz7N6g5w")
418
+ */
419
+ id: string;
420
+ /**
421
+ * The context of the team for the current authenticated user
422
+ */
423
+ context: Team.Context;
424
+ /**
425
+ * The team creation date as an ISO string (example: "2023-02-03T11:19:41.579Z")
426
+ */
427
+ createdAt: string;
428
+ /**
429
+ * The team name (example: "Scenario")
430
+ */
431
+ name: string;
432
+ /**
433
+ * The team plan
434
+ */
435
+ plan: 'cu-basic' | 'cu-creator' | 'cu-max' | 'cu-pro' | 'cu-pro-q3-25' | 'cu-team' | 'cu-team-v2' | 'enterprise' | 'essential' | 'free' | 'premium' | 'pro';
436
+ /**
437
+ * Projects of the team
438
+ */
439
+ projects: Array<Team.Project>;
440
+ /**
441
+ * The team type
442
+ */
443
+ type: 'personal' | 'shared';
444
+ /**
445
+ * The team update date as an ISO string (example: "2023-02-03T11:19:41.579Z")
446
+ */
447
+ updatedAt: string;
448
+ /**
449
+ * The team's avatar
450
+ */
451
+ avatar?: Team.Avatar;
452
+ /**
453
+ * BYOK pricing override. Admin-only — omitted for non-admin callers.
454
+ */
455
+ byok?: Team.Byok;
456
+ /**
457
+ * Team-wide default max consumption (CU) applied to every member over the billing
458
+ * period, unless overridden per member. Absent when no team-wide default is set.
459
+ */
460
+ defaultUserMaxConsumption?: number;
461
+ /**
462
+ * The IP detection enforcement posture for the team. 'disabled': IP detection is
463
+ * not performed. 'active-fail-open': IP detection runs; on detector error the
464
+ * request is allowed through. 'active-fail-closed': IP detection runs; on detector
465
+ * error the request is blocked.
466
+ */
467
+ ipDetectionEnforcement?: 'active-fail-closed' | 'active-fail-open' | 'disabled';
468
+ /**
469
+ * Quality Gate auto-detection default for the team.
470
+ */
471
+ qualityGateAutoDetect?: boolean;
472
+ /**
473
+ * Team settings.
474
+ */
475
+ settings?: Team.Settings;
476
+ }
477
+ namespace Team {
478
+ /**
479
+ * The context of the team for the current authenticated user
480
+ */
481
+ interface Context {
482
+ /**
483
+ * The number of invitations on this team
484
+ */
485
+ invitationsCount: number;
486
+ /**
487
+ * The number of API keys on this team
488
+ */
489
+ keysCount: number;
490
+ /**
491
+ * The authenticated user's role for this team
492
+ */
493
+ userRole: 'admin' | 'key' | 'member';
494
+ /**
495
+ * The number of users on this team
496
+ */
497
+ usersCount: number;
498
+ }
499
+ interface Project {
500
+ id: string;
501
+ createdAt: string;
502
+ name: string;
503
+ updatedAt: string;
504
+ avatar?: Project.Avatar;
505
+ /**
506
+ * When true, IP detection is switched off for this project.
507
+ */
508
+ disableIpDetection?: boolean;
509
+ /**
510
+ * Whether Quality Gate auto-detection runs on generation for this project.
511
+ */
512
+ qualityGateAutoDetect?: boolean;
513
+ }
514
+ namespace Project {
515
+ interface Avatar {
516
+ /**
517
+ * ID of the asset used as thumbnail if provided, otherwise undefined
518
+ */
519
+ assetId?: string;
520
+ /**
521
+ * Signed URL of the assetId or free url if assetId is undefined
522
+ */
523
+ url?: string;
524
+ }
525
+ }
526
+ /**
527
+ * The team's avatar
528
+ */
529
+ interface Avatar {
530
+ /**
531
+ * ID of the asset used as thumbnail if provided, otherwise undefined
532
+ */
533
+ assetId?: string;
534
+ /**
535
+ * Signed URL of the assetId or free url if assetId is undefined
536
+ */
537
+ url?: string;
538
+ }
539
+ /**
540
+ * BYOK pricing override. Admin-only — omitted for non-admin callers.
541
+ */
542
+ interface Byok {
543
+ markupMultiplier: number;
544
+ /**
545
+ * ISO timestamp of the last update. Optional — legacy rows may lack it.
546
+ */
547
+ updatedAt?: string;
548
+ /**
549
+ * Human-readable handle of who last updated the markup (display name).
550
+ */
551
+ updatedBy?: string;
552
+ }
553
+ /**
554
+ * Team settings.
555
+ */
556
+ interface Settings {
557
+ /**
558
+ * Published homepage layout.
559
+ */
560
+ homepage?: {
561
+ [key: string]: unknown;
562
+ };
563
+ }
564
+ }
565
+ }
566
+ export interface TeamListResponse {
567
+ /**
568
+ * A list of the teams the user belongs to
569
+ */
570
+ teams: Array<TeamListResponse.Team>;
571
+ }
572
+ export declare namespace TeamListResponse {
573
+ interface Team {
574
+ /**
575
+ * The team ID (example: "eyVcnFJcR92BxBkz7N6g5w")
576
+ */
577
+ id: string;
578
+ /**
579
+ * The context of the team for the current authenticated user
580
+ */
581
+ context: Team.Context;
582
+ /**
583
+ * The team creation date as an ISO string (example: "2023-02-03T11:19:41.579Z")
584
+ */
585
+ createdAt: string;
586
+ /**
587
+ * The team name (example: "Scenario")
588
+ */
589
+ name: string;
590
+ /**
591
+ * The team plan
592
+ */
593
+ plan: 'cu-basic' | 'cu-creator' | 'cu-max' | 'cu-pro' | 'cu-pro-q3-25' | 'cu-team' | 'cu-team-v2' | 'enterprise' | 'essential' | 'free' | 'premium' | 'pro';
594
+ /**
595
+ * Projects of the team
596
+ */
597
+ projects: Array<Team.Project>;
598
+ /**
599
+ * The team type
600
+ */
601
+ type: 'personal' | 'shared';
602
+ /**
603
+ * The team update date as an ISO string (example: "2023-02-03T11:19:41.579Z")
604
+ */
605
+ updatedAt: string;
606
+ /**
607
+ * The team's avatar
608
+ */
609
+ avatar?: Team.Avatar;
610
+ /**
611
+ * BYOK pricing override. Admin-only — omitted for non-admin callers.
612
+ */
613
+ byok?: Team.Byok;
614
+ /**
615
+ * Team-wide default max consumption (CU) applied to every member over the billing
616
+ * period, unless overridden per member. Absent when no team-wide default is set.
617
+ */
618
+ defaultUserMaxConsumption?: number;
619
+ /**
620
+ * The IP detection enforcement posture for the team. 'disabled': IP detection is
621
+ * not performed. 'active-fail-open': IP detection runs; on detector error the
622
+ * request is allowed through. 'active-fail-closed': IP detection runs; on detector
623
+ * error the request is blocked.
624
+ */
625
+ ipDetectionEnforcement?: 'active-fail-closed' | 'active-fail-open' | 'disabled';
626
+ /**
627
+ * Quality Gate auto-detection default for the team.
628
+ */
629
+ qualityGateAutoDetect?: boolean;
630
+ }
631
+ namespace Team {
632
+ /**
633
+ * The context of the team for the current authenticated user
634
+ */
635
+ interface Context {
636
+ /**
637
+ * The number of invitations on this team
638
+ */
639
+ invitationsCount: number;
640
+ /**
641
+ * The number of API keys on this team
642
+ */
643
+ keysCount: number;
644
+ /**
645
+ * The authenticated user's role for this team
646
+ */
647
+ userRole: 'admin' | 'key' | 'member';
648
+ /**
649
+ * The number of users on this team
650
+ */
651
+ usersCount: number;
652
+ }
653
+ interface Project {
654
+ id: string;
655
+ createdAt: string;
656
+ name: string;
657
+ updatedAt: string;
658
+ avatar?: Project.Avatar;
659
+ /**
660
+ * When true, IP detection is switched off for this project.
661
+ */
662
+ disableIpDetection?: boolean;
663
+ /**
664
+ * Whether Quality Gate auto-detection runs on generation for this project.
665
+ */
666
+ qualityGateAutoDetect?: boolean;
667
+ }
668
+ namespace Project {
669
+ interface Avatar {
670
+ /**
671
+ * ID of the asset used as thumbnail if provided, otherwise undefined
672
+ */
673
+ assetId?: string;
674
+ /**
675
+ * Signed URL of the assetId or free url if assetId is undefined
676
+ */
677
+ url?: string;
678
+ }
679
+ }
680
+ /**
681
+ * The team's avatar
682
+ */
683
+ interface Avatar {
684
+ /**
685
+ * ID of the asset used as thumbnail if provided, otherwise undefined
686
+ */
687
+ assetId?: string;
688
+ /**
689
+ * Signed URL of the assetId or free url if assetId is undefined
690
+ */
691
+ url?: string;
692
+ }
693
+ /**
694
+ * BYOK pricing override. Admin-only — omitted for non-admin callers.
695
+ */
696
+ interface Byok {
697
+ markupMultiplier: number;
698
+ /**
699
+ * ISO timestamp of the last update. Optional — legacy rows may lack it.
700
+ */
701
+ updatedAt?: string;
702
+ /**
703
+ * Human-readable handle of who last updated the markup (display name).
704
+ */
705
+ updatedBy?: string;
706
+ }
707
+ }
708
+ }
709
+ export type TeamDeleteInvitationsResponse = unknown;
710
+ export interface TeamRetrieveLimitsResponse {
711
+ /**
712
+ * The actual billing limits values related to the plan
713
+ */
714
+ limits: TeamRetrieveLimitsResponse.Limits;
715
+ /**
716
+ * The list of one-shot Compute Units
717
+ *
718
+ * Can be empty if the team has no one-shot Compute Units
719
+ */
720
+ oneShotCreativeUnits: Array<TeamRetrieveLimitsResponse.OneShotCreativeUnit>;
721
+ /**
722
+ * The actual billing period start and end dates ISO strings
723
+ */
724
+ period: TeamRetrieveLimitsResponse.Period;
725
+ /**
726
+ * The actual plan of the team
727
+ */
728
+ plan: 'cu-basic' | 'cu-creator' | 'cu-max' | 'cu-pro' | 'cu-pro-q3-25' | 'cu-team' | 'cu-team-v2' | 'enterprise' | 'essential' | 'free' | 'premium' | 'pro';
729
+ /**
730
+ * The current value for each relevant limit in the billing period
731
+ */
732
+ values: TeamRetrieveLimitsResponse.Values;
733
+ }
734
+ export declare namespace TeamRetrieveLimitsResponse {
735
+ /**
736
+ * The actual billing limits values related to the plan
737
+ */
738
+ interface Limits {
739
+ apiKeys: number;
740
+ canvasAssetLayers: number;
741
+ canvasAssets: number;
742
+ collections: number;
743
+ /**
744
+ * The amount of Compute Units available for the plan
745
+ */
746
+ creativeUnits: number;
747
+ defaultSeats: number;
748
+ downloadAssets: number;
749
+ downloadModel: number;
750
+ inferenceBatchSize: number;
751
+ /**
752
+ * The maximum cooldown applied in case of over head
753
+ */
754
+ maxCooldown: number;
755
+ maxTrainingDatasets: number;
756
+ /**
757
+ * The minimum cooldown applied in case of over head
758
+ */
759
+ minCooldown: number;
760
+ /**
761
+ * The maximum models a project can have (train/upload/copy/transfer/...)
762
+ */
763
+ models: number;
764
+ OTPSessions: number;
765
+ parallelCustomJobs: number;
766
+ parallelInferences: number;
767
+ parallelTraining: number;
768
+ parallelWorkflowRuns: number;
769
+ premiumGenerationSamples: number;
770
+ /**
771
+ * The maximum projects a team can have
772
+ */
773
+ projects: number;
774
+ scalingFactor: number;
775
+ seats: number;
776
+ snapshotsRetention: number;
777
+ upload: number;
778
+ }
779
+ interface OneShotCreativeUnit {
780
+ /**
781
+ * The Compute Units amount bought
782
+ */
783
+ amount: number;
784
+ /**
785
+ * The creation date of the Compute Units (buy date) ISO string
786
+ */
787
+ createdAt: string;
788
+ /**
789
+ * The expiration date of the Compute Units ISO string
790
+ */
791
+ expiration: string;
792
+ /**
793
+ * The remaining Compute Units available
794
+ */
795
+ remaining: number;
796
+ /**
797
+ * The last update date of the Compute Units (use date) ISO string
798
+ */
799
+ updatedAt: string;
800
+ }
801
+ /**
802
+ * The actual billing period start and end dates ISO strings
803
+ */
804
+ interface Period {
805
+ end: string;
806
+ start: string;
807
+ }
808
+ /**
809
+ * The current value for each relevant limit in the billing period
810
+ */
811
+ interface Values {
812
+ apiKeys: number;
813
+ canvasAssets: number;
814
+ collections: number;
815
+ creativeUnits: number;
816
+ projects: number;
817
+ seats: number;
818
+ }
819
+ }
820
+ export interface TeamUpdateParams {
821
+ /**
822
+ * The team's avatar asset ID (must be kind image)
823
+ */
824
+ avatarAssetId?: string;
825
+ /**
826
+ * Team-wide default max consumption (CU) applied to every member over the billing
827
+ * period, overridable per member. Set to null to remove the default.
828
+ */
829
+ defaultUserMaxConsumption?: number;
830
+ /**
831
+ * The IP detection enforcement posture for the team. 'disabled': IP detection is
832
+ * not performed. 'active-fail-open': IP detection runs; on detector error the
833
+ * request is allowed through. 'active-fail-closed': IP detection runs; on detector
834
+ * error the request is blocked.
835
+ */
836
+ ipDetectionEnforcement?: 'active-fail-closed' | 'active-fail-open' | 'disabled';
837
+ /**
838
+ * The team name (example: "Scenario")
839
+ */
840
+ name?: string;
841
+ /**
842
+ * Enable Quality Gate auto-detection on generation for this team (projects can
843
+ * override). Set to null to clear the default.
844
+ */
845
+ qualityGateAutoDetect?: boolean;
846
+ /**
847
+ * Team settings. Set `homepage` to a layout object to publish it, or to `null` to
848
+ * unpublish it. Team-admin only.
849
+ */
850
+ settings?: TeamUpdateParams.Settings;
851
+ }
852
+ export declare namespace TeamUpdateParams {
853
+ /**
854
+ * Team settings. Set `homepage` to a layout object to publish it, or to `null` to
855
+ * unpublish it. Team-admin only.
856
+ */
857
+ interface Settings {
858
+ /**
859
+ * Homepage layout. An object publishes it; `null` unpublishes it.
860
+ */
861
+ homepage?: unknown;
862
+ }
863
+ }
864
+ export interface TeamDeleteInvitationsParams {
865
+ /**
866
+ * The invitation email to withdraw from the team
867
+ */
868
+ email: string;
869
+ }
870
+ export declare namespace Teams {
871
+ export { type TeamRetrieveResponse as TeamRetrieveResponse, type TeamUpdateResponse as TeamUpdateResponse, type TeamListResponse as TeamListResponse, type TeamDeleteInvitationsResponse as TeamDeleteInvitationsResponse, type TeamRetrieveLimitsResponse as TeamRetrieveLimitsResponse, type TeamUpdateParams as TeamUpdateParams, type TeamDeleteInvitationsParams as TeamDeleteInvitationsParams, };
872
+ export { Brief as Brief, type BriefRetrieveResponse as BriefRetrieveResponse, type BriefUpdateResponse as BriefUpdateResponse, type BriefDeleteResponse as BriefDeleteResponse, type BriefUpdateParams as BriefUpdateParams, };
873
+ export { IPFilters as IPFilters, type IPFilterCreateResponse as IPFilterCreateResponse, type IPFilterUpdateResponse as IPFilterUpdateResponse, type IPFilterListResponse as IPFilterListResponse, type IPFilterDeleteResponse as IPFilterDeleteResponse, type IPFilterDraftInstructionResponse as IPFilterDraftInstructionResponse, type IPFilterCreateParams as IPFilterCreateParams, type IPFilterUpdateParams as IPFilterUpdateParams, type IPFilterDeleteParams as IPFilterDeleteParams, type IPFilterDraftInstructionParams as IPFilterDraftInstructionParams, };
874
+ export { Members as Members, type MemberCreateResponse as MemberCreateResponse, type MemberUpdateResponse as MemberUpdateResponse, type MemberDeleteResponse as MemberDeleteResponse, type MemberCreateParams as MemberCreateParams, type MemberUpdateParams as MemberUpdateParams, type MemberDeleteParams as MemberDeleteParams, };
875
+ export { Watermark as Watermark, type WatermarkRetrieveResponse as WatermarkRetrieveResponse, type WatermarkUpdateResponse as WatermarkUpdateResponse, type WatermarkDeleteResponse as WatermarkDeleteResponse, type WatermarkDeleteLogoResponse as WatermarkDeleteLogoResponse, type WatermarkPreviewResponse as WatermarkPreviewResponse, type WatermarkUpdateLogoResponse as WatermarkUpdateLogoResponse, type WatermarkUpdateParams as WatermarkUpdateParams, type WatermarkPreviewParams as WatermarkPreviewParams, type WatermarkUpdateLogoParams as WatermarkUpdateLogoParams, };
876
+ export { WebhookEndpoints as WebhookEndpoints, type WebhookEndpointCreateResponse as WebhookEndpointCreateResponse, type WebhookEndpointUpdateResponse as WebhookEndpointUpdateResponse, type WebhookEndpointListResponse as WebhookEndpointListResponse, type WebhookEndpointDeleteResponse as WebhookEndpointDeleteResponse, type WebhookEndpointCreateParams as WebhookEndpointCreateParams, type WebhookEndpointUpdateParams as WebhookEndpointUpdateParams, type WebhookEndpointDeleteParams as WebhookEndpointDeleteParams, };
877
+ }
878
+ //# sourceMappingURL=teams.d.mts.map