openai 7.20.0 → 7.21.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 (779) hide show
  1. package/CHANGELOG.md +17 -0
  2. package/README.md +4 -2
  3. package/client.d.mts +3 -0
  4. package/client.d.mts.map +1 -1
  5. package/client.d.ts +3 -0
  6. package/client.d.ts.map +1 -1
  7. package/client.js +304 -5
  8. package/client.js.map +1 -1
  9. package/client.mjs +304 -5
  10. package/client.mjs.map +1 -1
  11. package/package.json +1 -1
  12. package/resources/admin/organization/admin-api-keys.d.mts.map +1 -1
  13. package/resources/admin/organization/admin-api-keys.d.ts.map +1 -1
  14. package/resources/admin/organization/admin-api-keys.js +11 -8
  15. package/resources/admin/organization/admin-api-keys.js.map +1 -1
  16. package/resources/admin/organization/admin-api-keys.mjs +11 -8
  17. package/resources/admin/organization/admin-api-keys.mjs.map +1 -1
  18. package/resources/admin/organization/audit-logs.d.mts.map +1 -1
  19. package/resources/admin/organization/audit-logs.d.ts.map +1 -1
  20. package/resources/admin/organization/audit-logs.js +5 -2
  21. package/resources/admin/organization/audit-logs.js.map +1 -1
  22. package/resources/admin/organization/audit-logs.mjs +5 -2
  23. package/resources/admin/organization/audit-logs.mjs.map +1 -1
  24. package/resources/admin/organization/certificates.d.mts.map +1 -1
  25. package/resources/admin/organization/certificates.d.ts.map +1 -1
  26. package/resources/admin/organization/certificates.js +24 -12
  27. package/resources/admin/organization/certificates.js.map +1 -1
  28. package/resources/admin/organization/certificates.mjs +24 -12
  29. package/resources/admin/organization/certificates.mjs.map +1 -1
  30. package/resources/admin/organization/data-retention.d.mts.map +1 -1
  31. package/resources/admin/organization/data-retention.d.ts.map +1 -1
  32. package/resources/admin/organization/data-retention.js +7 -4
  33. package/resources/admin/organization/data-retention.js.map +1 -1
  34. package/resources/admin/organization/data-retention.mjs +7 -4
  35. package/resources/admin/organization/data-retention.mjs.map +1 -1
  36. package/resources/admin/organization/external-storage.d.mts +4 -1
  37. package/resources/admin/organization/external-storage.d.mts.map +1 -1
  38. package/resources/admin/organization/external-storage.d.ts +4 -1
  39. package/resources/admin/organization/external-storage.d.ts.map +1 -1
  40. package/resources/admin/organization/external-storage.js +20 -10
  41. package/resources/admin/organization/external-storage.js.map +1 -1
  42. package/resources/admin/organization/external-storage.mjs +20 -10
  43. package/resources/admin/organization/external-storage.mjs.map +1 -1
  44. package/resources/admin/organization/groups/groups.d.mts.map +1 -1
  45. package/resources/admin/organization/groups/groups.d.ts.map +1 -1
  46. package/resources/admin/organization/groups/groups.js +13 -10
  47. package/resources/admin/organization/groups/groups.js.map +1 -1
  48. package/resources/admin/organization/groups/groups.mjs +13 -10
  49. package/resources/admin/organization/groups/groups.mjs.map +1 -1
  50. package/resources/admin/organization/groups/roles.d.mts.map +1 -1
  51. package/resources/admin/organization/groups/roles.d.ts.map +1 -1
  52. package/resources/admin/organization/groups/roles.js +14 -7
  53. package/resources/admin/organization/groups/roles.js.map +1 -1
  54. package/resources/admin/organization/groups/roles.mjs +14 -7
  55. package/resources/admin/organization/groups/roles.mjs.map +1 -1
  56. package/resources/admin/organization/groups/users.d.mts.map +1 -1
  57. package/resources/admin/organization/groups/users.d.ts.map +1 -1
  58. package/resources/admin/organization/groups/users.js +14 -7
  59. package/resources/admin/organization/groups/users.js.map +1 -1
  60. package/resources/admin/organization/groups/users.mjs +14 -7
  61. package/resources/admin/organization/groups/users.mjs.map +1 -1
  62. package/resources/admin/organization/invites.d.mts.map +1 -1
  63. package/resources/admin/organization/invites.d.ts.map +1 -1
  64. package/resources/admin/organization/invites.js +11 -8
  65. package/resources/admin/organization/invites.js.map +1 -1
  66. package/resources/admin/organization/invites.mjs +11 -8
  67. package/resources/admin/organization/invites.mjs.map +1 -1
  68. package/resources/admin/organization/organization.d.mts +2 -2
  69. package/resources/admin/organization/organization.d.mts.map +1 -1
  70. package/resources/admin/organization/organization.d.ts +2 -2
  71. package/resources/admin/organization/organization.d.ts.map +1 -1
  72. package/resources/admin/organization/organization.js +2 -2
  73. package/resources/admin/organization/organization.js.map +1 -1
  74. package/resources/admin/organization/organization.mjs +2 -2
  75. package/resources/admin/organization/organization.mjs.map +1 -1
  76. package/resources/admin/organization/projects/api-keys.d.mts.map +1 -1
  77. package/resources/admin/organization/projects/api-keys.d.ts.map +1 -1
  78. package/resources/admin/organization/projects/api-keys.js +12 -5
  79. package/resources/admin/organization/projects/api-keys.js.map +1 -1
  80. package/resources/admin/organization/projects/api-keys.mjs +12 -5
  81. package/resources/admin/organization/projects/api-keys.mjs.map +1 -1
  82. package/resources/admin/organization/projects/certificates.d.mts.map +1 -1
  83. package/resources/admin/organization/projects/certificates.d.ts.map +1 -1
  84. package/resources/admin/organization/projects/certificates.js +20 -3
  85. package/resources/admin/organization/projects/certificates.js.map +1 -1
  86. package/resources/admin/organization/projects/certificates.mjs +20 -3
  87. package/resources/admin/organization/projects/certificates.mjs.map +1 -1
  88. package/resources/admin/organization/projects/data-retention.d.mts.map +1 -1
  89. package/resources/admin/organization/projects/data-retention.d.ts.map +1 -1
  90. package/resources/admin/organization/projects/data-retention.js +7 -4
  91. package/resources/admin/organization/projects/data-retention.js.map +1 -1
  92. package/resources/admin/organization/projects/data-retention.mjs +7 -4
  93. package/resources/admin/organization/projects/data-retention.mjs.map +1 -1
  94. package/resources/admin/organization/projects/groups/groups.d.mts.map +1 -1
  95. package/resources/admin/organization/projects/groups/groups.d.ts.map +1 -1
  96. package/resources/admin/organization/projects/groups/groups.js +14 -7
  97. package/resources/admin/organization/projects/groups/groups.js.map +1 -1
  98. package/resources/admin/organization/projects/groups/groups.mjs +14 -7
  99. package/resources/admin/organization/projects/groups/groups.mjs.map +1 -1
  100. package/resources/admin/organization/projects/groups/roles.d.mts.map +1 -1
  101. package/resources/admin/organization/projects/groups/roles.d.ts.map +1 -1
  102. package/resources/admin/organization/projects/groups/roles.js +14 -7
  103. package/resources/admin/organization/projects/groups/roles.js.map +1 -1
  104. package/resources/admin/organization/projects/groups/roles.mjs +14 -7
  105. package/resources/admin/organization/projects/groups/roles.mjs.map +1 -1
  106. package/resources/admin/organization/projects/hosted-tool-permissions.d.mts.map +1 -1
  107. package/resources/admin/organization/projects/hosted-tool-permissions.d.ts.map +1 -1
  108. package/resources/admin/organization/projects/hosted-tool-permissions.js +7 -4
  109. package/resources/admin/organization/projects/hosted-tool-permissions.js.map +1 -1
  110. package/resources/admin/organization/projects/hosted-tool-permissions.mjs +7 -4
  111. package/resources/admin/organization/projects/hosted-tool-permissions.mjs.map +1 -1
  112. package/resources/admin/organization/projects/model-permissions.d.mts.map +1 -1
  113. package/resources/admin/organization/projects/model-permissions.d.ts.map +1 -1
  114. package/resources/admin/organization/projects/model-permissions.js +9 -6
  115. package/resources/admin/organization/projects/model-permissions.js.map +1 -1
  116. package/resources/admin/organization/projects/model-permissions.mjs +9 -6
  117. package/resources/admin/organization/projects/model-permissions.mjs.map +1 -1
  118. package/resources/admin/organization/projects/projects.d.mts.map +1 -1
  119. package/resources/admin/organization/projects/projects.d.ts.map +1 -1
  120. package/resources/admin/organization/projects/projects.js +13 -10
  121. package/resources/admin/organization/projects/projects.js.map +1 -1
  122. package/resources/admin/organization/projects/projects.mjs +13 -10
  123. package/resources/admin/organization/projects/projects.mjs.map +1 -1
  124. package/resources/admin/organization/projects/rate-limits.d.mts.map +1 -1
  125. package/resources/admin/organization/projects/rate-limits.d.ts.map +1 -1
  126. package/resources/admin/organization/projects/rate-limits.js +10 -3
  127. package/resources/admin/organization/projects/rate-limits.js.map +1 -1
  128. package/resources/admin/organization/projects/rate-limits.mjs +10 -3
  129. package/resources/admin/organization/projects/rate-limits.mjs.map +1 -1
  130. package/resources/admin/organization/projects/roles.d.mts.map +1 -1
  131. package/resources/admin/organization/projects/roles.d.ts.map +1 -1
  132. package/resources/admin/organization/projects/roles.js +13 -10
  133. package/resources/admin/organization/projects/roles.js.map +1 -1
  134. package/resources/admin/organization/projects/roles.mjs +13 -10
  135. package/resources/admin/organization/projects/roles.mjs.map +1 -1
  136. package/resources/admin/organization/projects/service-accounts/api-keys.d.mts.map +1 -1
  137. package/resources/admin/organization/projects/service-accounts/api-keys.d.ts.map +1 -1
  138. package/resources/admin/organization/projects/service-accounts/api-keys.js +8 -1
  139. package/resources/admin/organization/projects/service-accounts/api-keys.js.map +1 -1
  140. package/resources/admin/organization/projects/service-accounts/api-keys.mjs +8 -1
  141. package/resources/admin/organization/projects/service-accounts/api-keys.mjs.map +1 -1
  142. package/resources/admin/organization/projects/service-accounts/service-accounts.d.mts.map +1 -1
  143. package/resources/admin/organization/projects/service-accounts/service-accounts.d.ts.map +1 -1
  144. package/resources/admin/organization/projects/service-accounts/service-accounts.js +21 -7
  145. package/resources/admin/organization/projects/service-accounts/service-accounts.js.map +1 -1
  146. package/resources/admin/organization/projects/service-accounts/service-accounts.mjs +21 -7
  147. package/resources/admin/organization/projects/service-accounts/service-accounts.mjs.map +1 -1
  148. package/resources/admin/organization/projects/spend-alerts.d.mts.map +1 -1
  149. package/resources/admin/organization/projects/spend-alerts.d.ts.map +1 -1
  150. package/resources/admin/organization/projects/spend-alerts.js +16 -9
  151. package/resources/admin/organization/projects/spend-alerts.js.map +1 -1
  152. package/resources/admin/organization/projects/spend-alerts.mjs +16 -9
  153. package/resources/admin/organization/projects/spend-alerts.mjs.map +1 -1
  154. package/resources/admin/organization/projects/spend-limit.d.mts.map +1 -1
  155. package/resources/admin/organization/projects/spend-limit.d.ts.map +1 -1
  156. package/resources/admin/organization/projects/spend-limit.js +9 -6
  157. package/resources/admin/organization/projects/spend-limit.js.map +1 -1
  158. package/resources/admin/organization/projects/spend-limit.mjs +9 -6
  159. package/resources/admin/organization/projects/spend-limit.mjs.map +1 -1
  160. package/resources/admin/organization/projects/users/roles.d.mts.map +1 -1
  161. package/resources/admin/organization/projects/users/roles.d.ts.map +1 -1
  162. package/resources/admin/organization/projects/users/roles.js +14 -7
  163. package/resources/admin/organization/projects/users/roles.js.map +1 -1
  164. package/resources/admin/organization/projects/users/roles.mjs +14 -7
  165. package/resources/admin/organization/projects/users/roles.mjs.map +1 -1
  166. package/resources/admin/organization/projects/users/users.d.mts.map +1 -1
  167. package/resources/admin/organization/projects/users/users.d.ts.map +1 -1
  168. package/resources/admin/organization/projects/users/users.js +16 -9
  169. package/resources/admin/organization/projects/users/users.js.map +1 -1
  170. package/resources/admin/organization/projects/users/users.mjs +16 -9
  171. package/resources/admin/organization/projects/users/users.mjs.map +1 -1
  172. package/resources/admin/organization/roles.d.mts.map +1 -1
  173. package/resources/admin/organization/roles.d.ts.map +1 -1
  174. package/resources/admin/organization/roles.js +13 -10
  175. package/resources/admin/organization/roles.js.map +1 -1
  176. package/resources/admin/organization/roles.mjs +13 -10
  177. package/resources/admin/organization/roles.mjs.map +1 -1
  178. package/resources/admin/organization/spend-alerts.d.mts.map +1 -1
  179. package/resources/admin/organization/spend-alerts.d.ts.map +1 -1
  180. package/resources/admin/organization/spend-alerts.js +16 -9
  181. package/resources/admin/organization/spend-alerts.js.map +1 -1
  182. package/resources/admin/organization/spend-alerts.mjs +16 -9
  183. package/resources/admin/organization/spend-alerts.mjs.map +1 -1
  184. package/resources/admin/organization/spend-limit.d.mts.map +1 -1
  185. package/resources/admin/organization/spend-limit.d.ts.map +1 -1
  186. package/resources/admin/organization/spend-limit.js +9 -6
  187. package/resources/admin/organization/spend-limit.js.map +1 -1
  188. package/resources/admin/organization/spend-limit.mjs +9 -6
  189. package/resources/admin/organization/spend-limit.mjs.map +1 -1
  190. package/resources/admin/organization/usage.d.mts.map +1 -1
  191. package/resources/admin/organization/usage.d.ts.map +1 -1
  192. package/resources/admin/organization/usage.js +25 -22
  193. package/resources/admin/organization/usage.js.map +1 -1
  194. package/resources/admin/organization/usage.mjs +25 -22
  195. package/resources/admin/organization/usage.mjs.map +1 -1
  196. package/resources/admin/organization/users/roles.d.mts.map +1 -1
  197. package/resources/admin/organization/users/roles.d.ts.map +1 -1
  198. package/resources/admin/organization/users/roles.js +14 -7
  199. package/resources/admin/organization/users/roles.js.map +1 -1
  200. package/resources/admin/organization/users/roles.mjs +14 -7
  201. package/resources/admin/organization/users/roles.mjs.map +1 -1
  202. package/resources/admin/organization/users/users.d.mts.map +1 -1
  203. package/resources/admin/organization/users/users.d.ts.map +1 -1
  204. package/resources/admin/organization/users/users.js +11 -8
  205. package/resources/admin/organization/users/users.js.map +1 -1
  206. package/resources/admin/organization/users/users.mjs +11 -8
  207. package/resources/admin/organization/users/users.mjs.map +1 -1
  208. package/resources/audio/speech.d.mts.map +1 -1
  209. package/resources/audio/speech.d.ts.map +1 -1
  210. package/resources/audio/speech.js +5 -2
  211. package/resources/audio/speech.js.map +1 -1
  212. package/resources/audio/speech.mjs +5 -2
  213. package/resources/audio/speech.mjs.map +1 -1
  214. package/resources/audio/transcriptions.d.mts.map +1 -1
  215. package/resources/audio/transcriptions.d.ts.map +1 -1
  216. package/resources/audio/transcriptions.js +5 -2
  217. package/resources/audio/transcriptions.js.map +1 -1
  218. package/resources/audio/transcriptions.mjs +5 -2
  219. package/resources/audio/transcriptions.mjs.map +1 -1
  220. package/resources/audio/translations.d.mts.map +1 -1
  221. package/resources/audio/translations.d.ts.map +1 -1
  222. package/resources/audio/translations.js +4 -1
  223. package/resources/audio/translations.js.map +1 -1
  224. package/resources/audio/translations.mjs +4 -1
  225. package/resources/audio/translations.mjs.map +1 -1
  226. package/resources/batches.d.mts.map +1 -1
  227. package/resources/batches.d.ts.map +1 -1
  228. package/resources/batches.js +12 -8
  229. package/resources/batches.js.map +1 -1
  230. package/resources/batches.mjs +12 -8
  231. package/resources/batches.mjs.map +1 -1
  232. package/resources/beta/agents/agents.d.mts +32 -2
  233. package/resources/beta/agents/agents.d.mts.map +1 -1
  234. package/resources/beta/agents/agents.d.ts +32 -2
  235. package/resources/beta/agents/agents.d.ts.map +1 -1
  236. package/resources/beta/agents/agents.js +13 -10
  237. package/resources/beta/agents/agents.js.map +1 -1
  238. package/resources/beta/agents/agents.mjs +13 -10
  239. package/resources/beta/agents/agents.mjs.map +1 -1
  240. package/resources/beta/agents/environments/environments.d.mts.map +1 -1
  241. package/resources/beta/agents/environments/environments.d.ts.map +1 -1
  242. package/resources/beta/agents/environments/environments.js +5 -2
  243. package/resources/beta/agents/environments/environments.js.map +1 -1
  244. package/resources/beta/agents/environments/environments.mjs +5 -2
  245. package/resources/beta/agents/environments/environments.mjs.map +1 -1
  246. package/resources/beta/agents/environments/files.d.mts.map +1 -1
  247. package/resources/beta/agents/environments/files.d.ts.map +1 -1
  248. package/resources/beta/agents/environments/files.js +7 -4
  249. package/resources/beta/agents/environments/files.js.map +1 -1
  250. package/resources/beta/agents/environments/files.mjs +7 -4
  251. package/resources/beta/agents/environments/files.mjs.map +1 -1
  252. package/resources/beta/agents/environments/templates.d.mts.map +1 -1
  253. package/resources/beta/agents/environments/templates.d.ts.map +1 -1
  254. package/resources/beta/agents/environments/templates.js +13 -10
  255. package/resources/beta/agents/environments/templates.js.map +1 -1
  256. package/resources/beta/agents/environments/templates.mjs +13 -10
  257. package/resources/beta/agents/environments/templates.mjs.map +1 -1
  258. package/resources/beta/agents/index.d.mts +1 -1
  259. package/resources/beta/agents/index.d.mts.map +1 -1
  260. package/resources/beta/agents/index.d.ts +1 -1
  261. package/resources/beta/agents/index.d.ts.map +1 -1
  262. package/resources/beta/agents/index.js.map +1 -1
  263. package/resources/beta/agents/index.mjs.map +1 -1
  264. package/resources/beta/agents/sessions/artifacts.d.mts.map +1 -1
  265. package/resources/beta/agents/sessions/artifacts.d.ts.map +1 -1
  266. package/resources/beta/agents/sessions/artifacts.js +11 -8
  267. package/resources/beta/agents/sessions/artifacts.js.map +1 -1
  268. package/resources/beta/agents/sessions/artifacts.mjs +11 -8
  269. package/resources/beta/agents/sessions/artifacts.mjs.map +1 -1
  270. package/resources/beta/agents/sessions/events.d.mts.map +1 -1
  271. package/resources/beta/agents/sessions/events.d.ts.map +1 -1
  272. package/resources/beta/agents/sessions/events.js +11 -5
  273. package/resources/beta/agents/sessions/events.js.map +1 -1
  274. package/resources/beta/agents/sessions/events.mjs +11 -5
  275. package/resources/beta/agents/sessions/events.mjs.map +1 -1
  276. package/resources/beta/agents/sessions/items.d.mts.map +1 -1
  277. package/resources/beta/agents/sessions/items.d.ts.map +1 -1
  278. package/resources/beta/agents/sessions/items.js +5 -2
  279. package/resources/beta/agents/sessions/items.js.map +1 -1
  280. package/resources/beta/agents/sessions/items.mjs +5 -2
  281. package/resources/beta/agents/sessions/items.mjs.map +1 -1
  282. package/resources/beta/agents/sessions/sessions.d.mts.map +1 -1
  283. package/resources/beta/agents/sessions/sessions.d.ts.map +1 -1
  284. package/resources/beta/agents/sessions/sessions.js +13 -10
  285. package/resources/beta/agents/sessions/sessions.js.map +1 -1
  286. package/resources/beta/agents/sessions/sessions.mjs +13 -10
  287. package/resources/beta/agents/sessions/sessions.mjs.map +1 -1
  288. package/resources/beta/agents/sessions/subagents/items.d.mts.map +1 -1
  289. package/resources/beta/agents/sessions/subagents/items.d.ts.map +1 -1
  290. package/resources/beta/agents/sessions/subagents/items.js +5 -2
  291. package/resources/beta/agents/sessions/subagents/items.js.map +1 -1
  292. package/resources/beta/agents/sessions/subagents/items.mjs +5 -2
  293. package/resources/beta/agents/sessions/subagents/items.mjs.map +1 -1
  294. package/resources/beta/agents/sessions/subagents/subagents.d.mts.map +1 -1
  295. package/resources/beta/agents/sessions/subagents/subagents.d.ts.map +1 -1
  296. package/resources/beta/agents/sessions/subagents/subagents.js +7 -4
  297. package/resources/beta/agents/sessions/subagents/subagents.js.map +1 -1
  298. package/resources/beta/agents/sessions/subagents/subagents.mjs +7 -4
  299. package/resources/beta/agents/sessions/subagents/subagents.mjs.map +1 -1
  300. package/resources/beta/agents/sessions/subagents/turns/items.d.mts.map +1 -1
  301. package/resources/beta/agents/sessions/subagents/turns/items.d.ts.map +1 -1
  302. package/resources/beta/agents/sessions/subagents/turns/items.js +5 -2
  303. package/resources/beta/agents/sessions/subagents/turns/items.js.map +1 -1
  304. package/resources/beta/agents/sessions/subagents/turns/items.mjs +5 -2
  305. package/resources/beta/agents/sessions/subagents/turns/items.mjs.map +1 -1
  306. package/resources/beta/agents/sessions/subagents/turns/turns.d.mts.map +1 -1
  307. package/resources/beta/agents/sessions/subagents/turns/turns.d.ts.map +1 -1
  308. package/resources/beta/agents/sessions/subagents/turns/turns.js +7 -4
  309. package/resources/beta/agents/sessions/subagents/turns/turns.js.map +1 -1
  310. package/resources/beta/agents/sessions/subagents/turns/turns.mjs +7 -4
  311. package/resources/beta/agents/sessions/subagents/turns/turns.mjs.map +1 -1
  312. package/resources/beta/agents/sessions/turns.d.mts.map +1 -1
  313. package/resources/beta/agents/sessions/turns.d.ts.map +1 -1
  314. package/resources/beta/agents/sessions/turns.js +7 -4
  315. package/resources/beta/agents/sessions/turns.js.map +1 -1
  316. package/resources/beta/agents/sessions/turns.mjs +7 -4
  317. package/resources/beta/agents/sessions/turns.mjs.map +1 -1
  318. package/resources/beta/agents/vaults/credentials.d.mts.map +1 -1
  319. package/resources/beta/agents/vaults/credentials.d.ts.map +1 -1
  320. package/resources/beta/agents/vaults/credentials.js +13 -10
  321. package/resources/beta/agents/vaults/credentials.js.map +1 -1
  322. package/resources/beta/agents/vaults/credentials.mjs +13 -10
  323. package/resources/beta/agents/vaults/credentials.mjs.map +1 -1
  324. package/resources/beta/agents/vaults/vaults.d.mts.map +1 -1
  325. package/resources/beta/agents/vaults/vaults.d.ts.map +1 -1
  326. package/resources/beta/agents/vaults/vaults.js +11 -8
  327. package/resources/beta/agents/vaults/vaults.js.map +1 -1
  328. package/resources/beta/agents/vaults/vaults.mjs +11 -8
  329. package/resources/beta/agents/vaults/vaults.mjs.map +1 -1
  330. package/resources/beta/assistants.d.mts.map +1 -1
  331. package/resources/beta/assistants.d.ts.map +1 -1
  332. package/resources/beta/assistants.js +13 -10
  333. package/resources/beta/assistants.js.map +1 -1
  334. package/resources/beta/assistants.mjs +13 -10
  335. package/resources/beta/assistants.mjs.map +1 -1
  336. package/resources/beta/beta.d.mts +2 -2
  337. package/resources/beta/beta.d.mts.map +1 -1
  338. package/resources/beta/beta.d.ts +2 -2
  339. package/resources/beta/beta.d.ts.map +1 -1
  340. package/resources/beta/beta.js.map +1 -1
  341. package/resources/beta/beta.mjs.map +1 -1
  342. package/resources/beta/chatkit/sessions.d.mts.map +1 -1
  343. package/resources/beta/chatkit/sessions.d.ts.map +1 -1
  344. package/resources/beta/chatkit/sessions.js +7 -4
  345. package/resources/beta/chatkit/sessions.js.map +1 -1
  346. package/resources/beta/chatkit/sessions.mjs +7 -4
  347. package/resources/beta/chatkit/sessions.mjs.map +1 -1
  348. package/resources/beta/chatkit/threads.d.mts.map +1 -1
  349. package/resources/beta/chatkit/threads.d.ts.map +1 -1
  350. package/resources/beta/chatkit/threads.js +11 -8
  351. package/resources/beta/chatkit/threads.js.map +1 -1
  352. package/resources/beta/chatkit/threads.mjs +11 -8
  353. package/resources/beta/chatkit/threads.mjs.map +1 -1
  354. package/resources/beta/index.d.mts +1 -1
  355. package/resources/beta/index.d.mts.map +1 -1
  356. package/resources/beta/index.d.ts +1 -1
  357. package/resources/beta/index.d.ts.map +1 -1
  358. package/resources/beta/index.js.map +1 -1
  359. package/resources/beta/index.mjs.map +1 -1
  360. package/resources/beta/responses/input-items.d.mts +11 -1
  361. package/resources/beta/responses/input-items.d.mts.map +1 -1
  362. package/resources/beta/responses/input-items.d.ts +11 -1
  363. package/resources/beta/responses/input-items.d.ts.map +1 -1
  364. package/resources/beta/responses/input-items.js +66 -15
  365. package/resources/beta/responses/input-items.js.map +1 -1
  366. package/resources/beta/responses/input-items.mjs +66 -15
  367. package/resources/beta/responses/input-items.mjs.map +1 -1
  368. package/resources/beta/responses/input-tokens.d.mts +3 -0
  369. package/resources/beta/responses/input-tokens.d.mts.map +1 -1
  370. package/resources/beta/responses/input-tokens.d.ts +3 -0
  371. package/resources/beta/responses/input-tokens.d.ts.map +1 -1
  372. package/resources/beta/responses/input-tokens.js +8 -2
  373. package/resources/beta/responses/input-tokens.js.map +1 -1
  374. package/resources/beta/responses/input-tokens.mjs +8 -2
  375. package/resources/beta/responses/input-tokens.mjs.map +1 -1
  376. package/resources/beta/responses/responses.d.mts +17 -3
  377. package/resources/beta/responses/responses.d.mts.map +1 -1
  378. package/resources/beta/responses/responses.d.ts +17 -3
  379. package/resources/beta/responses/responses.d.ts.map +1 -1
  380. package/resources/beta/responses/responses.js +78 -11
  381. package/resources/beta/responses/responses.js.map +1 -1
  382. package/resources/beta/responses/responses.mjs +78 -11
  383. package/resources/beta/responses/responses.mjs.map +1 -1
  384. package/resources/beta/threads/messages.d.mts.map +1 -1
  385. package/resources/beta/threads/messages.d.ts.map +1 -1
  386. package/resources/beta/threads/messages.js +13 -10
  387. package/resources/beta/threads/messages.js.map +1 -1
  388. package/resources/beta/threads/messages.mjs +13 -10
  389. package/resources/beta/threads/messages.mjs.map +1 -1
  390. package/resources/beta/threads/runs/runs.d.mts.map +1 -1
  391. package/resources/beta/threads/runs/runs.d.ts.map +1 -1
  392. package/resources/beta/threads/runs/runs.js +15 -12
  393. package/resources/beta/threads/runs/runs.js.map +1 -1
  394. package/resources/beta/threads/runs/runs.mjs +15 -12
  395. package/resources/beta/threads/runs/runs.mjs.map +1 -1
  396. package/resources/beta/threads/runs/steps.d.mts.map +1 -1
  397. package/resources/beta/threads/runs/steps.d.ts.map +1 -1
  398. package/resources/beta/threads/runs/steps.js +7 -4
  399. package/resources/beta/threads/runs/steps.js.map +1 -1
  400. package/resources/beta/threads/runs/steps.mjs +7 -4
  401. package/resources/beta/threads/runs/steps.mjs.map +1 -1
  402. package/resources/beta/threads/threads.d.mts.map +1 -1
  403. package/resources/beta/threads/threads.d.ts.map +1 -1
  404. package/resources/beta/threads/threads.js +13 -10
  405. package/resources/beta/threads/threads.js.map +1 -1
  406. package/resources/beta/threads/threads.mjs +13 -10
  407. package/resources/beta/threads/threads.mjs.map +1 -1
  408. package/resources/chat/completions/completions.d.mts.map +1 -1
  409. package/resources/chat/completions/completions.d.ts.map +1 -1
  410. package/resources/chat/completions/completions.js +11 -14
  411. package/resources/chat/completions/completions.js.map +1 -1
  412. package/resources/chat/completions/completions.mjs +11 -14
  413. package/resources/chat/completions/completions.mjs.map +1 -1
  414. package/resources/chat/completions/messages.d.mts.map +1 -1
  415. package/resources/chat/completions/messages.d.ts.map +1 -1
  416. package/resources/chat/completions/messages.js +8 -1
  417. package/resources/chat/completions/messages.js.map +1 -1
  418. package/resources/chat/completions/messages.mjs +8 -1
  419. package/resources/chat/completions/messages.mjs.map +1 -1
  420. package/resources/completions.d.mts.map +1 -1
  421. package/resources/completions.d.ts.map +1 -1
  422. package/resources/completions.js +5 -2
  423. package/resources/completions.js.map +1 -1
  424. package/resources/completions.mjs +5 -2
  425. package/resources/completions.mjs.map +1 -1
  426. package/resources/containers/containers.d.mts.map +1 -1
  427. package/resources/containers/containers.d.ts.map +1 -1
  428. package/resources/containers/containers.js +13 -9
  429. package/resources/containers/containers.js.map +1 -1
  430. package/resources/containers/containers.mjs +13 -9
  431. package/resources/containers/containers.mjs.map +1 -1
  432. package/resources/containers/files/content.d.mts.map +1 -1
  433. package/resources/containers/files/content.d.ts.map +1 -1
  434. package/resources/containers/files/content.js +5 -2
  435. package/resources/containers/files/content.js.map +1 -1
  436. package/resources/containers/files/content.mjs +5 -2
  437. package/resources/containers/files/content.mjs.map +1 -1
  438. package/resources/containers/files/files.d.mts.map +1 -1
  439. package/resources/containers/files/files.d.ts.map +1 -1
  440. package/resources/containers/files/files.js +9 -9
  441. package/resources/containers/files/files.js.map +1 -1
  442. package/resources/containers/files/files.mjs +9 -9
  443. package/resources/containers/files/files.mjs.map +1 -1
  444. package/resources/content-provenance-checks.d.mts.map +1 -1
  445. package/resources/content-provenance-checks.d.ts.map +1 -1
  446. package/resources/content-provenance-checks.js +4 -1
  447. package/resources/content-provenance-checks.js.map +1 -1
  448. package/resources/content-provenance-checks.mjs +4 -1
  449. package/resources/content-provenance-checks.mjs.map +1 -1
  450. package/resources/conversations/conversations.d.mts.map +1 -1
  451. package/resources/conversations/conversations.d.ts.map +1 -1
  452. package/resources/conversations/conversations.js +12 -11
  453. package/resources/conversations/conversations.js.map +1 -1
  454. package/resources/conversations/conversations.mjs +12 -11
  455. package/resources/conversations/conversations.mjs.map +1 -1
  456. package/resources/conversations/items.d.mts.map +1 -1
  457. package/resources/conversations/items.d.ts.map +1 -1
  458. package/resources/conversations/items.js +13 -9
  459. package/resources/conversations/items.js.map +1 -1
  460. package/resources/conversations/items.mjs +13 -9
  461. package/resources/conversations/items.mjs.map +1 -1
  462. package/resources/evals/evals.d.mts.map +1 -1
  463. package/resources/evals/evals.d.ts.map +1 -1
  464. package/resources/evals/evals.js +17 -6
  465. package/resources/evals/evals.js.map +1 -1
  466. package/resources/evals/evals.mjs +17 -6
  467. package/resources/evals/evals.mjs.map +1 -1
  468. package/resources/evals/runs/output-items.d.mts.map +1 -1
  469. package/resources/evals/runs/output-items.d.ts.map +1 -1
  470. package/resources/evals/runs/output-items.js +9 -5
  471. package/resources/evals/runs/output-items.js.map +1 -1
  472. package/resources/evals/runs/output-items.mjs +9 -5
  473. package/resources/evals/runs/output-items.mjs.map +1 -1
  474. package/resources/evals/runs/runs.d.mts.map +1 -1
  475. package/resources/evals/runs/runs.d.ts.map +1 -1
  476. package/resources/evals/runs/runs.js +10 -16
  477. package/resources/evals/runs/runs.js.map +1 -1
  478. package/resources/evals/runs/runs.mjs +10 -16
  479. package/resources/evals/runs/runs.mjs.map +1 -1
  480. package/resources/files.d.mts.map +1 -1
  481. package/resources/files.d.ts.map +1 -1
  482. package/resources/files.js +10 -7
  483. package/resources/files.js.map +1 -1
  484. package/resources/files.mjs +10 -7
  485. package/resources/files.mjs.map +1 -1
  486. package/resources/fine-tuning/alpha/graders.d.mts.map +1 -1
  487. package/resources/fine-tuning/alpha/graders.d.ts.map +1 -1
  488. package/resources/fine-tuning/alpha/graders.js +7 -4
  489. package/resources/fine-tuning/alpha/graders.js.map +1 -1
  490. package/resources/fine-tuning/alpha/graders.mjs +7 -4
  491. package/resources/fine-tuning/alpha/graders.mjs.map +1 -1
  492. package/resources/fine-tuning/checkpoints/permissions.d.mts.map +1 -1
  493. package/resources/fine-tuning/checkpoints/permissions.d.ts.map +1 -1
  494. package/resources/fine-tuning/checkpoints/permissions.js +20 -5
  495. package/resources/fine-tuning/checkpoints/permissions.js.map +1 -1
  496. package/resources/fine-tuning/checkpoints/permissions.mjs +20 -5
  497. package/resources/fine-tuning/checkpoints/permissions.mjs.map +1 -1
  498. package/resources/fine-tuning/jobs/checkpoints.d.mts.map +1 -1
  499. package/resources/fine-tuning/jobs/checkpoints.d.ts.map +1 -1
  500. package/resources/fine-tuning/jobs/checkpoints.js +8 -1
  501. package/resources/fine-tuning/jobs/checkpoints.js.map +1 -1
  502. package/resources/fine-tuning/jobs/checkpoints.mjs +8 -1
  503. package/resources/fine-tuning/jobs/checkpoints.mjs.map +1 -1
  504. package/resources/fine-tuning/jobs/jobs.d.mts.map +1 -1
  505. package/resources/fine-tuning/jobs/jobs.d.ts.map +1 -1
  506. package/resources/fine-tuning/jobs/jobs.js +19 -20
  507. package/resources/fine-tuning/jobs/jobs.js.map +1 -1
  508. package/resources/fine-tuning/jobs/jobs.mjs +19 -20
  509. package/resources/fine-tuning/jobs/jobs.mjs.map +1 -1
  510. package/resources/images.d.mts.map +1 -1
  511. package/resources/images.d.ts.map +1 -1
  512. package/resources/images.js +8 -5
  513. package/resources/images.js.map +1 -1
  514. package/resources/images.mjs +8 -5
  515. package/resources/images.mjs.map +1 -1
  516. package/resources/live/live.d.mts.map +1 -1
  517. package/resources/live/live.d.ts.map +1 -1
  518. package/resources/live/live.js +8 -1
  519. package/resources/live/live.js.map +1 -1
  520. package/resources/live/live.mjs +8 -1
  521. package/resources/live/live.mjs.map +1 -1
  522. package/resources/live/sessions.d.mts.map +1 -1
  523. package/resources/live/sessions.d.ts.map +1 -1
  524. package/resources/live/sessions.js +15 -12
  525. package/resources/live/sessions.js.map +1 -1
  526. package/resources/live/sessions.mjs +15 -12
  527. package/resources/live/sessions.mjs.map +1 -1
  528. package/resources/models.d.mts.map +1 -1
  529. package/resources/models.d.ts.map +1 -1
  530. package/resources/models.js +6 -3
  531. package/resources/models.js.map +1 -1
  532. package/resources/models.mjs +6 -3
  533. package/resources/models.mjs.map +1 -1
  534. package/resources/moderations.d.mts.map +1 -1
  535. package/resources/moderations.d.ts.map +1 -1
  536. package/resources/moderations.js +8 -1
  537. package/resources/moderations.js.map +1 -1
  538. package/resources/moderations.mjs +8 -1
  539. package/resources/moderations.mjs.map +1 -1
  540. package/resources/realtime/calls.d.mts.map +1 -1
  541. package/resources/realtime/calls.d.ts.map +1 -1
  542. package/resources/realtime/calls.js +13 -10
  543. package/resources/realtime/calls.js.map +1 -1
  544. package/resources/realtime/calls.mjs +13 -10
  545. package/resources/realtime/calls.mjs.map +1 -1
  546. package/resources/realtime/client-secrets.d.mts.map +1 -1
  547. package/resources/realtime/client-secrets.d.ts.map +1 -1
  548. package/resources/realtime/client-secrets.js +5 -2
  549. package/resources/realtime/client-secrets.js.map +1 -1
  550. package/resources/realtime/client-secrets.mjs +5 -2
  551. package/resources/realtime/client-secrets.mjs.map +1 -1
  552. package/resources/responses/input-items.d.mts +3 -0
  553. package/resources/responses/input-items.d.mts.map +1 -1
  554. package/resources/responses/input-items.d.ts +3 -0
  555. package/resources/responses/input-items.d.ts.map +1 -1
  556. package/resources/responses/input-items.js +11 -1
  557. package/resources/responses/input-items.js.map +1 -1
  558. package/resources/responses/input-items.mjs +11 -1
  559. package/resources/responses/input-items.mjs.map +1 -1
  560. package/resources/responses/input-tokens.d.mts +3 -0
  561. package/resources/responses/input-tokens.d.mts.map +1 -1
  562. package/resources/responses/input-tokens.d.ts +3 -0
  563. package/resources/responses/input-tokens.d.ts.map +1 -1
  564. package/resources/responses/input-tokens.js +8 -2
  565. package/resources/responses/input-tokens.js.map +1 -1
  566. package/resources/responses/input-tokens.mjs +8 -2
  567. package/resources/responses/input-tokens.mjs.map +1 -1
  568. package/resources/responses/responses.d.mts +3 -0
  569. package/resources/responses/responses.d.mts.map +1 -1
  570. package/resources/responses/responses.d.ts +3 -0
  571. package/resources/responses/responses.d.ts.map +1 -1
  572. package/resources/responses/responses.js +18 -11
  573. package/resources/responses/responses.js.map +1 -1
  574. package/resources/responses/responses.mjs +18 -11
  575. package/resources/responses/responses.mjs.map +1 -1
  576. package/resources/safety/alerts.d.mts.map +1 -1
  577. package/resources/safety/alerts.d.ts.map +1 -1
  578. package/resources/safety/alerts.js +4 -1
  579. package/resources/safety/alerts.js.map +1 -1
  580. package/resources/safety/alerts.mjs +4 -1
  581. package/resources/safety/alerts.mjs.map +1 -1
  582. package/resources/safety/cases.d.mts.map +1 -1
  583. package/resources/safety/cases.d.ts.map +1 -1
  584. package/resources/safety/cases.js +4 -1
  585. package/resources/safety/cases.js.map +1 -1
  586. package/resources/safety/cases.mjs +4 -1
  587. package/resources/safety/cases.mjs.map +1 -1
  588. package/resources/safety/safety.d.mts +2 -2
  589. package/resources/safety/safety.d.mts.map +1 -1
  590. package/resources/safety/safety.d.ts +2 -2
  591. package/resources/safety/safety.d.ts.map +1 -1
  592. package/resources/safety/safety.js +2 -2
  593. package/resources/safety/safety.js.map +1 -1
  594. package/resources/safety/safety.mjs +2 -2
  595. package/resources/safety/safety.mjs.map +1 -1
  596. package/resources/skills/content.d.mts.map +1 -1
  597. package/resources/skills/content.d.ts.map +1 -1
  598. package/resources/skills/content.js +5 -2
  599. package/resources/skills/content.js.map +1 -1
  600. package/resources/skills/content.mjs +5 -2
  601. package/resources/skills/content.mjs.map +1 -1
  602. package/resources/skills/skills.d.mts.map +1 -1
  603. package/resources/skills/skills.d.ts.map +1 -1
  604. package/resources/skills/skills.js +9 -6
  605. package/resources/skills/skills.js.map +1 -1
  606. package/resources/skills/skills.mjs +9 -6
  607. package/resources/skills/skills.mjs.map +1 -1
  608. package/resources/skills/versions/content.d.mts.map +1 -1
  609. package/resources/skills/versions/content.d.ts.map +1 -1
  610. package/resources/skills/versions/content.js +5 -2
  611. package/resources/skills/versions/content.js.map +1 -1
  612. package/resources/skills/versions/content.mjs +5 -2
  613. package/resources/skills/versions/content.mjs.map +1 -1
  614. package/resources/skills/versions/versions.d.mts.map +1 -1
  615. package/resources/skills/versions/versions.d.ts.map +1 -1
  616. package/resources/skills/versions/versions.js +7 -10
  617. package/resources/skills/versions/versions.js.map +1 -1
  618. package/resources/skills/versions/versions.mjs +7 -10
  619. package/resources/skills/versions/versions.mjs.map +1 -1
  620. package/resources/uploads/parts.d.mts.map +1 -1
  621. package/resources/uploads/parts.d.ts.map +1 -1
  622. package/resources/uploads/parts.js +4 -1
  623. package/resources/uploads/parts.js.map +1 -1
  624. package/resources/uploads/parts.mjs +4 -1
  625. package/resources/uploads/parts.mjs.map +1 -1
  626. package/resources/uploads/uploads.d.mts.map +1 -1
  627. package/resources/uploads/uploads.d.ts.map +1 -1
  628. package/resources/uploads/uploads.js +11 -7
  629. package/resources/uploads/uploads.js.map +1 -1
  630. package/resources/uploads/uploads.mjs +11 -7
  631. package/resources/uploads/uploads.mjs.map +1 -1
  632. package/resources/vector-stores/file-batches.d.mts.map +1 -1
  633. package/resources/vector-stores/file-batches.d.ts.map +1 -1
  634. package/resources/vector-stores/file-batches.js +11 -8
  635. package/resources/vector-stores/file-batches.js.map +1 -1
  636. package/resources/vector-stores/file-batches.mjs +11 -8
  637. package/resources/vector-stores/file-batches.mjs.map +1 -1
  638. package/resources/vector-stores/files.d.mts.map +1 -1
  639. package/resources/vector-stores/files.d.ts.map +1 -1
  640. package/resources/vector-stores/files.js +15 -12
  641. package/resources/vector-stores/files.js.map +1 -1
  642. package/resources/vector-stores/files.mjs +15 -12
  643. package/resources/vector-stores/files.mjs.map +1 -1
  644. package/resources/vector-stores/vector-stores.d.mts.map +1 -1
  645. package/resources/vector-stores/vector-stores.d.ts.map +1 -1
  646. package/resources/vector-stores/vector-stores.js +15 -12
  647. package/resources/vector-stores/vector-stores.js.map +1 -1
  648. package/resources/vector-stores/vector-stores.mjs +15 -12
  649. package/resources/vector-stores/vector-stores.mjs.map +1 -1
  650. package/resources/videos.d.mts.map +1 -1
  651. package/resources/videos.d.ts.map +1 -1
  652. package/resources/videos.js +15 -15
  653. package/resources/videos.js.map +1 -1
  654. package/resources/videos.mjs +15 -15
  655. package/resources/videos.mjs.map +1 -1
  656. package/resources/webhooks/event-types.d.mts.map +1 -1
  657. package/resources/webhooks/event-types.d.ts.map +1 -1
  658. package/resources/webhooks/event-types.js +4 -1
  659. package/resources/webhooks/event-types.js.map +1 -1
  660. package/resources/webhooks/event-types.mjs +4 -1
  661. package/resources/webhooks/event-types.mjs.map +1 -1
  662. package/resources/webhooks/webhooks.d.mts.map +1 -1
  663. package/resources/webhooks/webhooks.d.ts.map +1 -1
  664. package/resources/webhooks/webhooks.js +18 -17
  665. package/resources/webhooks/webhooks.js.map +1 -1
  666. package/resources/webhooks/webhooks.mjs +18 -17
  667. package/resources/webhooks/webhooks.mjs.map +1 -1
  668. package/src/client.ts +345 -4
  669. package/src/resources/admin/organization/admin-api-keys.ts +38 -18
  670. package/src/resources/admin/organization/audit-logs.ts +16 -5
  671. package/src/resources/admin/organization/certificates.ts +59 -27
  672. package/src/resources/admin/organization/data-retention.ts +22 -9
  673. package/src/resources/admin/organization/external-storage.ts +45 -19
  674. package/src/resources/admin/organization/groups/groups.ts +46 -23
  675. package/src/resources/admin/organization/groups/roles.ts +34 -14
  676. package/src/resources/admin/organization/groups/users.ts +34 -14
  677. package/src/resources/admin/organization/invites.ts +38 -18
  678. package/src/resources/admin/organization/organization.ts +13 -13
  679. package/src/resources/admin/organization/projects/api-keys.ts +26 -9
  680. package/src/resources/admin/organization/projects/certificates.ts +24 -3
  681. package/src/resources/admin/organization/projects/data-retention.ts +22 -9
  682. package/src/resources/admin/organization/projects/groups/groups.ts +35 -15
  683. package/src/resources/admin/organization/projects/groups/roles.ts +34 -14
  684. package/src/resources/admin/organization/projects/hosted-tool-permissions.ts +22 -9
  685. package/src/resources/admin/organization/projects/model-permissions.ts +29 -13
  686. package/src/resources/admin/organization/projects/projects.ts +46 -23
  687. package/src/resources/admin/organization/projects/rate-limits.ts +20 -6
  688. package/src/resources/admin/organization/projects/roles.ts +46 -23
  689. package/src/resources/admin/organization/projects/service-accounts/api-keys.ts +12 -1
  690. package/src/resources/admin/organization/projects/service-accounts/service-accounts.ts +36 -12
  691. package/src/resources/admin/organization/projects/spend-alerts.ts +42 -19
  692. package/src/resources/admin/organization/projects/spend-limit.ts +29 -13
  693. package/src/resources/admin/organization/projects/users/roles.ts +34 -14
  694. package/src/resources/admin/organization/projects/users/users.ts +42 -19
  695. package/src/resources/admin/organization/roles.ts +46 -23
  696. package/src/resources/admin/organization/spend-alerts.ts +42 -19
  697. package/src/resources/admin/organization/spend-limit.ts +29 -13
  698. package/src/resources/admin/organization/usage.ts +95 -55
  699. package/src/resources/admin/organization/users/roles.ts +34 -14
  700. package/src/resources/admin/organization/users/users.ts +38 -18
  701. package/src/resources/audio/speech.ts +17 -7
  702. package/src/resources/audio/transcriptions.ts +18 -9
  703. package/src/resources/audio/translations.ts +12 -3
  704. package/src/resources/batches.ts +32 -11
  705. package/src/resources/beta/agents/agents.ts +89 -28
  706. package/src/resources/beta/agents/environments/environments.ts +15 -5
  707. package/src/resources/beta/agents/environments/files.ts +18 -8
  708. package/src/resources/beta/agents/environments/templates.ts +51 -28
  709. package/src/resources/beta/agents/index.ts +1 -0
  710. package/src/resources/beta/agents/sessions/artifacts.ts +37 -21
  711. package/src/resources/beta/agents/sessions/events.ts +35 -19
  712. package/src/resources/beta/agents/sessions/items.ts +9 -2
  713. package/src/resources/beta/agents/sessions/sessions.ts +52 -29
  714. package/src/resources/beta/agents/sessions/subagents/items.ts +9 -2
  715. package/src/resources/beta/agents/sessions/subagents/subagents.ts +17 -7
  716. package/src/resources/beta/agents/sessions/subagents/turns/items.ts +9 -2
  717. package/src/resources/beta/agents/sessions/subagents/turns/turns.ts +17 -7
  718. package/src/resources/beta/agents/sessions/turns.ts +25 -11
  719. package/src/resources/beta/agents/vaults/credentials.ts +51 -28
  720. package/src/resources/beta/agents/vaults/vaults.ts +42 -22
  721. package/src/resources/beta/assistants.ts +51 -28
  722. package/src/resources/beta/beta.ts +2 -0
  723. package/src/resources/beta/chatkit/sessions.ts +24 -11
  724. package/src/resources/beta/chatkit/threads.ts +35 -18
  725. package/src/resources/beta/index.ts +1 -0
  726. package/src/resources/beta/responses/input-items.ts +214 -3
  727. package/src/resources/beta/responses/input-tokens.ts +22 -9
  728. package/src/resources/beta/responses/responses.ts +324 -49
  729. package/src/resources/beta/threads/messages.ts +51 -28
  730. package/src/resources/beta/threads/runs/runs.ts +65 -39
  731. package/src/resources/beta/threads/runs/steps.ts +26 -12
  732. package/src/resources/beta/threads/threads.ts +52 -30
  733. package/src/resources/chat/completions/completions.ts +41 -24
  734. package/src/resources/chat/completions/messages.ts +12 -1
  735. package/src/resources/completions.ts +16 -6
  736. package/src/resources/containers/containers.ts +36 -15
  737. package/src/resources/containers/files/content.ts +16 -6
  738. package/src/resources/containers/files/files.ts +34 -15
  739. package/src/resources/content-provenance-checks.ts +10 -1
  740. package/src/resources/conversations/conversations.ts +31 -14
  741. package/src/resources/conversations/items.ts +33 -16
  742. package/src/resources/evals/evals.ts +40 -9
  743. package/src/resources/evals/runs/output-items.ts +16 -5
  744. package/src/resources/evals/runs/runs.ts +36 -22
  745. package/src/resources/files.ts +36 -14
  746. package/src/resources/fine-tuning/alpha/graders.ts +23 -10
  747. package/src/resources/fine-tuning/checkpoints/permissions.ts +30 -8
  748. package/src/resources/fine-tuning/jobs/checkpoints.ts +12 -1
  749. package/src/resources/fine-tuning/jobs/jobs.ts +45 -23
  750. package/src/resources/images.ts +30 -16
  751. package/src/resources/live/live.ts +15 -1
  752. package/src/resources/live/sessions.ts +59 -34
  753. package/src/resources/models.ts +20 -3
  754. package/src/resources/moderations.ts +15 -1
  755. package/src/resources/realtime/calls.ts +58 -37
  756. package/src/resources/realtime/client-secrets.ts +15 -5
  757. package/src/resources/responses/input-items.ts +15 -1
  758. package/src/resources/responses/input-tokens.ts +18 -5
  759. package/src/resources/responses/responses.ts +48 -22
  760. package/src/resources/safety/alerts.ts +11 -1
  761. package/src/resources/safety/cases.ts +11 -1
  762. package/src/resources/safety/safety.ts +4 -4
  763. package/src/resources/skills/content.ts +16 -6
  764. package/src/resources/skills/skills.ts +32 -12
  765. package/src/resources/skills/versions/content.ts +16 -6
  766. package/src/resources/skills/versions/versions.ts +24 -13
  767. package/src/resources/uploads/parts.ts +10 -1
  768. package/src/resources/uploads/uploads.ts +27 -10
  769. package/src/resources/vector-stores/file-batches.ts +34 -18
  770. package/src/resources/vector-stores/files.ts +53 -30
  771. package/src/resources/vector-stores/vector-stores.ts +53 -30
  772. package/src/resources/videos.ts +56 -23
  773. package/src/resources/webhooks/event-types.ts +11 -1
  774. package/src/resources/webhooks/webhooks.ts +56 -29
  775. package/src/version.ts +1 -1
  776. package/version.d.mts +1 -1
  777. package/version.d.ts +1 -1
  778. package/version.js +1 -1
  779. package/version.mjs +1 -1
@@ -4,6 +4,13 @@ import { APIResource } from '../../../core/resource';
4
4
  import { APIPromise } from '../../../core/api-promise';
5
5
  import { RequestOptions } from '../../../internal/request-options';
6
6
 
7
+ function resolveResourceRequestOptions(
8
+ options: RequestOptions | undefined,
9
+ buildOptions: (options: RequestOptions | undefined) => RequestOptions | Promise<RequestOptions>,
10
+ ): Promise<RequestOptions> {
11
+ return Promise.resolve(options).then(buildOptions);
12
+ }
13
+
7
14
  export class DataRetention extends APIResource {
8
15
  /**
9
16
  * Retrieves organization data retention controls.
@@ -15,10 +22,13 @@ export class DataRetention extends APIResource {
15
22
  * ```
16
23
  */
17
24
  retrieve(options?: RequestOptions): APIPromise<OrganizationDataRetention> {
18
- return this._client.get('/organization/data_retention', {
19
- ...options,
20
- __security: { adminAPIKeyAuth: true },
21
- });
25
+ return this._client.get(
26
+ '/organization/data_retention',
27
+ resolveResourceRequestOptions(options, (options) => ({
28
+ ...options,
29
+ __security: { adminAPIKeyAuth: true },
30
+ })),
31
+ );
22
32
  }
23
33
 
24
34
  /**
@@ -33,11 +43,14 @@ export class DataRetention extends APIResource {
33
43
  * ```
34
44
  */
35
45
  update(body: DataRetentionUpdateParams, options?: RequestOptions): APIPromise<OrganizationDataRetention> {
36
- return this._client.post('/organization/data_retention', {
37
- body,
38
- ...options,
39
- __security: { adminAPIKeyAuth: true },
40
- });
46
+ return this._client.post(
47
+ '/organization/data_retention',
48
+ resolveResourceRequestOptions(options, (options) => ({
49
+ body,
50
+ ...options,
51
+ __security: { adminAPIKeyAuth: true },
52
+ })),
53
+ );
41
54
  }
42
55
  }
43
56
 
@@ -6,6 +6,13 @@ import { CursorPage, type CursorPageParams, PagePromise } from '../../../core/pa
6
6
  import { RequestOptions } from '../../../internal/request-options';
7
7
  import { path } from '../../../internal/utils/path';
8
8
 
9
+ function resolveResourceRequestOptions(
10
+ options: RequestOptions | undefined,
11
+ buildOptions: (options: RequestOptions | undefined) => RequestOptions | Promise<RequestOptions>,
12
+ ): Promise<RequestOptions> {
13
+ return Promise.resolve(options).then(buildOptions);
14
+ }
15
+
9
16
  // Recognizable options across SDK runtime versions. Keep this independent of
10
17
  // private RequestOptions fields so older handwritten runtimes still compile.
11
18
  const normalizeRequestOptionsForQueryKeys = new Set([
@@ -134,11 +141,14 @@ export class ExternalStorage extends APIResource {
134
141
  body: ExternalStorageCreateParams,
135
142
  options?: RequestOptions,
136
143
  ): APIPromise<ExternalStorageConfiguration> {
137
- return this._client.post('/organization/external_storage', {
138
- body,
139
- ...options,
140
- __security: { adminAPIKeyAuth: true },
141
- });
144
+ return this._client.post(
145
+ '/organization/external_storage',
146
+ resolveResourceRequestOptions(options, (options) => ({
147
+ body,
148
+ ...options,
149
+ __security: { adminAPIKeyAuth: true },
150
+ })),
151
+ );
142
152
  }
143
153
 
144
154
  /**
@@ -153,10 +163,13 @@ export class ExternalStorage extends APIResource {
153
163
  * ```
154
164
  */
155
165
  retrieve(externalStorageID: string, options?: RequestOptions): APIPromise<ExternalStorageConfiguration> {
156
- return this._client.get(path`/organization/external_storage/${externalStorageID}`, {
157
- ...options,
158
- __security: { adminAPIKeyAuth: true },
159
- });
166
+ return this._client.get(
167
+ path`/organization/external_storage/${externalStorageID}`,
168
+ resolveResourceRequestOptions(options, (options) => ({
169
+ ...options,
170
+ __security: { adminAPIKeyAuth: true },
171
+ })),
172
+ );
160
173
  }
161
174
 
162
175
  /**
@@ -269,12 +282,19 @@ export class ExternalStorage extends APIResource {
269
282
  return this._client.getAPIList(
270
283
  '/organization/external_storage',
271
284
  CursorPage<ExternalStorageConfiguration>,
272
- { query, ...options, __security: { adminAPIKeyAuth: true } },
285
+ resolveResourceRequestOptions(options, (options) => ({
286
+ query,
287
+ ...options,
288
+ __security: { adminAPIKeyAuth: true },
289
+ })),
273
290
  );
274
291
  }
275
292
 
276
293
  /**
277
- * Soft-delete one customer-managed external storage configuration.
294
+ * Disconnect a customer-managed external storage configuration. Removing the
295
+ * project's last configuration restores organization-default retention if
296
+ * customer-managed retention was active. Repeating a deletion also completes any
297
+ * interrupted retention update. Cloud storage is unchanged.
278
298
  *
279
299
  * @example
280
300
  * ```ts
@@ -285,10 +305,13 @@ export class ExternalStorage extends APIResource {
285
305
  * ```
286
306
  */
287
307
  delete(externalStorageID: string, options?: RequestOptions): APIPromise<ExternalStorageDeleted> {
288
- return this._client.delete(path`/organization/external_storage/${externalStorageID}`, {
289
- ...options,
290
- __security: { adminAPIKeyAuth: true },
291
- });
308
+ return this._client.delete(
309
+ path`/organization/external_storage/${externalStorageID}`,
310
+ resolveResourceRequestOptions(options, (options) => ({
311
+ ...options,
312
+ __security: { adminAPIKeyAuth: true },
313
+ })),
314
+ );
292
315
  }
293
316
 
294
317
  /**
@@ -303,10 +326,13 @@ export class ExternalStorage extends APIResource {
303
326
  * ```
304
327
  */
305
328
  validate(externalStorageID: string, options?: RequestOptions): APIPromise<ExternalStorageConfiguration> {
306
- return this._client.post(path`/organization/external_storage/${externalStorageID}/validate`, {
307
- ...options,
308
- __security: { adminAPIKeyAuth: true },
309
- });
329
+ return this._client.post(
330
+ path`/organization/external_storage/${externalStorageID}/validate`,
331
+ resolveResourceRequestOptions(options, (options) => ({
332
+ ...options,
333
+ __security: { adminAPIKeyAuth: true },
334
+ })),
335
+ );
310
336
  }
311
337
  }
312
338
 
@@ -32,6 +32,13 @@ import { NextCursorPage, type NextCursorPageParams, PagePromise } from '../../..
32
32
  import { RequestOptions } from '../../../../internal/request-options';
33
33
  import { path } from '../../../../internal/utils/path';
34
34
 
35
+ function resolveResourceRequestOptions(
36
+ options: RequestOptions | undefined,
37
+ buildOptions: (options: RequestOptions | undefined) => RequestOptions | Promise<RequestOptions>,
38
+ ): Promise<RequestOptions> {
39
+ return Promise.resolve(options).then(buildOptions);
40
+ }
41
+
35
42
  // Recognizable options across SDK runtime versions. Keep this independent of
36
43
  // private RequestOptions fields so older handwritten runtimes still compile.
37
44
  const normalizeRequestOptionsForQueryKeys = new Set([
@@ -154,11 +161,14 @@ export class Groups extends APIResource {
154
161
  * ```
155
162
  */
156
163
  create(body: GroupCreateParams, options?: RequestOptions): APIPromise<Group> {
157
- return this._client.post('/organization/groups', {
158
- body,
159
- ...options,
160
- __security: { adminAPIKeyAuth: true },
161
- });
164
+ return this._client.post(
165
+ '/organization/groups',
166
+ resolveResourceRequestOptions(options, (options) => ({
167
+ body,
168
+ ...options,
169
+ __security: { adminAPIKeyAuth: true },
170
+ })),
171
+ );
162
172
  }
163
173
 
164
174
  /**
@@ -173,10 +183,13 @@ export class Groups extends APIResource {
173
183
  * ```
174
184
  */
175
185
  retrieve(groupID: string, options?: RequestOptions): APIPromise<Group> {
176
- return this._client.get(path`/organization/groups/${groupID}`, {
177
- ...options,
178
- __security: { adminAPIKeyAuth: true },
179
- });
186
+ return this._client.get(
187
+ path`/organization/groups/${groupID}`,
188
+ resolveResourceRequestOptions(options, (options) => ({
189
+ ...options,
190
+ __security: { adminAPIKeyAuth: true },
191
+ })),
192
+ );
180
193
  }
181
194
 
182
195
  /**
@@ -195,11 +208,14 @@ export class Groups extends APIResource {
195
208
  body: GroupUpdateParams,
196
209
  options?: RequestOptions,
197
210
  ): APIPromise<GroupUpdateResponse> {
198
- return this._client.post(path`/organization/groups/${groupID}`, {
199
- body,
200
- ...options,
201
- __security: { adminAPIKeyAuth: true },
202
- });
211
+ return this._client.post(
212
+ path`/organization/groups/${groupID}`,
213
+ resolveResourceRequestOptions(options, (options) => ({
214
+ body,
215
+ ...options,
216
+ __security: { adminAPIKeyAuth: true },
217
+ })),
218
+ );
203
219
  }
204
220
 
205
221
  /**
@@ -309,11 +325,15 @@ export class Groups extends APIResource {
309
325
  query = {};
310
326
  }
311
327
  query = query as GroupListParams | null | undefined;
312
- return this._client.getAPIList('/organization/groups', NextCursorPage<Group>, {
313
- query,
314
- ...options,
315
- __security: { adminAPIKeyAuth: true },
316
- });
328
+ return this._client.getAPIList(
329
+ '/organization/groups',
330
+ NextCursorPage<Group>,
331
+ resolveResourceRequestOptions(options, (options) => ({
332
+ query,
333
+ ...options,
334
+ __security: { adminAPIKeyAuth: true },
335
+ })),
336
+ );
317
337
  }
318
338
 
319
339
  /**
@@ -327,10 +347,13 @@ export class Groups extends APIResource {
327
347
  * ```
328
348
  */
329
349
  delete(groupID: string, options?: RequestOptions): APIPromise<GroupDeleteResponse> {
330
- return this._client.delete(path`/organization/groups/${groupID}`, {
331
- ...options,
332
- __security: { adminAPIKeyAuth: true },
333
- });
350
+ return this._client.delete(
351
+ path`/organization/groups/${groupID}`,
352
+ resolveResourceRequestOptions(options, (options) => ({
353
+ ...options,
354
+ __security: { adminAPIKeyAuth: true },
355
+ })),
356
+ );
334
357
  }
335
358
  }
336
359
 
@@ -7,6 +7,13 @@ import { NextCursorPage, type NextCursorPageParams, PagePromise } from '../../..
7
7
  import { RequestOptions } from '../../../../internal/request-options';
8
8
  import { path } from '../../../../internal/utils/path';
9
9
 
10
+ function resolveResourceRequestOptions(
11
+ options: RequestOptions | undefined,
12
+ buildOptions: (options: RequestOptions | undefined) => RequestOptions | Promise<RequestOptions>,
13
+ ): Promise<RequestOptions> {
14
+ return Promise.resolve(options).then(buildOptions);
15
+ }
16
+
10
17
  // Recognizable options across SDK runtime versions. Keep this independent of
11
18
  // private RequestOptions fields so older handwritten runtimes still compile.
12
19
  const normalizeRequestOptionsForQueryKeys = new Set([
@@ -128,11 +135,14 @@ export class Roles extends APIResource {
128
135
  * ```
129
136
  */
130
137
  create(groupID: string, body: RoleCreateParams, options?: RequestOptions): APIPromise<RoleCreateResponse> {
131
- return this._client.post(path`/organization/groups/${groupID}/roles`, {
132
- body,
133
- ...options,
134
- __security: { adminAPIKeyAuth: true },
135
- });
138
+ return this._client.post(
139
+ path`/organization/groups/${groupID}/roles`,
140
+ resolveResourceRequestOptions(options, (options) => ({
141
+ body,
142
+ ...options,
143
+ __security: { adminAPIKeyAuth: true },
144
+ })),
145
+ );
136
146
  }
137
147
 
138
148
  /**
@@ -153,10 +163,13 @@ export class Roles extends APIResource {
153
163
  options?: RequestOptions,
154
164
  ): APIPromise<RoleRetrieveResponse> {
155
165
  const { group_id } = params;
156
- return this._client.get(path`/organization/groups/${group_id}/roles/${roleID}`, {
157
- ...options,
158
- __security: { adminAPIKeyAuth: true },
159
- });
166
+ return this._client.get(
167
+ path`/organization/groups/${group_id}/roles/${roleID}`,
168
+ resolveResourceRequestOptions(options, (options) => ({
169
+ ...options,
170
+ __security: { adminAPIKeyAuth: true },
171
+ })),
172
+ );
160
173
  }
161
174
 
162
175
  /**
@@ -274,7 +287,11 @@ export class Roles extends APIResource {
274
287
  return this._client.getAPIList(
275
288
  path`/organization/groups/${groupID}/roles`,
276
289
  NextCursorPage<RoleListResponse>,
277
- { query, ...options, __security: { adminAPIKeyAuth: true } },
290
+ resolveResourceRequestOptions(options, (options) => ({
291
+ query,
292
+ ...options,
293
+ __security: { adminAPIKeyAuth: true },
294
+ })),
278
295
  );
279
296
  }
280
297
 
@@ -292,10 +309,13 @@ export class Roles extends APIResource {
292
309
  */
293
310
  delete(roleID: string, params: RoleDeleteParams, options?: RequestOptions): APIPromise<RoleDeleteResponse> {
294
311
  const { group_id } = params;
295
- return this._client.delete(path`/organization/groups/${group_id}/roles/${roleID}`, {
296
- ...options,
297
- __security: { adminAPIKeyAuth: true },
298
- });
312
+ return this._client.delete(
313
+ path`/organization/groups/${group_id}/roles/${roleID}`,
314
+ resolveResourceRequestOptions(options, (options) => ({
315
+ ...options,
316
+ __security: { adminAPIKeyAuth: true },
317
+ })),
318
+ );
299
319
  }
300
320
  }
301
321
 
@@ -6,6 +6,13 @@ import { NextCursorPage, type NextCursorPageParams, PagePromise } from '../../..
6
6
  import { RequestOptions } from '../../../../internal/request-options';
7
7
  import { path } from '../../../../internal/utils/path';
8
8
 
9
+ function resolveResourceRequestOptions(
10
+ options: RequestOptions | undefined,
11
+ buildOptions: (options: RequestOptions | undefined) => RequestOptions | Promise<RequestOptions>,
12
+ ): Promise<RequestOptions> {
13
+ return Promise.resolve(options).then(buildOptions);
14
+ }
15
+
9
16
  // Recognizable options across SDK runtime versions. Keep this independent of
10
17
  // private RequestOptions fields so older handwritten runtimes still compile.
11
18
  const normalizeRequestOptionsForQueryKeys = new Set([
@@ -127,11 +134,14 @@ export class Users extends APIResource {
127
134
  * ```
128
135
  */
129
136
  create(groupID: string, body: UserCreateParams, options?: RequestOptions): APIPromise<UserCreateResponse> {
130
- return this._client.post(path`/organization/groups/${groupID}/users`, {
131
- body,
132
- ...options,
133
- __security: { adminAPIKeyAuth: true },
134
- });
137
+ return this._client.post(
138
+ path`/organization/groups/${groupID}/users`,
139
+ resolveResourceRequestOptions(options, (options) => ({
140
+ body,
141
+ ...options,
142
+ __security: { adminAPIKeyAuth: true },
143
+ })),
144
+ );
135
145
  }
136
146
 
137
147
  /**
@@ -152,10 +162,13 @@ export class Users extends APIResource {
152
162
  options?: RequestOptions,
153
163
  ): APIPromise<UserRetrieveResponse> {
154
164
  const { group_id } = params;
155
- return this._client.get(path`/organization/groups/${group_id}/users/${userID}`, {
156
- ...options,
157
- __security: { adminAPIKeyAuth: true },
158
- });
165
+ return this._client.get(
166
+ path`/organization/groups/${group_id}/users/${userID}`,
167
+ resolveResourceRequestOptions(options, (options) => ({
168
+ ...options,
169
+ __security: { adminAPIKeyAuth: true },
170
+ })),
171
+ );
159
172
  }
160
173
 
161
174
  /**
@@ -273,7 +286,11 @@ export class Users extends APIResource {
273
286
  return this._client.getAPIList(
274
287
  path`/organization/groups/${groupID}/users`,
275
288
  NextCursorPage<OrganizationGroupUser>,
276
- { query, ...options, __security: { adminAPIKeyAuth: true } },
289
+ resolveResourceRequestOptions(options, (options) => ({
290
+ query,
291
+ ...options,
292
+ __security: { adminAPIKeyAuth: true },
293
+ })),
277
294
  );
278
295
  }
279
296
 
@@ -291,10 +308,13 @@ export class Users extends APIResource {
291
308
  */
292
309
  delete(userID: string, params: UserDeleteParams, options?: RequestOptions): APIPromise<UserDeleteResponse> {
293
310
  const { group_id } = params;
294
- return this._client.delete(path`/organization/groups/${group_id}/users/${userID}`, {
295
- ...options,
296
- __security: { adminAPIKeyAuth: true },
297
- });
311
+ return this._client.delete(
312
+ path`/organization/groups/${group_id}/users/${userID}`,
313
+ resolveResourceRequestOptions(options, (options) => ({
314
+ ...options,
315
+ __security: { adminAPIKeyAuth: true },
316
+ })),
317
+ );
298
318
  }
299
319
  }
300
320
 
@@ -10,6 +10,13 @@ import {
10
10
  import { RequestOptions } from '../../../internal/request-options';
11
11
  import { path } from '../../../internal/utils/path';
12
12
 
13
+ function resolveResourceRequestOptions(
14
+ options: RequestOptions | undefined,
15
+ buildOptions: (options: RequestOptions | undefined) => RequestOptions | Promise<RequestOptions>,
16
+ ): Promise<RequestOptions> {
17
+ return Promise.resolve(options).then(buildOptions);
18
+ }
19
+
13
20
  // Recognizable options across SDK runtime versions. Keep this independent of
14
21
  // private RequestOptions fields so older handwritten runtimes still compile.
15
22
  const normalizeRequestOptionsForQueryKeys = new Set([
@@ -132,11 +139,14 @@ export class Invites extends APIResource {
132
139
  * ```
133
140
  */
134
141
  create(body: InviteCreateParams, options?: RequestOptions): APIPromise<Invite> {
135
- return this._client.post('/organization/invites', {
136
- body,
137
- ...options,
138
- __security: { adminAPIKeyAuth: true },
139
- });
142
+ return this._client.post(
143
+ '/organization/invites',
144
+ resolveResourceRequestOptions(options, (options) => ({
145
+ body,
146
+ ...options,
147
+ __security: { adminAPIKeyAuth: true },
148
+ })),
149
+ );
140
150
  }
141
151
 
142
152
  /**
@@ -151,10 +161,13 @@ export class Invites extends APIResource {
151
161
  * ```
152
162
  */
153
163
  retrieve(inviteID: string, options?: RequestOptions): APIPromise<Invite> {
154
- return this._client.get(path`/organization/invites/${inviteID}`, {
155
- ...options,
156
- __security: { adminAPIKeyAuth: true },
157
- });
164
+ return this._client.get(
165
+ path`/organization/invites/${inviteID}`,
166
+ resolveResourceRequestOptions(options, (options) => ({
167
+ ...options,
168
+ __security: { adminAPIKeyAuth: true },
169
+ })),
170
+ );
158
171
  }
159
172
 
160
173
  /**
@@ -264,11 +277,15 @@ export class Invites extends APIResource {
264
277
  query = {};
265
278
  }
266
279
  query = query as InviteListParams | null | undefined;
267
- return this._client.getAPIList('/organization/invites', ConversationCursorPage<Invite>, {
268
- query,
269
- ...options,
270
- __security: { adminAPIKeyAuth: true },
271
- });
280
+ return this._client.getAPIList(
281
+ '/organization/invites',
282
+ ConversationCursorPage<Invite>,
283
+ resolveResourceRequestOptions(options, (options) => ({
284
+ query,
285
+ ...options,
286
+ __security: { adminAPIKeyAuth: true },
287
+ })),
288
+ );
272
289
  }
273
290
 
274
291
  /**
@@ -283,10 +300,13 @@ export class Invites extends APIResource {
283
300
  * ```
284
301
  */
285
302
  delete(inviteID: string, options?: RequestOptions): APIPromise<InviteDeleteResponse> {
286
- return this._client.delete(path`/organization/invites/${inviteID}`, {
287
- ...options,
288
- __security: { adminAPIKeyAuth: true },
289
- });
303
+ return this._client.delete(
304
+ path`/organization/invites/${inviteID}`,
305
+ resolveResourceRequestOptions(options, (options) => ({
306
+ ...options,
307
+ __security: { adminAPIKeyAuth: true },
308
+ })),
309
+ );
290
310
  }
291
311
  }
292
312
 
@@ -139,7 +139,6 @@ import {
139
139
  } from './users/users';
140
140
 
141
141
  export class Organization extends APIResource {
142
- externalStorage: ExternalStorageAPI.ExternalStorage = new ExternalStorageAPI.ExternalStorage(this._client);
143
142
  auditLogs: AuditLogsAPI.AuditLogs = new AuditLogsAPI.AuditLogs(this._client);
144
143
  adminAPIKeys: AdminAPIKeysAPI.AdminAPIKeys = new AdminAPIKeysAPI.AdminAPIKeys(this._client);
145
144
  usage: UsageAPI.Usage = new UsageAPI.Usage(this._client);
@@ -148,13 +147,13 @@ export class Organization extends APIResource {
148
147
  groups: GroupsAPI.Groups = new GroupsAPI.Groups(this._client);
149
148
  roles: RolesAPI.Roles = new RolesAPI.Roles(this._client);
150
149
  dataRetention: DataRetentionAPI.DataRetention = new DataRetentionAPI.DataRetention(this._client);
150
+ externalStorage: ExternalStorageAPI.ExternalStorage = new ExternalStorageAPI.ExternalStorage(this._client);
151
151
  spendLimit: SpendLimitAPI.SpendLimit = new SpendLimitAPI.SpendLimit(this._client);
152
152
  spendAlerts: SpendAlertsAPI.SpendAlerts = new SpendAlertsAPI.SpendAlerts(this._client);
153
153
  certificates: CertificatesAPI.Certificates = new CertificatesAPI.Certificates(this._client);
154
154
  projects: ProjectsAPI.Projects = new ProjectsAPI.Projects(this._client);
155
155
  }
156
156
 
157
- Organization.ExternalStorage = ExternalStorage;
158
157
  Organization.AuditLogs = AuditLogs;
159
158
  Organization.AdminAPIKeys = AdminAPIKeys;
160
159
  Organization.Usage = Usage;
@@ -163,23 +162,13 @@ Organization.Users = Users;
163
162
  Organization.Groups = Groups;
164
163
  Organization.Roles = Roles;
165
164
  Organization.DataRetention = DataRetention;
165
+ Organization.ExternalStorage = ExternalStorage;
166
166
  Organization.SpendLimit = SpendLimit;
167
167
  Organization.SpendAlerts = SpendAlerts;
168
168
  Organization.Certificates = Certificates;
169
169
  Organization.Projects = Projects;
170
170
 
171
171
  export declare namespace Organization {
172
- export {
173
- ExternalStorage as ExternalStorage,
174
- type AwsExternalStorageProvider as AwsExternalStorageProvider,
175
- type AzureExternalStorageProvider as AzureExternalStorageProvider,
176
- type ExternalStorageConfiguration as ExternalStorageConfiguration,
177
- type ExternalStorageDeleted as ExternalStorageDeleted,
178
- type ExternalStorageConfigurationsPage as ExternalStorageConfigurationsPage,
179
- type ExternalStorageCreateParams as ExternalStorageCreateParams,
180
- type ExternalStorageListParams as ExternalStorageListParams,
181
- };
182
-
183
172
  export {
184
173
  AuditLogs as AuditLogs,
185
174
  type AuditLogListResponse as AuditLogListResponse,
@@ -269,6 +258,17 @@ export declare namespace Organization {
269
258
  type DataRetentionUpdateParams as DataRetentionUpdateParams,
270
259
  };
271
260
 
261
+ export {
262
+ ExternalStorage as ExternalStorage,
263
+ type AwsExternalStorageProvider as AwsExternalStorageProvider,
264
+ type AzureExternalStorageProvider as AzureExternalStorageProvider,
265
+ type ExternalStorageConfiguration as ExternalStorageConfiguration,
266
+ type ExternalStorageDeleted as ExternalStorageDeleted,
267
+ type ExternalStorageConfigurationsPage as ExternalStorageConfigurationsPage,
268
+ type ExternalStorageCreateParams as ExternalStorageCreateParams,
269
+ type ExternalStorageListParams as ExternalStorageListParams,
270
+ };
271
+
272
272
  export {
273
273
  SpendLimit as SpendLimit,
274
274
  type OrganizationSpendLimit as OrganizationSpendLimit,
@@ -10,6 +10,13 @@ import {
10
10
  import { RequestOptions } from '../../../../internal/request-options';
11
11
  import { path } from '../../../../internal/utils/path';
12
12
 
13
+ function resolveResourceRequestOptions(
14
+ options: RequestOptions | undefined,
15
+ buildOptions: (options: RequestOptions | undefined) => RequestOptions | Promise<RequestOptions>,
16
+ ): Promise<RequestOptions> {
17
+ return Promise.resolve(options).then(buildOptions);
18
+ }
19
+
13
20
  // Recognizable options across SDK runtime versions. Keep this independent of
14
21
  // private RequestOptions fields so older handwritten runtimes still compile.
15
22
  const normalizeRequestOptionsForQueryKeys = new Set([
@@ -136,10 +143,13 @@ export class APIKeys extends APIResource {
136
143
  options?: RequestOptions,
137
144
  ): APIPromise<ProjectAPIKey> {
138
145
  const { project_id } = params;
139
- return this._client.get(path`/organization/projects/${project_id}/api_keys/${apiKeyID}`, {
140
- ...options,
141
- __security: { adminAPIKeyAuth: true },
142
- });
146
+ return this._client.get(
147
+ path`/organization/projects/${project_id}/api_keys/${apiKeyID}`,
148
+ resolveResourceRequestOptions(options, (options) => ({
149
+ ...options,
150
+ __security: { adminAPIKeyAuth: true },
151
+ })),
152
+ );
143
153
  }
144
154
 
145
155
  /**
@@ -257,7 +267,11 @@ export class APIKeys extends APIResource {
257
267
  return this._client.getAPIList(
258
268
  path`/organization/projects/${projectID}/api_keys`,
259
269
  ConversationCursorPage<ProjectAPIKey>,
260
- { query, ...options, __security: { adminAPIKeyAuth: true } },
270
+ resolveResourceRequestOptions(options, (options) => ({
271
+ query,
272
+ ...options,
273
+ __security: { adminAPIKeyAuth: true },
274
+ })),
261
275
  );
262
276
  }
263
277
 
@@ -282,10 +296,13 @@ export class APIKeys extends APIResource {
282
296
  options?: RequestOptions,
283
297
  ): APIPromise<APIKeyDeleteResponse> {
284
298
  const { project_id } = params;
285
- return this._client.delete(path`/organization/projects/${project_id}/api_keys/${apiKeyID}`, {
286
- ...options,
287
- __security: { adminAPIKeyAuth: true },
288
- });
299
+ return this._client.delete(
300
+ path`/organization/projects/${project_id}/api_keys/${apiKeyID}`,
301
+ resolveResourceRequestOptions(options, (options) => ({
302
+ ...options,
303
+ __security: { adminAPIKeyAuth: true },
304
+ })),
305
+ );
289
306
  }
290
307
  }
291
308