openai 7.18.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 (645) hide show
  1. package/CHANGELOG.md +28 -0
  2. package/README.md +6 -3
  3. package/client.d.mts.map +1 -1
  4. package/client.d.ts.map +1 -1
  5. package/client.js +13 -7
  6. package/client.js.map +1 -1
  7. package/client.mjs +13 -7
  8. package/client.mjs.map +1 -1
  9. package/internal/parse.d.mts.map +1 -1
  10. package/internal/parse.d.ts.map +1 -1
  11. package/internal/parse.js +11 -7
  12. package/internal/parse.js.map +1 -1
  13. package/internal/parse.mjs +11 -7
  14. package/internal/parse.mjs.map +1 -1
  15. package/internal/utils/log.d.mts.map +1 -1
  16. package/internal/utils/log.d.ts.map +1 -1
  17. package/internal/utils/log.js +1 -0
  18. package/internal/utils/log.js.map +1 -1
  19. package/internal/utils/log.mjs +1 -0
  20. package/internal/utils/log.mjs.map +1 -1
  21. package/package.json +1 -1
  22. package/resources/admin/organization/admin-api-keys.d.mts +13 -2
  23. package/resources/admin/organization/admin-api-keys.d.mts.map +1 -1
  24. package/resources/admin/organization/admin-api-keys.d.ts +13 -2
  25. package/resources/admin/organization/admin-api-keys.d.ts.map +1 -1
  26. package/resources/admin/organization/admin-api-keys.js +58 -11
  27. package/resources/admin/organization/admin-api-keys.js.map +1 -1
  28. package/resources/admin/organization/admin-api-keys.mjs +58 -11
  29. package/resources/admin/organization/admin-api-keys.mjs.map +1 -1
  30. package/resources/admin/organization/audit-logs.d.mts +56 -3
  31. package/resources/admin/organization/audit-logs.d.mts.map +1 -1
  32. package/resources/admin/organization/audit-logs.d.ts +56 -3
  33. package/resources/admin/organization/audit-logs.d.ts.map +1 -1
  34. package/resources/admin/organization/audit-logs.js +69 -11
  35. package/resources/admin/organization/audit-logs.js.map +1 -1
  36. package/resources/admin/organization/audit-logs.mjs +69 -11
  37. package/resources/admin/organization/audit-logs.mjs.map +1 -1
  38. package/resources/admin/organization/certificates.d.mts +16 -2
  39. package/resources/admin/organization/certificates.d.mts.map +1 -1
  40. package/resources/admin/organization/certificates.d.ts +16 -2
  41. package/resources/admin/organization/certificates.d.ts.map +1 -1
  42. package/resources/admin/organization/certificates.js +64 -24
  43. package/resources/admin/organization/certificates.js.map +1 -1
  44. package/resources/admin/organization/certificates.mjs +64 -24
  45. package/resources/admin/organization/certificates.mjs.map +1 -1
  46. package/resources/admin/organization/external-storage.d.mts +141 -0
  47. package/resources/admin/organization/external-storage.d.mts.map +1 -0
  48. package/resources/admin/organization/external-storage.d.ts +141 -0
  49. package/resources/admin/organization/external-storage.d.ts.map +1 -0
  50. package/resources/admin/organization/external-storage.js +146 -0
  51. package/resources/admin/organization/external-storage.js.map +1 -0
  52. package/resources/admin/organization/external-storage.mjs +142 -0
  53. package/resources/admin/organization/external-storage.mjs.map +1 -0
  54. package/resources/admin/organization/groups/groups.d.mts +8 -1
  55. package/resources/admin/organization/groups/groups.d.mts.map +1 -1
  56. package/resources/admin/organization/groups/groups.d.ts +8 -1
  57. package/resources/admin/organization/groups/groups.d.ts.map +1 -1
  58. package/resources/admin/organization/groups/groups.js +58 -11
  59. package/resources/admin/organization/groups/groups.js.map +1 -1
  60. package/resources/admin/organization/groups/groups.mjs +58 -11
  61. package/resources/admin/organization/groups/groups.mjs.map +1 -1
  62. package/resources/admin/organization/groups/roles.d.mts +8 -1
  63. package/resources/admin/organization/groups/roles.d.mts.map +1 -1
  64. package/resources/admin/organization/groups/roles.d.ts +8 -1
  65. package/resources/admin/organization/groups/roles.d.ts.map +1 -1
  66. package/resources/admin/organization/groups/roles.js +58 -13
  67. package/resources/admin/organization/groups/roles.js.map +1 -1
  68. package/resources/admin/organization/groups/roles.mjs +58 -13
  69. package/resources/admin/organization/groups/roles.mjs.map +1 -1
  70. package/resources/admin/organization/groups/users.d.mts +8 -1
  71. package/resources/admin/organization/groups/users.d.mts.map +1 -1
  72. package/resources/admin/organization/groups/users.d.ts +8 -1
  73. package/resources/admin/organization/groups/users.d.ts.map +1 -1
  74. package/resources/admin/organization/groups/users.js +58 -13
  75. package/resources/admin/organization/groups/users.js.map +1 -1
  76. package/resources/admin/organization/groups/users.mjs +58 -13
  77. package/resources/admin/organization/groups/users.mjs.map +1 -1
  78. package/resources/admin/organization/index.d.mts +1 -0
  79. package/resources/admin/organization/index.d.mts.map +1 -1
  80. package/resources/admin/organization/index.d.ts +1 -0
  81. package/resources/admin/organization/index.d.ts.map +1 -1
  82. package/resources/admin/organization/index.js +3 -1
  83. package/resources/admin/organization/index.js.map +1 -1
  84. package/resources/admin/organization/index.mjs +1 -0
  85. package/resources/admin/organization/index.mjs.map +1 -1
  86. package/resources/admin/organization/invites.d.mts +8 -1
  87. package/resources/admin/organization/invites.d.mts.map +1 -1
  88. package/resources/admin/organization/invites.d.ts +8 -1
  89. package/resources/admin/organization/invites.d.ts.map +1 -1
  90. package/resources/admin/organization/invites.js +58 -11
  91. package/resources/admin/organization/invites.js.map +1 -1
  92. package/resources/admin/organization/invites.mjs +58 -11
  93. package/resources/admin/organization/invites.mjs.map +1 -1
  94. package/resources/admin/organization/organization.d.mts +4 -0
  95. package/resources/admin/organization/organization.d.mts.map +1 -1
  96. package/resources/admin/organization/organization.d.ts +4 -0
  97. package/resources/admin/organization/organization.d.ts.map +1 -1
  98. package/resources/admin/organization/organization.js +4 -0
  99. package/resources/admin/organization/organization.js.map +1 -1
  100. package/resources/admin/organization/organization.mjs +4 -0
  101. package/resources/admin/organization/organization.mjs.map +1 -1
  102. package/resources/admin/organization/projects/api-keys.d.mts +8 -1
  103. package/resources/admin/organization/projects/api-keys.d.mts.map +1 -1
  104. package/resources/admin/organization/projects/api-keys.d.ts +8 -1
  105. package/resources/admin/organization/projects/api-keys.d.ts.map +1 -1
  106. package/resources/admin/organization/projects/api-keys.js +58 -13
  107. package/resources/admin/organization/projects/api-keys.js.map +1 -1
  108. package/resources/admin/organization/projects/api-keys.mjs +58 -13
  109. package/resources/admin/organization/projects/api-keys.mjs.map +1 -1
  110. package/resources/admin/organization/projects/certificates.d.mts +8 -1
  111. package/resources/admin/organization/projects/certificates.d.mts.map +1 -1
  112. package/resources/admin/organization/projects/certificates.d.ts +8 -1
  113. package/resources/admin/organization/projects/certificates.d.ts.map +1 -1
  114. package/resources/admin/organization/projects/certificates.js +58 -13
  115. package/resources/admin/organization/projects/certificates.js.map +1 -1
  116. package/resources/admin/organization/projects/certificates.mjs +58 -13
  117. package/resources/admin/organization/projects/certificates.mjs.map +1 -1
  118. package/resources/admin/organization/projects/groups/groups.d.mts +8 -1
  119. package/resources/admin/organization/projects/groups/groups.d.mts.map +1 -1
  120. package/resources/admin/organization/projects/groups/groups.d.ts +8 -1
  121. package/resources/admin/organization/projects/groups/groups.d.ts.map +1 -1
  122. package/resources/admin/organization/projects/groups/groups.js +58 -13
  123. package/resources/admin/organization/projects/groups/groups.js.map +1 -1
  124. package/resources/admin/organization/projects/groups/groups.mjs +58 -13
  125. package/resources/admin/organization/projects/groups/groups.mjs.map +1 -1
  126. package/resources/admin/organization/projects/projects.d.mts +8 -1
  127. package/resources/admin/organization/projects/projects.d.mts.map +1 -1
  128. package/resources/admin/organization/projects/projects.d.ts +8 -1
  129. package/resources/admin/organization/projects/projects.d.ts.map +1 -1
  130. package/resources/admin/organization/projects/projects.js +58 -11
  131. package/resources/admin/organization/projects/projects.js.map +1 -1
  132. package/resources/admin/organization/projects/projects.mjs +58 -11
  133. package/resources/admin/organization/projects/projects.mjs.map +1 -1
  134. package/resources/admin/organization/projects/rate-limits.d.mts +8 -1
  135. package/resources/admin/organization/projects/rate-limits.d.mts.map +1 -1
  136. package/resources/admin/organization/projects/rate-limits.d.ts +8 -1
  137. package/resources/admin/organization/projects/rate-limits.d.ts.map +1 -1
  138. package/resources/admin/organization/projects/rate-limits.js +58 -13
  139. package/resources/admin/organization/projects/rate-limits.js.map +1 -1
  140. package/resources/admin/organization/projects/rate-limits.mjs +58 -13
  141. package/resources/admin/organization/projects/rate-limits.mjs.map +1 -1
  142. package/resources/admin/organization/projects/roles.d.mts +8 -1
  143. package/resources/admin/organization/projects/roles.d.mts.map +1 -1
  144. package/resources/admin/organization/projects/roles.d.ts +8 -1
  145. package/resources/admin/organization/projects/roles.d.ts.map +1 -1
  146. package/resources/admin/organization/projects/roles.js +58 -13
  147. package/resources/admin/organization/projects/roles.js.map +1 -1
  148. package/resources/admin/organization/projects/roles.mjs +58 -13
  149. package/resources/admin/organization/projects/roles.mjs.map +1 -1
  150. package/resources/admin/organization/projects/service-accounts/service-accounts.d.mts +8 -1
  151. package/resources/admin/organization/projects/service-accounts/service-accounts.d.mts.map +1 -1
  152. package/resources/admin/organization/projects/service-accounts/service-accounts.d.ts +8 -1
  153. package/resources/admin/organization/projects/service-accounts/service-accounts.d.ts.map +1 -1
  154. package/resources/admin/organization/projects/service-accounts/service-accounts.js +58 -13
  155. package/resources/admin/organization/projects/service-accounts/service-accounts.js.map +1 -1
  156. package/resources/admin/organization/projects/service-accounts/service-accounts.mjs +58 -13
  157. package/resources/admin/organization/projects/service-accounts/service-accounts.mjs.map +1 -1
  158. package/resources/admin/organization/projects/spend-alerts.d.mts +8 -1
  159. package/resources/admin/organization/projects/spend-alerts.d.mts.map +1 -1
  160. package/resources/admin/organization/projects/spend-alerts.d.ts +8 -1
  161. package/resources/admin/organization/projects/spend-alerts.d.ts.map +1 -1
  162. package/resources/admin/organization/projects/spend-alerts.js +58 -13
  163. package/resources/admin/organization/projects/spend-alerts.js.map +1 -1
  164. package/resources/admin/organization/projects/spend-alerts.mjs +58 -13
  165. package/resources/admin/organization/projects/spend-alerts.mjs.map +1 -1
  166. package/resources/admin/organization/projects/users/users.d.mts +8 -1
  167. package/resources/admin/organization/projects/users/users.d.mts.map +1 -1
  168. package/resources/admin/organization/projects/users/users.d.ts +8 -1
  169. package/resources/admin/organization/projects/users/users.d.ts.map +1 -1
  170. package/resources/admin/organization/projects/users/users.js +58 -13
  171. package/resources/admin/organization/projects/users/users.js.map +1 -1
  172. package/resources/admin/organization/projects/users/users.mjs +58 -13
  173. package/resources/admin/organization/projects/users/users.mjs.map +1 -1
  174. package/resources/admin/organization/roles.d.mts +8 -1
  175. package/resources/admin/organization/roles.d.mts.map +1 -1
  176. package/resources/admin/organization/roles.d.ts +8 -1
  177. package/resources/admin/organization/roles.d.ts.map +1 -1
  178. package/resources/admin/organization/roles.js +58 -11
  179. package/resources/admin/organization/roles.js.map +1 -1
  180. package/resources/admin/organization/roles.mjs +58 -11
  181. package/resources/admin/organization/roles.mjs.map +1 -1
  182. package/resources/admin/organization/spend-alerts.d.mts +8 -1
  183. package/resources/admin/organization/spend-alerts.d.mts.map +1 -1
  184. package/resources/admin/organization/spend-alerts.d.ts +8 -1
  185. package/resources/admin/organization/spend-alerts.d.ts.map +1 -1
  186. package/resources/admin/organization/spend-alerts.js +58 -11
  187. package/resources/admin/organization/spend-alerts.js.map +1 -1
  188. package/resources/admin/organization/spend-alerts.mjs +58 -11
  189. package/resources/admin/organization/spend-alerts.mjs.map +1 -1
  190. package/resources/admin/organization/users/roles.d.mts +8 -1
  191. package/resources/admin/organization/users/roles.d.mts.map +1 -1
  192. package/resources/admin/organization/users/roles.d.ts +8 -1
  193. package/resources/admin/organization/users/roles.d.ts.map +1 -1
  194. package/resources/admin/organization/users/roles.js +58 -13
  195. package/resources/admin/organization/users/roles.js.map +1 -1
  196. package/resources/admin/organization/users/roles.mjs +58 -13
  197. package/resources/admin/organization/users/roles.mjs.map +1 -1
  198. package/resources/admin/organization/users/users.d.mts +8 -1
  199. package/resources/admin/organization/users/users.d.mts.map +1 -1
  200. package/resources/admin/organization/users/users.d.ts +8 -1
  201. package/resources/admin/organization/users/users.d.ts.map +1 -1
  202. package/resources/admin/organization/users/users.js +58 -11
  203. package/resources/admin/organization/users/users.js.map +1 -1
  204. package/resources/admin/organization/users/users.mjs +58 -11
  205. package/resources/admin/organization/users/users.mjs.map +1 -1
  206. package/resources/batches.d.mts +8 -1
  207. package/resources/batches.d.mts.map +1 -1
  208. package/resources/batches.d.ts +8 -1
  209. package/resources/batches.d.ts.map +1 -1
  210. package/resources/batches.js +58 -3
  211. package/resources/batches.js.map +1 -1
  212. package/resources/batches.mjs +58 -3
  213. package/resources/batches.mjs.map +1 -1
  214. package/resources/beta/agents/agents.d.mts +67 -46
  215. package/resources/beta/agents/agents.d.mts.map +1 -1
  216. package/resources/beta/agents/agents.d.ts +67 -46
  217. package/resources/beta/agents/agents.d.ts.map +1 -1
  218. package/resources/beta/agents/agents.js +58 -12
  219. package/resources/beta/agents/agents.js.map +1 -1
  220. package/resources/beta/agents/agents.mjs +58 -12
  221. package/resources/beta/agents/agents.mjs.map +1 -1
  222. package/resources/beta/agents/environments/files.d.mts +5 -1
  223. package/resources/beta/agents/environments/files.d.mts.map +1 -1
  224. package/resources/beta/agents/environments/files.d.ts +5 -1
  225. package/resources/beta/agents/environments/files.d.ts.map +1 -1
  226. package/resources/beta/agents/environments/templates.d.mts +24 -13
  227. package/resources/beta/agents/environments/templates.d.mts.map +1 -1
  228. package/resources/beta/agents/environments/templates.d.ts +24 -13
  229. package/resources/beta/agents/environments/templates.d.ts.map +1 -1
  230. package/resources/beta/agents/environments/templates.js +58 -12
  231. package/resources/beta/agents/environments/templates.js.map +1 -1
  232. package/resources/beta/agents/environments/templates.mjs +58 -12
  233. package/resources/beta/agents/environments/templates.mjs.map +1 -1
  234. package/resources/beta/agents/sessions/artifacts.d.mts +17 -2
  235. package/resources/beta/agents/sessions/artifacts.d.mts.map +1 -1
  236. package/resources/beta/agents/sessions/artifacts.d.ts +17 -2
  237. package/resources/beta/agents/sessions/artifacts.d.ts.map +1 -1
  238. package/resources/beta/agents/sessions/artifacts.js +58 -14
  239. package/resources/beta/agents/sessions/artifacts.js.map +1 -1
  240. package/resources/beta/agents/sessions/artifacts.mjs +58 -14
  241. package/resources/beta/agents/sessions/artifacts.mjs.map +1 -1
  242. package/resources/beta/agents/sessions/events.d.mts +4 -1
  243. package/resources/beta/agents/sessions/events.d.mts.map +1 -1
  244. package/resources/beta/agents/sessions/events.d.ts +4 -1
  245. package/resources/beta/agents/sessions/events.d.ts.map +1 -1
  246. package/resources/beta/agents/sessions/events.js +4 -1
  247. package/resources/beta/agents/sessions/events.js.map +1 -1
  248. package/resources/beta/agents/sessions/events.mjs +4 -1
  249. package/resources/beta/agents/sessions/events.mjs.map +1 -1
  250. package/resources/beta/agents/sessions/items.d.mts +8 -1
  251. package/resources/beta/agents/sessions/items.d.mts.map +1 -1
  252. package/resources/beta/agents/sessions/items.d.ts +8 -1
  253. package/resources/beta/agents/sessions/items.d.ts.map +1 -1
  254. package/resources/beta/agents/sessions/items.js +58 -15
  255. package/resources/beta/agents/sessions/items.js.map +1 -1
  256. package/resources/beta/agents/sessions/items.mjs +58 -15
  257. package/resources/beta/agents/sessions/items.mjs.map +1 -1
  258. package/resources/beta/agents/sessions/sessions.d.mts +25 -8
  259. package/resources/beta/agents/sessions/sessions.d.mts.map +1 -1
  260. package/resources/beta/agents/sessions/sessions.d.ts +25 -8
  261. package/resources/beta/agents/sessions/sessions.d.ts.map +1 -1
  262. package/resources/beta/agents/sessions/sessions.js +61 -14
  263. package/resources/beta/agents/sessions/sessions.js.map +1 -1
  264. package/resources/beta/agents/sessions/sessions.mjs +61 -14
  265. package/resources/beta/agents/sessions/sessions.mjs.map +1 -1
  266. package/resources/beta/agents/sessions/subagents/subagents.d.mts +8 -1
  267. package/resources/beta/agents/sessions/subagents/subagents.d.mts.map +1 -1
  268. package/resources/beta/agents/sessions/subagents/subagents.d.ts +8 -1
  269. package/resources/beta/agents/sessions/subagents/subagents.d.ts.map +1 -1
  270. package/resources/beta/agents/sessions/subagents/subagents.js +58 -14
  271. package/resources/beta/agents/sessions/subagents/subagents.js.map +1 -1
  272. package/resources/beta/agents/sessions/subagents/subagents.mjs +58 -14
  273. package/resources/beta/agents/sessions/subagents/subagents.mjs.map +1 -1
  274. package/resources/beta/agents/sessions/turns.d.mts +11 -3
  275. package/resources/beta/agents/sessions/turns.d.mts.map +1 -1
  276. package/resources/beta/agents/sessions/turns.d.ts +11 -3
  277. package/resources/beta/agents/sessions/turns.d.ts.map +1 -1
  278. package/resources/beta/agents/sessions/turns.js +58 -15
  279. package/resources/beta/agents/sessions/turns.js.map +1 -1
  280. package/resources/beta/agents/sessions/turns.mjs +58 -15
  281. package/resources/beta/agents/sessions/turns.mjs.map +1 -1
  282. package/resources/beta/agents/vaults/credentials.d.mts +169 -24
  283. package/resources/beta/agents/vaults/credentials.d.mts.map +1 -1
  284. package/resources/beta/agents/vaults/credentials.d.ts +169 -24
  285. package/resources/beta/agents/vaults/credentials.d.ts.map +1 -1
  286. package/resources/beta/agents/vaults/credentials.js +58 -15
  287. package/resources/beta/agents/vaults/credentials.js.map +1 -1
  288. package/resources/beta/agents/vaults/credentials.mjs +58 -15
  289. package/resources/beta/agents/vaults/credentials.mjs.map +1 -1
  290. package/resources/beta/agents/vaults/index.d.mts +1 -1
  291. package/resources/beta/agents/vaults/index.d.mts.map +1 -1
  292. package/resources/beta/agents/vaults/index.d.ts +1 -1
  293. package/resources/beta/agents/vaults/index.d.ts.map +1 -1
  294. package/resources/beta/agents/vaults/index.js.map +1 -1
  295. package/resources/beta/agents/vaults/index.mjs.map +1 -1
  296. package/resources/beta/agents/vaults/vaults.d.mts +17 -6
  297. package/resources/beta/agents/vaults/vaults.d.mts.map +1 -1
  298. package/resources/beta/agents/vaults/vaults.d.ts +17 -6
  299. package/resources/beta/agents/vaults/vaults.d.ts.map +1 -1
  300. package/resources/beta/agents/vaults/vaults.js +58 -12
  301. package/resources/beta/agents/vaults/vaults.js.map +1 -1
  302. package/resources/beta/agents/vaults/vaults.mjs +58 -12
  303. package/resources/beta/agents/vaults/vaults.mjs.map +1 -1
  304. package/resources/beta/assistants.d.mts +8 -1
  305. package/resources/beta/assistants.d.mts.map +1 -1
  306. package/resources/beta/assistants.d.ts +8 -1
  307. package/resources/beta/assistants.d.ts.map +1 -1
  308. package/resources/beta/assistants.js +58 -5
  309. package/resources/beta/assistants.js.map +1 -1
  310. package/resources/beta/assistants.mjs +58 -5
  311. package/resources/beta/assistants.mjs.map +1 -1
  312. package/resources/beta/chatkit/threads.d.mts +16 -2
  313. package/resources/beta/chatkit/threads.d.mts.map +1 -1
  314. package/resources/beta/chatkit/threads.d.ts +16 -2
  315. package/resources/beta/chatkit/threads.d.ts.map +1 -1
  316. package/resources/beta/chatkit/threads.js +64 -24
  317. package/resources/beta/chatkit/threads.js.map +1 -1
  318. package/resources/beta/chatkit/threads.mjs +64 -24
  319. package/resources/beta/chatkit/threads.mjs.map +1 -1
  320. package/resources/beta/responses/responses.d.mts +15 -12
  321. package/resources/beta/responses/responses.d.mts.map +1 -1
  322. package/resources/beta/responses/responses.d.ts +15 -12
  323. package/resources/beta/responses/responses.d.ts.map +1 -1
  324. package/resources/beta/responses/responses.js.map +1 -1
  325. package/resources/beta/responses/responses.mjs.map +1 -1
  326. package/resources/beta/threads/messages.d.mts +8 -1
  327. package/resources/beta/threads/messages.d.mts.map +1 -1
  328. package/resources/beta/threads/messages.d.ts +8 -1
  329. package/resources/beta/threads/messages.d.ts.map +1 -1
  330. package/resources/beta/threads/messages.js +58 -5
  331. package/resources/beta/threads/messages.js.map +1 -1
  332. package/resources/beta/threads/messages.mjs +58 -5
  333. package/resources/beta/threads/messages.mjs.map +1 -1
  334. package/resources/beta/threads/runs/runs.d.mts +8 -1
  335. package/resources/beta/threads/runs/runs.d.mts.map +1 -1
  336. package/resources/beta/threads/runs/runs.d.ts +8 -1
  337. package/resources/beta/threads/runs/runs.d.ts.map +1 -1
  338. package/resources/beta/threads/runs/runs.js +58 -5
  339. package/resources/beta/threads/runs/runs.js.map +1 -1
  340. package/resources/beta/threads/runs/runs.mjs +58 -5
  341. package/resources/beta/threads/runs/runs.mjs.map +1 -1
  342. package/resources/chat/completions/completions.d.mts +13 -3
  343. package/resources/chat/completions/completions.d.mts.map +1 -1
  344. package/resources/chat/completions/completions.d.ts +13 -3
  345. package/resources/chat/completions/completions.d.ts.map +1 -1
  346. package/resources/chat/completions/completions.js +58 -12
  347. package/resources/chat/completions/completions.js.map +1 -1
  348. package/resources/chat/completions/completions.mjs +58 -12
  349. package/resources/chat/completions/completions.mjs.map +1 -1
  350. package/resources/chat/completions/messages.d.mts +8 -1
  351. package/resources/chat/completions/messages.d.mts.map +1 -1
  352. package/resources/chat/completions/messages.d.ts +8 -1
  353. package/resources/chat/completions/messages.d.ts.map +1 -1
  354. package/resources/chat/completions/messages.js +58 -14
  355. package/resources/chat/completions/messages.js.map +1 -1
  356. package/resources/chat/completions/messages.mjs +58 -14
  357. package/resources/chat/completions/messages.mjs.map +1 -1
  358. package/resources/containers/containers.d.mts +8 -1
  359. package/resources/containers/containers.d.mts.map +1 -1
  360. package/resources/containers/containers.d.ts +8 -1
  361. package/resources/containers/containers.d.ts.map +1 -1
  362. package/resources/containers/containers.js +58 -3
  363. package/resources/containers/containers.js.map +1 -1
  364. package/resources/containers/containers.mjs +58 -3
  365. package/resources/containers/containers.mjs.map +1 -1
  366. package/resources/containers/files/files.d.mts +8 -1
  367. package/resources/containers/files/files.d.mts.map +1 -1
  368. package/resources/containers/files/files.d.ts +8 -1
  369. package/resources/containers/files/files.d.ts.map +1 -1
  370. package/resources/containers/files/files.js +58 -3
  371. package/resources/containers/files/files.js.map +1 -1
  372. package/resources/containers/files/files.mjs +58 -3
  373. package/resources/containers/files/files.mjs.map +1 -1
  374. package/resources/conversations/conversations.d.mts +3 -4
  375. package/resources/conversations/conversations.d.mts.map +1 -1
  376. package/resources/conversations/conversations.d.ts +3 -4
  377. package/resources/conversations/conversations.d.ts.map +1 -1
  378. package/resources/conversations/conversations.js.map +1 -1
  379. package/resources/conversations/conversations.mjs.map +1 -1
  380. package/resources/conversations/items.d.mts +8 -1
  381. package/resources/conversations/items.d.mts.map +1 -1
  382. package/resources/conversations/items.d.ts +8 -1
  383. package/resources/conversations/items.d.ts.map +1 -1
  384. package/resources/conversations/items.js +58 -3
  385. package/resources/conversations/items.js.map +1 -1
  386. package/resources/conversations/items.mjs +58 -3
  387. package/resources/conversations/items.mjs.map +1 -1
  388. package/resources/evals/evals.d.mts +8 -1
  389. package/resources/evals/evals.d.mts.map +1 -1
  390. package/resources/evals/evals.d.ts +8 -1
  391. package/resources/evals/evals.d.ts.map +1 -1
  392. package/resources/evals/evals.js +58 -3
  393. package/resources/evals/evals.js.map +1 -1
  394. package/resources/evals/evals.mjs +58 -3
  395. package/resources/evals/evals.mjs.map +1 -1
  396. package/resources/evals/runs/runs.d.mts +8 -1
  397. package/resources/evals/runs/runs.d.mts.map +1 -1
  398. package/resources/evals/runs/runs.d.ts +8 -1
  399. package/resources/evals/runs/runs.d.ts.map +1 -1
  400. package/resources/evals/runs/runs.js +58 -3
  401. package/resources/evals/runs/runs.js.map +1 -1
  402. package/resources/evals/runs/runs.mjs +58 -3
  403. package/resources/evals/runs/runs.mjs.map +1 -1
  404. package/resources/files.d.mts +8 -1
  405. package/resources/files.d.mts.map +1 -1
  406. package/resources/files.d.ts +8 -1
  407. package/resources/files.d.ts.map +1 -1
  408. package/resources/files.js +58 -3
  409. package/resources/files.js.map +1 -1
  410. package/resources/files.mjs +58 -3
  411. package/resources/files.mjs.map +1 -1
  412. package/resources/fine-tuning/checkpoints/permissions.d.mts +16 -2
  413. package/resources/fine-tuning/checkpoints/permissions.d.mts.map +1 -1
  414. package/resources/fine-tuning/checkpoints/permissions.d.ts +16 -2
  415. package/resources/fine-tuning/checkpoints/permissions.d.ts.map +1 -1
  416. package/resources/fine-tuning/checkpoints/permissions.js +64 -26
  417. package/resources/fine-tuning/checkpoints/permissions.js.map +1 -1
  418. package/resources/fine-tuning/checkpoints/permissions.mjs +64 -26
  419. package/resources/fine-tuning/checkpoints/permissions.mjs.map +1 -1
  420. package/resources/fine-tuning/jobs/checkpoints.d.mts +8 -1
  421. package/resources/fine-tuning/jobs/checkpoints.d.mts.map +1 -1
  422. package/resources/fine-tuning/jobs/checkpoints.d.ts +8 -1
  423. package/resources/fine-tuning/jobs/checkpoints.d.ts.map +1 -1
  424. package/resources/fine-tuning/jobs/checkpoints.js +58 -13
  425. package/resources/fine-tuning/jobs/checkpoints.js.map +1 -1
  426. package/resources/fine-tuning/jobs/checkpoints.mjs +58 -13
  427. package/resources/fine-tuning/jobs/checkpoints.mjs.map +1 -1
  428. package/resources/fine-tuning/jobs/jobs.d.mts +16 -2
  429. package/resources/fine-tuning/jobs/jobs.d.mts.map +1 -1
  430. package/resources/fine-tuning/jobs/jobs.d.ts +16 -2
  431. package/resources/fine-tuning/jobs/jobs.d.ts.map +1 -1
  432. package/resources/fine-tuning/jobs/jobs.js +64 -24
  433. package/resources/fine-tuning/jobs/jobs.js.map +1 -1
  434. package/resources/fine-tuning/jobs/jobs.mjs +64 -24
  435. package/resources/fine-tuning/jobs/jobs.mjs.map +1 -1
  436. package/resources/images.d.mts +3 -4
  437. package/resources/images.d.mts.map +1 -1
  438. package/resources/images.d.ts +3 -4
  439. package/resources/images.d.ts.map +1 -1
  440. package/resources/index.d.mts +1 -1
  441. package/resources/index.d.mts.map +1 -1
  442. package/resources/index.d.ts +1 -1
  443. package/resources/index.d.ts.map +1 -1
  444. package/resources/index.js +1 -1
  445. package/resources/index.js.map +1 -1
  446. package/resources/index.mjs +1 -1
  447. package/resources/index.mjs.map +1 -1
  448. package/resources/realtime/client-secrets.d.mts +7 -3
  449. package/resources/realtime/client-secrets.d.mts.map +1 -1
  450. package/resources/realtime/client-secrets.d.ts +7 -3
  451. package/resources/realtime/client-secrets.d.ts.map +1 -1
  452. package/resources/realtime/realtime.d.mts +17 -8
  453. package/resources/realtime/realtime.d.mts.map +1 -1
  454. package/resources/realtime/realtime.d.ts +17 -8
  455. package/resources/realtime/realtime.d.ts.map +1 -1
  456. package/resources/realtime/realtime.js.map +1 -1
  457. package/resources/realtime/realtime.mjs.map +1 -1
  458. package/resources/responses/input-items.d.mts +8 -1
  459. package/resources/responses/input-items.d.mts.map +1 -1
  460. package/resources/responses/input-items.d.ts +8 -1
  461. package/resources/responses/input-items.d.ts.map +1 -1
  462. package/resources/responses/input-items.js +58 -13
  463. package/resources/responses/input-items.js.map +1 -1
  464. package/resources/responses/input-items.mjs +58 -13
  465. package/resources/responses/input-items.mjs.map +1 -1
  466. package/resources/responses/responses.d.mts +26 -12
  467. package/resources/responses/responses.d.mts.map +1 -1
  468. package/resources/responses/responses.d.ts +26 -12
  469. package/resources/responses/responses.d.ts.map +1 -1
  470. package/resources/responses/responses.js +58 -0
  471. package/resources/responses/responses.js.map +1 -1
  472. package/resources/responses/responses.mjs +58 -0
  473. package/resources/responses/responses.mjs.map +1 -1
  474. package/resources/safety/cases.d.mts +26 -0
  475. package/resources/safety/cases.d.mts.map +1 -0
  476. package/resources/safety/cases.d.ts +26 -0
  477. package/resources/safety/cases.d.ts.map +1 -0
  478. package/resources/safety/cases.js +16 -0
  479. package/resources/safety/cases.js.map +1 -0
  480. package/resources/safety/cases.mjs +12 -0
  481. package/resources/safety/cases.mjs.map +1 -0
  482. package/resources/safety/index.d.mts +1 -0
  483. package/resources/safety/index.d.mts.map +1 -1
  484. package/resources/safety/index.d.ts +1 -0
  485. package/resources/safety/index.d.ts.map +1 -1
  486. package/resources/safety/index.js +3 -1
  487. package/resources/safety/index.js.map +1 -1
  488. package/resources/safety/index.mjs +1 -0
  489. package/resources/safety/index.mjs.map +1 -1
  490. package/resources/safety/safety.d.mts +4 -0
  491. package/resources/safety/safety.d.mts.map +1 -1
  492. package/resources/safety/safety.d.ts +4 -0
  493. package/resources/safety/safety.d.ts.map +1 -1
  494. package/resources/safety/safety.js +4 -0
  495. package/resources/safety/safety.js.map +1 -1
  496. package/resources/safety/safety.mjs +4 -0
  497. package/resources/safety/safety.mjs.map +1 -1
  498. package/resources/shared.d.mts +1 -1
  499. package/resources/shared.d.mts.map +1 -1
  500. package/resources/shared.d.ts +1 -1
  501. package/resources/shared.d.ts.map +1 -1
  502. package/resources/skills/skills.d.mts +8 -1
  503. package/resources/skills/skills.d.mts.map +1 -1
  504. package/resources/skills/skills.d.ts +8 -1
  505. package/resources/skills/skills.d.ts.map +1 -1
  506. package/resources/skills/skills.js +58 -3
  507. package/resources/skills/skills.js.map +1 -1
  508. package/resources/skills/skills.mjs +58 -3
  509. package/resources/skills/skills.mjs.map +1 -1
  510. package/resources/skills/versions/versions.d.mts +8 -1
  511. package/resources/skills/versions/versions.d.mts.map +1 -1
  512. package/resources/skills/versions/versions.d.ts +8 -1
  513. package/resources/skills/versions/versions.d.ts.map +1 -1
  514. package/resources/skills/versions/versions.js +58 -3
  515. package/resources/skills/versions/versions.js.map +1 -1
  516. package/resources/skills/versions/versions.mjs +58 -3
  517. package/resources/skills/versions/versions.mjs.map +1 -1
  518. package/resources/vector-stores/files.d.mts +8 -1
  519. package/resources/vector-stores/files.d.mts.map +1 -1
  520. package/resources/vector-stores/files.d.ts +8 -1
  521. package/resources/vector-stores/files.d.ts.map +1 -1
  522. package/resources/vector-stores/files.js +58 -3
  523. package/resources/vector-stores/files.js.map +1 -1
  524. package/resources/vector-stores/files.mjs +58 -3
  525. package/resources/vector-stores/files.mjs.map +1 -1
  526. package/resources/vector-stores/vector-stores.d.mts +8 -1
  527. package/resources/vector-stores/vector-stores.d.mts.map +1 -1
  528. package/resources/vector-stores/vector-stores.d.ts +8 -1
  529. package/resources/vector-stores/vector-stores.d.ts.map +1 -1
  530. package/resources/vector-stores/vector-stores.js +58 -3
  531. package/resources/vector-stores/vector-stores.js.map +1 -1
  532. package/resources/vector-stores/vector-stores.mjs +58 -3
  533. package/resources/vector-stores/vector-stores.mjs.map +1 -1
  534. package/resources/videos.d.mts +16 -2
  535. package/resources/videos.d.mts.map +1 -1
  536. package/resources/videos.d.ts +16 -2
  537. package/resources/videos.d.ts.map +1 -1
  538. package/resources/videos.js +64 -12
  539. package/resources/videos.js.map +1 -1
  540. package/resources/videos.mjs +64 -12
  541. package/resources/videos.mjs.map +1 -1
  542. package/resources/webhooks/event-types.d.mts +17 -0
  543. package/resources/webhooks/event-types.d.mts.map +1 -0
  544. package/resources/webhooks/event-types.d.ts +17 -0
  545. package/resources/webhooks/event-types.d.ts.map +1 -0
  546. package/resources/webhooks/event-types.js +21 -0
  547. package/resources/webhooks/event-types.js.map +1 -0
  548. package/resources/webhooks/event-types.mjs +17 -0
  549. package/resources/webhooks/event-types.mjs.map +1 -0
  550. package/resources/webhooks/index.d.mts +1 -0
  551. package/resources/webhooks/index.d.mts.map +1 -1
  552. package/resources/webhooks/index.d.ts +1 -0
  553. package/resources/webhooks/index.d.ts.map +1 -1
  554. package/resources/webhooks/index.js +3 -0
  555. package/resources/webhooks/index.js.map +1 -1
  556. package/resources/webhooks/index.mjs +1 -0
  557. package/resources/webhooks/index.mjs.map +1 -1
  558. package/resources/webhooks/webhooks.d.mts +368 -2
  559. package/resources/webhooks/webhooks.d.mts.map +1 -1
  560. package/resources/webhooks/webhooks.d.ts +368 -2
  561. package/resources/webhooks/webhooks.d.ts.map +1 -1
  562. package/resources/webhooks/webhooks.js +168 -0
  563. package/resources/webhooks/webhooks.js.map +1 -1
  564. package/resources/webhooks/webhooks.mjs +168 -0
  565. package/resources/webhooks/webhooks.mjs.map +1 -1
  566. package/src/client.ts +16 -10
  567. package/src/internal/parse.ts +14 -10
  568. package/src/internal/utils/log.ts +1 -0
  569. package/src/resources/admin/organization/admin-api-keys.ts +206 -2
  570. package/src/resources/admin/organization/audit-logs.ts +270 -1
  571. package/src/resources/admin/organization/certificates.ts +295 -2
  572. package/src/resources/admin/organization/external-storage.ts +420 -0
  573. package/src/resources/admin/organization/groups/groups.ts +200 -1
  574. package/src/resources/admin/organization/groups/roles.ts +202 -1
  575. package/src/resources/admin/organization/groups/users.ts +202 -1
  576. package/src/resources/admin/organization/index.ts +10 -0
  577. package/src/resources/admin/organization/invites.ts +200 -1
  578. package/src/resources/admin/organization/organization.ts +24 -0
  579. package/src/resources/admin/organization/projects/api-keys.ts +202 -1
  580. package/src/resources/admin/organization/projects/certificates.ts +202 -1
  581. package/src/resources/admin/organization/projects/groups/groups.ts +202 -1
  582. package/src/resources/admin/organization/projects/projects.ts +200 -1
  583. package/src/resources/admin/organization/projects/rate-limits.ts +202 -1
  584. package/src/resources/admin/organization/projects/roles.ts +202 -1
  585. package/src/resources/admin/organization/projects/service-accounts/service-accounts.ts +202 -1
  586. package/src/resources/admin/organization/projects/spend-alerts.ts +202 -1
  587. package/src/resources/admin/organization/projects/users/users.ts +202 -1
  588. package/src/resources/admin/organization/roles.ts +200 -1
  589. package/src/resources/admin/organization/spend-alerts.ts +200 -1
  590. package/src/resources/admin/organization/users/roles.ts +202 -1
  591. package/src/resources/admin/organization/users/users.ts +200 -1
  592. package/src/resources/batches.ts +200 -1
  593. package/src/resources/beta/agents/agents.ts +260 -46
  594. package/src/resources/beta/agents/environments/files.ts +6 -1
  595. package/src/resources/beta/agents/environments/templates.ts +216 -13
  596. package/src/resources/beta/agents/sessions/artifacts.ts +213 -2
  597. package/src/resources/beta/agents/sessions/events.ts +4 -1
  598. package/src/resources/beta/agents/sessions/items.ts +202 -1
  599. package/src/resources/beta/agents/sessions/sessions.ts +218 -8
  600. package/src/resources/beta/agents/sessions/subagents/subagents.ts +202 -1
  601. package/src/resources/beta/agents/sessions/turns.ts +205 -3
  602. package/src/resources/beta/agents/vaults/credentials.ts +389 -23
  603. package/src/resources/beta/agents/vaults/index.ts +2 -0
  604. package/src/resources/beta/agents/vaults/vaults.ts +212 -4
  605. package/src/resources/beta/assistants.ts +200 -1
  606. package/src/resources/beta/chatkit/threads.ts +311 -2
  607. package/src/resources/beta/responses/responses.ts +15 -12
  608. package/src/resources/beta/threads/messages.ts +202 -1
  609. package/src/resources/beta/threads/runs/runs.ts +202 -1
  610. package/src/resources/chat/completions/completions.ts +205 -3
  611. package/src/resources/chat/completions/messages.ts +202 -1
  612. package/src/resources/containers/containers.ts +200 -1
  613. package/src/resources/containers/files/files.ts +202 -1
  614. package/src/resources/conversations/conversations.ts +3 -4
  615. package/src/resources/conversations/items.ts +202 -1
  616. package/src/resources/evals/evals.ts +200 -1
  617. package/src/resources/evals/runs/runs.ts +202 -1
  618. package/src/resources/files.ts +200 -1
  619. package/src/resources/fine-tuning/checkpoints/permissions.ts +297 -2
  620. package/src/resources/fine-tuning/jobs/checkpoints.ts +202 -1
  621. package/src/resources/fine-tuning/jobs/jobs.ts +295 -2
  622. package/src/resources/images.ts +3 -4
  623. package/src/resources/index.ts +1 -1
  624. package/src/resources/realtime/client-secrets.ts +7 -3
  625. package/src/resources/realtime/realtime.ts +17 -8
  626. package/src/resources/responses/input-items.ts +202 -1
  627. package/src/resources/responses/responses.ts +263 -13
  628. package/src/resources/safety/cases.ts +39 -0
  629. package/src/resources/safety/index.ts +1 -0
  630. package/src/resources/safety/safety.ts +6 -0
  631. package/src/resources/shared.ts +2 -2
  632. package/src/resources/skills/skills.ts +200 -1
  633. package/src/resources/skills/versions/versions.ts +202 -1
  634. package/src/resources/vector-stores/files.ts +202 -1
  635. package/src/resources/vector-stores/vector-stores.ts +200 -1
  636. package/src/resources/videos.ts +295 -2
  637. package/src/resources/webhooks/api.md +42 -21
  638. package/src/resources/webhooks/event-types.ts +21 -0
  639. package/src/resources/webhooks/index.ts +1 -0
  640. package/src/resources/webhooks/webhooks.ts +752 -1
  641. package/src/version.ts +1 -1
  642. package/version.d.mts +1 -1
  643. package/version.d.ts +1 -1
  644. package/version.js +1 -1
  645. package/version.mjs +1 -1
@@ -74,7 +74,14 @@ export declare class Credentials extends APIResource {
74
74
  * }
75
75
  * ```
76
76
  */
77
- list(vaultID: string, query?: CredentialListParams | null | undefined, options?: RequestOptions): PagePromise<CredentialsPage, Credential>;
77
+ list(vaultID: string, query?: (CredentialListParams & ({
78
+ [K in 'method' | 'path' | 'query' | 'body' | 'headers' | 'maxRetries' | 'stream' | 'timeout' | 'httpAgent' | 'fetchOptions' | 'signal' | 'idempotencyKey' | 'defaultBaseURL' | '__metadata' | '__binaryRequest' | '__binaryResponse' | '__streamClass' | '__security' | '__synthesizeEventData']?: never;
79
+ } | null | undefined)) | null | undefined, options?: RequestOptions): PagePromise<CredentialsPage, Credential>;
80
+ list(vaultID: string, options?: {
81
+ [K in 'headers' | 'maxRetries' | 'timeout' | 'signal' | 'idempotencyKey' | 'query']?: RequestOptions[K];
82
+ } & {
83
+ [K in 'method' | 'path' | 'body' | 'stream' | 'httpAgent' | 'fetchOptions' | 'defaultBaseURL' | '__metadata' | '__binaryRequest' | '__binaryResponse' | '__streamClass' | '__security' | '__synthesizeEventData']?: never;
84
+ }): PagePromise<CredentialsPage, Credential>;
78
85
  /**
79
86
  * Deletes a vault credential. See
80
87
  * [vaults](https://developers.openai.com/api/docs/guides/agents-api/tools/vaults).
@@ -92,7 +99,7 @@ export declare class Credentials extends APIResource {
92
99
  }
93
100
  export type CredentialsPage = CursorPage<Credential>;
94
101
  /**
95
- * Metadata for a stored MCP server credential. Secret values are never returned.
102
+ * Metadata for a stored credential. Secret values are never returned.
96
103
  */
97
104
  export interface Credential {
98
105
  /**
@@ -100,7 +107,7 @@ export interface Credential {
100
107
  */
101
108
  id: string;
102
109
  /**
103
- * The authentication method and non-secret configuration for the MCP server.
110
+ * The authentication method and non-secret configuration of the credential.
104
111
  */
105
112
  auth: CredentialAuth;
106
113
  /**
@@ -125,10 +132,9 @@ export interface Credential {
125
132
  vault_id: string;
126
133
  }
127
134
  /**
128
- * The MCP server and authentication configuration of a vault credential, excluding
129
- * secrets.
135
+ * The authentication configuration of a vault credential, excluding secrets.
130
136
  */
131
- export type CredentialAuth = CredentialAuth.VaultCredentialAuthResourceMcpOauth | CredentialAuth.VaultCredentialAuthResourceStaticBearer;
137
+ export type CredentialAuth = CredentialAuth.VaultCredentialAuthResourceMcpOauth | CredentialAuth.VaultCredentialAuthResourceStaticBearer | CredentialAuth.VaultCredentialAuthResourceEnvironmentVariable;
132
138
  export declare namespace CredentialAuth {
133
139
  /**
134
140
  * Public metadata for an OAuth credential; tokens and client secrets are never
@@ -144,8 +150,7 @@ export declare namespace CredentialAuth {
144
150
  */
145
151
  mcp_server_url: string;
146
152
  /**
147
- * Configuration used to refresh an MCP OAuth access token, excluding secret
148
- * values.
153
+ * Public refresh metadata without refresh tokens or OAuth client secrets.
149
154
  */
150
155
  refresh: VaultCredentialAuthResourceMcpOauth.Refresh | null;
151
156
  /**
@@ -155,8 +160,7 @@ export declare namespace CredentialAuth {
155
160
  }
156
161
  namespace VaultCredentialAuthResourceMcpOauth {
157
162
  /**
158
- * Configuration used to refresh an MCP OAuth access token, excluding secret
159
- * values.
163
+ * Public refresh metadata without refresh tokens or OAuth client secrets.
160
164
  */
161
165
  interface Refresh {
162
166
  /**
@@ -195,11 +199,32 @@ export declare namespace CredentialAuth {
195
199
  */
196
200
  type: 'static_bearer';
197
201
  }
202
+ /**
203
+ * Metadata for an HTTP credential used only in OpenAI-hosted environments. Sandbox
204
+ * code receives a placeholder. The proxy substitutes the secret for allowed HTTPS
205
+ * destinations on ports 443 and 8443. The real secret is not available to sandbox
206
+ * code for local computation and is never returned in this resource.
207
+ */
208
+ interface VaultCredentialAuthResourceEnvironmentVariable {
209
+ /**
210
+ * The destinations where the proxy can substitute the secret, subject to the
211
+ * environment network policy.
212
+ */
213
+ networking: CredentialsAPI.CredentialNetworking;
214
+ /**
215
+ * The environment variable name that receives the placeholder in the sandbox.
216
+ */
217
+ secret_name: string;
218
+ /**
219
+ * The type of the object. Always `environment_variable`.
220
+ */
221
+ type: 'environment_variable';
222
+ }
198
223
  }
199
224
  /**
200
- * Authentication credentials for an MCP server used by agent tools.
225
+ * Authentication credentials for an MCP server or an OpenAI-hosted environment.
201
226
  */
202
- export type CredentialAuthCreateParam = CredentialAuthCreateParam.CreateVaultCredentialAuthParamMcpOauth | CredentialAuthCreateParam.CreateVaultCredentialAuthParamStaticBearer;
227
+ export type CredentialAuthCreateParam = CredentialAuthCreateParam.CreateVaultCredentialAuthParamMcpOauth | CredentialAuthCreateParam.CreateVaultCredentialAuthParamStaticBearer | CredentialAuthCreateParam.CreateVaultCredentialAuthParamEnvironmentVariable;
203
228
  export declare namespace CredentialAuthCreateParam {
204
229
  /**
205
230
  * An OAuth credential for an HTTPS MCP destination.
@@ -222,13 +247,13 @@ export declare namespace CredentialAuthCreateParam {
222
247
  */
223
248
  expires_at?: string | null;
224
249
  /**
225
- * Configuration for refreshing the access token of an MCP OAuth credential.
250
+ * Optional refresh configuration for an HTTPS OAuth token endpoint.
226
251
  */
227
252
  refresh?: CreateVaultCredentialAuthParamMcpOauth.Refresh | null;
228
253
  }
229
254
  namespace CreateVaultCredentialAuthParamMcpOauth {
230
255
  /**
231
- * Configuration for refreshing the access token of an MCP OAuth credential.
256
+ * Optional refresh configuration for an HTTPS OAuth token endpoint.
232
257
  */
233
258
  interface Refresh {
234
259
  /**
@@ -278,12 +303,44 @@ export declare namespace CredentialAuthCreateParam {
278
303
  */
279
304
  type: 'static_bearer';
280
305
  }
306
+ /**
307
+ * An HTTP credential for OpenAI-hosted environments only. The sandbox receives an
308
+ * environment variable containing a placeholder, not the secret. Use the
309
+ * placeholder unchanged in outgoing requests. The egress proxy replaces the
310
+ * placeholder with the secret for allowed HTTPS destinations on ports 443 and
311
+ * 8443. Sandbox code cannot read the real secret or use it for local computation,
312
+ * such as signing a request.
313
+ */
314
+ interface CreateVaultCredentialAuthParamEnvironmentVariable {
315
+ /**
316
+ * The destinations where the proxy can substitute this secret. The environment
317
+ * network policy must also allow them.
318
+ */
319
+ networking: CredentialsAPI.CredentialNetworkingParam;
320
+ /**
321
+ * The environment variable name that receives the placeholder, such as
322
+ * `SERVICE_API_KEY`. Use ASCII letters, digits, and underscores, starting with a
323
+ * letter or underscore. Names starting with `CODEX_` and managed proxy or
324
+ * certificate variable names are reserved.
325
+ */
326
+ secret_name: string;
327
+ /**
328
+ * The write-only secret to store. Never returned in credential resources or
329
+ * supplied directly to sandbox code. Must be nonempty and must not contain
330
+ * carriage returns, newlines, or NUL bytes.
331
+ */
332
+ secret_value: string;
333
+ /**
334
+ * The type of the object. Always `environment_variable`.
335
+ */
336
+ type: 'environment_variable';
337
+ }
281
338
  }
282
339
  /**
283
- * Updates to a vault credential without changing its authentication method or MCP
284
- * server.
340
+ * Updates to a vault credential without changing its authentication method or
341
+ * destination configuration.
285
342
  */
286
- export type CredentialAuthRotateParam = CredentialAuthRotateParam.RotateVaultCredentialAuthParamMcpOauth | CredentialAuthRotateParam.RotateVaultCredentialAuthParamStaticBearer;
343
+ export type CredentialAuthRotateParam = CredentialAuthRotateParam.RotateVaultCredentialAuthParamMcpOauth | CredentialAuthRotateParam.RotateVaultCredentialAuthParamStaticBearer | CredentialAuthRotateParam.RotateVaultCredentialAuthParamEnvironmentVariable;
287
344
  export declare namespace CredentialAuthRotateParam {
288
345
  /**
289
346
  * Rotate an OAuth credential for an HTTPS MCP destination.
@@ -304,13 +361,13 @@ export declare namespace CredentialAuthRotateParam {
304
361
  */
305
362
  expires_at?: string | null;
306
363
  /**
307
- * Updates to an MCP credential's existing OAuth refresh configuration.
364
+ * Optional write-only refresh-token and client-secret updates.
308
365
  */
309
366
  refresh?: RotateVaultCredentialAuthParamMcpOauth.Refresh | null;
310
367
  }
311
368
  namespace RotateVaultCredentialAuthParamMcpOauth {
312
369
  /**
313
- * Updates to an MCP credential's existing OAuth refresh configuration.
370
+ * Optional write-only refresh-token and client-secret updates.
314
371
  */
315
372
  interface Refresh {
316
373
  /**
@@ -324,8 +381,7 @@ export declare namespace CredentialAuthRotateParam {
324
381
  */
325
382
  scope?: string | null;
326
383
  /**
327
- * Client-secret updates that preserve the credential's OAuth authentication
328
- * method.
384
+ * Client-secret updates for the existing token endpoint authentication method.
329
385
  */
330
386
  token_endpoint_auth?: CredentialsAPI.McpOauthTokenEndpointAuthRotateParam | null;
331
387
  }
@@ -344,6 +400,22 @@ export declare namespace CredentialAuthRotateParam {
344
400
  */
345
401
  type: 'static_bearer';
346
402
  }
403
+ /**
404
+ * Replace the secret for an OpenAI-hosted environment credential. The environment
405
+ * variable name and networking configuration remain unchanged.
406
+ */
407
+ interface RotateVaultCredentialAuthParamEnvironmentVariable {
408
+ /**
409
+ * The write-only replacement secret. Never returned in credential resources or
410
+ * supplied directly to sandbox code. Must be nonempty and must not contain
411
+ * carriage returns, newlines, or NUL bytes.
412
+ */
413
+ secret_value: string;
414
+ /**
415
+ * The type of the object. Always `environment_variable`.
416
+ */
417
+ type: 'environment_variable';
418
+ }
347
419
  }
348
420
  /**
349
421
  * Confirmation that a vault credential was deleted.
@@ -362,6 +434,74 @@ export interface CredentialDeleted {
362
434
  */
363
435
  object: 'vault.credential.deleted';
364
436
  }
437
+ /**
438
+ * Destination permissions for an environment-variable credential. These do not
439
+ * grant network access to the environment.
440
+ */
441
+ export type CredentialNetworking = CredentialNetworking.VaultCredentialNetworkingResourceUnrestricted | CredentialNetworking.VaultCredentialNetworkingResourceLimited;
442
+ export declare namespace CredentialNetworking {
443
+ /**
444
+ * Allows substitution for destinations permitted by the environment network
445
+ * policy. Requires `environment.network.access` to be `restricted`, with explicit
446
+ * `allowed_domains`.
447
+ */
448
+ interface VaultCredentialNetworkingResourceUnrestricted {
449
+ /**
450
+ * The type of the object. Always `unrestricted`.
451
+ */
452
+ type: 'unrestricted';
453
+ }
454
+ /**
455
+ * Allows substitution only for the listed hosts. The environment network policy
456
+ * must also allow these hosts.
457
+ */
458
+ interface VaultCredentialNetworkingResourceLimited {
459
+ /**
460
+ * The 1 to 16 distinct allowed hostnames or IPv4 addresses, normalized to
461
+ * lowercase. Entries contain no scheme, path, port, or wildcard. IPv6 addresses
462
+ * are not supported.
463
+ */
464
+ allowed_hosts: Array<string>;
465
+ /**
466
+ * The type of the object. Always `limited`.
467
+ */
468
+ type: 'limited';
469
+ }
470
+ }
471
+ /**
472
+ * Destination permissions for an environment-variable credential. These do not
473
+ * grant network access to the environment.
474
+ */
475
+ export type CredentialNetworkingParam = CredentialNetworkingParam.VaultCredentialNetworkingParamUnrestricted | CredentialNetworkingParam.VaultCredentialNetworkingParamLimited;
476
+ export declare namespace CredentialNetworkingParam {
477
+ /**
478
+ * Allows substitution for destinations permitted by the environment network
479
+ * policy. Requires `environment.network.access` to be `restricted`, with explicit
480
+ * `allowed_domains`.
481
+ */
482
+ interface VaultCredentialNetworkingParamUnrestricted {
483
+ /**
484
+ * The type of the object. Always `unrestricted`.
485
+ */
486
+ type: 'unrestricted';
487
+ }
488
+ /**
489
+ * Allows substitution only for the listed hosts. The environment network policy
490
+ * must also allow these hosts.
491
+ */
492
+ interface VaultCredentialNetworkingParamLimited {
493
+ /**
494
+ * The 1 to 16 distinct allowed hostnames or IPv4 addresses, normalized to
495
+ * lowercase. Entries contain no scheme, path, port, or wildcard. IPv6 addresses
496
+ * are not supported.
497
+ */
498
+ allowed_hosts: Array<string>;
499
+ /**
500
+ * The type of the object. Always `limited`.
501
+ */
502
+ type: 'limited';
503
+ }
504
+ }
365
505
  /**
366
506
  * The client authentication method used for OAuth token refresh.
367
507
  */
@@ -473,7 +613,7 @@ export declare namespace McpOauthTokenEndpointAuthRotateParam {
473
613
  }
474
614
  export interface CredentialCreateParams {
475
615
  /**
476
- * The authentication method and secret values to store for the MCP server.
616
+ * The authentication method and write-only secret values to store.
477
617
  */
478
618
  auth: CredentialAuthCreateParam;
479
619
  /**
@@ -499,7 +639,12 @@ export interface CredentialUpdateParams {
499
639
  */
500
640
  auth: CredentialAuthRotateParam;
501
641
  }
502
- export interface CredentialListParams extends CursorPageParams {
642
+ export interface CredentialListParams extends Omit<CursorPageParams, 'limit'> {
643
+ /**
644
+ * The maximum number of resources to return. Defaults to 20. Values are clamped
645
+ * between 1 and 100.
646
+ */
647
+ limit?: number | null;
503
648
  /**
504
649
  * Sort order by the `created_at` timestamp. Use `asc` for ascending order or
505
650
  * `desc` for descending order. Defaults to `desc`.
@@ -521,6 +666,6 @@ export interface CredentialDeleteParams {
521
666
  vault_id: string;
522
667
  }
523
668
  export declare namespace Credentials {
524
- export { type Credential as Credential, type CredentialAuth as CredentialAuth, type CredentialAuthCreateParam as CredentialAuthCreateParam, type CredentialAuthRotateParam as CredentialAuthRotateParam, type CredentialDeleted as CredentialDeleted, type McpOauthTokenEndpointAuth as McpOauthTokenEndpointAuth, type McpOauthTokenEndpointAuthCreateParam as McpOauthTokenEndpointAuthCreateParam, type McpOauthTokenEndpointAuthRotateParam as McpOauthTokenEndpointAuthRotateParam, type CredentialsPage as CredentialsPage, type CredentialCreateParams as CredentialCreateParams, type CredentialRetrieveParams as CredentialRetrieveParams, type CredentialUpdateParams as CredentialUpdateParams, type CredentialListParams as CredentialListParams, type CredentialDeleteParams as CredentialDeleteParams, };
669
+ export { type Credential as Credential, type CredentialAuth as CredentialAuth, type CredentialAuthCreateParam as CredentialAuthCreateParam, type CredentialAuthRotateParam as CredentialAuthRotateParam, type CredentialDeleted as CredentialDeleted, type CredentialNetworking as CredentialNetworking, type CredentialNetworkingParam as CredentialNetworkingParam, type McpOauthTokenEndpointAuth as McpOauthTokenEndpointAuth, type McpOauthTokenEndpointAuthCreateParam as McpOauthTokenEndpointAuthCreateParam, type McpOauthTokenEndpointAuthRotateParam as McpOauthTokenEndpointAuthRotateParam, type CredentialsPage as CredentialsPage, type CredentialCreateParams as CredentialCreateParams, type CredentialRetrieveParams as CredentialRetrieveParams, type CredentialUpdateParams as CredentialUpdateParams, type CredentialListParams as CredentialListParams, type CredentialDeleteParams as CredentialDeleteParams, };
525
670
  }
526
671
  //# sourceMappingURL=credentials.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"credentials.d.ts","sourceRoot":"","sources":["../../../../src/resources/beta/agents/vaults/credentials.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,qCAAkC;AACxD,OAAO,KAAK,cAAc,yBAAsB;AAChD,OAAO,KAAK,SAAS,oBAAiB;AACtC,OAAO,EAAE,UAAU,EAAE,wCAAqC;AAC1D,OAAO,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE,uCAAoC;AAE7F,OAAO,EAAE,cAAc,EAAE,gDAA6C;AAGtE,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,MAAM,CAAC,OAAO,EAAE,MAAM,EAA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KAAK,oCAAoC,IAAI,oCAAoC,EACjF,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
1
+ {"version":3,"file":"credentials.d.ts","sourceRoot":"","sources":["../../../../src/resources/beta/agents/vaults/credentials.ts"],"names":[],"mappings":"AAEA,OAAO,EAAE,WAAW,EAAE,qCAAkC;AACxD,OAAO,KAAK,cAAc,yBAAsB;AAChD,OAAO,KAAK,SAAS,oBAAiB;AACtC,OAAO,EAAE,UAAU,EAAE,wCAAqC;AAC1D,OAAO,EAAE,UAAU,EAAE,KAAK,gBAAgB,EAAE,WAAW,EAAE,uCAAoC;AAE7F,OAAO,EAAE,cAAc,EAAE,gDAA6C;AA8GtE,qBAAa,WAAY,SAAQ,WAAW;IAC1C;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,MAAM,CAAC,OAAO,EAAE,MAAM,EAAE,IAAI,EAAE,sBAAsB,EAAE,OAAO,CAAC,EAAE,cAAc,GAAG,UAAU,CAAC,UAAU,CAAC;IASvG;;;;;;;;;;;;OAYG;IACH,QAAQ,CACN,YAAY,EAAE,MAAM,EACpB,MAAM,EAAE,wBAAwB,EAChC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,UAAU,CAAC;IASzB;;;;;;;;;;;;;;;;OAgBG;IACH,MAAM,CACJ,YAAY,EAAE,MAAM,EACpB,MAAM,EAAE,sBAAsB,EAC9B,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CAAC,UAAU,CAAC;IAUzB;;;;;;;;;;;;;;OAcG;IACH,IAAI,CACF,OAAO,EAAE,MAAM,EACf,KAAK,CAAC,EACF,CAAC,oBAAoB,GACnB,CACI;SAEI,CAAC,IACG,QAAQ,GACR,MAA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AAC,EAAE,KAAK,GAAG,MAAM,CAAC;IAEvB;;;OAGG;IACH,MAAM,CAAC,EAAE,SAAS,CAAC,iBAAiB,CAAC;CACtC;AAED,MAAM,WAAW,sBAAsB;IACrC;;OAEG;IACH,QAAQ,EAAE,MAAM,CAAC;CAClB;AAED,MAAM,CAAC,OAAO,WAAW,WAAW,CAAC;IACnC,OAAO,EACL,KAAK,UAAU,IAAI,UAAU,EAC7B,KAAK,cAAc,IAAI,cAAc,EACrC,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,iBAAiB,IAAI,iBAAiB,EAC3C,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,yBAAyB,IAAI,yBAAyB,EAC3D,KAAK,oCAAoC,IAAI,oCAAoC,EACjF,KAAK,oCAAoC,IAAI,oCAAoC,EACjF,KAAK,eAAe,IAAI,eAAe,EACvC,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,wBAAwB,IAAI,wBAAwB,EACzD,KAAK,sBAAsB,IAAI,sBAAsB,EACrD,KAAK,oBAAoB,IAAI,oBAAoB,EACjD,KAAK,sBAAsB,IAAI,sBAAsB,GACtD,CAAC;CACH"}
@@ -6,6 +6,58 @@ const resource_1 = require("../../../../core/resource.js");
6
6
  const pagination_1 = require("../../../../core/pagination.js");
7
7
  const headers_1 = require("../../../../internal/headers.js");
8
8
  const path_1 = require("../../../../internal/utils/path.js");
9
+ // Recognizable options across SDK runtime versions. Keep this independent of
10
+ // private RequestOptions fields so older handwritten runtimes still compile.
11
+ const normalizeRequestOptionsForQueryKeys = new Set([
12
+ 'method',
13
+ 'path',
14
+ 'query',
15
+ 'body',
16
+ 'headers',
17
+ 'maxRetries',
18
+ 'stream',
19
+ 'timeout',
20
+ 'httpAgent',
21
+ 'fetchOptions',
22
+ 'signal',
23
+ 'idempotencyKey',
24
+ 'defaultBaseURL',
25
+ '__metadata',
26
+ '__binaryRequest',
27
+ '__binaryResponse',
28
+ '__streamClass',
29
+ '__security',
30
+ '__synthesizeEventData',
31
+ ]);
32
+ function normalizeRequestOptionsForQuery(value, queryKeys, options) {
33
+ if (typeof value !== 'object' || value === null)
34
+ return undefined;
35
+ // Optional never fields can still be explicitly undefined unless consumers
36
+ // enable exactOptionalPropertyTypes. Snapshot data without invoking getters.
37
+ const entries = Object.entries(Object.getOwnPropertyDescriptors(value)).filter(([, descriptor]) => descriptor.enumerable && (!('value' in descriptor) || descriptor.value !== undefined));
38
+ const keys = entries.map(([key]) => key);
39
+ const requestOnly = keys.some((key) => normalizeRequestOptionsForQueryKeys.has(key) && !queryKeys.includes(key));
40
+ if (!requestOnly)
41
+ return undefined;
42
+ // Declared query fields, including stream, must use the query argument.
43
+ // Mixing them with request-only options is ambiguous and could change the return type.
44
+ if (options !== undefined ||
45
+ keys.some((key) => !normalizeRequestOptionsForQueryKeys.has(key) || queryKeys.includes(key))) {
46
+ throw new TypeError('Query parameters and request options must be passed as separate arguments.');
47
+ }
48
+ // The query position must not gain authority to change the request destination
49
+ // or transport. Those overrides require the explicit request options argument.
50
+ if (keys.some((key) => !['headers', 'maxRetries', 'timeout', 'signal', 'idempotencyKey', 'query'].includes(key))) {
51
+ throw new TypeError('Pass transport overrides in the explicit request options argument.');
52
+ }
53
+ // Copy only the validated fields. Spreading value would reintroduce undefined
54
+ // transport overrides, and deleting them would mutate the caller's object.
55
+ return Object.fromEntries(entries.map(([key, descriptor]) => {
56
+ if ('value' in descriptor)
57
+ return [key, descriptor.value];
58
+ return [key, descriptor.get ? Reflect.apply(descriptor.get, value, []) : undefined];
59
+ }));
60
+ }
9
61
  class Credentials extends resource_1.APIResource {
10
62
  /**
11
63
  * Creates a vault credential. Secret values are write-only and are never returned.
@@ -83,22 +135,13 @@ class Credentials extends resource_1.APIResource {
83
135
  __security: { bearerAuth: true },
84
136
  });
85
137
  }
86
- /**
87
- * Lists a vault's credentials using ID-based pagination without returning secret
88
- * values. See
89
- * [vaults](https://developers.openai.com/api/docs/guides/agents-api/tools/vaults).
90
- *
91
- * @example
92
- * ```ts
93
- * // Automatically fetches more pages as needed.
94
- * for await (const credential of client.beta.agents.vaults.credentials.list(
95
- * 'vault_id',
96
- * )) {
97
- * // ...
98
- * }
99
- * ```
100
- */
101
138
  list(vaultID, query = {}, options) {
139
+ const normalizeRequestOptionsForQueryOptions = normalizeRequestOptionsForQuery(query, ['after', 'limit', 'order', 'status'], options);
140
+ if (normalizeRequestOptionsForQueryOptions !== undefined) {
141
+ options = normalizeRequestOptionsForQueryOptions;
142
+ query = {};
143
+ }
144
+ query = query;
102
145
  return this._client.getAPIList((0, path_1.path) `/vaults/${vaultID}/credentials`, (pagination_1.CursorPage), {
103
146
  query,
104
147
  ...options,
@@ -1 +1 @@
1
- {"version":3,"file":"credentials.js","sourceRoot":"","sources":["../../../../src/resources/beta/agents/vaults/credentials.ts"],"names":[],"mappings":";AAAA,qFAAqF;;;AAErF,2DAAwD;AAIxD,+DAA6F;AAC7F,6DAA4D;AAE5D,6DAAuD;AAEvD,MAAa,WAAY,SAAQ,sBAAW;IAC1C;;;;;;;;;;;;;;;;;;;;OAoBG;IACH,MAAM,CAAC,OAAe,EAAE,IAA4B,EAAE,OAAwB;QAC5E,OAAO,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,IAAA,WAAI,EAAA,WAAW,OAAO,cAAc,EAAE;YAC7D,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,aAAa,EAAE,WAAW,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;YACzE,UAAU,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE;SACjC,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,QAAQ,CACN,YAAoB,EACpB,MAAgC,EAChC,OAAwB;QAExB,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,CAAC;QAC5B,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oB,EACpB,MAA8B,EAC9B,OAAwB;QAExB,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,CAAC;QAC5B,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAA,WAAI,EAAA,WAAW,QAAQ,gBAAgB,YAAY,EAAE,EAAE;YAChF,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,aAAa,EAAE,WAAW,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;YACzE,UAAU,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE;SACjC,CAAC,CAAC;IACL,CAAC;CACF;AA7ID,kCA6IC"}
1
+ {"version":3,"file":"credentials.js","sourceRoot":"","sources":["../../../../src/resources/beta/agents/vaults/credentials.ts"],"names":[],"mappings":";AAAA,qFAAqF;;;AAErF,2DAAwD;AAIxD,+DAA6F;AAC7F,6DAA4D;AAE5D,6DAAuD;AAEvD,6EAA6E;AAC7E,6EAA6E;AAC7E,MAAM,mCAAmC,GAAG,IAAI,GAAG,CAAC;IAClD,QAAQ;IACR,MAAM;IACN,OAAO;IACP,MAAM;IACN,SAAS;IACT,YAAY;IACZ,QAAQ;IACR,SAAS;IACT,WAAW;IACX,cAAc;IACd,QAAQ;IACR,gBAAgB;IAChB,gBAAgB;IAChB,YAAY;IACZ,iBAAiB;IACjB,kBAAkB;IAClB,eAAe;IACf,YAAY;IACZ,uBAAuB;CACxB,CAAC,CAAC;AAEH,SAAS,+BAA+B,CACtC,KAAc,EACd,SAAgC,EAChC,OAAmC;IAuBnC,IAAI,OAAO,KAAK,KAAK,QAAQ,IAAI,KAAK,KAAK,IAAI;QAAE,OAAO,SAAS,CAAC;IAClE,2EAA2E;IAC3E,6EAA6E;IAC7E,MAAM,OAAO,GAAG,MAAM,CAAC,OAAO,CAAC,MAAM,CAAC,yBAAyB,CAAC,KAAK,CAAC,CAAC,CAAC,MAAM,CAC5E,CAAC,CAAC,EAAE,UAAU,CAAC,EAAE,EAA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BAAgB,YAAY,EAAE,EAAE;YAChF,GAAG,OAAO;YACV,OAAO,EAAE,IAAA,sBAAY,EAAC,CAAC,EAAE,aAAa,EAAE,WAAW,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;YACzE,UAAU,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE;SACjC,CAAC,CAAC;IACL,CAAC;CACF;AA3OD,kCA2OC"}
@@ -3,6 +3,58 @@ import { APIResource } from "../../../../core/resource.mjs";
3
3
  import { CursorPage } from "../../../../core/pagination.mjs";
4
4
  import { buildHeaders } from "../../../../internal/headers.mjs";
5
5
  import { path } from "../../../../internal/utils/path.mjs";
6
+ // Recognizable options across SDK runtime versions. Keep this independent of
7
+ // private RequestOptions fields so older handwritten runtimes still compile.
8
+ const normalizeRequestOptionsForQueryKeys = new Set([
9
+ 'method',
10
+ 'path',
11
+ 'query',
12
+ 'body',
13
+ 'headers',
14
+ 'maxRetries',
15
+ 'stream',
16
+ 'timeout',
17
+ 'httpAgent',
18
+ 'fetchOptions',
19
+ 'signal',
20
+ 'idempotencyKey',
21
+ 'defaultBaseURL',
22
+ '__metadata',
23
+ '__binaryRequest',
24
+ '__binaryResponse',
25
+ '__streamClass',
26
+ '__security',
27
+ '__synthesizeEventData',
28
+ ]);
29
+ function normalizeRequestOptionsForQuery(value, queryKeys, options) {
30
+ if (typeof value !== 'object' || value === null)
31
+ return undefined;
32
+ // Optional never fields can still be explicitly undefined unless consumers
33
+ // enable exactOptionalPropertyTypes. Snapshot data without invoking getters.
34
+ const entries = Object.entries(Object.getOwnPropertyDescriptors(value)).filter(([, descriptor]) => descriptor.enumerable && (!('value' in descriptor) || descriptor.value !== undefined));
35
+ const keys = entries.map(([key]) => key);
36
+ const requestOnly = keys.some((key) => normalizeRequestOptionsForQueryKeys.has(key) && !queryKeys.includes(key));
37
+ if (!requestOnly)
38
+ return undefined;
39
+ // Declared query fields, including stream, must use the query argument.
40
+ // Mixing them with request-only options is ambiguous and could change the return type.
41
+ if (options !== undefined ||
42
+ keys.some((key) => !normalizeRequestOptionsForQueryKeys.has(key) || queryKeys.includes(key))) {
43
+ throw new TypeError('Query parameters and request options must be passed as separate arguments.');
44
+ }
45
+ // The query position must not gain authority to change the request destination
46
+ // or transport. Those overrides require the explicit request options argument.
47
+ if (keys.some((key) => !['headers', 'maxRetries', 'timeout', 'signal', 'idempotencyKey', 'query'].includes(key))) {
48
+ throw new TypeError('Pass transport overrides in the explicit request options argument.');
49
+ }
50
+ // Copy only the validated fields. Spreading value would reintroduce undefined
51
+ // transport overrides, and deleting them would mutate the caller's object.
52
+ return Object.fromEntries(entries.map(([key, descriptor]) => {
53
+ if ('value' in descriptor)
54
+ return [key, descriptor.value];
55
+ return [key, descriptor.get ? Reflect.apply(descriptor.get, value, []) : undefined];
56
+ }));
57
+ }
6
58
  export class Credentials extends APIResource {
7
59
  /**
8
60
  * Creates a vault credential. Secret values are write-only and are never returned.
@@ -80,22 +132,13 @@ export class Credentials extends APIResource {
80
132
  __security: { bearerAuth: true },
81
133
  });
82
134
  }
83
- /**
84
- * Lists a vault's credentials using ID-based pagination without returning secret
85
- * values. See
86
- * [vaults](https://developers.openai.com/api/docs/guides/agents-api/tools/vaults).
87
- *
88
- * @example
89
- * ```ts
90
- * // Automatically fetches more pages as needed.
91
- * for await (const credential of client.beta.agents.vaults.credentials.list(
92
- * 'vault_id',
93
- * )) {
94
- * // ...
95
- * }
96
- * ```
97
- */
98
135
  list(vaultID, query = {}, options) {
136
+ const normalizeRequestOptionsForQueryOptions = normalizeRequestOptionsForQuery(query, ['after', 'limit', 'order', 'status'], options);
137
+ if (normalizeRequestOptionsForQueryOptions !== undefined) {
138
+ options = normalizeRequestOptionsForQueryOptions;
139
+ query = {};
140
+ }
141
+ query = query;
99
142
  return this._client.getAPIList(path `/vaults/${vaultID}/credentials`, (CursorPage), {
100
143
  query,
101
144
  ...options,
@@ -1 +1 @@
1
- {"version":3,"file":"credentials.mjs","sourceRoot":"","sources":["../../../../src/resources/beta/ag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AAI,CAAC,IAAI,CAAA,WAAW,QAAQ,gBAAgB,YAAY,EAAE,EAAE;YAC9E,IAAI;YACJ,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,aAAa,EAAE,WAAW,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;YACzE,UAAU,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE;SACjC,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;;;OAcG;IACH,IAAI,CACF,OAAe,EACf,QAAiD,EAAE,EACnD,OAAwB;QAExB,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,IAAI,CAAA,WAAW,OAAO,cAAc,EAAE,CAAA,UAAsB,CAAA,EAAE;YAC3F,KAAK;YACL,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,aAAa,EAAE,WAAW,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;YACzE,UAAU,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE;SACjC,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,MAAM,CACJ,YAAoB,EACpB,MAA8B,EAC9B,OAAwB;QAExB,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,CAAC;QAC5B,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,WAAW,QAAQ,gBAAgB,YAAY,EAAE,EAAE;YAChF,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,aAAa,EAAE,WAAW,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;YACzE,UAAU,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE;SACjC,CAAC,CAAC;IACL,CAAC;CACF"}
1
+ {"version":3,"file":"credentials.mjs","sourceRoot":"","sources":["../../../../src/resources/beta/agents/vaults/credentials.ts"],"names":[],"mappings":"AAAA,qFAAqF;AAErF,OAAO,EAAE,WAAW,EAAE,s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,OAAO,EAAE,OAAO,EAAE,QAAQ,CAAC,EACrC,OAAO,CACR,CAAC;QACF,IAAI,sCAAsC,KAAK,SAAS,EAAE,CAAC;YACzD,OAAO,GAAG,sCAAsC,CAAC;YACjD,KAAK,GAAG,EAAE,CAAC;QACb,CAAC;QACD,KAAK,GAAG,KAAgD,CAAC;QACzD,OAAO,IAAI,CAAC,OAAO,CAAC,UAAU,CAAC,IAAI,CAAA,WAAW,OAAO,cAAc,EAAE,CAAA,UAAsB,CAAA,EAAE;YAC3F,KAAK;YACL,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,aAAa,EAAE,WAAW,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;YACzE,UAAU,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE;SACjC,CAAC,CAAC;IACL,CAAC;IAED;;;;;;;;;;;;OAYG;IACH,MAAM,CACJ,YAAoB,EACpB,MAA8B,EAC9B,OAAwB;QAExB,MAAM,EAAE,QAAQ,EAAE,GAAG,MAAM,CAAC;QAC5B,OAAO,IAAI,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAA,WAAW,QAAQ,gBAAgB,YAAY,EAAE,EAAE;YAChF,GAAG,OAAO;YACV,OAAO,EAAE,YAAY,CAAC,CAAC,EAAE,aAAa,EAAE,WAAW,EAAE,EAAE,OAAO,EAAE,OAAO,CAAC,CAAC;YACzE,UAAU,EAAE,EAAE,UAAU,EAAE,IAAI,EAAE;SACjC,CAAC,CAAC;IACL,CAAC;CACF"}
@@ -1,3 +1,3 @@
1
- export { Credentials, type Credential, type CredentialAuth, type CredentialAuthCreateParam, type CredentialAuthRotateParam, type CredentialDeleted, type McpOauthTokenEndpointAuth, type McpOauthTokenEndpointAuthCreateParam, type McpOauthTokenEndpointAuthRotateParam, type CredentialCreateParams, type CredentialRetrieveParams, type CredentialUpdateParams, type CredentialListParams, type CredentialDeleteParams, type CredentialsPage, } from "./credentials.mjs";
1
+ export { Credentials, type Credential, type CredentialAuth, type CredentialAuthCreateParam, type CredentialAuthRotateParam, type CredentialDeleted, type CredentialNetworking, type CredentialNetworkingParam, type McpOauthTokenEndpointAuth, type McpOauthTokenEndpointAuthCreateParam, type McpOauthTokenEndpointAuthRotateParam, type CredentialCreateParams, type CredentialRetrieveParams, type CredentialUpdateParams, type CredentialListParams, type CredentialDeleteParams, type CredentialsPage, } from "./credentials.mjs";
2
2
  export { Vaults, type Vault, type VaultDeleted, type VaultStatus, type VaultStatusFilter, type VaultCreateParams, type VaultListParams, type VaultsPage, } from "./vaults.mjs";
3
3
  //# sourceMappingURL=index.d.mts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../../src/resources/beta/agents/vaults/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,WAAW,EACX,KAAK,UAAU,EACf,KAAK,cAAc,EACnB,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,EAC9B,KAAK,iBAAiB,EACtB,KAAK,yBAAyB,EAC9B,KAAK,oCAAoC,EACzC,KAAK,oCAAoC,EACzC,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,eAAe,GACrB,0BAAsB;AACvB,OAAO,EACL,MAAM,EACN,KAAK,KAAK,EACV,KAAK,YAAY,EACjB,KAAK,WAAW,EAChB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,UAAU,GAChB,qBAAiB"}
1
+ {"version":3,"file":"index.d.mts","sourceRoot":"","sources":["../../../../src/resources/beta/agents/vaults/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,WAAW,EACX,KAAK,UAAU,EACf,KAAK,cAAc,EACnB,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,EAC9B,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,EACzB,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,EAC9B,KAAK,oCAAoC,EACzC,KAAK,oCAAoC,EACzC,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,eAAe,GACrB,0BAAsB;AACvB,OAAO,EACL,MAAM,EACN,KAAK,KAAK,EACV,KAAK,YAAY,EACjB,KAAK,WAAW,EAChB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,UAAU,GAChB,qBAAiB"}
@@ -1,3 +1,3 @@
1
- export { Credentials, type Credential, type CredentialAuth, type CredentialAuthCreateParam, type CredentialAuthRotateParam, type CredentialDeleted, type McpOauthTokenEndpointAuth, type McpOauthTokenEndpointAuthCreateParam, type McpOauthTokenEndpointAuthRotateParam, type CredentialCreateParams, type CredentialRetrieveParams, type CredentialUpdateParams, type CredentialListParams, type CredentialDeleteParams, type CredentialsPage, } from "./credentials.js";
1
+ export { Credentials, type Credential, type CredentialAuth, type CredentialAuthCreateParam, type CredentialAuthRotateParam, type CredentialDeleted, type CredentialNetworking, type CredentialNetworkingParam, type McpOauthTokenEndpointAuth, type McpOauthTokenEndpointAuthCreateParam, type McpOauthTokenEndpointAuthRotateParam, type CredentialCreateParams, type CredentialRetrieveParams, type CredentialUpdateParams, type CredentialListParams, type CredentialDeleteParams, type CredentialsPage, } from "./credentials.js";
2
2
  export { Vaults, type Vault, type VaultDeleted, type VaultStatus, type VaultStatusFilter, type VaultCreateParams, type VaultListParams, type VaultsPage, } from "./vaults.js";
3
3
  //# sourceMappingURL=index.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/resources/beta/agents/vaults/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,WAAW,EACX,KAAK,UAAU,EACf,KAAK,cAAc,EACnB,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,EAC9B,KAAK,iBAAiB,EACtB,KAAK,yBAAyB,EAC9B,KAAK,oCAAoC,EACzC,KAAK,oCAAoC,EACzC,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,eAAe,GACrB,yBAAsB;AACvB,OAAO,EACL,MAAM,EACN,KAAK,KAAK,EACV,KAAK,YAAY,EACjB,KAAK,WAAW,EAChB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,UAAU,GAChB,oBAAiB"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/resources/beta/agents/vaults/index.ts"],"names":[],"mappings":"AAEA,OAAO,EACL,WAAW,EACX,KAAK,UAAU,EACf,KAAK,cAAc,EACnB,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,EAC9B,KAAK,iBAAiB,EACtB,KAAK,oBAAoB,EACzB,KAAK,yBAAyB,EAC9B,KAAK,yBAAyB,EAC9B,KAAK,oCAAoC,EACzC,KAAK,oCAAoC,EACzC,KAAK,sBAAsB,EAC3B,KAAK,wBAAwB,EAC7B,KAAK,sBAAsB,EAC3B,KAAK,oBAAoB,EACzB,KAAK,sBAAsB,EAC3B,KAAK,eAAe,GACrB,yBAAsB;AACvB,OAAO,EACL,MAAM,EACN,KAAK,KAAK,EACV,KAAK,YAAY,EACjB,KAAK,WAAW,EAChB,KAAK,iBAAiB,EACtB,KAAK,iBAAiB,EACtB,KAAK,eAAe,EACpB,KAAK,UAAU,GAChB,oBAAiB"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/resources/beta/agents/vaults/index.ts"],"names":[],"mappings":";AAAA,qFAAqF;;;AAErF,gDAgBuB;AAfrB,0GAAA,WAAW,OAAA;AAgBb,sCASkB;AARhB,gGAAA,MAAM,OAAA"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../src/resources/beta/agents/vaults/index.ts"],"names":[],"mappings":";AAAA,qFAAqF;;;AAErF,gDAkBuB;AAjBrB,0GAAA,WAAW,OAAA;AAkBb,sCASkB;AARhB,gGAAA,MAAM,OAAA"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../../src/resources/beta/agents/vaults/index.ts"],"names":[],"mappings":"AAAA,qFAAqF;AAErF,OAAO,EACL,WAAW,GAeZ,0BAAsB;AACvB,OAAO,EACL,MAAM,GAQP,qBAAiB"}
1
+ {"version":3,"file":"index.mjs","sourceRoot":"","sources":["../../../../src/resources/beta/agents/vaults/index.ts"],"names":[],"mappings":"AAAA,qFAAqF;AAErF,OAAO,EACL,WAAW,GAiBZ,0BAAsB;AACvB,OAAO,EACL,MAAM,GAQP,qBAAiB"}