openai 6.35.0 → 6.37.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 (777) hide show
  1. package/CHANGELOG.md +48 -0
  2. package/azure.d.mts +4 -1
  3. package/azure.d.mts.map +1 -1
  4. package/azure.d.ts +4 -1
  5. package/azure.d.ts.map +1 -1
  6. package/azure.js +4 -3
  7. package/azure.js.map +1 -1
  8. package/azure.mjs +4 -3
  9. package/azure.mjs.map +1 -1
  10. package/beta/realtime/websocket.d.mts.map +1 -1
  11. package/beta/realtime/websocket.d.ts.map +1 -1
  12. package/beta/realtime/websocket.js +7 -2
  13. package/beta/realtime/websocket.js.map +1 -1
  14. package/beta/realtime/websocket.mjs +7 -2
  15. package/beta/realtime/websocket.mjs.map +1 -1
  16. package/beta/realtime/ws.d.mts.map +1 -1
  17. package/beta/realtime/ws.d.ts.map +1 -1
  18. package/beta/realtime/ws.js +5 -1
  19. package/beta/realtime/ws.js.map +1 -1
  20. package/beta/realtime/ws.mjs +5 -1
  21. package/beta/realtime/ws.mjs.map +1 -1
  22. package/bin/migration-config.json +735 -0
  23. package/client.d.mts +30 -8
  24. package/client.d.mts.map +1 -1
  25. package/client.d.ts +30 -8
  26. package/client.d.ts.map +1 -1
  27. package/client.js +78 -22
  28. package/client.js.map +1 -1
  29. package/client.mjs +78 -22
  30. package/client.mjs.map +1 -1
  31. package/core/pagination.d.mts +18 -0
  32. package/core/pagination.d.mts.map +1 -1
  33. package/core/pagination.d.ts +18 -0
  34. package/core/pagination.d.ts.map +1 -1
  35. package/core/pagination.js +32 -1
  36. package/core/pagination.js.map +1 -1
  37. package/core/pagination.mjs +30 -0
  38. package/core/pagination.mjs.map +1 -1
  39. package/internal/request-options.d.mts +4 -0
  40. package/internal/request-options.d.mts.map +1 -1
  41. package/internal/request-options.d.ts +4 -0
  42. package/internal/request-options.d.ts.map +1 -1
  43. package/internal/request-options.js.map +1 -1
  44. package/internal/request-options.mjs.map +1 -1
  45. package/internal/utils/log.d.mts.map +1 -1
  46. package/internal/utils/log.d.ts.map +1 -1
  47. package/internal/utils/log.js +2 -0
  48. package/internal/utils/log.js.map +1 -1
  49. package/internal/utils/log.mjs +2 -0
  50. package/internal/utils/log.mjs.map +1 -1
  51. package/package.json +1 -1
  52. package/realtime/websocket.d.mts.map +1 -1
  53. package/realtime/websocket.d.ts.map +1 -1
  54. package/realtime/websocket.js +7 -2
  55. package/realtime/websocket.js.map +1 -1
  56. package/realtime/websocket.mjs +7 -2
  57. package/realtime/websocket.mjs.map +1 -1
  58. package/realtime/ws.d.mts.map +1 -1
  59. package/realtime/ws.d.ts.map +1 -1
  60. package/realtime/ws.js +5 -1
  61. package/realtime/ws.js.map +1 -1
  62. package/realtime/ws.mjs +5 -1
  63. package/realtime/ws.mjs.map +1 -1
  64. package/resources/admin/admin.d.mts +10 -0
  65. package/resources/admin/admin.d.mts.map +1 -0
  66. package/resources/admin/admin.d.ts +10 -0
  67. package/resources/admin/admin.d.ts.map +1 -0
  68. package/resources/admin/admin.js +17 -0
  69. package/resources/admin/admin.js.map +1 -0
  70. package/resources/admin/admin.mjs +12 -0
  71. package/resources/admin/admin.mjs.map +1 -0
  72. package/resources/admin/index.d.mts +3 -0
  73. package/resources/admin/index.d.mts.map +1 -0
  74. package/resources/admin/index.d.ts +3 -0
  75. package/resources/admin/index.d.ts.map +1 -0
  76. package/resources/admin/index.js +9 -0
  77. package/resources/admin/index.js.map +1 -0
  78. package/resources/admin/index.mjs +4 -0
  79. package/resources/admin/index.mjs.map +1 -0
  80. package/resources/admin/organization/admin-api-keys.d.mts +140 -0
  81. package/resources/admin/organization/admin-api-keys.d.mts.map +1 -0
  82. package/resources/admin/organization/admin-api-keys.d.ts +140 -0
  83. package/resources/admin/organization/admin-api-keys.d.ts.map +1 -0
  84. package/resources/admin/organization/admin-api-keys.js +81 -0
  85. package/resources/admin/organization/admin-api-keys.js.map +1 -0
  86. package/resources/admin/organization/admin-api-keys.mjs +77 -0
  87. package/resources/admin/organization/admin-api-keys.mjs.map +1 -0
  88. package/resources/admin/organization/audit-logs.d.mts +1267 -0
  89. package/resources/admin/organization/audit-logs.d.mts.map +1 -0
  90. package/resources/admin/organization/audit-logs.d.ts +1267 -0
  91. package/resources/admin/organization/audit-logs.d.ts.map +1 -0
  92. package/resources/admin/organization/audit-logs.js +31 -0
  93. package/resources/admin/organization/audit-logs.js.map +1 -0
  94. package/resources/admin/organization/audit-logs.mjs +27 -0
  95. package/resources/admin/organization/audit-logs.mjs.map +1 -0
  96. package/resources/admin/organization/certificates.d.mts +322 -0
  97. package/resources/admin/organization/certificates.d.mts.map +1 -0
  98. package/resources/admin/organization/certificates.d.ts +322 -0
  99. package/resources/admin/organization/certificates.d.ts.map +1 -0
  100. package/resources/admin/organization/certificates.js +144 -0
  101. package/resources/admin/organization/certificates.js.map +1 -0
  102. package/resources/admin/organization/certificates.mjs +140 -0
  103. package/resources/admin/organization/certificates.mjs.map +1 -0
  104. package/resources/admin/organization/groups/groups.d.mts +148 -0
  105. package/resources/admin/organization/groups/groups.d.mts.map +1 -0
  106. package/resources/admin/organization/groups/groups.d.ts +148 -0
  107. package/resources/admin/organization/groups/groups.d.ts.map +1 -0
  108. package/resources/admin/organization/groups/groups.js +92 -0
  109. package/resources/admin/organization/groups/groups.js.map +1 -0
  110. package/resources/admin/organization/groups/groups.mjs +87 -0
  111. package/resources/admin/organization/groups/groups.mjs.map +1 -0
  112. package/resources/admin/organization/groups/index.d.mts +4 -0
  113. package/resources/admin/organization/groups/index.d.mts.map +1 -0
  114. package/resources/admin/organization/groups/index.d.ts +4 -0
  115. package/resources/admin/organization/groups/index.d.ts.map +1 -0
  116. package/resources/admin/organization/groups/index.js +11 -0
  117. package/resources/admin/organization/groups/index.js.map +1 -0
  118. package/resources/admin/organization/groups/index.mjs +5 -0
  119. package/resources/admin/organization/groups/index.mjs.map +1 -0
  120. package/resources/admin/organization/groups/roles.d.mts +182 -0
  121. package/resources/admin/organization/groups/roles.d.mts.map +1 -0
  122. package/resources/admin/organization/groups/roles.d.ts +182 -0
  123. package/resources/admin/organization/groups/roles.d.ts.map +1 -0
  124. package/resources/admin/organization/groups/roles.js +65 -0
  125. package/resources/admin/organization/groups/roles.js.map +1 -0
  126. package/resources/admin/organization/groups/roles.mjs +61 -0
  127. package/resources/admin/organization/groups/roles.mjs.map +1 -0
  128. package/resources/admin/organization/groups/users.d.mts +116 -0
  129. package/resources/admin/organization/groups/users.d.mts.map +1 -0
  130. package/resources/admin/organization/groups/users.d.ts +116 -0
  131. package/resources/admin/organization/groups/users.d.ts.map +1 -0
  132. package/resources/admin/organization/groups/users.js +65 -0
  133. package/resources/admin/organization/groups/users.js.map +1 -0
  134. package/resources/admin/organization/groups/users.mjs +61 -0
  135. package/resources/admin/organization/groups/users.mjs.map +1 -0
  136. package/resources/admin/organization/groups.d.mts +2 -0
  137. package/resources/admin/organization/groups.d.mts.map +1 -0
  138. package/resources/admin/organization/groups.d.ts +2 -0
  139. package/resources/admin/organization/groups.d.ts.map +1 -0
  140. package/resources/admin/organization/groups.js +6 -0
  141. package/resources/admin/organization/groups.js.map +1 -0
  142. package/resources/admin/organization/groups.mjs +3 -0
  143. package/resources/admin/organization/groups.mjs.map +1 -0
  144. package/resources/admin/organization/index.d.mts +11 -0
  145. package/resources/admin/organization/index.d.mts.map +1 -0
  146. package/resources/admin/organization/index.d.ts +11 -0
  147. package/resources/admin/organization/index.d.ts.map +1 -0
  148. package/resources/admin/organization/index.js +25 -0
  149. package/resources/admin/organization/index.js.map +1 -0
  150. package/resources/admin/organization/index.mjs +12 -0
  151. package/resources/admin/organization/index.mjs.map +1 -0
  152. package/resources/admin/organization/invites.d.mts +152 -0
  153. package/resources/admin/organization/invites.d.mts.map +1 -0
  154. package/resources/admin/organization/invites.d.ts +152 -0
  155. package/resources/admin/organization/invites.d.ts.map +1 -0
  156. package/resources/admin/organization/invites.js +83 -0
  157. package/resources/admin/organization/invites.js.map +1 -0
  158. package/resources/admin/organization/invites.mjs +79 -0
  159. package/resources/admin/organization/invites.mjs.map +1 -0
  160. package/resources/admin/organization/organization.d.mts +42 -0
  161. package/resources/admin/organization/organization.d.mts.map +1 -0
  162. package/resources/admin/organization/organization.d.ts +42 -0
  163. package/resources/admin/organization/organization.d.ts.map +1 -0
  164. package/resources/admin/organization/organization.js +49 -0
  165. package/resources/admin/organization/organization.js.map +1 -0
  166. package/resources/admin/organization/organization.mjs +44 -0
  167. package/resources/admin/organization/organization.mjs.map +1 -0
  168. package/resources/admin/organization/projects/api-keys.d.mts +167 -0
  169. package/resources/admin/organization/projects/api-keys.d.mts.map +1 -0
  170. package/resources/admin/organization/projects/api-keys.d.ts +167 -0
  171. package/resources/admin/organization/projects/api-keys.d.ts.map +1 -0
  172. package/resources/admin/organization/projects/api-keys.js +68 -0
  173. package/resources/admin/organization/projects/api-keys.js.map +1 -0
  174. package/resources/admin/organization/projects/api-keys.mjs +64 -0
  175. package/resources/admin/organization/projects/api-keys.mjs.map +1 -0
  176. package/resources/admin/organization/projects/certificates.d.mts +186 -0
  177. package/resources/admin/organization/projects/certificates.d.mts.map +1 -0
  178. package/resources/admin/organization/projects/certificates.d.ts +186 -0
  179. package/resources/admin/organization/projects/certificates.d.ts.map +1 -0
  180. package/resources/admin/organization/projects/certificates.js +64 -0
  181. package/resources/admin/organization/projects/certificates.js.map +1 -0
  182. package/resources/admin/organization/projects/certificates.mjs +60 -0
  183. package/resources/admin/organization/projects/certificates.mjs.map +1 -0
  184. package/resources/admin/organization/projects/groups/groups.d.mts +119 -0
  185. package/resources/admin/organization/projects/groups/groups.d.mts.map +1 -0
  186. package/resources/admin/organization/projects/groups/groups.d.ts +119 -0
  187. package/resources/admin/organization/projects/groups/groups.d.ts.map +1 -0
  188. package/resources/admin/organization/projects/groups/groups.js +73 -0
  189. package/resources/admin/organization/projects/groups/groups.js.map +1 -0
  190. package/resources/admin/organization/projects/groups/groups.mjs +68 -0
  191. package/resources/admin/organization/projects/groups/groups.mjs.map +1 -0
  192. package/resources/admin/organization/projects/groups/index.d.mts +3 -0
  193. package/resources/admin/organization/projects/groups/index.d.mts.map +1 -0
  194. package/resources/admin/organization/projects/groups/index.d.ts +3 -0
  195. package/resources/admin/organization/projects/groups/index.d.ts.map +1 -0
  196. package/resources/admin/organization/projects/groups/index.js +9 -0
  197. package/resources/admin/organization/projects/groups/index.js.map +1 -0
  198. package/resources/admin/organization/projects/groups/index.mjs +4 -0
  199. package/resources/admin/organization/projects/groups/index.mjs.map +1 -0
  200. package/resources/admin/organization/projects/groups/roles.d.mts +195 -0
  201. package/resources/admin/organization/projects/groups/roles.d.mts.map +1 -0
  202. package/resources/admin/organization/projects/groups/roles.d.ts +195 -0
  203. package/resources/admin/organization/projects/groups/roles.d.ts.map +1 -0
  204. package/resources/admin/organization/projects/groups/roles.js +68 -0
  205. package/resources/admin/organization/projects/groups/roles.js.map +1 -0
  206. package/resources/admin/organization/projects/groups/roles.mjs +64 -0
  207. package/resources/admin/organization/projects/groups/roles.mjs.map +1 -0
  208. package/resources/admin/organization/projects/groups.d.mts +2 -0
  209. package/resources/admin/organization/projects/groups.d.mts.map +1 -0
  210. package/resources/admin/organization/projects/groups.d.ts +2 -0
  211. package/resources/admin/organization/projects/groups.d.ts.map +1 -0
  212. package/resources/admin/organization/projects/groups.js +6 -0
  213. package/resources/admin/organization/projects/groups.js.map +1 -0
  214. package/resources/admin/organization/projects/groups.mjs +3 -0
  215. package/resources/admin/organization/projects/groups.mjs.map +1 -0
  216. package/resources/admin/organization/projects/index.d.mts +9 -0
  217. package/resources/admin/organization/projects/index.d.mts.map +1 -0
  218. package/resources/admin/organization/projects/index.d.ts +9 -0
  219. package/resources/admin/organization/projects/index.d.ts.map +1 -0
  220. package/resources/admin/organization/projects/index.js +21 -0
  221. package/resources/admin/organization/projects/index.js.map +1 -0
  222. package/resources/admin/organization/projects/index.mjs +10 -0
  223. package/resources/admin/organization/projects/index.mjs.map +1 -0
  224. package/resources/admin/organization/projects/projects.d.mts +172 -0
  225. package/resources/admin/organization/projects/projects.d.mts.map +1 -0
  226. package/resources/admin/organization/projects/projects.d.ts +172 -0
  227. package/resources/admin/organization/projects/projects.d.ts.map +1 -0
  228. package/resources/admin/organization/projects/projects.js +133 -0
  229. package/resources/admin/organization/projects/projects.js.map +1 -0
  230. package/resources/admin/organization/projects/projects.mjs +128 -0
  231. package/resources/admin/organization/projects/projects.mjs.map +1 -0
  232. package/resources/admin/organization/projects/rate-limits.d.mts +120 -0
  233. package/resources/admin/organization/projects/rate-limits.d.mts.map +1 -0
  234. package/resources/admin/organization/projects/rate-limits.d.ts +120 -0
  235. package/resources/admin/organization/projects/rate-limits.d.ts.map +1 -0
  236. package/resources/admin/organization/projects/rate-limits.js +47 -0
  237. package/resources/admin/organization/projects/rate-limits.js.map +1 -0
  238. package/resources/admin/organization/projects/rate-limits.mjs +43 -0
  239. package/resources/admin/organization/projects/rate-limits.mjs.map +1 -0
  240. package/resources/admin/organization/projects/roles.d.mts +127 -0
  241. package/resources/admin/organization/projects/roles.d.mts.map +1 -0
  242. package/resources/admin/organization/projects/roles.d.ts +127 -0
  243. package/resources/admin/organization/projects/roles.d.ts.map +1 -0
  244. package/resources/admin/organization/projects/roles.js +89 -0
  245. package/resources/admin/organization/projects/roles.js.map +1 -0
  246. package/resources/admin/organization/projects/roles.mjs +85 -0
  247. package/resources/admin/organization/projects/roles.mjs.map +1 -0
  248. package/resources/admin/organization/projects/service-accounts.d.mts +141 -0
  249. package/resources/admin/organization/projects/service-accounts.d.mts.map +1 -0
  250. package/resources/admin/organization/projects/service-accounts.d.ts +141 -0
  251. package/resources/admin/organization/projects/service-accounts.d.ts.map +1 -0
  252. package/resources/admin/organization/projects/service-accounts.js +85 -0
  253. package/resources/admin/organization/projects/service-accounts.js.map +1 -0
  254. package/resources/admin/organization/projects/service-accounts.mjs +81 -0
  255. package/resources/admin/organization/projects/service-accounts.mjs.map +1 -0
  256. package/resources/admin/organization/projects/users/index.d.mts +3 -0
  257. package/resources/admin/organization/projects/users/index.d.mts.map +1 -0
  258. package/resources/admin/organization/projects/users/index.d.ts +3 -0
  259. package/resources/admin/organization/projects/users/index.d.ts.map +1 -0
  260. package/resources/admin/organization/projects/users/index.js +9 -0
  261. package/resources/admin/organization/projects/users/index.js.map +1 -0
  262. package/resources/admin/organization/projects/users/index.mjs +4 -0
  263. package/resources/admin/organization/projects/users/index.mjs.map +1 -0
  264. package/resources/admin/organization/projects/users/roles.d.mts +169 -0
  265. package/resources/admin/organization/projects/users/roles.d.mts.map +1 -0
  266. package/resources/admin/organization/projects/users/roles.d.ts +169 -0
  267. package/resources/admin/organization/projects/users/roles.d.ts.map +1 -0
  268. package/resources/admin/organization/projects/users/roles.js +68 -0
  269. package/resources/admin/organization/projects/users/roles.js.map +1 -0
  270. package/resources/admin/organization/projects/users/roles.mjs +64 -0
  271. package/resources/admin/organization/projects/users/roles.mjs.map +1 -0
  272. package/resources/admin/organization/projects/users/users.d.mts +157 -0
  273. package/resources/admin/organization/projects/users/users.d.mts.map +1 -0
  274. package/resources/admin/organization/projects/users/users.d.ts +157 -0
  275. package/resources/admin/organization/projects/users/users.d.ts.map +1 -0
  276. package/resources/admin/organization/projects/users/users.js +116 -0
  277. package/resources/admin/organization/projects/users/users.js.map +1 -0
  278. package/resources/admin/organization/projects/users/users.mjs +111 -0
  279. package/resources/admin/organization/projects/users/users.mjs.map +1 -0
  280. package/resources/admin/organization/projects/users.d.mts +2 -0
  281. package/resources/admin/organization/projects/users.d.mts.map +1 -0
  282. package/resources/admin/organization/projects/users.d.ts +2 -0
  283. package/resources/admin/organization/projects/users.d.ts.map +1 -0
  284. package/resources/admin/organization/projects/users.js +6 -0
  285. package/resources/admin/organization/projects/users.js.map +1 -0
  286. package/resources/admin/organization/projects/users.mjs +3 -0
  287. package/resources/admin/organization/projects/users.mjs.map +1 -0
  288. package/resources/admin/organization/projects.d.mts +2 -0
  289. package/resources/admin/organization/projects.d.mts.map +1 -0
  290. package/resources/admin/organization/projects.d.ts +2 -0
  291. package/resources/admin/organization/projects.d.ts.map +1 -0
  292. package/resources/admin/organization/projects.js +6 -0
  293. package/resources/admin/organization/projects.js.map +1 -0
  294. package/resources/admin/organization/projects.mjs +3 -0
  295. package/resources/admin/organization/projects.mjs.map +1 -0
  296. package/resources/admin/organization/roles.d.mts +142 -0
  297. package/resources/admin/organization/roles.d.mts.map +1 -0
  298. package/resources/admin/organization/roles.d.ts +142 -0
  299. package/resources/admin/organization/roles.d.ts.map +1 -0
  300. package/resources/admin/organization/roles.js +80 -0
  301. package/resources/admin/organization/roles.js.map +1 -0
  302. package/resources/admin/organization/roles.mjs +76 -0
  303. package/resources/admin/organization/roles.mjs.map +1 -0
  304. package/resources/admin/organization/usage.d.mts +3564 -0
  305. package/resources/admin/organization/usage.d.mts.map +1 -0
  306. package/resources/admin/organization/usage.d.ts +3564 -0
  307. package/resources/admin/organization/usage.d.ts.map +1 -0
  308. package/resources/admin/organization/usage.js +171 -0
  309. package/resources/admin/organization/usage.js.map +1 -0
  310. package/resources/admin/organization/usage.mjs +167 -0
  311. package/resources/admin/organization/usage.mjs.map +1 -0
  312. package/resources/admin/organization/users/index.d.mts +3 -0
  313. package/resources/admin/organization/users/index.d.mts.map +1 -0
  314. package/resources/admin/organization/users/index.d.ts +3 -0
  315. package/resources/admin/organization/users/index.d.ts.map +1 -0
  316. package/resources/admin/organization/users/index.js +9 -0
  317. package/resources/admin/organization/users/index.js.map +1 -0
  318. package/resources/admin/organization/users/index.mjs +4 -0
  319. package/resources/admin/organization/users/index.mjs.map +1 -0
  320. package/resources/admin/organization/users/roles.d.mts +156 -0
  321. package/resources/admin/organization/users/roles.d.mts.map +1 -0
  322. package/resources/admin/organization/users/roles.d.ts +156 -0
  323. package/resources/admin/organization/users/roles.d.ts.map +1 -0
  324. package/resources/admin/organization/users/roles.js +65 -0
  325. package/resources/admin/organization/users/roles.js.map +1 -0
  326. package/resources/admin/organization/users/roles.mjs +61 -0
  327. package/resources/admin/organization/users/roles.mjs.map +1 -0
  328. package/resources/admin/organization/users/users.d.mts +185 -0
  329. package/resources/admin/organization/users/users.d.mts.map +1 -0
  330. package/resources/admin/organization/users/users.d.ts +185 -0
  331. package/resources/admin/organization/users/users.d.ts.map +1 -0
  332. package/resources/admin/organization/users/users.js +84 -0
  333. package/resources/admin/organization/users/users.js.map +1 -0
  334. package/resources/admin/organization/users/users.mjs +79 -0
  335. package/resources/admin/organization/users/users.mjs.map +1 -0
  336. package/resources/admin/organization/users.d.mts +2 -0
  337. package/resources/admin/organization/users.d.mts.map +1 -0
  338. package/resources/admin/organization/users.d.ts +2 -0
  339. package/resources/admin/organization/users.d.ts.map +1 -0
  340. package/resources/admin/organization/users.js +6 -0
  341. package/resources/admin/organization/users.js.map +1 -0
  342. package/resources/admin/organization/users.mjs +3 -0
  343. package/resources/admin/organization/users.mjs.map +1 -0
  344. package/resources/admin/organization.d.mts +2 -0
  345. package/resources/admin/organization.d.mts.map +1 -0
  346. package/resources/admin/organization.d.ts +2 -0
  347. package/resources/admin/organization.d.ts.map +1 -0
  348. package/resources/admin/organization.js +6 -0
  349. package/resources/admin/organization.js.map +1 -0
  350. package/resources/admin/organization.mjs +3 -0
  351. package/resources/admin/organization.mjs.map +1 -0
  352. package/resources/admin.d.mts +2 -0
  353. package/resources/admin.d.mts.map +1 -0
  354. package/resources/admin.d.ts +2 -0
  355. package/resources/admin.d.ts.map +1 -0
  356. package/resources/admin.js +6 -0
  357. package/resources/admin.js.map +1 -0
  358. package/resources/admin.mjs +3 -0
  359. package/resources/admin.mjs.map +1 -0
  360. package/resources/audio/speech.d.mts.map +1 -1
  361. package/resources/audio/speech.d.ts.map +1 -1
  362. package/resources/audio/speech.js +1 -0
  363. package/resources/audio/speech.js.map +1 -1
  364. package/resources/audio/speech.mjs +1 -0
  365. package/resources/audio/speech.mjs.map +1 -1
  366. package/resources/audio/transcriptions.d.mts.map +1 -1
  367. package/resources/audio/transcriptions.d.ts.map +1 -1
  368. package/resources/audio/transcriptions.js +1 -0
  369. package/resources/audio/transcriptions.js.map +1 -1
  370. package/resources/audio/transcriptions.mjs +1 -0
  371. package/resources/audio/transcriptions.mjs.map +1 -1
  372. package/resources/audio/translations.d.mts.map +1 -1
  373. package/resources/audio/translations.d.ts.map +1 -1
  374. package/resources/audio/translations.js +1 -1
  375. package/resources/audio/translations.js.map +1 -1
  376. package/resources/audio/translations.mjs +1 -1
  377. package/resources/audio/translations.mjs.map +1 -1
  378. package/resources/batches.d.mts.map +1 -1
  379. package/resources/batches.d.ts.map +1 -1
  380. package/resources/batches.js +11 -4
  381. package/resources/batches.js.map +1 -1
  382. package/resources/batches.mjs +11 -4
  383. package/resources/batches.mjs.map +1 -1
  384. package/resources/beta/assistants.d.mts.map +1 -1
  385. package/resources/beta/assistants.d.ts.map +1 -1
  386. package/resources/beta/assistants.js +5 -0
  387. package/resources/beta/assistants.js.map +1 -1
  388. package/resources/beta/assistants.mjs +5 -0
  389. package/resources/beta/assistants.mjs.map +1 -1
  390. package/resources/beta/chatkit/sessions.d.mts.map +1 -1
  391. package/resources/beta/chatkit/sessions.d.ts.map +1 -1
  392. package/resources/beta/chatkit/sessions.js +2 -0
  393. package/resources/beta/chatkit/sessions.js.map +1 -1
  394. package/resources/beta/chatkit/sessions.mjs +2 -0
  395. package/resources/beta/chatkit/sessions.mjs.map +1 -1
  396. package/resources/beta/chatkit/threads.d.mts.map +1 -1
  397. package/resources/beta/chatkit/threads.d.ts.map +1 -1
  398. package/resources/beta/chatkit/threads.js +9 -1
  399. package/resources/beta/chatkit/threads.js.map +1 -1
  400. package/resources/beta/chatkit/threads.mjs +9 -1
  401. package/resources/beta/chatkit/threads.mjs.map +1 -1
  402. package/resources/beta/realtime/sessions.d.mts.map +1 -1
  403. package/resources/beta/realtime/sessions.d.ts.map +1 -1
  404. package/resources/beta/realtime/sessions.js +1 -0
  405. package/resources/beta/realtime/sessions.js.map +1 -1
  406. package/resources/beta/realtime/sessions.mjs +1 -0
  407. package/resources/beta/realtime/sessions.mjs.map +1 -1
  408. package/resources/beta/realtime/transcription-sessions.d.mts.map +1 -1
  409. package/resources/beta/realtime/transcription-sessions.d.ts.map +1 -1
  410. package/resources/beta/realtime/transcription-sessions.js +1 -0
  411. package/resources/beta/realtime/transcription-sessions.js.map +1 -1
  412. package/resources/beta/realtime/transcription-sessions.mjs +1 -0
  413. package/resources/beta/realtime/transcription-sessions.mjs.map +1 -1
  414. package/resources/beta/threads/messages.d.mts.map +1 -1
  415. package/resources/beta/threads/messages.d.ts.map +1 -1
  416. package/resources/beta/threads/messages.js +5 -0
  417. package/resources/beta/threads/messages.js.map +1 -1
  418. package/resources/beta/threads/messages.mjs +5 -0
  419. package/resources/beta/threads/messages.mjs.map +1 -1
  420. package/resources/beta/threads/runs/runs.d.mts.map +1 -1
  421. package/resources/beta/threads/runs/runs.d.ts.map +1 -1
  422. package/resources/beta/threads/runs/runs.js +6 -0
  423. package/resources/beta/threads/runs/runs.js.map +1 -1
  424. package/resources/beta/threads/runs/runs.mjs +6 -0
  425. package/resources/beta/threads/runs/runs.mjs.map +1 -1
  426. package/resources/beta/threads/runs/steps.d.mts.map +1 -1
  427. package/resources/beta/threads/runs/steps.d.ts.map +1 -1
  428. package/resources/beta/threads/runs/steps.js +2 -0
  429. package/resources/beta/threads/runs/steps.js.map +1 -1
  430. package/resources/beta/threads/runs/steps.mjs +2 -0
  431. package/resources/beta/threads/runs/steps.mjs.map +1 -1
  432. package/resources/beta/threads/threads.d.mts.map +1 -1
  433. package/resources/beta/threads/threads.d.ts.map +1 -1
  434. package/resources/beta/threads/threads.js +5 -0
  435. package/resources/beta/threads/threads.js.map +1 -1
  436. package/resources/beta/threads/threads.mjs +5 -0
  437. package/resources/beta/threads/threads.mjs.map +1 -1
  438. package/resources/chat/completions/completions.d.mts +4 -4
  439. package/resources/chat/completions/completions.d.mts.map +1 -1
  440. package/resources/chat/completions/completions.d.ts +4 -4
  441. package/resources/chat/completions/completions.d.ts.map +1 -1
  442. package/resources/chat/completions/completions.js +24 -5
  443. package/resources/chat/completions/completions.js.map +1 -1
  444. package/resources/chat/completions/completions.mjs +24 -5
  445. package/resources/chat/completions/completions.mjs.map +1 -1
  446. package/resources/chat/completions/messages.js +1 -1
  447. package/resources/chat/completions/messages.js.map +1 -1
  448. package/resources/chat/completions/messages.mjs +1 -1
  449. package/resources/chat/completions/messages.mjs.map +1 -1
  450. package/resources/completions.d.mts.map +1 -1
  451. package/resources/completions.d.ts.map +1 -1
  452. package/resources/completions.js +6 -1
  453. package/resources/completions.js.map +1 -1
  454. package/resources/completions.mjs +6 -1
  455. package/resources/completions.mjs.map +1 -1
  456. package/resources/containers/containers.d.mts.map +1 -1
  457. package/resources/containers/containers.d.ts.map +1 -1
  458. package/resources/containers/containers.js +11 -3
  459. package/resources/containers/containers.js.map +1 -1
  460. package/resources/containers/containers.mjs +11 -3
  461. package/resources/containers/containers.mjs.map +1 -1
  462. package/resources/containers/files/content.d.mts.map +1 -1
  463. package/resources/containers/files/content.d.ts.map +1 -1
  464. package/resources/containers/files/content.js +1 -0
  465. package/resources/containers/files/content.js.map +1 -1
  466. package/resources/containers/files/content.mjs +1 -0
  467. package/resources/containers/files/content.mjs.map +1 -1
  468. package/resources/containers/files/files.d.mts.map +1 -1
  469. package/resources/containers/files/files.d.ts.map +1 -1
  470. package/resources/containers/files/files.js +7 -2
  471. package/resources/containers/files/files.js.map +1 -1
  472. package/resources/containers/files/files.mjs +7 -2
  473. package/resources/containers/files/files.mjs.map +1 -1
  474. package/resources/conversations/conversations.d.mts.map +1 -1
  475. package/resources/conversations/conversations.d.ts.map +1 -1
  476. package/resources/conversations/conversations.js +14 -4
  477. package/resources/conversations/conversations.js.map +1 -1
  478. package/resources/conversations/conversations.mjs +14 -4
  479. package/resources/conversations/conversations.mjs.map +1 -1
  480. package/resources/conversations/items.d.mts.map +1 -1
  481. package/resources/conversations/items.d.ts.map +1 -1
  482. package/resources/conversations/items.js +11 -3
  483. package/resources/conversations/items.js.map +1 -1
  484. package/resources/conversations/items.mjs +11 -3
  485. package/resources/conversations/items.mjs.map +1 -1
  486. package/resources/embeddings.d.mts.map +1 -1
  487. package/resources/embeddings.d.ts.map +1 -1
  488. package/resources/embeddings.js +1 -0
  489. package/resources/embeddings.js.map +1 -1
  490. package/resources/embeddings.mjs +1 -0
  491. package/resources/embeddings.mjs.map +1 -1
  492. package/resources/evals/evals.d.mts.map +1 -1
  493. package/resources/evals/evals.d.ts.map +1 -1
  494. package/resources/evals/evals.js +9 -5
  495. package/resources/evals/evals.js.map +1 -1
  496. package/resources/evals/evals.mjs +9 -5
  497. package/resources/evals/evals.mjs.map +1 -1
  498. package/resources/evals/runs/output-items.d.mts.map +1 -1
  499. package/resources/evals/runs/output-items.d.ts.map +1 -1
  500. package/resources/evals/runs/output-items.js +5 -2
  501. package/resources/evals/runs/output-items.js.map +1 -1
  502. package/resources/evals/runs/output-items.mjs +5 -2
  503. package/resources/evals/runs/output-items.mjs.map +1 -1
  504. package/resources/evals/runs/runs.d.mts.map +1 -1
  505. package/resources/evals/runs/runs.d.ts.map +1 -1
  506. package/resources/evals/runs/runs.js +18 -4
  507. package/resources/evals/runs/runs.js.map +1 -1
  508. package/resources/evals/runs/runs.mjs +18 -4
  509. package/resources/evals/runs/runs.mjs.map +1 -1
  510. package/resources/files.d.mts +8 -1
  511. package/resources/files.d.mts.map +1 -1
  512. package/resources/files.d.ts +8 -1
  513. package/resources/files.d.ts.map +1 -1
  514. package/resources/files.js +17 -5
  515. package/resources/files.js.map +1 -1
  516. package/resources/files.mjs +17 -5
  517. package/resources/files.mjs.map +1 -1
  518. package/resources/fine-tuning/alpha/graders.d.mts.map +1 -1
  519. package/resources/fine-tuning/alpha/graders.d.ts.map +1 -1
  520. package/resources/fine-tuning/alpha/graders.js +10 -2
  521. package/resources/fine-tuning/alpha/graders.js.map +1 -1
  522. package/resources/fine-tuning/alpha/graders.mjs +10 -2
  523. package/resources/fine-tuning/alpha/graders.mjs.map +1 -1
  524. package/resources/fine-tuning/checkpoints/permissions.d.mts.map +1 -1
  525. package/resources/fine-tuning/checkpoints/permissions.d.ts.map +1 -1
  526. package/resources/fine-tuning/checkpoints/permissions.js +4 -3
  527. package/resources/fine-tuning/checkpoints/permissions.js.map +1 -1
  528. package/resources/fine-tuning/checkpoints/permissions.mjs +4 -3
  529. package/resources/fine-tuning/checkpoints/permissions.mjs.map +1 -1
  530. package/resources/fine-tuning/jobs/checkpoints.js +1 -1
  531. package/resources/fine-tuning/jobs/checkpoints.js.map +1 -1
  532. package/resources/fine-tuning/jobs/checkpoints.mjs +1 -1
  533. package/resources/fine-tuning/jobs/checkpoints.mjs.map +1 -1
  534. package/resources/fine-tuning/jobs/jobs.d.mts.map +1 -1
  535. package/resources/fine-tuning/jobs/jobs.d.ts.map +1 -1
  536. package/resources/fine-tuning/jobs/jobs.js +23 -7
  537. package/resources/fine-tuning/jobs/jobs.js.map +1 -1
  538. package/resources/fine-tuning/jobs/jobs.mjs +23 -7
  539. package/resources/fine-tuning/jobs/jobs.mjs.map +1 -1
  540. package/resources/images.d.mts +53 -24
  541. package/resources/images.d.mts.map +1 -1
  542. package/resources/images.d.ts +53 -24
  543. package/resources/images.d.ts.map +1 -1
  544. package/resources/images.js +8 -3
  545. package/resources/images.js.map +1 -1
  546. package/resources/images.mjs +8 -3
  547. package/resources/images.mjs.map +1 -1
  548. package/resources/index.d.mts +1 -0
  549. package/resources/index.d.mts.map +1 -1
  550. package/resources/index.d.ts +1 -0
  551. package/resources/index.d.ts.map +1 -1
  552. package/resources/index.js +3 -1
  553. package/resources/index.js.map +1 -1
  554. package/resources/index.mjs +1 -0
  555. package/resources/index.mjs.map +1 -1
  556. package/resources/models.js +3 -3
  557. package/resources/models.js.map +1 -1
  558. package/resources/models.mjs +3 -3
  559. package/resources/models.mjs.map +1 -1
  560. package/resources/moderations.js +1 -1
  561. package/resources/moderations.js.map +1 -1
  562. package/resources/moderations.mjs +1 -1
  563. package/resources/moderations.mjs.map +1 -1
  564. package/resources/realtime/calls.d.mts +10 -1
  565. package/resources/realtime/calls.d.mts.map +1 -1
  566. package/resources/realtime/calls.d.ts +10 -1
  567. package/resources/realtime/calls.d.ts.map +1 -1
  568. package/resources/realtime/calls.js +4 -0
  569. package/resources/realtime/calls.js.map +1 -1
  570. package/resources/realtime/calls.mjs +4 -0
  571. package/resources/realtime/calls.mjs.map +1 -1
  572. package/resources/realtime/client-secrets.d.mts +24 -37
  573. package/resources/realtime/client-secrets.d.mts.map +1 -1
  574. package/resources/realtime/client-secrets.d.ts +24 -37
  575. package/resources/realtime/client-secrets.d.ts.map +1 -1
  576. package/resources/realtime/client-secrets.js +5 -1
  577. package/resources/realtime/client-secrets.js.map +1 -1
  578. package/resources/realtime/client-secrets.mjs +5 -1
  579. package/resources/realtime/client-secrets.mjs.map +1 -1
  580. package/resources/realtime/index.d.mts +1 -1
  581. package/resources/realtime/index.d.mts.map +1 -1
  582. package/resources/realtime/index.d.ts +1 -1
  583. package/resources/realtime/index.d.ts.map +1 -1
  584. package/resources/realtime/index.js.map +1 -1
  585. package/resources/realtime/index.mjs.map +1 -1
  586. package/resources/realtime/realtime.d.mts +545 -10
  587. package/resources/realtime/realtime.d.mts.map +1 -1
  588. package/resources/realtime/realtime.d.ts +545 -10
  589. package/resources/realtime/realtime.d.ts.map +1 -1
  590. package/resources/realtime/realtime.js.map +1 -1
  591. package/resources/realtime/realtime.mjs.map +1 -1
  592. package/resources/responses/input-items.js +1 -1
  593. package/resources/responses/input-items.js.map +1 -1
  594. package/resources/responses/input-items.mjs +1 -1
  595. package/resources/responses/input-items.mjs.map +1 -1
  596. package/resources/responses/input-tokens.d.mts.map +1 -1
  597. package/resources/responses/input-tokens.d.ts.map +1 -1
  598. package/resources/responses/input-tokens.js +5 -1
  599. package/resources/responses/input-tokens.js.map +1 -1
  600. package/resources/responses/input-tokens.mjs +5 -1
  601. package/resources/responses/input-tokens.mjs.map +1 -1
  602. package/resources/responses/responses.d.mts +45 -11
  603. package/resources/responses/responses.d.mts.map +1 -1
  604. package/resources/responses/responses.d.ts +45 -11
  605. package/resources/responses/responses.d.ts.map +1 -1
  606. package/resources/responses/responses.js +13 -3
  607. package/resources/responses/responses.js.map +1 -1
  608. package/resources/responses/responses.mjs +13 -3
  609. package/resources/responses/responses.mjs.map +1 -1
  610. package/resources/responses/ws-base.d.mts.map +1 -1
  611. package/resources/responses/ws-base.d.ts.map +1 -1
  612. package/resources/responses/ws-base.js +3 -1
  613. package/resources/responses/ws-base.js.map +1 -1
  614. package/resources/responses/ws-base.mjs +3 -1
  615. package/resources/responses/ws-base.mjs.map +1 -1
  616. package/resources/skills/content.d.mts.map +1 -1
  617. package/resources/skills/content.d.ts.map +1 -1
  618. package/resources/skills/content.js +1 -0
  619. package/resources/skills/content.js.map +1 -1
  620. package/resources/skills/content.mjs +1 -0
  621. package/resources/skills/content.mjs.map +1 -1
  622. package/resources/skills/skills.d.mts.map +1 -1
  623. package/resources/skills/skills.d.ts.map +1 -1
  624. package/resources/skills/skills.js +13 -5
  625. package/resources/skills/skills.js.map +1 -1
  626. package/resources/skills/skills.mjs +13 -5
  627. package/resources/skills/skills.mjs.map +1 -1
  628. package/resources/skills/versions/content.d.mts.map +1 -1
  629. package/resources/skills/versions/content.d.ts.map +1 -1
  630. package/resources/skills/versions/content.js +1 -0
  631. package/resources/skills/versions/content.js.map +1 -1
  632. package/resources/skills/versions/content.mjs +1 -0
  633. package/resources/skills/versions/content.mjs.map +1 -1
  634. package/resources/skills/versions/versions.d.mts.map +1 -1
  635. package/resources/skills/versions/versions.d.ts.map +1 -1
  636. package/resources/skills/versions/versions.js +10 -3
  637. package/resources/skills/versions/versions.js.map +1 -1
  638. package/resources/skills/versions/versions.mjs +10 -3
  639. package/resources/skills/versions/versions.mjs.map +1 -1
  640. package/resources/uploads/parts.js +1 -1
  641. package/resources/uploads/parts.js.map +1 -1
  642. package/resources/uploads/parts.mjs +1 -1
  643. package/resources/uploads/parts.mjs.map +1 -1
  644. package/resources/uploads/uploads.d.mts.map +1 -1
  645. package/resources/uploads/uploads.d.ts.map +1 -1
  646. package/resources/uploads/uploads.js +10 -3
  647. package/resources/uploads/uploads.js.map +1 -1
  648. package/resources/uploads/uploads.mjs +10 -3
  649. package/resources/uploads/uploads.mjs.map +1 -1
  650. package/resources/vector-stores/file-batches.d.mts.map +1 -1
  651. package/resources/vector-stores/file-batches.d.ts.map +1 -1
  652. package/resources/vector-stores/file-batches.js +9 -1
  653. package/resources/vector-stores/file-batches.js.map +1 -1
  654. package/resources/vector-stores/file-batches.mjs +9 -1
  655. package/resources/vector-stores/file-batches.mjs.map +1 -1
  656. package/resources/vector-stores/files.d.mts.map +1 -1
  657. package/resources/vector-stores/files.d.ts.map +1 -1
  658. package/resources/vector-stores/files.js +10 -1
  659. package/resources/vector-stores/files.js.map +1 -1
  660. package/resources/vector-stores/files.mjs +10 -1
  661. package/resources/vector-stores/files.mjs.map +1 -1
  662. package/resources/vector-stores/vector-stores.d.mts.map +1 -1
  663. package/resources/vector-stores/vector-stores.d.ts.map +1 -1
  664. package/resources/vector-stores/vector-stores.js +6 -0
  665. package/resources/vector-stores/vector-stores.js.map +1 -1
  666. package/resources/vector-stores/vector-stores.mjs +6 -0
  667. package/resources/vector-stores/vector-stores.mjs.map +1 -1
  668. package/resources/videos.d.mts.map +1 -1
  669. package/resources/videos.d.ts.map +1 -1
  670. package/resources/videos.js +17 -9
  671. package/resources/videos.js.map +1 -1
  672. package/resources/videos.mjs +17 -9
  673. package/resources/videos.mjs.map +1 -1
  674. package/src/azure.ts +7 -3
  675. package/src/beta/realtime/websocket.ts +7 -2
  676. package/src/beta/realtime/ws.ts +5 -1
  677. package/src/client.ts +114 -27
  678. package/src/core/pagination.ts +62 -0
  679. package/src/internal/request-options.ts +1 -0
  680. package/src/internal/utils/log.ts +2 -0
  681. package/src/realtime/websocket.ts +7 -2
  682. package/src/realtime/ws.ts +5 -1
  683. package/src/resources/admin/admin.ts +15 -0
  684. package/src/resources/admin/index.ts +4 -0
  685. package/src/resources/admin/organization/admin-api-keys.ts +199 -0
  686. package/src/resources/admin/organization/audit-logs.ts +1597 -0
  687. package/src/resources/admin/organization/certificates.ts +458 -0
  688. package/src/resources/admin/organization/groups/groups.ts +251 -0
  689. package/src/resources/admin/organization/groups/index.ts +32 -0
  690. package/src/resources/admin/organization/groups/roles.ts +239 -0
  691. package/src/resources/admin/organization/groups/users.ts +164 -0
  692. package/src/resources/admin/organization/groups.ts +3 -0
  693. package/src/resources/admin/organization/index.ts +99 -0
  694. package/src/resources/admin/organization/invites.ts +214 -0
  695. package/src/resources/admin/organization/organization.ts +232 -0
  696. package/src/resources/admin/organization/projects/api-keys.ts +239 -0
  697. package/src/resources/admin/organization/projects/certificates.ts +269 -0
  698. package/src/resources/admin/organization/projects/groups/groups.ts +193 -0
  699. package/src/resources/admin/organization/projects/groups/index.ts +21 -0
  700. package/src/resources/admin/organization/projects/groups/roles.ts +261 -0
  701. package/src/resources/admin/organization/projects/groups.ts +3 -0
  702. package/src/resources/admin/organization/projects/index.ts +77 -0
  703. package/src/resources/admin/organization/projects/projects.ts +372 -0
  704. package/src/resources/admin/organization/projects/rate-limits.ts +173 -0
  705. package/src/resources/admin/organization/projects/roles.ts +182 -0
  706. package/src/resources/admin/organization/projects/service-accounts.ts +224 -0
  707. package/src/resources/admin/organization/projects/users/index.ts +23 -0
  708. package/src/resources/admin/organization/projects/users/roles.ts +226 -0
  709. package/src/resources/admin/organization/projects/users/users.ts +252 -0
  710. package/src/resources/admin/organization/projects/users.ts +3 -0
  711. package/src/resources/admin/organization/projects.ts +3 -0
  712. package/src/resources/admin/organization/roles.ts +200 -0
  713. package/src/resources/admin/organization/usage.ts +4483 -0
  714. package/src/resources/admin/organization/users/index.ts +20 -0
  715. package/src/resources/admin/organization/users/roles.ts +208 -0
  716. package/src/resources/admin/organization/users/users.ts +287 -0
  717. package/src/resources/admin/organization/users.ts +3 -0
  718. package/src/resources/admin/organization.ts +3 -0
  719. package/src/resources/admin.ts +3 -0
  720. package/src/resources/audio/speech.ts +1 -0
  721. package/src/resources/audio/transcriptions.ts +1 -0
  722. package/src/resources/audio/translations.ts +4 -1
  723. package/src/resources/batches.ts +11 -4
  724. package/src/resources/beta/assistants.ts +5 -0
  725. package/src/resources/beta/chatkit/sessions.ts +2 -0
  726. package/src/resources/beta/chatkit/threads.ts +9 -1
  727. package/src/resources/beta/realtime/sessions.ts +1 -0
  728. package/src/resources/beta/realtime/transcription-sessions.ts +1 -0
  729. package/src/resources/beta/threads/messages.ts +5 -0
  730. package/src/resources/beta/threads/runs/runs.ts +6 -0
  731. package/src/resources/beta/threads/runs/steps.ts +2 -0
  732. package/src/resources/beta/threads/threads.ts +5 -0
  733. package/src/resources/chat/completions/completions.ts +28 -11
  734. package/src/resources/chat/completions/messages.ts +1 -1
  735. package/src/resources/completions.ts +6 -3
  736. package/src/resources/containers/containers.ts +11 -3
  737. package/src/resources/containers/files/content.ts +1 -0
  738. package/src/resources/containers/files/files.ts +7 -2
  739. package/src/resources/conversations/conversations.ts +14 -4
  740. package/src/resources/conversations/items.ts +11 -3
  741. package/src/resources/embeddings.ts +1 -0
  742. package/src/resources/evals/evals.ts +9 -5
  743. package/src/resources/evals/runs/output-items.ts +5 -2
  744. package/src/resources/evals/runs/runs.ts +18 -4
  745. package/src/resources/files.ts +20 -5
  746. package/src/resources/fine-tuning/alpha/graders.ts +10 -2
  747. package/src/resources/fine-tuning/checkpoints/permissions.ts +4 -3
  748. package/src/resources/fine-tuning/jobs/checkpoints.ts +1 -1
  749. package/src/resources/fine-tuning/jobs/jobs.ts +23 -7
  750. package/src/resources/images.ts +71 -27
  751. package/src/resources/index.ts +1 -0
  752. package/src/resources/models.ts +3 -3
  753. package/src/resources/moderations.ts +1 -1
  754. package/src/resources/realtime/api.md +18 -1
  755. package/src/resources/realtime/calls.ts +16 -0
  756. package/src/resources/realtime/client-secrets.ts +30 -38
  757. package/src/resources/realtime/index.ts +0 -1
  758. package/src/resources/realtime/realtime.ts +647 -8
  759. package/src/resources/responses/input-items.ts +1 -1
  760. package/src/resources/responses/input-tokens.ts +5 -1
  761. package/src/resources/responses/responses.ts +66 -15
  762. package/src/resources/responses/ws-base.ts +3 -1
  763. package/src/resources/skills/content.ts +1 -0
  764. package/src/resources/skills/skills.ts +16 -5
  765. package/src/resources/skills/versions/content.ts +1 -0
  766. package/src/resources/skills/versions/versions.ts +10 -3
  767. package/src/resources/uploads/parts.ts +1 -1
  768. package/src/resources/uploads/uploads.ts +10 -3
  769. package/src/resources/vector-stores/file-batches.ts +9 -1
  770. package/src/resources/vector-stores/files.ts +10 -1
  771. package/src/resources/vector-stores/vector-stores.ts +6 -0
  772. package/src/resources/videos.ts +20 -9
  773. package/src/version.ts +1 -1
  774. package/version.d.mts +1 -1
  775. package/version.d.ts +1 -1
  776. package/version.js +1 -1
  777. package/version.mjs +1 -1
@@ -0,0 +1,3564 @@
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 Usage extends APIResource {
5
+ /**
6
+ * Get audio speeches usage details for the organization.
7
+ *
8
+ * @example
9
+ * ```ts
10
+ * const response =
11
+ * await client.admin.organization.usage.audioSpeeches({
12
+ * start_time: 0,
13
+ * });
14
+ * ```
15
+ */
16
+ audioSpeeches(query: UsageAudioSpeechesParams, options?: RequestOptions): APIPromise<UsageAudioSpeechesResponse>;
17
+ /**
18
+ * Get audio transcriptions usage details for the organization.
19
+ *
20
+ * @example
21
+ * ```ts
22
+ * const response =
23
+ * await client.admin.organization.usage.audioTranscriptions(
24
+ * { start_time: 0 },
25
+ * );
26
+ * ```
27
+ */
28
+ audioTranscriptions(query: UsageAudioTranscriptionsParams, options?: RequestOptions): APIPromise<UsageAudioTranscriptionsResponse>;
29
+ /**
30
+ * Get code interpreter sessions usage details for the organization.
31
+ *
32
+ * @example
33
+ * ```ts
34
+ * const response =
35
+ * await client.admin.organization.usage.codeInterpreterSessions(
36
+ * { start_time: 0 },
37
+ * );
38
+ * ```
39
+ */
40
+ codeInterpreterSessions(query: UsageCodeInterpreterSessionsParams, options?: RequestOptions): APIPromise<UsageCodeInterpreterSessionsResponse>;
41
+ /**
42
+ * Get completions usage details for the organization.
43
+ *
44
+ * @example
45
+ * ```ts
46
+ * const response =
47
+ * await client.admin.organization.usage.completions({
48
+ * start_time: 0,
49
+ * });
50
+ * ```
51
+ */
52
+ completions(query: UsageCompletionsParams, options?: RequestOptions): APIPromise<UsageCompletionsResponse>;
53
+ /**
54
+ * Get costs details for the organization.
55
+ *
56
+ * @example
57
+ * ```ts
58
+ * const response =
59
+ * await client.admin.organization.usage.costs({
60
+ * start_time: 0,
61
+ * });
62
+ * ```
63
+ */
64
+ costs(query: UsageCostsParams, options?: RequestOptions): APIPromise<UsageCostsResponse>;
65
+ /**
66
+ * Get embeddings usage details for the organization.
67
+ *
68
+ * @example
69
+ * ```ts
70
+ * const response =
71
+ * await client.admin.organization.usage.embeddings({
72
+ * start_time: 0,
73
+ * });
74
+ * ```
75
+ */
76
+ embeddings(query: UsageEmbeddingsParams, options?: RequestOptions): APIPromise<UsageEmbeddingsResponse>;
77
+ /**
78
+ * Get images usage details for the organization.
79
+ *
80
+ * @example
81
+ * ```ts
82
+ * const response =
83
+ * await client.admin.organization.usage.images({
84
+ * start_time: 0,
85
+ * });
86
+ * ```
87
+ */
88
+ images(query: UsageImagesParams, options?: RequestOptions): APIPromise<UsageImagesResponse>;
89
+ /**
90
+ * Get moderations usage details for the organization.
91
+ *
92
+ * @example
93
+ * ```ts
94
+ * const response =
95
+ * await client.admin.organization.usage.moderations({
96
+ * start_time: 0,
97
+ * });
98
+ * ```
99
+ */
100
+ moderations(query: UsageModerationsParams, options?: RequestOptions): APIPromise<UsageModerationsResponse>;
101
+ /**
102
+ * Get vector stores usage details for the organization.
103
+ *
104
+ * @example
105
+ * ```ts
106
+ * const response =
107
+ * await client.admin.organization.usage.vectorStores({
108
+ * start_time: 0,
109
+ * });
110
+ * ```
111
+ */
112
+ vectorStores(query: UsageVectorStoresParams, options?: RequestOptions): APIPromise<UsageVectorStoresResponse>;
113
+ }
114
+ export interface UsageAudioSpeechesResponse {
115
+ data: Array<UsageAudioSpeechesResponse.Data>;
116
+ has_more: boolean;
117
+ next_page: string | null;
118
+ object: 'page';
119
+ }
120
+ export declare namespace UsageAudioSpeechesResponse {
121
+ interface Data {
122
+ end_time: number;
123
+ object: 'bucket';
124
+ results: Array<Data.OrganizationUsageCompletionsResult | Data.OrganizationUsageEmbeddingsResult | Data.OrganizationUsageModerationsResult | Data.OrganizationUsageImagesResult | Data.OrganizationUsageAudioSpeechesResult | Data.OrganizationUsageAudioTranscriptionsResult | Data.OrganizationUsageVectorStoresResult | Data.OrganizationUsageCodeInterpreterSessionsResult | Data.OrganizationCostsResult>;
125
+ start_time: number;
126
+ }
127
+ namespace Data {
128
+ /**
129
+ * The aggregated completions usage details of the specific time bucket.
130
+ */
131
+ interface OrganizationUsageCompletionsResult {
132
+ /**
133
+ * The aggregated number of text input tokens used, including cached tokens. For
134
+ * customers subscribe to scale tier, this includes scale tier tokens.
135
+ */
136
+ input_tokens: number;
137
+ /**
138
+ * The count of requests made to the model.
139
+ */
140
+ num_model_requests: number;
141
+ object: 'organization.usage.completions.result';
142
+ /**
143
+ * The aggregated number of text output tokens used. For customers subscribe to
144
+ * scale tier, this includes scale tier tokens.
145
+ */
146
+ output_tokens: number;
147
+ /**
148
+ * When `group_by=api_key_id`, this field provides the API key ID of the grouped
149
+ * usage result.
150
+ */
151
+ api_key_id?: string | null;
152
+ /**
153
+ * When `group_by=batch`, this field tells whether the grouped usage result is
154
+ * batch or not.
155
+ */
156
+ batch?: boolean | null;
157
+ /**
158
+ * The aggregated number of audio input tokens used, including cached tokens.
159
+ */
160
+ input_audio_tokens?: number;
161
+ /**
162
+ * The aggregated number of text input tokens that has been cached from previous
163
+ * requests. For customers subscribe to scale tier, this includes scale tier
164
+ * tokens.
165
+ */
166
+ input_cached_tokens?: number;
167
+ /**
168
+ * When `group_by=model`, this field provides the model name of the grouped usage
169
+ * result.
170
+ */
171
+ model?: string | null;
172
+ /**
173
+ * The aggregated number of audio output tokens used.
174
+ */
175
+ output_audio_tokens?: number;
176
+ /**
177
+ * When `group_by=project_id`, this field provides the project ID of the grouped
178
+ * usage result.
179
+ */
180
+ project_id?: string | null;
181
+ /**
182
+ * When `group_by=service_tier`, this field provides the service tier of the
183
+ * grouped usage result.
184
+ */
185
+ service_tier?: string | null;
186
+ /**
187
+ * When `group_by=user_id`, this field provides the user ID of the grouped usage
188
+ * result.
189
+ */
190
+ user_id?: string | null;
191
+ }
192
+ /**
193
+ * The aggregated embeddings usage details of the specific time bucket.
194
+ */
195
+ interface OrganizationUsageEmbeddingsResult {
196
+ /**
197
+ * The aggregated number of input tokens used.
198
+ */
199
+ input_tokens: number;
200
+ /**
201
+ * The count of requests made to the model.
202
+ */
203
+ num_model_requests: number;
204
+ object: 'organization.usage.embeddings.result';
205
+ /**
206
+ * When `group_by=api_key_id`, this field provides the API key ID of the grouped
207
+ * usage result.
208
+ */
209
+ api_key_id?: string | null;
210
+ /**
211
+ * When `group_by=model`, this field provides the model name of the grouped usage
212
+ * result.
213
+ */
214
+ model?: string | null;
215
+ /**
216
+ * When `group_by=project_id`, this field provides the project ID of the grouped
217
+ * usage result.
218
+ */
219
+ project_id?: string | null;
220
+ /**
221
+ * When `group_by=user_id`, this field provides the user ID of the grouped usage
222
+ * result.
223
+ */
224
+ user_id?: string | null;
225
+ }
226
+ /**
227
+ * The aggregated moderations usage details of the specific time bucket.
228
+ */
229
+ interface OrganizationUsageModerationsResult {
230
+ /**
231
+ * The aggregated number of input tokens used.
232
+ */
233
+ input_tokens: number;
234
+ /**
235
+ * The count of requests made to the model.
236
+ */
237
+ num_model_requests: number;
238
+ object: 'organization.usage.moderations.result';
239
+ /**
240
+ * When `group_by=api_key_id`, this field provides the API key ID of the grouped
241
+ * usage result.
242
+ */
243
+ api_key_id?: string | null;
244
+ /**
245
+ * When `group_by=model`, this field provides the model name of the grouped usage
246
+ * result.
247
+ */
248
+ model?: string | null;
249
+ /**
250
+ * When `group_by=project_id`, this field provides the project ID of the grouped
251
+ * usage result.
252
+ */
253
+ project_id?: string | null;
254
+ /**
255
+ * When `group_by=user_id`, this field provides the user ID of the grouped usage
256
+ * result.
257
+ */
258
+ user_id?: string | null;
259
+ }
260
+ /**
261
+ * The aggregated images usage details of the specific time bucket.
262
+ */
263
+ interface OrganizationUsageImagesResult {
264
+ /**
265
+ * The number of images processed.
266
+ */
267
+ images: number;
268
+ /**
269
+ * The count of requests made to the model.
270
+ */
271
+ num_model_requests: number;
272
+ object: 'organization.usage.images.result';
273
+ /**
274
+ * When `group_by=api_key_id`, this field provides the API key ID of the grouped
275
+ * usage result.
276
+ */
277
+ api_key_id?: string | null;
278
+ /**
279
+ * When `group_by=model`, this field provides the model name of the grouped usage
280
+ * result.
281
+ */
282
+ model?: string | null;
283
+ /**
284
+ * When `group_by=project_id`, this field provides the project ID of the grouped
285
+ * usage result.
286
+ */
287
+ project_id?: string | null;
288
+ /**
289
+ * When `group_by=size`, this field provides the image size of the grouped usage
290
+ * result.
291
+ */
292
+ size?: string | null;
293
+ /**
294
+ * When `group_by=source`, this field provides the source of the grouped usage
295
+ * result, possible values are `image.generation`, `image.edit`, `image.variation`.
296
+ */
297
+ source?: string | null;
298
+ /**
299
+ * When `group_by=user_id`, this field provides the user ID of the grouped usage
300
+ * result.
301
+ */
302
+ user_id?: string | null;
303
+ }
304
+ /**
305
+ * The aggregated audio speeches usage details of the specific time bucket.
306
+ */
307
+ interface OrganizationUsageAudioSpeechesResult {
308
+ /**
309
+ * The number of characters processed.
310
+ */
311
+ characters: number;
312
+ /**
313
+ * The count of requests made to the model.
314
+ */
315
+ num_model_requests: number;
316
+ object: 'organization.usage.audio_speeches.result';
317
+ /**
318
+ * When `group_by=api_key_id`, this field provides the API key ID of the grouped
319
+ * usage result.
320
+ */
321
+ api_key_id?: string | null;
322
+ /**
323
+ * When `group_by=model`, this field provides the model name of the grouped usage
324
+ * result.
325
+ */
326
+ model?: string | null;
327
+ /**
328
+ * When `group_by=project_id`, this field provides the project ID of the grouped
329
+ * usage result.
330
+ */
331
+ project_id?: string | null;
332
+ /**
333
+ * When `group_by=user_id`, this field provides the user ID of the grouped usage
334
+ * result.
335
+ */
336
+ user_id?: string | null;
337
+ }
338
+ /**
339
+ * The aggregated audio transcriptions usage details of the specific time bucket.
340
+ */
341
+ interface OrganizationUsageAudioTranscriptionsResult {
342
+ /**
343
+ * The count of requests made to the model.
344
+ */
345
+ num_model_requests: number;
346
+ object: 'organization.usage.audio_transcriptions.result';
347
+ /**
348
+ * The number of seconds processed.
349
+ */
350
+ seconds: number;
351
+ /**
352
+ * When `group_by=api_key_id`, this field provides the API key ID of the grouped
353
+ * usage result.
354
+ */
355
+ api_key_id?: string | null;
356
+ /**
357
+ * When `group_by=model`, this field provides the model name of the grouped usage
358
+ * result.
359
+ */
360
+ model?: string | null;
361
+ /**
362
+ * When `group_by=project_id`, this field provides the project ID of the grouped
363
+ * usage result.
364
+ */
365
+ project_id?: string | null;
366
+ /**
367
+ * When `group_by=user_id`, this field provides the user ID of the grouped usage
368
+ * result.
369
+ */
370
+ user_id?: string | null;
371
+ }
372
+ /**
373
+ * The aggregated vector stores usage details of the specific time bucket.
374
+ */
375
+ interface OrganizationUsageVectorStoresResult {
376
+ object: 'organization.usage.vector_stores.result';
377
+ /**
378
+ * The vector stores usage in bytes.
379
+ */
380
+ usage_bytes: number;
381
+ /**
382
+ * When `group_by=project_id`, this field provides the project ID of the grouped
383
+ * usage result.
384
+ */
385
+ project_id?: string | null;
386
+ }
387
+ /**
388
+ * The aggregated code interpreter sessions usage details of the specific time
389
+ * bucket.
390
+ */
391
+ interface OrganizationUsageCodeInterpreterSessionsResult {
392
+ /**
393
+ * The number of code interpreter sessions.
394
+ */
395
+ num_sessions: number;
396
+ object: 'organization.usage.code_interpreter_sessions.result';
397
+ /**
398
+ * When `group_by=project_id`, this field provides the project ID of the grouped
399
+ * usage result.
400
+ */
401
+ project_id?: string | null;
402
+ }
403
+ /**
404
+ * The aggregated costs details of the specific time bucket.
405
+ */
406
+ interface OrganizationCostsResult {
407
+ object: 'organization.costs.result';
408
+ /**
409
+ * The monetary value in its associated currency.
410
+ */
411
+ amount?: OrganizationCostsResult.Amount;
412
+ /**
413
+ * When `group_by=api_key_id`, this field provides the API Key ID of the grouped
414
+ * costs result.
415
+ */
416
+ api_key_id?: string | null;
417
+ /**
418
+ * When `group_by=line_item`, this field provides the line item of the grouped
419
+ * costs result.
420
+ */
421
+ line_item?: string | null;
422
+ /**
423
+ * When `group_by=project_id`, this field provides the project ID of the grouped
424
+ * costs result.
425
+ */
426
+ project_id?: string | null;
427
+ /**
428
+ * When `group_by=line_item`, this field provides the quantity of the grouped costs
429
+ * result.
430
+ */
431
+ quantity?: number | null;
432
+ }
433
+ namespace OrganizationCostsResult {
434
+ /**
435
+ * The monetary value in its associated currency.
436
+ */
437
+ interface Amount {
438
+ /**
439
+ * Lowercase ISO-4217 currency e.g. "usd"
440
+ */
441
+ currency?: string;
442
+ /**
443
+ * The numeric value of the cost.
444
+ */
445
+ value?: number;
446
+ }
447
+ }
448
+ }
449
+ }
450
+ export interface UsageAudioTranscriptionsResponse {
451
+ data: Array<UsageAudioTranscriptionsResponse.Data>;
452
+ has_more: boolean;
453
+ next_page: string | null;
454
+ object: 'page';
455
+ }
456
+ export declare namespace UsageAudioTranscriptionsResponse {
457
+ interface Data {
458
+ end_time: number;
459
+ object: 'bucket';
460
+ results: Array<Data.OrganizationUsageCompletionsResult | Data.OrganizationUsageEmbeddingsResult | Data.OrganizationUsageModerationsResult | Data.OrganizationUsageImagesResult | Data.OrganizationUsageAudioSpeechesResult | Data.OrganizationUsageAudioTranscriptionsResult | Data.OrganizationUsageVectorStoresResult | Data.OrganizationUsageCodeInterpreterSessionsResult | Data.OrganizationCostsResult>;
461
+ start_time: number;
462
+ }
463
+ namespace Data {
464
+ /**
465
+ * The aggregated completions usage details of the specific time bucket.
466
+ */
467
+ interface OrganizationUsageCompletionsResult {
468
+ /**
469
+ * The aggregated number of text input tokens used, including cached tokens. For
470
+ * customers subscribe to scale tier, this includes scale tier tokens.
471
+ */
472
+ input_tokens: number;
473
+ /**
474
+ * The count of requests made to the model.
475
+ */
476
+ num_model_requests: number;
477
+ object: 'organization.usage.completions.result';
478
+ /**
479
+ * The aggregated number of text output tokens used. For customers subscribe to
480
+ * scale tier, this includes scale tier tokens.
481
+ */
482
+ output_tokens: number;
483
+ /**
484
+ * When `group_by=api_key_id`, this field provides the API key ID of the grouped
485
+ * usage result.
486
+ */
487
+ api_key_id?: string | null;
488
+ /**
489
+ * When `group_by=batch`, this field tells whether the grouped usage result is
490
+ * batch or not.
491
+ */
492
+ batch?: boolean | null;
493
+ /**
494
+ * The aggregated number of audio input tokens used, including cached tokens.
495
+ */
496
+ input_audio_tokens?: number;
497
+ /**
498
+ * The aggregated number of text input tokens that has been cached from previous
499
+ * requests. For customers subscribe to scale tier, this includes scale tier
500
+ * tokens.
501
+ */
502
+ input_cached_tokens?: number;
503
+ /**
504
+ * When `group_by=model`, this field provides the model name of the grouped usage
505
+ * result.
506
+ */
507
+ model?: string | null;
508
+ /**
509
+ * The aggregated number of audio output tokens used.
510
+ */
511
+ output_audio_tokens?: number;
512
+ /**
513
+ * When `group_by=project_id`, this field provides the project ID of the grouped
514
+ * usage result.
515
+ */
516
+ project_id?: string | null;
517
+ /**
518
+ * When `group_by=service_tier`, this field provides the service tier of the
519
+ * grouped usage result.
520
+ */
521
+ service_tier?: string | null;
522
+ /**
523
+ * When `group_by=user_id`, this field provides the user ID of the grouped usage
524
+ * result.
525
+ */
526
+ user_id?: string | null;
527
+ }
528
+ /**
529
+ * The aggregated embeddings usage details of the specific time bucket.
530
+ */
531
+ interface OrganizationUsageEmbeddingsResult {
532
+ /**
533
+ * The aggregated number of input tokens used.
534
+ */
535
+ input_tokens: number;
536
+ /**
537
+ * The count of requests made to the model.
538
+ */
539
+ num_model_requests: number;
540
+ object: 'organization.usage.embeddings.result';
541
+ /**
542
+ * When `group_by=api_key_id`, this field provides the API key ID of the grouped
543
+ * usage result.
544
+ */
545
+ api_key_id?: string | null;
546
+ /**
547
+ * When `group_by=model`, this field provides the model name of the grouped usage
548
+ * result.
549
+ */
550
+ model?: string | null;
551
+ /**
552
+ * When `group_by=project_id`, this field provides the project ID of the grouped
553
+ * usage result.
554
+ */
555
+ project_id?: string | null;
556
+ /**
557
+ * When `group_by=user_id`, this field provides the user ID of the grouped usage
558
+ * result.
559
+ */
560
+ user_id?: string | null;
561
+ }
562
+ /**
563
+ * The aggregated moderations usage details of the specific time bucket.
564
+ */
565
+ interface OrganizationUsageModerationsResult {
566
+ /**
567
+ * The aggregated number of input tokens used.
568
+ */
569
+ input_tokens: number;
570
+ /**
571
+ * The count of requests made to the model.
572
+ */
573
+ num_model_requests: number;
574
+ object: 'organization.usage.moderations.result';
575
+ /**
576
+ * When `group_by=api_key_id`, this field provides the API key ID of the grouped
577
+ * usage result.
578
+ */
579
+ api_key_id?: string | null;
580
+ /**
581
+ * When `group_by=model`, this field provides the model name of the grouped usage
582
+ * result.
583
+ */
584
+ model?: string | null;
585
+ /**
586
+ * When `group_by=project_id`, this field provides the project ID of the grouped
587
+ * usage result.
588
+ */
589
+ project_id?: string | null;
590
+ /**
591
+ * When `group_by=user_id`, this field provides the user ID of the grouped usage
592
+ * result.
593
+ */
594
+ user_id?: string | null;
595
+ }
596
+ /**
597
+ * The aggregated images usage details of the specific time bucket.
598
+ */
599
+ interface OrganizationUsageImagesResult {
600
+ /**
601
+ * The number of images processed.
602
+ */
603
+ images: number;
604
+ /**
605
+ * The count of requests made to the model.
606
+ */
607
+ num_model_requests: number;
608
+ object: 'organization.usage.images.result';
609
+ /**
610
+ * When `group_by=api_key_id`, this field provides the API key ID of the grouped
611
+ * usage result.
612
+ */
613
+ api_key_id?: string | null;
614
+ /**
615
+ * When `group_by=model`, this field provides the model name of the grouped usage
616
+ * result.
617
+ */
618
+ model?: string | null;
619
+ /**
620
+ * When `group_by=project_id`, this field provides the project ID of the grouped
621
+ * usage result.
622
+ */
623
+ project_id?: string | null;
624
+ /**
625
+ * When `group_by=size`, this field provides the image size of the grouped usage
626
+ * result.
627
+ */
628
+ size?: string | null;
629
+ /**
630
+ * When `group_by=source`, this field provides the source of the grouped usage
631
+ * result, possible values are `image.generation`, `image.edit`, `image.variation`.
632
+ */
633
+ source?: string | null;
634
+ /**
635
+ * When `group_by=user_id`, this field provides the user ID of the grouped usage
636
+ * result.
637
+ */
638
+ user_id?: string | null;
639
+ }
640
+ /**
641
+ * The aggregated audio speeches usage details of the specific time bucket.
642
+ */
643
+ interface OrganizationUsageAudioSpeechesResult {
644
+ /**
645
+ * The number of characters processed.
646
+ */
647
+ characters: number;
648
+ /**
649
+ * The count of requests made to the model.
650
+ */
651
+ num_model_requests: number;
652
+ object: 'organization.usage.audio_speeches.result';
653
+ /**
654
+ * When `group_by=api_key_id`, this field provides the API key ID of the grouped
655
+ * usage result.
656
+ */
657
+ api_key_id?: string | null;
658
+ /**
659
+ * When `group_by=model`, this field provides the model name of the grouped usage
660
+ * result.
661
+ */
662
+ model?: string | null;
663
+ /**
664
+ * When `group_by=project_id`, this field provides the project ID of the grouped
665
+ * usage result.
666
+ */
667
+ project_id?: string | null;
668
+ /**
669
+ * When `group_by=user_id`, this field provides the user ID of the grouped usage
670
+ * result.
671
+ */
672
+ user_id?: string | null;
673
+ }
674
+ /**
675
+ * The aggregated audio transcriptions usage details of the specific time bucket.
676
+ */
677
+ interface OrganizationUsageAudioTranscriptionsResult {
678
+ /**
679
+ * The count of requests made to the model.
680
+ */
681
+ num_model_requests: number;
682
+ object: 'organization.usage.audio_transcriptions.result';
683
+ /**
684
+ * The number of seconds processed.
685
+ */
686
+ seconds: number;
687
+ /**
688
+ * When `group_by=api_key_id`, this field provides the API key ID of the grouped
689
+ * usage result.
690
+ */
691
+ api_key_id?: string | null;
692
+ /**
693
+ * When `group_by=model`, this field provides the model name of the grouped usage
694
+ * result.
695
+ */
696
+ model?: string | null;
697
+ /**
698
+ * When `group_by=project_id`, this field provides the project ID of the grouped
699
+ * usage result.
700
+ */
701
+ project_id?: string | null;
702
+ /**
703
+ * When `group_by=user_id`, this field provides the user ID of the grouped usage
704
+ * result.
705
+ */
706
+ user_id?: string | null;
707
+ }
708
+ /**
709
+ * The aggregated vector stores usage details of the specific time bucket.
710
+ */
711
+ interface OrganizationUsageVectorStoresResult {
712
+ object: 'organization.usage.vector_stores.result';
713
+ /**
714
+ * The vector stores usage in bytes.
715
+ */
716
+ usage_bytes: number;
717
+ /**
718
+ * When `group_by=project_id`, this field provides the project ID of the grouped
719
+ * usage result.
720
+ */
721
+ project_id?: string | null;
722
+ }
723
+ /**
724
+ * The aggregated code interpreter sessions usage details of the specific time
725
+ * bucket.
726
+ */
727
+ interface OrganizationUsageCodeInterpreterSessionsResult {
728
+ /**
729
+ * The number of code interpreter sessions.
730
+ */
731
+ num_sessions: number;
732
+ object: 'organization.usage.code_interpreter_sessions.result';
733
+ /**
734
+ * When `group_by=project_id`, this field provides the project ID of the grouped
735
+ * usage result.
736
+ */
737
+ project_id?: string | null;
738
+ }
739
+ /**
740
+ * The aggregated costs details of the specific time bucket.
741
+ */
742
+ interface OrganizationCostsResult {
743
+ object: 'organization.costs.result';
744
+ /**
745
+ * The monetary value in its associated currency.
746
+ */
747
+ amount?: OrganizationCostsResult.Amount;
748
+ /**
749
+ * When `group_by=api_key_id`, this field provides the API Key ID of the grouped
750
+ * costs result.
751
+ */
752
+ api_key_id?: string | null;
753
+ /**
754
+ * When `group_by=line_item`, this field provides the line item of the grouped
755
+ * costs result.
756
+ */
757
+ line_item?: string | null;
758
+ /**
759
+ * When `group_by=project_id`, this field provides the project ID of the grouped
760
+ * costs result.
761
+ */
762
+ project_id?: string | null;
763
+ /**
764
+ * When `group_by=line_item`, this field provides the quantity of the grouped costs
765
+ * result.
766
+ */
767
+ quantity?: number | null;
768
+ }
769
+ namespace OrganizationCostsResult {
770
+ /**
771
+ * The monetary value in its associated currency.
772
+ */
773
+ interface Amount {
774
+ /**
775
+ * Lowercase ISO-4217 currency e.g. "usd"
776
+ */
777
+ currency?: string;
778
+ /**
779
+ * The numeric value of the cost.
780
+ */
781
+ value?: number;
782
+ }
783
+ }
784
+ }
785
+ }
786
+ export interface UsageCodeInterpreterSessionsResponse {
787
+ data: Array<UsageCodeInterpreterSessionsResponse.Data>;
788
+ has_more: boolean;
789
+ next_page: string | null;
790
+ object: 'page';
791
+ }
792
+ export declare namespace UsageCodeInterpreterSessionsResponse {
793
+ interface Data {
794
+ end_time: number;
795
+ object: 'bucket';
796
+ results: Array<Data.OrganizationUsageCompletionsResult | Data.OrganizationUsageEmbeddingsResult | Data.OrganizationUsageModerationsResult | Data.OrganizationUsageImagesResult | Data.OrganizationUsageAudioSpeechesResult | Data.OrganizationUsageAudioTranscriptionsResult | Data.OrganizationUsageVectorStoresResult | Data.OrganizationUsageCodeInterpreterSessionsResult | Data.OrganizationCostsResult>;
797
+ start_time: number;
798
+ }
799
+ namespace Data {
800
+ /**
801
+ * The aggregated completions usage details of the specific time bucket.
802
+ */
803
+ interface OrganizationUsageCompletionsResult {
804
+ /**
805
+ * The aggregated number of text input tokens used, including cached tokens. For
806
+ * customers subscribe to scale tier, this includes scale tier tokens.
807
+ */
808
+ input_tokens: number;
809
+ /**
810
+ * The count of requests made to the model.
811
+ */
812
+ num_model_requests: number;
813
+ object: 'organization.usage.completions.result';
814
+ /**
815
+ * The aggregated number of text output tokens used. For customers subscribe to
816
+ * scale tier, this includes scale tier tokens.
817
+ */
818
+ output_tokens: number;
819
+ /**
820
+ * When `group_by=api_key_id`, this field provides the API key ID of the grouped
821
+ * usage result.
822
+ */
823
+ api_key_id?: string | null;
824
+ /**
825
+ * When `group_by=batch`, this field tells whether the grouped usage result is
826
+ * batch or not.
827
+ */
828
+ batch?: boolean | null;
829
+ /**
830
+ * The aggregated number of audio input tokens used, including cached tokens.
831
+ */
832
+ input_audio_tokens?: number;
833
+ /**
834
+ * The aggregated number of text input tokens that has been cached from previous
835
+ * requests. For customers subscribe to scale tier, this includes scale tier
836
+ * tokens.
837
+ */
838
+ input_cached_tokens?: number;
839
+ /**
840
+ * When `group_by=model`, this field provides the model name of the grouped usage
841
+ * result.
842
+ */
843
+ model?: string | null;
844
+ /**
845
+ * The aggregated number of audio output tokens used.
846
+ */
847
+ output_audio_tokens?: number;
848
+ /**
849
+ * When `group_by=project_id`, this field provides the project ID of the grouped
850
+ * usage result.
851
+ */
852
+ project_id?: string | null;
853
+ /**
854
+ * When `group_by=service_tier`, this field provides the service tier of the
855
+ * grouped usage result.
856
+ */
857
+ service_tier?: string | null;
858
+ /**
859
+ * When `group_by=user_id`, this field provides the user ID of the grouped usage
860
+ * result.
861
+ */
862
+ user_id?: string | null;
863
+ }
864
+ /**
865
+ * The aggregated embeddings usage details of the specific time bucket.
866
+ */
867
+ interface OrganizationUsageEmbeddingsResult {
868
+ /**
869
+ * The aggregated number of input tokens used.
870
+ */
871
+ input_tokens: number;
872
+ /**
873
+ * The count of requests made to the model.
874
+ */
875
+ num_model_requests: number;
876
+ object: 'organization.usage.embeddings.result';
877
+ /**
878
+ * When `group_by=api_key_id`, this field provides the API key ID of the grouped
879
+ * usage result.
880
+ */
881
+ api_key_id?: string | null;
882
+ /**
883
+ * When `group_by=model`, this field provides the model name of the grouped usage
884
+ * result.
885
+ */
886
+ model?: string | null;
887
+ /**
888
+ * When `group_by=project_id`, this field provides the project ID of the grouped
889
+ * usage result.
890
+ */
891
+ project_id?: string | null;
892
+ /**
893
+ * When `group_by=user_id`, this field provides the user ID of the grouped usage
894
+ * result.
895
+ */
896
+ user_id?: string | null;
897
+ }
898
+ /**
899
+ * The aggregated moderations usage details of the specific time bucket.
900
+ */
901
+ interface OrganizationUsageModerationsResult {
902
+ /**
903
+ * The aggregated number of input tokens used.
904
+ */
905
+ input_tokens: number;
906
+ /**
907
+ * The count of requests made to the model.
908
+ */
909
+ num_model_requests: number;
910
+ object: 'organization.usage.moderations.result';
911
+ /**
912
+ * When `group_by=api_key_id`, this field provides the API key ID of the grouped
913
+ * usage result.
914
+ */
915
+ api_key_id?: string | null;
916
+ /**
917
+ * When `group_by=model`, this field provides the model name of the grouped usage
918
+ * result.
919
+ */
920
+ model?: string | null;
921
+ /**
922
+ * When `group_by=project_id`, this field provides the project ID of the grouped
923
+ * usage result.
924
+ */
925
+ project_id?: string | null;
926
+ /**
927
+ * When `group_by=user_id`, this field provides the user ID of the grouped usage
928
+ * result.
929
+ */
930
+ user_id?: string | null;
931
+ }
932
+ /**
933
+ * The aggregated images usage details of the specific time bucket.
934
+ */
935
+ interface OrganizationUsageImagesResult {
936
+ /**
937
+ * The number of images processed.
938
+ */
939
+ images: number;
940
+ /**
941
+ * The count of requests made to the model.
942
+ */
943
+ num_model_requests: number;
944
+ object: 'organization.usage.images.result';
945
+ /**
946
+ * When `group_by=api_key_id`, this field provides the API key ID of the grouped
947
+ * usage result.
948
+ */
949
+ api_key_id?: string | null;
950
+ /**
951
+ * When `group_by=model`, this field provides the model name of the grouped usage
952
+ * result.
953
+ */
954
+ model?: string | null;
955
+ /**
956
+ * When `group_by=project_id`, this field provides the project ID of the grouped
957
+ * usage result.
958
+ */
959
+ project_id?: string | null;
960
+ /**
961
+ * When `group_by=size`, this field provides the image size of the grouped usage
962
+ * result.
963
+ */
964
+ size?: string | null;
965
+ /**
966
+ * When `group_by=source`, this field provides the source of the grouped usage
967
+ * result, possible values are `image.generation`, `image.edit`, `image.variation`.
968
+ */
969
+ source?: string | null;
970
+ /**
971
+ * When `group_by=user_id`, this field provides the user ID of the grouped usage
972
+ * result.
973
+ */
974
+ user_id?: string | null;
975
+ }
976
+ /**
977
+ * The aggregated audio speeches usage details of the specific time bucket.
978
+ */
979
+ interface OrganizationUsageAudioSpeechesResult {
980
+ /**
981
+ * The number of characters processed.
982
+ */
983
+ characters: number;
984
+ /**
985
+ * The count of requests made to the model.
986
+ */
987
+ num_model_requests: number;
988
+ object: 'organization.usage.audio_speeches.result';
989
+ /**
990
+ * When `group_by=api_key_id`, this field provides the API key ID of the grouped
991
+ * usage result.
992
+ */
993
+ api_key_id?: string | null;
994
+ /**
995
+ * When `group_by=model`, this field provides the model name of the grouped usage
996
+ * result.
997
+ */
998
+ model?: string | null;
999
+ /**
1000
+ * When `group_by=project_id`, this field provides the project ID of the grouped
1001
+ * usage result.
1002
+ */
1003
+ project_id?: string | null;
1004
+ /**
1005
+ * When `group_by=user_id`, this field provides the user ID of the grouped usage
1006
+ * result.
1007
+ */
1008
+ user_id?: string | null;
1009
+ }
1010
+ /**
1011
+ * The aggregated audio transcriptions usage details of the specific time bucket.
1012
+ */
1013
+ interface OrganizationUsageAudioTranscriptionsResult {
1014
+ /**
1015
+ * The count of requests made to the model.
1016
+ */
1017
+ num_model_requests: number;
1018
+ object: 'organization.usage.audio_transcriptions.result';
1019
+ /**
1020
+ * The number of seconds processed.
1021
+ */
1022
+ seconds: number;
1023
+ /**
1024
+ * When `group_by=api_key_id`, this field provides the API key ID of the grouped
1025
+ * usage result.
1026
+ */
1027
+ api_key_id?: string | null;
1028
+ /**
1029
+ * When `group_by=model`, this field provides the model name of the grouped usage
1030
+ * result.
1031
+ */
1032
+ model?: string | null;
1033
+ /**
1034
+ * When `group_by=project_id`, this field provides the project ID of the grouped
1035
+ * usage result.
1036
+ */
1037
+ project_id?: string | null;
1038
+ /**
1039
+ * When `group_by=user_id`, this field provides the user ID of the grouped usage
1040
+ * result.
1041
+ */
1042
+ user_id?: string | null;
1043
+ }
1044
+ /**
1045
+ * The aggregated vector stores usage details of the specific time bucket.
1046
+ */
1047
+ interface OrganizationUsageVectorStoresResult {
1048
+ object: 'organization.usage.vector_stores.result';
1049
+ /**
1050
+ * The vector stores usage in bytes.
1051
+ */
1052
+ usage_bytes: number;
1053
+ /**
1054
+ * When `group_by=project_id`, this field provides the project ID of the grouped
1055
+ * usage result.
1056
+ */
1057
+ project_id?: string | null;
1058
+ }
1059
+ /**
1060
+ * The aggregated code interpreter sessions usage details of the specific time
1061
+ * bucket.
1062
+ */
1063
+ interface OrganizationUsageCodeInterpreterSessionsResult {
1064
+ /**
1065
+ * The number of code interpreter sessions.
1066
+ */
1067
+ num_sessions: number;
1068
+ object: 'organization.usage.code_interpreter_sessions.result';
1069
+ /**
1070
+ * When `group_by=project_id`, this field provides the project ID of the grouped
1071
+ * usage result.
1072
+ */
1073
+ project_id?: string | null;
1074
+ }
1075
+ /**
1076
+ * The aggregated costs details of the specific time bucket.
1077
+ */
1078
+ interface OrganizationCostsResult {
1079
+ object: 'organization.costs.result';
1080
+ /**
1081
+ * The monetary value in its associated currency.
1082
+ */
1083
+ amount?: OrganizationCostsResult.Amount;
1084
+ /**
1085
+ * When `group_by=api_key_id`, this field provides the API Key ID of the grouped
1086
+ * costs result.
1087
+ */
1088
+ api_key_id?: string | null;
1089
+ /**
1090
+ * When `group_by=line_item`, this field provides the line item of the grouped
1091
+ * costs result.
1092
+ */
1093
+ line_item?: string | null;
1094
+ /**
1095
+ * When `group_by=project_id`, this field provides the project ID of the grouped
1096
+ * costs result.
1097
+ */
1098
+ project_id?: string | null;
1099
+ /**
1100
+ * When `group_by=line_item`, this field provides the quantity of the grouped costs
1101
+ * result.
1102
+ */
1103
+ quantity?: number | null;
1104
+ }
1105
+ namespace OrganizationCostsResult {
1106
+ /**
1107
+ * The monetary value in its associated currency.
1108
+ */
1109
+ interface Amount {
1110
+ /**
1111
+ * Lowercase ISO-4217 currency e.g. "usd"
1112
+ */
1113
+ currency?: string;
1114
+ /**
1115
+ * The numeric value of the cost.
1116
+ */
1117
+ value?: number;
1118
+ }
1119
+ }
1120
+ }
1121
+ }
1122
+ export interface UsageCompletionsResponse {
1123
+ data: Array<UsageCompletionsResponse.Data>;
1124
+ has_more: boolean;
1125
+ next_page: string | null;
1126
+ object: 'page';
1127
+ }
1128
+ export declare namespace UsageCompletionsResponse {
1129
+ interface Data {
1130
+ end_time: number;
1131
+ object: 'bucket';
1132
+ results: Array<Data.OrganizationUsageCompletionsResult | Data.OrganizationUsageEmbeddingsResult | Data.OrganizationUsageModerationsResult | Data.OrganizationUsageImagesResult | Data.OrganizationUsageAudioSpeechesResult | Data.OrganizationUsageAudioTranscriptionsResult | Data.OrganizationUsageVectorStoresResult | Data.OrganizationUsageCodeInterpreterSessionsResult | Data.OrganizationCostsResult>;
1133
+ start_time: number;
1134
+ }
1135
+ namespace Data {
1136
+ /**
1137
+ * The aggregated completions usage details of the specific time bucket.
1138
+ */
1139
+ interface OrganizationUsageCompletionsResult {
1140
+ /**
1141
+ * The aggregated number of text input tokens used, including cached tokens. For
1142
+ * customers subscribe to scale tier, this includes scale tier tokens.
1143
+ */
1144
+ input_tokens: number;
1145
+ /**
1146
+ * The count of requests made to the model.
1147
+ */
1148
+ num_model_requests: number;
1149
+ object: 'organization.usage.completions.result';
1150
+ /**
1151
+ * The aggregated number of text output tokens used. For customers subscribe to
1152
+ * scale tier, this includes scale tier tokens.
1153
+ */
1154
+ output_tokens: number;
1155
+ /**
1156
+ * When `group_by=api_key_id`, this field provides the API key ID of the grouped
1157
+ * usage result.
1158
+ */
1159
+ api_key_id?: string | null;
1160
+ /**
1161
+ * When `group_by=batch`, this field tells whether the grouped usage result is
1162
+ * batch or not.
1163
+ */
1164
+ batch?: boolean | null;
1165
+ /**
1166
+ * The aggregated number of audio input tokens used, including cached tokens.
1167
+ */
1168
+ input_audio_tokens?: number;
1169
+ /**
1170
+ * The aggregated number of text input tokens that has been cached from previous
1171
+ * requests. For customers subscribe to scale tier, this includes scale tier
1172
+ * tokens.
1173
+ */
1174
+ input_cached_tokens?: number;
1175
+ /**
1176
+ * When `group_by=model`, this field provides the model name of the grouped usage
1177
+ * result.
1178
+ */
1179
+ model?: string | null;
1180
+ /**
1181
+ * The aggregated number of audio output tokens used.
1182
+ */
1183
+ output_audio_tokens?: number;
1184
+ /**
1185
+ * When `group_by=project_id`, this field provides the project ID of the grouped
1186
+ * usage result.
1187
+ */
1188
+ project_id?: string | null;
1189
+ /**
1190
+ * When `group_by=service_tier`, this field provides the service tier of the
1191
+ * grouped usage result.
1192
+ */
1193
+ service_tier?: string | null;
1194
+ /**
1195
+ * When `group_by=user_id`, this field provides the user ID of the grouped usage
1196
+ * result.
1197
+ */
1198
+ user_id?: string | null;
1199
+ }
1200
+ /**
1201
+ * The aggregated embeddings usage details of the specific time bucket.
1202
+ */
1203
+ interface OrganizationUsageEmbeddingsResult {
1204
+ /**
1205
+ * The aggregated number of input tokens used.
1206
+ */
1207
+ input_tokens: number;
1208
+ /**
1209
+ * The count of requests made to the model.
1210
+ */
1211
+ num_model_requests: number;
1212
+ object: 'organization.usage.embeddings.result';
1213
+ /**
1214
+ * When `group_by=api_key_id`, this field provides the API key ID of the grouped
1215
+ * usage result.
1216
+ */
1217
+ api_key_id?: string | null;
1218
+ /**
1219
+ * When `group_by=model`, this field provides the model name of the grouped usage
1220
+ * result.
1221
+ */
1222
+ model?: string | null;
1223
+ /**
1224
+ * When `group_by=project_id`, this field provides the project ID of the grouped
1225
+ * usage result.
1226
+ */
1227
+ project_id?: string | null;
1228
+ /**
1229
+ * When `group_by=user_id`, this field provides the user ID of the grouped usage
1230
+ * result.
1231
+ */
1232
+ user_id?: string | null;
1233
+ }
1234
+ /**
1235
+ * The aggregated moderations usage details of the specific time bucket.
1236
+ */
1237
+ interface OrganizationUsageModerationsResult {
1238
+ /**
1239
+ * The aggregated number of input tokens used.
1240
+ */
1241
+ input_tokens: number;
1242
+ /**
1243
+ * The count of requests made to the model.
1244
+ */
1245
+ num_model_requests: number;
1246
+ object: 'organization.usage.moderations.result';
1247
+ /**
1248
+ * When `group_by=api_key_id`, this field provides the API key ID of the grouped
1249
+ * usage result.
1250
+ */
1251
+ api_key_id?: string | null;
1252
+ /**
1253
+ * When `group_by=model`, this field provides the model name of the grouped usage
1254
+ * result.
1255
+ */
1256
+ model?: string | null;
1257
+ /**
1258
+ * When `group_by=project_id`, this field provides the project ID of the grouped
1259
+ * usage result.
1260
+ */
1261
+ project_id?: string | null;
1262
+ /**
1263
+ * When `group_by=user_id`, this field provides the user ID of the grouped usage
1264
+ * result.
1265
+ */
1266
+ user_id?: string | null;
1267
+ }
1268
+ /**
1269
+ * The aggregated images usage details of the specific time bucket.
1270
+ */
1271
+ interface OrganizationUsageImagesResult {
1272
+ /**
1273
+ * The number of images processed.
1274
+ */
1275
+ images: number;
1276
+ /**
1277
+ * The count of requests made to the model.
1278
+ */
1279
+ num_model_requests: number;
1280
+ object: 'organization.usage.images.result';
1281
+ /**
1282
+ * When `group_by=api_key_id`, this field provides the API key ID of the grouped
1283
+ * usage result.
1284
+ */
1285
+ api_key_id?: string | null;
1286
+ /**
1287
+ * When `group_by=model`, this field provides the model name of the grouped usage
1288
+ * result.
1289
+ */
1290
+ model?: string | null;
1291
+ /**
1292
+ * When `group_by=project_id`, this field provides the project ID of the grouped
1293
+ * usage result.
1294
+ */
1295
+ project_id?: string | null;
1296
+ /**
1297
+ * When `group_by=size`, this field provides the image size of the grouped usage
1298
+ * result.
1299
+ */
1300
+ size?: string | null;
1301
+ /**
1302
+ * When `group_by=source`, this field provides the source of the grouped usage
1303
+ * result, possible values are `image.generation`, `image.edit`, `image.variation`.
1304
+ */
1305
+ source?: string | null;
1306
+ /**
1307
+ * When `group_by=user_id`, this field provides the user ID of the grouped usage
1308
+ * result.
1309
+ */
1310
+ user_id?: string | null;
1311
+ }
1312
+ /**
1313
+ * The aggregated audio speeches usage details of the specific time bucket.
1314
+ */
1315
+ interface OrganizationUsageAudioSpeechesResult {
1316
+ /**
1317
+ * The number of characters processed.
1318
+ */
1319
+ characters: number;
1320
+ /**
1321
+ * The count of requests made to the model.
1322
+ */
1323
+ num_model_requests: number;
1324
+ object: 'organization.usage.audio_speeches.result';
1325
+ /**
1326
+ * When `group_by=api_key_id`, this field provides the API key ID of the grouped
1327
+ * usage result.
1328
+ */
1329
+ api_key_id?: string | null;
1330
+ /**
1331
+ * When `group_by=model`, this field provides the model name of the grouped usage
1332
+ * result.
1333
+ */
1334
+ model?: string | null;
1335
+ /**
1336
+ * When `group_by=project_id`, this field provides the project ID of the grouped
1337
+ * usage result.
1338
+ */
1339
+ project_id?: string | null;
1340
+ /**
1341
+ * When `group_by=user_id`, this field provides the user ID of the grouped usage
1342
+ * result.
1343
+ */
1344
+ user_id?: string | null;
1345
+ }
1346
+ /**
1347
+ * The aggregated audio transcriptions usage details of the specific time bucket.
1348
+ */
1349
+ interface OrganizationUsageAudioTranscriptionsResult {
1350
+ /**
1351
+ * The count of requests made to the model.
1352
+ */
1353
+ num_model_requests: number;
1354
+ object: 'organization.usage.audio_transcriptions.result';
1355
+ /**
1356
+ * The number of seconds processed.
1357
+ */
1358
+ seconds: number;
1359
+ /**
1360
+ * When `group_by=api_key_id`, this field provides the API key ID of the grouped
1361
+ * usage result.
1362
+ */
1363
+ api_key_id?: string | null;
1364
+ /**
1365
+ * When `group_by=model`, this field provides the model name of the grouped usage
1366
+ * result.
1367
+ */
1368
+ model?: string | null;
1369
+ /**
1370
+ * When `group_by=project_id`, this field provides the project ID of the grouped
1371
+ * usage result.
1372
+ */
1373
+ project_id?: string | null;
1374
+ /**
1375
+ * When `group_by=user_id`, this field provides the user ID of the grouped usage
1376
+ * result.
1377
+ */
1378
+ user_id?: string | null;
1379
+ }
1380
+ /**
1381
+ * The aggregated vector stores usage details of the specific time bucket.
1382
+ */
1383
+ interface OrganizationUsageVectorStoresResult {
1384
+ object: 'organization.usage.vector_stores.result';
1385
+ /**
1386
+ * The vector stores usage in bytes.
1387
+ */
1388
+ usage_bytes: number;
1389
+ /**
1390
+ * When `group_by=project_id`, this field provides the project ID of the grouped
1391
+ * usage result.
1392
+ */
1393
+ project_id?: string | null;
1394
+ }
1395
+ /**
1396
+ * The aggregated code interpreter sessions usage details of the specific time
1397
+ * bucket.
1398
+ */
1399
+ interface OrganizationUsageCodeInterpreterSessionsResult {
1400
+ /**
1401
+ * The number of code interpreter sessions.
1402
+ */
1403
+ num_sessions: number;
1404
+ object: 'organization.usage.code_interpreter_sessions.result';
1405
+ /**
1406
+ * When `group_by=project_id`, this field provides the project ID of the grouped
1407
+ * usage result.
1408
+ */
1409
+ project_id?: string | null;
1410
+ }
1411
+ /**
1412
+ * The aggregated costs details of the specific time bucket.
1413
+ */
1414
+ interface OrganizationCostsResult {
1415
+ object: 'organization.costs.result';
1416
+ /**
1417
+ * The monetary value in its associated currency.
1418
+ */
1419
+ amount?: OrganizationCostsResult.Amount;
1420
+ /**
1421
+ * When `group_by=api_key_id`, this field provides the API Key ID of the grouped
1422
+ * costs result.
1423
+ */
1424
+ api_key_id?: string | null;
1425
+ /**
1426
+ * When `group_by=line_item`, this field provides the line item of the grouped
1427
+ * costs result.
1428
+ */
1429
+ line_item?: string | null;
1430
+ /**
1431
+ * When `group_by=project_id`, this field provides the project ID of the grouped
1432
+ * costs result.
1433
+ */
1434
+ project_id?: string | null;
1435
+ /**
1436
+ * When `group_by=line_item`, this field provides the quantity of the grouped costs
1437
+ * result.
1438
+ */
1439
+ quantity?: number | null;
1440
+ }
1441
+ namespace OrganizationCostsResult {
1442
+ /**
1443
+ * The monetary value in its associated currency.
1444
+ */
1445
+ interface Amount {
1446
+ /**
1447
+ * Lowercase ISO-4217 currency e.g. "usd"
1448
+ */
1449
+ currency?: string;
1450
+ /**
1451
+ * The numeric value of the cost.
1452
+ */
1453
+ value?: number;
1454
+ }
1455
+ }
1456
+ }
1457
+ }
1458
+ export interface UsageCostsResponse {
1459
+ data: Array<UsageCostsResponse.Data>;
1460
+ has_more: boolean;
1461
+ next_page: string | null;
1462
+ object: 'page';
1463
+ }
1464
+ export declare namespace UsageCostsResponse {
1465
+ interface Data {
1466
+ end_time: number;
1467
+ object: 'bucket';
1468
+ results: Array<Data.OrganizationUsageCompletionsResult | Data.OrganizationUsageEmbeddingsResult | Data.OrganizationUsageModerationsResult | Data.OrganizationUsageImagesResult | Data.OrganizationUsageAudioSpeechesResult | Data.OrganizationUsageAudioTranscriptionsResult | Data.OrganizationUsageVectorStoresResult | Data.OrganizationUsageCodeInterpreterSessionsResult | Data.OrganizationCostsResult>;
1469
+ start_time: number;
1470
+ }
1471
+ namespace Data {
1472
+ /**
1473
+ * The aggregated completions usage details of the specific time bucket.
1474
+ */
1475
+ interface OrganizationUsageCompletionsResult {
1476
+ /**
1477
+ * The aggregated number of text input tokens used, including cached tokens. For
1478
+ * customers subscribe to scale tier, this includes scale tier tokens.
1479
+ */
1480
+ input_tokens: number;
1481
+ /**
1482
+ * The count of requests made to the model.
1483
+ */
1484
+ num_model_requests: number;
1485
+ object: 'organization.usage.completions.result';
1486
+ /**
1487
+ * The aggregated number of text output tokens used. For customers subscribe to
1488
+ * scale tier, this includes scale tier tokens.
1489
+ */
1490
+ output_tokens: number;
1491
+ /**
1492
+ * When `group_by=api_key_id`, this field provides the API key ID of the grouped
1493
+ * usage result.
1494
+ */
1495
+ api_key_id?: string | null;
1496
+ /**
1497
+ * When `group_by=batch`, this field tells whether the grouped usage result is
1498
+ * batch or not.
1499
+ */
1500
+ batch?: boolean | null;
1501
+ /**
1502
+ * The aggregated number of audio input tokens used, including cached tokens.
1503
+ */
1504
+ input_audio_tokens?: number;
1505
+ /**
1506
+ * The aggregated number of text input tokens that has been cached from previous
1507
+ * requests. For customers subscribe to scale tier, this includes scale tier
1508
+ * tokens.
1509
+ */
1510
+ input_cached_tokens?: number;
1511
+ /**
1512
+ * When `group_by=model`, this field provides the model name of the grouped usage
1513
+ * result.
1514
+ */
1515
+ model?: string | null;
1516
+ /**
1517
+ * The aggregated number of audio output tokens used.
1518
+ */
1519
+ output_audio_tokens?: number;
1520
+ /**
1521
+ * When `group_by=project_id`, this field provides the project ID of the grouped
1522
+ * usage result.
1523
+ */
1524
+ project_id?: string | null;
1525
+ /**
1526
+ * When `group_by=service_tier`, this field provides the service tier of the
1527
+ * grouped usage result.
1528
+ */
1529
+ service_tier?: string | null;
1530
+ /**
1531
+ * When `group_by=user_id`, this field provides the user ID of the grouped usage
1532
+ * result.
1533
+ */
1534
+ user_id?: string | null;
1535
+ }
1536
+ /**
1537
+ * The aggregated embeddings usage details of the specific time bucket.
1538
+ */
1539
+ interface OrganizationUsageEmbeddingsResult {
1540
+ /**
1541
+ * The aggregated number of input tokens used.
1542
+ */
1543
+ input_tokens: number;
1544
+ /**
1545
+ * The count of requests made to the model.
1546
+ */
1547
+ num_model_requests: number;
1548
+ object: 'organization.usage.embeddings.result';
1549
+ /**
1550
+ * When `group_by=api_key_id`, this field provides the API key ID of the grouped
1551
+ * usage result.
1552
+ */
1553
+ api_key_id?: string | null;
1554
+ /**
1555
+ * When `group_by=model`, this field provides the model name of the grouped usage
1556
+ * result.
1557
+ */
1558
+ model?: string | null;
1559
+ /**
1560
+ * When `group_by=project_id`, this field provides the project ID of the grouped
1561
+ * usage result.
1562
+ */
1563
+ project_id?: string | null;
1564
+ /**
1565
+ * When `group_by=user_id`, this field provides the user ID of the grouped usage
1566
+ * result.
1567
+ */
1568
+ user_id?: string | null;
1569
+ }
1570
+ /**
1571
+ * The aggregated moderations usage details of the specific time bucket.
1572
+ */
1573
+ interface OrganizationUsageModerationsResult {
1574
+ /**
1575
+ * The aggregated number of input tokens used.
1576
+ */
1577
+ input_tokens: number;
1578
+ /**
1579
+ * The count of requests made to the model.
1580
+ */
1581
+ num_model_requests: number;
1582
+ object: 'organization.usage.moderations.result';
1583
+ /**
1584
+ * When `group_by=api_key_id`, this field provides the API key ID of the grouped
1585
+ * usage result.
1586
+ */
1587
+ api_key_id?: string | null;
1588
+ /**
1589
+ * When `group_by=model`, this field provides the model name of the grouped usage
1590
+ * result.
1591
+ */
1592
+ model?: string | null;
1593
+ /**
1594
+ * When `group_by=project_id`, this field provides the project ID of the grouped
1595
+ * usage result.
1596
+ */
1597
+ project_id?: string | null;
1598
+ /**
1599
+ * When `group_by=user_id`, this field provides the user ID of the grouped usage
1600
+ * result.
1601
+ */
1602
+ user_id?: string | null;
1603
+ }
1604
+ /**
1605
+ * The aggregated images usage details of the specific time bucket.
1606
+ */
1607
+ interface OrganizationUsageImagesResult {
1608
+ /**
1609
+ * The number of images processed.
1610
+ */
1611
+ images: number;
1612
+ /**
1613
+ * The count of requests made to the model.
1614
+ */
1615
+ num_model_requests: number;
1616
+ object: 'organization.usage.images.result';
1617
+ /**
1618
+ * When `group_by=api_key_id`, this field provides the API key ID of the grouped
1619
+ * usage result.
1620
+ */
1621
+ api_key_id?: string | null;
1622
+ /**
1623
+ * When `group_by=model`, this field provides the model name of the grouped usage
1624
+ * result.
1625
+ */
1626
+ model?: string | null;
1627
+ /**
1628
+ * When `group_by=project_id`, this field provides the project ID of the grouped
1629
+ * usage result.
1630
+ */
1631
+ project_id?: string | null;
1632
+ /**
1633
+ * When `group_by=size`, this field provides the image size of the grouped usage
1634
+ * result.
1635
+ */
1636
+ size?: string | null;
1637
+ /**
1638
+ * When `group_by=source`, this field provides the source of the grouped usage
1639
+ * result, possible values are `image.generation`, `image.edit`, `image.variation`.
1640
+ */
1641
+ source?: string | null;
1642
+ /**
1643
+ * When `group_by=user_id`, this field provides the user ID of the grouped usage
1644
+ * result.
1645
+ */
1646
+ user_id?: string | null;
1647
+ }
1648
+ /**
1649
+ * The aggregated audio speeches usage details of the specific time bucket.
1650
+ */
1651
+ interface OrganizationUsageAudioSpeechesResult {
1652
+ /**
1653
+ * The number of characters processed.
1654
+ */
1655
+ characters: number;
1656
+ /**
1657
+ * The count of requests made to the model.
1658
+ */
1659
+ num_model_requests: number;
1660
+ object: 'organization.usage.audio_speeches.result';
1661
+ /**
1662
+ * When `group_by=api_key_id`, this field provides the API key ID of the grouped
1663
+ * usage result.
1664
+ */
1665
+ api_key_id?: string | null;
1666
+ /**
1667
+ * When `group_by=model`, this field provides the model name of the grouped usage
1668
+ * result.
1669
+ */
1670
+ model?: string | null;
1671
+ /**
1672
+ * When `group_by=project_id`, this field provides the project ID of the grouped
1673
+ * usage result.
1674
+ */
1675
+ project_id?: string | null;
1676
+ /**
1677
+ * When `group_by=user_id`, this field provides the user ID of the grouped usage
1678
+ * result.
1679
+ */
1680
+ user_id?: string | null;
1681
+ }
1682
+ /**
1683
+ * The aggregated audio transcriptions usage details of the specific time bucket.
1684
+ */
1685
+ interface OrganizationUsageAudioTranscriptionsResult {
1686
+ /**
1687
+ * The count of requests made to the model.
1688
+ */
1689
+ num_model_requests: number;
1690
+ object: 'organization.usage.audio_transcriptions.result';
1691
+ /**
1692
+ * The number of seconds processed.
1693
+ */
1694
+ seconds: number;
1695
+ /**
1696
+ * When `group_by=api_key_id`, this field provides the API key ID of the grouped
1697
+ * usage result.
1698
+ */
1699
+ api_key_id?: string | null;
1700
+ /**
1701
+ * When `group_by=model`, this field provides the model name of the grouped usage
1702
+ * result.
1703
+ */
1704
+ model?: string | null;
1705
+ /**
1706
+ * When `group_by=project_id`, this field provides the project ID of the grouped
1707
+ * usage result.
1708
+ */
1709
+ project_id?: string | null;
1710
+ /**
1711
+ * When `group_by=user_id`, this field provides the user ID of the grouped usage
1712
+ * result.
1713
+ */
1714
+ user_id?: string | null;
1715
+ }
1716
+ /**
1717
+ * The aggregated vector stores usage details of the specific time bucket.
1718
+ */
1719
+ interface OrganizationUsageVectorStoresResult {
1720
+ object: 'organization.usage.vector_stores.result';
1721
+ /**
1722
+ * The vector stores usage in bytes.
1723
+ */
1724
+ usage_bytes: number;
1725
+ /**
1726
+ * When `group_by=project_id`, this field provides the project ID of the grouped
1727
+ * usage result.
1728
+ */
1729
+ project_id?: string | null;
1730
+ }
1731
+ /**
1732
+ * The aggregated code interpreter sessions usage details of the specific time
1733
+ * bucket.
1734
+ */
1735
+ interface OrganizationUsageCodeInterpreterSessionsResult {
1736
+ /**
1737
+ * The number of code interpreter sessions.
1738
+ */
1739
+ num_sessions: number;
1740
+ object: 'organization.usage.code_interpreter_sessions.result';
1741
+ /**
1742
+ * When `group_by=project_id`, this field provides the project ID of the grouped
1743
+ * usage result.
1744
+ */
1745
+ project_id?: string | null;
1746
+ }
1747
+ /**
1748
+ * The aggregated costs details of the specific time bucket.
1749
+ */
1750
+ interface OrganizationCostsResult {
1751
+ object: 'organization.costs.result';
1752
+ /**
1753
+ * The monetary value in its associated currency.
1754
+ */
1755
+ amount?: OrganizationCostsResult.Amount;
1756
+ /**
1757
+ * When `group_by=api_key_id`, this field provides the API Key ID of the grouped
1758
+ * costs result.
1759
+ */
1760
+ api_key_id?: string | null;
1761
+ /**
1762
+ * When `group_by=line_item`, this field provides the line item of the grouped
1763
+ * costs result.
1764
+ */
1765
+ line_item?: string | null;
1766
+ /**
1767
+ * When `group_by=project_id`, this field provides the project ID of the grouped
1768
+ * costs result.
1769
+ */
1770
+ project_id?: string | null;
1771
+ /**
1772
+ * When `group_by=line_item`, this field provides the quantity of the grouped costs
1773
+ * result.
1774
+ */
1775
+ quantity?: number | null;
1776
+ }
1777
+ namespace OrganizationCostsResult {
1778
+ /**
1779
+ * The monetary value in its associated currency.
1780
+ */
1781
+ interface Amount {
1782
+ /**
1783
+ * Lowercase ISO-4217 currency e.g. "usd"
1784
+ */
1785
+ currency?: string;
1786
+ /**
1787
+ * The numeric value of the cost.
1788
+ */
1789
+ value?: number;
1790
+ }
1791
+ }
1792
+ }
1793
+ }
1794
+ export interface UsageEmbeddingsResponse {
1795
+ data: Array<UsageEmbeddingsResponse.Data>;
1796
+ has_more: boolean;
1797
+ next_page: string | null;
1798
+ object: 'page';
1799
+ }
1800
+ export declare namespace UsageEmbeddingsResponse {
1801
+ interface Data {
1802
+ end_time: number;
1803
+ object: 'bucket';
1804
+ results: Array<Data.OrganizationUsageCompletionsResult | Data.OrganizationUsageEmbeddingsResult | Data.OrganizationUsageModerationsResult | Data.OrganizationUsageImagesResult | Data.OrganizationUsageAudioSpeechesResult | Data.OrganizationUsageAudioTranscriptionsResult | Data.OrganizationUsageVectorStoresResult | Data.OrganizationUsageCodeInterpreterSessionsResult | Data.OrganizationCostsResult>;
1805
+ start_time: number;
1806
+ }
1807
+ namespace Data {
1808
+ /**
1809
+ * The aggregated completions usage details of the specific time bucket.
1810
+ */
1811
+ interface OrganizationUsageCompletionsResult {
1812
+ /**
1813
+ * The aggregated number of text input tokens used, including cached tokens. For
1814
+ * customers subscribe to scale tier, this includes scale tier tokens.
1815
+ */
1816
+ input_tokens: number;
1817
+ /**
1818
+ * The count of requests made to the model.
1819
+ */
1820
+ num_model_requests: number;
1821
+ object: 'organization.usage.completions.result';
1822
+ /**
1823
+ * The aggregated number of text output tokens used. For customers subscribe to
1824
+ * scale tier, this includes scale tier tokens.
1825
+ */
1826
+ output_tokens: number;
1827
+ /**
1828
+ * When `group_by=api_key_id`, this field provides the API key ID of the grouped
1829
+ * usage result.
1830
+ */
1831
+ api_key_id?: string | null;
1832
+ /**
1833
+ * When `group_by=batch`, this field tells whether the grouped usage result is
1834
+ * batch or not.
1835
+ */
1836
+ batch?: boolean | null;
1837
+ /**
1838
+ * The aggregated number of audio input tokens used, including cached tokens.
1839
+ */
1840
+ input_audio_tokens?: number;
1841
+ /**
1842
+ * The aggregated number of text input tokens that has been cached from previous
1843
+ * requests. For customers subscribe to scale tier, this includes scale tier
1844
+ * tokens.
1845
+ */
1846
+ input_cached_tokens?: number;
1847
+ /**
1848
+ * When `group_by=model`, this field provides the model name of the grouped usage
1849
+ * result.
1850
+ */
1851
+ model?: string | null;
1852
+ /**
1853
+ * The aggregated number of audio output tokens used.
1854
+ */
1855
+ output_audio_tokens?: number;
1856
+ /**
1857
+ * When `group_by=project_id`, this field provides the project ID of the grouped
1858
+ * usage result.
1859
+ */
1860
+ project_id?: string | null;
1861
+ /**
1862
+ * When `group_by=service_tier`, this field provides the service tier of the
1863
+ * grouped usage result.
1864
+ */
1865
+ service_tier?: string | null;
1866
+ /**
1867
+ * When `group_by=user_id`, this field provides the user ID of the grouped usage
1868
+ * result.
1869
+ */
1870
+ user_id?: string | null;
1871
+ }
1872
+ /**
1873
+ * The aggregated embeddings usage details of the specific time bucket.
1874
+ */
1875
+ interface OrganizationUsageEmbeddingsResult {
1876
+ /**
1877
+ * The aggregated number of input tokens used.
1878
+ */
1879
+ input_tokens: number;
1880
+ /**
1881
+ * The count of requests made to the model.
1882
+ */
1883
+ num_model_requests: number;
1884
+ object: 'organization.usage.embeddings.result';
1885
+ /**
1886
+ * When `group_by=api_key_id`, this field provides the API key ID of the grouped
1887
+ * usage result.
1888
+ */
1889
+ api_key_id?: string | null;
1890
+ /**
1891
+ * When `group_by=model`, this field provides the model name of the grouped usage
1892
+ * result.
1893
+ */
1894
+ model?: string | null;
1895
+ /**
1896
+ * When `group_by=project_id`, this field provides the project ID of the grouped
1897
+ * usage result.
1898
+ */
1899
+ project_id?: string | null;
1900
+ /**
1901
+ * When `group_by=user_id`, this field provides the user ID of the grouped usage
1902
+ * result.
1903
+ */
1904
+ user_id?: string | null;
1905
+ }
1906
+ /**
1907
+ * The aggregated moderations usage details of the specific time bucket.
1908
+ */
1909
+ interface OrganizationUsageModerationsResult {
1910
+ /**
1911
+ * The aggregated number of input tokens used.
1912
+ */
1913
+ input_tokens: number;
1914
+ /**
1915
+ * The count of requests made to the model.
1916
+ */
1917
+ num_model_requests: number;
1918
+ object: 'organization.usage.moderations.result';
1919
+ /**
1920
+ * When `group_by=api_key_id`, this field provides the API key ID of the grouped
1921
+ * usage result.
1922
+ */
1923
+ api_key_id?: string | null;
1924
+ /**
1925
+ * When `group_by=model`, this field provides the model name of the grouped usage
1926
+ * result.
1927
+ */
1928
+ model?: string | null;
1929
+ /**
1930
+ * When `group_by=project_id`, this field provides the project ID of the grouped
1931
+ * usage result.
1932
+ */
1933
+ project_id?: string | null;
1934
+ /**
1935
+ * When `group_by=user_id`, this field provides the user ID of the grouped usage
1936
+ * result.
1937
+ */
1938
+ user_id?: string | null;
1939
+ }
1940
+ /**
1941
+ * The aggregated images usage details of the specific time bucket.
1942
+ */
1943
+ interface OrganizationUsageImagesResult {
1944
+ /**
1945
+ * The number of images processed.
1946
+ */
1947
+ images: number;
1948
+ /**
1949
+ * The count of requests made to the model.
1950
+ */
1951
+ num_model_requests: number;
1952
+ object: 'organization.usage.images.result';
1953
+ /**
1954
+ * When `group_by=api_key_id`, this field provides the API key ID of the grouped
1955
+ * usage result.
1956
+ */
1957
+ api_key_id?: string | null;
1958
+ /**
1959
+ * When `group_by=model`, this field provides the model name of the grouped usage
1960
+ * result.
1961
+ */
1962
+ model?: string | null;
1963
+ /**
1964
+ * When `group_by=project_id`, this field provides the project ID of the grouped
1965
+ * usage result.
1966
+ */
1967
+ project_id?: string | null;
1968
+ /**
1969
+ * When `group_by=size`, this field provides the image size of the grouped usage
1970
+ * result.
1971
+ */
1972
+ size?: string | null;
1973
+ /**
1974
+ * When `group_by=source`, this field provides the source of the grouped usage
1975
+ * result, possible values are `image.generation`, `image.edit`, `image.variation`.
1976
+ */
1977
+ source?: string | null;
1978
+ /**
1979
+ * When `group_by=user_id`, this field provides the user ID of the grouped usage
1980
+ * result.
1981
+ */
1982
+ user_id?: string | null;
1983
+ }
1984
+ /**
1985
+ * The aggregated audio speeches usage details of the specific time bucket.
1986
+ */
1987
+ interface OrganizationUsageAudioSpeechesResult {
1988
+ /**
1989
+ * The number of characters processed.
1990
+ */
1991
+ characters: number;
1992
+ /**
1993
+ * The count of requests made to the model.
1994
+ */
1995
+ num_model_requests: number;
1996
+ object: 'organization.usage.audio_speeches.result';
1997
+ /**
1998
+ * When `group_by=api_key_id`, this field provides the API key ID of the grouped
1999
+ * usage result.
2000
+ */
2001
+ api_key_id?: string | null;
2002
+ /**
2003
+ * When `group_by=model`, this field provides the model name of the grouped usage
2004
+ * result.
2005
+ */
2006
+ model?: string | null;
2007
+ /**
2008
+ * When `group_by=project_id`, this field provides the project ID of the grouped
2009
+ * usage result.
2010
+ */
2011
+ project_id?: string | null;
2012
+ /**
2013
+ * When `group_by=user_id`, this field provides the user ID of the grouped usage
2014
+ * result.
2015
+ */
2016
+ user_id?: string | null;
2017
+ }
2018
+ /**
2019
+ * The aggregated audio transcriptions usage details of the specific time bucket.
2020
+ */
2021
+ interface OrganizationUsageAudioTranscriptionsResult {
2022
+ /**
2023
+ * The count of requests made to the model.
2024
+ */
2025
+ num_model_requests: number;
2026
+ object: 'organization.usage.audio_transcriptions.result';
2027
+ /**
2028
+ * The number of seconds processed.
2029
+ */
2030
+ seconds: number;
2031
+ /**
2032
+ * When `group_by=api_key_id`, this field provides the API key ID of the grouped
2033
+ * usage result.
2034
+ */
2035
+ api_key_id?: string | null;
2036
+ /**
2037
+ * When `group_by=model`, this field provides the model name of the grouped usage
2038
+ * result.
2039
+ */
2040
+ model?: string | null;
2041
+ /**
2042
+ * When `group_by=project_id`, this field provides the project ID of the grouped
2043
+ * usage result.
2044
+ */
2045
+ project_id?: string | null;
2046
+ /**
2047
+ * When `group_by=user_id`, this field provides the user ID of the grouped usage
2048
+ * result.
2049
+ */
2050
+ user_id?: string | null;
2051
+ }
2052
+ /**
2053
+ * The aggregated vector stores usage details of the specific time bucket.
2054
+ */
2055
+ interface OrganizationUsageVectorStoresResult {
2056
+ object: 'organization.usage.vector_stores.result';
2057
+ /**
2058
+ * The vector stores usage in bytes.
2059
+ */
2060
+ usage_bytes: number;
2061
+ /**
2062
+ * When `group_by=project_id`, this field provides the project ID of the grouped
2063
+ * usage result.
2064
+ */
2065
+ project_id?: string | null;
2066
+ }
2067
+ /**
2068
+ * The aggregated code interpreter sessions usage details of the specific time
2069
+ * bucket.
2070
+ */
2071
+ interface OrganizationUsageCodeInterpreterSessionsResult {
2072
+ /**
2073
+ * The number of code interpreter sessions.
2074
+ */
2075
+ num_sessions: number;
2076
+ object: 'organization.usage.code_interpreter_sessions.result';
2077
+ /**
2078
+ * When `group_by=project_id`, this field provides the project ID of the grouped
2079
+ * usage result.
2080
+ */
2081
+ project_id?: string | null;
2082
+ }
2083
+ /**
2084
+ * The aggregated costs details of the specific time bucket.
2085
+ */
2086
+ interface OrganizationCostsResult {
2087
+ object: 'organization.costs.result';
2088
+ /**
2089
+ * The monetary value in its associated currency.
2090
+ */
2091
+ amount?: OrganizationCostsResult.Amount;
2092
+ /**
2093
+ * When `group_by=api_key_id`, this field provides the API Key ID of the grouped
2094
+ * costs result.
2095
+ */
2096
+ api_key_id?: string | null;
2097
+ /**
2098
+ * When `group_by=line_item`, this field provides the line item of the grouped
2099
+ * costs result.
2100
+ */
2101
+ line_item?: string | null;
2102
+ /**
2103
+ * When `group_by=project_id`, this field provides the project ID of the grouped
2104
+ * costs result.
2105
+ */
2106
+ project_id?: string | null;
2107
+ /**
2108
+ * When `group_by=line_item`, this field provides the quantity of the grouped costs
2109
+ * result.
2110
+ */
2111
+ quantity?: number | null;
2112
+ }
2113
+ namespace OrganizationCostsResult {
2114
+ /**
2115
+ * The monetary value in its associated currency.
2116
+ */
2117
+ interface Amount {
2118
+ /**
2119
+ * Lowercase ISO-4217 currency e.g. "usd"
2120
+ */
2121
+ currency?: string;
2122
+ /**
2123
+ * The numeric value of the cost.
2124
+ */
2125
+ value?: number;
2126
+ }
2127
+ }
2128
+ }
2129
+ }
2130
+ export interface UsageImagesResponse {
2131
+ data: Array<UsageImagesResponse.Data>;
2132
+ has_more: boolean;
2133
+ next_page: string | null;
2134
+ object: 'page';
2135
+ }
2136
+ export declare namespace UsageImagesResponse {
2137
+ interface Data {
2138
+ end_time: number;
2139
+ object: 'bucket';
2140
+ results: Array<Data.OrganizationUsageCompletionsResult | Data.OrganizationUsageEmbeddingsResult | Data.OrganizationUsageModerationsResult | Data.OrganizationUsageImagesResult | Data.OrganizationUsageAudioSpeechesResult | Data.OrganizationUsageAudioTranscriptionsResult | Data.OrganizationUsageVectorStoresResult | Data.OrganizationUsageCodeInterpreterSessionsResult | Data.OrganizationCostsResult>;
2141
+ start_time: number;
2142
+ }
2143
+ namespace Data {
2144
+ /**
2145
+ * The aggregated completions usage details of the specific time bucket.
2146
+ */
2147
+ interface OrganizationUsageCompletionsResult {
2148
+ /**
2149
+ * The aggregated number of text input tokens used, including cached tokens. For
2150
+ * customers subscribe to scale tier, this includes scale tier tokens.
2151
+ */
2152
+ input_tokens: number;
2153
+ /**
2154
+ * The count of requests made to the model.
2155
+ */
2156
+ num_model_requests: number;
2157
+ object: 'organization.usage.completions.result';
2158
+ /**
2159
+ * The aggregated number of text output tokens used. For customers subscribe to
2160
+ * scale tier, this includes scale tier tokens.
2161
+ */
2162
+ output_tokens: number;
2163
+ /**
2164
+ * When `group_by=api_key_id`, this field provides the API key ID of the grouped
2165
+ * usage result.
2166
+ */
2167
+ api_key_id?: string | null;
2168
+ /**
2169
+ * When `group_by=batch`, this field tells whether the grouped usage result is
2170
+ * batch or not.
2171
+ */
2172
+ batch?: boolean | null;
2173
+ /**
2174
+ * The aggregated number of audio input tokens used, including cached tokens.
2175
+ */
2176
+ input_audio_tokens?: number;
2177
+ /**
2178
+ * The aggregated number of text input tokens that has been cached from previous
2179
+ * requests. For customers subscribe to scale tier, this includes scale tier
2180
+ * tokens.
2181
+ */
2182
+ input_cached_tokens?: number;
2183
+ /**
2184
+ * When `group_by=model`, this field provides the model name of the grouped usage
2185
+ * result.
2186
+ */
2187
+ model?: string | null;
2188
+ /**
2189
+ * The aggregated number of audio output tokens used.
2190
+ */
2191
+ output_audio_tokens?: number;
2192
+ /**
2193
+ * When `group_by=project_id`, this field provides the project ID of the grouped
2194
+ * usage result.
2195
+ */
2196
+ project_id?: string | null;
2197
+ /**
2198
+ * When `group_by=service_tier`, this field provides the service tier of the
2199
+ * grouped usage result.
2200
+ */
2201
+ service_tier?: string | null;
2202
+ /**
2203
+ * When `group_by=user_id`, this field provides the user ID of the grouped usage
2204
+ * result.
2205
+ */
2206
+ user_id?: string | null;
2207
+ }
2208
+ /**
2209
+ * The aggregated embeddings usage details of the specific time bucket.
2210
+ */
2211
+ interface OrganizationUsageEmbeddingsResult {
2212
+ /**
2213
+ * The aggregated number of input tokens used.
2214
+ */
2215
+ input_tokens: number;
2216
+ /**
2217
+ * The count of requests made to the model.
2218
+ */
2219
+ num_model_requests: number;
2220
+ object: 'organization.usage.embeddings.result';
2221
+ /**
2222
+ * When `group_by=api_key_id`, this field provides the API key ID of the grouped
2223
+ * usage result.
2224
+ */
2225
+ api_key_id?: string | null;
2226
+ /**
2227
+ * When `group_by=model`, this field provides the model name of the grouped usage
2228
+ * result.
2229
+ */
2230
+ model?: string | null;
2231
+ /**
2232
+ * When `group_by=project_id`, this field provides the project ID of the grouped
2233
+ * usage result.
2234
+ */
2235
+ project_id?: string | null;
2236
+ /**
2237
+ * When `group_by=user_id`, this field provides the user ID of the grouped usage
2238
+ * result.
2239
+ */
2240
+ user_id?: string | null;
2241
+ }
2242
+ /**
2243
+ * The aggregated moderations usage details of the specific time bucket.
2244
+ */
2245
+ interface OrganizationUsageModerationsResult {
2246
+ /**
2247
+ * The aggregated number of input tokens used.
2248
+ */
2249
+ input_tokens: number;
2250
+ /**
2251
+ * The count of requests made to the model.
2252
+ */
2253
+ num_model_requests: number;
2254
+ object: 'organization.usage.moderations.result';
2255
+ /**
2256
+ * When `group_by=api_key_id`, this field provides the API key ID of the grouped
2257
+ * usage result.
2258
+ */
2259
+ api_key_id?: string | null;
2260
+ /**
2261
+ * When `group_by=model`, this field provides the model name of the grouped usage
2262
+ * result.
2263
+ */
2264
+ model?: string | null;
2265
+ /**
2266
+ * When `group_by=project_id`, this field provides the project ID of the grouped
2267
+ * usage result.
2268
+ */
2269
+ project_id?: string | null;
2270
+ /**
2271
+ * When `group_by=user_id`, this field provides the user ID of the grouped usage
2272
+ * result.
2273
+ */
2274
+ user_id?: string | null;
2275
+ }
2276
+ /**
2277
+ * The aggregated images usage details of the specific time bucket.
2278
+ */
2279
+ interface OrganizationUsageImagesResult {
2280
+ /**
2281
+ * The number of images processed.
2282
+ */
2283
+ images: number;
2284
+ /**
2285
+ * The count of requests made to the model.
2286
+ */
2287
+ num_model_requests: number;
2288
+ object: 'organization.usage.images.result';
2289
+ /**
2290
+ * When `group_by=api_key_id`, this field provides the API key ID of the grouped
2291
+ * usage result.
2292
+ */
2293
+ api_key_id?: string | null;
2294
+ /**
2295
+ * When `group_by=model`, this field provides the model name of the grouped usage
2296
+ * result.
2297
+ */
2298
+ model?: string | null;
2299
+ /**
2300
+ * When `group_by=project_id`, this field provides the project ID of the grouped
2301
+ * usage result.
2302
+ */
2303
+ project_id?: string | null;
2304
+ /**
2305
+ * When `group_by=size`, this field provides the image size of the grouped usage
2306
+ * result.
2307
+ */
2308
+ size?: string | null;
2309
+ /**
2310
+ * When `group_by=source`, this field provides the source of the grouped usage
2311
+ * result, possible values are `image.generation`, `image.edit`, `image.variation`.
2312
+ */
2313
+ source?: string | null;
2314
+ /**
2315
+ * When `group_by=user_id`, this field provides the user ID of the grouped usage
2316
+ * result.
2317
+ */
2318
+ user_id?: string | null;
2319
+ }
2320
+ /**
2321
+ * The aggregated audio speeches usage details of the specific time bucket.
2322
+ */
2323
+ interface OrganizationUsageAudioSpeechesResult {
2324
+ /**
2325
+ * The number of characters processed.
2326
+ */
2327
+ characters: number;
2328
+ /**
2329
+ * The count of requests made to the model.
2330
+ */
2331
+ num_model_requests: number;
2332
+ object: 'organization.usage.audio_speeches.result';
2333
+ /**
2334
+ * When `group_by=api_key_id`, this field provides the API key ID of the grouped
2335
+ * usage result.
2336
+ */
2337
+ api_key_id?: string | null;
2338
+ /**
2339
+ * When `group_by=model`, this field provides the model name of the grouped usage
2340
+ * result.
2341
+ */
2342
+ model?: string | null;
2343
+ /**
2344
+ * When `group_by=project_id`, this field provides the project ID of the grouped
2345
+ * usage result.
2346
+ */
2347
+ project_id?: string | null;
2348
+ /**
2349
+ * When `group_by=user_id`, this field provides the user ID of the grouped usage
2350
+ * result.
2351
+ */
2352
+ user_id?: string | null;
2353
+ }
2354
+ /**
2355
+ * The aggregated audio transcriptions usage details of the specific time bucket.
2356
+ */
2357
+ interface OrganizationUsageAudioTranscriptionsResult {
2358
+ /**
2359
+ * The count of requests made to the model.
2360
+ */
2361
+ num_model_requests: number;
2362
+ object: 'organization.usage.audio_transcriptions.result';
2363
+ /**
2364
+ * The number of seconds processed.
2365
+ */
2366
+ seconds: number;
2367
+ /**
2368
+ * When `group_by=api_key_id`, this field provides the API key ID of the grouped
2369
+ * usage result.
2370
+ */
2371
+ api_key_id?: string | null;
2372
+ /**
2373
+ * When `group_by=model`, this field provides the model name of the grouped usage
2374
+ * result.
2375
+ */
2376
+ model?: string | null;
2377
+ /**
2378
+ * When `group_by=project_id`, this field provides the project ID of the grouped
2379
+ * usage result.
2380
+ */
2381
+ project_id?: string | null;
2382
+ /**
2383
+ * When `group_by=user_id`, this field provides the user ID of the grouped usage
2384
+ * result.
2385
+ */
2386
+ user_id?: string | null;
2387
+ }
2388
+ /**
2389
+ * The aggregated vector stores usage details of the specific time bucket.
2390
+ */
2391
+ interface OrganizationUsageVectorStoresResult {
2392
+ object: 'organization.usage.vector_stores.result';
2393
+ /**
2394
+ * The vector stores usage in bytes.
2395
+ */
2396
+ usage_bytes: number;
2397
+ /**
2398
+ * When `group_by=project_id`, this field provides the project ID of the grouped
2399
+ * usage result.
2400
+ */
2401
+ project_id?: string | null;
2402
+ }
2403
+ /**
2404
+ * The aggregated code interpreter sessions usage details of the specific time
2405
+ * bucket.
2406
+ */
2407
+ interface OrganizationUsageCodeInterpreterSessionsResult {
2408
+ /**
2409
+ * The number of code interpreter sessions.
2410
+ */
2411
+ num_sessions: number;
2412
+ object: 'organization.usage.code_interpreter_sessions.result';
2413
+ /**
2414
+ * When `group_by=project_id`, this field provides the project ID of the grouped
2415
+ * usage result.
2416
+ */
2417
+ project_id?: string | null;
2418
+ }
2419
+ /**
2420
+ * The aggregated costs details of the specific time bucket.
2421
+ */
2422
+ interface OrganizationCostsResult {
2423
+ object: 'organization.costs.result';
2424
+ /**
2425
+ * The monetary value in its associated currency.
2426
+ */
2427
+ amount?: OrganizationCostsResult.Amount;
2428
+ /**
2429
+ * When `group_by=api_key_id`, this field provides the API Key ID of the grouped
2430
+ * costs result.
2431
+ */
2432
+ api_key_id?: string | null;
2433
+ /**
2434
+ * When `group_by=line_item`, this field provides the line item of the grouped
2435
+ * costs result.
2436
+ */
2437
+ line_item?: string | null;
2438
+ /**
2439
+ * When `group_by=project_id`, this field provides the project ID of the grouped
2440
+ * costs result.
2441
+ */
2442
+ project_id?: string | null;
2443
+ /**
2444
+ * When `group_by=line_item`, this field provides the quantity of the grouped costs
2445
+ * result.
2446
+ */
2447
+ quantity?: number | null;
2448
+ }
2449
+ namespace OrganizationCostsResult {
2450
+ /**
2451
+ * The monetary value in its associated currency.
2452
+ */
2453
+ interface Amount {
2454
+ /**
2455
+ * Lowercase ISO-4217 currency e.g. "usd"
2456
+ */
2457
+ currency?: string;
2458
+ /**
2459
+ * The numeric value of the cost.
2460
+ */
2461
+ value?: number;
2462
+ }
2463
+ }
2464
+ }
2465
+ }
2466
+ export interface UsageModerationsResponse {
2467
+ data: Array<UsageModerationsResponse.Data>;
2468
+ has_more: boolean;
2469
+ next_page: string | null;
2470
+ object: 'page';
2471
+ }
2472
+ export declare namespace UsageModerationsResponse {
2473
+ interface Data {
2474
+ end_time: number;
2475
+ object: 'bucket';
2476
+ results: Array<Data.OrganizationUsageCompletionsResult | Data.OrganizationUsageEmbeddingsResult | Data.OrganizationUsageModerationsResult | Data.OrganizationUsageImagesResult | Data.OrganizationUsageAudioSpeechesResult | Data.OrganizationUsageAudioTranscriptionsResult | Data.OrganizationUsageVectorStoresResult | Data.OrganizationUsageCodeInterpreterSessionsResult | Data.OrganizationCostsResult>;
2477
+ start_time: number;
2478
+ }
2479
+ namespace Data {
2480
+ /**
2481
+ * The aggregated completions usage details of the specific time bucket.
2482
+ */
2483
+ interface OrganizationUsageCompletionsResult {
2484
+ /**
2485
+ * The aggregated number of text input tokens used, including cached tokens. For
2486
+ * customers subscribe to scale tier, this includes scale tier tokens.
2487
+ */
2488
+ input_tokens: number;
2489
+ /**
2490
+ * The count of requests made to the model.
2491
+ */
2492
+ num_model_requests: number;
2493
+ object: 'organization.usage.completions.result';
2494
+ /**
2495
+ * The aggregated number of text output tokens used. For customers subscribe to
2496
+ * scale tier, this includes scale tier tokens.
2497
+ */
2498
+ output_tokens: number;
2499
+ /**
2500
+ * When `group_by=api_key_id`, this field provides the API key ID of the grouped
2501
+ * usage result.
2502
+ */
2503
+ api_key_id?: string | null;
2504
+ /**
2505
+ * When `group_by=batch`, this field tells whether the grouped usage result is
2506
+ * batch or not.
2507
+ */
2508
+ batch?: boolean | null;
2509
+ /**
2510
+ * The aggregated number of audio input tokens used, including cached tokens.
2511
+ */
2512
+ input_audio_tokens?: number;
2513
+ /**
2514
+ * The aggregated number of text input tokens that has been cached from previous
2515
+ * requests. For customers subscribe to scale tier, this includes scale tier
2516
+ * tokens.
2517
+ */
2518
+ input_cached_tokens?: number;
2519
+ /**
2520
+ * When `group_by=model`, this field provides the model name of the grouped usage
2521
+ * result.
2522
+ */
2523
+ model?: string | null;
2524
+ /**
2525
+ * The aggregated number of audio output tokens used.
2526
+ */
2527
+ output_audio_tokens?: number;
2528
+ /**
2529
+ * When `group_by=project_id`, this field provides the project ID of the grouped
2530
+ * usage result.
2531
+ */
2532
+ project_id?: string | null;
2533
+ /**
2534
+ * When `group_by=service_tier`, this field provides the service tier of the
2535
+ * grouped usage result.
2536
+ */
2537
+ service_tier?: string | null;
2538
+ /**
2539
+ * When `group_by=user_id`, this field provides the user ID of the grouped usage
2540
+ * result.
2541
+ */
2542
+ user_id?: string | null;
2543
+ }
2544
+ /**
2545
+ * The aggregated embeddings usage details of the specific time bucket.
2546
+ */
2547
+ interface OrganizationUsageEmbeddingsResult {
2548
+ /**
2549
+ * The aggregated number of input tokens used.
2550
+ */
2551
+ input_tokens: number;
2552
+ /**
2553
+ * The count of requests made to the model.
2554
+ */
2555
+ num_model_requests: number;
2556
+ object: 'organization.usage.embeddings.result';
2557
+ /**
2558
+ * When `group_by=api_key_id`, this field provides the API key ID of the grouped
2559
+ * usage result.
2560
+ */
2561
+ api_key_id?: string | null;
2562
+ /**
2563
+ * When `group_by=model`, this field provides the model name of the grouped usage
2564
+ * result.
2565
+ */
2566
+ model?: string | null;
2567
+ /**
2568
+ * When `group_by=project_id`, this field provides the project ID of the grouped
2569
+ * usage result.
2570
+ */
2571
+ project_id?: string | null;
2572
+ /**
2573
+ * When `group_by=user_id`, this field provides the user ID of the grouped usage
2574
+ * result.
2575
+ */
2576
+ user_id?: string | null;
2577
+ }
2578
+ /**
2579
+ * The aggregated moderations usage details of the specific time bucket.
2580
+ */
2581
+ interface OrganizationUsageModerationsResult {
2582
+ /**
2583
+ * The aggregated number of input tokens used.
2584
+ */
2585
+ input_tokens: number;
2586
+ /**
2587
+ * The count of requests made to the model.
2588
+ */
2589
+ num_model_requests: number;
2590
+ object: 'organization.usage.moderations.result';
2591
+ /**
2592
+ * When `group_by=api_key_id`, this field provides the API key ID of the grouped
2593
+ * usage result.
2594
+ */
2595
+ api_key_id?: string | null;
2596
+ /**
2597
+ * When `group_by=model`, this field provides the model name of the grouped usage
2598
+ * result.
2599
+ */
2600
+ model?: string | null;
2601
+ /**
2602
+ * When `group_by=project_id`, this field provides the project ID of the grouped
2603
+ * usage result.
2604
+ */
2605
+ project_id?: string | null;
2606
+ /**
2607
+ * When `group_by=user_id`, this field provides the user ID of the grouped usage
2608
+ * result.
2609
+ */
2610
+ user_id?: string | null;
2611
+ }
2612
+ /**
2613
+ * The aggregated images usage details of the specific time bucket.
2614
+ */
2615
+ interface OrganizationUsageImagesResult {
2616
+ /**
2617
+ * The number of images processed.
2618
+ */
2619
+ images: number;
2620
+ /**
2621
+ * The count of requests made to the model.
2622
+ */
2623
+ num_model_requests: number;
2624
+ object: 'organization.usage.images.result';
2625
+ /**
2626
+ * When `group_by=api_key_id`, this field provides the API key ID of the grouped
2627
+ * usage result.
2628
+ */
2629
+ api_key_id?: string | null;
2630
+ /**
2631
+ * When `group_by=model`, this field provides the model name of the grouped usage
2632
+ * result.
2633
+ */
2634
+ model?: string | null;
2635
+ /**
2636
+ * When `group_by=project_id`, this field provides the project ID of the grouped
2637
+ * usage result.
2638
+ */
2639
+ project_id?: string | null;
2640
+ /**
2641
+ * When `group_by=size`, this field provides the image size of the grouped usage
2642
+ * result.
2643
+ */
2644
+ size?: string | null;
2645
+ /**
2646
+ * When `group_by=source`, this field provides the source of the grouped usage
2647
+ * result, possible values are `image.generation`, `image.edit`, `image.variation`.
2648
+ */
2649
+ source?: string | null;
2650
+ /**
2651
+ * When `group_by=user_id`, this field provides the user ID of the grouped usage
2652
+ * result.
2653
+ */
2654
+ user_id?: string | null;
2655
+ }
2656
+ /**
2657
+ * The aggregated audio speeches usage details of the specific time bucket.
2658
+ */
2659
+ interface OrganizationUsageAudioSpeechesResult {
2660
+ /**
2661
+ * The number of characters processed.
2662
+ */
2663
+ characters: number;
2664
+ /**
2665
+ * The count of requests made to the model.
2666
+ */
2667
+ num_model_requests: number;
2668
+ object: 'organization.usage.audio_speeches.result';
2669
+ /**
2670
+ * When `group_by=api_key_id`, this field provides the API key ID of the grouped
2671
+ * usage result.
2672
+ */
2673
+ api_key_id?: string | null;
2674
+ /**
2675
+ * When `group_by=model`, this field provides the model name of the grouped usage
2676
+ * result.
2677
+ */
2678
+ model?: string | null;
2679
+ /**
2680
+ * When `group_by=project_id`, this field provides the project ID of the grouped
2681
+ * usage result.
2682
+ */
2683
+ project_id?: string | null;
2684
+ /**
2685
+ * When `group_by=user_id`, this field provides the user ID of the grouped usage
2686
+ * result.
2687
+ */
2688
+ user_id?: string | null;
2689
+ }
2690
+ /**
2691
+ * The aggregated audio transcriptions usage details of the specific time bucket.
2692
+ */
2693
+ interface OrganizationUsageAudioTranscriptionsResult {
2694
+ /**
2695
+ * The count of requests made to the model.
2696
+ */
2697
+ num_model_requests: number;
2698
+ object: 'organization.usage.audio_transcriptions.result';
2699
+ /**
2700
+ * The number of seconds processed.
2701
+ */
2702
+ seconds: number;
2703
+ /**
2704
+ * When `group_by=api_key_id`, this field provides the API key ID of the grouped
2705
+ * usage result.
2706
+ */
2707
+ api_key_id?: string | null;
2708
+ /**
2709
+ * When `group_by=model`, this field provides the model name of the grouped usage
2710
+ * result.
2711
+ */
2712
+ model?: string | null;
2713
+ /**
2714
+ * When `group_by=project_id`, this field provides the project ID of the grouped
2715
+ * usage result.
2716
+ */
2717
+ project_id?: string | null;
2718
+ /**
2719
+ * When `group_by=user_id`, this field provides the user ID of the grouped usage
2720
+ * result.
2721
+ */
2722
+ user_id?: string | null;
2723
+ }
2724
+ /**
2725
+ * The aggregated vector stores usage details of the specific time bucket.
2726
+ */
2727
+ interface OrganizationUsageVectorStoresResult {
2728
+ object: 'organization.usage.vector_stores.result';
2729
+ /**
2730
+ * The vector stores usage in bytes.
2731
+ */
2732
+ usage_bytes: number;
2733
+ /**
2734
+ * When `group_by=project_id`, this field provides the project ID of the grouped
2735
+ * usage result.
2736
+ */
2737
+ project_id?: string | null;
2738
+ }
2739
+ /**
2740
+ * The aggregated code interpreter sessions usage details of the specific time
2741
+ * bucket.
2742
+ */
2743
+ interface OrganizationUsageCodeInterpreterSessionsResult {
2744
+ /**
2745
+ * The number of code interpreter sessions.
2746
+ */
2747
+ num_sessions: number;
2748
+ object: 'organization.usage.code_interpreter_sessions.result';
2749
+ /**
2750
+ * When `group_by=project_id`, this field provides the project ID of the grouped
2751
+ * usage result.
2752
+ */
2753
+ project_id?: string | null;
2754
+ }
2755
+ /**
2756
+ * The aggregated costs details of the specific time bucket.
2757
+ */
2758
+ interface OrganizationCostsResult {
2759
+ object: 'organization.costs.result';
2760
+ /**
2761
+ * The monetary value in its associated currency.
2762
+ */
2763
+ amount?: OrganizationCostsResult.Amount;
2764
+ /**
2765
+ * When `group_by=api_key_id`, this field provides the API Key ID of the grouped
2766
+ * costs result.
2767
+ */
2768
+ api_key_id?: string | null;
2769
+ /**
2770
+ * When `group_by=line_item`, this field provides the line item of the grouped
2771
+ * costs result.
2772
+ */
2773
+ line_item?: string | null;
2774
+ /**
2775
+ * When `group_by=project_id`, this field provides the project ID of the grouped
2776
+ * costs result.
2777
+ */
2778
+ project_id?: string | null;
2779
+ /**
2780
+ * When `group_by=line_item`, this field provides the quantity of the grouped costs
2781
+ * result.
2782
+ */
2783
+ quantity?: number | null;
2784
+ }
2785
+ namespace OrganizationCostsResult {
2786
+ /**
2787
+ * The monetary value in its associated currency.
2788
+ */
2789
+ interface Amount {
2790
+ /**
2791
+ * Lowercase ISO-4217 currency e.g. "usd"
2792
+ */
2793
+ currency?: string;
2794
+ /**
2795
+ * The numeric value of the cost.
2796
+ */
2797
+ value?: number;
2798
+ }
2799
+ }
2800
+ }
2801
+ }
2802
+ export interface UsageVectorStoresResponse {
2803
+ data: Array<UsageVectorStoresResponse.Data>;
2804
+ has_more: boolean;
2805
+ next_page: string | null;
2806
+ object: 'page';
2807
+ }
2808
+ export declare namespace UsageVectorStoresResponse {
2809
+ interface Data {
2810
+ end_time: number;
2811
+ object: 'bucket';
2812
+ results: Array<Data.OrganizationUsageCompletionsResult | Data.OrganizationUsageEmbeddingsResult | Data.OrganizationUsageModerationsResult | Data.OrganizationUsageImagesResult | Data.OrganizationUsageAudioSpeechesResult | Data.OrganizationUsageAudioTranscriptionsResult | Data.OrganizationUsageVectorStoresResult | Data.OrganizationUsageCodeInterpreterSessionsResult | Data.OrganizationCostsResult>;
2813
+ start_time: number;
2814
+ }
2815
+ namespace Data {
2816
+ /**
2817
+ * The aggregated completions usage details of the specific time bucket.
2818
+ */
2819
+ interface OrganizationUsageCompletionsResult {
2820
+ /**
2821
+ * The aggregated number of text input tokens used, including cached tokens. For
2822
+ * customers subscribe to scale tier, this includes scale tier tokens.
2823
+ */
2824
+ input_tokens: number;
2825
+ /**
2826
+ * The count of requests made to the model.
2827
+ */
2828
+ num_model_requests: number;
2829
+ object: 'organization.usage.completions.result';
2830
+ /**
2831
+ * The aggregated number of text output tokens used. For customers subscribe to
2832
+ * scale tier, this includes scale tier tokens.
2833
+ */
2834
+ output_tokens: number;
2835
+ /**
2836
+ * When `group_by=api_key_id`, this field provides the API key ID of the grouped
2837
+ * usage result.
2838
+ */
2839
+ api_key_id?: string | null;
2840
+ /**
2841
+ * When `group_by=batch`, this field tells whether the grouped usage result is
2842
+ * batch or not.
2843
+ */
2844
+ batch?: boolean | null;
2845
+ /**
2846
+ * The aggregated number of audio input tokens used, including cached tokens.
2847
+ */
2848
+ input_audio_tokens?: number;
2849
+ /**
2850
+ * The aggregated number of text input tokens that has been cached from previous
2851
+ * requests. For customers subscribe to scale tier, this includes scale tier
2852
+ * tokens.
2853
+ */
2854
+ input_cached_tokens?: number;
2855
+ /**
2856
+ * When `group_by=model`, this field provides the model name of the grouped usage
2857
+ * result.
2858
+ */
2859
+ model?: string | null;
2860
+ /**
2861
+ * The aggregated number of audio output tokens used.
2862
+ */
2863
+ output_audio_tokens?: number;
2864
+ /**
2865
+ * When `group_by=project_id`, this field provides the project ID of the grouped
2866
+ * usage result.
2867
+ */
2868
+ project_id?: string | null;
2869
+ /**
2870
+ * When `group_by=service_tier`, this field provides the service tier of the
2871
+ * grouped usage result.
2872
+ */
2873
+ service_tier?: string | null;
2874
+ /**
2875
+ * When `group_by=user_id`, this field provides the user ID of the grouped usage
2876
+ * result.
2877
+ */
2878
+ user_id?: string | null;
2879
+ }
2880
+ /**
2881
+ * The aggregated embeddings usage details of the specific time bucket.
2882
+ */
2883
+ interface OrganizationUsageEmbeddingsResult {
2884
+ /**
2885
+ * The aggregated number of input tokens used.
2886
+ */
2887
+ input_tokens: number;
2888
+ /**
2889
+ * The count of requests made to the model.
2890
+ */
2891
+ num_model_requests: number;
2892
+ object: 'organization.usage.embeddings.result';
2893
+ /**
2894
+ * When `group_by=api_key_id`, this field provides the API key ID of the grouped
2895
+ * usage result.
2896
+ */
2897
+ api_key_id?: string | null;
2898
+ /**
2899
+ * When `group_by=model`, this field provides the model name of the grouped usage
2900
+ * result.
2901
+ */
2902
+ model?: string | null;
2903
+ /**
2904
+ * When `group_by=project_id`, this field provides the project ID of the grouped
2905
+ * usage result.
2906
+ */
2907
+ project_id?: string | null;
2908
+ /**
2909
+ * When `group_by=user_id`, this field provides the user ID of the grouped usage
2910
+ * result.
2911
+ */
2912
+ user_id?: string | null;
2913
+ }
2914
+ /**
2915
+ * The aggregated moderations usage details of the specific time bucket.
2916
+ */
2917
+ interface OrganizationUsageModerationsResult {
2918
+ /**
2919
+ * The aggregated number of input tokens used.
2920
+ */
2921
+ input_tokens: number;
2922
+ /**
2923
+ * The count of requests made to the model.
2924
+ */
2925
+ num_model_requests: number;
2926
+ object: 'organization.usage.moderations.result';
2927
+ /**
2928
+ * When `group_by=api_key_id`, this field provides the API key ID of the grouped
2929
+ * usage result.
2930
+ */
2931
+ api_key_id?: string | null;
2932
+ /**
2933
+ * When `group_by=model`, this field provides the model name of the grouped usage
2934
+ * result.
2935
+ */
2936
+ model?: string | null;
2937
+ /**
2938
+ * When `group_by=project_id`, this field provides the project ID of the grouped
2939
+ * usage result.
2940
+ */
2941
+ project_id?: string | null;
2942
+ /**
2943
+ * When `group_by=user_id`, this field provides the user ID of the grouped usage
2944
+ * result.
2945
+ */
2946
+ user_id?: string | null;
2947
+ }
2948
+ /**
2949
+ * The aggregated images usage details of the specific time bucket.
2950
+ */
2951
+ interface OrganizationUsageImagesResult {
2952
+ /**
2953
+ * The number of images processed.
2954
+ */
2955
+ images: number;
2956
+ /**
2957
+ * The count of requests made to the model.
2958
+ */
2959
+ num_model_requests: number;
2960
+ object: 'organization.usage.images.result';
2961
+ /**
2962
+ * When `group_by=api_key_id`, this field provides the API key ID of the grouped
2963
+ * usage result.
2964
+ */
2965
+ api_key_id?: string | null;
2966
+ /**
2967
+ * When `group_by=model`, this field provides the model name of the grouped usage
2968
+ * result.
2969
+ */
2970
+ model?: string | null;
2971
+ /**
2972
+ * When `group_by=project_id`, this field provides the project ID of the grouped
2973
+ * usage result.
2974
+ */
2975
+ project_id?: string | null;
2976
+ /**
2977
+ * When `group_by=size`, this field provides the image size of the grouped usage
2978
+ * result.
2979
+ */
2980
+ size?: string | null;
2981
+ /**
2982
+ * When `group_by=source`, this field provides the source of the grouped usage
2983
+ * result, possible values are `image.generation`, `image.edit`, `image.variation`.
2984
+ */
2985
+ source?: string | null;
2986
+ /**
2987
+ * When `group_by=user_id`, this field provides the user ID of the grouped usage
2988
+ * result.
2989
+ */
2990
+ user_id?: string | null;
2991
+ }
2992
+ /**
2993
+ * The aggregated audio speeches usage details of the specific time bucket.
2994
+ */
2995
+ interface OrganizationUsageAudioSpeechesResult {
2996
+ /**
2997
+ * The number of characters processed.
2998
+ */
2999
+ characters: number;
3000
+ /**
3001
+ * The count of requests made to the model.
3002
+ */
3003
+ num_model_requests: number;
3004
+ object: 'organization.usage.audio_speeches.result';
3005
+ /**
3006
+ * When `group_by=api_key_id`, this field provides the API key ID of the grouped
3007
+ * usage result.
3008
+ */
3009
+ api_key_id?: string | null;
3010
+ /**
3011
+ * When `group_by=model`, this field provides the model name of the grouped usage
3012
+ * result.
3013
+ */
3014
+ model?: string | null;
3015
+ /**
3016
+ * When `group_by=project_id`, this field provides the project ID of the grouped
3017
+ * usage result.
3018
+ */
3019
+ project_id?: string | null;
3020
+ /**
3021
+ * When `group_by=user_id`, this field provides the user ID of the grouped usage
3022
+ * result.
3023
+ */
3024
+ user_id?: string | null;
3025
+ }
3026
+ /**
3027
+ * The aggregated audio transcriptions usage details of the specific time bucket.
3028
+ */
3029
+ interface OrganizationUsageAudioTranscriptionsResult {
3030
+ /**
3031
+ * The count of requests made to the model.
3032
+ */
3033
+ num_model_requests: number;
3034
+ object: 'organization.usage.audio_transcriptions.result';
3035
+ /**
3036
+ * The number of seconds processed.
3037
+ */
3038
+ seconds: number;
3039
+ /**
3040
+ * When `group_by=api_key_id`, this field provides the API key ID of the grouped
3041
+ * usage result.
3042
+ */
3043
+ api_key_id?: string | null;
3044
+ /**
3045
+ * When `group_by=model`, this field provides the model name of the grouped usage
3046
+ * result.
3047
+ */
3048
+ model?: string | null;
3049
+ /**
3050
+ * When `group_by=project_id`, this field provides the project ID of the grouped
3051
+ * usage result.
3052
+ */
3053
+ project_id?: string | null;
3054
+ /**
3055
+ * When `group_by=user_id`, this field provides the user ID of the grouped usage
3056
+ * result.
3057
+ */
3058
+ user_id?: string | null;
3059
+ }
3060
+ /**
3061
+ * The aggregated vector stores usage details of the specific time bucket.
3062
+ */
3063
+ interface OrganizationUsageVectorStoresResult {
3064
+ object: 'organization.usage.vector_stores.result';
3065
+ /**
3066
+ * The vector stores usage in bytes.
3067
+ */
3068
+ usage_bytes: number;
3069
+ /**
3070
+ * When `group_by=project_id`, this field provides the project ID of the grouped
3071
+ * usage result.
3072
+ */
3073
+ project_id?: string | null;
3074
+ }
3075
+ /**
3076
+ * The aggregated code interpreter sessions usage details of the specific time
3077
+ * bucket.
3078
+ */
3079
+ interface OrganizationUsageCodeInterpreterSessionsResult {
3080
+ /**
3081
+ * The number of code interpreter sessions.
3082
+ */
3083
+ num_sessions: number;
3084
+ object: 'organization.usage.code_interpreter_sessions.result';
3085
+ /**
3086
+ * When `group_by=project_id`, this field provides the project ID of the grouped
3087
+ * usage result.
3088
+ */
3089
+ project_id?: string | null;
3090
+ }
3091
+ /**
3092
+ * The aggregated costs details of the specific time bucket.
3093
+ */
3094
+ interface OrganizationCostsResult {
3095
+ object: 'organization.costs.result';
3096
+ /**
3097
+ * The monetary value in its associated currency.
3098
+ */
3099
+ amount?: OrganizationCostsResult.Amount;
3100
+ /**
3101
+ * When `group_by=api_key_id`, this field provides the API Key ID of the grouped
3102
+ * costs result.
3103
+ */
3104
+ api_key_id?: string | null;
3105
+ /**
3106
+ * When `group_by=line_item`, this field provides the line item of the grouped
3107
+ * costs result.
3108
+ */
3109
+ line_item?: string | null;
3110
+ /**
3111
+ * When `group_by=project_id`, this field provides the project ID of the grouped
3112
+ * costs result.
3113
+ */
3114
+ project_id?: string | null;
3115
+ /**
3116
+ * When `group_by=line_item`, this field provides the quantity of the grouped costs
3117
+ * result.
3118
+ */
3119
+ quantity?: number | null;
3120
+ }
3121
+ namespace OrganizationCostsResult {
3122
+ /**
3123
+ * The monetary value in its associated currency.
3124
+ */
3125
+ interface Amount {
3126
+ /**
3127
+ * Lowercase ISO-4217 currency e.g. "usd"
3128
+ */
3129
+ currency?: string;
3130
+ /**
3131
+ * The numeric value of the cost.
3132
+ */
3133
+ value?: number;
3134
+ }
3135
+ }
3136
+ }
3137
+ }
3138
+ export interface UsageAudioSpeechesParams {
3139
+ /**
3140
+ * Start time (Unix seconds) of the query time range, inclusive.
3141
+ */
3142
+ start_time: number;
3143
+ /**
3144
+ * Return only usage for these API keys.
3145
+ */
3146
+ api_key_ids?: Array<string>;
3147
+ /**
3148
+ * Width of each time bucket in response. Currently `1m`, `1h` and `1d` are
3149
+ * supported, default to `1d`.
3150
+ */
3151
+ bucket_width?: '1m' | '1h' | '1d';
3152
+ /**
3153
+ * End time (Unix seconds) of the query time range, exclusive.
3154
+ */
3155
+ end_time?: number;
3156
+ /**
3157
+ * Group the usage data by the specified fields. Support fields include
3158
+ * `project_id`, `user_id`, `api_key_id`, `model` or any combination of them.
3159
+ */
3160
+ group_by?: Array<'project_id' | 'user_id' | 'api_key_id' | 'model'>;
3161
+ /**
3162
+ * Specifies the number of buckets to return.
3163
+ *
3164
+ * - `bucket_width=1d`: default: 7, max: 31
3165
+ * - `bucket_width=1h`: default: 24, max: 168
3166
+ * - `bucket_width=1m`: default: 60, max: 1440
3167
+ */
3168
+ limit?: number;
3169
+ /**
3170
+ * Return only usage for these models.
3171
+ */
3172
+ models?: Array<string>;
3173
+ /**
3174
+ * A cursor for use in pagination. Corresponding to the `next_page` field from the
3175
+ * previous response.
3176
+ */
3177
+ page?: string;
3178
+ /**
3179
+ * Return only usage for these projects.
3180
+ */
3181
+ project_ids?: Array<string>;
3182
+ /**
3183
+ * Return only usage for these users.
3184
+ */
3185
+ user_ids?: Array<string>;
3186
+ }
3187
+ export interface UsageAudioTranscriptionsParams {
3188
+ /**
3189
+ * Start time (Unix seconds) of the query time range, inclusive.
3190
+ */
3191
+ start_time: number;
3192
+ /**
3193
+ * Return only usage for these API keys.
3194
+ */
3195
+ api_key_ids?: Array<string>;
3196
+ /**
3197
+ * Width of each time bucket in response. Currently `1m`, `1h` and `1d` are
3198
+ * supported, default to `1d`.
3199
+ */
3200
+ bucket_width?: '1m' | '1h' | '1d';
3201
+ /**
3202
+ * End time (Unix seconds) of the query time range, exclusive.
3203
+ */
3204
+ end_time?: number;
3205
+ /**
3206
+ * Group the usage data by the specified fields. Support fields include
3207
+ * `project_id`, `user_id`, `api_key_id`, `model` or any combination of them.
3208
+ */
3209
+ group_by?: Array<'project_id' | 'user_id' | 'api_key_id' | 'model'>;
3210
+ /**
3211
+ * Specifies the number of buckets to return.
3212
+ *
3213
+ * - `bucket_width=1d`: default: 7, max: 31
3214
+ * - `bucket_width=1h`: default: 24, max: 168
3215
+ * - `bucket_width=1m`: default: 60, max: 1440
3216
+ */
3217
+ limit?: number;
3218
+ /**
3219
+ * Return only usage for these models.
3220
+ */
3221
+ models?: Array<string>;
3222
+ /**
3223
+ * A cursor for use in pagination. Corresponding to the `next_page` field from the
3224
+ * previous response.
3225
+ */
3226
+ page?: string;
3227
+ /**
3228
+ * Return only usage for these projects.
3229
+ */
3230
+ project_ids?: Array<string>;
3231
+ /**
3232
+ * Return only usage for these users.
3233
+ */
3234
+ user_ids?: Array<string>;
3235
+ }
3236
+ export interface UsageCodeInterpreterSessionsParams {
3237
+ /**
3238
+ * Start time (Unix seconds) of the query time range, inclusive.
3239
+ */
3240
+ start_time: number;
3241
+ /**
3242
+ * Width of each time bucket in response. Currently `1m`, `1h` and `1d` are
3243
+ * supported, default to `1d`.
3244
+ */
3245
+ bucket_width?: '1m' | '1h' | '1d';
3246
+ /**
3247
+ * End time (Unix seconds) of the query time range, exclusive.
3248
+ */
3249
+ end_time?: number;
3250
+ /**
3251
+ * Group the usage data by the specified fields. Support fields include
3252
+ * `project_id`.
3253
+ */
3254
+ group_by?: Array<'project_id'>;
3255
+ /**
3256
+ * Specifies the number of buckets to return.
3257
+ *
3258
+ * - `bucket_width=1d`: default: 7, max: 31
3259
+ * - `bucket_width=1h`: default: 24, max: 168
3260
+ * - `bucket_width=1m`: default: 60, max: 1440
3261
+ */
3262
+ limit?: number;
3263
+ /**
3264
+ * A cursor for use in pagination. Corresponding to the `next_page` field from the
3265
+ * previous response.
3266
+ */
3267
+ page?: string;
3268
+ /**
3269
+ * Return only usage for these projects.
3270
+ */
3271
+ project_ids?: Array<string>;
3272
+ }
3273
+ export interface UsageCompletionsParams {
3274
+ /**
3275
+ * Start time (Unix seconds) of the query time range, inclusive.
3276
+ */
3277
+ start_time: number;
3278
+ /**
3279
+ * Return only usage for these API keys.
3280
+ */
3281
+ api_key_ids?: Array<string>;
3282
+ /**
3283
+ * If `true`, return batch jobs only. If `false`, return non-batch jobs only. By
3284
+ * default, return both.
3285
+ */
3286
+ batch?: boolean;
3287
+ /**
3288
+ * Width of each time bucket in response. Currently `1m`, `1h` and `1d` are
3289
+ * supported, default to `1d`.
3290
+ */
3291
+ bucket_width?: '1m' | '1h' | '1d';
3292
+ /**
3293
+ * End time (Unix seconds) of the query time range, exclusive.
3294
+ */
3295
+ end_time?: number;
3296
+ /**
3297
+ * Group the usage data by the specified fields. Support fields include
3298
+ * `project_id`, `user_id`, `api_key_id`, `model`, `batch`, `service_tier` or any
3299
+ * combination of them.
3300
+ */
3301
+ group_by?: Array<'project_id' | 'user_id' | 'api_key_id' | 'model' | 'batch' | 'service_tier'>;
3302
+ /**
3303
+ * Specifies the number of buckets to return.
3304
+ *
3305
+ * - `bucket_width=1d`: default: 7, max: 31
3306
+ * - `bucket_width=1h`: default: 24, max: 168
3307
+ * - `bucket_width=1m`: default: 60, max: 1440
3308
+ */
3309
+ limit?: number;
3310
+ /**
3311
+ * Return only usage for these models.
3312
+ */
3313
+ models?: Array<string>;
3314
+ /**
3315
+ * A cursor for use in pagination. Corresponding to the `next_page` field from the
3316
+ * previous response.
3317
+ */
3318
+ page?: string;
3319
+ /**
3320
+ * Return only usage for these projects.
3321
+ */
3322
+ project_ids?: Array<string>;
3323
+ /**
3324
+ * Return only usage for these users.
3325
+ */
3326
+ user_ids?: Array<string>;
3327
+ }
3328
+ export interface UsageCostsParams {
3329
+ /**
3330
+ * Start time (Unix seconds) of the query time range, inclusive.
3331
+ */
3332
+ start_time: number;
3333
+ /**
3334
+ * Return only costs for these API keys.
3335
+ */
3336
+ api_key_ids?: Array<string>;
3337
+ /**
3338
+ * Width of each time bucket in response. Currently only `1d` is supported, default
3339
+ * to `1d`.
3340
+ */
3341
+ bucket_width?: '1d';
3342
+ /**
3343
+ * End time (Unix seconds) of the query time range, exclusive.
3344
+ */
3345
+ end_time?: number;
3346
+ /**
3347
+ * Group the costs by the specified fields. Support fields include `project_id`,
3348
+ * `line_item`, `api_key_id` and any combination of them.
3349
+ */
3350
+ group_by?: Array<'project_id' | 'line_item' | 'api_key_id'>;
3351
+ /**
3352
+ * A limit on the number of buckets to be returned. Limit can range between 1 and
3353
+ * 180, and the default is 7.
3354
+ */
3355
+ limit?: number;
3356
+ /**
3357
+ * A cursor for use in pagination. Corresponding to the `next_page` field from the
3358
+ * previous response.
3359
+ */
3360
+ page?: string;
3361
+ /**
3362
+ * Return only costs for these projects.
3363
+ */
3364
+ project_ids?: Array<string>;
3365
+ }
3366
+ export interface UsageEmbeddingsParams {
3367
+ /**
3368
+ * Start time (Unix seconds) of the query time range, inclusive.
3369
+ */
3370
+ start_time: number;
3371
+ /**
3372
+ * Return only usage for these API keys.
3373
+ */
3374
+ api_key_ids?: Array<string>;
3375
+ /**
3376
+ * Width of each time bucket in response. Currently `1m`, `1h` and `1d` are
3377
+ * supported, default to `1d`.
3378
+ */
3379
+ bucket_width?: '1m' | '1h' | '1d';
3380
+ /**
3381
+ * End time (Unix seconds) of the query time range, exclusive.
3382
+ */
3383
+ end_time?: number;
3384
+ /**
3385
+ * Group the usage data by the specified fields. Support fields include
3386
+ * `project_id`, `user_id`, `api_key_id`, `model` or any combination of them.
3387
+ */
3388
+ group_by?: Array<'project_id' | 'user_id' | 'api_key_id' | 'model'>;
3389
+ /**
3390
+ * Specifies the number of buckets to return.
3391
+ *
3392
+ * - `bucket_width=1d`: default: 7, max: 31
3393
+ * - `bucket_width=1h`: default: 24, max: 168
3394
+ * - `bucket_width=1m`: default: 60, max: 1440
3395
+ */
3396
+ limit?: number;
3397
+ /**
3398
+ * Return only usage for these models.
3399
+ */
3400
+ models?: Array<string>;
3401
+ /**
3402
+ * A cursor for use in pagination. Corresponding to the `next_page` field from the
3403
+ * previous response.
3404
+ */
3405
+ page?: string;
3406
+ /**
3407
+ * Return only usage for these projects.
3408
+ */
3409
+ project_ids?: Array<string>;
3410
+ /**
3411
+ * Return only usage for these users.
3412
+ */
3413
+ user_ids?: Array<string>;
3414
+ }
3415
+ export interface UsageImagesParams {
3416
+ /**
3417
+ * Start time (Unix seconds) of the query time range, inclusive.
3418
+ */
3419
+ start_time: number;
3420
+ /**
3421
+ * Return only usage for these API keys.
3422
+ */
3423
+ api_key_ids?: Array<string>;
3424
+ /**
3425
+ * Width of each time bucket in response. Currently `1m`, `1h` and `1d` are
3426
+ * supported, default to `1d`.
3427
+ */
3428
+ bucket_width?: '1m' | '1h' | '1d';
3429
+ /**
3430
+ * End time (Unix seconds) of the query time range, exclusive.
3431
+ */
3432
+ end_time?: number;
3433
+ /**
3434
+ * Group the usage data by the specified fields. Support fields include
3435
+ * `project_id`, `user_id`, `api_key_id`, `model`, `size`, `source` or any
3436
+ * combination of them.
3437
+ */
3438
+ group_by?: Array<'project_id' | 'user_id' | 'api_key_id' | 'model' | 'size' | 'source'>;
3439
+ /**
3440
+ * Specifies the number of buckets to return.
3441
+ *
3442
+ * - `bucket_width=1d`: default: 7, max: 31
3443
+ * - `bucket_width=1h`: default: 24, max: 168
3444
+ * - `bucket_width=1m`: default: 60, max: 1440
3445
+ */
3446
+ limit?: number;
3447
+ /**
3448
+ * Return only usage for these models.
3449
+ */
3450
+ models?: Array<string>;
3451
+ /**
3452
+ * A cursor for use in pagination. Corresponding to the `next_page` field from the
3453
+ * previous response.
3454
+ */
3455
+ page?: string;
3456
+ /**
3457
+ * Return only usage for these projects.
3458
+ */
3459
+ project_ids?: Array<string>;
3460
+ /**
3461
+ * Return only usages for these image sizes. Possible values are `256x256`,
3462
+ * `512x512`, `1024x1024`, `1792x1792`, `1024x1792` or any combination of them.
3463
+ */
3464
+ sizes?: Array<'256x256' | '512x512' | '1024x1024' | '1792x1792' | '1024x1792'>;
3465
+ /**
3466
+ * Return only usages for these sources. Possible values are `image.generation`,
3467
+ * `image.edit`, `image.variation` or any combination of them.
3468
+ */
3469
+ sources?: Array<'image.generation' | 'image.edit' | 'image.variation'>;
3470
+ /**
3471
+ * Return only usage for these users.
3472
+ */
3473
+ user_ids?: Array<string>;
3474
+ }
3475
+ export interface UsageModerationsParams {
3476
+ /**
3477
+ * Start time (Unix seconds) of the query time range, inclusive.
3478
+ */
3479
+ start_time: number;
3480
+ /**
3481
+ * Return only usage for these API keys.
3482
+ */
3483
+ api_key_ids?: Array<string>;
3484
+ /**
3485
+ * Width of each time bucket in response. Currently `1m`, `1h` and `1d` are
3486
+ * supported, default to `1d`.
3487
+ */
3488
+ bucket_width?: '1m' | '1h' | '1d';
3489
+ /**
3490
+ * End time (Unix seconds) of the query time range, exclusive.
3491
+ */
3492
+ end_time?: number;
3493
+ /**
3494
+ * Group the usage data by the specified fields. Support fields include
3495
+ * `project_id`, `user_id`, `api_key_id`, `model` or any combination of them.
3496
+ */
3497
+ group_by?: Array<'project_id' | 'user_id' | 'api_key_id' | 'model'>;
3498
+ /**
3499
+ * Specifies the number of buckets to return.
3500
+ *
3501
+ * - `bucket_width=1d`: default: 7, max: 31
3502
+ * - `bucket_width=1h`: default: 24, max: 168
3503
+ * - `bucket_width=1m`: default: 60, max: 1440
3504
+ */
3505
+ limit?: number;
3506
+ /**
3507
+ * Return only usage for these models.
3508
+ */
3509
+ models?: Array<string>;
3510
+ /**
3511
+ * A cursor for use in pagination. Corresponding to the `next_page` field from the
3512
+ * previous response.
3513
+ */
3514
+ page?: string;
3515
+ /**
3516
+ * Return only usage for these projects.
3517
+ */
3518
+ project_ids?: Array<string>;
3519
+ /**
3520
+ * Return only usage for these users.
3521
+ */
3522
+ user_ids?: Array<string>;
3523
+ }
3524
+ export interface UsageVectorStoresParams {
3525
+ /**
3526
+ * Start time (Unix seconds) of the query time range, inclusive.
3527
+ */
3528
+ start_time: number;
3529
+ /**
3530
+ * Width of each time bucket in response. Currently `1m`, `1h` and `1d` are
3531
+ * supported, default to `1d`.
3532
+ */
3533
+ bucket_width?: '1m' | '1h' | '1d';
3534
+ /**
3535
+ * End time (Unix seconds) of the query time range, exclusive.
3536
+ */
3537
+ end_time?: number;
3538
+ /**
3539
+ * Group the usage data by the specified fields. Support fields include
3540
+ * `project_id`.
3541
+ */
3542
+ group_by?: Array<'project_id'>;
3543
+ /**
3544
+ * Specifies the number of buckets to return.
3545
+ *
3546
+ * - `bucket_width=1d`: default: 7, max: 31
3547
+ * - `bucket_width=1h`: default: 24, max: 168
3548
+ * - `bucket_width=1m`: default: 60, max: 1440
3549
+ */
3550
+ limit?: number;
3551
+ /**
3552
+ * A cursor for use in pagination. Corresponding to the `next_page` field from the
3553
+ * previous response.
3554
+ */
3555
+ page?: string;
3556
+ /**
3557
+ * Return only usage for these projects.
3558
+ */
3559
+ project_ids?: Array<string>;
3560
+ }
3561
+ export declare namespace Usage {
3562
+ export { type UsageAudioSpeechesResponse as UsageAudioSpeechesResponse, type UsageAudioTranscriptionsResponse as UsageAudioTranscriptionsResponse, type UsageCodeInterpreterSessionsResponse as UsageCodeInterpreterSessionsResponse, type UsageCompletionsResponse as UsageCompletionsResponse, type UsageCostsResponse as UsageCostsResponse, type UsageEmbeddingsResponse as UsageEmbeddingsResponse, type UsageImagesResponse as UsageImagesResponse, type UsageModerationsResponse as UsageModerationsResponse, type UsageVectorStoresResponse as UsageVectorStoresResponse, type UsageAudioSpeechesParams as UsageAudioSpeechesParams, type UsageAudioTranscriptionsParams as UsageAudioTranscriptionsParams, type UsageCodeInterpreterSessionsParams as UsageCodeInterpreterSessionsParams, type UsageCompletionsParams as UsageCompletionsParams, type UsageCostsParams as UsageCostsParams, type UsageEmbeddingsParams as UsageEmbeddingsParams, type UsageImagesParams as UsageImagesParams, type UsageModerationsParams as UsageModerationsParams, type UsageVectorStoresParams as UsageVectorStoresParams, };
3563
+ }
3564
+ //# sourceMappingURL=usage.d.mts.map