@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,115 @@
1
+ import { APIResource } from "../../core/resource.js";
2
+ import { APIPromise } from "../../core/api-promise.js";
3
+ import { RequestOptions } from "../../internal/request-options.js";
4
+ export declare class IPFilters extends APIResource {
5
+ /**
6
+ * Create a custom IP-detection filter for a team (built-in filters are toggled via
7
+ * PUT /teams/{teamId}/ip-filters/{filterId})
8
+ */
9
+ create(teamID: string, body: IPFilterCreateParams, options?: RequestOptions): APIPromise<IPFilterCreateResponse>;
10
+ /**
11
+ * Enable, disable, or override a built-in or custom IP-detection filter for a team
12
+ */
13
+ update(filterID: string, params: IPFilterUpdateParams, options?: RequestOptions): APIPromise<IPFilterUpdateResponse>;
14
+ /**
15
+ * List the built-in and custom IP-detection filters available to a team, with
16
+ * their enabled state
17
+ */
18
+ list(teamID: string, options?: RequestOptions): APIPromise<IPFilterListResponse>;
19
+ /**
20
+ * Delete a custom IP-detection filter for a team
21
+ */
22
+ delete(filterID: string, params: IPFilterDeleteParams, options?: RequestOptions): APIPromise<IPFilterDeleteResponse>;
23
+ /**
24
+ * Draft a custom IP-detection filter instruction from reference assets (the caller
25
+ * must have read access to every asset)
26
+ */
27
+ draftInstruction(teamID: string, body: IPFilterDraftInstructionParams, options?: RequestOptions): APIPromise<IPFilterDraftInstructionResponse>;
28
+ }
29
+ export interface IPFilterCreateResponse {
30
+ /**
31
+ * The created custom filter, including its enabled state
32
+ */
33
+ filter: unknown;
34
+ }
35
+ export interface IPFilterUpdateResponse {
36
+ /**
37
+ * The updated filter, including its enabled state
38
+ */
39
+ filter: unknown;
40
+ }
41
+ export interface IPFilterListResponse {
42
+ /**
43
+ * Built-in and custom IP-detection filters for the team, each with its enabled
44
+ * state
45
+ */
46
+ filters: Array<unknown>;
47
+ }
48
+ export interface IPFilterDeleteResponse {
49
+ /**
50
+ * True when the filter was deleted
51
+ */
52
+ deleted: boolean;
53
+ }
54
+ export interface IPFilterDraftInstructionResponse {
55
+ /**
56
+ * Drafted natural-language detection instruction derived from the reference assets
57
+ */
58
+ instruction: string;
59
+ }
60
+ export interface IPFilterCreateParams {
61
+ /**
62
+ * Filter category; use "custom" for customer-authored filters
63
+ */
64
+ category: 'artist-style' | 'brand-trademark' | 'celebrity-likeness' | 'custom' | 'fictional-character';
65
+ /**
66
+ * Display name for the filter
67
+ */
68
+ name: string;
69
+ /**
70
+ * Whether the filter is active
71
+ */
72
+ enabled?: boolean;
73
+ /**
74
+ * Natural-language detection instruction (required for custom filters)
75
+ */
76
+ instruction?: string;
77
+ /**
78
+ * Optional reference assets used only to generate the instruction
79
+ */
80
+ sourceAssetIds?: Array<string>;
81
+ }
82
+ export interface IPFilterUpdateParams {
83
+ /**
84
+ * Path param: The team the filter belongs to
85
+ */
86
+ teamId: string;
87
+ /**
88
+ * Body param: Whether the filter is active
89
+ */
90
+ enabled?: boolean;
91
+ /**
92
+ * Body param: Natural-language detection instruction
93
+ */
94
+ instruction?: string;
95
+ /**
96
+ * Body param: Display name for the filter
97
+ */
98
+ name?: string;
99
+ }
100
+ export interface IPFilterDeleteParams {
101
+ /**
102
+ * The team the filter belongs to
103
+ */
104
+ teamId: string;
105
+ }
106
+ export interface IPFilterDraftInstructionParams {
107
+ /**
108
+ * Reference assets whose imagery seeds the drafted detection instruction
109
+ */
110
+ assetIds: Array<string>;
111
+ }
112
+ export declare namespace IPFilters {
113
+ export { 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, };
114
+ }
115
+ //# sourceMappingURL=ip-filters.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ip-filters.d.ts","sourceRoot":"","sources":["../../src/resources/teams/ip-filters.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE,qBAAa,SAAU,SAAQ,WAAW;IACxC;;;OAGG;IACH,MAAM,CACJ,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,oBAAoB,EAC1B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,sBAAsB,CAAC;IAIrC;;OAEG;IACH,MAAM,CACJ,QAAQ,EAAE,MAAM,EAChB,MAAM,EAAE,oBAAoB,EAC5B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,sBAAsB,CAAC;IAKrC;;;OAGG;IACH,IAAI,CAAC,MAAM,EAAE,MAAM,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,oBAAoB,CAAC;IAIhF;;OAEG;IACH,M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;IACnC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,WAAW,8BAA8B;IAC7C;;OAEG;IACH,QAAQ,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;CACzB;AAED,MAAM,CAAC,OAAO,WAAW,SAAS,CAAC;IACjC,OAAO,EACL,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,gCAAgC,IAAI,gCAAgC,EACzE,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,8BAA8B,IAAI,8BAA8B,GACtE,CAAC;CACH"}
@@ -0,0 +1,45 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.IPFilters = void 0;
5
+ const resource_1 = require("../../core/resource.js");
6
+ const path_1 = require("../../internal/utils/path.js");
7
+ class IPFilters extends resource_1.APIResource {
8
+ /**
9
+ * Create a custom IP-detection filter for a team (built-in filters are toggled via
10
+ * PUT /teams/{teamId}/ip-filters/{filterId})
11
+ */
12
+ create(teamID, body, options) {
13
+ return this._client.post((0, path_1.path) `/teams/${teamID}/ip-filters`, { body, ...options });
14
+ }
15
+ /**
16
+ * Enable, disable, or override a built-in or custom IP-detection filter for a team
17
+ */
18
+ update(filterID, params, options) {
19
+ const { teamId, ...body } = params;
20
+ return this._client.put((0, path_1.path) `/teams/${teamId}/ip-filters/${filterID}`, { body, ...options });
21
+ }
22
+ /**
23
+ * List the built-in and custom IP-detection filters available to a team, with
24
+ * their enabled state
25
+ */
26
+ list(teamID, options) {
27
+ return this._client.get((0, path_1.path) `/teams/${teamID}/ip-filters`, options);
28
+ }
29
+ /**
30
+ * Delete a custom IP-detection filter for a team
31
+ */
32
+ delete(filterID, params, options) {
33
+ const { teamId } = params;
34
+ return this._client.delete((0, path_1.path) `/teams/${teamId}/ip-filters/${filterID}`, options);
35
+ }
36
+ /**
37
+ * Draft a custom IP-detection filter instruction from reference assets (the caller
38
+ * must have read access to every asset)
39
+ */
40
+ draftInstruction(teamID, body, options) {
41
+ return this._client.post((0, path_1.path) `/teams/${teamID}/ip-filters/draft-instruction`, { body, ...options });
42
+ }
43
+ }
44
+ exports.IPFilters = IPFilters;
45
+ //# sourceMappingURL=ip-filters.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ip-filters.js","sourceRoot":"","sources":["../../src/resources/teams/ip-filters.ts"],"names":[],"mappings":";AAAA,sFAAsF;;;AAEtF,qDAAkD;AAGlD,uDAAiD;AAEjD,MAAa,SAAU,SAAQ,sBAAW;IACxC;;;OAGG;IACH,MAAM,CACJ,MAAc,EACd,IAA0B,EAC1B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,UAAU,MAAM,aAAa,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpF,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,QAAgB,EAChB,MAA4B,EAC5B,OAAwB;QAExB,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACnC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,UAAU,MAAM,eAAe,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/F,CAAC;IAED;;;OAGG;IACH,IAAI,CAAC,MAAc,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAA,WAAI,EAAA,UAAU,MAAM,aAAa,EAAE,OAAO,CAAC,CAAC;IACtE,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,QAAgB,EAChB,MAA4B,EAC5B,OAAwB;QAExB,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC;QAC1B,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,UAAU,MAAM,eAAe,QAAQ,EAAE,EAAE,OAAO,CAAC,CAAC;IACrF,CAAC;IAED;;;OAGG;IACH,gBAAgB,CACd,MAAc,EACd,IAAoC,EACpC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,UAAU,MAAM,+BAA+B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtG,CAAC;CACF;AAxDD,8BAwDC"}
@@ -0,0 +1,41 @@
1
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
2
+ import { APIResource } from "../../core/resource.mjs";
3
+ import { path } from "../../internal/utils/path.mjs";
4
+ export class IPFilters extends APIResource {
5
+ /**
6
+ * Create a custom IP-detection filter for a team (built-in filters are toggled via
7
+ * PUT /teams/{teamId}/ip-filters/{filterId})
8
+ */
9
+ create(teamID, body, options) {
10
+ return this._client.post(path `/teams/${teamID}/ip-filters`, { body, ...options });
11
+ }
12
+ /**
13
+ * Enable, disable, or override a built-in or custom IP-detection filter for a team
14
+ */
15
+ update(filterID, params, options) {
16
+ const { teamId, ...body } = params;
17
+ return this._client.put(path `/teams/${teamId}/ip-filters/${filterID}`, { body, ...options });
18
+ }
19
+ /**
20
+ * List the built-in and custom IP-detection filters available to a team, with
21
+ * their enabled state
22
+ */
23
+ list(teamID, options) {
24
+ return this._client.get(path `/teams/${teamID}/ip-filters`, options);
25
+ }
26
+ /**
27
+ * Delete a custom IP-detection filter for a team
28
+ */
29
+ delete(filterID, params, options) {
30
+ const { teamId } = params;
31
+ return this._client.delete(path `/teams/${teamId}/ip-filters/${filterID}`, options);
32
+ }
33
+ /**
34
+ * Draft a custom IP-detection filter instruction from reference assets (the caller
35
+ * must have read access to every asset)
36
+ */
37
+ draftInstruction(teamID, body, options) {
38
+ return this._client.post(path `/teams/${teamID}/ip-filters/draft-instruction`, { body, ...options });
39
+ }
40
+ }
41
+ //# sourceMappingURL=ip-filters.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ip-filters.mjs","sourceRoot":"","sources":["../../src/resources/teams/ip-filters.ts"],"names":[],"mappings":"AAAA,sFAAsF;AAEtF,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAGlD,OAAO,EAAE,IAAI,EAAE,sCAAkC;AAEjD,MAAM,OAAO,SAAU,SAAQ,WAAW;IACxC;;;OAGG;IACH,MAAM,CACJ,MAAc,EACd,IAA0B,EAC1B,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,UAAU,MAAM,aAAa,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACpF,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,QAAgB,EAChB,MAA4B,EAC5B,OAAwB;QAExB,MAAM,EAAE,MAAM,EAAE,GAAG,IAAI,EAAE,GAAG,MAAM,CAAC;QACnC,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,UAAU,MAAM,eAAe,QAAQ,EAAE,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IAC/F,CAAC;IAED;;;OAGG;IACH,IAAI,CAAC,MAAc,EAAE,OAAwB;QAC3C,OAAO,IAAI,CAAC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAA,UAAU,MAAM,aAAa,EAAE,OAAO,CAAC,CAAC;IACtE,CAAC;IAED;;OAEG;IACH,MAAM,CACJ,QAAgB,EAChB,MAA4B,EAC5B,OAAwB;QAExB,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC;QAC1B,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,UAAU,MAAM,eAAe,QAAQ,EAAE,EAAE,OAAO,CAAC,CAAC;IACrF,CAAC;IAED;;;OAGG;IACH,gBAAgB,CACd,MAAc,EACd,IAAoC,EACpC,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAI,CAAA,UAAU,MAAM,+BAA+B,EAAE,EAAE,IAAI,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC;IACtG,CAAC;CACF"}
@@ -0,0 +1,204 @@
1
+ import { APIResource } from "../../core/resource.mjs";
2
+ import { APIPromise } from "../../core/api-promise.mjs";
3
+ import { RequestOptions } from "../../internal/request-options.mjs";
4
+ export declare class Members extends APIResource {
5
+ /**
6
+ * Add a member to the team
7
+ */
8
+ create(teamID: string, body: MemberCreateParams, options?: RequestOptions): APIPromise<MemberCreateResponse>;
9
+ /**
10
+ * Update a team member's role and/or consumption limit
11
+ */
12
+ update(memberID: string, params: MemberUpdateParams, options?: RequestOptions): APIPromise<unknown>;
13
+ /**
14
+ * Remove a member from the team
15
+ */
16
+ delete(memberID: string, params: MemberDeleteParams, options?: RequestOptions): APIPromise<unknown>;
17
+ }
18
+ export interface MemberCreateResponse {
19
+ team: MemberCreateResponse.Team;
20
+ }
21
+ export declare namespace MemberCreateResponse {
22
+ interface Team {
23
+ /**
24
+ * The team ID (example: "eyVcnFJcR92BxBkz7N6g5w")
25
+ */
26
+ id: string;
27
+ /**
28
+ * The context of the team for the current authenticated user
29
+ */
30
+ context: Team.Context;
31
+ /**
32
+ * The team creation date as an ISO string (example: "2023-02-03T11:19:41.579Z")
33
+ */
34
+ createdAt: string;
35
+ /**
36
+ * The team name (example: "Scenario")
37
+ */
38
+ name: string;
39
+ /**
40
+ * The team plan
41
+ */
42
+ plan: 'cu-basic' | 'cu-creator' | 'cu-max' | 'cu-pro' | 'cu-pro-q3-25' | 'cu-team' | 'cu-team-v2' | 'enterprise' | 'essential' | 'free' | 'premium' | 'pro';
43
+ /**
44
+ * Projects of the team
45
+ */
46
+ projects: Array<Team.Project>;
47
+ /**
48
+ * The team type
49
+ */
50
+ type: 'personal' | 'shared';
51
+ /**
52
+ * The team update date as an ISO string (example: "2023-02-03T11:19:41.579Z")
53
+ */
54
+ updatedAt: string;
55
+ /**
56
+ * The team's avatar
57
+ */
58
+ avatar?: Team.Avatar;
59
+ /**
60
+ * BYOK pricing override. Admin-only — omitted for non-admin callers.
61
+ */
62
+ byok?: Team.Byok;
63
+ /**
64
+ * Team-wide default max consumption (CU) applied to every member over the billing
65
+ * period, unless overridden per member. Absent when no team-wide default is set.
66
+ */
67
+ defaultUserMaxConsumption?: number;
68
+ /**
69
+ * The IP detection enforcement posture for the team. 'disabled': IP detection is
70
+ * not performed. 'active-fail-open': IP detection runs; on detector error the
71
+ * request is allowed through. 'active-fail-closed': IP detection runs; on detector
72
+ * error the request is blocked.
73
+ */
74
+ ipDetectionEnforcement?: 'active-fail-closed' | 'active-fail-open' | 'disabled';
75
+ /**
76
+ * Quality Gate auto-detection default for the team.
77
+ */
78
+ qualityGateAutoDetect?: boolean;
79
+ }
80
+ namespace Team {
81
+ /**
82
+ * The context of the team for the current authenticated user
83
+ */
84
+ interface Context {
85
+ /**
86
+ * The number of invitations on this team
87
+ */
88
+ invitationsCount: number;
89
+ /**
90
+ * The number of API keys on this team
91
+ */
92
+ keysCount: number;
93
+ /**
94
+ * The authenticated user's role for this team
95
+ */
96
+ userRole: 'admin' | 'key' | 'member';
97
+ /**
98
+ * The number of users on this team
99
+ */
100
+ usersCount: number;
101
+ }
102
+ interface Project {
103
+ id: string;
104
+ createdAt: string;
105
+ name: string;
106
+ updatedAt: string;
107
+ avatar?: Project.Avatar;
108
+ /**
109
+ * When true, IP detection is switched off for this project.
110
+ */
111
+ disableIpDetection?: boolean;
112
+ /**
113
+ * Whether Quality Gate auto-detection runs on generation for this project.
114
+ */
115
+ qualityGateAutoDetect?: boolean;
116
+ }
117
+ namespace Project {
118
+ interface Avatar {
119
+ /**
120
+ * ID of the asset used as thumbnail if provided, otherwise undefined
121
+ */
122
+ assetId?: string;
123
+ /**
124
+ * Signed URL of the assetId or free url if assetId is undefined
125
+ */
126
+ url?: string;
127
+ }
128
+ }
129
+ /**
130
+ * The team's avatar
131
+ */
132
+ interface Avatar {
133
+ /**
134
+ * ID of the asset used as thumbnail if provided, otherwise undefined
135
+ */
136
+ assetId?: string;
137
+ /**
138
+ * Signed URL of the assetId or free url if assetId is undefined
139
+ */
140
+ url?: string;
141
+ }
142
+ /**
143
+ * BYOK pricing override. Admin-only — omitted for non-admin callers.
144
+ */
145
+ interface Byok {
146
+ markupMultiplier: number;
147
+ /**
148
+ * ISO timestamp of the last update. Optional — legacy rows may lack it.
149
+ */
150
+ updatedAt?: string;
151
+ /**
152
+ * Human-readable handle of who last updated the markup (display name).
153
+ */
154
+ updatedBy?: string;
155
+ }
156
+ }
157
+ }
158
+ export type MemberUpdateResponse = unknown;
159
+ export type MemberDeleteResponse = unknown;
160
+ export interface MemberCreateParams {
161
+ /**
162
+ * The email of the user you want to add to your team
163
+ */
164
+ email: string;
165
+ /**
166
+ * The project IDs for which the user is invited
167
+ */
168
+ projectIds?: Array<string>;
169
+ /**
170
+ * The role you want to give the user
171
+ */
172
+ role?: 'admin' | 'member';
173
+ }
174
+ export interface MemberUpdateParams {
175
+ /**
176
+ * Path param: The team Id the member belongs to
177
+ */
178
+ teamId: string;
179
+ /**
180
+ * Body param: Max consumption (CU) for this member over the billing period,
181
+ * overriding the team-wide default. Use a value `>= 0` to cap, `-1` for unlimited
182
+ * (uncapped), or `null` to remove the override and fall back to the team-wide
183
+ * default.
184
+ */
185
+ maxConsumption?: number;
186
+ /**
187
+ * Body param: For a human member: a built-in team role (`admin` | `member`). For
188
+ * an API-key member: a team-plane role — a `;`-separated list of `team.*` scopes
189
+ * (e.g. `"team.members.manage;team.usage.read"`). Only a human team admin can
190
+ * grant a write scope; `team.members.manage` also lets a team key manage the
191
+ * members, API keys and consumption cap of every project of the team.
192
+ */
193
+ role?: string;
194
+ }
195
+ export interface MemberDeleteParams {
196
+ /**
197
+ * The team Id concerned by the member removal
198
+ */
199
+ teamId: string;
200
+ }
201
+ export declare namespace Members {
202
+ export { type MemberCreateResponse as MemberCreateResponse, type MemberUpdateResponse as MemberUpdateResponse, type MemberDeleteResponse as MemberDeleteResponse, type MemberCreateParams as MemberCreateParams, type MemberUpdateParams as MemberUpdateParams, type MemberDeleteParams as MemberDeleteParams, };
203
+ }
204
+ //# sourceMappingURL=members.d.mts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"members.d.mts","sourceRoot":"","sources":["../../src/resources/teams/members.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,gCAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,mCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,2CAAuC;AAGhE,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;OAEG;IACH,MAAM,CACJ,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,kBAAkB,EACxB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,oBAAoB,CAAC;IAInC;;OAEG;IACH,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC;IAKnG;;OAEG;IACH,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC;CAIpG;AAED,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,oBAAoB,CAAC,IAAI,CAAC;CACjC;AAED,yBAAiB,oBAAoB,CAAC;IACpC,UAAiB,IAAI;QACnB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;WAEG;QACH,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC;QAEtB;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB;;WAEG;QACH,IAAI,EA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,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
@@ -0,0 +1,204 @@
1
+ import { APIResource } from "../../core/resource.js";
2
+ import { APIPromise } from "../../core/api-promise.js";
3
+ import { RequestOptions } from "../../internal/request-options.js";
4
+ export declare class Members extends APIResource {
5
+ /**
6
+ * Add a member to the team
7
+ */
8
+ create(teamID: string, body: MemberCreateParams, options?: RequestOptions): APIPromise<MemberCreateResponse>;
9
+ /**
10
+ * Update a team member's role and/or consumption limit
11
+ */
12
+ update(memberID: string, params: MemberUpdateParams, options?: RequestOptions): APIPromise<unknown>;
13
+ /**
14
+ * Remove a member from the team
15
+ */
16
+ delete(memberID: string, params: MemberDeleteParams, options?: RequestOptions): APIPromise<unknown>;
17
+ }
18
+ export interface MemberCreateResponse {
19
+ team: MemberCreateResponse.Team;
20
+ }
21
+ export declare namespace MemberCreateResponse {
22
+ interface Team {
23
+ /**
24
+ * The team ID (example: "eyVcnFJcR92BxBkz7N6g5w")
25
+ */
26
+ id: string;
27
+ /**
28
+ * The context of the team for the current authenticated user
29
+ */
30
+ context: Team.Context;
31
+ /**
32
+ * The team creation date as an ISO string (example: "2023-02-03T11:19:41.579Z")
33
+ */
34
+ createdAt: string;
35
+ /**
36
+ * The team name (example: "Scenario")
37
+ */
38
+ name: string;
39
+ /**
40
+ * The team plan
41
+ */
42
+ plan: 'cu-basic' | 'cu-creator' | 'cu-max' | 'cu-pro' | 'cu-pro-q3-25' | 'cu-team' | 'cu-team-v2' | 'enterprise' | 'essential' | 'free' | 'premium' | 'pro';
43
+ /**
44
+ * Projects of the team
45
+ */
46
+ projects: Array<Team.Project>;
47
+ /**
48
+ * The team type
49
+ */
50
+ type: 'personal' | 'shared';
51
+ /**
52
+ * The team update date as an ISO string (example: "2023-02-03T11:19:41.579Z")
53
+ */
54
+ updatedAt: string;
55
+ /**
56
+ * The team's avatar
57
+ */
58
+ avatar?: Team.Avatar;
59
+ /**
60
+ * BYOK pricing override. Admin-only — omitted for non-admin callers.
61
+ */
62
+ byok?: Team.Byok;
63
+ /**
64
+ * Team-wide default max consumption (CU) applied to every member over the billing
65
+ * period, unless overridden per member. Absent when no team-wide default is set.
66
+ */
67
+ defaultUserMaxConsumption?: number;
68
+ /**
69
+ * The IP detection enforcement posture for the team. 'disabled': IP detection is
70
+ * not performed. 'active-fail-open': IP detection runs; on detector error the
71
+ * request is allowed through. 'active-fail-closed': IP detection runs; on detector
72
+ * error the request is blocked.
73
+ */
74
+ ipDetectionEnforcement?: 'active-fail-closed' | 'active-fail-open' | 'disabled';
75
+ /**
76
+ * Quality Gate auto-detection default for the team.
77
+ */
78
+ qualityGateAutoDetect?: boolean;
79
+ }
80
+ namespace Team {
81
+ /**
82
+ * The context of the team for the current authenticated user
83
+ */
84
+ interface Context {
85
+ /**
86
+ * The number of invitations on this team
87
+ */
88
+ invitationsCount: number;
89
+ /**
90
+ * The number of API keys on this team
91
+ */
92
+ keysCount: number;
93
+ /**
94
+ * The authenticated user's role for this team
95
+ */
96
+ userRole: 'admin' | 'key' | 'member';
97
+ /**
98
+ * The number of users on this team
99
+ */
100
+ usersCount: number;
101
+ }
102
+ interface Project {
103
+ id: string;
104
+ createdAt: string;
105
+ name: string;
106
+ updatedAt: string;
107
+ avatar?: Project.Avatar;
108
+ /**
109
+ * When true, IP detection is switched off for this project.
110
+ */
111
+ disableIpDetection?: boolean;
112
+ /**
113
+ * Whether Quality Gate auto-detection runs on generation for this project.
114
+ */
115
+ qualityGateAutoDetect?: boolean;
116
+ }
117
+ namespace Project {
118
+ interface Avatar {
119
+ /**
120
+ * ID of the asset used as thumbnail if provided, otherwise undefined
121
+ */
122
+ assetId?: string;
123
+ /**
124
+ * Signed URL of the assetId or free url if assetId is undefined
125
+ */
126
+ url?: string;
127
+ }
128
+ }
129
+ /**
130
+ * The team's avatar
131
+ */
132
+ interface Avatar {
133
+ /**
134
+ * ID of the asset used as thumbnail if provided, otherwise undefined
135
+ */
136
+ assetId?: string;
137
+ /**
138
+ * Signed URL of the assetId or free url if assetId is undefined
139
+ */
140
+ url?: string;
141
+ }
142
+ /**
143
+ * BYOK pricing override. Admin-only — omitted for non-admin callers.
144
+ */
145
+ interface Byok {
146
+ markupMultiplier: number;
147
+ /**
148
+ * ISO timestamp of the last update. Optional — legacy rows may lack it.
149
+ */
150
+ updatedAt?: string;
151
+ /**
152
+ * Human-readable handle of who last updated the markup (display name).
153
+ */
154
+ updatedBy?: string;
155
+ }
156
+ }
157
+ }
158
+ export type MemberUpdateResponse = unknown;
159
+ export type MemberDeleteResponse = unknown;
160
+ export interface MemberCreateParams {
161
+ /**
162
+ * The email of the user you want to add to your team
163
+ */
164
+ email: string;
165
+ /**
166
+ * The project IDs for which the user is invited
167
+ */
168
+ projectIds?: Array<string>;
169
+ /**
170
+ * The role you want to give the user
171
+ */
172
+ role?: 'admin' | 'member';
173
+ }
174
+ export interface MemberUpdateParams {
175
+ /**
176
+ * Path param: The team Id the member belongs to
177
+ */
178
+ teamId: string;
179
+ /**
180
+ * Body param: Max consumption (CU) for this member over the billing period,
181
+ * overriding the team-wide default. Use a value `>= 0` to cap, `-1` for unlimited
182
+ * (uncapped), or `null` to remove the override and fall back to the team-wide
183
+ * default.
184
+ */
185
+ maxConsumption?: number;
186
+ /**
187
+ * Body param: For a human member: a built-in team role (`admin` | `member`). For
188
+ * an API-key member: a team-plane role — a `;`-separated list of `team.*` scopes
189
+ * (e.g. `"team.members.manage;team.usage.read"`). Only a human team admin can
190
+ * grant a write scope; `team.members.manage` also lets a team key manage the
191
+ * members, API keys and consumption cap of every project of the team.
192
+ */
193
+ role?: string;
194
+ }
195
+ export interface MemberDeleteParams {
196
+ /**
197
+ * The team Id concerned by the member removal
198
+ */
199
+ teamId: string;
200
+ }
201
+ export declare namespace Members {
202
+ export { type MemberCreateResponse as MemberCreateResponse, type MemberUpdateResponse as MemberUpdateResponse, type MemberDeleteResponse as MemberDeleteResponse, type MemberCreateParams as MemberCreateParams, type MemberUpdateParams as MemberUpdateParams, type MemberDeleteParams as MemberDeleteParams, };
203
+ }
204
+ //# sourceMappingURL=members.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"members.d.ts","sourceRoot":"","sources":["../../src/resources/teams/members.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,+BAA4B;AAClD,OAAO,EAAE,UAAU,EAAE,kCAA+B;AACpD,OAAO,EAAE,cAAc,EAAE,0CAAuC;AAGhE,qBAAa,OAAQ,SAAQ,WAAW;IACtC;;OAEG;IACH,MAAM,CACJ,MAAM,EAAE,MAAM,EACd,IAAI,EAAE,kBAAkB,EACxB,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,oBAAoB,CAAC;IAInC;;OAEG;IACH,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC;IAKnG;;OAEG;IACH,MAAM,CAAC,QAAQ,EAAE,MAAM,EAAE,MAAM,EAAE,kBAAkB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,OAAO,CAAC;CAIpG;AAED,MAAM,WAAW,oBAAoB;IACnC,IAAI,EAAE,oBAAoB,CAAC,IAAI,CAAC;CACjC;AAED,yBAAiB,oBAAoB,CAAC;IACpC,UAAiB,IAAI;QACnB;;WAEG;QACH,EAAE,EAAE,MAAM,CAAC;QAEX;;WAEG;QACH,OAAO,EAAE,IAAI,CAAC,OAAO,CAAC;QAEtB;;WAEG;QACH,SAAS,EAAE,MAAM,CAAC;QAElB;;WAEG;QACH,IAAI,EAAE,MAAM,CAAC;QAEb;;WAEG;QACH,IAAI,EACA,UAAU,GACV,YAAY,GACZ,QAAQ,GACR,QAAQ,GACR,cAAc,GACd,SAAS,GACT,YAAY,GACZ,YAAY,GACZ,WAAW,GACX,MAAM,GACN,SAAS,GACT,KAAK,CAAC;QAEV;;WAEG;QACH,QAAQ,EAAE,KAAK,CAAC,I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C;YAEjB;;eAEG;YACH,GAAG,CAAC,EAAE,MAAM,CAAC;SACd;QAED;;WAEG;QACH,UAAiB,IAAI;YACnB,gBAAgB,EAAE,MAAM,CAAC;YAEzB;;eAEG;YACH,SAAS,CAAC,EAAE,MAAM,CAAC;YAEnB;;eAEG;YACH,SAAS,CAAC,EAAE,MAAM,CAAC;SACpB;KACF;CACF;AAED,MAAM,MAAM,oBAAoB,GAAG,OAAO,CAAC;AAE3C,MAAM,MAAM,oBAAoB,GAAG,OAAO,CAAC;AAE3C,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IAEd;;OAEG;IACH,UAAU,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,CAAC;IAE3B;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,GAAG,QAAQ,CAAC;CAC3B;AAED,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;IAEf;;;;;OAKG;IACH,cAAc,CAAC,EAAE,MAAM,CAAC;IAExB;;;;;;OAMG;IACH,IAAI,CAAC,EAAE,MAAM,CAAC;CACf;AAED,MAAM,WAAW,kBAAkB;IACjC;;OAEG;IACH,MAAM,EAAE,MAAM,CAAC;CAChB;AAED,MAAM,CAAC,OAAO,WAAW,OAAO,CAAC;IAC/B,OAAO,EACL,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,EAC7C,KAAK,kBAAkB,IAAI,kBAAkB,GAC9C,CAAC;CACH"}
@@ -0,0 +1,30 @@
1
+ "use strict";
2
+ // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
3
+ Object.defineProperty(exports, "__esModule", { value: true });
4
+ exports.Members = void 0;
5
+ const resource_1 = require("../../core/resource.js");
6
+ const path_1 = require("../../internal/utils/path.js");
7
+ class Members extends resource_1.APIResource {
8
+ /**
9
+ * Add a member to the team
10
+ */
11
+ create(teamID, body, options) {
12
+ return this._client.post((0, path_1.path) `/teams/${teamID}/members`, { body, ...options });
13
+ }
14
+ /**
15
+ * Update a team member's role and/or consumption limit
16
+ */
17
+ update(memberID, params, options) {
18
+ const { teamId, ...body } = params;
19
+ return this._client.put((0, path_1.path) `/teams/${teamId}/members/${memberID}`, { body, ...options });
20
+ }
21
+ /**
22
+ * Remove a member from the team
23
+ */
24
+ delete(memberID, params, options) {
25
+ const { teamId } = params;
26
+ return this._client.delete((0, path_1.path) `/teams/${teamId}/members/${memberID}`, options);
27
+ }
28
+ }
29
+ exports.Members = Members;
30
+ //# sourceMappingURL=members.js.map