openai 7.19.0 → 7.20.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 (565) hide show
  1. package/CHANGELOG.md +16 -0
  2. package/package.json +1 -1
  3. package/resources/admin/organization/admin-api-keys.d.mts +8 -1
  4. package/resources/admin/organization/admin-api-keys.d.mts.map +1 -1
  5. package/resources/admin/organization/admin-api-keys.d.ts +8 -1
  6. package/resources/admin/organization/admin-api-keys.d.ts.map +1 -1
  7. package/resources/admin/organization/admin-api-keys.js +58 -11
  8. package/resources/admin/organization/admin-api-keys.js.map +1 -1
  9. package/resources/admin/organization/admin-api-keys.mjs +58 -11
  10. package/resources/admin/organization/admin-api-keys.mjs.map +1 -1
  11. package/resources/admin/organization/audit-logs.d.mts +56 -3
  12. package/resources/admin/organization/audit-logs.d.mts.map +1 -1
  13. package/resources/admin/organization/audit-logs.d.ts +56 -3
  14. package/resources/admin/organization/audit-logs.d.ts.map +1 -1
  15. package/resources/admin/organization/audit-logs.js +69 -11
  16. package/resources/admin/organization/audit-logs.js.map +1 -1
  17. package/resources/admin/organization/audit-logs.mjs +69 -11
  18. package/resources/admin/organization/audit-logs.mjs.map +1 -1
  19. package/resources/admin/organization/certificates.d.mts +16 -2
  20. package/resources/admin/organization/certificates.d.mts.map +1 -1
  21. package/resources/admin/organization/certificates.d.ts +16 -2
  22. package/resources/admin/organization/certificates.d.ts.map +1 -1
  23. package/resources/admin/organization/certificates.js +64 -24
  24. package/resources/admin/organization/certificates.js.map +1 -1
  25. package/resources/admin/organization/certificates.mjs +64 -24
  26. package/resources/admin/organization/certificates.mjs.map +1 -1
  27. package/resources/admin/organization/external-storage.d.mts +141 -0
  28. package/resources/admin/organization/external-storage.d.mts.map +1 -0
  29. package/resources/admin/organization/external-storage.d.ts +141 -0
  30. package/resources/admin/organization/external-storage.d.ts.map +1 -0
  31. package/resources/admin/organization/external-storage.js +146 -0
  32. package/resources/admin/organization/external-storage.js.map +1 -0
  33. package/resources/admin/organization/external-storage.mjs +142 -0
  34. package/resources/admin/organization/external-storage.mjs.map +1 -0
  35. package/resources/admin/organization/groups/groups.d.mts +8 -1
  36. package/resources/admin/organization/groups/groups.d.mts.map +1 -1
  37. package/resources/admin/organization/groups/groups.d.ts +8 -1
  38. package/resources/admin/organization/groups/groups.d.ts.map +1 -1
  39. package/resources/admin/organization/groups/groups.js +58 -11
  40. package/resources/admin/organization/groups/groups.js.map +1 -1
  41. package/resources/admin/organization/groups/groups.mjs +58 -11
  42. package/resources/admin/organization/groups/groups.mjs.map +1 -1
  43. package/resources/admin/organization/groups/roles.d.mts +8 -1
  44. package/resources/admin/organization/groups/roles.d.mts.map +1 -1
  45. package/resources/admin/organization/groups/roles.d.ts +8 -1
  46. package/resources/admin/organization/groups/roles.d.ts.map +1 -1
  47. package/resources/admin/organization/groups/roles.js +58 -13
  48. package/resources/admin/organization/groups/roles.js.map +1 -1
  49. package/resources/admin/organization/groups/roles.mjs +58 -13
  50. package/resources/admin/organization/groups/roles.mjs.map +1 -1
  51. package/resources/admin/organization/groups/users.d.mts +8 -1
  52. package/resources/admin/organization/groups/users.d.mts.map +1 -1
  53. package/resources/admin/organization/groups/users.d.ts +8 -1
  54. package/resources/admin/organization/groups/users.d.ts.map +1 -1
  55. package/resources/admin/organization/groups/users.js +58 -13
  56. package/resources/admin/organization/groups/users.js.map +1 -1
  57. package/resources/admin/organization/groups/users.mjs +58 -13
  58. package/resources/admin/organization/groups/users.mjs.map +1 -1
  59. package/resources/admin/organization/index.d.mts +1 -0
  60. package/resources/admin/organization/index.d.mts.map +1 -1
  61. package/resources/admin/organization/index.d.ts +1 -0
  62. package/resources/admin/organization/index.d.ts.map +1 -1
  63. package/resources/admin/organization/index.js +3 -1
  64. package/resources/admin/organization/index.js.map +1 -1
  65. package/resources/admin/organization/index.mjs +1 -0
  66. package/resources/admin/organization/index.mjs.map +1 -1
  67. package/resources/admin/organization/invites.d.mts +8 -1
  68. package/resources/admin/organization/invites.d.mts.map +1 -1
  69. package/resources/admin/organization/invites.d.ts +8 -1
  70. package/resources/admin/organization/invites.d.ts.map +1 -1
  71. package/resources/admin/organization/invites.js +58 -11
  72. package/resources/admin/organization/invites.js.map +1 -1
  73. package/resources/admin/organization/invites.mjs +58 -11
  74. package/resources/admin/organization/invites.mjs.map +1 -1
  75. package/resources/admin/organization/organization.d.mts +4 -0
  76. package/resources/admin/organization/organization.d.mts.map +1 -1
  77. package/resources/admin/organization/organization.d.ts +4 -0
  78. package/resources/admin/organization/organization.d.ts.map +1 -1
  79. package/resources/admin/organization/organization.js +4 -0
  80. package/resources/admin/organization/organization.js.map +1 -1
  81. package/resources/admin/organization/organization.mjs +4 -0
  82. package/resources/admin/organization/organization.mjs.map +1 -1
  83. package/resources/admin/organization/projects/api-keys.d.mts +8 -1
  84. package/resources/admin/organization/projects/api-keys.d.mts.map +1 -1
  85. package/resources/admin/organization/projects/api-keys.d.ts +8 -1
  86. package/resources/admin/organization/projects/api-keys.d.ts.map +1 -1
  87. package/resources/admin/organization/projects/api-keys.js +58 -13
  88. package/resources/admin/organization/projects/api-keys.js.map +1 -1
  89. package/resources/admin/organization/projects/api-keys.mjs +58 -13
  90. package/resources/admin/organization/projects/api-keys.mjs.map +1 -1
  91. package/resources/admin/organization/projects/certificates.d.mts +8 -1
  92. package/resources/admin/organization/projects/certificates.d.mts.map +1 -1
  93. package/resources/admin/organization/projects/certificates.d.ts +8 -1
  94. package/resources/admin/organization/projects/certificates.d.ts.map +1 -1
  95. package/resources/admin/organization/projects/certificates.js +58 -13
  96. package/resources/admin/organization/projects/certificates.js.map +1 -1
  97. package/resources/admin/organization/projects/certificates.mjs +58 -13
  98. package/resources/admin/organization/projects/certificates.mjs.map +1 -1
  99. package/resources/admin/organization/projects/groups/groups.d.mts +8 -1
  100. package/resources/admin/organization/projects/groups/groups.d.mts.map +1 -1
  101. package/resources/admin/organization/projects/groups/groups.d.ts +8 -1
  102. package/resources/admin/organization/projects/groups/groups.d.ts.map +1 -1
  103. package/resources/admin/organization/projects/groups/groups.js +58 -13
  104. package/resources/admin/organization/projects/groups/groups.js.map +1 -1
  105. package/resources/admin/organization/projects/groups/groups.mjs +58 -13
  106. package/resources/admin/organization/projects/groups/groups.mjs.map +1 -1
  107. package/resources/admin/organization/projects/projects.d.mts +8 -1
  108. package/resources/admin/organization/projects/projects.d.mts.map +1 -1
  109. package/resources/admin/organization/projects/projects.d.ts +8 -1
  110. package/resources/admin/organization/projects/projects.d.ts.map +1 -1
  111. package/resources/admin/organization/projects/projects.js +58 -11
  112. package/resources/admin/organization/projects/projects.js.map +1 -1
  113. package/resources/admin/organization/projects/projects.mjs +58 -11
  114. package/resources/admin/organization/projects/projects.mjs.map +1 -1
  115. package/resources/admin/organization/projects/rate-limits.d.mts +8 -1
  116. package/resources/admin/organization/projects/rate-limits.d.mts.map +1 -1
  117. package/resources/admin/organization/projects/rate-limits.d.ts +8 -1
  118. package/resources/admin/organization/projects/rate-limits.d.ts.map +1 -1
  119. package/resources/admin/organization/projects/rate-limits.js +58 -13
  120. package/resources/admin/organization/projects/rate-limits.js.map +1 -1
  121. package/resources/admin/organization/projects/rate-limits.mjs +58 -13
  122. package/resources/admin/organization/projects/rate-limits.mjs.map +1 -1
  123. package/resources/admin/organization/projects/roles.d.mts +8 -1
  124. package/resources/admin/organization/projects/roles.d.mts.map +1 -1
  125. package/resources/admin/organization/projects/roles.d.ts +8 -1
  126. package/resources/admin/organization/projects/roles.d.ts.map +1 -1
  127. package/resources/admin/organization/projects/roles.js +58 -13
  128. package/resources/admin/organization/projects/roles.js.map +1 -1
  129. package/resources/admin/organization/projects/roles.mjs +58 -13
  130. package/resources/admin/organization/projects/roles.mjs.map +1 -1
  131. package/resources/admin/organization/projects/service-accounts/service-accounts.d.mts +8 -1
  132. package/resources/admin/organization/projects/service-accounts/service-accounts.d.mts.map +1 -1
  133. package/resources/admin/organization/projects/service-accounts/service-accounts.d.ts +8 -1
  134. package/resources/admin/organization/projects/service-accounts/service-accounts.d.ts.map +1 -1
  135. package/resources/admin/organization/projects/service-accounts/service-accounts.js +58 -13
  136. package/resources/admin/organization/projects/service-accounts/service-accounts.js.map +1 -1
  137. package/resources/admin/organization/projects/service-accounts/service-accounts.mjs +58 -13
  138. package/resources/admin/organization/projects/service-accounts/service-accounts.mjs.map +1 -1
  139. package/resources/admin/organization/projects/spend-alerts.d.mts +8 -1
  140. package/resources/admin/organization/projects/spend-alerts.d.mts.map +1 -1
  141. package/resources/admin/organization/projects/spend-alerts.d.ts +8 -1
  142. package/resources/admin/organization/projects/spend-alerts.d.ts.map +1 -1
  143. package/resources/admin/organization/projects/spend-alerts.js +58 -13
  144. package/resources/admin/organization/projects/spend-alerts.js.map +1 -1
  145. package/resources/admin/organization/projects/spend-alerts.mjs +58 -13
  146. package/resources/admin/organization/projects/spend-alerts.mjs.map +1 -1
  147. package/resources/admin/organization/projects/users/users.d.mts +8 -1
  148. package/resources/admin/organization/projects/users/users.d.mts.map +1 -1
  149. package/resources/admin/organization/projects/users/users.d.ts +8 -1
  150. package/resources/admin/organization/projects/users/users.d.ts.map +1 -1
  151. package/resources/admin/organization/projects/users/users.js +58 -13
  152. package/resources/admin/organization/projects/users/users.js.map +1 -1
  153. package/resources/admin/organization/projects/users/users.mjs +58 -13
  154. package/resources/admin/organization/projects/users/users.mjs.map +1 -1
  155. package/resources/admin/organization/roles.d.mts +8 -1
  156. package/resources/admin/organization/roles.d.mts.map +1 -1
  157. package/resources/admin/organization/roles.d.ts +8 -1
  158. package/resources/admin/organization/roles.d.ts.map +1 -1
  159. package/resources/admin/organization/roles.js +58 -11
  160. package/resources/admin/organization/roles.js.map +1 -1
  161. package/resources/admin/organization/roles.mjs +58 -11
  162. package/resources/admin/organization/roles.mjs.map +1 -1
  163. package/resources/admin/organization/spend-alerts.d.mts +8 -1
  164. package/resources/admin/organization/spend-alerts.d.mts.map +1 -1
  165. package/resources/admin/organization/spend-alerts.d.ts +8 -1
  166. package/resources/admin/organization/spend-alerts.d.ts.map +1 -1
  167. package/resources/admin/organization/spend-alerts.js +58 -11
  168. package/resources/admin/organization/spend-alerts.js.map +1 -1
  169. package/resources/admin/organization/spend-alerts.mjs +58 -11
  170. package/resources/admin/organization/spend-alerts.mjs.map +1 -1
  171. package/resources/admin/organization/users/roles.d.mts +8 -1
  172. package/resources/admin/organization/users/roles.d.mts.map +1 -1
  173. package/resources/admin/organization/users/roles.d.ts +8 -1
  174. package/resources/admin/organization/users/roles.d.ts.map +1 -1
  175. package/resources/admin/organization/users/roles.js +58 -13
  176. package/resources/admin/organization/users/roles.js.map +1 -1
  177. package/resources/admin/organization/users/roles.mjs +58 -13
  178. package/resources/admin/organization/users/roles.mjs.map +1 -1
  179. package/resources/admin/organization/users/users.d.mts +8 -1
  180. package/resources/admin/organization/users/users.d.mts.map +1 -1
  181. package/resources/admin/organization/users/users.d.ts +8 -1
  182. package/resources/admin/organization/users/users.d.ts.map +1 -1
  183. package/resources/admin/organization/users/users.js +58 -11
  184. package/resources/admin/organization/users/users.js.map +1 -1
  185. package/resources/admin/organization/users/users.mjs +58 -11
  186. package/resources/admin/organization/users/users.mjs.map +1 -1
  187. package/resources/batches.d.mts +8 -1
  188. package/resources/batches.d.mts.map +1 -1
  189. package/resources/batches.d.ts +8 -1
  190. package/resources/batches.d.ts.map +1 -1
  191. package/resources/batches.js +58 -3
  192. package/resources/batches.js.map +1 -1
  193. package/resources/batches.mjs +58 -3
  194. package/resources/batches.mjs.map +1 -1
  195. package/resources/beta/agents/agents.d.mts +61 -43
  196. package/resources/beta/agents/agents.d.mts.map +1 -1
  197. package/resources/beta/agents/agents.d.ts +61 -43
  198. package/resources/beta/agents/agents.d.ts.map +1 -1
  199. package/resources/beta/agents/agents.js +58 -12
  200. package/resources/beta/agents/agents.js.map +1 -1
  201. package/resources/beta/agents/agents.mjs +58 -12
  202. package/resources/beta/agents/agents.mjs.map +1 -1
  203. package/resources/beta/agents/environments/templates.d.mts +22 -9
  204. package/resources/beta/agents/environments/templates.d.mts.map +1 -1
  205. package/resources/beta/agents/environments/templates.d.ts +22 -9
  206. package/resources/beta/agents/environments/templates.d.ts.map +1 -1
  207. package/resources/beta/agents/environments/templates.js +58 -12
  208. package/resources/beta/agents/environments/templates.js.map +1 -1
  209. package/resources/beta/agents/environments/templates.mjs +58 -12
  210. package/resources/beta/agents/environments/templates.mjs.map +1 -1
  211. package/resources/beta/agents/sessions/artifacts.d.mts +8 -1
  212. package/resources/beta/agents/sessions/artifacts.d.mts.map +1 -1
  213. package/resources/beta/agents/sessions/artifacts.d.ts +8 -1
  214. package/resources/beta/agents/sessions/artifacts.d.ts.map +1 -1
  215. package/resources/beta/agents/sessions/artifacts.js +58 -14
  216. package/resources/beta/agents/sessions/artifacts.js.map +1 -1
  217. package/resources/beta/agents/sessions/artifacts.mjs +58 -14
  218. package/resources/beta/agents/sessions/artifacts.mjs.map +1 -1
  219. package/resources/beta/agents/sessions/items.d.mts +8 -1
  220. package/resources/beta/agents/sessions/items.d.mts.map +1 -1
  221. package/resources/beta/agents/sessions/items.d.ts +8 -1
  222. package/resources/beta/agents/sessions/items.d.ts.map +1 -1
  223. package/resources/beta/agents/sessions/items.js +58 -15
  224. package/resources/beta/agents/sessions/items.js.map +1 -1
  225. package/resources/beta/agents/sessions/items.mjs +58 -15
  226. package/resources/beta/agents/sessions/items.mjs.map +1 -1
  227. package/resources/beta/agents/sessions/sessions.d.mts +17 -6
  228. package/resources/beta/agents/sessions/sessions.d.mts.map +1 -1
  229. package/resources/beta/agents/sessions/sessions.d.ts +17 -6
  230. package/resources/beta/agents/sessions/sessions.d.ts.map +1 -1
  231. package/resources/beta/agents/sessions/sessions.js +58 -13
  232. package/resources/beta/agents/sessions/sessions.js.map +1 -1
  233. package/resources/beta/agents/sessions/sessions.mjs +58 -13
  234. package/resources/beta/agents/sessions/sessions.mjs.map +1 -1
  235. package/resources/beta/agents/sessions/subagents/subagents.d.mts +8 -1
  236. package/resources/beta/agents/sessions/subagents/subagents.d.mts.map +1 -1
  237. package/resources/beta/agents/sessions/subagents/subagents.d.ts +8 -1
  238. package/resources/beta/agents/sessions/subagents/subagents.d.ts.map +1 -1
  239. package/resources/beta/agents/sessions/subagents/subagents.js +58 -14
  240. package/resources/beta/agents/sessions/subagents/subagents.js.map +1 -1
  241. package/resources/beta/agents/sessions/subagents/subagents.mjs +58 -14
  242. package/resources/beta/agents/sessions/subagents/subagents.mjs.map +1 -1
  243. package/resources/beta/agents/sessions/turns.d.mts +11 -3
  244. package/resources/beta/agents/sessions/turns.d.mts.map +1 -1
  245. package/resources/beta/agents/sessions/turns.d.ts +11 -3
  246. package/resources/beta/agents/sessions/turns.d.ts.map +1 -1
  247. package/resources/beta/agents/sessions/turns.js +58 -15
  248. package/resources/beta/agents/sessions/turns.js.map +1 -1
  249. package/resources/beta/agents/sessions/turns.mjs +58 -15
  250. package/resources/beta/agents/sessions/turns.mjs.map +1 -1
  251. package/resources/beta/agents/vaults/credentials.d.mts +163 -23
  252. package/resources/beta/agents/vaults/credentials.d.mts.map +1 -1
  253. package/resources/beta/agents/vaults/credentials.d.ts +163 -23
  254. package/resources/beta/agents/vaults/credentials.d.ts.map +1 -1
  255. package/resources/beta/agents/vaults/credentials.js +58 -15
  256. package/resources/beta/agents/vaults/credentials.js.map +1 -1
  257. package/resources/beta/agents/vaults/credentials.mjs +58 -15
  258. package/resources/beta/agents/vaults/credentials.mjs.map +1 -1
  259. package/resources/beta/agents/vaults/index.d.mts +1 -1
  260. package/resources/beta/agents/vaults/index.d.mts.map +1 -1
  261. package/resources/beta/agents/vaults/index.d.ts +1 -1
  262. package/resources/beta/agents/vaults/index.d.ts.map +1 -1
  263. package/resources/beta/agents/vaults/index.js.map +1 -1
  264. package/resources/beta/agents/vaults/index.mjs.map +1 -1
  265. package/resources/beta/agents/vaults/vaults.d.mts +11 -5
  266. package/resources/beta/agents/vaults/vaults.d.mts.map +1 -1
  267. package/resources/beta/agents/vaults/vaults.d.ts +11 -5
  268. package/resources/beta/agents/vaults/vaults.d.ts.map +1 -1
  269. package/resources/beta/agents/vaults/vaults.js +58 -12
  270. package/resources/beta/agents/vaults/vaults.js.map +1 -1
  271. package/resources/beta/agents/vaults/vaults.mjs +58 -12
  272. package/resources/beta/agents/vaults/vaults.mjs.map +1 -1
  273. package/resources/beta/assistants.d.mts +8 -1
  274. package/resources/beta/assistants.d.mts.map +1 -1
  275. package/resources/beta/assistants.d.ts +8 -1
  276. package/resources/beta/assistants.d.ts.map +1 -1
  277. package/resources/beta/assistants.js +58 -5
  278. package/resources/beta/assistants.js.map +1 -1
  279. package/resources/beta/assistants.mjs +58 -5
  280. package/resources/beta/assistants.mjs.map +1 -1
  281. package/resources/beta/chatkit/threads.d.mts +16 -2
  282. package/resources/beta/chatkit/threads.d.mts.map +1 -1
  283. package/resources/beta/chatkit/threads.d.ts +16 -2
  284. package/resources/beta/chatkit/threads.d.ts.map +1 -1
  285. package/resources/beta/chatkit/threads.js +64 -24
  286. package/resources/beta/chatkit/threads.js.map +1 -1
  287. package/resources/beta/chatkit/threads.mjs +64 -24
  288. package/resources/beta/chatkit/threads.mjs.map +1 -1
  289. package/resources/beta/responses/responses.d.mts +4 -5
  290. package/resources/beta/responses/responses.d.mts.map +1 -1
  291. package/resources/beta/responses/responses.d.ts +4 -5
  292. package/resources/beta/responses/responses.d.ts.map +1 -1
  293. package/resources/beta/responses/responses.js.map +1 -1
  294. package/resources/beta/responses/responses.mjs.map +1 -1
  295. package/resources/beta/threads/messages.d.mts +8 -1
  296. package/resources/beta/threads/messages.d.mts.map +1 -1
  297. package/resources/beta/threads/messages.d.ts +8 -1
  298. package/resources/beta/threads/messages.d.ts.map +1 -1
  299. package/resources/beta/threads/messages.js +58 -5
  300. package/resources/beta/threads/messages.js.map +1 -1
  301. package/resources/beta/threads/messages.mjs +58 -5
  302. package/resources/beta/threads/messages.mjs.map +1 -1
  303. package/resources/beta/threads/runs/runs.d.mts +8 -1
  304. package/resources/beta/threads/runs/runs.d.mts.map +1 -1
  305. package/resources/beta/threads/runs/runs.d.ts +8 -1
  306. package/resources/beta/threads/runs/runs.d.ts.map +1 -1
  307. package/resources/beta/threads/runs/runs.js +58 -5
  308. package/resources/beta/threads/runs/runs.js.map +1 -1
  309. package/resources/beta/threads/runs/runs.mjs +58 -5
  310. package/resources/beta/threads/runs/runs.mjs.map +1 -1
  311. package/resources/chat/completions/completions.d.mts +13 -3
  312. package/resources/chat/completions/completions.d.mts.map +1 -1
  313. package/resources/chat/completions/completions.d.ts +13 -3
  314. package/resources/chat/completions/completions.d.ts.map +1 -1
  315. package/resources/chat/completions/completions.js +58 -12
  316. package/resources/chat/completions/completions.js.map +1 -1
  317. package/resources/chat/completions/completions.mjs +58 -12
  318. package/resources/chat/completions/completions.mjs.map +1 -1
  319. package/resources/chat/completions/messages.d.mts +8 -1
  320. package/resources/chat/completions/messages.d.mts.map +1 -1
  321. package/resources/chat/completions/messages.d.ts +8 -1
  322. package/resources/chat/completions/messages.d.ts.map +1 -1
  323. package/resources/chat/completions/messages.js +58 -14
  324. package/resources/chat/completions/messages.js.map +1 -1
  325. package/resources/chat/completions/messages.mjs +58 -14
  326. package/resources/chat/completions/messages.mjs.map +1 -1
  327. package/resources/containers/containers.d.mts +8 -1
  328. package/resources/containers/containers.d.mts.map +1 -1
  329. package/resources/containers/containers.d.ts +8 -1
  330. package/resources/containers/containers.d.ts.map +1 -1
  331. package/resources/containers/containers.js +58 -3
  332. package/resources/containers/containers.js.map +1 -1
  333. package/resources/containers/containers.mjs +58 -3
  334. package/resources/containers/containers.mjs.map +1 -1
  335. package/resources/containers/files/files.d.mts +8 -1
  336. package/resources/containers/files/files.d.mts.map +1 -1
  337. package/resources/containers/files/files.d.ts +8 -1
  338. package/resources/containers/files/files.d.ts.map +1 -1
  339. package/resources/containers/files/files.js +58 -3
  340. package/resources/containers/files/files.js.map +1 -1
  341. package/resources/containers/files/files.mjs +58 -3
  342. package/resources/containers/files/files.mjs.map +1 -1
  343. package/resources/conversations/conversations.d.mts +3 -4
  344. package/resources/conversations/conversations.d.mts.map +1 -1
  345. package/resources/conversations/conversations.d.ts +3 -4
  346. package/resources/conversations/conversations.d.ts.map +1 -1
  347. package/resources/conversations/conversations.js.map +1 -1
  348. package/resources/conversations/conversations.mjs.map +1 -1
  349. package/resources/conversations/items.d.mts +8 -1
  350. package/resources/conversations/items.d.mts.map +1 -1
  351. package/resources/conversations/items.d.ts +8 -1
  352. package/resources/conversations/items.d.ts.map +1 -1
  353. package/resources/conversations/items.js +58 -3
  354. package/resources/conversations/items.js.map +1 -1
  355. package/resources/conversations/items.mjs +58 -3
  356. package/resources/conversations/items.mjs.map +1 -1
  357. package/resources/evals/evals.d.mts +8 -1
  358. package/resources/evals/evals.d.mts.map +1 -1
  359. package/resources/evals/evals.d.ts +8 -1
  360. package/resources/evals/evals.d.ts.map +1 -1
  361. package/resources/evals/evals.js +58 -3
  362. package/resources/evals/evals.js.map +1 -1
  363. package/resources/evals/evals.mjs +58 -3
  364. package/resources/evals/evals.mjs.map +1 -1
  365. package/resources/evals/runs/runs.d.mts +8 -1
  366. package/resources/evals/runs/runs.d.mts.map +1 -1
  367. package/resources/evals/runs/runs.d.ts +8 -1
  368. package/resources/evals/runs/runs.d.ts.map +1 -1
  369. package/resources/evals/runs/runs.js +58 -3
  370. package/resources/evals/runs/runs.js.map +1 -1
  371. package/resources/evals/runs/runs.mjs +58 -3
  372. package/resources/evals/runs/runs.mjs.map +1 -1
  373. package/resources/files.d.mts +8 -1
  374. package/resources/files.d.mts.map +1 -1
  375. package/resources/files.d.ts +8 -1
  376. package/resources/files.d.ts.map +1 -1
  377. package/resources/files.js +58 -3
  378. package/resources/files.js.map +1 -1
  379. package/resources/files.mjs +58 -3
  380. package/resources/files.mjs.map +1 -1
  381. package/resources/fine-tuning/checkpoints/permissions.d.mts +16 -2
  382. package/resources/fine-tuning/checkpoints/permissions.d.mts.map +1 -1
  383. package/resources/fine-tuning/checkpoints/permissions.d.ts +16 -2
  384. package/resources/fine-tuning/checkpoints/permissions.d.ts.map +1 -1
  385. package/resources/fine-tuning/checkpoints/permissions.js +64 -26
  386. package/resources/fine-tuning/checkpoints/permissions.js.map +1 -1
  387. package/resources/fine-tuning/checkpoints/permissions.mjs +64 -26
  388. package/resources/fine-tuning/checkpoints/permissions.mjs.map +1 -1
  389. package/resources/fine-tuning/jobs/checkpoints.d.mts +8 -1
  390. package/resources/fine-tuning/jobs/checkpoints.d.mts.map +1 -1
  391. package/resources/fine-tuning/jobs/checkpoints.d.ts +8 -1
  392. package/resources/fine-tuning/jobs/checkpoints.d.ts.map +1 -1
  393. package/resources/fine-tuning/jobs/checkpoints.js +58 -13
  394. package/resources/fine-tuning/jobs/checkpoints.js.map +1 -1
  395. package/resources/fine-tuning/jobs/checkpoints.mjs +58 -13
  396. package/resources/fine-tuning/jobs/checkpoints.mjs.map +1 -1
  397. package/resources/fine-tuning/jobs/jobs.d.mts +16 -2
  398. package/resources/fine-tuning/jobs/jobs.d.mts.map +1 -1
  399. package/resources/fine-tuning/jobs/jobs.d.ts +16 -2
  400. package/resources/fine-tuning/jobs/jobs.d.ts.map +1 -1
  401. package/resources/fine-tuning/jobs/jobs.js +64 -24
  402. package/resources/fine-tuning/jobs/jobs.js.map +1 -1
  403. package/resources/fine-tuning/jobs/jobs.mjs +64 -24
  404. package/resources/fine-tuning/jobs/jobs.mjs.map +1 -1
  405. package/resources/images.d.mts +3 -4
  406. package/resources/images.d.mts.map +1 -1
  407. package/resources/images.d.ts +3 -4
  408. package/resources/images.d.ts.map +1 -1
  409. package/resources/responses/input-items.d.mts +8 -1
  410. package/resources/responses/input-items.d.mts.map +1 -1
  411. package/resources/responses/input-items.d.ts +8 -1
  412. package/resources/responses/input-items.d.ts.map +1 -1
  413. package/resources/responses/input-items.js +58 -13
  414. package/resources/responses/input-items.js.map +1 -1
  415. package/resources/responses/input-items.mjs +58 -13
  416. package/resources/responses/input-items.mjs.map +1 -1
  417. package/resources/responses/responses.d.mts +18 -8
  418. package/resources/responses/responses.d.mts.map +1 -1
  419. package/resources/responses/responses.d.ts +18 -8
  420. package/resources/responses/responses.d.ts.map +1 -1
  421. package/resources/responses/responses.js +58 -0
  422. package/resources/responses/responses.js.map +1 -1
  423. package/resources/responses/responses.mjs +58 -0
  424. package/resources/responses/responses.mjs.map +1 -1
  425. package/resources/safety/cases.d.mts +26 -0
  426. package/resources/safety/cases.d.mts.map +1 -0
  427. package/resources/safety/cases.d.ts +26 -0
  428. package/resources/safety/cases.d.ts.map +1 -0
  429. package/resources/safety/cases.js +16 -0
  430. package/resources/safety/cases.js.map +1 -0
  431. package/resources/safety/cases.mjs +12 -0
  432. package/resources/safety/cases.mjs.map +1 -0
  433. package/resources/safety/index.d.mts +1 -0
  434. package/resources/safety/index.d.mts.map +1 -1
  435. package/resources/safety/index.d.ts +1 -0
  436. package/resources/safety/index.d.ts.map +1 -1
  437. package/resources/safety/index.js +3 -1
  438. package/resources/safety/index.js.map +1 -1
  439. package/resources/safety/index.mjs +1 -0
  440. package/resources/safety/index.mjs.map +1 -1
  441. package/resources/safety/safety.d.mts +4 -0
  442. package/resources/safety/safety.d.mts.map +1 -1
  443. package/resources/safety/safety.d.ts +4 -0
  444. package/resources/safety/safety.d.ts.map +1 -1
  445. package/resources/safety/safety.js +4 -0
  446. package/resources/safety/safety.js.map +1 -1
  447. package/resources/safety/safety.mjs +4 -0
  448. package/resources/safety/safety.mjs.map +1 -1
  449. package/resources/skills/skills.d.mts +8 -1
  450. package/resources/skills/skills.d.mts.map +1 -1
  451. package/resources/skills/skills.d.ts +8 -1
  452. package/resources/skills/skills.d.ts.map +1 -1
  453. package/resources/skills/skills.js +58 -3
  454. package/resources/skills/skills.js.map +1 -1
  455. package/resources/skills/skills.mjs +58 -3
  456. package/resources/skills/skills.mjs.map +1 -1
  457. package/resources/skills/versions/versions.d.mts +8 -1
  458. package/resources/skills/versions/versions.d.mts.map +1 -1
  459. package/resources/skills/versions/versions.d.ts +8 -1
  460. package/resources/skills/versions/versions.d.ts.map +1 -1
  461. package/resources/skills/versions/versions.js +58 -3
  462. package/resources/skills/versions/versions.js.map +1 -1
  463. package/resources/skills/versions/versions.mjs +58 -3
  464. package/resources/skills/versions/versions.mjs.map +1 -1
  465. package/resources/vector-stores/files.d.mts +8 -1
  466. package/resources/vector-stores/files.d.mts.map +1 -1
  467. package/resources/vector-stores/files.d.ts +8 -1
  468. package/resources/vector-stores/files.d.ts.map +1 -1
  469. package/resources/vector-stores/files.js +58 -3
  470. package/resources/vector-stores/files.js.map +1 -1
  471. package/resources/vector-stores/files.mjs +58 -3
  472. package/resources/vector-stores/files.mjs.map +1 -1
  473. package/resources/vector-stores/vector-stores.d.mts +8 -1
  474. package/resources/vector-stores/vector-stores.d.mts.map +1 -1
  475. package/resources/vector-stores/vector-stores.d.ts +8 -1
  476. package/resources/vector-stores/vector-stores.d.ts.map +1 -1
  477. package/resources/vector-stores/vector-stores.js +58 -3
  478. package/resources/vector-stores/vector-stores.js.map +1 -1
  479. package/resources/vector-stores/vector-stores.mjs +58 -3
  480. package/resources/vector-stores/vector-stores.mjs.map +1 -1
  481. package/resources/videos.d.mts +16 -2
  482. package/resources/videos.d.mts.map +1 -1
  483. package/resources/videos.d.ts +16 -2
  484. package/resources/videos.d.ts.map +1 -1
  485. package/resources/videos.js +64 -12
  486. package/resources/videos.js.map +1 -1
  487. package/resources/videos.mjs +64 -12
  488. package/resources/videos.mjs.map +1 -1
  489. package/resources/webhooks/webhooks.d.mts +91 -3
  490. package/resources/webhooks/webhooks.d.mts.map +1 -1
  491. package/resources/webhooks/webhooks.d.ts +91 -3
  492. package/resources/webhooks/webhooks.d.ts.map +1 -1
  493. package/resources/webhooks/webhooks.js +58 -11
  494. package/resources/webhooks/webhooks.js.map +1 -1
  495. package/resources/webhooks/webhooks.mjs +58 -11
  496. package/resources/webhooks/webhooks.mjs.map +1 -1
  497. package/src/resources/admin/organization/admin-api-keys.ts +200 -1
  498. package/src/resources/admin/organization/audit-logs.ts +270 -1
  499. package/src/resources/admin/organization/certificates.ts +295 -2
  500. package/src/resources/admin/organization/external-storage.ts +420 -0
  501. package/src/resources/admin/organization/groups/groups.ts +200 -1
  502. package/src/resources/admin/organization/groups/roles.ts +202 -1
  503. package/src/resources/admin/organization/groups/users.ts +202 -1
  504. package/src/resources/admin/organization/index.ts +10 -0
  505. package/src/resources/admin/organization/invites.ts +200 -1
  506. package/src/resources/admin/organization/organization.ts +24 -0
  507. package/src/resources/admin/organization/projects/api-keys.ts +202 -1
  508. package/src/resources/admin/organization/projects/certificates.ts +202 -1
  509. package/src/resources/admin/organization/projects/groups/groups.ts +202 -1
  510. package/src/resources/admin/organization/projects/projects.ts +200 -1
  511. package/src/resources/admin/organization/projects/rate-limits.ts +202 -1
  512. package/src/resources/admin/organization/projects/roles.ts +202 -1
  513. package/src/resources/admin/organization/projects/service-accounts/service-accounts.ts +202 -1
  514. package/src/resources/admin/organization/projects/spend-alerts.ts +202 -1
  515. package/src/resources/admin/organization/projects/users/users.ts +202 -1
  516. package/src/resources/admin/organization/roles.ts +200 -1
  517. package/src/resources/admin/organization/spend-alerts.ts +200 -1
  518. package/src/resources/admin/organization/users/roles.ts +202 -1
  519. package/src/resources/admin/organization/users/users.ts +200 -1
  520. package/src/resources/batches.ts +200 -1
  521. package/src/resources/beta/agents/agents.ts +253 -43
  522. package/src/resources/beta/agents/environments/templates.ts +214 -9
  523. package/src/resources/beta/agents/sessions/artifacts.ts +202 -1
  524. package/src/resources/beta/agents/sessions/items.ts +202 -1
  525. package/src/resources/beta/agents/sessions/sessions.ts +209 -6
  526. package/src/resources/beta/agents/sessions/subagents/subagents.ts +202 -1
  527. package/src/resources/beta/agents/sessions/turns.ts +205 -3
  528. package/src/resources/beta/agents/vaults/credentials.ts +382 -22
  529. package/src/resources/beta/agents/vaults/index.ts +2 -0
  530. package/src/resources/beta/agents/vaults/vaults.ts +205 -3
  531. package/src/resources/beta/assistants.ts +200 -1
  532. package/src/resources/beta/chatkit/threads.ts +311 -2
  533. package/src/resources/beta/responses/responses.ts +4 -5
  534. package/src/resources/beta/threads/messages.ts +202 -1
  535. package/src/resources/beta/threads/runs/runs.ts +202 -1
  536. package/src/resources/chat/completions/completions.ts +205 -3
  537. package/src/resources/chat/completions/messages.ts +202 -1
  538. package/src/resources/containers/containers.ts +200 -1
  539. package/src/resources/containers/files/files.ts +202 -1
  540. package/src/resources/conversations/conversations.ts +3 -4
  541. package/src/resources/conversations/items.ts +202 -1
  542. package/src/resources/evals/evals.ts +200 -1
  543. package/src/resources/evals/runs/runs.ts +202 -1
  544. package/src/resources/files.ts +200 -1
  545. package/src/resources/fine-tuning/checkpoints/permissions.ts +297 -2
  546. package/src/resources/fine-tuning/jobs/checkpoints.ts +202 -1
  547. package/src/resources/fine-tuning/jobs/jobs.ts +295 -2
  548. package/src/resources/images.ts +3 -4
  549. package/src/resources/responses/input-items.ts +202 -1
  550. package/src/resources/responses/responses.ts +255 -9
  551. package/src/resources/safety/cases.ts +39 -0
  552. package/src/resources/safety/index.ts +1 -0
  553. package/src/resources/safety/safety.ts +6 -0
  554. package/src/resources/skills/skills.ts +200 -1
  555. package/src/resources/skills/versions/versions.ts +202 -1
  556. package/src/resources/vector-stores/files.ts +202 -1
  557. package/src/resources/vector-stores/vector-stores.ts +200 -1
  558. package/src/resources/videos.ts +295 -2
  559. package/src/resources/webhooks/api.md +2 -0
  560. package/src/resources/webhooks/webhooks.ts +301 -2
  561. package/src/version.ts +1 -1
  562. package/version.d.mts +1 -1
  563. package/version.d.ts +1 -1
  564. package/version.js +1 -1
  565. package/version.mjs +1 -1
@@ -31,6 +31,113 @@ import { buildHeaders } from '../../../internal/headers';
31
31
  import { RequestOptions } from '../../../internal/request-options';
32
32
  import { path } from '../../../internal/utils/path';
33
33
 
34
+ // Recognizable options across SDK runtime versions. Keep this independent of
35
+ // private RequestOptions fields so older handwritten runtimes still compile.
36
+ const normalizeRequestOptionsForQueryKeys = new Set([
37
+ 'method',
38
+ 'path',
39
+ 'query',
40
+ 'body',
41
+ 'headers',
42
+ 'maxRetries',
43
+ 'stream',
44
+ 'timeout',
45
+ 'httpAgent',
46
+ 'fetchOptions',
47
+ 'signal',
48
+ 'idempotencyKey',
49
+ 'defaultBaseURL',
50
+ '__metadata',
51
+ '__binaryRequest',
52
+ '__binaryResponse',
53
+ '__streamClass',
54
+ '__security',
55
+ '__synthesizeEventData',
56
+ ]);
57
+
58
+ function normalizeRequestOptionsForQuery(
59
+ value: unknown,
60
+ queryKeys: ReadonlyArray<string>,
61
+ options: RequestOptions | undefined,
62
+ ):
63
+ | ({
64
+ [K in 'headers' | 'maxRetries' | 'timeout' | 'signal' | 'idempotencyKey' | 'query']?: RequestOptions[K];
65
+ } & {
66
+ [
67
+ K in
68
+ | 'method'
69
+ | 'path'
70
+ | 'body'
71
+ | 'stream'
72
+ | 'httpAgent'
73
+ | 'fetchOptions'
74
+ | 'defaultBaseURL'
75
+ | '__metadata'
76
+ | '__binaryRequest'
77
+ | '__binaryResponse'
78
+ | '__streamClass'
79
+ | '__security'
80
+ | '__synthesizeEventData'
81
+ ]?: never;
82
+ })
83
+ | undefined {
84
+ if (typeof value !== 'object' || value === null) return undefined;
85
+ // Optional never fields can still be explicitly undefined unless consumers
86
+ // enable exactOptionalPropertyTypes. Snapshot data without invoking getters.
87
+ const entries = Object.entries(Object.getOwnPropertyDescriptors(value)).filter(
88
+ ([, descriptor]) => descriptor.enumerable && (!('value' in descriptor) || descriptor.value !== undefined),
89
+ );
90
+ const keys = entries.map(([key]) => key);
91
+ const requestOnly = keys.some(
92
+ (key) => normalizeRequestOptionsForQueryKeys.has(key) && !queryKeys.includes(key),
93
+ );
94
+ if (!requestOnly) return undefined;
95
+ // Declared query fields, including stream, must use the query argument.
96
+ // Mixing them with request-only options is ambiguous and could change the return type.
97
+ if (
98
+ options !== undefined ||
99
+ keys.some((key) => !normalizeRequestOptionsForQueryKeys.has(key) || queryKeys.includes(key))
100
+ ) {
101
+ throw new TypeError('Query parameters and request options must be passed as separate arguments.');
102
+ }
103
+ // The query position must not gain authority to change the request destination
104
+ // or transport. Those overrides require the explicit request options argument.
105
+ if (
106
+ keys.some(
107
+ (key) => !['headers', 'maxRetries', 'timeout', 'signal', 'idempotencyKey', 'query'].includes(key),
108
+ )
109
+ ) {
110
+ throw new TypeError('Pass transport overrides in the explicit request options argument.');
111
+ }
112
+ // Copy only the validated fields. Spreading value would reintroduce undefined
113
+ // transport overrides, and deleting them would mutate the caller's object.
114
+ return Object.fromEntries(
115
+ entries.map(([key, descriptor]) => {
116
+ if ('value' in descriptor) return [key, descriptor.value];
117
+ return [key, descriptor.get ? Reflect.apply(descriptor.get, value, []) : undefined];
118
+ }),
119
+ ) as {
120
+ [K in 'headers' | 'maxRetries' | 'timeout' | 'signal' | 'idempotencyKey' | 'query']?: RequestOptions[K];
121
+ } & {
122
+ [
123
+ K in
124
+ | 'method'
125
+ | 'path'
126
+ | 'body'
127
+ | 'stream'
128
+ | 'httpAgent'
129
+ | 'fetchOptions'
130
+ | 'defaultBaseURL'
131
+ | '__metadata'
132
+ | '__binaryRequest'
133
+ | '__binaryResponse'
134
+ | '__streamClass'
135
+ | '__security'
136
+ | '__synthesizeEventData'
137
+ ]?: never;
138
+ };
139
+ }
140
+
34
141
  export class Agents extends APIResource {
35
142
  environments: EnvironmentsAPI.Environments = new EnvironmentsAPI.Environments(this._client);
36
143
  vaults: VaultsAPI.Vaults = new VaultsAPI.Vaults(this._client);
@@ -108,9 +215,101 @@ export class Agents extends APIResource {
108
215
  * ```
109
216
  */
110
217
  list(
111
- query: AgentListParams | null | undefined = {},
218
+ query?:
219
+ | (AgentListParams &
220
+ (
221
+ | {
222
+ [
223
+ K in
224
+ | 'method'
225
+ | 'path'
226
+ | 'query'
227
+ | 'body'
228
+ | 'headers'
229
+ | 'maxRetries'
230
+ | 'stream'
231
+ | 'timeout'
232
+ | 'httpAgent'
233
+ | 'fetchOptions'
234
+ | 'signal'
235
+ | 'idempotencyKey'
236
+ | 'defaultBaseURL'
237
+ | '__metadata'
238
+ | '__binaryRequest'
239
+ | '__binaryResponse'
240
+ | '__streamClass'
241
+ | '__security'
242
+ | '__synthesizeEventData'
243
+ ]?: never;
244
+ }
245
+ | null
246
+ | undefined
247
+ ))
248
+ | null
249
+ | undefined,
250
+ options?: RequestOptions,
251
+ ): PagePromise<AgentsPage, Agent>;
252
+ list(
253
+ options?: {
254
+ [K in 'headers' | 'maxRetries' | 'timeout' | 'signal' | 'idempotencyKey' | 'query']?: RequestOptions[K];
255
+ } & {
256
+ [
257
+ K in
258
+ | 'method'
259
+ | 'path'
260
+ | 'body'
261
+ | 'stream'
262
+ | 'httpAgent'
263
+ | 'fetchOptions'
264
+ | 'defaultBaseURL'
265
+ | '__metadata'
266
+ | '__binaryRequest'
267
+ | '__binaryResponse'
268
+ | '__streamClass'
269
+ | '__security'
270
+ | '__synthesizeEventData'
271
+ ]?: never;
272
+ },
273
+ ): PagePromise<AgentsPage, Agent>;
274
+ list(
275
+ query:
276
+ | AgentListParams
277
+ | ({
278
+ [
279
+ K in 'headers' | 'maxRetries' | 'timeout' | 'signal' | 'idempotencyKey' | 'query'
280
+ ]?: RequestOptions[K];
281
+ } & {
282
+ [
283
+ K in
284
+ | 'method'
285
+ | 'path'
286
+ | 'body'
287
+ | 'stream'
288
+ | 'httpAgent'
289
+ | 'fetchOptions'
290
+ | 'defaultBaseURL'
291
+ | '__metadata'
292
+ | '__binaryRequest'
293
+ | '__binaryResponse'
294
+ | '__streamClass'
295
+ | '__security'
296
+ | '__synthesizeEventData'
297
+ ]?: never;
298
+ })
299
+ | null
300
+ | undefined = {},
112
301
  options?: RequestOptions,
113
302
  ): PagePromise<AgentsPage, Agent> {
303
+ const normalizeRequestOptionsForQueryOptions = normalizeRequestOptionsForQuery(
304
+ query,
305
+ ['after', 'limit', 'order'],
306
+ options,
307
+ );
308
+ if (normalizeRequestOptionsForQueryOptions !== undefined) {
309
+ options = normalizeRequestOptionsForQueryOptions;
310
+ query = {};
311
+ }
312
+ query = query as AgentListParams | null | undefined;
114
313
  return this._client.getAPIList('/agents', CursorPage<Agent>, {
115
314
  query,
116
315
  ...options,
@@ -607,12 +806,13 @@ export type AgentOutputItemStatus = 'in_progress' | 'completed' | 'incomplete';
607
806
  */
608
807
  export interface AgentReasoning {
609
808
  /**
610
- * The amount of reasoning effort used by an agent.
809
+ * The requested reasoning effort, or `null` when the model selects its own
810
+ * default.
611
811
  */
612
812
  effort: 'none' | 'minimal' | 'low' | 'medium' | 'high' | 'xhigh' | 'max' | null;
613
813
 
614
814
  /**
615
- * The reasoning summary format requested from an agent.
815
+ * The requested reasoning summary format, or `null` when summaries are disabled.
616
816
  *
617
817
  * - `concise` - Returns a concise reasoning summary when supported.
618
818
  * - `detailed` - Returns a detailed reasoning summary when supported.
@@ -632,7 +832,7 @@ export interface AgentReasoningItem {
632
832
  id: string;
633
833
 
634
834
  /**
635
- * The status of an agent output item.
835
+ * The status of the reasoning item.
636
836
  */
637
837
  status: AgentOutputItemStatus | null;
638
838
 
@@ -657,12 +857,13 @@ export interface AgentReasoningItem {
657
857
  */
658
858
  export interface AgentReasoningParam {
659
859
  /**
660
- * The amount of reasoning effort the model should use.
860
+ * The amount of reasoning effort the model should use. Omission lets the model
861
+ * select it.
661
862
  */
662
863
  effort?: 'none' | 'minimal' | 'low' | 'medium' | 'high' | 'xhigh' | 'max' | null;
663
864
 
664
865
  /**
665
- * The reasoning summary format requested from the model.
866
+ * Controls whether the response includes a reasoning summary.
666
867
  *
667
868
  * - `concise` - Returns a concise reasoning summary when supported.
668
869
  * - `detailed` - Returns a detailed reasoning summary when supported.
@@ -811,7 +1012,8 @@ export interface AgentSession {
811
1012
  status: 'idle' | 'in_progress' | 'requires_action' | 'failed';
812
1013
 
813
1014
  /**
814
- * Recorded token usage for a session or turn. Usage is best effort and may change.
1015
+ * Best-effort token usage for the session, or null if unknown. Recorded usage may
1016
+ * change.
815
1017
  */
816
1018
  usage: TokenUsage | null;
817
1019
 
@@ -934,7 +1136,7 @@ export interface AgentSessionAssistantMessage {
934
1136
  content: Array<OutputText>;
935
1137
 
936
1138
  /**
937
- * The phase of an assistant message.
1139
+ * The phase of the assistant message.
938
1140
  *
939
1141
  * - `commentary` - Commentary produced while the agent works.
940
1142
  * - `final_answer` - The agent's final answer.
@@ -1164,7 +1366,7 @@ export interface AgentSessionEnvironmentState {
1164
1366
  id: string;
1165
1367
 
1166
1368
  /**
1167
- * An error reported while preparing a session environment.
1369
+ * The error reported while preparing the environment, if any.
1168
1370
  */
1169
1371
  error: AgentSessionEnvironmentState.Error | null;
1170
1372
 
@@ -1187,7 +1389,7 @@ export interface AgentSessionEnvironmentState {
1187
1389
 
1188
1390
  export namespace AgentSessionEnvironmentState {
1189
1391
  /**
1190
- * An error reported while preparing a session environment.
1392
+ * The error reported while preparing the environment, if any.
1191
1393
  */
1192
1394
  export interface Error {
1193
1395
  /**
@@ -1411,7 +1613,7 @@ export namespace AgentSessionInputParam {
1411
1613
  error?: string | null;
1412
1614
 
1413
1615
  /**
1414
- * A function result represented as text or supported model-input content.
1616
+ * The function result when the call succeeded.
1415
1617
  */
1416
1618
  output?: AgentsAPI.AgentFunctionCallOutputParam | null;
1417
1619
  }
@@ -1457,7 +1659,7 @@ export namespace AgentSessionItem {
1457
1659
  error: string | null;
1458
1660
 
1459
1661
  /**
1460
- * The text or model-input content supplied as a function result.
1662
+ * The function result, if the call succeeded.
1461
1663
  */
1462
1664
  output: AgentsAPI.AgentFunctionCallOutput | null;
1463
1665
 
@@ -1529,7 +1731,7 @@ export interface AgentSessionMessage {
1529
1731
  content: Array<AgentSessionMessageContent>;
1530
1732
 
1531
1733
  /**
1532
- * The phase of an assistant message.
1734
+ * The phase of an assistant message. Null for user messages.
1533
1735
  *
1534
1736
  * - `commentary` - Commentary produced while the agent works.
1535
1737
  * - `final_answer` - The agent's final answer.
@@ -1723,7 +1925,7 @@ export interface AgentSessionTurnCancelledEvent {
1723
1925
  type: 'agent.session.turn.cancelled';
1724
1926
 
1725
1927
  /**
1726
- * Recorded token usage for a session or turn. Usage is best effort and may change.
1928
+ * Token usage by the root agent during the turn, when available.
1727
1929
  */
1728
1930
  usage: TokenUsage | null;
1729
1931
  }
@@ -1758,7 +1960,7 @@ export interface AgentSessionTurnCompletedEvent {
1758
1960
  type: 'agent.session.turn.completed';
1759
1961
 
1760
1962
  /**
1761
- * Recorded token usage for a session or turn. Usage is best effort and may change.
1963
+ * Token usage by the root agent during the turn, when available.
1762
1964
  */
1763
1965
  usage: TokenUsage | null;
1764
1966
  }
@@ -1913,7 +2115,7 @@ export interface AgentSessionTurnFailedEvent {
1913
2115
  type: 'agent.session.turn.failed';
1914
2116
 
1915
2117
  /**
1916
- * Recorded token usage for a session or turn. Usage is best effort and may change.
2118
+ * Token usage by the root agent during the turn, when available.
1917
2119
  */
1918
2120
  usage: TokenUsage | null;
1919
2121
  }
@@ -2315,12 +2517,13 @@ export interface AgentText {
2315
2517
  */
2316
2518
  export interface AgentTextParam {
2317
2519
  /**
2318
- * The output format for generated text.
2520
+ * The output format. Omission uses ordinary text (`{"type": "text"}`).
2319
2521
  */
2320
2522
  format?: TextFormatParam | null;
2321
2523
 
2322
2524
  /**
2323
- * The amount of text the model should produce.
2525
+ * The amount of text the model should produce. Defaults to `medium`, matching
2526
+ * Responses.
2324
2527
  *
2325
2528
  * - `low` - Produces less text.
2326
2529
  * - `medium` - Uses the default amount of text.
@@ -2445,7 +2648,7 @@ export namespace AgentTool {
2445
2648
  context_size: 'low' | 'medium' | 'high';
2446
2649
 
2447
2650
  /**
2448
- * Approximate user location used to localize web search results.
2651
+ * Approximate location used to localize search results, if provided.
2449
2652
  */
2450
2653
  location: AgentToolResourceWebSearch.Location | null;
2451
2654
 
@@ -2462,7 +2665,7 @@ export namespace AgentTool {
2462
2665
 
2463
2666
  export namespace AgentToolResourceWebSearch {
2464
2667
  /**
2465
- * Approximate user location used to localize web search results.
2668
+ * Approximate location used to localize search results, if provided.
2466
2669
  */
2467
2670
  export interface Location {
2468
2671
  /**
@@ -2580,7 +2783,9 @@ export namespace AgentToolParam {
2580
2783
  allowed_tools?: Array<string> | null;
2581
2784
 
2582
2785
  /**
2583
- * Where outbound MCP HTTP connections originate.
2786
+ * Selects where outbound MCP HTTP connections originate. Omitted or `service` uses
2787
+ * the Managed Agents service network; `environment` uses the session's selected
2788
+ * environment.
2584
2789
  *
2585
2790
  * - `service` - Uses the Managed Agents service network.
2586
2791
  * - `environment` - Uses the session's execution environment.
@@ -2620,17 +2825,17 @@ export namespace AgentToolParam {
2620
2825
  allowed_domains?: Array<string> | null;
2621
2826
 
2622
2827
  /**
2623
- * The amount of web search context made available to the model.
2828
+ * The amount of search context made available to the model. Defaults to `medium`.
2624
2829
  */
2625
2830
  context_size?: 'low' | 'medium' | 'high' | null;
2626
2831
 
2627
2832
  /**
2628
- * Approximate user location used to localize web search results.
2833
+ * Approximate location used to localize search results.
2629
2834
  */
2630
2835
  location?: AgentToolConfigParamWebSearch.Location | null;
2631
2836
 
2632
2837
  /**
2633
- * The source used for web search results.
2838
+ * The source used for web search results. Defaults to `live`.
2634
2839
  *
2635
2840
  * - `disabled` - Disables web search.
2636
2841
  * - `cached` - Uses cached search results.
@@ -2641,7 +2846,7 @@ export namespace AgentToolParam {
2641
2846
 
2642
2847
  export namespace AgentToolConfigParamWebSearch {
2643
2848
  /**
2644
- * Approximate user location used to localize web search results.
2849
+ * Approximate location used to localize search results.
2645
2850
  */
2646
2851
  export interface Location {
2647
2852
  /**
@@ -2712,7 +2917,7 @@ export interface AgentWebSearchCallItem {
2712
2917
  id: string;
2713
2918
 
2714
2919
  /**
2715
- * An action performed by the web search tool.
2920
+ * The action performed by the web search tool.
2716
2921
  */
2717
2922
  action: WebSearchAction | null;
2718
2923
 
@@ -2921,12 +3126,13 @@ export namespace EnvironmentParam {
2921
3126
  files?: Array<AgentsAPI.HostedEnvironmentFileParam> | null;
2922
3127
 
2923
3128
  /**
2924
- * Network access for an OpenAI-hosted environment.
3129
+ * Network access policy for the environment. Defaults to disabled for GA requests
3130
+ * and enabled for alpha/beta requests.
2925
3131
  */
2926
3132
  network?: EnvironmentParamOpenAIHosted.Network | null;
2927
3133
 
2928
3134
  /**
2929
- * Packages to install in an OpenAI-hosted environment.
3135
+ * Packages to install in the environment. Defaults to empty package lists.
2930
3136
  */
2931
3137
  packages?: EnvironmentParamOpenAIHosted.Packages | null;
2932
3138
 
@@ -2949,7 +3155,8 @@ export namespace EnvironmentParam {
2949
3155
 
2950
3156
  export namespace EnvironmentParamOpenAIHosted {
2951
3157
  /**
2952
- * Network access for an OpenAI-hosted environment.
3158
+ * Network access policy for the environment. Defaults to disabled for GA requests
3159
+ * and enabled for alpha/beta requests.
2953
3160
  */
2954
3161
  export interface Network {
2955
3162
  /**
@@ -2968,7 +3175,7 @@ export namespace EnvironmentParam {
2968
3175
  }
2969
3176
 
2970
3177
  /**
2971
- * Packages to install in an OpenAI-hosted environment.
3178
+ * Packages to install in the environment. Defaults to empty package lists.
2972
3179
  */
2973
3180
  export interface Packages {
2974
3181
  /**
@@ -3671,7 +3878,7 @@ export namespace PersistedAgentTool {
3671
3878
  context_size: 'low' | 'medium' | 'high';
3672
3879
 
3673
3880
  /**
3674
- * Approximate user location used to localize web search results.
3881
+ * Approximate location used to localize search results, if provided.
3675
3882
  */
3676
3883
  location: PersistedAgentToolResourceWebSearch.Location | null;
3677
3884
 
@@ -3688,7 +3895,7 @@ export namespace PersistedAgentTool {
3688
3895
 
3689
3896
  export namespace PersistedAgentToolResourceWebSearch {
3690
3897
  /**
3691
- * Approximate user location used to localize web search results.
3898
+ * Approximate location used to localize search results, if provided.
3692
3899
  */
3693
3900
  export interface Location {
3694
3901
  /**
@@ -3806,7 +4013,7 @@ export namespace PersistedAgentToolParam {
3806
4013
  allowed_tools?: Array<string> | null;
3807
4014
 
3808
4015
  /**
3809
- * Where outbound MCP HTTP connections originate.
4016
+ * Selects where outbound MCP HTTP connections originate.
3810
4017
  *
3811
4018
  * - `service` - Uses the Managed Agents service network.
3812
4019
  * - `environment` - Uses the session's execution environment.
@@ -3846,17 +4053,17 @@ export namespace PersistedAgentToolParam {
3846
4053
  allowed_domains?: Array<string> | null;
3847
4054
 
3848
4055
  /**
3849
- * The amount of web search context made available to the model.
4056
+ * The amount of search context made available to the model. Defaults to `medium`.
3850
4057
  */
3851
4058
  context_size?: 'low' | 'medium' | 'high' | null;
3852
4059
 
3853
4060
  /**
3854
- * Approximate user location used to localize web search results.
4061
+ * Approximate location used to localize search results.
3855
4062
  */
3856
4063
  location?: PersistedAgentToolConfigParamWebSearch.Location | null;
3857
4064
 
3858
4065
  /**
3859
- * The source used for web search results.
4066
+ * The source used for web search results. Defaults to `live`.
3860
4067
  *
3861
4068
  * - `disabled` - Disables web search.
3862
4069
  * - `cached` - Uses cached search results.
@@ -3867,7 +4074,7 @@ export namespace PersistedAgentToolParam {
3867
4074
 
3868
4075
  export namespace PersistedAgentToolConfigParamWebSearch {
3869
4076
  /**
3870
- * Approximate user location used to localize web search results.
4077
+ * Approximate location used to localize search results.
3871
4078
  */
3872
4079
  export interface Location {
3873
4080
  /**
@@ -4388,7 +4595,8 @@ export interface AgentCreateParams {
4388
4595
  metadata?: { [key: string]: string } | null;
4389
4596
 
4390
4597
  /**
4391
- * Explicit configuration for creating and coordinating subagents.
4598
+ * Configuration for creating and coordinating subagents. Subagent tools are
4599
+ * disabled by default.
4392
4600
  */
4393
4601
  multi_agent?: MultiAgentConfigParam | null;
4394
4602
 
@@ -4398,12 +4606,12 @@ export interface AgentCreateParams {
4398
4606
  name?: string | null;
4399
4607
 
4400
4608
  /**
4401
- * Reasoning configuration for the agent.
4609
+ * Configuration for model reasoning. Omission uses the model's default effort.
4402
4610
  */
4403
4611
  reasoning?: AgentReasoningParam | null;
4404
4612
 
4405
4613
  /**
4406
- * The service tier used for model requests.
4614
+ * The service tier used for model requests. Defaults to `auto`.
4407
4615
  *
4408
4616
  * - `auto` - Selects the service tier automatically.
4409
4617
  * - `default` - Uses the default service tier.
@@ -4414,7 +4622,8 @@ export interface AgentCreateParams {
4414
4622
  service_tier?: 'auto' | 'default' | 'flex' | 'priority' | 'fast' | null;
4415
4623
 
4416
4624
  /**
4417
- * Configuration for text generated by the agent.
4625
+ * Configuration for generated text. Defaults to the `text` format and medium
4626
+ * verbosity.
4418
4627
  */
4419
4628
  text?: AgentTextParam | null;
4420
4629
 
@@ -4444,7 +4653,7 @@ export interface AgentUpdateParams {
4444
4653
  model?: string;
4445
4654
 
4446
4655
  /**
4447
- * Explicit configuration for creating and coordinating subagents.
4656
+ * Configuration for creating and coordinating subagents.
4448
4657
  */
4449
4658
  multi_agent?: MultiAgentConfigParam | null;
4450
4659
 
@@ -4454,7 +4663,8 @@ export interface AgentUpdateParams {
4454
4663
  name?: string | null;
4455
4664
 
4456
4665
  /**
4457
- * Reasoning configuration for the agent.
4666
+ * Configuration for model reasoning. Omit to keep the current settings; pass
4667
+ * `null` to reset to the model's default effort.
4458
4668
  */
4459
4669
  reasoning?: AgentReasoningParam | null;
4460
4670