@songtonyli/dsh-cli 0.1.56 → 0.1.57

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 (1299) hide show
  1. package/README.md +1 -1
  2. package/bin/dsh.mjs +1 -1
  3. package/node_modules/@aws-sdk/{credential-provider-sso → client-bedrock-runtime}/node_modules/@aws-sdk/token-providers/package.json +6 -6
  4. package/node_modules/@aws-sdk/token-providers/package.json +6 -6
  5. package/node_modules/@deepseek-ai/dsh-client-ui-primitives/package.json +2 -2
  6. package/node_modules/@deepseek-ai/dsh-client-ui-sidebar/lib/client.js +1 -1
  7. package/node_modules/@deepseek-ai/dsh-client-ui-slots/package.json +2 -2
  8. package/node_modules/@deepseek-ai/dsh-llm-pi-ai/README.i18n.yaml +2 -2
  9. package/node_modules/@deepseek-ai/dsh-llm-pi-ai/README.md +1 -1
  10. package/node_modules/@deepseek-ai/dsh-llm-pi-ai/README.zh.md +1 -1
  11. package/node_modules/@deepseek-ai/dsh-llm-pi-ai/lib/index.js +1 -182
  12. package/node_modules/@deepseek-ai/dsh-llm-pi-ai/package.json +1 -1
  13. package/node_modules/@deepseek-ai/dsh-tui-app/lib/index.js +1 -1
  14. package/node_modules/@earendil-works/pi-ai/README.md +207 -27
  15. package/node_modules/@earendil-works/pi-ai/dist/api/anthropic-messages.js +6 -0
  16. package/node_modules/@earendil-works/pi-ai/dist/api/azure-openai-responses.js +6 -5
  17. package/node_modules/@earendil-works/pi-ai/dist/api/bedrock-converse-stream.js +1 -0
  18. package/node_modules/@earendil-works/pi-ai/dist/api/cloudflare-workers-ai-system-one.js +43 -0
  19. package/node_modules/@earendil-works/pi-ai/dist/api/cloudflare-workers-ai-system-one.lazy.js +4 -0
  20. package/node_modules/@earendil-works/pi-ai/dist/api/cloudflare.js +2 -0
  21. package/node_modules/@earendil-works/pi-ai/dist/api/google-generative-ai.js +1 -0
  22. package/node_modules/@earendil-works/pi-ai/dist/api/google-vertex.js +1 -0
  23. package/node_modules/@earendil-works/pi-ai/dist/api/llama-cpp-classify.js +365 -0
  24. package/node_modules/@earendil-works/pi-ai/dist/api/llama-cpp-classify.lazy.js +4 -0
  25. package/node_modules/@earendil-works/pi-ai/dist/api/mistral-conversations.js +18 -17
  26. package/node_modules/@earendil-works/pi-ai/dist/api/openai-codex-responses.js +20 -4
  27. package/node_modules/@earendil-works/pi-ai/dist/api/openai-completions.js +4 -4
  28. package/node_modules/@earendil-works/pi-ai/dist/api/openai-responses-shared.js +14 -0
  29. package/node_modules/@earendil-works/pi-ai/dist/api/openai-responses.js +26 -9
  30. package/node_modules/@earendil-works/pi-ai/dist/api/openrouter-images.js +1 -0
  31. package/node_modules/@earendil-works/pi-ai/dist/api/pi-messages.js +1 -0
  32. package/node_modules/@earendil-works/pi-ai/dist/api/simple-options.js +2 -4
  33. package/node_modules/@earendil-works/pi-ai/dist/api/system-one-shared.js +183 -0
  34. package/node_modules/@earendil-works/pi-ai/dist/api/typesafe-system-one.js +19 -0
  35. package/node_modules/@earendil-works/pi-ai/dist/api/typesafe-system-one.lazy.js +4 -0
  36. package/node_modules/@earendil-works/pi-ai/dist/auth/helpers.js +1 -1
  37. package/node_modules/@earendil-works/pi-ai/dist/auth/oauth/anthropic.js +19 -128
  38. package/node_modules/@earendil-works/pi-ai/dist/auth/oauth/callback-server.js +146 -0
  39. package/node_modules/@earendil-works/pi-ai/dist/auth/oauth/load.js +5 -0
  40. package/node_modules/@earendil-works/pi-ai/dist/auth/oauth/openai-chatgpt.js +266 -0
  41. package/node_modules/@earendil-works/pi-ai/dist/auth/oauth/openai-codex.js +20 -124
  42. package/node_modules/@earendil-works/pi-ai/dist/auth/oauth/openrouter.js +19 -138
  43. package/node_modules/@earendil-works/pi-ai/dist/auth/oauth/radius.js +21 -89
  44. package/node_modules/@earendil-works/pi-ai/dist/auth/resolve.js +3 -19
  45. package/node_modules/@earendil-works/pi-ai/dist/bun-oauth.js +2 -0
  46. package/node_modules/@earendil-works/pi-ai/dist/cli.js +3 -1
  47. package/node_modules/@earendil-works/pi-ai/dist/env-api-keys.js +1 -0
  48. package/node_modules/@earendil-works/pi-ai/dist/image-models.js +14 -13
  49. package/node_modules/@earendil-works/pi-ai/dist/images.js +5 -0
  50. package/node_modules/@earendil-works/pi-ai/dist/index.js +0 -1
  51. package/node_modules/@earendil-works/pi-ai/dist/model-catalog.js +14 -2
  52. package/node_modules/@earendil-works/pi-ai/dist/models.generated.js +131 -41
  53. package/node_modules/@earendil-works/pi-ai/dist/models.js +157 -30
  54. package/node_modules/@earendil-works/pi-ai/dist/providers/all.js +25 -21
  55. package/node_modules/@earendil-works/pi-ai/dist/providers/amazon-bedrock.models.js +4 -2
  56. package/node_modules/@earendil-works/pi-ai/dist/providers/ant-ling.models.js +4 -2
  57. package/node_modules/@earendil-works/pi-ai/dist/providers/anthropic.models.js +4 -2
  58. package/node_modules/@earendil-works/pi-ai/dist/providers/azure-openai-responses.models.js +4 -2
  59. package/node_modules/@earendil-works/pi-ai/dist/providers/baseten.models.js +4 -2
  60. package/node_modules/@earendil-works/pi-ai/dist/providers/cerebras.models.js +4 -2
  61. package/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-ai-gateway.models.js +4 -2
  62. package/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-stream.js +6 -0
  63. package/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-workers-ai.js +10 -3
  64. package/node_modules/@earendil-works/pi-ai/dist/providers/cloudflare-workers-ai.models.js +4 -2
  65. package/node_modules/@earendil-works/pi-ai/dist/providers/data/.manifest.json +1 -1
  66. package/node_modules/@earendil-works/pi-ai/dist/providers/data/amazon-bedrock.json +1 -1
  67. package/node_modules/@earendil-works/pi-ai/dist/providers/data/ant-ling.json +1 -1
  68. package/node_modules/@earendil-works/pi-ai/dist/providers/data/anthropic.json +1 -1
  69. package/node_modules/@earendil-works/pi-ai/dist/providers/data/azure-openai-responses.json +1 -1
  70. package/node_modules/@earendil-works/pi-ai/dist/providers/data/baseten.json +1 -1
  71. package/node_modules/@earendil-works/pi-ai/dist/providers/data/cerebras.json +1 -1
  72. package/node_modules/@earendil-works/pi-ai/dist/providers/data/cloudflare-ai-gateway.json +1 -1
  73. package/node_modules/@earendil-works/pi-ai/dist/providers/data/cloudflare-workers-ai.json +1 -1
  74. package/node_modules/@earendil-works/pi-ai/dist/providers/data/deepseek.json +1 -1
  75. package/node_modules/@earendil-works/pi-ai/dist/providers/data/fireworks.json +1 -1
  76. package/node_modules/@earendil-works/pi-ai/dist/providers/data/github-copilot.json +1 -1
  77. package/node_modules/@earendil-works/pi-ai/dist/providers/data/google-vertex.json +1 -1
  78. package/node_modules/@earendil-works/pi-ai/dist/providers/data/google.json +1 -1
  79. package/node_modules/@earendil-works/pi-ai/dist/providers/data/groq.json +1 -1
  80. package/node_modules/@earendil-works/pi-ai/dist/providers/data/huggingface.json +1 -1
  81. package/node_modules/@earendil-works/pi-ai/dist/providers/data/kimi-coding.json +1 -1
  82. package/node_modules/@earendil-works/pi-ai/dist/providers/data/meta.json +1 -1
  83. package/node_modules/@earendil-works/pi-ai/dist/providers/data/minimax-cn.json +1 -1
  84. package/node_modules/@earendil-works/pi-ai/dist/providers/data/minimax.json +1 -1
  85. package/node_modules/@earendil-works/pi-ai/dist/providers/data/mistral.json +1 -1
  86. package/node_modules/@earendil-works/pi-ai/dist/providers/data/moonshotai-cn.json +1 -1
  87. package/node_modules/@earendil-works/pi-ai/dist/providers/data/moonshotai.json +1 -1
  88. package/node_modules/@earendil-works/pi-ai/dist/providers/data/nvidia.json +1 -1
  89. package/node_modules/@earendil-works/pi-ai/dist/providers/data/openai-codex.json +1 -1
  90. package/node_modules/@earendil-works/pi-ai/dist/providers/data/openai.json +1 -1
  91. package/node_modules/@earendil-works/pi-ai/dist/providers/data/opencode-go.json +1 -1
  92. package/node_modules/@earendil-works/pi-ai/dist/providers/data/opencode.json +1 -1
  93. package/node_modules/@earendil-works/pi-ai/dist/providers/data/openrouter.json +1 -1
  94. package/node_modules/@earendil-works/pi-ai/dist/providers/data/qwen-token-plan-cn.json +1 -1
  95. package/node_modules/@earendil-works/pi-ai/dist/providers/data/qwen-token-plan-individual.json +1 -1
  96. package/node_modules/@earendil-works/pi-ai/dist/providers/data/qwen-token-plan.json +1 -1
  97. package/node_modules/@earendil-works/pi-ai/dist/providers/data/radius.json +1 -1
  98. package/node_modules/@earendil-works/pi-ai/dist/providers/data/together.json +1 -1
  99. package/node_modules/@earendil-works/pi-ai/dist/providers/data/typesafe.json +1 -0
  100. package/node_modules/@earendil-works/pi-ai/dist/providers/data/vercel-ai-gateway.json +1 -1
  101. package/node_modules/@earendil-works/pi-ai/dist/providers/data/xai.json +1 -1
  102. package/node_modules/@earendil-works/pi-ai/dist/providers/data/xiaomi-token-plan-ams.json +1 -1
  103. package/node_modules/@earendil-works/pi-ai/dist/providers/data/xiaomi-token-plan-cn.json +1 -1
  104. package/node_modules/@earendil-works/pi-ai/dist/providers/data/xiaomi-token-plan-sgp.json +1 -1
  105. package/node_modules/@earendil-works/pi-ai/dist/providers/data/xiaomi.json +1 -1
  106. package/node_modules/@earendil-works/pi-ai/dist/providers/data/zai-coding-cn.json +1 -1
  107. package/node_modules/@earendil-works/pi-ai/dist/providers/data/zai.json +1 -1
  108. package/node_modules/@earendil-works/pi-ai/dist/providers/deepseek.models.js +4 -2
  109. package/node_modules/@earendil-works/pi-ai/dist/providers/fireworks.models.js +4 -2
  110. package/node_modules/@earendil-works/pi-ai/dist/providers/github-copilot.models.js +4 -2
  111. package/node_modules/@earendil-works/pi-ai/dist/providers/google-vertex.models.js +4 -2
  112. package/node_modules/@earendil-works/pi-ai/dist/providers/google.models.js +4 -2
  113. package/node_modules/@earendil-works/pi-ai/dist/providers/groq.models.js +4 -2
  114. package/node_modules/@earendil-works/pi-ai/dist/providers/huggingface.models.js +4 -2
  115. package/node_modules/@earendil-works/pi-ai/dist/providers/kimi-coding.models.js +4 -2
  116. package/node_modules/@earendil-works/pi-ai/dist/providers/meta.models.js +4 -2
  117. package/node_modules/@earendil-works/pi-ai/dist/providers/minimax-cn.models.js +4 -2
  118. package/node_modules/@earendil-works/pi-ai/dist/providers/minimax.models.js +4 -2
  119. package/node_modules/@earendil-works/pi-ai/dist/providers/mistral.models.js +4 -2
  120. package/node_modules/@earendil-works/pi-ai/dist/providers/moonshotai-cn.models.js +4 -2
  121. package/node_modules/@earendil-works/pi-ai/dist/providers/moonshotai.models.js +4 -2
  122. package/node_modules/@earendil-works/pi-ai/dist/providers/nvidia.models.js +4 -2
  123. package/node_modules/@earendil-works/pi-ai/dist/providers/openai-codex.js +1 -1
  124. package/node_modules/@earendil-works/pi-ai/dist/providers/openai-codex.models.js +4 -2
  125. package/node_modules/@earendil-works/pi-ai/dist/providers/openai.js +11 -2
  126. package/node_modules/@earendil-works/pi-ai/dist/providers/openai.models.js +4 -2
  127. package/node_modules/@earendil-works/pi-ai/dist/providers/opencode-go.models.js +4 -2
  128. package/node_modules/@earendil-works/pi-ai/dist/providers/opencode.js +5 -2
  129. package/node_modules/@earendil-works/pi-ai/dist/providers/opencode.models.js +4 -2
  130. package/node_modules/@earendil-works/pi-ai/dist/providers/openrouter.js +11 -2
  131. package/node_modules/@earendil-works/pi-ai/dist/providers/openrouter.models.js +4 -2
  132. package/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan-cn.models.js +4 -2
  133. package/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan-individual.models.js +4 -2
  134. package/node_modules/@earendil-works/pi-ai/dist/providers/qwen-token-plan.models.js +4 -2
  135. package/node_modules/@earendil-works/pi-ai/dist/providers/radius.models.js +4 -2
  136. package/node_modules/@earendil-works/pi-ai/dist/providers/together.models.js +4 -2
  137. package/node_modules/@earendil-works/pi-ai/dist/providers/typesafe.js +18 -0
  138. package/node_modules/@earendil-works/pi-ai/dist/providers/typesafe.models.js +8 -0
  139. package/node_modules/@earendil-works/pi-ai/dist/providers/vercel-ai-gateway.js +5 -2
  140. package/node_modules/@earendil-works/pi-ai/dist/providers/vercel-ai-gateway.models.js +4 -2
  141. package/node_modules/@earendil-works/pi-ai/dist/providers/xai.models.js +4 -2
  142. package/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-ams.models.js +4 -2
  143. package/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-cn.models.js +4 -2
  144. package/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi-token-plan-sgp.models.js +4 -2
  145. package/node_modules/@earendil-works/pi-ai/dist/providers/xiaomi.models.js +4 -2
  146. package/node_modules/@earendil-works/pi-ai/dist/providers/zai-coding-cn.models.js +4 -2
  147. package/node_modules/@earendil-works/pi-ai/dist/providers/zai.models.js +4 -2
  148. package/node_modules/@earendil-works/pi-ai/dist/utils/headers.js +10 -8
  149. package/node_modules/@earendil-works/pi-ai/dist/utils/model-operations.js +47 -0
  150. package/node_modules/@earendil-works/pi-ai/dist/utils/models-error.js +19 -0
  151. package/node_modules/@earendil-works/pi-ai/dist/utils/retry.js +7 -0
  152. package/node_modules/@earendil-works/pi-ai/package.json +4 -4
  153. package/node_modules/@earendil-works/pi-telemetry/package.json +2 -2
  154. package/node_modules/openai/CHANGELOG.md +1089 -1
  155. package/node_modules/openai/README.md +201 -102
  156. package/node_modules/openai/_vendor/partial-json-parser/parser.js +55 -38
  157. package/node_modules/openai/_vendor/partial-json-parser/parser.mjs +55 -38
  158. package/node_modules/openai/_vendor/zod-to-json-schema/Options.js +11 -2
  159. package/node_modules/openai/_vendor/zod-to-json-schema/Options.mjs +11 -2
  160. package/node_modules/openai/_vendor/zod-to-json-schema/Refs.js +4 -4
  161. package/node_modules/openai/_vendor/zod-to-json-schema/Refs.mjs +4 -4
  162. package/node_modules/openai/_vendor/zod-to-json-schema/errorMessages.js +2 -1
  163. package/node_modules/openai/_vendor/zod-to-json-schema/errorMessages.mjs +2 -1
  164. package/node_modules/openai/_vendor/zod-to-json-schema/index.js +1 -1
  165. package/node_modules/openai/_vendor/zod-to-json-schema/index.mjs +1 -1
  166. package/node_modules/openai/_vendor/zod-to-json-schema/parseDef.js +139 -54
  167. package/node_modules/openai/_vendor/zod-to-json-schema/parseDef.mjs +139 -54
  168. package/node_modules/openai/_vendor/zod-to-json-schema/parsers/array.js +1 -1
  169. package/node_modules/openai/_vendor/zod-to-json-schema/parsers/array.mjs +1 -1
  170. package/node_modules/openai/_vendor/zod-to-json-schema/parsers/bigint.js +10 -4
  171. package/node_modules/openai/_vendor/zod-to-json-schema/parsers/bigint.mjs +10 -4
  172. package/node_modules/openai/_vendor/zod-to-json-schema/parsers/branded.js +2 -2
  173. package/node_modules/openai/_vendor/zod-to-json-schema/parsers/branded.mjs +2 -2
  174. package/node_modules/openai/_vendor/zod-to-json-schema/parsers/catch.js +1 -3
  175. package/node_modules/openai/_vendor/zod-to-json-schema/parsers/catch.mjs +1 -3
  176. package/node_modules/openai/_vendor/zod-to-json-schema/parsers/date.js +10 -5
  177. package/node_modules/openai/_vendor/zod-to-json-schema/parsers/date.mjs +10 -5
  178. package/node_modules/openai/_vendor/zod-to-json-schema/parsers/default.js +2 -2
  179. package/node_modules/openai/_vendor/zod-to-json-schema/parsers/default.mjs +2 -2
  180. package/node_modules/openai/_vendor/zod-to-json-schema/parsers/intersection.js +6 -5
  181. package/node_modules/openai/_vendor/zod-to-json-schema/parsers/intersection.mjs +6 -5
  182. package/node_modules/openai/_vendor/zod-to-json-schema/parsers/literal.js +5 -0
  183. package/node_modules/openai/_vendor/zod-to-json-schema/parsers/literal.mjs +5 -0
  184. package/node_modules/openai/_vendor/zod-to-json-schema/parsers/nativeEnum.js +7 -9
  185. package/node_modules/openai/_vendor/zod-to-json-schema/parsers/nativeEnum.mjs +7 -9
  186. package/node_modules/openai/_vendor/zod-to-json-schema/parsers/null.js +3 -2
  187. package/node_modules/openai/_vendor/zod-to-json-schema/parsers/null.mjs +3 -2
  188. package/node_modules/openai/_vendor/zod-to-json-schema/parsers/nullable.js +8 -3
  189. package/node_modules/openai/_vendor/zod-to-json-schema/parsers/nullable.mjs +8 -3
  190. package/node_modules/openai/_vendor/zod-to-json-schema/parsers/number.js +12 -5
  191. package/node_modules/openai/_vendor/zod-to-json-schema/parsers/number.mjs +12 -5
  192. package/node_modules/openai/_vendor/zod-to-json-schema/parsers/object.js +43 -38
  193. package/node_modules/openai/_vendor/zod-to-json-schema/parsers/object.mjs +43 -38
  194. package/node_modules/openai/_vendor/zod-to-json-schema/parsers/optional.js +11 -12
  195. package/node_modules/openai/_vendor/zod-to-json-schema/parsers/optional.mjs +11 -12
  196. package/node_modules/openai/_vendor/zod-to-json-schema/parsers/pipeline.js +3 -3
  197. package/node_modules/openai/_vendor/zod-to-json-schema/parsers/pipeline.mjs +3 -3
  198. package/node_modules/openai/_vendor/zod-to-json-schema/parsers/promise.js +2 -2
  199. package/node_modules/openai/_vendor/zod-to-json-schema/parsers/promise.mjs +2 -2
  200. package/node_modules/openai/_vendor/zod-to-json-schema/parsers/readonly.js +1 -3
  201. package/node_modules/openai/_vendor/zod-to-json-schema/parsers/readonly.mjs +1 -3
  202. package/node_modules/openai/_vendor/zod-to-json-schema/parsers/record.js +7 -5
  203. package/node_modules/openai/_vendor/zod-to-json-schema/parsers/record.mjs +7 -5
  204. package/node_modules/openai/_vendor/zod-to-json-schema/parsers/string.js +57 -34
  205. package/node_modules/openai/_vendor/zod-to-json-schema/parsers/string.mjs +57 -34
  206. package/node_modules/openai/_vendor/zod-to-json-schema/parsers/tuple.js +24 -19
  207. package/node_modules/openai/_vendor/zod-to-json-schema/parsers/tuple.mjs +24 -19
  208. package/node_modules/openai/_vendor/zod-to-json-schema/parsers/union.js +46 -24
  209. package/node_modules/openai/_vendor/zod-to-json-schema/parsers/union.mjs +46 -24
  210. package/node_modules/openai/_vendor/zod-to-json-schema/util.js +7 -5
  211. package/node_modules/openai/_vendor/zod-to-json-schema/util.mjs +7 -5
  212. package/node_modules/openai/_vendor/zod-to-json-schema/zodToJsonSchema.js +110 -38
  213. package/node_modules/openai/_vendor/zod-to-json-schema/zodToJsonSchema.mjs +110 -38
  214. package/node_modules/openai/auth/subject-token-providers.js +235 -10
  215. package/node_modules/openai/auth/subject-token-providers.mjs +235 -10
  216. package/node_modules/openai/auth/workload-identity-auth.js +185 -24
  217. package/node_modules/openai/auth/workload-identity-auth.mjs +186 -25
  218. package/node_modules/openai/auth/x509-transport.js +273 -0
  219. package/node_modules/openai/auth/x509-transport.mjs +268 -0
  220. package/node_modules/openai/azure.js +74 -21
  221. package/node_modules/openai/azure.mjs +75 -22
  222. package/node_modules/openai/bedrock.js +174 -0
  223. package/node_modules/openai/bedrock.mjs +169 -0
  224. package/node_modules/openai/beta/realtime/internal-base.js +71 -10
  225. package/node_modules/openai/beta/realtime/internal-base.mjs +70 -10
  226. package/node_modules/openai/beta/realtime/websocket.js +180 -33
  227. package/node_modules/openai/beta/realtime/websocket.mjs +181 -34
  228. package/node_modules/openai/beta/realtime/ws.js +93 -14
  229. package/node_modules/openai/beta/realtime/ws.mjs +94 -15
  230. package/node_modules/openai/client.js +745 -99
  231. package/node_modules/openai/client.mjs +747 -101
  232. package/node_modules/openai/core/EventEmitter.js +127 -16
  233. package/node_modules/openai/core/EventEmitter.mjs +128 -17
  234. package/node_modules/openai/core/api-promise.js +0 -1
  235. package/node_modules/openai/core/api-promise.mjs +0 -1
  236. package/node_modules/openai/core/error.js +5 -5
  237. package/node_modules/openai/core/error.mjs +5 -5
  238. package/node_modules/openai/core/pagination.js +33 -3
  239. package/node_modules/openai/core/pagination.mjs +31 -2
  240. package/node_modules/openai/core/resource.js +0 -1
  241. package/node_modules/openai/core/resource.mjs +0 -1
  242. package/node_modules/openai/core/streaming.js +453 -88
  243. package/node_modules/openai/core/streaming.mjs +454 -89
  244. package/node_modules/openai/core/uploads.js +3 -1
  245. package/node_modules/openai/core/uploads.mjs +1 -0
  246. package/node_modules/openai/helpers/audio.js +198 -28
  247. package/node_modules/openai/helpers/audio.mjs +199 -29
  248. package/node_modules/openai/helpers/live.js +6 -0
  249. package/node_modules/openai/helpers/live.mjs +2 -0
  250. package/node_modules/openai/helpers/standard-schema.js +393 -0
  251. package/node_modules/openai/helpers/standard-schema.mjs +387 -0
  252. package/node_modules/openai/helpers/zod-v3-strict-schema.js +408 -0
  253. package/node_modules/openai/helpers/zod-v3-strict-schema.mjs +404 -0
  254. package/node_modules/openai/helpers/zod.js +221 -24
  255. package/node_modules/openai/helpers/zod.mjs +222 -26
  256. package/node_modules/openai/index.js +8 -7
  257. package/node_modules/openai/index.mjs +2 -2
  258. package/node_modules/openai/internal/assistant-stream-delta.js +316 -0
  259. package/node_modules/openai/internal/assistant-stream-delta.mjs +308 -0
  260. package/node_modules/openai/internal/auth/x509-api-origin.js +28 -0
  261. package/node_modules/openai/internal/auth/x509-api-origin.mjs +24 -0
  262. package/node_modules/openai/internal/auth/x509-credential-options.js +125 -0
  263. package/node_modules/openai/internal/auth/x509-credential-options.mjs +121 -0
  264. package/node_modules/openai/internal/auth/x509-token-exchange.js +248 -0
  265. package/node_modules/openai/internal/auth/x509-token-exchange.mjs +245 -0
  266. package/node_modules/openai/internal/auth/x509-transport-capability.js +171 -0
  267. package/node_modules/openai/internal/auth/x509-transport-capability.mjs +166 -0
  268. package/node_modules/openai/internal/auth/x509-transport-registry.js +53 -0
  269. package/node_modules/openai/internal/auth/x509-transport-registry.mjs +48 -0
  270. package/node_modules/openai/internal/auth/x509-transport-state-browser.js +35 -0
  271. package/node_modules/openai/internal/auth/x509-transport-state-browser.mjs +32 -0
  272. package/node_modules/openai/internal/auth/x509-transport-state.cjs +35 -0
  273. package/node_modules/openai/internal/auth/x509-transport-state.js +36 -0
  274. package/node_modules/openai/internal/auth/x509-transport-state.mjs +20 -0
  275. package/node_modules/openai/internal/auth/x509-workload-identity-auth.js +787 -0
  276. package/node_modules/openai/internal/auth/x509-workload-identity-auth.mjs +778 -0
  277. package/node_modules/openai/internal/bedrock.js +438 -0
  278. package/node_modules/openai/internal/bedrock.mjs +424 -0
  279. package/node_modules/openai/internal/builtin-types.js +0 -1
  280. package/node_modules/openai/internal/builtin-types.mjs +0 -1
  281. package/node_modules/openai/internal/data-residency.js +34 -0
  282. package/node_modules/openai/internal/data-residency.mjs +30 -0
  283. package/node_modules/openai/internal/decoders/line.js +140 -54
  284. package/node_modules/openai/internal/decoders/line.mjs +141 -55
  285. package/node_modules/openai/internal/detect-platform.js +3 -4
  286. package/node_modules/openai/internal/detect-platform.mjs +3 -4
  287. package/node_modules/openai/internal/errors.js +3 -3
  288. package/node_modules/openai/internal/errors.mjs +3 -3
  289. package/node_modules/openai/internal/headers.js +11 -9
  290. package/node_modules/openai/internal/headers.mjs +11 -9
  291. package/node_modules/openai/internal/multipart-encoding.js +51 -0
  292. package/node_modules/openai/internal/multipart-encoding.mjs +48 -0
  293. package/node_modules/openai/internal/parse.js +35 -11
  294. package/node_modules/openai/internal/parse.mjs +35 -11
  295. package/node_modules/openai/internal/provider.js +50 -0
  296. package/node_modules/openai/internal/provider.mjs +46 -0
  297. package/node_modules/openai/internal/qs/formats.js +1 -2
  298. package/node_modules/openai/internal/qs/formats.mjs +1 -1
  299. package/node_modules/openai/internal/qs/stringify.js +60 -51
  300. package/node_modules/openai/internal/qs/stringify.mjs +60 -51
  301. package/node_modules/openai/internal/qs/utils.js +368 -50
  302. package/node_modules/openai/internal/qs/utils.mjs +368 -50
  303. package/node_modules/openai/internal/realtime-credentials.js +23 -0
  304. package/node_modules/openai/internal/realtime-credentials.mjs +19 -0
  305. package/node_modules/openai/internal/request-options.js +43 -2
  306. package/node_modules/openai/internal/request-options.mjs +42 -2
  307. package/node_modules/openai/internal/responses/canonical-output-text.js +123 -0
  308. package/node_modules/openai/internal/responses/canonical-output-text.mjs +115 -0
  309. package/node_modules/openai/internal/responses/output-text-index.js +77 -0
  310. package/node_modules/openai/internal/responses/output-text-index.mjs +73 -0
  311. package/node_modules/openai/internal/responses/response-accumulator.js +942 -0
  312. package/node_modules/openai/internal/responses/response-accumulator.mjs +938 -0
  313. package/node_modules/openai/internal/shim-types.js +6 -1
  314. package/node_modules/openai/internal/shim-types.mjs +6 -1
  315. package/node_modules/openai/internal/shims.js +6 -1
  316. package/node_modules/openai/internal/shims.mjs +6 -1
  317. package/node_modules/openai/internal/stream-utils.js +35 -7
  318. package/node_modules/openai/internal/stream-utils.mjs +35 -7
  319. package/node_modules/openai/internal/to-file.js +47 -24
  320. package/node_modules/openai/internal/to-file.mjs +47 -24
  321. package/node_modules/openai/internal/tslib.js +6 -0
  322. package/node_modules/openai/internal/tslib.mjs +6 -1
  323. package/node_modules/openai/internal/types.js +0 -1
  324. package/node_modules/openai/internal/types.mjs +0 -1
  325. package/node_modules/openai/internal/uploads.js +377 -43
  326. package/node_modules/openai/internal/uploads.mjs +376 -44
  327. package/node_modules/openai/internal/utils/abort.js +94 -0
  328. package/node_modules/openai/internal/utils/abort.mjs +90 -0
  329. package/node_modules/openai/internal/utils/base64.js +3 -1
  330. package/node_modules/openai/internal/utils/base64.mjs +3 -1
  331. package/node_modules/openai/internal/utils/bytes.js +5 -0
  332. package/node_modules/openai/internal/utils/bytes.mjs +5 -0
  333. package/node_modules/openai/internal/utils/env.js +9 -5
  334. package/node_modules/openai/internal/utils/env.mjs +9 -5
  335. package/node_modules/openai/internal/utils/log.js +73 -11
  336. package/node_modules/openai/internal/utils/log.mjs +70 -11
  337. package/node_modules/openai/internal/utils/path.js +50 -30
  338. package/node_modules/openai/internal/utils/path.mjs +50 -30
  339. package/node_modules/openai/internal/utils/query.js +0 -1
  340. package/node_modules/openai/internal/utils/query.mjs +0 -1
  341. package/node_modules/openai/internal/utils/sleep.js +51 -2
  342. package/node_modules/openai/internal/utils/sleep.mjs +51 -2
  343. package/node_modules/openai/internal/utils/uuid.js +0 -1
  344. package/node_modules/openai/internal/utils/uuid.mjs +0 -1
  345. package/node_modules/openai/internal/utils/values.js +0 -1
  346. package/node_modules/openai/internal/utils/values.mjs +0 -1
  347. package/node_modules/openai/internal/utils.js +0 -1
  348. package/node_modules/openai/internal/utils.mjs +0 -1
  349. package/node_modules/openai/internal/ws-adapter-browser.js +66 -21
  350. package/node_modules/openai/internal/ws-adapter-browser.mjs +66 -21
  351. package/node_modules/openai/internal/ws-adapter-node.js +90 -24
  352. package/node_modules/openai/internal/ws-adapter-node.mjs +90 -24
  353. package/node_modules/openai/internal/ws-adapter.js +4 -0
  354. package/node_modules/openai/internal/ws-adapter.mjs +4 -0
  355. package/node_modules/openai/internal/ws.js +193 -48
  356. package/node_modules/openai/internal/ws.mjs +188 -49
  357. package/node_modules/openai/lib/AbstractChatCompletionRunner.js +254 -72
  358. package/node_modules/openai/lib/AbstractChatCompletionRunner.mjs +256 -74
  359. package/node_modules/openai/lib/AssistantStream.js +430 -259
  360. package/node_modules/openai/lib/AssistantStream.mjs +432 -261
  361. package/node_modules/openai/lib/ChatCompletionRunner.js +12 -5
  362. package/node_modules/openai/lib/ChatCompletionRunner.mjs +13 -6
  363. package/node_modules/openai/lib/ChatCompletionStream.js +1430 -189
  364. package/node_modules/openai/lib/ChatCompletionStream.mjs +1433 -193
  365. package/node_modules/openai/lib/ChatCompletionStreamingRunner.js +40 -2
  366. package/node_modules/openai/lib/ChatCompletionStreamingRunner.mjs +41 -3
  367. package/node_modules/openai/lib/EventEmitter.js +124 -16
  368. package/node_modules/openai/lib/EventEmitter.mjs +125 -17
  369. package/node_modules/openai/lib/EventStream.js +1533 -55
  370. package/node_modules/openai/lib/EventStream.mjs +1534 -56
  371. package/node_modules/openai/lib/ResponsesParser.js +68 -29
  372. package/node_modules/openai/lib/ResponsesParser.mjs +69 -30
  373. package/node_modules/openai/lib/RunnableFunction.js +3 -0
  374. package/node_modules/openai/lib/RunnableFunction.mjs +3 -0
  375. package/node_modules/openai/lib/Util.js +7 -4
  376. package/node_modules/openai/lib/Util.mjs +7 -4
  377. package/node_modules/openai/lib/agents/agent-session-stream.js +274 -0
  378. package/node_modules/openai/lib/agents/agent-session-stream.mjs +270 -0
  379. package/node_modules/openai/lib/agents/output-text.js +8 -0
  380. package/node_modules/openai/lib/agents/output-text.mjs +5 -0
  381. package/node_modules/openai/lib/agents/turn-state.js +62 -0
  382. package/node_modules/openai/lib/agents/turn-state.mjs +58 -0
  383. package/node_modules/openai/lib/assistant-run-polling.js +17 -0
  384. package/node_modules/openai/lib/assistant-run-polling.mjs +14 -0
  385. package/node_modules/openai/lib/chatCompletionUtils.js +5 -6
  386. package/node_modules/openai/lib/chatCompletionUtils.mjs +5 -6
  387. package/node_modules/openai/lib/embeddings.js +58 -0
  388. package/node_modules/openai/lib/embeddings.mjs +55 -0
  389. package/node_modules/openai/lib/file-processing.js +31 -0
  390. package/node_modules/openai/lib/file-processing.mjs +28 -0
  391. package/node_modules/openai/lib/live/transcript-grouper.js +229 -0
  392. package/node_modules/openai/lib/live/transcript-grouper.mjs +225 -0
  393. package/node_modules/openai/lib/live/transcript-grouping.js +309 -0
  394. package/node_modules/openai/lib/live/transcript-grouping.mjs +305 -0
  395. package/node_modules/openai/lib/live/webrtc.js +16 -0
  396. package/node_modules/openai/lib/live/webrtc.mjs +10 -0
  397. package/node_modules/openai/lib/parser.js +142 -42
  398. package/node_modules/openai/lib/parser.mjs +140 -42
  399. package/node_modules/openai/lib/polling.js +131 -0
  400. package/node_modules/openai/lib/polling.mjs +128 -0
  401. package/node_modules/openai/lib/realtime/webrtc.js +16 -0
  402. package/node_modules/openai/lib/realtime/webrtc.mjs +10 -0
  403. package/node_modules/openai/lib/responses/ResponseAccumulator.js +15 -0
  404. package/node_modules/openai/lib/responses/ResponseAccumulator.mjs +12 -0
  405. package/node_modules/openai/lib/responses/ResponseInputItems.js +139 -0
  406. package/node_modules/openai/lib/responses/ResponseInputItems.mjs +135 -0
  407. package/node_modules/openai/lib/responses/ResponseStream.js +85 -159
  408. package/node_modules/openai/lib/responses/ResponseStream.mjs +86 -160
  409. package/node_modules/openai/lib/responses/responses-websocket-lane.js +314 -0
  410. package/node_modules/openai/lib/responses/responses-websocket-lane.mjs +309 -0
  411. package/node_modules/openai/lib/responses/responses-websocket-session.js +268 -0
  412. package/node_modules/openai/lib/responses/responses-websocket-session.mjs +263 -0
  413. package/node_modules/openai/lib/transform.js +1608 -82
  414. package/node_modules/openai/lib/transform.mjs +1602 -82
  415. package/node_modules/openai/lib/vector-store-polling.js +24 -0
  416. package/node_modules/openai/lib/vector-store-polling.mjs +20 -0
  417. package/node_modules/openai/lib/vector-store-upload.js +41 -0
  418. package/node_modules/openai/lib/vector-store-upload.mjs +38 -0
  419. package/node_modules/openai/lib/webhook-signature.js +125 -0
  420. package/node_modules/openai/lib/webhook-signature.mjs +121 -0
  421. package/node_modules/openai/lib/webrtc/connection.js +233 -0
  422. package/node_modules/openai/lib/webrtc/connection.mjs +229 -0
  423. package/node_modules/openai/lib/webrtc/data-channel.js +133 -0
  424. package/node_modules/openai/lib/webrtc/data-channel.mjs +129 -0
  425. package/node_modules/openai/lib/webrtc/errors.js +18 -0
  426. package/node_modules/openai/lib/webrtc/errors.mjs +14 -0
  427. package/node_modules/openai/lib/webrtc/subscriptions.js +64 -0
  428. package/node_modules/openai/lib/webrtc/subscriptions.mjs +60 -0
  429. package/node_modules/openai/lib/webrtc/types.js +3 -0
  430. package/node_modules/openai/lib/webrtc/types.mjs +2 -0
  431. package/node_modules/openai/live/webrtc.js +8 -0
  432. package/node_modules/openai/live/webrtc.mjs +2 -0
  433. package/node_modules/openai/package.json +71 -11
  434. package/node_modules/openai/providers/bedrock/aws.js +211 -0
  435. package/node_modules/openai/providers/bedrock/aws.mjs +207 -0
  436. package/node_modules/openai/providers/bedrock.js +43 -0
  437. package/node_modules/openai/providers/bedrock.mjs +39 -0
  438. package/node_modules/openai/realtime/internal-base.js +118 -11
  439. package/node_modules/openai/realtime/internal-base.mjs +116 -11
  440. package/node_modules/openai/realtime/webrtc.js +8 -0
  441. package/node_modules/openai/realtime/webrtc.mjs +2 -0
  442. package/node_modules/openai/realtime/websocket.js +174 -39
  443. package/node_modules/openai/realtime/websocket.mjs +175 -40
  444. package/node_modules/openai/realtime/ws.js +86 -18
  445. package/node_modules/openai/realtime/ws.mjs +87 -19
  446. package/node_modules/openai/resources/admin/admin.js +1 -1
  447. package/node_modules/openai/resources/admin/admin.mjs +1 -1
  448. package/node_modules/openai/resources/admin/index.js +1 -1
  449. package/node_modules/openai/resources/admin/index.mjs +1 -1
  450. package/node_modules/openai/resources/admin/organization/admin-api-keys.js +1 -1
  451. package/node_modules/openai/resources/admin/organization/admin-api-keys.mjs +1 -1
  452. package/node_modules/openai/resources/admin/organization/audit-logs.js +1 -1
  453. package/node_modules/openai/resources/admin/organization/audit-logs.mjs +1 -1
  454. package/node_modules/openai/resources/admin/organization/certificates.js +1 -1
  455. package/node_modules/openai/resources/admin/organization/certificates.mjs +1 -1
  456. package/node_modules/openai/resources/admin/organization/data-retention.js +1 -1
  457. package/node_modules/openai/resources/admin/organization/data-retention.mjs +1 -1
  458. package/node_modules/openai/resources/admin/organization/groups/groups.js +1 -1
  459. package/node_modules/openai/resources/admin/organization/groups/groups.mjs +1 -1
  460. package/node_modules/openai/resources/admin/organization/groups/index.js +1 -1
  461. package/node_modules/openai/resources/admin/organization/groups/index.mjs +1 -1
  462. package/node_modules/openai/resources/admin/organization/groups/roles.js +1 -1
  463. package/node_modules/openai/resources/admin/organization/groups/roles.mjs +1 -1
  464. package/node_modules/openai/resources/admin/organization/groups/users.js +1 -1
  465. package/node_modules/openai/resources/admin/organization/groups/users.mjs +1 -1
  466. package/node_modules/openai/resources/admin/organization/groups.js +1 -1
  467. package/node_modules/openai/resources/admin/organization/groups.mjs +1 -1
  468. package/node_modules/openai/resources/admin/organization/index.js +4 -2
  469. package/node_modules/openai/resources/admin/organization/index.mjs +2 -1
  470. package/node_modules/openai/resources/admin/organization/invites.js +1 -1
  471. package/node_modules/openai/resources/admin/organization/invites.mjs +1 -1
  472. package/node_modules/openai/resources/admin/organization/organization.js +5 -1
  473. package/node_modules/openai/resources/admin/organization/organization.mjs +5 -1
  474. package/node_modules/openai/resources/admin/organization/projects/api-keys.js +1 -1
  475. package/node_modules/openai/resources/admin/organization/projects/api-keys.mjs +1 -1
  476. package/node_modules/openai/resources/admin/organization/projects/certificates.js +1 -1
  477. package/node_modules/openai/resources/admin/organization/projects/certificates.mjs +1 -1
  478. package/node_modules/openai/resources/admin/organization/projects/data-retention.js +1 -1
  479. package/node_modules/openai/resources/admin/organization/projects/data-retention.mjs +1 -1
  480. package/node_modules/openai/resources/admin/organization/projects/groups/groups.js +1 -1
  481. package/node_modules/openai/resources/admin/organization/projects/groups/groups.mjs +1 -1
  482. package/node_modules/openai/resources/admin/organization/projects/groups/index.js +1 -1
  483. package/node_modules/openai/resources/admin/organization/projects/groups/index.mjs +1 -1
  484. package/node_modules/openai/resources/admin/organization/projects/groups/roles.js +1 -1
  485. package/node_modules/openai/resources/admin/organization/projects/groups/roles.mjs +1 -1
  486. package/node_modules/openai/resources/admin/organization/projects/groups.js +1 -1
  487. package/node_modules/openai/resources/admin/organization/projects/groups.mjs +1 -1
  488. package/node_modules/openai/resources/admin/organization/projects/hosted-tool-permissions.js +1 -1
  489. package/node_modules/openai/resources/admin/organization/projects/hosted-tool-permissions.mjs +1 -1
  490. package/node_modules/openai/resources/admin/organization/projects/index.js +8 -6
  491. package/node_modules/openai/resources/admin/organization/projects/index.mjs +3 -2
  492. package/node_modules/openai/resources/admin/organization/projects/model-permissions.js +1 -1
  493. package/node_modules/openai/resources/admin/organization/projects/model-permissions.mjs +1 -1
  494. package/node_modules/openai/resources/admin/organization/projects/projects.js +7 -3
  495. package/node_modules/openai/resources/admin/organization/projects/projects.mjs +7 -3
  496. package/node_modules/openai/resources/admin/organization/projects/rate-limits.js +1 -1
  497. package/node_modules/openai/resources/admin/organization/projects/rate-limits.mjs +1 -1
  498. package/node_modules/openai/resources/admin/organization/projects/roles.js +1 -1
  499. package/node_modules/openai/resources/admin/organization/projects/roles.mjs +1 -1
  500. package/node_modules/openai/resources/admin/organization/projects/service-accounts/api-keys.js +26 -0
  501. package/node_modules/openai/resources/admin/organization/projects/service-accounts/api-keys.mjs +22 -0
  502. package/node_modules/openai/resources/admin/organization/projects/service-accounts/index.js +9 -0
  503. package/node_modules/openai/resources/admin/organization/projects/service-accounts/index.mjs +4 -0
  504. package/node_modules/openai/resources/admin/organization/projects/service-accounts/service-accounts.js +109 -0
  505. package/node_modules/openai/resources/admin/organization/projects/service-accounts/service-accounts.mjs +104 -0
  506. package/node_modules/openai/resources/admin/organization/projects/service-accounts.js +3 -98
  507. package/node_modules/openai/resources/admin/organization/projects/service-accounts.mjs +2 -96
  508. package/node_modules/openai/resources/admin/organization/projects/spend-alerts.js +20 -1
  509. package/node_modules/openai/resources/admin/organization/projects/spend-alerts.mjs +20 -1
  510. package/node_modules/openai/resources/admin/organization/projects/spend-limit.js +67 -0
  511. package/node_modules/openai/resources/admin/organization/projects/spend-limit.mjs +63 -0
  512. package/node_modules/openai/resources/admin/organization/projects/users/index.js +1 -1
  513. package/node_modules/openai/resources/admin/organization/projects/users/index.mjs +1 -1
  514. package/node_modules/openai/resources/admin/organization/projects/users/roles.js +1 -1
  515. package/node_modules/openai/resources/admin/organization/projects/users/roles.mjs +1 -1
  516. package/node_modules/openai/resources/admin/organization/projects/users/users.js +1 -1
  517. package/node_modules/openai/resources/admin/organization/projects/users/users.mjs +1 -1
  518. package/node_modules/openai/resources/admin/organization/projects/users.js +1 -1
  519. package/node_modules/openai/resources/admin/organization/projects/users.mjs +1 -1
  520. package/node_modules/openai/resources/admin/organization/projects.js +1 -1
  521. package/node_modules/openai/resources/admin/organization/projects.mjs +1 -1
  522. package/node_modules/openai/resources/admin/organization/roles.js +1 -1
  523. package/node_modules/openai/resources/admin/organization/roles.mjs +1 -1
  524. package/node_modules/openai/resources/admin/organization/spend-alerts.js +18 -1
  525. package/node_modules/openai/resources/admin/organization/spend-alerts.mjs +18 -1
  526. package/node_modules/openai/resources/admin/organization/spend-limit.js +59 -0
  527. package/node_modules/openai/resources/admin/organization/spend-limit.mjs +55 -0
  528. package/node_modules/openai/resources/admin/organization/usage.js +1 -1
  529. package/node_modules/openai/resources/admin/organization/usage.mjs +1 -1
  530. package/node_modules/openai/resources/admin/organization/users/index.js +1 -1
  531. package/node_modules/openai/resources/admin/organization/users/index.mjs +1 -1
  532. package/node_modules/openai/resources/admin/organization/users/roles.js +1 -1
  533. package/node_modules/openai/resources/admin/organization/users/roles.mjs +1 -1
  534. package/node_modules/openai/resources/admin/organization/users/users.js +1 -1
  535. package/node_modules/openai/resources/admin/organization/users/users.mjs +1 -1
  536. package/node_modules/openai/resources/admin/organization/users.js +1 -1
  537. package/node_modules/openai/resources/admin/organization/users.mjs +1 -1
  538. package/node_modules/openai/resources/admin/organization.js +1 -1
  539. package/node_modules/openai/resources/admin/organization.mjs +1 -1
  540. package/node_modules/openai/resources/admin.js +1 -1
  541. package/node_modules/openai/resources/admin.mjs +1 -1
  542. package/node_modules/openai/resources/audio/audio.js +1 -1
  543. package/node_modules/openai/resources/audio/audio.mjs +1 -1
  544. package/node_modules/openai/resources/audio/index.js +1 -1
  545. package/node_modules/openai/resources/audio/index.mjs +1 -1
  546. package/node_modules/openai/resources/audio/speech.js +1 -1
  547. package/node_modules/openai/resources/audio/speech.mjs +1 -1
  548. package/node_modules/openai/resources/audio/transcriptions.js +1 -1
  549. package/node_modules/openai/resources/audio/transcriptions.mjs +1 -1
  550. package/node_modules/openai/resources/audio/translations.js +1 -1
  551. package/node_modules/openai/resources/audio/translations.mjs +1 -1
  552. package/node_modules/openai/resources/audio.js +1 -1
  553. package/node_modules/openai/resources/audio.mjs +1 -1
  554. package/node_modules/openai/resources/batches.js +1 -1
  555. package/node_modules/openai/resources/batches.mjs +1 -1
  556. package/node_modules/openai/resources/beta/agents/agents.js +118 -0
  557. package/node_modules/openai/resources/beta/agents/agents.mjs +113 -0
  558. package/node_modules/openai/resources/beta/agents/environments/environments.js +43 -0
  559. package/node_modules/openai/resources/beta/agents/environments/environments.mjs +38 -0
  560. package/node_modules/openai/resources/beta/agents/environments/files.js +61 -0
  561. package/node_modules/openai/resources/beta/agents/environments/files.mjs +57 -0
  562. package/node_modules/openai/resources/beta/agents/environments/index.js +11 -0
  563. package/node_modules/openai/resources/beta/agents/environments/index.mjs +5 -0
  564. package/node_modules/openai/resources/beta/agents/environments/templates.js +112 -0
  565. package/node_modules/openai/resources/beta/agents/environments/templates.mjs +108 -0
  566. package/node_modules/openai/resources/beta/agents/environments.js +6 -0
  567. package/node_modules/openai/resources/beta/agents/environments.mjs +3 -0
  568. package/node_modules/openai/resources/beta/agents/index.js +13 -0
  569. package/node_modules/openai/resources/beta/agents/index.mjs +6 -0
  570. package/node_modules/openai/resources/beta/agents/sessions/artifacts.js +106 -0
  571. package/node_modules/openai/resources/beta/agents/sessions/artifacts.mjs +102 -0
  572. package/node_modules/openai/resources/beta/agents/sessions/events.js +75 -0
  573. package/node_modules/openai/resources/beta/agents/sessions/events.mjs +71 -0
  574. package/node_modules/openai/resources/beta/agents/sessions/index.js +17 -0
  575. package/node_modules/openai/resources/beta/agents/sessions/index.mjs +8 -0
  576. package/node_modules/openai/resources/beta/agents/sessions/items.js +35 -0
  577. package/node_modules/openai/resources/beta/agents/sessions/items.mjs +31 -0
  578. package/node_modules/openai/resources/beta/agents/sessions/sessions.js +127 -0
  579. package/node_modules/openai/resources/beta/agents/sessions/sessions.mjs +122 -0
  580. package/node_modules/openai/resources/beta/agents/sessions/subagents/index.js +11 -0
  581. package/node_modules/openai/resources/beta/agents/sessions/subagents/index.mjs +5 -0
  582. package/node_modules/openai/resources/beta/agents/sessions/subagents/items.js +36 -0
  583. package/node_modules/openai/resources/beta/agents/sessions/subagents/items.mjs +32 -0
  584. package/node_modules/openai/resources/beta/agents/sessions/subagents/subagents.js +67 -0
  585. package/node_modules/openai/resources/beta/agents/sessions/subagents/subagents.mjs +62 -0
  586. package/node_modules/openai/resources/beta/agents/sessions/subagents/turns/index.js +9 -0
  587. package/node_modules/openai/resources/beta/agents/sessions/subagents/turns/index.mjs +4 -0
  588. package/node_modules/openai/resources/beta/agents/sessions/subagents/turns/items.js +36 -0
  589. package/node_modules/openai/resources/beta/agents/sessions/subagents/turns/items.mjs +32 -0
  590. package/node_modules/openai/resources/beta/agents/sessions/subagents/turns/turns.js +68 -0
  591. package/node_modules/openai/resources/beta/agents/sessions/subagents/turns/turns.mjs +63 -0
  592. package/node_modules/openai/resources/beta/agents/sessions/subagents/turns.js +6 -0
  593. package/node_modules/openai/resources/beta/agents/sessions/subagents/turns.mjs +3 -0
  594. package/node_modules/openai/resources/beta/agents/sessions/subagents.js +6 -0
  595. package/node_modules/openai/resources/beta/agents/sessions/subagents.mjs +3 -0
  596. package/node_modules/openai/resources/beta/agents/sessions/turns.js +57 -0
  597. package/node_modules/openai/resources/beta/agents/sessions/turns.mjs +53 -0
  598. package/node_modules/openai/resources/beta/agents/sessions.js +6 -0
  599. package/node_modules/openai/resources/beta/agents/sessions.mjs +3 -0
  600. package/node_modules/openai/resources/beta/agents/vaults/credentials.js +132 -0
  601. package/node_modules/openai/resources/beta/agents/vaults/credentials.mjs +128 -0
  602. package/node_modules/openai/resources/beta/agents/vaults/index.js +9 -0
  603. package/node_modules/openai/resources/beta/agents/vaults/index.mjs +4 -0
  604. package/node_modules/openai/resources/beta/agents/vaults/vaults.js +93 -0
  605. package/node_modules/openai/resources/beta/agents/vaults/vaults.mjs +88 -0
  606. package/node_modules/openai/resources/beta/agents/vaults.js +6 -0
  607. package/node_modules/openai/resources/beta/agents/vaults.mjs +3 -0
  608. package/node_modules/openai/resources/beta/agents.js +6 -0
  609. package/node_modules/openai/resources/beta/agents.mjs +3 -0
  610. package/node_modules/openai/resources/beta/assistants.js +1 -1
  611. package/node_modules/openai/resources/beta/assistants.mjs +1 -1
  612. package/node_modules/openai/resources/beta/beta.js +9 -1
  613. package/node_modules/openai/resources/beta/beta.mjs +9 -1
  614. package/node_modules/openai/resources/beta/chatkit/chatkit.js +1 -1
  615. package/node_modules/openai/resources/beta/chatkit/chatkit.mjs +1 -1
  616. package/node_modules/openai/resources/beta/chatkit/index.js +1 -1
  617. package/node_modules/openai/resources/beta/chatkit/index.mjs +1 -1
  618. package/node_modules/openai/resources/beta/chatkit/sessions.js +1 -1
  619. package/node_modules/openai/resources/beta/chatkit/sessions.mjs +1 -1
  620. package/node_modules/openai/resources/beta/chatkit/threads.js +1 -1
  621. package/node_modules/openai/resources/beta/chatkit/threads.mjs +1 -1
  622. package/node_modules/openai/resources/beta/chatkit.js +1 -1
  623. package/node_modules/openai/resources/beta/chatkit.mjs +1 -1
  624. package/node_modules/openai/resources/beta/index.js +12 -8
  625. package/node_modules/openai/resources/beta/index.mjs +3 -1
  626. package/node_modules/openai/resources/beta/realtime/index.js +0 -1
  627. package/node_modules/openai/resources/beta/realtime/index.mjs +0 -1
  628. package/node_modules/openai/resources/beta/realtime/realtime.js +0 -1
  629. package/node_modules/openai/resources/beta/realtime/realtime.mjs +0 -1
  630. package/node_modules/openai/resources/beta/realtime/sessions.js +0 -1
  631. package/node_modules/openai/resources/beta/realtime/sessions.mjs +0 -1
  632. package/node_modules/openai/resources/beta/realtime/transcription-sessions.js +0 -1
  633. package/node_modules/openai/resources/beta/realtime/transcription-sessions.mjs +0 -1
  634. package/node_modules/openai/resources/beta/realtime.js +0 -1
  635. package/node_modules/openai/resources/beta/realtime.mjs +0 -1
  636. package/node_modules/openai/resources/beta/responses/index.js +11 -0
  637. package/node_modules/openai/resources/beta/responses/index.mjs +5 -0
  638. package/node_modules/openai/resources/beta/responses/input-items.js +37 -0
  639. package/node_modules/openai/resources/beta/responses/input-items.mjs +33 -0
  640. package/node_modules/openai/resources/beta/responses/input-tokens.js +34 -0
  641. package/node_modules/openai/resources/beta/responses/input-tokens.mjs +30 -0
  642. package/node_modules/openai/resources/beta/responses/internal-base.js +66 -0
  643. package/node_modules/openai/resources/beta/responses/internal-base.mjs +60 -0
  644. package/node_modules/openai/resources/beta/responses/responses.js +121 -0
  645. package/node_modules/openai/resources/beta/responses/responses.mjs +116 -0
  646. package/node_modules/openai/resources/beta/responses/ws-base.js +566 -0
  647. package/node_modules/openai/resources/beta/responses/ws-base.mjs +560 -0
  648. package/node_modules/openai/resources/beta/responses/ws.js +47 -0
  649. package/node_modules/openai/resources/beta/responses/ws.mjs +42 -0
  650. package/node_modules/openai/resources/beta/responses.js +6 -0
  651. package/node_modules/openai/resources/beta/responses.mjs +3 -0
  652. package/node_modules/openai/resources/beta/threads/index.js +1 -1
  653. package/node_modules/openai/resources/beta/threads/index.mjs +1 -1
  654. package/node_modules/openai/resources/beta/threads/messages.js +1 -1
  655. package/node_modules/openai/resources/beta/threads/messages.mjs +1 -1
  656. package/node_modules/openai/resources/beta/threads/runs/index.js +1 -1
  657. package/node_modules/openai/resources/beta/threads/runs/index.mjs +1 -1
  658. package/node_modules/openai/resources/beta/threads/runs/runs.js +3 -44
  659. package/node_modules/openai/resources/beta/threads/runs/runs.mjs +3 -44
  660. package/node_modules/openai/resources/beta/threads/runs/steps.js +1 -1
  661. package/node_modules/openai/resources/beta/threads/runs/steps.mjs +1 -1
  662. package/node_modules/openai/resources/beta/threads/runs.js +1 -1
  663. package/node_modules/openai/resources/beta/threads/runs.mjs +1 -1
  664. package/node_modules/openai/resources/beta/threads/threads.js +1 -1
  665. package/node_modules/openai/resources/beta/threads/threads.mjs +1 -1
  666. package/node_modules/openai/resources/beta/threads.js +1 -1
  667. package/node_modules/openai/resources/beta/threads.mjs +1 -1
  668. package/node_modules/openai/resources/beta.js +1 -1
  669. package/node_modules/openai/resources/beta.mjs +1 -1
  670. package/node_modules/openai/resources/chat/chat.js +1 -1
  671. package/node_modules/openai/resources/chat/chat.mjs +1 -1
  672. package/node_modules/openai/resources/chat/completions/completions.js +2 -5
  673. package/node_modules/openai/resources/chat/completions/completions.mjs +2 -5
  674. package/node_modules/openai/resources/chat/completions/index.js +1 -1
  675. package/node_modules/openai/resources/chat/completions/index.mjs +1 -1
  676. package/node_modules/openai/resources/chat/completions/messages.js +1 -1
  677. package/node_modules/openai/resources/chat/completions/messages.mjs +1 -1
  678. package/node_modules/openai/resources/chat/completions.js +1 -1
  679. package/node_modules/openai/resources/chat/completions.mjs +1 -1
  680. package/node_modules/openai/resources/chat/index.js +1 -1
  681. package/node_modules/openai/resources/chat/index.mjs +1 -1
  682. package/node_modules/openai/resources/chat.js +1 -1
  683. package/node_modules/openai/resources/chat.mjs +1 -1
  684. package/node_modules/openai/resources/completions.js +1 -1
  685. package/node_modules/openai/resources/completions.mjs +1 -1
  686. package/node_modules/openai/resources/containers/containers.js +1 -1
  687. package/node_modules/openai/resources/containers/containers.mjs +1 -1
  688. package/node_modules/openai/resources/containers/files/content.js +1 -1
  689. package/node_modules/openai/resources/containers/files/content.mjs +1 -1
  690. package/node_modules/openai/resources/containers/files/files.js +1 -1
  691. package/node_modules/openai/resources/containers/files/files.mjs +1 -1
  692. package/node_modules/openai/resources/containers/files/index.js +1 -1
  693. package/node_modules/openai/resources/containers/files/index.mjs +1 -1
  694. package/node_modules/openai/resources/containers/files.js +1 -1
  695. package/node_modules/openai/resources/containers/files.mjs +1 -1
  696. package/node_modules/openai/resources/containers/index.js +1 -1
  697. package/node_modules/openai/resources/containers/index.mjs +1 -1
  698. package/node_modules/openai/resources/containers.js +1 -1
  699. package/node_modules/openai/resources/containers.mjs +1 -1
  700. package/node_modules/openai/resources/content-provenance-checks.js +24 -0
  701. package/node_modules/openai/resources/content-provenance-checks.mjs +20 -0
  702. package/node_modules/openai/resources/conversations/conversations.js +1 -1
  703. package/node_modules/openai/resources/conversations/conversations.mjs +1 -1
  704. package/node_modules/openai/resources/conversations/index.js +1 -1
  705. package/node_modules/openai/resources/conversations/index.mjs +1 -1
  706. package/node_modules/openai/resources/conversations/items.js +1 -1
  707. package/node_modules/openai/resources/conversations/items.mjs +1 -1
  708. package/node_modules/openai/resources/conversations.js +1 -1
  709. package/node_modules/openai/resources/conversations.mjs +1 -1
  710. package/node_modules/openai/resources/embeddings.js +3 -47
  711. package/node_modules/openai/resources/embeddings.mjs +3 -47
  712. package/node_modules/openai/resources/evals/evals.js +2 -2
  713. package/node_modules/openai/resources/evals/evals.mjs +2 -2
  714. package/node_modules/openai/resources/evals/index.js +1 -1
  715. package/node_modules/openai/resources/evals/index.mjs +1 -1
  716. package/node_modules/openai/resources/evals/runs/index.js +1 -1
  717. package/node_modules/openai/resources/evals/runs/index.mjs +1 -1
  718. package/node_modules/openai/resources/evals/runs/output-items.js +1 -1
  719. package/node_modules/openai/resources/evals/runs/output-items.mjs +1 -1
  720. package/node_modules/openai/resources/evals/runs/runs.js +1 -1
  721. package/node_modules/openai/resources/evals/runs/runs.mjs +1 -1
  722. package/node_modules/openai/resources/evals/runs.js +1 -1
  723. package/node_modules/openai/resources/evals/runs.mjs +1 -1
  724. package/node_modules/openai/resources/evals.js +1 -1
  725. package/node_modules/openai/resources/evals.mjs +1 -1
  726. package/node_modules/openai/resources/files.js +9 -22
  727. package/node_modules/openai/resources/files.mjs +9 -22
  728. package/node_modules/openai/resources/fine-tuning/alpha/alpha.js +1 -1
  729. package/node_modules/openai/resources/fine-tuning/alpha/alpha.mjs +1 -1
  730. package/node_modules/openai/resources/fine-tuning/alpha/graders.js +1 -1
  731. package/node_modules/openai/resources/fine-tuning/alpha/graders.mjs +1 -1
  732. package/node_modules/openai/resources/fine-tuning/alpha/index.js +1 -1
  733. package/node_modules/openai/resources/fine-tuning/alpha/index.mjs +1 -1
  734. package/node_modules/openai/resources/fine-tuning/alpha.js +1 -1
  735. package/node_modules/openai/resources/fine-tuning/alpha.mjs +1 -1
  736. package/node_modules/openai/resources/fine-tuning/checkpoints/checkpoints.js +1 -1
  737. package/node_modules/openai/resources/fine-tuning/checkpoints/checkpoints.mjs +1 -1
  738. package/node_modules/openai/resources/fine-tuning/checkpoints/index.js +1 -1
  739. package/node_modules/openai/resources/fine-tuning/checkpoints/index.mjs +1 -1
  740. package/node_modules/openai/resources/fine-tuning/checkpoints/permissions.js +9 -5
  741. package/node_modules/openai/resources/fine-tuning/checkpoints/permissions.mjs +9 -5
  742. package/node_modules/openai/resources/fine-tuning/checkpoints.js +1 -1
  743. package/node_modules/openai/resources/fine-tuning/checkpoints.mjs +1 -1
  744. package/node_modules/openai/resources/fine-tuning/fine-tuning.js +1 -1
  745. package/node_modules/openai/resources/fine-tuning/fine-tuning.mjs +1 -1
  746. package/node_modules/openai/resources/fine-tuning/index.js +1 -1
  747. package/node_modules/openai/resources/fine-tuning/index.mjs +1 -1
  748. package/node_modules/openai/resources/fine-tuning/jobs/checkpoints.js +1 -1
  749. package/node_modules/openai/resources/fine-tuning/jobs/checkpoints.mjs +1 -1
  750. package/node_modules/openai/resources/fine-tuning/jobs/index.js +1 -1
  751. package/node_modules/openai/resources/fine-tuning/jobs/index.mjs +1 -1
  752. package/node_modules/openai/resources/fine-tuning/jobs/jobs.js +3 -3
  753. package/node_modules/openai/resources/fine-tuning/jobs/jobs.mjs +3 -3
  754. package/node_modules/openai/resources/fine-tuning/jobs.js +1 -1
  755. package/node_modules/openai/resources/fine-tuning/jobs.mjs +1 -1
  756. package/node_modules/openai/resources/fine-tuning/methods.js +1 -1
  757. package/node_modules/openai/resources/fine-tuning/methods.mjs +1 -1
  758. package/node_modules/openai/resources/fine-tuning.js +1 -1
  759. package/node_modules/openai/resources/fine-tuning.mjs +1 -1
  760. package/node_modules/openai/resources/graders/grader-models.js +1 -1
  761. package/node_modules/openai/resources/graders/grader-models.mjs +1 -1
  762. package/node_modules/openai/resources/graders/graders.js +1 -1
  763. package/node_modules/openai/resources/graders/graders.mjs +1 -1
  764. package/node_modules/openai/resources/graders/index.js +1 -1
  765. package/node_modules/openai/resources/graders/index.mjs +1 -1
  766. package/node_modules/openai/resources/graders.js +1 -1
  767. package/node_modules/openai/resources/graders.mjs +1 -1
  768. package/node_modules/openai/resources/images.js +8 -2
  769. package/node_modules/openai/resources/images.mjs +8 -2
  770. package/node_modules/openai/resources/index.js +9 -3
  771. package/node_modules/openai/resources/index.mjs +5 -2
  772. package/node_modules/openai/resources/live/forks/forks.js +9 -0
  773. package/node_modules/openai/resources/live/forks/forks.mjs +5 -0
  774. package/node_modules/openai/resources/live/forks/index.js +7 -0
  775. package/node_modules/openai/resources/live/forks/index.mjs +3 -0
  776. package/node_modules/openai/resources/live/forks/internal-base.js +65 -0
  777. package/node_modules/openai/resources/live/forks/internal-base.mjs +59 -0
  778. package/node_modules/openai/resources/live/forks/ws-base.js +547 -0
  779. package/node_modules/openai/resources/live/forks/ws-base.mjs +543 -0
  780. package/node_modules/openai/resources/live/forks/ws.js +32 -0
  781. package/node_modules/openai/resources/live/forks/ws.mjs +27 -0
  782. package/node_modules/openai/resources/live/forks.js +6 -0
  783. package/node_modules/openai/resources/live/forks.mjs +3 -0
  784. package/node_modules/openai/resources/live/index.js +13 -0
  785. package/node_modules/openai/resources/live/index.mjs +6 -0
  786. package/node_modules/openai/resources/live/internal-base.js +64 -0
  787. package/node_modules/openai/resources/live/internal-base.mjs +58 -0
  788. package/node_modules/openai/resources/live/live.js +40 -0
  789. package/node_modules/openai/resources/live/live.mjs +35 -0
  790. package/node_modules/openai/resources/live/sessions.js +124 -0
  791. package/node_modules/openai/resources/live/sessions.mjs +120 -0
  792. package/node_modules/openai/resources/live/sideband/index.js +7 -0
  793. package/node_modules/openai/resources/live/sideband/index.mjs +3 -0
  794. package/node_modules/openai/resources/live/sideband/internal-base.js +65 -0
  795. package/node_modules/openai/resources/live/sideband/internal-base.mjs +59 -0
  796. package/node_modules/openai/resources/live/sideband/sideband.js +9 -0
  797. package/node_modules/openai/resources/live/sideband/sideband.mjs +5 -0
  798. package/node_modules/openai/resources/live/sideband/ws-base.js +547 -0
  799. package/node_modules/openai/resources/live/sideband/ws-base.mjs +543 -0
  800. package/node_modules/openai/resources/live/sideband/ws.js +32 -0
  801. package/node_modules/openai/resources/live/sideband/ws.mjs +27 -0
  802. package/node_modules/openai/resources/live/sideband.js +6 -0
  803. package/node_modules/openai/resources/live/sideband.mjs +3 -0
  804. package/node_modules/openai/resources/live/ws-base.js +547 -0
  805. package/node_modules/openai/resources/live/ws-base.mjs +543 -0
  806. package/node_modules/openai/resources/live/ws.js +32 -0
  807. package/node_modules/openai/resources/live/ws.mjs +27 -0
  808. package/node_modules/openai/resources/live.js +6 -0
  809. package/node_modules/openai/resources/live.mjs +3 -0
  810. package/node_modules/openai/resources/models.js +1 -1
  811. package/node_modules/openai/resources/models.mjs +1 -1
  812. package/node_modules/openai/resources/moderations.js +3 -2
  813. package/node_modules/openai/resources/moderations.mjs +3 -2
  814. package/node_modules/openai/resources/realtime/calls.js +25 -1
  815. package/node_modules/openai/resources/realtime/calls.mjs +25 -1
  816. package/node_modules/openai/resources/realtime/client-secrets.js +2 -2
  817. package/node_modules/openai/resources/realtime/client-secrets.mjs +2 -2
  818. package/node_modules/openai/resources/realtime/index.js +1 -1
  819. package/node_modules/openai/resources/realtime/index.mjs +2 -2
  820. package/node_modules/openai/resources/realtime/realtime.js +1 -1
  821. package/node_modules/openai/resources/realtime/realtime.mjs +1 -1
  822. package/node_modules/openai/resources/realtime.js +1 -1
  823. package/node_modules/openai/resources/realtime.mjs +1 -1
  824. package/node_modules/openai/resources/responses/index.js +1 -1
  825. package/node_modules/openai/resources/responses/index.mjs +1 -1
  826. package/node_modules/openai/resources/responses/input-items.js +1 -1
  827. package/node_modules/openai/resources/responses/input-items.mjs +1 -1
  828. package/node_modules/openai/resources/responses/input-tokens.js +1 -1
  829. package/node_modules/openai/resources/responses/input-tokens.mjs +1 -1
  830. package/node_modules/openai/resources/responses/internal-base.js +24 -6
  831. package/node_modules/openai/resources/responses/internal-base.mjs +24 -6
  832. package/node_modules/openai/resources/responses/responses.js +5 -5
  833. package/node_modules/openai/resources/responses/responses.mjs +5 -5
  834. package/node_modules/openai/resources/responses/ws-base.js +115 -23
  835. package/node_modules/openai/resources/responses/ws-base.mjs +115 -25
  836. package/node_modules/openai/resources/responses/ws.js +23 -7
  837. package/node_modules/openai/resources/responses/ws.mjs +23 -7
  838. package/node_modules/openai/resources/responses.js +1 -1
  839. package/node_modules/openai/resources/responses.mjs +1 -1
  840. package/node_modules/openai/resources/safety/alerts.js +16 -0
  841. package/node_modules/openai/resources/safety/alerts.mjs +12 -0
  842. package/node_modules/openai/resources/safety/index.js +9 -0
  843. package/node_modules/openai/resources/safety/index.mjs +4 -0
  844. package/node_modules/openai/resources/safety/safety.js +17 -0
  845. package/node_modules/openai/resources/safety/safety.mjs +12 -0
  846. package/node_modules/openai/resources/safety.js +6 -0
  847. package/node_modules/openai/resources/safety.mjs +3 -0
  848. package/node_modules/openai/resources/shared.js +1 -1
  849. package/node_modules/openai/resources/shared.mjs +1 -1
  850. package/node_modules/openai/resources/skills/content.js +1 -1
  851. package/node_modules/openai/resources/skills/content.mjs +1 -1
  852. package/node_modules/openai/resources/skills/index.js +1 -1
  853. package/node_modules/openai/resources/skills/index.mjs +1 -1
  854. package/node_modules/openai/resources/skills/skills.js +4 -2
  855. package/node_modules/openai/resources/skills/skills.mjs +4 -2
  856. package/node_modules/openai/resources/skills/versions/content.js +1 -1
  857. package/node_modules/openai/resources/skills/versions/content.mjs +1 -1
  858. package/node_modules/openai/resources/skills/versions/index.js +1 -1
  859. package/node_modules/openai/resources/skills/versions/index.mjs +1 -1
  860. package/node_modules/openai/resources/skills/versions/versions.js +4 -2
  861. package/node_modules/openai/resources/skills/versions/versions.mjs +4 -2
  862. package/node_modules/openai/resources/skills/versions.js +1 -1
  863. package/node_modules/openai/resources/skills/versions.mjs +1 -1
  864. package/node_modules/openai/resources/skills.js +1 -1
  865. package/node_modules/openai/resources/skills.mjs +1 -1
  866. package/node_modules/openai/resources/uploads/index.js +1 -1
  867. package/node_modules/openai/resources/uploads/index.mjs +1 -1
  868. package/node_modules/openai/resources/uploads/parts.js +6 -5
  869. package/node_modules/openai/resources/uploads/parts.mjs +6 -5
  870. package/node_modules/openai/resources/uploads/uploads.js +10 -10
  871. package/node_modules/openai/resources/uploads/uploads.mjs +10 -10
  872. package/node_modules/openai/resources/uploads.js +1 -1
  873. package/node_modules/openai/resources/uploads.mjs +1 -1
  874. package/node_modules/openai/resources/vector-stores/file-batches.js +6 -63
  875. package/node_modules/openai/resources/vector-stores/file-batches.mjs +6 -63
  876. package/node_modules/openai/resources/vector-stores/files.js +6 -39
  877. package/node_modules/openai/resources/vector-stores/files.mjs +6 -39
  878. package/node_modules/openai/resources/vector-stores/index.js +1 -1
  879. package/node_modules/openai/resources/vector-stores/index.mjs +1 -1
  880. package/node_modules/openai/resources/vector-stores/vector-stores.js +1 -1
  881. package/node_modules/openai/resources/vector-stores/vector-stores.mjs +1 -1
  882. package/node_modules/openai/resources/vector-stores.js +1 -1
  883. package/node_modules/openai/resources/vector-stores.mjs +1 -1
  884. package/node_modules/openai/resources/videos.js +24 -1
  885. package/node_modules/openai/resources/videos.mjs +24 -1
  886. package/node_modules/openai/resources/webhooks/event-types.js +21 -0
  887. package/node_modules/openai/resources/webhooks/event-types.mjs +17 -0
  888. package/node_modules/openai/resources/webhooks/index.js +4 -1
  889. package/node_modules/openai/resources/webhooks/index.mjs +2 -1
  890. package/node_modules/openai/resources/webhooks/webhooks.js +127 -43
  891. package/node_modules/openai/resources/webhooks/webhooks.mjs +127 -43
  892. package/node_modules/openai/resources/webhooks.js +1 -1
  893. package/node_modules/openai/resources/webhooks.mjs +1 -1
  894. package/node_modules/openai/src/_vendor/partial-json-parser/LICENSE +21 -0
  895. package/node_modules/openai/src/_vendor/partial-json-parser/README.md +11 -1
  896. package/node_modules/openai/src/_vendor/partial-json-parser/parser.ts +66 -35
  897. package/node_modules/openai/src/_vendor/zod-to-json-schema/Options.ts +32 -18
  898. package/node_modules/openai/src/_vendor/zod-to-json-schema/Refs.ts +7 -6
  899. package/node_modules/openai/src/_vendor/zod-to-json-schema/errorMessages.ts +5 -3
  900. package/node_modules/openai/src/_vendor/zod-to-json-schema/index.ts +3 -1
  901. package/node_modules/openai/src/_vendor/zod-to-json-schema/parseDef.ts +194 -79
  902. package/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/array.ts +8 -5
  903. package/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/bigint.ts +20 -12
  904. package/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/branded.ts +4 -4
  905. package/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/catch.ts +4 -5
  906. package/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/date.ts +16 -10
  907. package/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/default.ts +10 -5
  908. package/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/effects.ts +4 -3
  909. package/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/enum.ts +1 -1
  910. package/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/intersection.ts +12 -9
  911. package/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/literal.ts +12 -2
  912. package/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/map.ts +6 -4
  913. package/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/nativeEnum.ts +10 -11
  914. package/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/null.ts +4 -3
  915. package/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/nullable.ts +25 -10
  916. package/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/number.ts +17 -8
  917. package/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/object.ts +57 -54
  918. package/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/optional.ts +25 -17
  919. package/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/pipeline.ts +8 -6
  920. package/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/promise.ts +10 -5
  921. package/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/readonly.ts +4 -5
  922. package/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/record.ts +22 -19
  923. package/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/set.ts +6 -4
  924. package/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/string.ts +62 -37
  925. package/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/tuple.ts +32 -25
  926. package/node_modules/openai/src/_vendor/zod-to-json-schema/parsers/union.ts +51 -33
  927. package/node_modules/openai/src/_vendor/zod-to-json-schema/util.ts +11 -6
  928. package/node_modules/openai/src/_vendor/zod-to-json-schema/zodToJsonSchema.ts +133 -52
  929. package/node_modules/openai/src/auth/index.ts +7 -1
  930. package/node_modules/openai/src/auth/subject-token-providers.ts +281 -16
  931. package/node_modules/openai/src/auth/types.ts +48 -5
  932. package/node_modules/openai/src/auth/workload-identity-auth.ts +227 -26
  933. package/node_modules/openai/src/auth/x509-transport.ts +369 -0
  934. package/node_modules/openai/src/azure.ts +127 -28
  935. package/node_modules/openai/src/bedrock.ts +294 -0
  936. package/node_modules/openai/src/beta/realtime/internal-base.ts +136 -16
  937. package/node_modules/openai/src/beta/realtime/websocket.ts +264 -48
  938. package/node_modules/openai/src/beta/realtime/ws.ts +138 -25
  939. package/node_modules/openai/src/client.ts +975 -124
  940. package/node_modules/openai/src/core/EventEmitter.ts +162 -26
  941. package/node_modules/openai/src/core/api-promise.ts +0 -2
  942. package/node_modules/openai/src/core/error.ts +6 -8
  943. package/node_modules/openai/src/core/pagination.ts +67 -7
  944. package/node_modules/openai/src/core/resource.ts +0 -2
  945. package/node_modules/openai/src/core/streaming.ts +490 -100
  946. package/node_modules/openai/src/core/uploads.ts +6 -1
  947. package/node_modules/openai/src/helpers/audio.ts +215 -32
  948. package/node_modules/openai/src/helpers/live.ts +8 -0
  949. package/node_modules/openai/src/helpers/standard-schema.ts +819 -0
  950. package/node_modules/openai/src/helpers/zod-v3-strict-schema.ts +520 -0
  951. package/node_modules/openai/src/helpers/zod.ts +418 -56
  952. package/node_modules/openai/src/index.ts +4 -5
  953. package/node_modules/openai/src/internal/assistant-stream-delta.ts +440 -0
  954. package/node_modules/openai/src/internal/auth/x509-api-origin.ts +27 -0
  955. package/node_modules/openai/src/internal/auth/x509-credential-options.ts +149 -0
  956. package/node_modules/openai/src/internal/auth/x509-token-exchange.ts +319 -0
  957. package/node_modules/openai/src/internal/auth/x509-transport-capability.ts +227 -0
  958. package/node_modules/openai/src/internal/auth/x509-transport-registry.ts +127 -0
  959. package/node_modules/openai/src/internal/auth/x509-transport-state-browser.ts +43 -0
  960. package/node_modules/openai/src/internal/auth/x509-transport-state.cts +43 -0
  961. package/node_modules/openai/src/internal/auth/x509-workload-identity-auth.ts +972 -0
  962. package/node_modules/openai/src/internal/bedrock.ts +586 -0
  963. package/node_modules/openai/src/internal/builtin-types.ts +0 -2
  964. package/node_modules/openai/src/internal/data-residency.ts +44 -0
  965. package/node_modules/openai/src/internal/decoders/line.ts +145 -61
  966. package/node_modules/openai/src/internal/detect-platform.ts +3 -5
  967. package/node_modules/openai/src/internal/errors.ts +3 -4
  968. package/node_modules/openai/src/internal/headers.ts +14 -10
  969. package/node_modules/openai/src/internal/multipart-encoding.ts +53 -0
  970. package/node_modules/openai/src/internal/parse.ts +47 -19
  971. package/node_modules/openai/src/internal/provider.ts +92 -0
  972. package/node_modules/openai/src/internal/qs/formats.ts +1 -1
  973. package/node_modules/openai/src/internal/qs/stringify.ts +57 -53
  974. package/node_modules/openai/src/internal/qs/types.ts +1 -1
  975. package/node_modules/openai/src/internal/qs/utils.ts +443 -54
  976. package/node_modules/openai/src/internal/realtime-credentials.ts +27 -0
  977. package/node_modules/openai/src/internal/request-options.ts +52 -3
  978. package/node_modules/openai/src/internal/responses/canonical-output-text.ts +160 -0
  979. package/node_modules/openai/src/internal/responses/output-text-index.ts +84 -0
  980. package/node_modules/openai/src/internal/responses/response-accumulator.ts +1263 -0
  981. package/node_modules/openai/src/internal/shim-types.ts +3 -4
  982. package/node_modules/openai/src/internal/shims.ts +0 -2
  983. package/node_modules/openai/src/internal/stream-utils.ts +37 -5
  984. package/node_modules/openai/src/internal/to-file.ts +90 -35
  985. package/node_modules/openai/src/internal/types.ts +21 -29
  986. package/node_modules/openai/src/internal/uploads.ts +533 -59
  987. package/node_modules/openai/src/internal/utils/abort.ts +116 -0
  988. package/node_modules/openai/src/internal/utils/base64.ts +3 -2
  989. package/node_modules/openai/src/internal/utils/bytes.ts +7 -0
  990. package/node_modules/openai/src/internal/utils/env.ts +9 -7
  991. package/node_modules/openai/src/internal/utils/log.ts +77 -14
  992. package/node_modules/openai/src/internal/utils/path.ts +53 -32
  993. package/node_modules/openai/src/internal/utils/query.ts +0 -2
  994. package/node_modules/openai/src/internal/utils/sleep.ts +51 -2
  995. package/node_modules/openai/src/internal/utils/uuid.ts +0 -2
  996. package/node_modules/openai/src/internal/utils/values.ts +0 -2
  997. package/node_modules/openai/src/internal/utils.ts +0 -2
  998. package/node_modules/openai/src/internal/ws-adapter-browser.ts +83 -24
  999. package/node_modules/openai/src/internal/ws-adapter-node.ts +105 -26
  1000. package/node_modules/openai/src/internal/ws-adapter.ts +23 -0
  1001. package/node_modules/openai/src/internal/ws.ts +250 -51
  1002. package/node_modules/openai/src/lib/.keep +2 -2
  1003. package/node_modules/openai/src/lib/AbstractChatCompletionRunner.ts +349 -102
  1004. package/node_modules/openai/src/lib/AssistantStream.ts +537 -268
  1005. package/node_modules/openai/src/lib/ChatCompletionRunner.ts +75 -22
  1006. package/node_modules/openai/src/lib/ChatCompletionStream.ts +2016 -268
  1007. package/node_modules/openai/src/lib/ChatCompletionStreamingRunner.ts +115 -17
  1008. package/node_modules/openai/src/lib/EventEmitter.ts +171 -26
  1009. package/node_modules/openai/src/lib/EventStream.ts +1979 -64
  1010. package/node_modules/openai/src/lib/ResponsesParser.ts +153 -56
  1011. package/node_modules/openai/src/lib/RunnableFunction.ts +99 -37
  1012. package/node_modules/openai/src/lib/Util.ts +7 -5
  1013. package/node_modules/openai/src/lib/agents/agent-session-stream.ts +328 -0
  1014. package/node_modules/openai/src/lib/agents/output-text.ts +6 -0
  1015. package/node_modules/openai/src/lib/agents/turn-state.ts +61 -0
  1016. package/node_modules/openai/src/lib/assistant-run-polling.ts +27 -0
  1017. package/node_modules/openai/src/lib/chatCompletionUtils.ts +9 -10
  1018. package/node_modules/openai/src/lib/embeddings.ts +73 -0
  1019. package/node_modules/openai/src/lib/file-processing.ts +37 -0
  1020. package/node_modules/openai/src/lib/jsonschema.ts +77 -34
  1021. package/node_modules/openai/src/lib/live/transcript-grouper.ts +307 -0
  1022. package/node_modules/openai/src/lib/live/transcript-grouping.ts +394 -0
  1023. package/node_modules/openai/src/lib/live/webrtc.ts +23 -0
  1024. package/node_modules/openai/src/lib/parser.ts +247 -69
  1025. package/node_modules/openai/src/lib/polling.ts +145 -0
  1026. package/node_modules/openai/src/lib/realtime/webrtc.ts +20 -0
  1027. package/node_modules/openai/src/lib/responses/EventTypes.ts +9 -60
  1028. package/node_modules/openai/src/lib/responses/ResponseAccumulator.ts +27 -0
  1029. package/node_modules/openai/src/lib/responses/ResponseInputItems.ts +167 -0
  1030. package/node_modules/openai/src/lib/responses/ResponseStream.ts +135 -179
  1031. package/node_modules/openai/src/lib/responses/responses-websocket-lane.ts +388 -0
  1032. package/node_modules/openai/src/lib/responses/responses-websocket-session.ts +317 -0
  1033. package/node_modules/openai/src/lib/transform.ts +2015 -100
  1034. package/node_modules/openai/src/lib/vector-store-polling.ts +46 -0
  1035. package/node_modules/openai/src/lib/vector-store-upload.ts +57 -0
  1036. package/node_modules/openai/src/lib/webhook-signature.ts +164 -0
  1037. package/node_modules/openai/src/lib/webrtc/connection.ts +313 -0
  1038. package/node_modules/openai/src/lib/webrtc/data-channel.ts +151 -0
  1039. package/node_modules/openai/src/lib/webrtc/errors.ts +38 -0
  1040. package/node_modules/openai/src/lib/webrtc/subscriptions.ts +65 -0
  1041. package/node_modules/openai/src/lib/webrtc/types.ts +110 -0
  1042. package/node_modules/openai/src/live/webrtc.ts +10 -0
  1043. package/node_modules/openai/src/providers/bedrock/aws.ts +331 -0
  1044. package/node_modules/openai/src/providers/bedrock.ts +51 -0
  1045. package/node_modules/openai/src/realtime/internal-base.ts +265 -17
  1046. package/node_modules/openai/src/realtime/webrtc.ts +10 -0
  1047. package/node_modules/openai/src/realtime/websocket.ts +259 -54
  1048. package/node_modules/openai/src/realtime/ws.ts +135 -29
  1049. package/node_modules/openai/src/resources/admin/admin.ts +1 -1
  1050. package/node_modules/openai/src/resources/admin/index.ts +1 -1
  1051. package/node_modules/openai/src/resources/admin/organization/admin-api-keys.ts +18 -2
  1052. package/node_modules/openai/src/resources/admin/organization/audit-logs.ts +327 -4
  1053. package/node_modules/openai/src/resources/admin/organization/certificates.ts +1 -1
  1054. package/node_modules/openai/src/resources/admin/organization/data-retention.ts +1 -1
  1055. package/node_modules/openai/src/resources/admin/organization/groups/groups.ts +1 -1
  1056. package/node_modules/openai/src/resources/admin/organization/groups/index.ts +1 -1
  1057. package/node_modules/openai/src/resources/admin/organization/groups/roles.ts +1 -1
  1058. package/node_modules/openai/src/resources/admin/organization/groups/users.ts +1 -1
  1059. package/node_modules/openai/src/resources/admin/organization/groups.ts +1 -1
  1060. package/node_modules/openai/src/resources/admin/organization/index.ts +9 -1
  1061. package/node_modules/openai/src/resources/admin/organization/invites.ts +1 -1
  1062. package/node_modules/openai/src/resources/admin/organization/organization.ts +21 -1
  1063. package/node_modules/openai/src/resources/admin/organization/projects/api-keys.ts +22 -2
  1064. package/node_modules/openai/src/resources/admin/organization/projects/certificates.ts +1 -1
  1065. package/node_modules/openai/src/resources/admin/organization/projects/data-retention.ts +1 -1
  1066. package/node_modules/openai/src/resources/admin/organization/projects/groups/groups.ts +1 -1
  1067. package/node_modules/openai/src/resources/admin/organization/projects/groups/index.ts +1 -1
  1068. package/node_modules/openai/src/resources/admin/organization/projects/groups/roles.ts +1 -1
  1069. package/node_modules/openai/src/resources/admin/organization/projects/groups.ts +1 -1
  1070. package/node_modules/openai/src/resources/admin/organization/projects/hosted-tool-permissions.ts +1 -1
  1071. package/node_modules/openai/src/resources/admin/organization/projects/index.ts +10 -2
  1072. package/node_modules/openai/src/resources/admin/organization/projects/model-permissions.ts +1 -1
  1073. package/node_modules/openai/src/resources/admin/organization/projects/projects.ts +70 -19
  1074. package/node_modules/openai/src/resources/admin/organization/projects/rate-limits.ts +1 -1
  1075. package/node_modules/openai/src/resources/admin/organization/projects/roles.ts +1 -1
  1076. package/node_modules/openai/src/resources/admin/organization/projects/service-accounts/api-keys.ts +91 -0
  1077. package/node_modules/openai/src/resources/admin/organization/projects/service-accounts/index.ts +15 -0
  1078. package/node_modules/openai/src/resources/admin/organization/projects/service-accounts/service-accounts.ts +299 -0
  1079. package/node_modules/openai/src/resources/admin/organization/projects/service-accounts.ts +2 -265
  1080. package/node_modules/openai/src/resources/admin/organization/projects/spend-alerts.ts +33 -1
  1081. package/node_modules/openai/src/resources/admin/organization/projects/spend-limit.ts +156 -0
  1082. package/node_modules/openai/src/resources/admin/organization/projects/users/index.ts +1 -1
  1083. package/node_modules/openai/src/resources/admin/organization/projects/users/roles.ts +1 -1
  1084. package/node_modules/openai/src/resources/admin/organization/projects/users/users.ts +1 -1
  1085. package/node_modules/openai/src/resources/admin/organization/projects/users.ts +1 -1
  1086. package/node_modules/openai/src/resources/admin/organization/projects.ts +1 -1
  1087. package/node_modules/openai/src/resources/admin/organization/roles.ts +1 -1
  1088. package/node_modules/openai/src/resources/admin/organization/spend-alerts.ts +19 -1
  1089. package/node_modules/openai/src/resources/admin/organization/spend-limit.ts +144 -0
  1090. package/node_modules/openai/src/resources/admin/organization/usage.ts +706 -89
  1091. package/node_modules/openai/src/resources/admin/organization/users/index.ts +1 -1
  1092. package/node_modules/openai/src/resources/admin/organization/users/roles.ts +1 -1
  1093. package/node_modules/openai/src/resources/admin/organization/users/users.ts +1 -1
  1094. package/node_modules/openai/src/resources/admin/organization/users.ts +1 -1
  1095. package/node_modules/openai/src/resources/admin/organization.ts +1 -1
  1096. package/node_modules/openai/src/resources/admin.ts +1 -1
  1097. package/node_modules/openai/src/resources/audio/audio.ts +4 -1
  1098. package/node_modules/openai/src/resources/audio/index.ts +2 -1
  1099. package/node_modules/openai/src/resources/audio/speech.ts +4 -3
  1100. package/node_modules/openai/src/resources/audio/transcriptions.ts +51 -13
  1101. package/node_modules/openai/src/resources/audio/translations.ts +5 -3
  1102. package/node_modules/openai/src/resources/audio.ts +1 -1
  1103. package/node_modules/openai/src/resources/batches.ts +10 -9
  1104. package/node_modules/openai/src/resources/beta/agents/agents.ts +4627 -0
  1105. package/node_modules/openai/src/resources/beta/agents/environments/environments.ts +111 -0
  1106. package/node_modules/openai/src/resources/beta/agents/environments/files.ts +169 -0
  1107. package/node_modules/openai/src/resources/beta/agents/environments/index.ts +19 -0
  1108. package/node_modules/openai/src/resources/beta/agents/environments/templates.ts +535 -0
  1109. package/node_modules/openai/src/resources/beta/agents/environments.ts +3 -0
  1110. package/node_modules/openai/src/resources/beta/agents/index.ts +127 -0
  1111. package/node_modules/openai/src/resources/beta/agents/sessions/artifacts.ts +249 -0
  1112. package/node_modules/openai/src/resources/beta/agents/sessions/events.ts +94 -0
  1113. package/node_modules/openai/src/resources/beta/agents/sessions/index.ts +24 -0
  1114. package/node_modules/openai/src/resources/beta/agents/sessions/items.ts +59 -0
  1115. package/node_modules/openai/src/resources/beta/agents/sessions/sessions.ts +403 -0
  1116. package/node_modules/openai/src/resources/beta/agents/sessions/subagents/index.ts +5 -0
  1117. package/node_modules/openai/src/resources/beta/agents/sessions/subagents/items.ts +65 -0
  1118. package/node_modules/openai/src/resources/beta/agents/sessions/subagents/subagents.ts +113 -0
  1119. package/node_modules/openai/src/resources/beta/agents/sessions/subagents/turns/index.ts +4 -0
  1120. package/node_modules/openai/src/resources/beta/agents/sessions/subagents/turns/items.ts +70 -0
  1121. package/node_modules/openai/src/resources/beta/agents/sessions/subagents/turns/turns.ts +111 -0
  1122. package/node_modules/openai/src/resources/beta/agents/sessions/subagents/turns.ts +3 -0
  1123. package/node_modules/openai/src/resources/beta/agents/sessions/subagents.ts +3 -0
  1124. package/node_modules/openai/src/resources/beta/agents/sessions/turns.ts +159 -0
  1125. package/node_modules/openai/src/resources/beta/agents/sessions.ts +3 -0
  1126. package/node_modules/openai/src/resources/beta/agents/vaults/credentials.ts +693 -0
  1127. package/node_modules/openai/src/resources/beta/agents/vaults/index.ts +29 -0
  1128. package/node_modules/openai/src/resources/beta/agents/vaults/vaults.ts +243 -0
  1129. package/node_modules/openai/src/resources/beta/agents/vaults.ts +3 -0
  1130. package/node_modules/openai/src/resources/beta/agents.ts +3 -0
  1131. package/node_modules/openai/src/resources/beta/assistants.ts +154 -172
  1132. package/node_modules/openai/src/resources/beta/beta.ts +578 -3
  1133. package/node_modules/openai/src/resources/beta/chatkit/chatkit.ts +1 -1
  1134. package/node_modules/openai/src/resources/beta/chatkit/index.ts +1 -1
  1135. package/node_modules/openai/src/resources/beta/chatkit/sessions.ts +1 -1
  1136. package/node_modules/openai/src/resources/beta/chatkit/threads.ts +1 -1
  1137. package/node_modules/openai/src/resources/beta/chatkit.ts +1 -1
  1138. package/node_modules/openai/src/resources/beta/index.ts +290 -1
  1139. package/node_modules/openai/src/resources/beta/realtime/index.ts +0 -2
  1140. package/node_modules/openai/src/resources/beta/realtime/realtime.ts +0 -2
  1141. package/node_modules/openai/src/resources/beta/realtime/sessions.ts +0 -2
  1142. package/node_modules/openai/src/resources/beta/realtime/transcription-sessions.ts +0 -2
  1143. package/node_modules/openai/src/resources/beta/realtime.ts +0 -2
  1144. package/node_modules/openai/src/resources/beta/responses/index.ts +189 -0
  1145. package/node_modules/openai/src/resources/beta/responses/input-items.ts +105 -0
  1146. package/node_modules/openai/src/resources/beta/responses/input-tokens.ts +249 -0
  1147. package/node_modules/openai/src/resources/beta/responses/internal-base.ts +136 -0
  1148. package/node_modules/openai/src/resources/beta/responses/responses.ts +15060 -0
  1149. package/node_modules/openai/src/resources/beta/responses/ws-base.ts +729 -0
  1150. package/node_modules/openai/src/resources/beta/responses/ws.ts +62 -0
  1151. package/node_modules/openai/src/resources/beta/responses.ts +3 -0
  1152. package/node_modules/openai/src/resources/beta/threads/index.ts +1 -1
  1153. package/node_modules/openai/src/resources/beta/threads/messages.ts +30 -24
  1154. package/node_modules/openai/src/resources/beta/threads/runs/index.ts +2 -2
  1155. package/node_modules/openai/src/resources/beta/threads/runs/runs.ts +47 -93
  1156. package/node_modules/openai/src/resources/beta/threads/runs/steps.ts +15 -16
  1157. package/node_modules/openai/src/resources/beta/threads/runs.ts +1 -1
  1158. package/node_modules/openai/src/resources/beta/threads/threads.ts +54 -51
  1159. package/node_modules/openai/src/resources/beta/threads.ts +1 -1
  1160. package/node_modules/openai/src/resources/beta.ts +1 -1
  1161. package/node_modules/openai/src/resources/chat/chat.ts +1 -1
  1162. package/node_modules/openai/src/resources/chat/completions/completions.ts +762 -108
  1163. package/node_modules/openai/src/resources/chat/completions/index.ts +1 -1
  1164. package/node_modules/openai/src/resources/chat/completions/messages.ts +1 -1
  1165. package/node_modules/openai/src/resources/chat/completions.ts +1 -1
  1166. package/node_modules/openai/src/resources/chat/index.ts +1 -1
  1167. package/node_modules/openai/src/resources/chat.ts +1 -1
  1168. package/node_modules/openai/src/resources/completions.ts +36 -15
  1169. package/node_modules/openai/src/resources/containers/containers.ts +1 -1
  1170. package/node_modules/openai/src/resources/containers/files/content.ts +1 -1
  1171. package/node_modules/openai/src/resources/containers/files/files.ts +1 -1
  1172. package/node_modules/openai/src/resources/containers/files/index.ts +1 -1
  1173. package/node_modules/openai/src/resources/containers/files.ts +1 -1
  1174. package/node_modules/openai/src/resources/containers/index.ts +1 -1
  1175. package/node_modules/openai/src/resources/containers.ts +1 -1
  1176. package/node_modules/openai/src/resources/content-provenance-checks.ts +132 -0
  1177. package/node_modules/openai/src/resources/conversations/conversations.ts +23 -2
  1178. package/node_modules/openai/src/resources/conversations/index.ts +1 -1
  1179. package/node_modules/openai/src/resources/conversations/items.ts +93 -5
  1180. package/node_modules/openai/src/resources/conversations.ts +1 -1
  1181. package/node_modules/openai/src/resources/embeddings.ts +22 -49
  1182. package/node_modules/openai/src/resources/evals/evals.ts +6 -6
  1183. package/node_modules/openai/src/resources/evals/index.ts +1 -1
  1184. package/node_modules/openai/src/resources/evals/runs/index.ts +1 -1
  1185. package/node_modules/openai/src/resources/evals/runs/output-items.ts +1 -1
  1186. package/node_modules/openai/src/resources/evals/runs/runs.ts +119 -191
  1187. package/node_modules/openai/src/resources/evals/runs.ts +1 -1
  1188. package/node_modules/openai/src/resources/evals.ts +1 -1
  1189. package/node_modules/openai/src/resources/files.ts +9 -26
  1190. package/node_modules/openai/src/resources/fine-tuning/alpha/alpha.ts +1 -1
  1191. package/node_modules/openai/src/resources/fine-tuning/alpha/graders.ts +6 -5
  1192. package/node_modules/openai/src/resources/fine-tuning/alpha/index.ts +1 -1
  1193. package/node_modules/openai/src/resources/fine-tuning/alpha.ts +1 -1
  1194. package/node_modules/openai/src/resources/fine-tuning/checkpoints/checkpoints.ts +1 -1
  1195. package/node_modules/openai/src/resources/fine-tuning/checkpoints/index.ts +1 -1
  1196. package/node_modules/openai/src/resources/fine-tuning/checkpoints/permissions.ts +9 -5
  1197. package/node_modules/openai/src/resources/fine-tuning/checkpoints.ts +1 -1
  1198. package/node_modules/openai/src/resources/fine-tuning/fine-tuning.ts +1 -1
  1199. package/node_modules/openai/src/resources/fine-tuning/index.ts +1 -1
  1200. package/node_modules/openai/src/resources/fine-tuning/jobs/checkpoints.ts +1 -1
  1201. package/node_modules/openai/src/resources/fine-tuning/jobs/index.ts +1 -1
  1202. package/node_modules/openai/src/resources/fine-tuning/jobs/jobs.ts +14 -13
  1203. package/node_modules/openai/src/resources/fine-tuning/jobs.ts +1 -1
  1204. package/node_modules/openai/src/resources/fine-tuning/methods.ts +1 -1
  1205. package/node_modules/openai/src/resources/fine-tuning.ts +1 -1
  1206. package/node_modules/openai/src/resources/graders/grader-models.ts +7 -14
  1207. package/node_modules/openai/src/resources/graders/graders.ts +1 -1
  1208. package/node_modules/openai/src/resources/graders/index.ts +1 -1
  1209. package/node_modules/openai/src/resources/graders.ts +1 -1
  1210. package/node_modules/openai/src/resources/images.ts +100 -85
  1211. package/node_modules/openai/src/resources/index.ts +9 -2
  1212. package/node_modules/openai/src/resources/live/api.md +87 -0
  1213. package/node_modules/openai/src/resources/live/forks/forks.ts +169 -0
  1214. package/node_modules/openai/src/resources/live/forks/index.ts +5 -0
  1215. package/node_modules/openai/src/resources/live/forks/internal-base.ts +126 -0
  1216. package/node_modules/openai/src/resources/live/forks/ws-base.ts +700 -0
  1217. package/node_modules/openai/src/resources/live/forks/ws.ts +47 -0
  1218. package/node_modules/openai/src/resources/live/forks.ts +3 -0
  1219. package/node_modules/openai/src/resources/live/index.ts +20 -0
  1220. package/node_modules/openai/src/resources/live/internal-base.ts +123 -0
  1221. package/node_modules/openai/src/resources/live/live.ts +2296 -0
  1222. package/node_modules/openai/src/resources/live/sessions.ts +343 -0
  1223. package/node_modules/openai/src/resources/live/sideband/index.ts +10 -0
  1224. package/node_modules/openai/src/resources/live/sideband/internal-base.ts +126 -0
  1225. package/node_modules/openai/src/resources/live/sideband/sideband.ts +58 -0
  1226. package/node_modules/openai/src/resources/live/sideband/ws-base.ts +710 -0
  1227. package/node_modules/openai/src/resources/live/sideband/ws.ts +47 -0
  1228. package/node_modules/openai/src/resources/live/sideband.ts +3 -0
  1229. package/node_modules/openai/src/resources/live/ws-base.ts +696 -0
  1230. package/node_modules/openai/src/resources/live/ws.ts +43 -0
  1231. package/node_modules/openai/src/resources/live.ts +3 -0
  1232. package/node_modules/openai/src/resources/models.ts +6 -1
  1233. package/node_modules/openai/src/resources/moderations.ts +6 -5
  1234. package/node_modules/openai/src/resources/realtime/api.md +1 -0
  1235. package/node_modules/openai/src/resources/realtime/calls.ts +50 -2
  1236. package/node_modules/openai/src/resources/realtime/client-secrets.ts +27 -10
  1237. package/node_modules/openai/src/resources/realtime/index.ts +8 -2
  1238. package/node_modules/openai/src/resources/realtime/realtime.ts +93 -35
  1239. package/node_modules/openai/src/resources/realtime.ts +1 -1
  1240. package/node_modules/openai/src/resources/responses/api.md +20 -0
  1241. package/node_modules/openai/src/resources/responses/index.ts +1 -1
  1242. package/node_modules/openai/src/resources/responses/input-items.ts +1 -1
  1243. package/node_modules/openai/src/resources/responses/input-tokens.ts +26 -16
  1244. package/node_modules/openai/src/resources/responses/internal-base.ts +33 -14
  1245. package/node_modules/openai/src/resources/responses/responses.ts +4150 -792
  1246. package/node_modules/openai/src/resources/responses/ws-base.ts +147 -31
  1247. package/node_modules/openai/src/resources/responses/ws.ts +33 -9
  1248. package/node_modules/openai/src/resources/responses.ts +1 -1
  1249. package/node_modules/openai/src/resources/safety/alerts.ts +51 -0
  1250. package/node_modules/openai/src/resources/safety/index.ts +4 -0
  1251. package/node_modules/openai/src/resources/safety/safety.ts +15 -0
  1252. package/node_modules/openai/src/resources/safety.ts +3 -0
  1253. package/node_modules/openai/src/resources/shared.ts +98 -41
  1254. package/node_modules/openai/src/resources/skills/content.ts +1 -1
  1255. package/node_modules/openai/src/resources/skills/index.ts +1 -1
  1256. package/node_modules/openai/src/resources/skills/skills.ts +4 -2
  1257. package/node_modules/openai/src/resources/skills/versions/content.ts +1 -1
  1258. package/node_modules/openai/src/resources/skills/versions/index.ts +1 -1
  1259. package/node_modules/openai/src/resources/skills/versions/versions.ts +4 -2
  1260. package/node_modules/openai/src/resources/skills/versions.ts +1 -1
  1261. package/node_modules/openai/src/resources/skills.ts +1 -1
  1262. package/node_modules/openai/src/resources/uploads/index.ts +1 -1
  1263. package/node_modules/openai/src/resources/uploads/parts.ts +6 -5
  1264. package/node_modules/openai/src/resources/uploads/uploads.ts +12 -12
  1265. package/node_modules/openai/src/resources/uploads.ts +1 -1
  1266. package/node_modules/openai/src/resources/vector-stores/file-batches.ts +24 -89
  1267. package/node_modules/openai/src/resources/vector-stores/files.ts +12 -52
  1268. package/node_modules/openai/src/resources/vector-stores/index.ts +1 -1
  1269. package/node_modules/openai/src/resources/vector-stores/vector-stores.ts +4 -4
  1270. package/node_modules/openai/src/resources/vector-stores.ts +1 -1
  1271. package/node_modules/openai/src/resources/videos.ts +63 -2
  1272. package/node_modules/openai/src/resources/webhooks/api.md +40 -17
  1273. package/node_modules/openai/src/resources/webhooks/event-types.ts +21 -0
  1274. package/node_modules/openai/src/resources/webhooks/index.ts +2 -1
  1275. package/node_modules/openai/src/resources/webhooks/webhooks.ts +694 -69
  1276. package/node_modules/openai/src/resources/webhooks.ts +1 -1
  1277. package/node_modules/openai/src/tsconfig.json +6 -3
  1278. package/node_modules/openai/src/version.ts +2 -1
  1279. package/node_modules/openai/version.js +2 -1
  1280. package/node_modules/openai/version.mjs +2 -1
  1281. package/package.json +5 -5
  1282. package/node_modules/@earendil-works/pi-ai/dist/image-models.generated.js +0 -832
  1283. package/node_modules/@earendil-works/pi-ai/dist/images-models.js +0 -143
  1284. package/node_modules/@earendil-works/pi-ai/dist/providers/openrouter-images.js +0 -22
  1285. /package/node_modules/@aws-sdk/{credential-provider-sso → client-bedrock-runtime}/node_modules/@aws-sdk/token-providers/LICENSE +0 -0
  1286. /package/node_modules/@aws-sdk/{credential-provider-sso → client-bedrock-runtime}/node_modules/@aws-sdk/token-providers/README.md +0 -0
  1287. /package/node_modules/@aws-sdk/{credential-provider-sso → client-bedrock-runtime}/node_modules/@aws-sdk/token-providers/dist-cjs/index.js +0 -0
  1288. /package/node_modules/@aws-sdk/{credential-provider-sso → client-bedrock-runtime}/node_modules/@aws-sdk/token-providers/dist-es/constants.js +0 -0
  1289. /package/node_modules/@aws-sdk/{credential-provider-sso → client-bedrock-runtime}/node_modules/@aws-sdk/token-providers/dist-es/fromEnvSigningName.js +0 -0
  1290. /package/node_modules/@aws-sdk/{credential-provider-sso → client-bedrock-runtime}/node_modules/@aws-sdk/token-providers/dist-es/fromSso.js +0 -0
  1291. /package/node_modules/@aws-sdk/{credential-provider-sso → client-bedrock-runtime}/node_modules/@aws-sdk/token-providers/dist-es/fromStatic.js +0 -0
  1292. /package/node_modules/@aws-sdk/{credential-provider-sso → client-bedrock-runtime}/node_modules/@aws-sdk/token-providers/dist-es/getNewSsoOidcToken.js +0 -0
  1293. /package/node_modules/@aws-sdk/{credential-provider-sso → client-bedrock-runtime}/node_modules/@aws-sdk/token-providers/dist-es/getSsoOidcClient.js +0 -0
  1294. /package/node_modules/@aws-sdk/{credential-provider-sso → client-bedrock-runtime}/node_modules/@aws-sdk/token-providers/dist-es/index.js +0 -0
  1295. /package/node_modules/@aws-sdk/{credential-provider-sso → client-bedrock-runtime}/node_modules/@aws-sdk/token-providers/dist-es/nodeProvider.js +0 -0
  1296. /package/node_modules/@aws-sdk/{credential-provider-sso → client-bedrock-runtime}/node_modules/@aws-sdk/token-providers/dist-es/validateTokenExpiry.js +0 -0
  1297. /package/node_modules/@aws-sdk/{credential-provider-sso → client-bedrock-runtime}/node_modules/@aws-sdk/token-providers/dist-es/validateTokenKey.js +0 -0
  1298. /package/node_modules/@aws-sdk/{credential-provider-sso → client-bedrock-runtime}/node_modules/@aws-sdk/token-providers/dist-es/writeSSOTokenToFile.js +0 -0
  1299. /package/node_modules/@earendil-works/pi-ai/dist/{auth/oauth → utils}/oauth-page.js +0 -0
@@ -1,6 +1,7 @@
1
- // File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
1
+ // File generated from our OpenAPI spec by Castiron. See CONTRIBUTING.md for details.
2
2
 
3
3
  import { APIResource } from '../../../core/resource';
4
+ import * as UsageAPI from './usage';
4
5
  import { APIPromise } from '../../../core/api-promise';
5
6
  import { RequestOptions } from '../../../internal/request-options';
6
7
 
@@ -233,6 +234,21 @@ export class Usage extends APIResource {
233
234
  }
234
235
  }
235
236
 
237
+ /**
238
+ * The unit of the `quantity` value. If no single supported unit applies to the
239
+ * result, this field is `null`.
240
+ */
241
+ export type CostQuantityUnit =
242
+ | (string & {})
243
+ | 'tokens'
244
+ | '1000_tokens'
245
+ | 'duration_seconds'
246
+ | 'duration_minutes'
247
+ | 'duration_hours'
248
+ | 'gibibyte_hours'
249
+ | 'images'
250
+ | 'characters';
251
+
236
252
  export interface UsageAudioSpeechesResponse {
237
253
  data: Array<UsageAudioSpeechesResponse.Data>;
238
254
 
@@ -272,8 +288,9 @@ export namespace UsageAudioSpeechesResponse {
272
288
  */
273
289
  export interface OrganizationUsageCompletionsResult {
274
290
  /**
275
- * The aggregated number of text input tokens used, including cached tokens. For
276
- * customers subscribe to scale tier, this includes scale tier tokens.
291
+ * The aggregated number of input tokens used, including cached and cache-write
292
+ * tokens. This includes text, audio, and image tokens. For customers subscribed to
293
+ * Scale Tier, this includes Scale Tier tokens.
277
294
  */
278
295
  input_tokens: number;
279
296
 
@@ -285,8 +302,9 @@ export namespace UsageAudioSpeechesResponse {
285
302
  object: 'organization.usage.completions.result';
286
303
 
287
304
  /**
288
- * The aggregated number of text output tokens used. For customers subscribe to
289
- * scale tier, this includes scale tier tokens.
305
+ * The aggregated number of output tokens used across text, audio, and image
306
+ * outputs. For customers subscribed to Scale Tier, this includes Scale Tier
307
+ * tokens.
290
308
  */
291
309
  output_tokens: number;
292
310
 
@@ -303,17 +321,53 @@ export namespace UsageAudioSpeechesResponse {
303
321
  batch?: boolean | null;
304
322
 
305
323
  /**
306
- * The aggregated number of audio input tokens used, including cached tokens.
324
+ * The aggregated number of uncached audio input tokens used.
307
325
  */
308
326
  input_audio_tokens?: number;
309
327
 
310
328
  /**
311
- * The aggregated number of text input tokens that has been cached from previous
312
- * requests. For customers subscribe to scale tier, this includes scale tier
313
- * tokens.
329
+ * The aggregated number of input tokens written to the cache.
330
+ */
331
+ input_cache_write_tokens?: number;
332
+
333
+ /**
334
+ * The aggregated number of cached audio input tokens used.
335
+ */
336
+ input_cached_audio_tokens?: number;
337
+
338
+ /**
339
+ * The aggregated number of cached image input tokens used.
340
+ */
341
+ input_cached_image_tokens?: number;
342
+
343
+ /**
344
+ * The aggregated number of cached text input tokens used.
345
+ */
346
+ input_cached_text_tokens?: number;
347
+
348
+ /**
349
+ * The aggregated number of cached input tokens used across text, audio, and image
350
+ * inputs. For customers subscribed to Scale Tier, this includes Scale Tier tokens.
314
351
  */
315
352
  input_cached_tokens?: number;
316
353
 
354
+ /**
355
+ * The aggregated number of uncached image input tokens used.
356
+ */
357
+ input_image_tokens?: number;
358
+
359
+ /**
360
+ * The aggregated number of uncached text input tokens used, excluding cache-write
361
+ * tokens.
362
+ */
363
+ input_text_tokens?: number;
364
+
365
+ /**
366
+ * The aggregated number of uncached input tokens used across text, audio, and
367
+ * image inputs, excluding cache-write tokens.
368
+ */
369
+ input_uncached_tokens?: number;
370
+
317
371
  /**
318
372
  * When `group_by=model`, this field provides the model name of the grouped usage
319
373
  * result.
@@ -325,6 +379,16 @@ export namespace UsageAudioSpeechesResponse {
325
379
  */
326
380
  output_audio_tokens?: number;
327
381
 
382
+ /**
383
+ * The aggregated number of image output tokens used.
384
+ */
385
+ output_image_tokens?: number;
386
+
387
+ /**
388
+ * The aggregated number of text output tokens used.
389
+ */
390
+ output_text_tokens?: number;
391
+
328
392
  /**
329
393
  * When `group_by=project_id`, this field provides the project ID of the grouped
330
394
  * usage result.
@@ -715,6 +779,12 @@ export namespace UsageAudioSpeechesResponse {
715
779
  * result.
716
780
  */
717
781
  quantity?: number | null;
782
+
783
+ /**
784
+ * The unit of the `quantity` value. If no single supported unit applies to the
785
+ * result, this field is `null`.
786
+ */
787
+ quantity_unit?: UsageAPI.CostQuantityUnit | null;
718
788
  }
719
789
 
720
790
  export namespace OrganizationCostsResult {
@@ -775,8 +845,9 @@ export namespace UsageAudioTranscriptionsResponse {
775
845
  */
776
846
  export interface OrganizationUsageCompletionsResult {
777
847
  /**
778
- * The aggregated number of text input tokens used, including cached tokens. For
779
- * customers subscribe to scale tier, this includes scale tier tokens.
848
+ * The aggregated number of input tokens used, including cached and cache-write
849
+ * tokens. This includes text, audio, and image tokens. For customers subscribed to
850
+ * Scale Tier, this includes Scale Tier tokens.
780
851
  */
781
852
  input_tokens: number;
782
853
 
@@ -788,8 +859,9 @@ export namespace UsageAudioTranscriptionsResponse {
788
859
  object: 'organization.usage.completions.result';
789
860
 
790
861
  /**
791
- * The aggregated number of text output tokens used. For customers subscribe to
792
- * scale tier, this includes scale tier tokens.
862
+ * The aggregated number of output tokens used across text, audio, and image
863
+ * outputs. For customers subscribed to Scale Tier, this includes Scale Tier
864
+ * tokens.
793
865
  */
794
866
  output_tokens: number;
795
867
 
@@ -806,17 +878,53 @@ export namespace UsageAudioTranscriptionsResponse {
806
878
  batch?: boolean | null;
807
879
 
808
880
  /**
809
- * The aggregated number of audio input tokens used, including cached tokens.
881
+ * The aggregated number of uncached audio input tokens used.
810
882
  */
811
883
  input_audio_tokens?: number;
812
884
 
813
885
  /**
814
- * The aggregated number of text input tokens that has been cached from previous
815
- * requests. For customers subscribe to scale tier, this includes scale tier
816
- * tokens.
886
+ * The aggregated number of input tokens written to the cache.
887
+ */
888
+ input_cache_write_tokens?: number;
889
+
890
+ /**
891
+ * The aggregated number of cached audio input tokens used.
892
+ */
893
+ input_cached_audio_tokens?: number;
894
+
895
+ /**
896
+ * The aggregated number of cached image input tokens used.
897
+ */
898
+ input_cached_image_tokens?: number;
899
+
900
+ /**
901
+ * The aggregated number of cached text input tokens used.
902
+ */
903
+ input_cached_text_tokens?: number;
904
+
905
+ /**
906
+ * The aggregated number of cached input tokens used across text, audio, and image
907
+ * inputs. For customers subscribed to Scale Tier, this includes Scale Tier tokens.
817
908
  */
818
909
  input_cached_tokens?: number;
819
910
 
911
+ /**
912
+ * The aggregated number of uncached image input tokens used.
913
+ */
914
+ input_image_tokens?: number;
915
+
916
+ /**
917
+ * The aggregated number of uncached text input tokens used, excluding cache-write
918
+ * tokens.
919
+ */
920
+ input_text_tokens?: number;
921
+
922
+ /**
923
+ * The aggregated number of uncached input tokens used across text, audio, and
924
+ * image inputs, excluding cache-write tokens.
925
+ */
926
+ input_uncached_tokens?: number;
927
+
820
928
  /**
821
929
  * When `group_by=model`, this field provides the model name of the grouped usage
822
930
  * result.
@@ -828,6 +936,16 @@ export namespace UsageAudioTranscriptionsResponse {
828
936
  */
829
937
  output_audio_tokens?: number;
830
938
 
939
+ /**
940
+ * The aggregated number of image output tokens used.
941
+ */
942
+ output_image_tokens?: number;
943
+
944
+ /**
945
+ * The aggregated number of text output tokens used.
946
+ */
947
+ output_text_tokens?: number;
948
+
831
949
  /**
832
950
  * When `group_by=project_id`, this field provides the project ID of the grouped
833
951
  * usage result.
@@ -1218,6 +1336,12 @@ export namespace UsageAudioTranscriptionsResponse {
1218
1336
  * result.
1219
1337
  */
1220
1338
  quantity?: number | null;
1339
+
1340
+ /**
1341
+ * The unit of the `quantity` value. If no single supported unit applies to the
1342
+ * result, this field is `null`.
1343
+ */
1344
+ quantity_unit?: UsageAPI.CostQuantityUnit | null;
1221
1345
  }
1222
1346
 
1223
1347
  export namespace OrganizationCostsResult {
@@ -1278,8 +1402,9 @@ export namespace UsageCodeInterpreterSessionsResponse {
1278
1402
  */
1279
1403
  export interface OrganizationUsageCompletionsResult {
1280
1404
  /**
1281
- * The aggregated number of text input tokens used, including cached tokens. For
1282
- * customers subscribe to scale tier, this includes scale tier tokens.
1405
+ * The aggregated number of input tokens used, including cached and cache-write
1406
+ * tokens. This includes text, audio, and image tokens. For customers subscribed to
1407
+ * Scale Tier, this includes Scale Tier tokens.
1283
1408
  */
1284
1409
  input_tokens: number;
1285
1410
 
@@ -1291,8 +1416,9 @@ export namespace UsageCodeInterpreterSessionsResponse {
1291
1416
  object: 'organization.usage.completions.result';
1292
1417
 
1293
1418
  /**
1294
- * The aggregated number of text output tokens used. For customers subscribe to
1295
- * scale tier, this includes scale tier tokens.
1419
+ * The aggregated number of output tokens used across text, audio, and image
1420
+ * outputs. For customers subscribed to Scale Tier, this includes Scale Tier
1421
+ * tokens.
1296
1422
  */
1297
1423
  output_tokens: number;
1298
1424
 
@@ -1309,17 +1435,53 @@ export namespace UsageCodeInterpreterSessionsResponse {
1309
1435
  batch?: boolean | null;
1310
1436
 
1311
1437
  /**
1312
- * The aggregated number of audio input tokens used, including cached tokens.
1438
+ * The aggregated number of uncached audio input tokens used.
1313
1439
  */
1314
1440
  input_audio_tokens?: number;
1315
1441
 
1316
1442
  /**
1317
- * The aggregated number of text input tokens that has been cached from previous
1318
- * requests. For customers subscribe to scale tier, this includes scale tier
1319
- * tokens.
1443
+ * The aggregated number of input tokens written to the cache.
1444
+ */
1445
+ input_cache_write_tokens?: number;
1446
+
1447
+ /**
1448
+ * The aggregated number of cached audio input tokens used.
1449
+ */
1450
+ input_cached_audio_tokens?: number;
1451
+
1452
+ /**
1453
+ * The aggregated number of cached image input tokens used.
1454
+ */
1455
+ input_cached_image_tokens?: number;
1456
+
1457
+ /**
1458
+ * The aggregated number of cached text input tokens used.
1459
+ */
1460
+ input_cached_text_tokens?: number;
1461
+
1462
+ /**
1463
+ * The aggregated number of cached input tokens used across text, audio, and image
1464
+ * inputs. For customers subscribed to Scale Tier, this includes Scale Tier tokens.
1320
1465
  */
1321
1466
  input_cached_tokens?: number;
1322
1467
 
1468
+ /**
1469
+ * The aggregated number of uncached image input tokens used.
1470
+ */
1471
+ input_image_tokens?: number;
1472
+
1473
+ /**
1474
+ * The aggregated number of uncached text input tokens used, excluding cache-write
1475
+ * tokens.
1476
+ */
1477
+ input_text_tokens?: number;
1478
+
1479
+ /**
1480
+ * The aggregated number of uncached input tokens used across text, audio, and
1481
+ * image inputs, excluding cache-write tokens.
1482
+ */
1483
+ input_uncached_tokens?: number;
1484
+
1323
1485
  /**
1324
1486
  * When `group_by=model`, this field provides the model name of the grouped usage
1325
1487
  * result.
@@ -1331,6 +1493,16 @@ export namespace UsageCodeInterpreterSessionsResponse {
1331
1493
  */
1332
1494
  output_audio_tokens?: number;
1333
1495
 
1496
+ /**
1497
+ * The aggregated number of image output tokens used.
1498
+ */
1499
+ output_image_tokens?: number;
1500
+
1501
+ /**
1502
+ * The aggregated number of text output tokens used.
1503
+ */
1504
+ output_text_tokens?: number;
1505
+
1334
1506
  /**
1335
1507
  * When `group_by=project_id`, this field provides the project ID of the grouped
1336
1508
  * usage result.
@@ -1721,6 +1893,12 @@ export namespace UsageCodeInterpreterSessionsResponse {
1721
1893
  * result.
1722
1894
  */
1723
1895
  quantity?: number | null;
1896
+
1897
+ /**
1898
+ * The unit of the `quantity` value. If no single supported unit applies to the
1899
+ * result, this field is `null`.
1900
+ */
1901
+ quantity_unit?: UsageAPI.CostQuantityUnit | null;
1724
1902
  }
1725
1903
 
1726
1904
  export namespace OrganizationCostsResult {
@@ -1781,8 +1959,9 @@ export namespace UsageCompletionsResponse {
1781
1959
  */
1782
1960
  export interface OrganizationUsageCompletionsResult {
1783
1961
  /**
1784
- * The aggregated number of text input tokens used, including cached tokens. For
1785
- * customers subscribe to scale tier, this includes scale tier tokens.
1962
+ * The aggregated number of input tokens used, including cached and cache-write
1963
+ * tokens. This includes text, audio, and image tokens. For customers subscribed to
1964
+ * Scale Tier, this includes Scale Tier tokens.
1786
1965
  */
1787
1966
  input_tokens: number;
1788
1967
 
@@ -1794,8 +1973,9 @@ export namespace UsageCompletionsResponse {
1794
1973
  object: 'organization.usage.completions.result';
1795
1974
 
1796
1975
  /**
1797
- * The aggregated number of text output tokens used. For customers subscribe to
1798
- * scale tier, this includes scale tier tokens.
1976
+ * The aggregated number of output tokens used across text, audio, and image
1977
+ * outputs. For customers subscribed to Scale Tier, this includes Scale Tier
1978
+ * tokens.
1799
1979
  */
1800
1980
  output_tokens: number;
1801
1981
 
@@ -1812,17 +1992,53 @@ export namespace UsageCompletionsResponse {
1812
1992
  batch?: boolean | null;
1813
1993
 
1814
1994
  /**
1815
- * The aggregated number of audio input tokens used, including cached tokens.
1995
+ * The aggregated number of uncached audio input tokens used.
1816
1996
  */
1817
1997
  input_audio_tokens?: number;
1818
1998
 
1819
1999
  /**
1820
- * The aggregated number of text input tokens that has been cached from previous
1821
- * requests. For customers subscribe to scale tier, this includes scale tier
1822
- * tokens.
2000
+ * The aggregated number of input tokens written to the cache.
2001
+ */
2002
+ input_cache_write_tokens?: number;
2003
+
2004
+ /**
2005
+ * The aggregated number of cached audio input tokens used.
2006
+ */
2007
+ input_cached_audio_tokens?: number;
2008
+
2009
+ /**
2010
+ * The aggregated number of cached image input tokens used.
2011
+ */
2012
+ input_cached_image_tokens?: number;
2013
+
2014
+ /**
2015
+ * The aggregated number of cached text input tokens used.
2016
+ */
2017
+ input_cached_text_tokens?: number;
2018
+
2019
+ /**
2020
+ * The aggregated number of cached input tokens used across text, audio, and image
2021
+ * inputs. For customers subscribed to Scale Tier, this includes Scale Tier tokens.
1823
2022
  */
1824
2023
  input_cached_tokens?: number;
1825
2024
 
2025
+ /**
2026
+ * The aggregated number of uncached image input tokens used.
2027
+ */
2028
+ input_image_tokens?: number;
2029
+
2030
+ /**
2031
+ * The aggregated number of uncached text input tokens used, excluding cache-write
2032
+ * tokens.
2033
+ */
2034
+ input_text_tokens?: number;
2035
+
2036
+ /**
2037
+ * The aggregated number of uncached input tokens used across text, audio, and
2038
+ * image inputs, excluding cache-write tokens.
2039
+ */
2040
+ input_uncached_tokens?: number;
2041
+
1826
2042
  /**
1827
2043
  * When `group_by=model`, this field provides the model name of the grouped usage
1828
2044
  * result.
@@ -1834,6 +2050,16 @@ export namespace UsageCompletionsResponse {
1834
2050
  */
1835
2051
  output_audio_tokens?: number;
1836
2052
 
2053
+ /**
2054
+ * The aggregated number of image output tokens used.
2055
+ */
2056
+ output_image_tokens?: number;
2057
+
2058
+ /**
2059
+ * The aggregated number of text output tokens used.
2060
+ */
2061
+ output_text_tokens?: number;
2062
+
1837
2063
  /**
1838
2064
  * When `group_by=project_id`, this field provides the project ID of the grouped
1839
2065
  * usage result.
@@ -2224,6 +2450,12 @@ export namespace UsageCompletionsResponse {
2224
2450
  * result.
2225
2451
  */
2226
2452
  quantity?: number | null;
2453
+
2454
+ /**
2455
+ * The unit of the `quantity` value. If no single supported unit applies to the
2456
+ * result, this field is `null`.
2457
+ */
2458
+ quantity_unit?: UsageAPI.CostQuantityUnit | null;
2227
2459
  }
2228
2460
 
2229
2461
  export namespace OrganizationCostsResult {
@@ -2284,8 +2516,9 @@ export namespace UsageCostsResponse {
2284
2516
  */
2285
2517
  export interface OrganizationUsageCompletionsResult {
2286
2518
  /**
2287
- * The aggregated number of text input tokens used, including cached tokens. For
2288
- * customers subscribe to scale tier, this includes scale tier tokens.
2519
+ * The aggregated number of input tokens used, including cached and cache-write
2520
+ * tokens. This includes text, audio, and image tokens. For customers subscribed to
2521
+ * Scale Tier, this includes Scale Tier tokens.
2289
2522
  */
2290
2523
  input_tokens: number;
2291
2524
 
@@ -2297,8 +2530,9 @@ export namespace UsageCostsResponse {
2297
2530
  object: 'organization.usage.completions.result';
2298
2531
 
2299
2532
  /**
2300
- * The aggregated number of text output tokens used. For customers subscribe to
2301
- * scale tier, this includes scale tier tokens.
2533
+ * The aggregated number of output tokens used across text, audio, and image
2534
+ * outputs. For customers subscribed to Scale Tier, this includes Scale Tier
2535
+ * tokens.
2302
2536
  */
2303
2537
  output_tokens: number;
2304
2538
 
@@ -2315,17 +2549,53 @@ export namespace UsageCostsResponse {
2315
2549
  batch?: boolean | null;
2316
2550
 
2317
2551
  /**
2318
- * The aggregated number of audio input tokens used, including cached tokens.
2552
+ * The aggregated number of uncached audio input tokens used.
2319
2553
  */
2320
2554
  input_audio_tokens?: number;
2321
2555
 
2322
2556
  /**
2323
- * The aggregated number of text input tokens that has been cached from previous
2324
- * requests. For customers subscribe to scale tier, this includes scale tier
2325
- * tokens.
2557
+ * The aggregated number of input tokens written to the cache.
2558
+ */
2559
+ input_cache_write_tokens?: number;
2560
+
2561
+ /**
2562
+ * The aggregated number of cached audio input tokens used.
2563
+ */
2564
+ input_cached_audio_tokens?: number;
2565
+
2566
+ /**
2567
+ * The aggregated number of cached image input tokens used.
2568
+ */
2569
+ input_cached_image_tokens?: number;
2570
+
2571
+ /**
2572
+ * The aggregated number of cached text input tokens used.
2573
+ */
2574
+ input_cached_text_tokens?: number;
2575
+
2576
+ /**
2577
+ * The aggregated number of cached input tokens used across text, audio, and image
2578
+ * inputs. For customers subscribed to Scale Tier, this includes Scale Tier tokens.
2326
2579
  */
2327
2580
  input_cached_tokens?: number;
2328
2581
 
2582
+ /**
2583
+ * The aggregated number of uncached image input tokens used.
2584
+ */
2585
+ input_image_tokens?: number;
2586
+
2587
+ /**
2588
+ * The aggregated number of uncached text input tokens used, excluding cache-write
2589
+ * tokens.
2590
+ */
2591
+ input_text_tokens?: number;
2592
+
2593
+ /**
2594
+ * The aggregated number of uncached input tokens used across text, audio, and
2595
+ * image inputs, excluding cache-write tokens.
2596
+ */
2597
+ input_uncached_tokens?: number;
2598
+
2329
2599
  /**
2330
2600
  * When `group_by=model`, this field provides the model name of the grouped usage
2331
2601
  * result.
@@ -2337,6 +2607,16 @@ export namespace UsageCostsResponse {
2337
2607
  */
2338
2608
  output_audio_tokens?: number;
2339
2609
 
2610
+ /**
2611
+ * The aggregated number of image output tokens used.
2612
+ */
2613
+ output_image_tokens?: number;
2614
+
2615
+ /**
2616
+ * The aggregated number of text output tokens used.
2617
+ */
2618
+ output_text_tokens?: number;
2619
+
2340
2620
  /**
2341
2621
  * When `group_by=project_id`, this field provides the project ID of the grouped
2342
2622
  * usage result.
@@ -2727,6 +3007,12 @@ export namespace UsageCostsResponse {
2727
3007
  * result.
2728
3008
  */
2729
3009
  quantity?: number | null;
3010
+
3011
+ /**
3012
+ * The unit of the `quantity` value. If no single supported unit applies to the
3013
+ * result, this field is `null`.
3014
+ */
3015
+ quantity_unit?: UsageAPI.CostQuantityUnit | null;
2730
3016
  }
2731
3017
 
2732
3018
  export namespace OrganizationCostsResult {
@@ -2787,8 +3073,9 @@ export namespace UsageEmbeddingsResponse {
2787
3073
  */
2788
3074
  export interface OrganizationUsageCompletionsResult {
2789
3075
  /**
2790
- * The aggregated number of text input tokens used, including cached tokens. For
2791
- * customers subscribe to scale tier, this includes scale tier tokens.
3076
+ * The aggregated number of input tokens used, including cached and cache-write
3077
+ * tokens. This includes text, audio, and image tokens. For customers subscribed to
3078
+ * Scale Tier, this includes Scale Tier tokens.
2792
3079
  */
2793
3080
  input_tokens: number;
2794
3081
 
@@ -2800,8 +3087,9 @@ export namespace UsageEmbeddingsResponse {
2800
3087
  object: 'organization.usage.completions.result';
2801
3088
 
2802
3089
  /**
2803
- * The aggregated number of text output tokens used. For customers subscribe to
2804
- * scale tier, this includes scale tier tokens.
3090
+ * The aggregated number of output tokens used across text, audio, and image
3091
+ * outputs. For customers subscribed to Scale Tier, this includes Scale Tier
3092
+ * tokens.
2805
3093
  */
2806
3094
  output_tokens: number;
2807
3095
 
@@ -2818,17 +3106,53 @@ export namespace UsageEmbeddingsResponse {
2818
3106
  batch?: boolean | null;
2819
3107
 
2820
3108
  /**
2821
- * The aggregated number of audio input tokens used, including cached tokens.
3109
+ * The aggregated number of uncached audio input tokens used.
2822
3110
  */
2823
3111
  input_audio_tokens?: number;
2824
3112
 
2825
3113
  /**
2826
- * The aggregated number of text input tokens that has been cached from previous
2827
- * requests. For customers subscribe to scale tier, this includes scale tier
2828
- * tokens.
3114
+ * The aggregated number of input tokens written to the cache.
3115
+ */
3116
+ input_cache_write_tokens?: number;
3117
+
3118
+ /**
3119
+ * The aggregated number of cached audio input tokens used.
3120
+ */
3121
+ input_cached_audio_tokens?: number;
3122
+
3123
+ /**
3124
+ * The aggregated number of cached image input tokens used.
3125
+ */
3126
+ input_cached_image_tokens?: number;
3127
+
3128
+ /**
3129
+ * The aggregated number of cached text input tokens used.
3130
+ */
3131
+ input_cached_text_tokens?: number;
3132
+
3133
+ /**
3134
+ * The aggregated number of cached input tokens used across text, audio, and image
3135
+ * inputs. For customers subscribed to Scale Tier, this includes Scale Tier tokens.
2829
3136
  */
2830
3137
  input_cached_tokens?: number;
2831
3138
 
3139
+ /**
3140
+ * The aggregated number of uncached image input tokens used.
3141
+ */
3142
+ input_image_tokens?: number;
3143
+
3144
+ /**
3145
+ * The aggregated number of uncached text input tokens used, excluding cache-write
3146
+ * tokens.
3147
+ */
3148
+ input_text_tokens?: number;
3149
+
3150
+ /**
3151
+ * The aggregated number of uncached input tokens used across text, audio, and
3152
+ * image inputs, excluding cache-write tokens.
3153
+ */
3154
+ input_uncached_tokens?: number;
3155
+
2832
3156
  /**
2833
3157
  * When `group_by=model`, this field provides the model name of the grouped usage
2834
3158
  * result.
@@ -2840,6 +3164,16 @@ export namespace UsageEmbeddingsResponse {
2840
3164
  */
2841
3165
  output_audio_tokens?: number;
2842
3166
 
3167
+ /**
3168
+ * The aggregated number of image output tokens used.
3169
+ */
3170
+ output_image_tokens?: number;
3171
+
3172
+ /**
3173
+ * The aggregated number of text output tokens used.
3174
+ */
3175
+ output_text_tokens?: number;
3176
+
2843
3177
  /**
2844
3178
  * When `group_by=project_id`, this field provides the project ID of the grouped
2845
3179
  * usage result.
@@ -3230,6 +3564,12 @@ export namespace UsageEmbeddingsResponse {
3230
3564
  * result.
3231
3565
  */
3232
3566
  quantity?: number | null;
3567
+
3568
+ /**
3569
+ * The unit of the `quantity` value. If no single supported unit applies to the
3570
+ * result, this field is `null`.
3571
+ */
3572
+ quantity_unit?: UsageAPI.CostQuantityUnit | null;
3233
3573
  }
3234
3574
 
3235
3575
  export namespace OrganizationCostsResult {
@@ -3290,8 +3630,9 @@ export namespace UsageFileSearchCallsResponse {
3290
3630
  */
3291
3631
  export interface OrganizationUsageCompletionsResult {
3292
3632
  /**
3293
- * The aggregated number of text input tokens used, including cached tokens. For
3294
- * customers subscribe to scale tier, this includes scale tier tokens.
3633
+ * The aggregated number of input tokens used, including cached and cache-write
3634
+ * tokens. This includes text, audio, and image tokens. For customers subscribed to
3635
+ * Scale Tier, this includes Scale Tier tokens.
3295
3636
  */
3296
3637
  input_tokens: number;
3297
3638
 
@@ -3303,8 +3644,9 @@ export namespace UsageFileSearchCallsResponse {
3303
3644
  object: 'organization.usage.completions.result';
3304
3645
 
3305
3646
  /**
3306
- * The aggregated number of text output tokens used. For customers subscribe to
3307
- * scale tier, this includes scale tier tokens.
3647
+ * The aggregated number of output tokens used across text, audio, and image
3648
+ * outputs. For customers subscribed to Scale Tier, this includes Scale Tier
3649
+ * tokens.
3308
3650
  */
3309
3651
  output_tokens: number;
3310
3652
 
@@ -3321,17 +3663,53 @@ export namespace UsageFileSearchCallsResponse {
3321
3663
  batch?: boolean | null;
3322
3664
 
3323
3665
  /**
3324
- * The aggregated number of audio input tokens used, including cached tokens.
3666
+ * The aggregated number of uncached audio input tokens used.
3325
3667
  */
3326
3668
  input_audio_tokens?: number;
3327
3669
 
3328
3670
  /**
3329
- * The aggregated number of text input tokens that has been cached from previous
3330
- * requests. For customers subscribe to scale tier, this includes scale tier
3331
- * tokens.
3671
+ * The aggregated number of input tokens written to the cache.
3672
+ */
3673
+ input_cache_write_tokens?: number;
3674
+
3675
+ /**
3676
+ * The aggregated number of cached audio input tokens used.
3677
+ */
3678
+ input_cached_audio_tokens?: number;
3679
+
3680
+ /**
3681
+ * The aggregated number of cached image input tokens used.
3682
+ */
3683
+ input_cached_image_tokens?: number;
3684
+
3685
+ /**
3686
+ * The aggregated number of cached text input tokens used.
3687
+ */
3688
+ input_cached_text_tokens?: number;
3689
+
3690
+ /**
3691
+ * The aggregated number of cached input tokens used across text, audio, and image
3692
+ * inputs. For customers subscribed to Scale Tier, this includes Scale Tier tokens.
3332
3693
  */
3333
3694
  input_cached_tokens?: number;
3334
3695
 
3696
+ /**
3697
+ * The aggregated number of uncached image input tokens used.
3698
+ */
3699
+ input_image_tokens?: number;
3700
+
3701
+ /**
3702
+ * The aggregated number of uncached text input tokens used, excluding cache-write
3703
+ * tokens.
3704
+ */
3705
+ input_text_tokens?: number;
3706
+
3707
+ /**
3708
+ * The aggregated number of uncached input tokens used across text, audio, and
3709
+ * image inputs, excluding cache-write tokens.
3710
+ */
3711
+ input_uncached_tokens?: number;
3712
+
3335
3713
  /**
3336
3714
  * When `group_by=model`, this field provides the model name of the grouped usage
3337
3715
  * result.
@@ -3343,6 +3721,16 @@ export namespace UsageFileSearchCallsResponse {
3343
3721
  */
3344
3722
  output_audio_tokens?: number;
3345
3723
 
3724
+ /**
3725
+ * The aggregated number of image output tokens used.
3726
+ */
3727
+ output_image_tokens?: number;
3728
+
3729
+ /**
3730
+ * The aggregated number of text output tokens used.
3731
+ */
3732
+ output_text_tokens?: number;
3733
+
3346
3734
  /**
3347
3735
  * When `group_by=project_id`, this field provides the project ID of the grouped
3348
3736
  * usage result.
@@ -3733,6 +4121,12 @@ export namespace UsageFileSearchCallsResponse {
3733
4121
  * result.
3734
4122
  */
3735
4123
  quantity?: number | null;
4124
+
4125
+ /**
4126
+ * The unit of the `quantity` value. If no single supported unit applies to the
4127
+ * result, this field is `null`.
4128
+ */
4129
+ quantity_unit?: UsageAPI.CostQuantityUnit | null;
3736
4130
  }
3737
4131
 
3738
4132
  export namespace OrganizationCostsResult {
@@ -3793,8 +4187,9 @@ export namespace UsageImagesResponse {
3793
4187
  */
3794
4188
  export interface OrganizationUsageCompletionsResult {
3795
4189
  /**
3796
- * The aggregated number of text input tokens used, including cached tokens. For
3797
- * customers subscribe to scale tier, this includes scale tier tokens.
4190
+ * The aggregated number of input tokens used, including cached and cache-write
4191
+ * tokens. This includes text, audio, and image tokens. For customers subscribed to
4192
+ * Scale Tier, this includes Scale Tier tokens.
3798
4193
  */
3799
4194
  input_tokens: number;
3800
4195
 
@@ -3806,8 +4201,9 @@ export namespace UsageImagesResponse {
3806
4201
  object: 'organization.usage.completions.result';
3807
4202
 
3808
4203
  /**
3809
- * The aggregated number of text output tokens used. For customers subscribe to
3810
- * scale tier, this includes scale tier tokens.
4204
+ * The aggregated number of output tokens used across text, audio, and image
4205
+ * outputs. For customers subscribed to Scale Tier, this includes Scale Tier
4206
+ * tokens.
3811
4207
  */
3812
4208
  output_tokens: number;
3813
4209
 
@@ -3824,17 +4220,53 @@ export namespace UsageImagesResponse {
3824
4220
  batch?: boolean | null;
3825
4221
 
3826
4222
  /**
3827
- * The aggregated number of audio input tokens used, including cached tokens.
4223
+ * The aggregated number of uncached audio input tokens used.
3828
4224
  */
3829
4225
  input_audio_tokens?: number;
3830
4226
 
3831
4227
  /**
3832
- * The aggregated number of text input tokens that has been cached from previous
3833
- * requests. For customers subscribe to scale tier, this includes scale tier
3834
- * tokens.
4228
+ * The aggregated number of input tokens written to the cache.
4229
+ */
4230
+ input_cache_write_tokens?: number;
4231
+
4232
+ /**
4233
+ * The aggregated number of cached audio input tokens used.
4234
+ */
4235
+ input_cached_audio_tokens?: number;
4236
+
4237
+ /**
4238
+ * The aggregated number of cached image input tokens used.
4239
+ */
4240
+ input_cached_image_tokens?: number;
4241
+
4242
+ /**
4243
+ * The aggregated number of cached text input tokens used.
4244
+ */
4245
+ input_cached_text_tokens?: number;
4246
+
4247
+ /**
4248
+ * The aggregated number of cached input tokens used across text, audio, and image
4249
+ * inputs. For customers subscribed to Scale Tier, this includes Scale Tier tokens.
3835
4250
  */
3836
4251
  input_cached_tokens?: number;
3837
4252
 
4253
+ /**
4254
+ * The aggregated number of uncached image input tokens used.
4255
+ */
4256
+ input_image_tokens?: number;
4257
+
4258
+ /**
4259
+ * The aggregated number of uncached text input tokens used, excluding cache-write
4260
+ * tokens.
4261
+ */
4262
+ input_text_tokens?: number;
4263
+
4264
+ /**
4265
+ * The aggregated number of uncached input tokens used across text, audio, and
4266
+ * image inputs, excluding cache-write tokens.
4267
+ */
4268
+ input_uncached_tokens?: number;
4269
+
3838
4270
  /**
3839
4271
  * When `group_by=model`, this field provides the model name of the grouped usage
3840
4272
  * result.
@@ -3846,6 +4278,16 @@ export namespace UsageImagesResponse {
3846
4278
  */
3847
4279
  output_audio_tokens?: number;
3848
4280
 
4281
+ /**
4282
+ * The aggregated number of image output tokens used.
4283
+ */
4284
+ output_image_tokens?: number;
4285
+
4286
+ /**
4287
+ * The aggregated number of text output tokens used.
4288
+ */
4289
+ output_text_tokens?: number;
4290
+
3849
4291
  /**
3850
4292
  * When `group_by=project_id`, this field provides the project ID of the grouped
3851
4293
  * usage result.
@@ -4236,6 +4678,12 @@ export namespace UsageImagesResponse {
4236
4678
  * result.
4237
4679
  */
4238
4680
  quantity?: number | null;
4681
+
4682
+ /**
4683
+ * The unit of the `quantity` value. If no single supported unit applies to the
4684
+ * result, this field is `null`.
4685
+ */
4686
+ quantity_unit?: UsageAPI.CostQuantityUnit | null;
4239
4687
  }
4240
4688
 
4241
4689
  export namespace OrganizationCostsResult {
@@ -4296,8 +4744,9 @@ export namespace UsageModerationsResponse {
4296
4744
  */
4297
4745
  export interface OrganizationUsageCompletionsResult {
4298
4746
  /**
4299
- * The aggregated number of text input tokens used, including cached tokens. For
4300
- * customers subscribe to scale tier, this includes scale tier tokens.
4747
+ * The aggregated number of input tokens used, including cached and cache-write
4748
+ * tokens. This includes text, audio, and image tokens. For customers subscribed to
4749
+ * Scale Tier, this includes Scale Tier tokens.
4301
4750
  */
4302
4751
  input_tokens: number;
4303
4752
 
@@ -4309,8 +4758,9 @@ export namespace UsageModerationsResponse {
4309
4758
  object: 'organization.usage.completions.result';
4310
4759
 
4311
4760
  /**
4312
- * The aggregated number of text output tokens used. For customers subscribe to
4313
- * scale tier, this includes scale tier tokens.
4761
+ * The aggregated number of output tokens used across text, audio, and image
4762
+ * outputs. For customers subscribed to Scale Tier, this includes Scale Tier
4763
+ * tokens.
4314
4764
  */
4315
4765
  output_tokens: number;
4316
4766
 
@@ -4327,17 +4777,53 @@ export namespace UsageModerationsResponse {
4327
4777
  batch?: boolean | null;
4328
4778
 
4329
4779
  /**
4330
- * The aggregated number of audio input tokens used, including cached tokens.
4780
+ * The aggregated number of uncached audio input tokens used.
4331
4781
  */
4332
4782
  input_audio_tokens?: number;
4333
4783
 
4334
4784
  /**
4335
- * The aggregated number of text input tokens that has been cached from previous
4336
- * requests. For customers subscribe to scale tier, this includes scale tier
4337
- * tokens.
4785
+ * The aggregated number of input tokens written to the cache.
4786
+ */
4787
+ input_cache_write_tokens?: number;
4788
+
4789
+ /**
4790
+ * The aggregated number of cached audio input tokens used.
4791
+ */
4792
+ input_cached_audio_tokens?: number;
4793
+
4794
+ /**
4795
+ * The aggregated number of cached image input tokens used.
4796
+ */
4797
+ input_cached_image_tokens?: number;
4798
+
4799
+ /**
4800
+ * The aggregated number of cached text input tokens used.
4801
+ */
4802
+ input_cached_text_tokens?: number;
4803
+
4804
+ /**
4805
+ * The aggregated number of cached input tokens used across text, audio, and image
4806
+ * inputs. For customers subscribed to Scale Tier, this includes Scale Tier tokens.
4338
4807
  */
4339
4808
  input_cached_tokens?: number;
4340
4809
 
4810
+ /**
4811
+ * The aggregated number of uncached image input tokens used.
4812
+ */
4813
+ input_image_tokens?: number;
4814
+
4815
+ /**
4816
+ * The aggregated number of uncached text input tokens used, excluding cache-write
4817
+ * tokens.
4818
+ */
4819
+ input_text_tokens?: number;
4820
+
4821
+ /**
4822
+ * The aggregated number of uncached input tokens used across text, audio, and
4823
+ * image inputs, excluding cache-write tokens.
4824
+ */
4825
+ input_uncached_tokens?: number;
4826
+
4341
4827
  /**
4342
4828
  * When `group_by=model`, this field provides the model name of the grouped usage
4343
4829
  * result.
@@ -4349,6 +4835,16 @@ export namespace UsageModerationsResponse {
4349
4835
  */
4350
4836
  output_audio_tokens?: number;
4351
4837
 
4838
+ /**
4839
+ * The aggregated number of image output tokens used.
4840
+ */
4841
+ output_image_tokens?: number;
4842
+
4843
+ /**
4844
+ * The aggregated number of text output tokens used.
4845
+ */
4846
+ output_text_tokens?: number;
4847
+
4352
4848
  /**
4353
4849
  * When `group_by=project_id`, this field provides the project ID of the grouped
4354
4850
  * usage result.
@@ -4739,6 +5235,12 @@ export namespace UsageModerationsResponse {
4739
5235
  * result.
4740
5236
  */
4741
5237
  quantity?: number | null;
5238
+
5239
+ /**
5240
+ * The unit of the `quantity` value. If no single supported unit applies to the
5241
+ * result, this field is `null`.
5242
+ */
5243
+ quantity_unit?: UsageAPI.CostQuantityUnit | null;
4742
5244
  }
4743
5245
 
4744
5246
  export namespace OrganizationCostsResult {
@@ -4799,8 +5301,9 @@ export namespace UsageVectorStoresResponse {
4799
5301
  */
4800
5302
  export interface OrganizationUsageCompletionsResult {
4801
5303
  /**
4802
- * The aggregated number of text input tokens used, including cached tokens. For
4803
- * customers subscribe to scale tier, this includes scale tier tokens.
5304
+ * The aggregated number of input tokens used, including cached and cache-write
5305
+ * tokens. This includes text, audio, and image tokens. For customers subscribed to
5306
+ * Scale Tier, this includes Scale Tier tokens.
4804
5307
  */
4805
5308
  input_tokens: number;
4806
5309
 
@@ -4812,8 +5315,9 @@ export namespace UsageVectorStoresResponse {
4812
5315
  object: 'organization.usage.completions.result';
4813
5316
 
4814
5317
  /**
4815
- * The aggregated number of text output tokens used. For customers subscribe to
4816
- * scale tier, this includes scale tier tokens.
5318
+ * The aggregated number of output tokens used across text, audio, and image
5319
+ * outputs. For customers subscribed to Scale Tier, this includes Scale Tier
5320
+ * tokens.
4817
5321
  */
4818
5322
  output_tokens: number;
4819
5323
 
@@ -4830,17 +5334,53 @@ export namespace UsageVectorStoresResponse {
4830
5334
  batch?: boolean | null;
4831
5335
 
4832
5336
  /**
4833
- * The aggregated number of audio input tokens used, including cached tokens.
5337
+ * The aggregated number of uncached audio input tokens used.
4834
5338
  */
4835
5339
  input_audio_tokens?: number;
4836
5340
 
4837
5341
  /**
4838
- * The aggregated number of text input tokens that has been cached from previous
4839
- * requests. For customers subscribe to scale tier, this includes scale tier
4840
- * tokens.
5342
+ * The aggregated number of input tokens written to the cache.
5343
+ */
5344
+ input_cache_write_tokens?: number;
5345
+
5346
+ /**
5347
+ * The aggregated number of cached audio input tokens used.
5348
+ */
5349
+ input_cached_audio_tokens?: number;
5350
+
5351
+ /**
5352
+ * The aggregated number of cached image input tokens used.
5353
+ */
5354
+ input_cached_image_tokens?: number;
5355
+
5356
+ /**
5357
+ * The aggregated number of cached text input tokens used.
5358
+ */
5359
+ input_cached_text_tokens?: number;
5360
+
5361
+ /**
5362
+ * The aggregated number of cached input tokens used across text, audio, and image
5363
+ * inputs. For customers subscribed to Scale Tier, this includes Scale Tier tokens.
4841
5364
  */
4842
5365
  input_cached_tokens?: number;
4843
5366
 
5367
+ /**
5368
+ * The aggregated number of uncached image input tokens used.
5369
+ */
5370
+ input_image_tokens?: number;
5371
+
5372
+ /**
5373
+ * The aggregated number of uncached text input tokens used, excluding cache-write
5374
+ * tokens.
5375
+ */
5376
+ input_text_tokens?: number;
5377
+
5378
+ /**
5379
+ * The aggregated number of uncached input tokens used across text, audio, and
5380
+ * image inputs, excluding cache-write tokens.
5381
+ */
5382
+ input_uncached_tokens?: number;
5383
+
4844
5384
  /**
4845
5385
  * When `group_by=model`, this field provides the model name of the grouped usage
4846
5386
  * result.
@@ -4852,6 +5392,16 @@ export namespace UsageVectorStoresResponse {
4852
5392
  */
4853
5393
  output_audio_tokens?: number;
4854
5394
 
5395
+ /**
5396
+ * The aggregated number of image output tokens used.
5397
+ */
5398
+ output_image_tokens?: number;
5399
+
5400
+ /**
5401
+ * The aggregated number of text output tokens used.
5402
+ */
5403
+ output_text_tokens?: number;
5404
+
4855
5405
  /**
4856
5406
  * When `group_by=project_id`, this field provides the project ID of the grouped
4857
5407
  * usage result.
@@ -5242,6 +5792,12 @@ export namespace UsageVectorStoresResponse {
5242
5792
  * result.
5243
5793
  */
5244
5794
  quantity?: number | null;
5795
+
5796
+ /**
5797
+ * The unit of the `quantity` value. If no single supported unit applies to the
5798
+ * result, this field is `null`.
5799
+ */
5800
+ quantity_unit?: UsageAPI.CostQuantityUnit | null;
5245
5801
  }
5246
5802
 
5247
5803
  export namespace OrganizationCostsResult {
@@ -5302,8 +5858,9 @@ export namespace UsageWebSearchCallsResponse {
5302
5858
  */
5303
5859
  export interface OrganizationUsageCompletionsResult {
5304
5860
  /**
5305
- * The aggregated number of text input tokens used, including cached tokens. For
5306
- * customers subscribe to scale tier, this includes scale tier tokens.
5861
+ * The aggregated number of input tokens used, including cached and cache-write
5862
+ * tokens. This includes text, audio, and image tokens. For customers subscribed to
5863
+ * Scale Tier, this includes Scale Tier tokens.
5307
5864
  */
5308
5865
  input_tokens: number;
5309
5866
 
@@ -5315,8 +5872,9 @@ export namespace UsageWebSearchCallsResponse {
5315
5872
  object: 'organization.usage.completions.result';
5316
5873
 
5317
5874
  /**
5318
- * The aggregated number of text output tokens used. For customers subscribe to
5319
- * scale tier, this includes scale tier tokens.
5875
+ * The aggregated number of output tokens used across text, audio, and image
5876
+ * outputs. For customers subscribed to Scale Tier, this includes Scale Tier
5877
+ * tokens.
5320
5878
  */
5321
5879
  output_tokens: number;
5322
5880
 
@@ -5333,17 +5891,53 @@ export namespace UsageWebSearchCallsResponse {
5333
5891
  batch?: boolean | null;
5334
5892
 
5335
5893
  /**
5336
- * The aggregated number of audio input tokens used, including cached tokens.
5894
+ * The aggregated number of uncached audio input tokens used.
5337
5895
  */
5338
5896
  input_audio_tokens?: number;
5339
5897
 
5340
5898
  /**
5341
- * The aggregated number of text input tokens that has been cached from previous
5342
- * requests. For customers subscribe to scale tier, this includes scale tier
5343
- * tokens.
5899
+ * The aggregated number of input tokens written to the cache.
5900
+ */
5901
+ input_cache_write_tokens?: number;
5902
+
5903
+ /**
5904
+ * The aggregated number of cached audio input tokens used.
5905
+ */
5906
+ input_cached_audio_tokens?: number;
5907
+
5908
+ /**
5909
+ * The aggregated number of cached image input tokens used.
5910
+ */
5911
+ input_cached_image_tokens?: number;
5912
+
5913
+ /**
5914
+ * The aggregated number of cached text input tokens used.
5915
+ */
5916
+ input_cached_text_tokens?: number;
5917
+
5918
+ /**
5919
+ * The aggregated number of cached input tokens used across text, audio, and image
5920
+ * inputs. For customers subscribed to Scale Tier, this includes Scale Tier tokens.
5344
5921
  */
5345
5922
  input_cached_tokens?: number;
5346
5923
 
5924
+ /**
5925
+ * The aggregated number of uncached image input tokens used.
5926
+ */
5927
+ input_image_tokens?: number;
5928
+
5929
+ /**
5930
+ * The aggregated number of uncached text input tokens used, excluding cache-write
5931
+ * tokens.
5932
+ */
5933
+ input_text_tokens?: number;
5934
+
5935
+ /**
5936
+ * The aggregated number of uncached input tokens used across text, audio, and
5937
+ * image inputs, excluding cache-write tokens.
5938
+ */
5939
+ input_uncached_tokens?: number;
5940
+
5347
5941
  /**
5348
5942
  * When `group_by=model`, this field provides the model name of the grouped usage
5349
5943
  * result.
@@ -5355,6 +5949,16 @@ export namespace UsageWebSearchCallsResponse {
5355
5949
  */
5356
5950
  output_audio_tokens?: number;
5357
5951
 
5952
+ /**
5953
+ * The aggregated number of image output tokens used.
5954
+ */
5955
+ output_image_tokens?: number;
5956
+
5957
+ /**
5958
+ * The aggregated number of text output tokens used.
5959
+ */
5960
+ output_text_tokens?: number;
5961
+
5358
5962
  /**
5359
5963
  * When `group_by=project_id`, this field provides the project ID of the grouped
5360
5964
  * usage result.
@@ -5745,6 +6349,12 @@ export namespace UsageWebSearchCallsResponse {
5745
6349
  * result.
5746
6350
  */
5747
6351
  quantity?: number | null;
6352
+
6353
+ /**
6354
+ * The unit of the `quantity` value. If no single supported unit applies to the
6355
+ * result, this field is `null`.
6356
+ */
6357
+ quantity_unit?: UsageAPI.CostQuantityUnit | null;
5748
6358
  }
5749
6359
 
5750
6360
  export namespace OrganizationCostsResult {
@@ -6028,6 +6638,12 @@ export interface UsageCostsParams {
6028
6638
  */
6029
6639
  limit?: number;
6030
6640
 
6641
+ /**
6642
+ * Return only costs for these exact line item names. Each value must match the
6643
+ * complete `line_item` value, for example `gpt-6-astra, input_tokens`.
6644
+ */
6645
+ line_items?: Array<string>;
6646
+
6031
6647
  /**
6032
6648
  * A cursor for use in pagination. Corresponding to the `next_page` field from the
6033
6649
  * previous response.
@@ -6401,6 +7017,7 @@ export interface UsageWebSearchCallsParams {
6401
7017
 
6402
7018
  export declare namespace Usage {
6403
7019
  export {
7020
+ type CostQuantityUnit as CostQuantityUnit,
6404
7021
  type UsageAudioSpeechesResponse as UsageAudioSpeechesResponse,
6405
7022
  type UsageAudioTranscriptionsResponse as UsageAudioTranscriptionsResponse,
6406
7023
  type UsageCodeInterpreterSessionsResponse as UsageCodeInterpreterSessionsResponse,